/* =====================================================================
   PigaTools · shared stylesheet
   1. tokens & base   2. components   3. header & nav   4. footer
   5. home page       6. inner pages  7. responsive
   ===================================================================== */

/* ---------- 1. design tokens ---------- */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f1f4fb;
  --ink: #0f172a;
  --ink-2: #3b4a63;
  --ink-3: #6b7a92;
  --line: #e3e8f2;
  --brand: #4357f0; /* logo blue #4F6BFF, a shade deeper so text and links stay readable */
  --brand-2: #6a4df5;
  --brand-3: #9333ea;
  --navy: #0f172a;
  --navy-2: #13223b;
  --gold: #ffb83b;
  --green: #12804a;
  --pro-bg: #fff1dc;
  --pro-ink: #a8620f;
  --grad: linear-gradient(120deg, #4f6bff 0%, var(--brand-2) 55%, var(--brand-3) 100%); /* the logo gradient */
  --grad-soft: linear-gradient(145deg, #eef0ff, #f3ebff);
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.04), 0 2px 8px rgba(10, 22, 40, 0.04);
  --shadow-md: 0 12px 32px -14px rgba(10, 22, 40, 0.2);
  --shadow-lg: 0 40px 80px -30px rgba(30, 50, 140, 0.35);
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* keep the hidden attribute working on elements that set their own display */
[hidden] {
  display: none !important;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 96px 0;
}

.block {
  margin-bottom: 80px;
}

.block-sm {
  margin-bottom: 40px;
}

/* ---------- 2. components ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
}

.eyebrow .dot {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  color: white;
  font-size: 0.65rem;
}

.gradient-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-lg {
  padding: 16px 30px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 10px 24px -10px rgba(10, 22, 40, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -12px rgba(67, 87, 240, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  background: #14254a;
}

.btn-gradient {
  background: var(--grad);
  background-size: 150% auto;
  color: white;
  box-shadow: 0 14px 30px -12px rgba(67, 87, 240, 0.6);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  background-position: right center;
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: #c6d0e4;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white,
.btn-white-auto {
  background: white;
  color: var(--ink);
}

.btn-white {
  width: 100%;
}

.btn-white:hover,
.btn-white-auto:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: white;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.premium-tag {
  display: inline-flex;
  align-items: center;
  background: var(--pro-bg);
  color: var(--pro-ink);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  white-space: nowrap;
}

.free-tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e3f8ec;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
}

.soon-tag {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 0.62rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 600;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.chip i {
  color: var(--brand);
}

.chip.pro {
  background: var(--pro-bg);
  color: var(--pro-ink);
}

.chip.pro i {
  color: var(--pro-ink);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 18px 0 16px;
}

.section-head p {
  color: var(--ink-2);
  font-size: 1.15rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.link-arrow i {
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover i {
  transform: translateX(4px);
}

.h-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad-soft);
  color: var(--brand);
  font-size: 1rem;
}

.row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.row-head h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.panel-head h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
}

.muted-note {
  color: var(--ink-3);
  font-size: 0.9rem;
  margin: 4px 0 12px;
}

.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-bottom: 32px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-list i {
  color: var(--brand);
}

/* scroll reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 3. header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(10, 22, 40, 0.03), 0 6px 20px -12px rgba(10, 22, 40, 0.12);
  transition: background 0.3s, box-shadow 0.3s;
}

/* frosted glass where supported, solid white otherwise */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
  }
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(10, 22, 40, 0.04), 0 12px 32px -14px rgba(10, 22, 40, 0.22);
}

.nav-inner {
  position: relative;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.logo-mark {
  display: block;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 6px 10px rgba(106, 77, 245, 0.35));
  transition: transform 0.25s var(--ease);
}

.logo:hover .logo-mark {
  transform: rotate(-6deg) scale(1.04);
}

/* "Piga" in ink, "Tools" in the logo gradient (#4F6BFF → #6A4DF5 → #9333EA) */
.logo-word {
  white-space: nowrap;
  line-height: 1.2;
}

.logo-word span {
  /* room for the last letter: gradient text is painted only inside the box, tight spacing would shave the "s" */
  padding-right: 0.08em;
  margin-right: -0.08em;
  background: linear-gradient(90deg, #4f6bff 0%, #6a4df5 55%, #9333ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-logo .logo-word span {
  background: linear-gradient(90deg, #6f86ff 0%, #8b6dff 55%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.auth-mark {
  display: block;
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 10px 18px rgba(106, 77, 245, 0.45));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.nav-item {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}

.nav-link i {
  font-size: 0.7rem;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-item:hover > .nav-link,
.nav-item.open > .nav-link,
.nav-item:focus-within > .nav-link {
  color: var(--ink);
  background: rgba(10, 22, 40, 0.05);
}

.nav-item:hover > .nav-link i,
.nav-item.open > .nav-link i,
.nav-item:focus-within > .nav-link i {
  transform: rotate(180deg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* mega dropdown - anchored to the header so it stays centred */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(800px, calc(100vw - 48px));
  transform: translate(-50%, 8px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 100;
}

.nav-item:hover .mega-dropdown,
.nav-item.open .mega-dropdown,
.nav-item:focus-within .mega-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.tool-grid-horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.tool-card:hover {
  background: var(--surface-2);
}

.tool-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad-soft);
  color: var(--brand);
  font-size: 1.05rem;
  transition: transform 0.3s var(--ease);
}

.tool-card:hover .tool-icon {
  transform: scale(1.08) rotate(-4deg);
}

.tool-card span {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.tool-card small {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.tool-card.is-soon .tool-icon {
  filter: grayscale(0.6);
  opacity: 0.7;
}

.mega-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.88rem;
  color: var(--ink-2);
}

.mega-footer a {
  font-weight: 600;
  color: var(--brand);
}

/* section sub-navigation (second header row) */
.subnav {
  border-top: 1px solid var(--line);
}

.subnav-inner {
  display: flex;
  gap: 4px;
  padding-top: 8px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, black 92%, transparent);
  mask-image: linear-gradient(90deg, black 92%, transparent);
}

.subnav-inner::-webkit-scrollbar {
  display: none;
}

.subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}

.subnav-link i {
  font-size: 0.8rem;
  color: var(--ink-3);
}

a.subnav-link:hover {
  background: rgba(10, 22, 40, 0.05);
  color: var(--ink);
}

.subnav-link[aria-current="page"] {
  background: var(--ink);
  color: white;
}

.subnav-link[aria-current="page"] i {
  color: white;
}

.subnav-link.is-soon {
  color: var(--ink-3);
  cursor: default;
}

/* mobile sidebar */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 1.1rem;
  color: var(--ink);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 86vw);
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  box-shadow: 0 0 60px rgba(10, 22, 40, 0.2);
  z-index: 1000;
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-nav.active {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.4s var(--ease), visibility 0s;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sidebar-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 1.1rem;
  color: var(--ink-2);
}

.sidebar-nav .nav-item {
  display: block;
  height: auto;
}

.sidebar-nav .nav-link {
  width: 100%;
  justify-content: space-between;
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.sidebar-nav .nav-item:hover > .nav-link i {
  transform: none;
}

.sidebar-mega-dropdown {
  display: none;
  padding: 6px 0 12px;
}

.sidebar-nav .nav-item.active .sidebar-mega-dropdown {
  display: block;
}

.sidebar-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sidebar-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  text-align: center;
}

.sidebar-tool-card i {
  font-size: 1.15rem;
  color: var(--brand);
}

.sidebar-tool-card span {
  font-weight: 600;
  font-size: 0.78rem;
}

.sidebar-tool-card.is-soon {
  opacity: 0.55;
}

.sidebar-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.sidebar-buttons .btn {
  width: 100%;
}

/* ---------- 4. footer ---------- */
.pigatech-footer {
  background: var(--navy);
  color: #aebbd6;
  padding: 80px 0 32px;
  margin-top: 96px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-logo {
  color: white;
  margin-bottom: 18px;
}

.footer-desc {
  max-width: 300px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-icons a,
.social-icons span {
  --hover: var(--brand);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c8d3ea;
  font-size: 1rem;
  transition: background 0.25s, border-color 0.25s, color 0.2s, transform 0.25s var(--ease);
}

.social-icons a:hover {
  background: var(--hover);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
}

.social-icons .s-x { --hover: #000000; }
.social-icons .s-instagram { --hover: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
.social-icons .s-facebook { --hover: #1877f2; }
.social-icons .s-tiktok { --hover: #000000; }
.social-icons .s-youtube { --hover: #ff0033; }
.social-icons .s-whatsapp { --hover: #25d366; }
.social-icons .s-github { --hover: #333a45; }
.social-icons .s-linkedin { --hover: #0a66c2; }

.footer-grid h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

/* column links only - social icons and the logo keep their own styles */
.footer-grid > div > a:not(.logo) {
  display: block;
  width: fit-content;
  margin-bottom: 12px;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-grid > div > a:not(.logo):hover {
  color: white;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(106, 77, 245, 0.18);
  border: 1px solid rgba(106, 77, 245, 0.35);
  color: #ddd5ff;
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: #8c9bb8;
}

.footer-bottom span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom a {
  font-weight: 600;
  color: #dfe6ff;
  border-bottom: 1px solid rgba(223, 230, 255, 0.3);
  transition: color 0.2s, border-color 0.2s;
}

.footer-bottom a:hover {
  color: white;
  border-color: white;
}

/* ---------- 5. home page ---------- */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 64px) 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 22, 40, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 22, 40, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}

.orb-1 {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -80px;
  background: #a9b8ff;
}

.orb-2 {
  width: 420px;
  height: 420px;
  top: 200px;
  left: -160px;
  background: #dcc4fb; /* soft purple from the logo gradient */
  animation-delay: -6s;
}

.orb-3 {
  width: 360px;
  height: 360px;
  bottom: -120px;
  right: 30%;
  background: #d9cdff;
  animation-delay: -12s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.97); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 64px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 24px 0;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  perspective: 1600px;
}

.app-window {
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(10, 22, 40, 0.04);
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.8s var(--ease);
}

.hero-visual:hover .app-window {
  transform: rotateY(0) rotateX(0);
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(241, 244, 251, 0.7);
}

.app-dots {
  display: flex;
  gap: 6px;
}

.app-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff6159;
}

.app-dots i:nth-child(2) { background: #ffbd2e; }
.app-dots i:nth-child(3) { background: #28c941; }

.app-url {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--surface);
  font-size: 0.78rem;
  color: var(--ink-3);
}

.app-body {
  padding: 20px;
}

.job {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.job-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad);
  color: white;
}

.job-info {
  flex: 1;
  min-width: 0;
}

.job-title {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
}

.job-title span:last-child {
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.job-meta {
  font-size: 0.76rem;
  color: var(--ink-3);
  margin: 2px 0 10px;
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 78%;
  border-radius: inherit;
  background: var(--grad);
  animation: progress 3.6s var(--ease) infinite;
}

@keyframes progress {
  0% { width: 8%; }
  70%, 100% { width: 100%; }
}

.app-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preview-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.2s, box-shadow 0.3s;
}

.preview-icon:hover {
  transform: translateY(-3px);
  border-color: #c9d4f7;
  box-shadow: var(--shadow-md);
}

.preview-icon i {
  font-size: 1.25rem;
  color: var(--brand);
}

.preview-icon span {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-2);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  animation: bob 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-size: 0.88rem;
}

.float-card small {
  color: var(--ink-3);
  font-size: 0.75rem;
}

.float-card .fc-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.fc-1 {
  left: -36px;
  bottom: 64px;
}

.fc-1 .fc-icon {
  background: #e3f8ec;
  color: #17a35a;
}

.fc-2 {
  right: -24px;
  top: -22px;
  animation-delay: -3s;
}

.fc-2 .fc-icon {
  background: var(--pro-bg);
  color: var(--pro-ink);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.platforms {
  padding: 8px 0 24px;
}

.platforms-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 44px;
  color: var(--ink-3);
}

.platforms-inner p {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.platforms-inner span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: #8a97ad;
  transition: color 0.2s;
}

.platforms-inner span:hover {
  color: var(--ink);
}

.platforms-inner span i {
  font-size: 1.35rem;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.bento-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(67, 87, 240, 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: #cdd7ef;
  box-shadow: var(--shadow-md);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card.wide {
  grid-column: span 3;
}

.bento-card.featured {
  background: linear-gradient(160deg, #ffffff 30%, #eef2ff 100%);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--grad-soft);
  color: var(--brand);
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.featured .category-icon {
  background: var(--grad);
  color: white;
  box-shadow: 0 12px 24px -10px rgba(67, 87, 240, 0.6);
}

.bento-card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.bento-card > p {
  color: var(--ink-2);
}

.bento-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.feature-list {
  list-style: none;
  margin: 20px 0 24px;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.feature-list i {
  color: var(--brand);
  font-size: 0.85rem;
}

.subtools-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.credit-row {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-2);
}

.credit-badge i {
  color: #17a35a;
}

/* dark panels (pro panel on home, spotlights on inner pages) */
.pro-panel,
.dark-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px;
  border-radius: 36px;
  background: var(--navy);
  color: white;
  overflow: hidden;
  isolation: isolate;
}

.pro-panel::before,
.dark-panel::before {
  content: '';
  position: absolute;
  width: 640px;
  height: 640px;
  top: -280px;
  right: -160px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 77, 245, 0.45), transparent 65%);
}

.pro-panel::after,
.dark-panel::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  bottom: -300px;
  left: -120px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.3), transparent 65%);
}

.pill-savings {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #dfe6ff;
}

.pill-savings i {
  color: var(--gold);
}

.pro-panel h2,
.dark-panel h2 {
  color: white;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  margin: 22px 0 18px;
}

.pro-desc {
  color: #aebbd6;
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 28px;
}

.dark-panel .check-list li {
  color: #e5ebf8;
}

.dark-panel .check-list i {
  color: #6ee7a5;
}

.perks {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 12px 28px;
}

.perks span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #e5ebf8;
}

.perks i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.perks .fa-infinity { color: #8ed6ff; }
.perks .fa-bolt { color: #ffe08c; }
.perks .fa-crown { color: var(--gold); }

.price-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.billing-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  margin-bottom: 28px;
}

.billing-toggle button {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #aebbd6;
  transition: background 0.25s, color 0.25s;
}

.billing-toggle button[aria-pressed="true"] {
  background: white;
  color: var(--ink);
}

/* light variant used on pricing pages */
.billing-toggle.light {
  width: fit-content;
  min-width: 280px;
  margin: 0 auto 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.billing-toggle.light button {
  color: var(--ink-2);
}

.billing-toggle.light button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}

.billing-toggle .save {
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #e3f8ec;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
}

.price-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #dfe6ff;
}

.price-label i {
  color: var(--gold);
}

.price {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 14px 0 10px;
}

.price small {
  font-size: 1.1rem;
  font-weight: 500;
  color: #aebbd6;
  letter-spacing: 0;
}

.price .price-usd {
  margin-top: 8px;
  color: #aebbd6;
}

.price-note {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  font-size: 0.92rem;
  color: #aebbd6;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-note span {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(23, 163, 90, 0.2);
  color: #6ee7a5;
  font-size: 0.78rem;
  font-weight: 700;
}

.price-fine {
  text-align: center;
  margin-top: 14px;
  font-size: 0.8rem;
  color: #8c9bb8;
}

.tools-showcase-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.tools-showcase-header h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}

.tools-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tools-flex .chip {
  padding: 12px 20px;
  font-size: 0.95rem;
  background: var(--surface);
  border-color: var(--line);
}

.tools-flex .chip:hover {
  transform: translateY(-2px);
  border-color: #c9d4f7;
  box-shadow: var(--shadow-sm);
}

.cta-section {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 64px;
  border-radius: 36px;
  background: var(--grad);
  color: white;
  overflow: hidden;
  isolation: isolate;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black);
  mask-image: linear-gradient(90deg, transparent, black);
}

.cta-left .eyebrow {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  color: white;
  box-shadow: none;
}

.cta-left .eyebrow .dot {
  background: white;
  color: var(--brand);
}

.cta-section h2 {
  color: white;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin: 20px 0 12px;
}

.cta-left p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
}

.cta-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-right .btn-primary {
  background: white;
  color: var(--ink);
}

/* ---------- 6. inner pages ---------- */

/* page hero */
.page-hero {
  position: relative;
  padding: 56px 0 56px;
  overflow: hidden;
  isolation: isolate;
}

.page-hero .orb-1 {
  width: 440px;
  height: 440px;
  top: -220px;
}

.page-hero .orb-2 {
  width: 340px;
  height: 340px;
  top: 40px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 18px 0 16px;
  max-width: 860px;
}

.page-hero .lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 640px;
}

