/* ============================================================================
   AppNGen landing — ported verbatim from prototype/5 (hue-driven, light/dark).
   Design system tokens + components are identical to the prototype; the
   landing layout + pricing use the same values. JS hooks (data-app-link,
   hero-prompt, pricing toggles, .reveal.in, .nav.scrolled) are preserved.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;450;500;600&display=swap');

:root {
  --h: 222;     /* theme hue — blue by default (hsl(222 85% 55%)); the wheel changes this */
  --s: 85%;     /* primary saturation */

  /* ---- LIGHT theme (default) ---- */
  --bg:      hsl(var(--h) 55% 97%);
  --bg-2:    hsl(var(--h) 50% 94%);
  --bg-3:    hsl(var(--h) 48% 90%);
  --panel:   hsl(var(--h) 45% 99.4%);
  --panel-2: hsl(var(--h) 45% 98%);
  --bar:     hsl(var(--h) 55% 97% / .75);

  --ink:     hsl(var(--h) 28% 15%);
  --ink-2:   hsl(var(--h) 22% 27%);
  --muted:   hsl(var(--h) 12% 45%);
  --faint:   hsl(var(--h) 14% 62%);

  --line:    hsl(var(--h) 35% 90%);
  --line-2:  hsl(var(--h) 32% 85%);
  --line-3:  hsl(var(--h) 30% 79%);

  --primary:      hsl(var(--h) var(--s) 58%);
  --primary-600:  hsl(var(--h) var(--s) 50%);
  --primary-700:  hsl(var(--h) calc(var(--s) - 6%) 42%);
  --primary-ink:  #fff;
  --primary-soft: hsl(var(--h) calc(var(--s) - 18%) 94%);
  --primary-line: hsl(var(--h) calc(var(--s) - 22%) 84%);

  --grad: linear-gradient(100deg,
      hsl(calc(var(--h) + 24) var(--s) 62%),
      hsl(var(--h) var(--s) 56%),
      hsl(calc(var(--h) - 34) 78% 62%));
  --grad-warm: linear-gradient(120deg,
      hsl(var(--h) 80% 94%),
      hsl(calc(var(--h) + 22) 80% 95%) 55%,
      hsl(calc(var(--h) - 30) 80% 95%));

  --wash-1: hsl(var(--h) var(--s) 55% / .12);
  --wash-2: hsl(calc(var(--h) - 34) 80% 60% / .1);
  --wash-3: hsl(calc(var(--h) + 26) 85% 55% / .08);

  --amber:#E39007; --amber-soft:rgba(227,144,7,.16);
  --rose:#E8477F;  --rose-soft:rgba(232,71,127,.16);
  --teal:#12A08F;  --teal-soft:rgba(18,160,143,.17);
  --indigo:#5B67E8;--indigo-soft:rgba(91,103,232,.16);
  --grape:#9A54D8; --grape-soft:rgba(154,84,216,.16);
  --ok:#0E9F6E;    --ok-soft:rgba(14,159,110,.16);
  --warn:#E39007;  --warn-soft:rgba(227,144,7,.16);
  --info:#5B67E8;  --info-soft:rgba(91,103,232,.16);

  --radius-sm: 9px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --pill:      999px;
  --maxw:      1120px;

  --shadow-xs: 0 1px 2px hsl(var(--h) 40% 30% / .07);
  --shadow-sm: 0 2px 8px -1px hsl(var(--h) 40% 30% / .1), 0 1px 2px hsl(var(--h) 40% 30% / .06);
  --shadow-md: 0 14px 32px -12px hsl(var(--h) 45% 30% / .26);
  --shadow-lg: 0 26px 60px -20px hsl(var(--h) 45% 30% / .34);
  --ring: 0 0 0 3px var(--primary-soft);

  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---- DARK theme ---- */
