/* Styvora — styvora.space landing. Brand 1:1 with the app design system
   (mobile/lib/design_system). Fonts, palette, radii, shadows, motion all
   mirror the product so the site reads as the same company's craft. */

/* ---- Fonts (self-hosted variable TTFs, copied from the app) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces-VariableFont.ttf") format("truetype-variations");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces-Italic-VariableFont.ttf") format("truetype-variations");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/InstrumentSans-VariableFont.ttf") format("truetype-variations");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-VariableFont.ttf") format("truetype-variations");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ---- Tokens (from styvora_colors / spacing / radius / shadows) ------- */
:root {
  --krem: #F4EFE3;
  --krem-soft: #EDE6D5;
  --card: #FBF7EB;
  --card-elevated: #FFFFFF;
  --ink: #14110D;
  --ink-soft: #5B544A;
  --ink-fade: rgba(20, 17, 13, 0.55);
  --line: rgba(20, 17, 13, 0.08);
  --line-strong: rgba(20, 17, 13, 0.16);
  --violet-deep: #4A3FB0;
  --violet: #6C5CE7;
  --violet-light: #B8A8FF;
  --violet-soft: #ECE9FB;
  --violet-ink: #2D2680;
  --rust: #C9785A;
  --gold: #C9A14D;
  --success: #4A7C59;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 9999px;
  --shadow-card: 0 4px 12px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 20px rgba(0,0,0,.12);
  --shadow-violet: 0 8px 24px rgba(108,92,231,.25);
  --shadow-phone: 0 40px 80px -24px rgba(20,17,13,.45), 0 24px 50px -20px rgba(108,92,231,.30);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --maxw: 1120px;
}

/* ---- Base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--krem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--violet); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(64px, 9vw, 128px) 0; }

/* ---- Type ----------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono); font-weight: 600;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--violet-deep);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(40px, 6.4vw, 72px); }
h2 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.015em; }
h3 { font-size: clamp(20px, 2.4vw, 25px); line-height: 1.2; }
h1 em, h2 em, h3 em, .em { font-style: italic; color: var(--violet); font-weight: 500; }
p { margin: 0; color: var(--ink-soft); }
.lead { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 46ch; }

.section-head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--violet); color: #fff; box-shadow: var(--shadow-violet); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(108,92,231,.35); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(20,17,13,.04); }

/* ---- Nav ------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(244,239,227,.82);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 23px; letter-spacing: -.01em; }
.brand .dot { width: 26px; height: 26px; border-radius: var(--r-pill);
  background: radial-gradient(120% 120% at 32% 28%, var(--violet-light), var(--violet) 45%, var(--violet-deep) 78%, var(--violet-ink));
  box-shadow: inset 0 1px 3px rgba(255,255,255,.5); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--ink-soft); transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: inline-flex; }
@media (max-width: 860px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---- Hero ----------------------------------------------------------- */
.hero { padding-top: clamp(48px, 7vw, 92px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-top: 22px; }
.hero .lead { margin-top: 22px; }
.hero-form { margin-top: 32px; }
.trust-micro { margin-top: 16px; font-size: 13.5px; color: var(--ink-fade); display: flex; gap: 16px; flex-wrap: wrap; }
.trust-micro span { display: inline-flex; align-items: center; gap: 6px; }
.trust-micro .tick { color: var(--success); font-weight: 700; }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ---- Waitlist form -------------------------------------------------- */
.waitlist { display: flex; gap: 10px; max-width: 460px; }
.waitlist input[type=email] {
  flex: 1; min-width: 0; font-family: var(--sans); font-size: 16px;
  padding: 14px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--card-elevated); color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.waitlist input[type=email]:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.waitlist .btn { padding-left: 22px; padding-right: 22px; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--ink-fade); min-height: 18px; }
.form-note.ok { color: var(--success); font-weight: 600; }
.form-note.err { color: var(--rust); font-weight: 600; }
@media (max-width: 480px) { .waitlist { flex-direction: column; } .waitlist .btn { width: 100%; } }

/* ---- AiOrb (CSS recreation of the app's signature mark) ------------- */
.orb-wrap { position: relative; display: grid; place-items: center; }
.orb { position: relative; width: var(--orb, 132px); height: var(--orb, 132px); border-radius: 50%;
  animation: breathe 4s var(--ease) infinite; }
.orb::before { /* rotating conic glow ring */
  content: ""; position: absolute; inset: -3px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 0deg, var(--violet-light), var(--violet), var(--violet-deep), var(--violet), var(--violet-light));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 8s linear infinite;
}
.orb .sphere { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(120% 120% at 34% 28%, var(--violet-light), var(--violet) 44%, var(--violet-deep) 76%, var(--violet-ink));
  box-shadow: inset 0 2px 10px rgba(255,255,255,.35), 0 10px 30px rgba(74,63,176,.4); }