.page-hero .hero-actions {
  margin-top: 28px;
}

.page-hero.center {
  text-align: center;
}

.page-hero.center h1,
.page-hero.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.page-hero.center .breadcrumbs,
.page-hero.center .spec-pills,
.page-hero.center .hero-actions {
  justify-content: center;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.breadcrumbs i {
  font-size: 0.6rem;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.breadcrumbs [aria-current] {
  color: var(--ink);
  font-weight: 600;
}

.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.spec-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-3);
}

.spec-pill strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}

/* converter / upload panel */
.tool-panel {
  padding: 24px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 44px 24px;
  border: 2px dashed #cdd6ea;
  border-radius: 24px;
  background: linear-gradient(180deg, #fafbff, #f3f6fd);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--brand);
  background: #eef2ff;
}

.dropzone:focus-within {
  border-color: var(--brand);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.panel-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px 28px;
  text-align: center;
}

.dz-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 20px;
  background: var(--grad);
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 16px 30px -14px rgba(67, 87, 240, 0.7);
}

.dz-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.dz-text {
  color: var(--ink-3);
  max-width: 460px;
}

.dz-btn {
  margin-top: 10px;
  pointer-events: none;
}

.dz-file {
  min-height: 1.4em;
  font-weight: 600;
  color: var(--brand);
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 4px;
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.url-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.url-group:focus-within {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(67, 87, 240, 0.12);
}

.url-group > i {
  color: var(--ink-3);
}

.url-group input {
  flex: 1;
  min-width: 0;
  padding: 10px 4px;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  outline: none;
}

.url-group.lg {
  padding: 8px 8px 8px 22px;
}

.url-group.lg input {
  font-size: 1.05rem;
  padding: 14px 4px;
}

.format-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.select-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

/* form controls */
.field label,
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-2);
}

.field input,
.field select,
.field textarea,
.select-wrap select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.select-wrap select:focus {
  outline: none;
  border-color: var(--brand);
  background: white;
  box-shadow: 0 0 0 4px rgba(67, 87, 240, 0.12);
}

.select-wrap {
  position: relative;
}

.select-wrap > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  pointer-events: none;
}

.select-wrap select {
  padding-left: 40px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.input-wrap {
  position: relative;
}

.input-wrap > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}

.input-wrap input {
  padding-left: 42px;
}

.input-wrap .pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--ink-3);
}

.input-wrap .pw-toggle:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.form-stack {
  display: grid;
  gap: 16px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-2);
  cursor: pointer;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}

.checkbox a,
.text-link {
  color: var(--brand);
  font-weight: 600;
}

/* card grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card-grid.cols-wide {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card-grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.fcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s;
}

.fcard:hover {
  transform: translateY(-3px);
  border-color: #cdd7ef;
  box-shadow: var(--shadow-md);
}

.fcard-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ficon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--grad-soft);
  color: var(--brand);
  font-size: 1.15rem;
}

.ficon.colored {
  background: color-mix(in srgb, var(--c) 12%, white);
  color: var(--c);
}

.fcard h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.fcard .desc {
  margin-top: 2px;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.fcard .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fcard .chip {
  padding: 4px 10px;
  font-size: 0.78rem;
}

.fcard .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

/* the whole card is clickable through its link */
.fcard a.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.fcard .card-link i {
  transition: transform 0.25s var(--ease);
}

.fcard:hover .card-link i {
  transform: translateX(4px);
}

.fcard .card-link.is-soon {
  color: var(--ink-3);
}

