/* Trial Mirror — site styles. Built to design-library/sites/foxquart-com tokens:
   cream fields oklch(.966 .03 103) / oklch(.947 .047 106) / oklch(.911 .05 100),
   wine accent oklch(.475 .171 20), ink oklch(.25 .077 19.2), muted oklch(.448 .052 31.1),
   Instrument Serif (display) + Geist (text) + JetBrains Mono (labels); 16/14/11/18/24/48/72 scale. */
:root {
  --cream: oklch(0.966 0.03 102.9);
  --cream-2: oklch(0.947 0.047 106);
  --cream-3: oklch(0.911 0.05 99.9);
  --wine: oklch(0.475 0.171 20);
  --wine-deep: oklch(0.348 0.071 14.9);
  --ink: oklch(0.25 0.077 19.2);
  --muted: oklch(0.448 0.052 31.1);
  --line: oklab(0.25 0.072717 0.0253227 / 0.14);
  --ok: oklch(0.52 0.12 150);
  --radius: 18px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(48px, 8.2vw, 94px); }
h2 { font-size: clamp(36px, 5vw, 60px); }
h3 { font-size: 24px; line-height: 1.15; }
h1 em, h2 em { font-style: italic; color: var(--wine); }
p { margin: 0 0 12px; }
.lede { font-size: 18px; color: var(--muted); max-width: 56ch; }
.small { font-size: 14px; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 500 16px var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.btn.primary:hover { background: var(--wine-deep); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: oklab(0.966 -0.0067 0.0292 / 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 24px; text-decoration: none; }
.brand-mark { width: 22px; height: 30px; border: 1.5px solid var(--ink); border-radius: 11px 11px 4px 4px; position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 5px 5px auto; height: 10px; border-radius: 6px 6px 2px 2px; background: var(--wine); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font: 500 14px var(--sans); color: var(--ink); min-height: 44px; }
@media (max-width: 960px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 16px; color: var(--ink); }
  .menu-btn { display: block; }
  .nav-cta .text-link { display: none; }
}

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; background: radial-gradient(110% 80% at 8% 0%, oklab(0.475 0.160687 0.0584854 / 0.08) 0%, transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .fade { opacity: 0; animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.who-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.who-row a { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--muted); background: oklab(0.966 -0.0067 0.0292 / 0.6); }
.who-row a:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* hero mirror illustration */
.mirror-art { position: relative; aspect-ratio: 3 / 4.2; max-width: 420px; margin-inline: auto; width: 100%; }
.mirror-frame { position: absolute; inset: 0; border-radius: 210px 210px 22px 22px; background: linear-gradient(var(--cream-3) 0%, var(--cream) 50%, var(--cream-3) 100%); border: 1.5px solid var(--ink); overflow: hidden; box-shadow: 0 30px 60px -30px oklab(0.25 0.072717 0.0253227 / 0.35); }
.mirror-frame::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, oklab(1 0 0 / .45) 45%, transparent 60%); transform: translateX(-100%); animation: sheen 6s ease-in-out 1.6s infinite; }
@keyframes sheen { 0%, 60% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.figure { position: absolute; left: 50%; bottom: 0; width: 64%; transform: translateX(-50%); }
.figure .garment { transition: fill .9s ease; }
.live-tag { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.live-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--wine); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.swatches { position: absolute; right: -14px; top: 26%; display: grid; gap: 10px; }
.swatches button { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--cream); box-shadow: 0 0 0 1px var(--line), 0 8px 16px -10px oklab(0.25 0.07 0.02 / .5); cursor: pointer; }
.swatches button[aria-pressed=true] { box-shadow: 0 0 0 2px var(--ink); }
.size-chip { position: absolute; left: -10px; bottom: 18%; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: 0 12px 24px -16px oklab(0.25 0.07 0.02 / .5); }
.size-chip b { font-family: var(--serif); font-size: 28px; font-weight: 400; display: block; line-height: 1; }
.size-chip span { font-size: 12px; color: var(--muted); }
.ai-label { position: absolute; right: 16px; bottom: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--muted); }

