:root {
  --paper: #f8f7f4;
  --paper-2: #f1efe9;
  --card: #ffffff;
  --ink: #14121a;
  --ink-soft: #3d3a45;
  --mute: #6f6b78;
  --line: #e7e4dd;
  --accent: #6d4aff;
  --accent-deep: #5634e6;
  --accent-soft: #ece7ff;
  --todo: #fff1b8;
  --shadow: 0 24px 60px rgba(20, 18, 26, 0.14);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121018;
    --paper-2: #18161f;
    --card: #1e1b26;
    --ink: #f3f1ee;
    --ink-soft: #d6d3dc;
    --mute: #9a96a3;
    --line: #2c2934;
    --accent: #8f74ff;
    --accent-deep: #a58fff;
    --accent-soft: #2a2340;
    --todo: #5a4b12;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font: 16px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.todo { background: var(--todo); color: inherit; padding: 0 4px; border-radius: 4px; }
.muted { color: var(--mute); font-size: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: #14121a; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand-sm { font-size: 17px; margin-bottom: 6px; }
.logo { width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.logo svg { width: 18px; height: 18px; }
.menu { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.menu a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.menu a:not(.btn):hover { color: var(--ink); }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; padding: 0 10px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
@media (max-width: 760px) {
  .menu-btn { display: flex; }
  .menu {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 12px; }
}

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 104px; } .hero-grid { grid-template-columns: 1fr 1.05fr; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-size: clamp(42px, 8vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; }
.lead { font-size: clamp(17px, 2.2vw, 20px); margin-top: 20px; max-width: 30em; }
.lead b { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { font-size: 14px; color: var(--mute); margin-top: 14px; }

/* Mock */
.mock { position: relative; min-height: 380px; }
.mock-browser {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; width: 88%;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar span { margin-left: 10px; font-size: 12px; color: var(--mute); background: var(--paper-2); padding: 4px 12px; border-radius: 999px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mock-page { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; }
.tile { position: relative; }
.tile.faded { opacity: .55; }
.tile-img { aspect-ratio: 3 / 4; border-radius: 14px; background: var(--paper-2); position: relative; overflow: hidden; }
.tile-img.shirt::after {
  content: ''; position: absolute; inset: 22% 18% 14%;
  background: linear-gradient(160deg, #e9dccb, #d8c4ac);
  clip-path: polygon(30% 0, 70% 0, 100% 18%, 88% 34%, 80% 28%, 80% 100%, 20% 100%, 20% 28%, 12% 34%, 0 18%);
}
.tile-img .glasses { position: absolute; left: 14%; right: 14%; top: 42%; width: 72%; color: #2b2833; }
@media (prefers-color-scheme: dark) { .tile-img .glasses { color: #0c0b10; } }
.try-pill {
  position: absolute; top: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(20, 18, 26, .9); color: #fff; font-size: 12px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.try-pill b { color: #b9a6ff; }
.tile-name { font-size: 13px; color: var(--ink); margin-top: 8px; font-weight: 500; }
.tile-price { font-size: 13px; color: var(--mute); }
.mock-panel {
  position: absolute; right: 0; bottom: -12px; width: 46%; min-width: 190px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 14px;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink); }
.panel-head span { font-size: 11px; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; }
.panel-result { position: relative; margin-top: 10px; aspect-ratio: 4 / 5; border-radius: 12px; background: linear-gradient(180deg, #cfc8bd, #b9b0a3); overflow: hidden; }
.person { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 46%; height: 88%; }
.person .head { width: 34%; aspect-ratio: 1; border-radius: 50%; background: #8a6a55; margin: 0 auto; }
.person .torso { height: 40%; margin-top: 4%; border-radius: 30% 30% 8% 8%; background: linear-gradient(160deg, #efe3d3, #dcc8b0); }
.person .legs { height: 42%; width: 70%; margin: 0 auto; background: #2b2833; border-radius: 4px 4px 0 0; }
.thumb { position: absolute; left: 8px; bottom: 8px; width: 22%; aspect-ratio: 3 / 4; border-radius: 6px; border: 2px solid #fff; background: linear-gradient(160deg, #e9dccb, #d8c4ac); }
.panel-meta { font-size: 11px; color: var(--mute); margin-top: 8px; }
.panel-meta b { color: var(--ink); }
.panel-btn { margin-top: 8px; text-align: center; font-size: 12px; font-weight: 600; color: var(--paper); background: var(--ink); border-radius: 9px; padding: 7px; }
@media (max-width: 520px) {
  .mock { min-height: 0; }
  .mock-browser { width: 100%; }
  .mock-panel { position: relative; width: 70%; margin: -60px 0 0 auto; bottom: 0; }
}

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-alt { background: var(--paper-2); }
h2 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; font-weight: 800; }
.section-lead { font-size: 18px; margin-top: 12px; color: var(--mute); }
.note { font-size: 14px; color: var(--mute); margin-top: 24px; max-width: 46em; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 18px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps b { color: var(--ink); }

.cats { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .cats { grid-template-columns: repeat(6, 1fr); } }
.cats li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 14px; text-align: center; font-weight: 600; font-size: 14px; color: var(--ink); }
.cats span { display: block; font-size: 30px; margin-bottom: 8px; }

/* Pricing */
.plans { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; } }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan h3 { font-size: 17px; }
.price { font-size: 44px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin-top: 10px; }
.plan-sub { color: var(--mute); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 8px; font-size: 15px; }
.plan li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 8px; }
.plan .btn { margin-top: auto; }
.plan-best { border: 2px solid var(--accent); box-shadow: 0 20px 50px color-mix(in srgb, var(--accent) 18%, transparent); }
.badge { position: absolute; top: -12px; right: 20px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }

/* Privacy */
.privacy { display: grid; gap: 32px; }
@media (min-width: 860px) { .privacy { grid-template-columns: 1fr 1.2fr; align-items: center; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 16px 50px; position: relative; }
.checks li::before { content: '✓'; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.checks b { color: var(--ink); }

/* FAQ */
.faq { max-width: 800px; }
.faq h2 { margin-bottom: 28px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 17px; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 400; color: var(--mute); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; max-width: 62ch; }

/* Final CTA */
.final { background: var(--ink); color: #d6d3dc; text-align: center; }
.final h2 { color: #fff; }
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.final-inner > p:not(.fine) { font-size: 18px; margin-bottom: 10px; }
.final .fine { color: #9a96a3; }
@media (prefers-color-scheme: dark) { .final { background: #0b0a0f; } }

/* Footer */
.footer { padding: 40px 0 28px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.copy { margin-top: 28px; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