.fcard .card-link.is-soon::before {
  content: 'Soon';
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fcard .card-link.is-soon i {
  display: none;
}

.fcard.feature {
  gap: 10px;
}

.fcard.feature .chips {
  margin-top: auto;
  padding-top: 6px;
}

.fcard.feature .premium-tag {
  margin-left: 0;
}

.info-card {
  display: flex;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.info-card p {
  color: var(--ink-2);
  font-size: 0.93rem;
  margin-bottom: 12px;
}

/* settings / radio cards */
.options-panel,
.editor {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.opt-label {
  margin: 22px 0 12px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.option {
  position: relative;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-body {
  display: block;
  height: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.option-body:hover {
  border-color: #c3cde6;
}

.option-body strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.option-body > span {
  font-size: 0.82rem;
  color: var(--ink-3);
}

.option-body .premium-tag {
  margin-left: 0;
}

.option-body strong small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-3);
}

.option-tag {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--brand);
}

.option input:checked + .option-body {
  border-color: var(--brand);
  background: #f3f6ff;
  box-shadow: 0 0 0 4px rgba(67, 87, 240, 0.1);
}

.option input:focus-visible + .option-body {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* spec tiles + file preview inside dark panels */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.spec i {
  color: #8ed6ff;
  font-size: 1.2rem;
}

.spec strong {
  display: block;
  margin: 12px 0 2px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  color: white;
}

.spec span {
  font-size: 0.86rem;
  color: #aebbd6;
}

.file-preview {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.file-preview-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.fp-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad);
}

.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.9rem;
  color: #dfe6ff;
}

.file-row span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-row .ok {
  color: #6ee7a5;
}

.file-more {
  margin-top: 4px;
  font-size: 0.86rem;
  color: #8c9bb8;
}

/* metadata editor */
.editor .premium-tag {
  margin-left: 0;
}

.editor-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.editor-group {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.editor-group h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 1rem;
}

.editor-group h4 i {
  color: var(--brand);
}

.editor-group .field input {
  background: white;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.editor-groups .field-grid {
  grid-template-columns: 1fr 1fr;
}

.editor-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.code-block {
  margin: 0 0 14px;
  padding: 18px;
  border-radius: 14px;
  background: var(--navy);
  color: #cfe0ff;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}

/* recent list */
.list-card {
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.list-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.list-row + .list-row {
  margin-top: 2px;
}

.list-row:hover {
  background: var(--surface-2);
}

.thumb {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--grad-soft);
  color: var(--brand);
  font-size: 1.1rem;
}

.list-row h4 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.82rem;
  color: var(--ink-3);
}

/* plans */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.plan h3 {
  font-size: 1.35rem;
}

.plan .tier-desc {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 0.93rem;
}

.plan .amount {
  margin: 18px 0 4px;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.plan .amount small {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
}

.plan .billing {
  font-size: 0.86rem;
  color: var(--ink-3);
}

/* Prices: TSh large (what is charged), USD small under it as a guide */
.price-tsh {
  display: block;
  white-space: nowrap;
}

.price-cur {
  margin-right: 0.12em;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: 0.95em;
}

.price-usd {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
}

.plan.featured .price-usd {
  color: #aebbd6;
}

.option-price .price-tsh {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1px;
}

.option-price .price-cur {
  align-self: flex-start;
  margin-top: 0.3em;
}

.option-price .price-usd {
  margin-top: 2px;
  font-size: 0.78rem;
}

.plan-list {
  list-style: none;
  display: grid;
  gap: 11px;
  margin: 24px 0 28px;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
}

.plan-list i {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--brand);
}

.plan-list li.no {
  color: var(--ink-3);
}

.plan-list li.no i {
  color: #b8c2d6;
}

.plan .btn {
  margin-top: auto;
  width: 100%;
}

.plan.featured {
  background: var(--navy);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-lg);
}

.plan.featured::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  top: -220px;
  right: -160px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 77, 245, 0.5), transparent 65%);
}

.plan.featured h3,
.plan.featured .amount {
  color: white;
}

.plan.featured .amount small,
.plan.featured .billing,
.plan.featured .tier-desc {
  color: #aebbd6;
}

.plan.featured .plan-list i {
  color: #6ee7a5;
}

.plan.featured .plan-list li.no {
  color: #8c9bb8;
}

.popular {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* comparison table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.92rem;
}

.compare thead th {
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: 1rem;
}

.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare td:first-child {
  font-weight: 600;
}

.compare .hl {
  background: rgba(67, 87, 240, 0.04);
}

.compare .yes {
  color: var(--green);
  font-weight: 600;
}

.compare .no {
  color: var(--ink-3);
}

.compare .fa-xmark {
  color: #b8c2d6;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.faq details {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq details[open] {
  border-color: #cdd7ef;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  list-style: none;
  font-weight: 600;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary i {
  width: 18px;
  color: var(--brand);
}

.faq summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink-3);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 20px 20px 50px;
  color: var(--ink-2);
}

/* trust note */
.trust {
  text-align: center;
  color: var(--ink-3);
}

.trust p {
  margin-bottom: 14px;
}

.trust p i {
  color: var(--brand);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-size: 0.9rem;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row i {
  color: var(--brand);
}

/* lyric video preview */
.lyric-preview {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #13223b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  overflow: hidden;
}

.lyric-preview .lp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-weight: 600;
  color: #dfe6ff;
}

.lyric-preview .lp-head i {
  color: var(--gold);
  font-size: 1.4rem;
}

.lyric-line {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.3);
  animation: lyric 6s infinite;
}

.lyric-line:nth-of-type(2) { animation-delay: 2s; }
.lyric-line:nth-of-type(3) { animation-delay: 4s; }

@keyframes lyric {
  0%, 33% { color: #ffffff; text-shadow: 0 0 24px rgba(106, 77, 245, 0.8); }
  34%, 100% { color: rgba(255, 255, 255, 0.3); text-shadow: none; }
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
  margin-top: 22px;
}

.eq span {
  width: 6px;
  border-radius: 3px;
  background: var(--grad);
  animation: eq 1.2s ease-in-out infinite;
}

.eq span:nth-child(2) { animation-delay: -0.2s; }
.eq span:nth-child(3) { animation-delay: -0.5s; }
.eq span:nth-child(4) { animation-delay: -0.8s; }
.eq span:nth-child(5) { animation-delay: -0.3s; }
.eq span:nth-child(6) { animation-delay: -0.7s; }
.eq span:nth-child(7) { animation-delay: -0.1s; }

@keyframes eq {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}

.lp-foot {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #8c9bb8;
}

/* two-column feature split */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
  border-radius: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.split h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin: 16px 0 14px;
}

.split p.lead-sm {
  color: var(--ink-2);
  font-size: 1.05rem;
  margin-bottom: 22px;
}

.split .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

/* auth (sign in) */
.auth-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  border-radius: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.auth-side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 52px;
  background: var(--navy);
  color: #aebbd6;
  overflow: hidden;
  isolation: isolate;
}

.auth-side::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  top: -240px;
  right: -220px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 77, 245, 0.5), transparent 65%);
}

.auth-side h2 {
  color: white;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.auth-side .check-list {
  grid-template-columns: 1fr;
  margin: 8px 0 0;
}

.auth-side .check-list li {
  color: #e5ebf8;
}

.auth-side .check-list i {
  color: #6ee7a5;
}

.quote-card {
  margin-top: auto;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.quote-card p {
  color: #e5ebf8;
  font-size: 1rem;
}

.quote-card .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.85rem;
}

.quote-card .avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: white;
  font-weight: 700;
}

.quote-card strong {
  display: block;
  color: white;
}

.auth-form {
  padding: 52px;
}

.auth-form h1 {
  font-size: 2rem;
}

.auth-form .sub {
  margin: 6px 0 26px;
  color: var(--ink-3);
}

.social-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-btns .btn i {
  font-size: 1.1rem;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.form-foot {
  text-align: center;
  color: var(--ink-3);
  font-size: 0.92rem;
}

/* checkout (get pro) */
.checkout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.form-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.form-card h2 {
  font-size: 1.7rem;
}

.form-card .sub {
  margin: 6px 0 24px;
  color: var(--ink-3);
}

.pay-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.pay-methods .option-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  text-align: center;
}

.pay-methods .option-body i {
  font-size: 1.6rem;
  color: var(--ink-2);
}

.pay-methods .option input:checked + .option-body i {
  color: var(--brand);
}

.card-fields {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}

.benefits-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #aebbd6;
  overflow: hidden;
  isolation: isolate;
}

.benefits-card::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  top: -200px;
  right: -180px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 77, 245, 0.45), transparent 65%);
}

.benefits-card h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.benefits {
  list-style: none;
  display: grid;
  gap: 14px;
}

.benefits li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #e5ebf8;
  font-size: 0.95rem;
}

.benefits li i {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #8ed6ff;
}

.benefits strong {
  color: white;
}

.guarantee {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(23, 163, 90, 0.14);
  border: 1px solid rgba(110, 231, 165, 0.25);
}

.guarantee i {
  color: #6ee7a5;
  font-size: 1.4rem;
}

.guarantee h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 4px;
}

.guarantee p {
  font-size: 0.88rem;
}

.guarantee.light {
  margin-top: 0;
  background: #eef2ff;
  border-color: #d6defd;
  color: var(--ink-2);
}

.guarantee.light i {
  color: var(--brand);
}

.guarantee.light h4 {
  color: var(--ink);
}

/* studio dashboard */
.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.stat-card .num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.stat-card .label {
  font-size: 0.88rem;
  color: var(--ink-3);
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 24px;
  align-items: start;
}

.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.project:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.project h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
}

.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-foot .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-foot .chip {
  padding: 3px 10px;
  font-size: 0.75rem;
}

.activity {
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.activity-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
}

.activity-row:hover {
  background: var(--surface-2);
}

.activity-row .thumb {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.activity-row h4 {
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0;
}

.activity-row p {
  font-size: 0.83rem;
  color: var(--ink-2);
}

.activity-row small {
  font-size: 0.78rem;
  color: var(--ink-3);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.quick-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.quick-tool:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.quick-tool.is-soon {
  opacity: 0.6;
}

.storage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.storage .bar {
  height: 12px;
  margin: 10px 0 14px;
}

.storage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.86rem;
  color: var(--ink-2);
}

.storage-legend i {
  color: var(--brand);
}

.upgrade-mini {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #aebbd6;
}

.upgrade-mini h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.upgrade-mini .btn {
  margin-top: 16px;
}

/* enterprise */
.role-list {
  display: grid;
  gap: 10px;
}

.role {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.role .fp-icon {
  width: 44px;
  height: 44px;
  color: white;
}

.role h4 {
  color: white;
  font-size: 1rem;
}

.role p {
  font-size: 0.85rem;
  color: #aebbd6;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.badge-row .chip {
  background: var(--surface);
  border-color: var(--line);
  padding: 10px 18px;
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.case-card .case-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.case-card h3 {
  font-size: 1.15rem;
}

.case-card .industry {
  font-size: 0.85rem;
  color: var(--ink-3);
}

.case-card blockquote {
  color: var(--ink-2);
  font-size: 0.98rem;
}

.case-card .meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-item h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--ink-3);
}

/* demo page */
.demo-player {
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.demo-stage {
  position: relative;
  min-height: 440px;
  background:
    radial-gradient(600px circle at 85% 0%, rgba(106, 77, 245, 0.12), transparent 60%),
    radial-gradient(500px circle at 0% 100%, rgba(147, 51, 234, 0.12), transparent 60%),
    var(--bg);
}

.demo-scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}

.demo-scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.scene-copy .step-no {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene-copy h2 {
  margin: 16px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.scene-copy p {
  color: var(--ink-2);
  font-size: 1.05rem;
}

.scene-copy .link-arrow {
  margin-top: 18px;
}

.mock {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.mock .url-group {
  margin-bottom: 16px;
}

.typed-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 10px 0;
}

/* set --chars to the text length so the caret stops at the end */
.typed {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: middle;
  border-right: 2px solid var(--brand);
  width: 0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--ink);
}

.is-active .typed {
  animation: typing 1.6s steps(var(--chars, 30)) 0.3s forwards, caret 0.8s step-end infinite;
}

@keyframes typing {
  to { width: calc(var(--chars, 30) * 1ch + 2px); }
}

@keyframes caret {
  50% { border-color: transparent; }
}

.mock-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface-2);
  opacity: 0;
  transform: translateY(8px);
}