:root[data-theme="dark"] {
  --bg:      hsl(var(--h) 26% 8%);
  --bg-2:    hsl(var(--h) 22% 12%);
  --bg-3:    hsl(var(--h) 20% 17%);
  --panel:   hsl(var(--h) 20% 12%);
  --panel-2: hsl(var(--h) 18% 15%);
  --bar:     hsl(var(--h) 24% 9% / .72);

  --ink:     hsl(var(--h) 25% 95%);
  --ink-2:   hsl(var(--h) 15% 82%);
  --muted:   hsl(var(--h) 10% 66%);
  --faint:   hsl(var(--h) 10% 50%);

  --line:    hsl(var(--h) 15% 22%);
  --line-2:  hsl(var(--h) 15% 28%);
  --line-3:  hsl(var(--h) 14% 34%);

  --primary:      hsl(var(--h) var(--s) 62%);
  --primary-600:  hsl(var(--h) var(--s) 56%);
  --primary-700:  hsl(var(--h) var(--s) 72%);
  --primary-soft: hsl(var(--h) var(--s) 60% / .17);
  --primary-line: hsl(var(--h) var(--s) 60% / .34);

  --grad-warm: linear-gradient(120deg,
      hsl(var(--h) 45% 22% / .55),
      hsl(calc(var(--h) - 30) 45% 22% / .4));

  --wash-1: hsl(var(--h) var(--s) 55% / .16);
  --wash-2: hsl(calc(var(--h) - 34) 80% 55% / .12);
  --wash-3: hsl(calc(var(--h) + 26) 85% 55% / .1);

  --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
  --shadow-sm: 0 2px 10px -2px rgba(0,0,0,.5);
  --shadow-md: 0 16px 34px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 28px 64px -20px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px; line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(65% 45% at 100% 0%, var(--wash-1), transparent 60%),
    radial-gradient(55% 45% at 0% 8%, var(--wash-2), transparent 60%),
    radial-gradient(60% 50% at 50% 100%, var(--wash-3), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s, color .3s;
}

h1,h2,h3,h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: 2.5rem; letter-spacing: -.03em; }
h2 { font-size: 1.7rem; letter-spacing: -.025em; }
h3 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }
::selection { background: var(--primary-soft); }

.muted { color: var(--muted); } .faint { color: var(--faint); }
.center { text-align: center; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-700); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.row { display: flex; align-items: center; gap: 12px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  font-family: var(--font); font-weight: 500; font-size: .9rem;
  color: var(--ink); background: var(--panel);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  cursor: pointer; white-space: nowrap;
  transition: background .16s, border-color .16s, box-shadow .16s, transform .12s var(--ease), color .16s;
}
.btn:hover { background: var(--panel-2); border-color: var(--line-3); }
.btn:active { transform: translateY(.5px); }
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  color: var(--primary-ink); background: var(--primary); border-color: transparent;
  box-shadow: 0 1px 2px hsl(var(--h) 60% 30% / .25), 0 8px 20px -8px hsl(var(--h) var(--s) 55% / .6);
}
.btn-primary:hover { background: var(--primary-600); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); }

.btn-soft { background: var(--primary-soft); color: var(--primary-700); border-color: var(--primary-line); }
.btn-soft:hover { background: var(--bg-3); }

.btn-sm { height: 32px; padding: 0 12px; font-size: .84rem; border-radius: var(--radius-sm); }
.btn-lg { height: 46px; padding: 0 22px; font-size: .96rem; }
.btn-block { width: 100%; }

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px;
  font-size: .85rem; color: var(--muted); background: var(--panel);
  border: 1px solid var(--line-2); border-radius: var(--pill); cursor: pointer;
  font-family: var(--font);
  transition: color .15s, border-color .15s, background .15s, transform .15s var(--ease);
}
.chip:hover { color: var(--primary-700); border-color: var(--primary-line); background: var(--primary-soft); transform: translateY(-1px); }
.chip.on { color: var(--primary-700); border-color: var(--primary-line); background: var(--primary-soft); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px;
  font-size: .74rem; font-weight: 550; border-radius: var(--pill);
  background: var(--bg-2); color: var(--muted);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok    { background: var(--ok-soft);    color: var(--ok); }
.badge-info  { background: var(--info-soft);  color: var(--info); }
.badge-warn  { background: var(--warn-soft);  color: var(--warn); }
.badge-draft { background: var(--bg-3);        color: var(--muted); }

/* ---------- cards ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.card-pad { padding: 22px; }
.card-hover { transition: border-color .18s, box-shadow .18s, transform .18s var(--ease); }
.card-hover:hover { border-color: var(--primary-line); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ---------- prompt box ---------- */
.prompt {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm); padding: 16px 16px 12px;
  transition: border-color .18s, box-shadow .18s;
}
.prompt:focus-within { border-color: var(--primary-line); box-shadow: var(--shadow-md), var(--ring); }
.prompt textarea {
  display: block; width: 100%; border: 0; outline: 0; resize: none;
  font-family: var(--font); font-size: 1rem; line-height: 1.5; color: var(--ink);
  background: transparent; min-height: 54px;
}
.prompt textarea::placeholder { color: var(--faint); }
.prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.prompt-tools { display: flex; align-items: center; gap: 8px; }
.prompt-tool {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.prompt-tool:hover { background: var(--primary-soft); color: var(--primary-700); border-color: var(--primary-line); }
.prompt-send {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius);
  border: 0; cursor: pointer; color: #fff; background: var(--grad);
  box-shadow: 0 6px 18px -6px hsl(var(--h) var(--s) 55% / .7);
  transition: transform .12s var(--ease), filter .18s;
}
.prompt-send:hover { transform: translateY(-1px); filter: brightness(1.05); }
.prompt-send:active { transform: translateY(0); }
.prompt-send:disabled { opacity: .6; cursor: default; }
.prompt-send svg { width: 18px; height: 18px; }
.prompt-error { margin-top: 8px; font-size: .85rem; color: var(--primary-700); }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--grad);
  box-shadow: 0 4px 12px -3px hsl(var(--h) var(--s) 55% / .6); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; letter-spacing: -.02em; }