/* sections */
section { padding: 88px 0; }
.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-head .mono { display: block; margin-bottom: 14px; }
.alt { background: var(--cream-2); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: 12px; color: var(--wine); display: block; margin-bottom: 18px; }
.step h3 { margin-bottom: 10px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.cases { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.case { grid-column: span 2; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--cream); }
.case.wide { grid-column: span 3; }
.case .mono { margin-bottom: 14px; }
.case h3 { margin-bottom: 12px; }
.case .price-line { font-weight: 500; margin-top: auto; padding-top: 14px; }
.case .btn { margin-top: 18px; align-self: flex-start; }
.case.feature { background: var(--wine); color: var(--cream); border-color: var(--wine); }
.case.feature .mono { color: var(--cream-3); }
.case.feature .btn { border-color: var(--cream); color: var(--cream); }
.case.feature .btn.primary { background: var(--cream); color: var(--wine); }
.tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: 3px 8px; margin-left: 6px; vertical-align: middle; }
@media (max-width: 960px) { .cases { grid-template-columns: 1fr; } .case, .case.wide { grid-column: auto; } }

.size-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.size-points { display: grid; gap: 16px; }
.size-points div { padding: 20px 22px; border-left: 2px solid var(--wine); background: var(--cream); border-radius: 0 12px 12px 0; }
.size-points b { display: block; margin-bottom: 4px; }
.size-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); padding: 26px; }
.size-card table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; }
.size-card td, .size-card th { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.size-card th { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--muted); font-weight: 400; text-transform: uppercase; }
.size-card tr.pick td { color: var(--wine); font-weight: 600; }
@media (max-width: 860px) { .size-grid { grid-template-columns: 1fr; } }

/* pricing */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream-2); margin-bottom: 28px; flex-wrap: wrap; }
.tabs button { min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; font: 500 15px var(--sans); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--ink); color: var(--cream); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.plan.hi { border-color: var(--wine); box-shadow: 0 0 0 1px var(--wine); }
.plan .price { font-family: var(--serif); font-size: 48px; line-height: 1; margin: 14px 0 4px; }
.plan .per { font-size: 14px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; font-size: 15px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 1.5px; background: var(--wine); }
.plan .btn { margin-top: auto; }
.price-note { margin-top: 20px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

/* privacy + faq */
.privacy { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.privacy div { padding: 22px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); font-size: 15px; }
.privacy b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.15; margin-bottom: 8px; }
@media (max-width: 960px) { .privacy { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .privacy { grid-template-columns: 1fr; } }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--serif); font-size: 28px; color: var(--wine); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* cta band + footer */
.band { background: var(--ink); color: var(--cream); text-align: center; padding: 96px 0; }
.band h2 { color: var(--cream); }
.band h2 em { color: oklch(0.82 0.09 25); }
.band .lede { color: oklch(0.85 0.03 80); margin: 16px auto 28px; }
.band .btn { border-color: var(--cream); color: var(--cream); }
.band .btn.primary { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.band .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.band .small { color: oklch(0.8 0.03 80); margin-top: 18px; }
footer { padding: 40px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }

/* forms (demo modal, login, app) */
.field { display: grid; gap: 6px; margin-bottom: 16px; font-size: 14px; font-weight: 500; }
.field input, .field textarea, .field select { font: 16px var(--sans); color: var(--ink); background: oklab(1 0 0 / .55); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 14px; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--wine); flex: none; }
.err { color: var(--wine); font-size: 14px; min-height: 1.4em; margin: 4px 0 10px; }
.okmsg { color: var(--ok); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
dialog { border: 0; border-radius: 22px; padding: 0; width: min(560px, calc(100% - 32px)); background: var(--cream); color: var(--ink); box-shadow: 0 40px 80px -30px oklab(0.25 0.07 0.02 / .55); }
dialog::backdrop { background: oklab(0.25 0.07 0.02 / .45); backdrop-filter: blur(2px); }
.dialog-in { padding: 30px; }
.dialog-in h2 { font-size: 40px; margin-bottom: 8px; }
.x { float: right; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--muted); min-width: 44px; min-height: 44px; }

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