.is-active .mock-result {
  animation: pop-in 0.5s var(--ease) var(--delay, 0s) forwards;
}

.mock-result + .mock-result {
  margin-top: 10px;
}

@keyframes pop-in {
  to { opacity: 1; transform: none; }
}

.mock-result .grow {
  flex: 1;
  min-width: 0;
}

.mock-result strong {
  display: block;
  font-size: 0.9rem;
}

.mock-result small {
  color: var(--ink-3);
}

.fill-bar {
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: white;
  overflow: hidden;
}

.fill-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
}

.is-active .fill-bar span {
  animation: fill 2.6s var(--ease) 0.4s forwards;
}

@keyframes fill {
  to { width: 100%; }
}

.swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.swatch {
  height: 84px;
  border-radius: 14px;
  opacity: 0;
  transform: scale(0.8);
}

.is-active .swatch {
  animation: pop-in 0.5s var(--ease) forwards;
}

.is-active .swatch:nth-child(2) { animation-delay: 0.15s; }
.is-active .swatch:nth-child(3) { animation-delay: 0.3s; }
.is-active .swatch:nth-child(4) { animation-delay: 0.45s; }
.is-active .swatch:nth-child(5) { animation-delay: 0.6s; }

.swatch-codes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  text-align: center;
}

.bg-demo {
  position: relative;
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  background:
    repeating-conic-gradient(#e9edf5 0 25%, #ffffff 0 50%) 0 0 / 22px 22px;
}

.bg-demo .bg-photo {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffd6a5, #ff9eb5 50%, #a0c4ff);
  clip-path: inset(0 0 0 0);
}

.is-active .bg-demo .bg-photo {
  animation: wipe 2.2s var(--ease) 0.6s forwards;
}

@keyframes wipe {
  to { clip-path: inset(0 0 0 100%); }
}

.bg-demo .subject {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 150px;
  height: 200px;
  transform: translateX(-50%);
  border-radius: 75px 75px 24px 24px;
  background: linear-gradient(180deg, #4f6bff, #6a4df5);
  box-shadow: 0 20px 40px -20px rgba(67, 87, 240, 0.7);
}

.bg-demo .subject::before {
  content: '';
  position: absolute;
  top: -64px;
  left: 50%;
  width: 92px;
  height: 92px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #6a4df5, #4f6bff);
}

.scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: white;
  box-shadow: 0 0 18px 4px rgba(67, 87, 240, 0.8);
  opacity: 0;
}

.is-active .scan-line {
  animation: scan 2.2s var(--ease) 0.6s forwards;
}

@keyframes scan {
  0% { left: 0; opacity: 1; }
  95% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.export-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.export-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  border-radius: 16px;
  background: var(--surface-2);
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
}

.export-tile i {
  font-size: 1.3rem;
  color: var(--brand);
}

.is-active .export-tile {
  animation: pop-in 0.5s var(--ease) forwards;
}

.is-active .export-tile:nth-child(2) { animation-delay: 0.12s; }
.is-active .export-tile:nth-child(3) { animation-delay: 0.24s; }
.is-active .export-tile:nth-child(4) { animation-delay: 0.36s; }
.is-active .export-tile:nth-child(5) { animation-delay: 0.48s; }
.is-active .export-tile:nth-child(6) { animation-delay: 0.6s; }

.done-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: #e3f8ec;
  color: var(--green);
  font-weight: 700;
  opacity: 0;
}

.is-active .done-badge {
  animation: pop-in 0.5s var(--ease) 1.2s forwards;
}

.demo-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.demo-btn {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  transition: background 0.2s, transform 0.2s var(--ease);
}

.demo-btn:hover {
  transform: scale(1.06);
}

.demo-btn.play {
  width: 52px;
  height: 52px;
  background: var(--grad);
  color: white;
  box-shadow: 0 12px 24px -10px rgba(67, 87, 240, 0.7);
}

.demo-chapters {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.chapter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 4px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-3);
}

.chapter.is-active,
.chapter.is-done {
  color: var(--ink);
}

.chapter .track {
  height: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.chapter .track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
}

.chapter.is-done .track span {
  width: 100%;
}

.chapter .label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* working tools (QR, palette): form left, result right */
.tool-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: start;
}

.option-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.option-grid.compact .option-body {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-weight: 600;
  font-size: 0.9rem;
}

.option-grid.compact .option-body i {
  color: var(--brand);
}

.color-field input[type="color"] {
  height: 48px;
  padding: 4px;
  cursor: pointer;
}

.qr-preview,
.palette-result {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.qr-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 20px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
}

.qr-frame img,
.qr-frame canvas {
  width: 100% !important;
  height: auto !important;
  max-width: 320px;
  image-rendering: pixelated;
}

.qr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: var(--ink-3);
}

.qr-empty i {
  font-size: 2.4rem;
  opacity: 0.4;
}

.qr-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fde8e8;
  color: #b42318;
  font-size: 0.9rem;
}

.palette-controls {
  margin-top: 16px;
}

#palettePreview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

.palette-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  min-height: 120px;
}

.palette-swatches .qr-empty {
  grid-column: 1 / -1;
}

.swatch-btn {
  display: flex;
  align-items: flex-end;
  height: 96px;
  padding: 10px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(10, 22, 40, 0.08);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform 0.2s var(--ease);
}

.swatch-btn:hover {
  transform: translateY(-3px);
}

/* account chip in the header */
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.92rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.account-chip:hover {
  border-color: #c6d0e4;
  box-shadow: var(--shadow-sm);
}

.avatar.sm {
  width: 32px;
  height: 32px;
  font-size: 0.78rem;
}

.nav-actions form,
.sidebar-buttons form {
  display: contents;
}

/* flash messages (toasts) */
.flash-stack {
  position: fixed;
  top: calc(var(--header-h) + 16px);
  right: 16px;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 0.92rem;
  animation: pop-in 0.4s var(--ease) both;
  transition: opacity 0.3s, transform 0.3s;
}

.flash > i {
  margin-top: 3px;
}

.flash span {
  flex: 1;
}

.flash button {
  color: var(--ink-3);
}

.flash-success > i { color: var(--green); }
.flash-error > i { color: #b42318; }
.flash-info > i { color: var(--brand); }

.flash.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

/* form validation */
.form-alert {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fde8e8;
  color: #b42318;
  font-size: 0.9rem;
}

.form-alert.info {
  background: #e8f0fd;
  color: #1d4fa8;
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #b42318;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: #f04438;
}

/* error pages (403, 404, 429, 500, 503) */
.error-hero {
  padding-top: 72px;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin-bottom: 18px;
  /* static gradient: at this size the animated one shows a seam where it wraps */
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
}

.incident {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-3);
}

.incident code {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  user-select: all;
}

/* narrow auth cards (forgot / reset password) */
.auth-narrow {
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.auth-narrow .dz-icon {
  margin-bottom: 18px;
}

.auth-narrow h1 {
  font-size: 1.9rem;
}

.form-card code,
.prose code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* account settings */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.form-card.danger {
  border-color: #fecdca;
}

.form-card.danger h2 {
  color: #b42318;
}

.btn-danger {
  background: #d92d20;
  color: white;
}

.btn-danger:hover {
  background: #b42318;
  transform: translateY(-2px);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--line);
  text-align: center;
  color: var(--ink-3);
}

.empty-state i {
  font-size: 2rem;
  opacity: 0.5;
}

.empty-state strong {
  color: var(--ink);
}

.inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-form .field {
  flex: 1 1 220px;
}

/* converter flow: 1 add file → 2 choose output → 3 convert */
.flow {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* long file names must not widen the panel */
  gap: 8px;
}

.flow-step {
  position: relative;
  min-width: 0;
  padding: 8px 4px 20px 52px;
}

.flow-step + .flow-step {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

/* connecting line between the step numbers */
.flow-step::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--line), transparent);
}

.flow-step:last-child::before {
  display: none;
}

.flow-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px -52px;
}

.flow-head h3 {
  font-size: 1.15rem;
}

.flow-num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad);
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: 0 8px 18px -8px rgba(67, 87, 240, 0.7);
}

.flow-intro {
  margin: -6px 0 16px;
}

.flow-note {
  margin: 10px 0 0;
  text-align: center;
}

.supports {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.supports i {
  color: var(--green);
}

.file-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #eef2ff;
  border: 1.5px solid #c9d4fb;
}

.file-pill > div {
  flex: 1;
  min-width: 0;
}

.file-pill strong {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* very long names: two lines, then … */
  line-clamp: 2;
  line-height: 1.35;
}

.file-pill .btn {
  flex-shrink: 0;
}

.file-pill small {
  color: var(--ink-3);
}

.detected {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #e3f8ec;
  color: #0b5f37;
  font-size: 0.9rem;
}

.detected.bad {
  background: #fde8e8;
  color: #b42318;
}

.format-grid {
  margin-bottom: 4px;
}

.format-grid .option.is-same .option-body {
  opacity: 0.55;
  cursor: not-allowed;
}

.format-grid .option.is-same .option-body {
  position: relative;
}

.format-grid .option.is-same .option-body::after {
  content: 'your file';
  position: absolute;
  top: 4px;
  right: 8px;
  white-space: nowrap;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.option input:disabled + .option-body {
  cursor: not-allowed;
}

.convert-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.converter textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  font: inherit;
  resize: vertical;
}

/* job cards */
.job-list {
  display: grid;
  gap: 10px;
}

.job-list:not(:empty) {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.job-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  animation: pop-in 0.4s var(--ease) both;
}

.job-card .thumb {
  width: 44px;
  height: 44px;
}

.job-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.job-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-target {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
}

.job-card .bar {
  height: 6px;
  margin: 8px 0 6px;
  background: white;
}

.job-card .bar span {
  transition: width 0.4s var(--ease);
}

.job-status {
  font-size: 0.82rem;
  color: var(--ink-3);
}

.job-card[data-status="done"] .thumb {
  background: #e3f8ec;
  color: var(--green);
}

.job-card[data-status="failed"] .thumb {
  background: #fde8e8;
  color: #b42318;
}

.job-card[data-status="failed"] .bar span {
  background: #f04438;
}

.job-card[data-status="failed"] .job-status {
  color: #b42318;
  font-weight: 500;
}

/* generators: meme preview, icon previews, audio results */
.meme-frame {
  aspect-ratio: auto;
  padding: 12px;
}