/* ============================================================================
   LANDING LAYOUT (ported from prototype/5 landing.html)
   ============================================================================ */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bar); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: .9rem; color: var(--muted); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--primary-700); background: var(--primary-soft); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); background: var(--panel); border-radius: var(--radius); cursor: pointer; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-menu { display: none; }

.hero { padding: 92px 0 56px; text-align: center; }
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.85rem, 3.8vw, 2.65rem); letter-spacing: -.03em; line-height: 1.15; }
.hero-sub { margin: 14px auto 28px; max-width: 500px; font-size: 1.05rem; color: var(--muted); }
/* 600 + 10% each side → 20% wider overall */
.prompt-wrap { max-width: 720px; margin: 0 auto; text-align: left; }
.prompt-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.prompt-foot { margin-top: 18px; font-size: .82rem; color: var(--faint); text-align: center; }

.pipeline { display: flex; align-items: center; justify-content: center; gap: 10px 16px; flex-wrap: wrap; padding: 30px 0 4px; }
.pipeline .eyebrow { width: 100%; text-align: center; margin-bottom: 16px; }
.pnode { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: .92rem; }
.pnode .d { width: 8px; height: 8px; border-radius: 50%; }
.pipeline .sep { color: var(--line-3); }

.section { padding: 84px 0; }
.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { margin: 12px 0 10px; }
.section-head p { color: var(--muted); }

.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat .card { padding: 24px; }
.feat .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.feat h3 { margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: .92rem; }
.ic-coral  { background: var(--primary-soft); color: var(--primary); }
.ic-teal   { background: var(--teal-soft);   color: var(--teal); }
.ic-amber  { background: var(--amber-soft);  color: var(--amber); }
.ic-rose   { background: var(--rose-soft);   color: var(--rose); }
.ic-indigo { background: var(--indigo-soft); color: var(--indigo); }
.ic-grape  { background: var(--grape-soft);  color: var(--grape); }