.orb .gloss { position: absolute; top: 14%; left: 20%; width: 38%; height: 30%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.55), transparent); filter: blur(2px); }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Phone mockup (faithful app Welcome screen) -------------------- */
.phone { position: relative; width: min(300px, 78vw); aspect-ratio: 300 / 620; margin: 0 auto;
  border-radius: 46px; background: #0d0b08; padding: 11px; box-shadow: var(--shadow-phone); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--krem); display: flex; flex-direction: column; }
.phone .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; border-radius: var(--r-pill); background: #0d0b08; z-index: 3; }
.scr-welcome { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 26px; gap: 18px; }
.scr-welcome .eyebrow { font-size: 9px; }
.scr-welcome h4 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.12; letter-spacing: -.02em; margin: 6px 0 0; }
.scr-welcome h4 em { font-style: italic; color: var(--violet); }
.scr-welcome p { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.scr-welcome .pill { margin-top: 8px; width: 100%; background: var(--violet); color: #fff; font-weight: 600;
  font-size: 13px; padding: 13px; border-radius: var(--r-pill); }
.scr-welcome .pill.ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line-strong); }
.scr-steps { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 6px; }
.scr-steps .row { display: flex; align-items: center; justify-content: space-between; font-size: 11px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 9px 12px; }
.scr-steps .row b { font-weight: 600; }
.scr-steps .row span { font-family: var(--mono); font-size: 9px; color: var(--ink-fade); letter-spacing: .05em; }

/* ---- Logos / trust band -------------------------------------------- */
.band { background: var(--ink); color: #fff; }
.band .wrap { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 56px);
  flex-wrap: wrap; padding: 26px 24px; }
.band span { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.band span b { color: #fff; font-weight: 600; }

/* ---- Features ------------------------------------------------------- */
.features { background: var(--card); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }
.feat { background: var(--card-elevated); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-card); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feat.tall { grid-row: span 1; }
.feat .media { aspect-ratio: 16 / 11; overflow: hidden; background: var(--violet-soft); }
.feat .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.feat:hover .media img { transform: scale(1.04); }
.feat .body { padding: 22px 22px 26px; }
.feat .kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-deep); }
.feat h3 { margin: 10px 0 8px; }
.feat p { font-size: 15px; line-height: 1.55; }

/* "Why this outfit" rationale chips (the marquee differentiator) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--violet-soft); color: var(--violet-deep);
  font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: var(--r-pill); }
.chip svg { width: 14px; height: 14px; }

/* wide feature (rationale) spanning two columns */
.feat-wide { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; }
.feat-wide .media { aspect-ratio: auto; height: 100%; min-height: 260px; }
@media (max-width: 920px) { .feat-wide { grid-column: span 2; grid-template-columns: 1fr; } }
@media (max-width: 600px) { .feat-wide { grid-column: span 1; } }

/* ---- How it works --------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 30px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.step .num { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--violet-deep); }
.step h3 { margin: 14px 0 8px; }
.step p { font-size: 15px; }
.step .time { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  color: var(--ink-fade); background: var(--violet-soft); padding: 5px 10px; border-radius: var(--r-pill); }

/* ---- Premium -------------------------------------------------------- */
.premium { background: var(--card); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card-elevated); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; }
.plan.featured { border: 1.5px solid var(--violet); box-shadow: var(--shadow-violet); position: relative; }
.plan.featured::after { content: "7-day free trial"; position: absolute; top: -12px; right: 22px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--violet); color: #fff; padding: 5px 11px; border-radius: var(--r-pill); }
.plan .tier { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-fade); }
.plan h3 { margin: 8px 0 4px; }
.plan .sub { font-size: 14px; color: var(--ink-soft); }
.plan ul { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--ink); }
.plan li .tick { color: var(--violet); font-weight: 700; flex: none; }

/* ---- Final CTA ------------------------------------------------------ */
.cta-final { background: var(--ink); color: #fff; text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final h2 em { color: var(--violet-light); }
.cta-final p { color: rgba(255,255,255,.72); margin: 16px auto 0; max-width: 48ch; }
.cta-final .waitlist { margin: 30px auto 0; }
.cta-final input[type=email] { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.cta-final input[type=email]::placeholder { color: rgba(255,255,255,.5); }
.cta-final .form-note { color: rgba(255,255,255,.6); }
.comingsoon { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-pill); padding: 10px 18px; }

/* ---- Footer --------------------------------------------------------- */
.footer { background: var(--krem-soft); border-top: 1px solid var(--line); }
.footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 40px; }
.footer .brand { font-size: 21px; }
.footer .tagline { margin-top: 12px; font-size: 14px; color: var(--ink-soft); max-width: 30ch; }
.footer nav { display: flex; gap: 40px; flex-wrap: wrap; }
.footer .col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-fade); margin: 0 0 14px; }
.footer .col a { display: block; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 10px; transition: color .2s var(--ease); }
.footer .col a:hover { color: var(--violet-deep); }
.legal { border-top: 1px solid var(--line); }
.legal .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; font-size: 13px; color: var(--ink-fade); }

/* ---- Scroll reveal -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .orb::before { animation: none; }
}