.meme-frame canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.icon-previews {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  min-height: 160px;
  padding: 20px;
  border-radius: var(--radius);
  background:
    repeating-conic-gradient(#e9edf5 0 25%, #ffffff 0 50%) 0 0 / 16px 16px;
}

.icon-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.icon-preview canvas {
  image-rendering: pixelated;
  box-shadow: var(--shadow-sm);
}

.icon-preview figcaption {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
}

.job-action audio {
  height: 36px;
  vertical-align: middle;
  max-width: 260px;
}

/* code and data converter */
.code-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.code-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.code-label label {
  margin-bottom: 0;
}

.code-label .muted-note {
  margin: 0;
}

.code-label .text-link {
  font-size: 0.85rem;
}

#codeForm .option-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

#codeForm .option-body {
  white-space: nowrap;
}

.field textarea.code-area {
  min-height: 300px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  tab-size: 2;
  white-space: pre;
}

.field textarea.code-area[readonly] {
  background: var(--surface-2);
}

.code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

#codeForm .qr-error {
  margin-top: 14px;
}

.md-preview {
  margin-top: 20px;
}

.md-preview iframe {
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
}

/* image converter */
.range {
  width: 100%;
  accent-color: var(--brand);
}

.img-results {
  margin-top: 20px;
}

.img-results .thumb {
  overflow: hidden;
}

.img-results .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meta .saved {
  color: var(--green);
  font-weight: 600;
}

.meta .grew {
  color: #b42318;
  font-weight: 600;
}

/* legal / policy pages */
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.toc h4 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.toc a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.prose {
  padding: 44px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.prose .updated {
  margin-bottom: 28px;
  color: var(--ink-3);
  font-size: 0.9rem;
}

.prose h2 {
  margin: 36px 0 12px;
  font-size: 1.45rem;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose p + p {
  margin-top: 12px;
}

.prose ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0 20px;
}

.prose a {
  color: var(--brand);
  font-weight: 600;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.legal-nav a[aria-current="page"] {
  background: var(--ink);
  color: white;
}

.legal-nav a[aria-current="page"] i {
  color: white;
}

/* studio app layout with sidebar */
.app-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-top: 32px;
}

.app-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(100vh - var(--header-h) - 40px);
  padding: 16px;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  scrollbar-width: thin;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
}

.app-user strong {
  display: block;
  font-size: 0.95rem;
}

.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: white;
  font-weight: 700;
}

.app-nav-label {
  margin: 4px 10px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.app-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}

.app-nav a i {
  width: 18px;
  text-align: center;
  color: var(--ink-3);
}

.app-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.app-nav a.is-active {
  background: #eef2ff;
  color: var(--brand);
  font-weight: 600;
}

.app-nav a.is-active i {
  color: var(--brand);
}

.app-nav .count {
  margin-left: auto;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-3);
}

.app-storage {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-2);
  font-size: 0.85rem;
  color: var(--ink-2);
}

.app-storage .bar {
  height: 6px;
  margin: 8px 0 12px;
}

.app-main section[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.app-main .dash-head h1 {
  margin: 14px 0 6px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.app-main .dash-head p {
  color: var(--ink-3);
}

.app-main .dash-head .hero-actions {
  margin: 0;
}

/* ---------- 7. responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .hero-visual {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .bento-card,
  .bento-card.wide {
    grid-column: span 3;
  }

  .bento-card:last-child {
    grid-column: span 6;
  }

  .pro-panel,
  .dark-panel,
  .split {
    grid-template-columns: 1fr;
    padding: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tiers {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .dash-grid,
  .checkout,
  .storage {
    grid-template-columns: 1fr;
  }

  .benefits-card {
    position: static;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-scene {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px;
    align-content: center;
  }

  .demo-stage {
    min-height: 640px;
  }

  .tool-split,
  .legal-layout,
  .code-split,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .field textarea.code-area {
    min-height: 200px;
  }

  .toc {
    position: static;
  }

  /* studio sidebar turns into a sticky, scrollable pill bar */
  .app-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 16px;
  }

  .app-sidebar {
    top: var(--header-h);
    z-index: 20;
    flex-direction: row;
    max-height: none;
    padding: 8px;
    border-radius: 18px;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
  }

  .app-user,
  .app-storage,
  .app-nav-label,
  .app-nav.secondary {
    display: none;
  }

  .app-nav {
    display: flex;
    gap: 4px;
  }

  .app-nav a {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .app-nav .count {
    display: none;
  }
}

@media (max-width: 960px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-side .quote-card {
    display: none;
  }

  .editor-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .plans,
  .faq,
  .projects {
    grid-template-columns: 1fr;
  }

  .demo-chapters .label {
    display: none;
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 64px;
  }

  .container {
    padding: 0 20px;
  }

  .site-header .logo {
    font-size: 1.25rem;
    gap: 8px;
  }

  .site-header .logo-mark {
    width: 34px;
    height: 34px;
  }

  .mobile-toggle {
    width: 42px;
    height: 42px;
  }

  .section {
    padding: 72px 0;
  }

  .block {
    margin-bottom: 56px;
  }

  .hero {
    padding-bottom: 72px;
  }

  .page-hero {
    padding: 40px 0 40px;
  }

  .app-window {
    transform: none;
  }

  .float-card {
    display: none;
  }

  .orb {
    animation: none;
  }

  .platforms-inner {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 14px 22px;
  }

  .platforms-inner p {
    grid-column: 1 / -1;
    text-align: center;
  }

  .bento-card,
  .bento-card.wide,
  .bento-card:last-child {
    grid-column: span 6;
  }

  .bento-card {
    padding: 26px;
  }

  .pro-panel,
  .dark-panel,
  .cta-section,
  .split {
    padding: 36px 24px;
    border-radius: 28px;
  }

  .perks,
  .check-list {
    grid-template-columns: 1fr;
  }

  .tools-showcase-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tool-panel,
  .options-panel,
  .editor,
  .form-card {
    padding: 18px;
    border-radius: 24px;
  }

  .dropzone {
    padding: 32px 16px;
  }

  .url-group {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 8px 8px 8px 16px;
  }

  .url-group input {
    flex-basis: calc(100% - 40px);
  }

  .url-group .btn {
    width: 100%;
  }

  .select-row,
  .form-grid-2,
  .editor-groups .field-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .spec-grid {
    grid-template-columns: 1fr 1fr;
  }

  .auth-side,
  .auth-form {
    padding: 32px 24px;
  }

  .prose {
    padding: 28px 20px;
  }

  .flow-step {
    padding-left: 0;
  }

  .flow-step::before {
    display: none;
  }

  .flow-head {
    margin-left: 0;
  }

  .job-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .job-card .thumb {
    width: 36px;
    height: 36px;
  }

  .job-action {
    grid-column: 1 / -1;
  }

  .job-action .btn {
    width: 100%;
  }

  .pay-methods {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-fields {
    grid-template-columns: 1fr 1fr;
  }

  .card-fields .field:first-child {
    grid-column: 1 / -1;
  }

  .list-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
  }

  .thumb {
    width: 40px;
    height: 40px;
  }

  .hide-sm {
    display: none;
  }

  .faq details p {
    padding-left: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .demo-scene {
    padding: 24px 18px;
  }

  .demo-stage {
    min-height: 600px;
  }

  .demo-controls {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
  }

  .demo-chapters {
    order: -1;
    flex-basis: 100%;
  }
}

@media (max-width: 420px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .social-btns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .container {
    padding: 0 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* players: check the chosen file before converting and the result before downloading */
.media-preview {
  margin-top: 12px;
}

.media-preview audio {
  display: block;
  width: 100%;
}

.media-preview video,
.media-preview img {
  display: block;
  max-width: 100%;
  max-height: 360px;
  margin: 0 auto;
  border-radius: 12px;
  background: #0f172a;
}

.media-preview img {
  background: repeating-conic-gradient(#e8ecf5 0% 25%, #fff 0% 50%) 0 0 / 16px 16px; /* shows transparency */
}

.job-preview {
  grid-column: 1 / -1;
  margin-top: 0;
}

/* ===================== Palette Studio (palette/) ===================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

kbd {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid currentColor;
  font: 600 0.72rem var(--font-body);
  opacity: 0.8;
  line-height: 1.5;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.icon-btn:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--ink);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* segmented control */
.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-2);
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font: 600 0.9rem var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.seg-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.seg-sm .seg-btn {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.studio {
  padding: 18px;
}

.studio-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.studio-actions .btn kbd {
  margin-left: 4px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.stepper span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

.stepper .icon-btn {
  width: 32px;
  height: 32px;
}

/* the palette itself */
.strip {
  display: flex;
  height: clamp(320px, 46vh, 460px);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(10, 22, 40, 0.45);
}

.col {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 22px 10px;
  background: var(--c);
  transition: background 0.45s var(--ease), flex-grow 0.35s var(--ease);
}

.col:hover {
  flex-grow: 1.25;
}

.col-tools {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 6px;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
}

.col:hover .col-tools,
.col:focus-within .col-tools {
  opacity: 1;
}

.col-tools button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s;
}

.col.on-light .col-tools button {
  background: rgba(10, 22, 40, 0.08);
}

.col-tools button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.06);
}

.col.on-light .col-tools button:hover {
  background: rgba(10, 22, 40, 0.16);
}

/* a locked color always shows its lock */
.col.is-locked .col-tools {
  opacity: 1;
}

.col.is-locked .col-tools button:not(.lock) {
  opacity: 0;
  pointer-events: none;
}

.col.is-locked:hover .col-tools button:not(.lock) {
  opacity: 1;
  pointer-events: auto;
}

.col-info {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  max-width: 100%;
}

.col-hex {
  border: 0;
  background: none;
  color: inherit;
  font: 800 clamp(1.1rem, 2.1vw, 1.9rem) / 1.1 var(--font-display);
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 10px;
}

.col-hex:hover {
  background: rgba(255, 255, 255, 0.14);
}

.col.on-light .col-hex:hover {
  background: rgba(10, 22, 40, 0.07);
}

.col-name {
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.col-contrast {
  margin-top: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.6;
  white-space: nowrap;
}

.col-shades {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 2;
  animation: pop-in 0.25s var(--ease) both;
}

.col-shades button {
  flex: 1;
  border: 0;
  font: 700 0.8rem var(--font-body);
  cursor: pointer;
}

.col-shades button:hover {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.7);
}

/* export */
.studio-export {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-2);
  display: grid;
  gap: 12px;
}

.studio-export .code-block {
  margin: 0;
  max-height: 260px;
  overflow: auto;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* mode panes */
.studio-pane {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.pane-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mood-chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.mood-chip span:hover {
  border-color: #c9d4fb;
}

.mood-chip input:checked + span {
  border-color: var(--brand);
  background: #eef2ff;
  color: var(--brand);
}

.mood-chip input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* color wheel */
.wheel-pane {
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.wheel-wrap {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
}

.wheel-wrap canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 18px 40px -20px rgba(10, 22, 40, 0.5);
}

.wheel-handles {
  position: absolute;
  inset: 0;
  touch-action: none;
}

.wheel-dot {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(10, 22, 40, 0.45);
  cursor: grab;
  padding: 0;
}

.wheel-dot.is-base {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-width: 4px;
}

.wheel-dot.is-locked {
  cursor: not-allowed;
  border-style: dashed;
}

.wheel-controls {
  display: grid;
  gap: 10px;
}

.base-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.base-row input[type="color"] {
  width: 46px;
  height: 42px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.base-row input[type="text"] {
  width: 130px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: 600 1rem var(--font-mono);
  text-transform: uppercase;
}

/* from image */
.image-picked {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.image-frame {
  position: relative;
  max-width: min(100%, 520px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.image-frame img {
  display: block;
  max-width: 100%;
  max-height: 360px;
}

.img-marker {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* live design preview */
.studio-preview {
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.preview-head h3 {
  margin-top: 8px;
  font: 800 1.35rem var(--font-display);
}

.mock-site {
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  border: 1px solid rgba(10, 22, 40, 0.08);
  transition: background 0.45s, color 0.45s;
}

.ms-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--text) 6%, var(--bg));
}

.ms-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 22%, var(--bg));
}

.ms-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
}

.ms-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 1.05rem var(--font-display);
}

.ms-logo i {
  color: var(--primary);
}

.ms-nav nav {
  display: flex;
  gap: 18px;
  margin-right: auto;
  font-size: 0.9rem;
  opacity: 0.7;
}

.ms-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.45s;
}

.ms-btn.small {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.ms-btn.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 25%, transparent);
}

.ms-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 18px 28px 30px;
}