/* pricing (same design language) */
.pricing-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.toggle { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--pill); }
.toggle button { height: 34px; padding: 0 16px; border: 0; border-radius: var(--pill); cursor: pointer; background: transparent; color: var(--muted); font-family: var(--font); font-size: .86rem; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; transition: background .15s, color .15s, box-shadow .15s; }
.toggle button.active { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); }
.toggle .save { font-size: .72rem; color: var(--primary-700); font-weight: 600; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1080px) and (min-width: 761px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
.price { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-xs); }
.price.featured { border-color: var(--primary-line); box-shadow: var(--shadow-md); }
.price .badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); height: auto; padding: 3px 12px; background: var(--grad); color: #fff; font-size: .72rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.price header h3 { font-size: 1.2rem; }
.price .amount { display: flex; align-items: baseline; gap: 2px; margin: 12px 0 4px; }
.price .cur { font-size: 1.3rem; font-weight: 700; font-family: var(--font-display); }
.price .val { font-size: 2.6rem; font-weight: 800; font-family: var(--font-display); letter-spacing: -.03em; }
.price .per { color: var(--faint); font-size: .9rem; margin-left: 2px; }
.price .price-sub { min-height: 18px; font-size: .82rem; color: var(--faint); }
.price .includes { margin: 6px 0 16px; font-size: .86rem; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.price li { position: relative; padding-left: 26px; font-size: .9rem; color: var(--ink); }
.price li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12l4 4L19 7' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12l4 4L19 7' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pricing-foot { text-align: center; margin-top: 20px; font-size: .82rem; color: var(--faint); }

/* CTA band */
.cta { text-align: center; padding: 60px 28px; border-radius: var(--radius-xl); color: #fff; position: relative; overflow: hidden; background: var(--grad); }
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 50% 0%, rgba(255,255,255,.2), transparent 70%); }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.5rem); position: relative; }
.cta p { color: rgba(255,255,255,.9); margin: 12px 0 26px; position: relative; }
.cta .btn { position: relative; background: #fff; color: var(--primary-700); border: 0; box-shadow: none; }
.cta .btn:hover { background: #fff; filter: brightness(.97); }

.footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.footer-links { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-links a { padding: 6px 10px; border-radius: var(--radius-sm); font-size: .88rem; color: var(--muted); }
.footer-links a:hover { color: var(--ink); background: var(--bg-2); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: .82rem; }
.footer-domain { font-family: var(--font-display); font-weight: 600; }

/* reveal-on-scroll (main.js adds .in) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================================
   THEME WIDGET — floating launcher + popover (colour wheel + light/dark)
   ============================================================================ */
.themebtn { position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--panel); display: grid; place-items: center; color: var(--primary); box-shadow: var(--shadow-md);
  transition: transform .16s var(--ease), box-shadow .16s; }
.themebtn:hover { transform: translateY(-2px) rotate(-8deg); box-shadow: var(--shadow-lg); }
.themebtn::after { content: ""; position: absolute; right: 9px; bottom: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--grad); border: 2px solid var(--panel); }
.themepop { position: fixed; right: 22px; bottom: 84px; z-index: 200; width: 268px; padding: 18px; border-radius: var(--radius-lg);
  background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(10px) scale(.98); pointer-events: none; transition: opacity .18s var(--ease), transform .18s var(--ease); }
.themepop.open { opacity: 1; transform: none; pointer-events: auto; }
.themepop h4 { font-size: .95rem; margin-bottom: 2px; }
.themepop .sub { font-size: .78rem; color: var(--muted); margin-bottom: 14px; }
.tp-wheel-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.tp-wheel { position: relative; width: 168px; height: 168px; border-radius: 50%; cursor: pointer; touch-action: none;
  -webkit-mask: radial-gradient(circle, transparent 0 44px, #000 45px); mask: radial-gradient(circle, transparent 0 44px, #000 45px);
  background: conic-gradient(from 90deg, hsl(0 85% 55%), hsl(45 85% 55%), hsl(90 80% 50%), hsl(135 75% 48%), hsl(180 75% 48%), hsl(225 80% 58%), hsl(270 75% 60%), hsl(315 80% 58%), hsl(360 85% 55%)); }
.tp-knob { position: absolute; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); transform: translate(-50%,-50%); pointer-events: none; }
.tp-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); }
.tp-core .swatch { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); box-shadow: var(--shadow-sm); }
.tp-presets { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.tp-swatch { width: 24px; height: 24px; border-radius: 50%; cursor: pointer; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line-2); transition: transform .14s var(--ease); }
.tp-swatch:hover { transform: scale(1.15); }
.tp-swatch.on { box-shadow: 0 0 0 2px var(--primary); }
.tp-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: var(--radius); background: var(--bg-2); }
.tp-mode button { height: 34px; border: 0; border-radius: var(--radius-sm); cursor: pointer; background: transparent; color: var(--muted); font-family: var(--font); font-size: .85rem; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background .15s, color .15s, box-shadow .15s; }
.tp-mode button svg { width: 15px; height: 15px; }
.tp-mode button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-xs); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .feat, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .price.featured { order: -1; }
  .nav-toggle { display: flex; }
  .mobile-menu:not([hidden]) { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 62px; z-index: 19; margin: 8px 16px 0; padding: 12px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
  .mobile-menu a { padding: 10px 12px; border-radius: var(--radius); color: var(--ink); }
  .mobile-menu a:hover { background: var(--bg-2); }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