.ms-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.ms-hero h4 {
  margin: 14px 0 10px;
  font: 800 clamp(1.4rem, 3vw, 2.2rem) / 1.1 var(--font-display);
  letter-spacing: -0.02em;
}

.ms-hero p {
  max-width: 46ch;
  opacity: 0.72;
  font-size: 0.95rem;
}

.ms-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ms-art {
  position: relative;
  height: 190px;
}

.ms-art span {
  position: absolute;
  border-radius: 28px;
  transition: background 0.45s;
}

.ms-art span:nth-child(1) { inset: 0 30% 25% 0; transform: rotate(-6deg); }
.ms-art span:nth-child(2) { inset: 25% 0 0 35%; border-radius: 50%; opacity: 0.92; }
.ms-art span:nth-child(3) { width: 64px; height: 64px; right: 8%; top: 4%; border-radius: 18px; }

.ms-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 28px 28px;
}

.ms-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 6px 20px -12px rgba(10, 22, 40, 0.35);
  transition: background 0.45s;
}

.ms-card i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
}

.ms-card small {
  opacity: 0.65;
}

.ms-bars {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 60px;
}

.ms-bars span {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  transition: background 0.45s, height 0.45s;
}

.studio-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.studio-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* touch screens: the column buttons can't appear on hover */
@media (hover: none) {
  .col-tools { opacity: 1; }
}

@media (max-width: 860px) {
  .wheel-pane { grid-template-columns: minmax(0, 1fr); }
  .wheel-wrap { max-width: 300px; margin: 0 auto; }
  .ms-hero { grid-template-columns: minmax(0, 1fr); }
  .ms-art { height: 140px; }
  .ms-cards { grid-template-columns: minmax(0, 1fr); }
  .ms-nav nav { display: none; }
}

/* phones: colors become rows */
@media (max-width: 640px) {
  .studio { padding: 12px; }
  .studio-bar .seg { width: 100%; }
  .studio-bar .seg-btn { flex: 1; min-width: 0; justify-content: center; padding: 9px 6px; font-size: 0.82rem; line-height: 1.2; text-align: center; white-space: normal; }
  .studio-bar .seg-btn i { display: none; }
  .studio-actions { width: 100%; justify-content: space-between; }
  .strip { flex-direction: column; height: auto; }
  .col { flex-direction: row; justify-content: space-between; align-items: center; min-height: 86px; padding: 12px 14px; }
  .col:hover { flex-grow: 1; }
  .col-info { justify-items: start; text-align: left; }
  .col-tools { position: static; transform: none; opacity: 1; display: flex; order: 2; gap: 4px; }
  .col-tools button { width: 36px; height: 36px; }
  .col.is-locked .col-tools button:not(.lock) { opacity: 1; pointer-events: auto; }
  .col-shades { flex-direction: row; }
  .col-shades button { font-size: 0; }
}

/* Pro options for Free accounts: visible, locked, with a hint when clicked */
.option.is-locked {
  cursor: pointer;
}

.option.is-locked .option-body {
  opacity: 0.6;
  border-style: dashed;
}

.option.is-locked .option-body .fa-lock {
  font-size: 0.8em;
  color: var(--pro-ink);
}

.pro-nudge {
  margin: 10px 0 4px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--pro-bg);
  color: var(--pro-ink);
  font-size: 0.9rem;
}

.pro-nudge a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

/* Studio: project progress you set yourself */
.progress-form {
  display: grid;
  gap: 6px;
}

.progress-form .bar-head {
  cursor: pointer;
}

.progress-form .range {
  width: 100%;
}

/* ===================== Admin (/admin) ===================== */
.admin .dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.admin .dash-head h1 {
  font: 800 clamp(1.8rem, 3vw, 2.4rem) / 1.1 var(--font-display);
  margin: 10px 0 6px;
}

.admin-stats {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin-bottom: 8px;
}

a.stat-card {
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

a.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.admin-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.admin-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-filter .input-wrap {
  flex: 1 1 240px;
}

.admin-filter .select-wrap {
  flex: 0 1 190px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.admin-table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-2);
}

.admin-table tbody tr:hover {
  background: #f8faff;
}

.admin-table .cell-file {
  max-width: 280px;
  overflow-wrap: anywhere;
}

.row-actions {
  position: relative;
}

.row-actions summary {
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.row-actions summary::-webkit-details-marker {
  display: none;
}

.row-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 190px;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.row-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  font: 600 0.88rem var(--font-body);
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
}

.row-menu button:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.row-menu button.danger {
  color: #c62828;
}

.plan-chip,
.status-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--ink-2);
}

.plan-trial { background: #eef2ff; color: var(--brand); }
.plan-paid { background: var(--pro-bg); color: var(--pro-ink); }
.plan-none { background: #fdecec; color: #b42318; }
.status-done { background: #e7f6ee; color: var(--green); }
.status-failed { background: #fdecec; color: #b42318; }
.status-processing, .status-queued { background: #eef2ff; color: var(--brand); }

.job-error {
  color: #b42318;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  font-weight: 600;
}

.admin-bars {
  padding: 14px 18px;
  display: grid;
  gap: 10px;
}

.admin-bar {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 12px;
}

.admin-bar strong {
  text-align: right;
}

.admin-bar .bar {
  height: 10px;
}

.admin-messages {
  display: grid;
  gap: 14px;
}

.admin-message {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.admin-message header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.admin-message .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.admin-message-text {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-message footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-message .push-right {
  margin-left: auto;
}

.admin-warnings {
  display: grid;
  gap: 10px;
}

.admin-warning {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--pro-bg);
  color: var(--pro-ink);
}

.admin-warning > i {
  margin-top: 3px;
}

.admin-warning p {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.admin-ok {
  padding: 14px 18px;
  border-radius: 14px;
  background: #e7f6ee;
  color: var(--green);
  font-weight: 700;
}

.admin-maint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-kv .list-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
}

.admin-kv strong {
  overflow-wrap: anywhere;
  font-weight: 600;
}

.admin-kv .ok { color: var(--green); }
.admin-kv .bad { color: #c27c0e; }
.admin-kv .fa-circle-minus { color: var(--ink-3); }

.admin-log {
  max-height: 340px;
  overflow: auto;
  font-size: 0.78rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.app-storage.admin-warn {
  background: var(--pro-bg);
  color: var(--pro-ink);
}

.app-storage.admin-warn a {
  color: inherit;
  font-weight: 700;
}

@media (max-width: 900px) {
  .admin-cols { grid-template-columns: minmax(0, 1fr); }
  .admin-table { min-width: 680px; }
  .admin-bar { grid-template-columns: 90px minmax(0, 1fr) 40px; }
}

/* the search box outside a .field gets the same look as form fields */
.admin-filter .input-wrap input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}

.admin-filter .input-wrap input:focus {
  outline: none;
  border-color: var(--brand);
  background: white;
  box-shadow: 0 0 0 4px rgba(67, 87, 240, 0.12);
}

/* Password reset: steps + code box */
.reset-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 14px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-3);
}

.reset-steps li {
  counter-increment: step;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
}

.reset-steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink-2);
  font-size: 0.72rem;
}

.reset-steps li.is-active {
  background: #eef2ff;
  color: var(--brand);
}

.reset-steps li.is-active::before {
  background: var(--brand);
  color: #fff;
}

.reset-steps li.is-done::before {
  content: '\2713';
  background: var(--green);
  color: #fff;
}

.otp-input {
  width: 100%;
  padding: 14px 10px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fbfcfe;
  font: 800 2rem/1 var(--font-mono);
  letter-spacing: 0.45em;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink);
}

.otp-input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(67, 87, 240, 0.12);
}

.reset-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* Announcement bar (Admin → Settings) */
.announce-bar {
  padding: 9px 16px;
  background: var(--grad);
  color: #fff;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
}

.announce-bar a {
  color: inherit;
  text-decoration: none;
}

.announce-bar a:hover {
  text-decoration: underline;
}

/* Admin → Settings */
.admin-settings {
  display: grid;
  gap: 18px;
}

.admin-settings fieldset {
  border: 0;
  margin: 0;
  min-width: 0;
}

.admin-settings legend {
  display: flex;
  align-items: center;
  gap: 10px;
  float: left;
  width: 100%;
  margin-bottom: 6px;
  font: 800 1.15rem var(--font-display);
}

.admin-settings legend + .muted-note {
  clear: both;
  margin-bottom: 14px;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.admin-settings-grid .input-wrap input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}

.admin-settings-grid .input-wrap input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(67, 87, 240, 0.12);
}

.settings-tests {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.settings-tests .muted-note {
  margin-right: auto;
}

.pigapay-status {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pigapay-status li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.pigapay-status li > i {
  flex: none;
  width: 18px;
}

.pigapay-status .ok > i { color: #16a34a; }
.pigapay-status .warn > i { color: #d97706; }
.pigapay-status .error > i { color: #dc2626; }
.pigapay-status .info > i { color: var(--muted, #64748b); }

.pigapay-result {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pigapay-result li {
  flex-wrap: nowrap;
  align-items: flex-start;
}

.pigapay-result li > i {
  margin-top: 4px;
}

.pigapay-hook {
  flex: 1 1 260px;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9em;
}

.pigapay-howto {
  margin-top: 14px;
}

.pigapay-howto summary {
  cursor: pointer;
  font-weight: 600;
}

.pigapay-howto ol {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.pigapay-howto pre {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(127, 127, 127, 0.12);
  overflow-x: auto;
  font-size: 0.85em;
}

.settings-save {
  position: sticky;
  bottom: 16px;
  display: flex;
  justify-content: flex-end;
}

/* Contact page */
.contact-sent {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px 0;
  text-align: center;
}

.contact-sent .dz-icon {
  color: var(--green);
}

.btn-whatsapp {
  margin-top: 16px;
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1fb757;
  color: #fff;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 6px;
}

.contact-socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-size: 1.05rem;
  transition: background 0.2s, transform 0.2s;
}

.contact-socials a:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* Admin messages: source tabs + chips */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-tabs .chip {
  color: var(--ink-2);
}

.admin-tabs .chip:hover {
  border-color: var(--line);
}

.admin-tabs .chip.active {
  background: var(--navy);
  color: #fff;
}

.admin-tabs .count {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.18);
  font-size: 0.76rem;
  font-weight: 700;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.source-chip.source-team {
  background: var(--pro-bg);
  color: var(--pro-ink);
}

/* Account menu (header): Profile, Notifications, Studio, Admin, Log out */
.site-header:has(.account-menu.open) {
  z-index: 70; /* above the flash messages while the menu is open */
}

.account-menu {
  position: relative;
}

.account-menu .account-chip {
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.account-chip .avatar {
  position: relative;
}

.account-chip .chev {
  font-size: 0.7rem;
  color: var(--ink-3);
  transition: transform 0.2s var(--ease);
}

.account-menu.open .account-chip {
  border-color: #c6d0e4;
  box-shadow: var(--shadow-sm);
}

.account-menu.open .chev {
  transform: rotate(180deg);
}

.avatar-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--surface);
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: 300px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: account-pop 0.18s var(--ease);
}

@keyframes account-pop {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.account-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.account-head > div {
  display: grid;
  min-width: 0;
  flex: 1;
}

.account-head strong,
.account-head small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.account-head small {
  color: var(--ink-3);
  font-size: 0.8rem;
}

.plan-pill {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--ink-2);
}

.plan-pill.plan-pro {
  background: var(--pro-bg);
  color: var(--pro-ink);
}

.account-links {
  display: grid;
  gap: 2px;
}

.account-links a,
.account-logout button {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.account-links a i,
.account-logout button i {
  color: var(--ink-3);
  text-align: center;
}

.account-links a small {
  grid-column: 2 / -1;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 500;
}

.account-links a:has(.menu-count) {
  grid-template-columns: 22px 1fr auto;
}

.account-links a:hover,
.account-links a:focus-visible,
.account-logout button:hover,
.account-logout button:focus-visible {
  background: var(--surface-2);
  outline: none;
}

.account-links a:hover i,
.account-links a[aria-current] i {
  color: var(--brand);
}

.account-links a[aria-current] {
  background: #eef2ff;
}

.account-logout {
  display: block;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.nav-actions .account-logout {
  display: block;
}

.account-logout button,
.account-logout button i {
  color: #c0262d;
}

.account-logout button:hover {
  background: #fdecec;
}

.menu-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}

/* Mobile menu: who is signed in */
.sidebar-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px 10px;
}

.sidebar-account > div {
  display: grid;
  min-width: 0;
}

.sidebar-account small {
  overflow: hidden;
  color: var(--ink-3);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sidebar-buttons .menu-count {
  margin-left: 2px;
}

/* Account area: Profile + Notifications share a sidebar layout */
.acct-top {
  padding: 34px 0 30px;
  background:
    radial-gradient(600px 220px at 85% 0%, rgba(106, 77, 245, 0.14), transparent 70%),
    radial-gradient(500px 200px at 0% 100%, rgba(147, 51, 234, 0.12), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.acct-top .breadcrumbs {
  margin-bottom: 10px;
}

.acct-top h1 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.acct-top p {
  margin-top: 4px;
  color: var(--ink-3);
}

.acct-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 28px;
  padding-bottom: 72px;
}

.acct-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 12px;
}

.acct-card {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 26px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #eef2ff 0, #eef2ff 58px, var(--surface) 58px);
  text-align: center;
}

.avatar.lg {
  width: 76px;
  height: 76px;
  margin-bottom: 8px;
  font-size: 1.5rem;
  border: 4px solid var(--surface);
  box-shadow: 0 8px 22px -10px rgba(67, 87, 240, 0.6);
}

.acct-card strong {
  font-size: 1.05rem;
}

.acct-card small {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct-card .plan-pill {
  margin-top: 8px;
}

.acct-since {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 0.76rem;
}

.acct-nav {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.acct-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.93rem;
  transition: background 0.15s, color 0.15s;
}

.acct-nav a i {
  width: 18px;
  color: var(--ink-3);
  text-align: center;
}

.acct-nav a span:first-of-type {
  flex: 1;
}

.acct-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.acct-nav a.active {
  background: #eef2ff;
  color: var(--brand);
}

.acct-nav a.active i {
  color: var(--brand);
}

.acct-nav a.is-danger:hover,
.acct-nav a.is-danger.active {
  background: #fdecec;
  color: #c0262d;
}

.acct-nav a.is-danger:hover i,
.acct-nav a.is-danger.active i {
  color: #c0262d;
}

.acct-logout button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: #c0262d;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.acct-logout button:hover {
  background: #fdecec;
  border-color: #f7c6c6;
}

.acct-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.acct-section {
  scroll-margin-top: calc(var(--header-h) + 20px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.acct-section.danger {
  border-color: #f7d4d4;
  background: linear-gradient(180deg, #fffafa, var(--surface));
}

.acct-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.acct-head > div {
  flex: 1;
  min-width: 0;
}

.acct-head h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.acct-head p {
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 0.92rem;
}

.acct-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eef2ff;
  color: var(--brand);
  font-size: 1.05rem;
}

.acct-icon.danger {
  background: #fdecec;
  color: #c0262d;
}

.acct-form {
  display: grid;
  gap: 18px;
}

.acct-form .field {
  margin: 0;
}

.acct-narrow,
.acct-email-confirm .field {
  max-width: calc(50% - 8px);
}

.acct-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding-top: 4px;
}

.acct-actions .push-right {
  margin-left: auto;
}

.acct-actions .text-link {
  font-size: 0.9rem;
}

button.text-link {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.text-link.muted {
  color: var(--ink-3);
  font-weight: 500;
  font-size: 0.88rem;
}

.text-link.muted:hover {
  color: #c0262d;
}

/* Plan box */
.acct-plan {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface-2);
}

.acct-plan.plan-pro {
  background: linear-gradient(120deg, #fff6e6, #f3efff);
}

.acct-plan-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.acct-plan-main > div {
  display: grid;
  gap: 2px;
}

.acct-plan-main strong {
  font-size: 1.1rem;
}

.acct-plan-main span {
  color: var(--ink-2);
  font-size: 0.9rem;
}

.acct-plan-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.plan-pro .acct-plan-icon {
  color: var(--pro-ink);
}

.acct-plan-meter {
  display: grid;
  gap: 6px;
}

.acct-plan-meter .bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.08);
  overflow: hidden;
}

.acct-plan-meter .bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #f08c00);
}

.acct-plan-meter small {
  color: var(--ink-2);
  font-size: 0.84rem;
}

/* Delete */
.acct-delete > summary {
  list-style: none;
  width: fit-content;
  cursor: pointer;
}

.acct-delete > summary::-webkit-details-marker {
  display: none;
}

.acct-delete[open] > summary {
  margin-bottom: 18px;
}

.btn.danger-ghost {
  border-color: #f2c2c2;
  color: #c0262d;
}

.btn.danger-ghost:hover {
  background: #fdecec;
}

/* Notifications */
.notif-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.seg-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
}

.seg-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.88rem;
}

.seg-tabs a span {
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.07);
  font-size: 0.74rem;
}

.seg-tabs a.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.seg-tabs a.active span {
  background: var(--brand);
  color: #fff;
}

.notif-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notif-day {
  margin: 22px 0 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.notif-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notif-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.notif-item:hover {
  border-color: #cfd8ea;
  box-shadow: var(--shadow-sm);
}

.notif-item.is-unread {
  border-color: #d6defc;
  background: linear-gradient(90deg, #f3f6ff, var(--surface) 70%);
}

.notif-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eef2ff;
  color: var(--brand);
  font-size: 1.05rem;
}

.kind-pro .notif-icon,
.kind-trial .notif-icon {
  background: var(--pro-bg);
  color: var(--pro-ink);
}

.kind-security .notif-icon {
  background: #fdecec;
  color: #c0262d;
}

.kind-ending .notif-icon,
.kind-ended .notif-icon {
  background: #fff6e0;
  color: #b7791f;
}

.kind-message .notif-icon,
.kind-welcome .notif-icon {
  background: #e7f7ee;
  color: var(--green);
}

.notif-body {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: inherit;
}

.notif-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.notif-title strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.notif-new {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.notif-text {
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.notif-body small {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 0.8rem;
}

.notif-open {
  color: var(--brand);
  font-weight: 600;
}

.notif-open i {
  font-size: 0.7rem;
  transition: transform 0.15s;
}

.notif-body:hover .notif-title strong {
  color: var(--brand);
}

.notif-body:hover .notif-open i {
  transform: translateX(3px);
}

.notif-delete {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
}

.notif-delete:hover {
  background: #fdecec;
  color: #c0262d;
}

.notif-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 48px 16px 28px;
  text-align: center;
}

.notif-empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: #eef2ff;
  color: var(--brand);
  font-size: 1.5rem;
}

.notif-empty p {
  max-width: 380px;
  color: var(--ink-3);
}

@media (max-width: 960px) {
  .acct-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 18px;
  }

  .acct-side {
    position: static;
  }

  .acct-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: start;
    align-items: center;
    column-gap: 14px;
    row-gap: 0;
    padding: 16px;
    background: var(--surface);
    text-align: left;
  }

  .acct-card .avatar.lg {
    grid-row: span 2;
    width: 54px;
    height: 54px;
    margin: 0;
    font-size: 1.1rem;
    border: 0;
  }

  .acct-card strong,
  .acct-card small {
    grid-column: 2;
  }

  .acct-card .plan-pill {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .acct-since {
    display: none;
  }

  /* links become a row of tabs */
  .acct-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .acct-nav a {
    flex-shrink: 0;
    gap: 8px;
    padding: 9px 12px;
    white-space: nowrap;
  }

  .acct-logout {
    display: none; /* Log out is in the menu */
  }
}

@media (max-width: 600px) {
  .acct-section {
    padding: 20px 16px;
  }

  .acct-head {
    gap: 12px;
  }

  .acct-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .acct-narrow,
  .acct-email-confirm .field {
    max-width: none;
  }

  .acct-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .acct-actions .push-right {
    margin-left: 0;
  }

  .notif-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .seg-tabs {
    align-self: flex-start;
  }

  .notif-item {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px 10px 14px 12px;
  }

  .notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 0.9rem;
  }
}

/* About page */
.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 40px;
  align-items: start;
  padding-top: 56px;
}

.about-text h2 {
  margin: 14px 0 16px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
}

.about-text p {
  margin-bottom: 14px;
  color: var(--ink-2);
  font-size: 1.04rem;
  line-height: 1.75;
}

.company-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 30px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(106, 77, 245, 0.35), transparent 70%),
    var(--navy);
  color: #aebbd6;
}

.company-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  font-size: 1.3rem;
}

.company-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8ea3ff;
}

.company-card h3 {
  margin: 4px 0 10px;
  color: #fff;
  font-size: 1.5rem;
}

.company-card p {
  line-height: 1.65;
}

.company-card ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 22px;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.company-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.company-card li i {
  width: 18px;
  color: #8ea3ff;
  text-align: center;
}

.company-card a:not(.btn) {
  color: #fff;
}

.company-card a:not(.btn):hover {
  text-decoration: underline;
}

.about-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.about-tool {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}

.about-tool .ficon {
  grid-row: span 2;
}

.about-tool strong {
  align-self: end;
}

.about-tool small {
  align-self: start;
  color: var(--ink-3);
}

.about-tool:hover {
  transform: translateY(-3px);
  border-color: #cfd8ea;
  box-shadow: var(--shadow-md);
}

@media (max-width: 960px) {
  .about-story {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .about-tools {
    grid-template-columns: 1fr 1fr;
  }

  .company-card {
    position: static;
  }
}

@media (max-width: 520px) {
  .about-tools {
    grid-template-columns: 1fr;
  }

  .company-card {
    padding: 24px 20px;
  }
}

/* Header between tablet and laptop: 7 links + account buttons must fit on one line */
.nav-link {
  white-space: nowrap;
}

@media (max-width: 1180px) and (min-width: 961px) {
  .nav-inner {
    gap: 14px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .nav-links > .nav-link:first-child {
    display: none; /* the logo already goes home */
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .btn {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Result card with several files: WhatsApp status parts (play / save each) */
.job-action {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.job-parts {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.job-parts ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-parts li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.job-parts .part-name {
  display: grid;
  flex: 1;
  min-width: 140px;
}

.job-parts .part-name small {
  color: var(--ink-3);
}

.job-parts video {
  width: 100%;
  max-height: 420px;
  border-radius: 12px;
  background: #000;
}

/* QR: "Use my current location" row */
.qr-geo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
}

/* PDF tools (pdf/) */
.pdf-modes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pdf-modes .option-body strong i {
  margin-right: 4px;
  color: var(--brand);
}

.pdf-tool .dropzone.is-over {
  border-color: var(--brand);
  background: #eef0ff;
}

.pdf-files {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.pdf-files li,
.pdf-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.pdf-files .pdf-loading,
.pdf-files .pdf-more {
  justify-content: center;
  border-style: dashed;
  color: var(--ink-3);
  font-size: 0.9rem;
}

.pdf-files .pdf-more label {
  cursor: pointer;
  color: var(--brand);
  font-weight: 600;
}

.pdf-ico,
.pdf-done {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #fdecec;
  color: #d93025;
}

.pdf-done {
  background: #e7f7ee;
  color: var(--green);
}

.pdf-name {
  display: grid;
  flex: 1;
  min-width: 0;
}

.pdf-name strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pdf-name small {
  color: var(--ink-3);
}

.pdf-btn {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
}

.pdf-btn:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--ink);
}

.pdf-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.pdf-opts {
  margin-top: 16px;
}

.pdf-opts .field {
  margin-top: 12px;
}

.pdf-result {
  margin-top: 12px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .pdf-modes {
    grid-template-columns: 1fr 1fr;
  }
}

/* Team page (team.php) and Admin → Teams */
.team-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.team-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.team-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.team-who {
  display: grid;
  flex: 1;
  min-width: 160px;
}

.team-who small {
  color: var(--ink-3);
  overflow-wrap: anywhere;
}

.team-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.team-badge.is-owner {
  background: var(--pro-bg);
  color: var(--pro-ink);
}

.team-badge.is-active {
  background: #e7f7ee;
  color: var(--green);
}

.team-row-actions {
  display: flex;
  gap: 6px;
}

.team-invite {
  border-color: #cfd8fb;
  background: linear-gradient(120deg, #f3f6ff, var(--surface));
}

.admin-team-new h3 {
  margin-bottom: 14px;
}

.row-seats {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
}

.row-seats label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}

.row-seats input {
  width: 70px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

/* Team: waiting for payment + "how it works" steps */
.acct-plan.is-pending {
  background: linear-gradient(120deg, #fff8e6, #f6f2ff);
}

.team-steps {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.inline-activate {
  display: inline-block;
  margin-right: 6px;
}

/* Meme editor: text layers, alignment buttons, draggable canvas */
.meme-blank {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: -6px;
}

.meme-blank input[type="color"] {
  width: 38px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.meme-layers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.meme-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.meme-chip i {
  color: var(--ink-3);
  font-size: 0.75rem;
}

.meme-chip.active {
  border-color: var(--brand);
  background: #eef0ff;
  color: var(--brand);
}

.meme-chip.active i {
  color: var(--brand);
}

.meme-chip.add {
  border-style: dashed;
  color: var(--brand);
}

.meme-text-settings {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.meme-text-settings:disabled {
  opacity: 0.5;
}

.meme-text-settings textarea {
  min-height: 0;
}

.meme-align {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.meme-align label {
  position: relative;
}

.meme-align input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.meme-align span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 34px;
  border-radius: 9px;
  color: var(--ink-3);
  cursor: pointer;
}

.meme-align input:checked + span {
  background: var(--brand);
  color: #fff;
}

.meme-align input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.meme-checks,
.meme-layer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.meme-layer-actions {
  gap: 8px;
}

.meme-frame canvas {
  touch-action: none; /* finger drags move the text instead of scrolling */
  cursor: default;
}

.meme-frame canvas.is-dragging {
  cursor: grabbing !important;
}

.meme-frame canvas:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* Sticker maker: see-through checkerboard behind the preview */
.sticker-frame canvas {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 14px;
  background:
    conic-gradient(#e9edf5 25%, #ffffff 0 50%, #e9edf5 0 75%, #ffffff 0) 0 0 / 24px 24px;
}

.sticker-shapes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sticker-shapes .option-body i {
  margin-right: 4px;
  color: var(--brand);
}

.sticker-downloads {
  display: flex;
  gap: 10px;
}

.sticker-downloads .btn-gradient {
  flex: 1;
}

@media (max-width: 760px) {
  .sticker-shapes {
    grid-template-columns: 1fr 1fr;
  }
}

/* "Install the PigaTools app" (footer) - visible only when the browser offers it */
.install-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.install-app:hover {
  background: var(--grad);
  border-color: transparent;
}

.install-app[hidden] {
  display: none;
}

/* Language switch (EN / SW) in the header */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}

.lang-switch:hover {
  background: var(--surface-2);
  color: var(--brand);
}

.lang-link i {
  margin-right: 4px;
}

/* ---------- Open a file: "drop any file" box (home page and /open) ---------- */
.open-box {
  max-width: 860px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.open-home {
  position: relative;
  z-index: 2;
  margin-top: -36px;
  margin-bottom: 28px;
}

.open-drop.is-drag {
  border-color: var(--brand);
  background: #eef2ff;
}

.open-result {
  padding: 10px;
}

.open-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.open-file > div {
  flex: 1;
  min-width: 0;
}

.open-file strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.open-file small {
  color: var(--ink-3);
}

.open-file-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e0e7ff;
  color: var(--brand);
  font-size: 1.2rem;
}

.open-ask {
  margin: 18px 4px 12px;
  font-size: 1.05rem;
}

.open-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.open-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.open-choice:hover,
.open-choice:focus-visible {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.open-choice > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.open-choice strong {
  display: block;
  font-size: 0.95rem;
}

.open-choice small {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.open-choice > i {
  color: var(--ink-3);
  font-size: 0.85rem;
}

.open-choice-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--brand);
}

.open-none {
  margin: 16px 4px 4px;
  color: var(--ink-3);
}

.open-tip {
  max-width: 860px;
  margin: 18px auto 0;
  color: var(--ink-3);
  font-size: 0.9rem;
  text-align: center;
}

.open-tip i {
  margin-right: 6px;
  color: var(--brand);
}

@media (max-width: 640px) {
  .open-choices {
    grid-template-columns: 1fr;
  }

  .open-home {
    margin-top: -20px;
  }
}

/* Get Pro: week, month and year side by side; stacked on small phones */
.plan-options {
  grid-template-columns: none;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
}

@media (max-width: 480px) {
  .plan-options {
    grid-auto-flow: row;
  }
}

.plan-week {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: #dfe6ff;
}

.plan-week span {
  color: #aebbd6;
}

/* Share buttons only where the browser can share files (phones, some desktops) - see PTShare in main.js */
.share-only {
  display: none !important;
}

.can-share-files .share-only {
  display: inline-flex !important;
}

.pt-share {
  margin-left: 6px;
}

/* Account: invite friends */
.invite-box {
  display: grid;
  gap: 12px;
}

.invite-box input {
  font-family: var(--font-mono, monospace);
  font-size: 0.88rem;
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-invite {
  display: block;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
}

.app-invite i {
  margin-right: 4px;
}

/* ---------- How-to guides (/guides) ---------- */
.guide {
  max-width: 860px;
}

.guide-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-steps li {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.guide-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.guide-steps h2 {
  margin: 4px 0 4px;
  font-size: 1.05rem;
}

.guide-steps p {
  margin: 0;
  color: var(--ink-2, #3b4a63);
}

.guide-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 22px;
}

.guide-cta span {
  color: var(--ink-3);
  font-size: 0.9rem;
}

.guide-tips {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: #fff8e6;
}

.guide-tips h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.guide-tips h2 i {
  color: #e0a100;
}

.guide-tips ul {
  margin: 0;
  padding-left: 20px;
}

.guide-tips li + li {
  margin-top: 6px;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.guide-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.guide-card:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.guide-card strong {
  flex: 1;
  font-size: 0.95rem;
}

.guide-card > i {
  color: var(--ink-3);
}

.guide-card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef2ff;
  color: var(--brand);
}

/* Home: the tools this visitor used last (filled from localStorage by main.js) */
.recent-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  max-width: 860px;
  margin: 14px auto 0;
  font-size: 0.88rem;
  color: var(--ink-3);
}

.recent-tools[hidden] {
  display: none;
}

.recent-tools > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recent-tool {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.recent-tool:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.credit-opt {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--ink-3);
}

