/* Fitsemble website. Dark editorial layout in the app's own colors (src/theme.ts). */

@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/InterTight-Variable.woff2') format('woff2-variations'), url('/fonts/InterTight-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #141211;
  --bg-raise: #1d1a19;
  --cream: #faf8f4;
  --cream-dim: #b4aca4;
  --line: rgba(250, 248, 244, 0.14);
  --ink: #211e1d;
  --muted: #746e68;
  --paper-line: #e6e0d9;
  --sand: #f1ece6;
  --plum: #74506f;
  --lilac: #e9dde8;
  --sage: #83a58b;
  --sage-dark: #3e6a4b;
  --sage-light: #ecf4ee;
  --gold: #eacb7a;
  --gold-dark: #806421;
  --gold-light: #fbf3dd;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 56px;
  --sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--cream); color: var(--ink); font-weight: 600; }
.skip:focus { top: 12px; }

.mono, .meta-row, .fact-top, .fact-tag, .sec-head, .phone-cap, .step-num, .tag, .foot, .note figcaption {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.display {
  margin: 0;
  font-weight: 650;
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 2px;
  font: 650 14px/1 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: progress; }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--cream); }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header);
  padding: 0 var(--gutter);
  background: rgba(20, 18, 17, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 17px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; }
.nav a:not(.nav-cta)::before { content: '+'; margin-right: 8px; color: var(--cream-dim); font-weight: 400; }
.nav a:not(.nav-cta):hover { color: var(--gold); }
.nav-cta { padding: 9px 14px; border: 1px solid var(--cream); border-radius: 2px; }
.nav-cta:hover { background: var(--cream); color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header));
  padding: 14px var(--gutter) clamp(28px, 5vw, 56px);
  background: radial-gradient(52% 58% at 76% 42%, rgba(116, 80, 111, 0.34), transparent 70%);
}
.meta-row { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--cream-dim); }
.meta-line { flex: 1; height: 1px; background: var(--line); }

.hero-form {
  position: absolute;
  z-index: -1;
  top: 56px;
  right: clamp(0px, 5vw, 96px);
  height: calc(100% - 72px);
  width: auto;
  max-width: 100%;
  overflow: visible;
}
.hero-form .ruler line { stroke: var(--line); stroke-width: 1.2; }
.hero-form text { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--cream-dim); }
.hero-form .label text.value { fill: var(--cream); font-size: 15px; }
.hero-form .dress-form * { fill: none; stroke: rgba(250, 248, 244, 0.6); stroke-width: 1.3; }
.hero-form .dress-form .torso { fill: url(#form-fill); }
.hero-form .ring { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 5 6; }
.hero-form .label line { stroke: var(--gold); stroke-width: 1; }

.ring, .label { opacity: 0; animation: appear 0.9s ease forwards; }
.ring { transform-box: fill-box; transform-origin: center; animation-name: ring-in; }
.ring-1, .label-1 { animation-delay: 0.3s; }
.ring-2, .label-2 { animation-delay: 0.55s; }
.ring-3, .label-3 { animation-delay: 0.8s; }
@keyframes ring-in { from { opacity: 0; transform: scaleX(0.6); } to { opacity: 1; transform: none; } }
@keyframes appear { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

.hero-title { margin-top: auto; padding-top: 120px; font-size: clamp(48px, 10.4vw, 190px); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: clamp(22px, 3vw, 36px); }
.hero-foot p { margin: 0; font-size: 15px; font-weight: 550; line-height: 1.45; }
.dim { color: var(--cream-dim); font-weight: 450; }

/* Three numbers */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; min-height: 320px; padding: 18px var(--gutter) 22px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact p { margin: 0; }
.fact-top { display: flex; justify-content: space-between; color: var(--cream-dim); }
.fact-num { margin: auto 0 14px !important; font-size: clamp(72px, 7.4vw, 112px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; }
.fact-num span { margin-left: 0.22em; color: var(--gold); font-size: 0.26em; font-weight: 550; letter-spacing: 0; }
.fact-text { max-width: 31ch; margin-bottom: 26px !important; font-size: 16px; }
.fact-tag { color: var(--cream-dim); }

/* Waitlist bands */
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 48px;
  padding: 30px var(--gutter) 26px;
  background: var(--gold);
  color: var(--ink);
}
.band h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 650; line-height: 1.15; letter-spacing: -0.015em; }
.band p { margin: 4px 0 0; font-size: 15px; }
.waitlist { position: relative; display: flex; flex-wrap: wrap; gap: 10px; flex: 0 1 540px; }
.waitlist input[type='email'] {
  flex: 1 1 220px;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(33, 30, 29, 0.28);
  border-radius: 2px;
  background: var(--cream);
  color: var(--ink);
  font: 500 16px var(--sans);
}
.waitlist input[type='email']::placeholder { color: var(--muted); }
.waitlist input[type='email']:focus-visible { outline-color: var(--ink); }
.band .btn-ink:focus-visible { outline-color: var(--ink); }
.waitlist .form-status { flex-basis: 100%; min-height: 1.4em; margin: 0; font-size: 14px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Section heads */
.sec-head { display: flex; justify-content: space-between; gap: 16px; padding: 16px var(--gutter); color: var(--cream-dim); border-top: 1px solid var(--line); }
.section-title { padding: 0 var(--gutter); margin: clamp(28px, 5vw, 64px) 0 clamp(28px, 5vw, 56px); font-size: clamp(44px, 8.2vw, 150px); }

/* How it works */
.how { border-top: 1px solid var(--line); }
.how > .sec-head { border-top: 0; }
.giant {
  margin: 8px 0 0;
  padding: 0 var(--gutter);
  overflow: clip;
  font-size: calc((100vw - 2 * var(--gutter)) / 5);
  font-weight: 650;
  line-height: 0.8;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.how-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) 1.15fr;
  gap: clamp(32px, 6vw, 110px);
  padding: clamp(40px, 6vw, 90px) var(--gutter) clamp(24px, 4vw, 60px);
}
.how-phone { position: sticky; top: calc(var(--header) + 32px); align-self: start; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone-cap { margin: 0; color: var(--cream-dim); }
.steps { margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; justify-content: center; gap: 28px; min-height: 72vh; padding: 36px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step-text p { margin: 0; }
.step-num { color: var(--gold); }
.step h3 { margin: 10px 0 14px; font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; }
.step-text p:last-child { max-width: 44ch; color: var(--cream-dim); }
.js .step { opacity: 0.4; transition: opacity 0.4s; }
.js .step.is-active { opacity: 1; }

/* No script: every step shows its own phone, one column. */
html:not(.js) .how-grid { grid-template-columns: 1fr; }
html:not(.js) .how-phone { display: none; }
.js .step-phone { display: none; }

/* The phone */
.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 19.2;
  padding: 10px;
  border: 1px solid rgba(250, 248, 244, 0.18);
  border-radius: 46px;
  background: #0b0a0a;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 6px rgba(250, 248, 244, 0.03);
}
.phone::before { content: ''; position: absolute; z-index: 2; top: 20px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 12px; background: #0b0a0a; }
.phone-screens { position: relative; height: 100%; overflow: hidden; border-radius: 36px; background: var(--cream); }
.phone-screens .screen { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; }
.phone-screens .screen.is-active { opacity: 1; transform: none; }
.phone > .screen { height: 100%; overflow: hidden; border-radius: 36px; }

/* Screens: a light app UI, as in the app */
.screen { display: flex; flex-direction: column; gap: 10px; padding: 56px 18px 18px; background: var(--cream); color: var(--ink); font-size: 12.5px; line-height: 1.4; }
.screen p { margin: 0; }
.s-kicker { color: var(--muted); font-size: 10.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.s-title { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.s-sub { color: var(--muted); font-size: 12px; }
.s-gap { margin-top: 10px !important; }
.s-btn { margin-top: auto !important; padding: 13px; border-radius: 14px; background: var(--ink); color: var(--cream); font-weight: 650; text-align: center; }
.s-btn-plum { margin-top: 0 !important; background: var(--plum); }
.s-input { padding: 12px 14px; border: 1px solid var(--paper-line); border-radius: 14px; background: #fff; color: var(--muted); }

.s-meas { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; padding: 10px 12px; border: 1px solid var(--paper-line); border-radius: 14px; background: #fff; }
.s-meas span { color: var(--muted); }
.s-meas b { font-weight: 700; }
.s-track { grid-column: 1 / -1; position: relative; display: block; height: 4px; border-radius: 2px; background: var(--sand); }
.s-fill { position: absolute; inset: 0 auto 0 0; display: block; border-radius: 2px; background: var(--sage-dark); }
.s-fill::after { content: ''; position: absolute; right: -7px; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--sage-dark); }
.w-44 { width: 44%; } .w-55 { width: 55%; } .w-58 { width: 58%; } .w-62 { width: 62%; }

.s-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.s-list li, .s-card { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--paper-line); border-radius: 14px; background: #fff; }
.s-list b, .s-card b { display: block; font-size: 12.5px; }
.s-list small, .s-card small { display: block; color: var(--muted); font-size: 11px; }
.s-card { padding: 12px; }
.s-thumb { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; }
.s-thumb svg { width: 22px; height: 22px; fill: rgba(33, 30, 29, 0.55); }
.t-sage { background: var(--sage-light); } .t-gold { background: var(--gold-light); } .t-lilac { background: var(--lilac); }

.s-verdict { margin-top: 4px !important; color: var(--sage-dark); font-size: 30px; font-weight: 750; line-height: 1.05; letter-spacing: -0.03em; }
.s-size { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--sage-light); }
.s-size span { color: var(--sage-dark); font-weight: 600; }
.s-size b { font-size: 26px; line-height: 1; }
.s-area { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; }
.s-area span { color: var(--muted); font-size: 11.5px; }
.s-area em { font-size: 11.5px; font-style: normal; font-weight: 600; }
.s-scale { position: relative; display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--lilac), var(--sage-light) 35%, var(--sage-light) 65%, var(--gold-light)); }
.s-dot { position: absolute; top: -3px; display: block; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--sage-dark); }
.s-dot.loose { background: var(--gold-dark); }
.p-48 { left: 48%; } .p-50 { left: 50%; } .p-54 { left: 54%; } .p-68 { left: 68%; }
.s-scale-key { display: flex; justify-content: space-between; padding-left: 80px; color: var(--muted); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }

.s-photo { overflow: hidden; border-radius: 18px; background: linear-gradient(180deg, var(--lilac), var(--sand)); }
.s-photo svg { display: block; width: 100%; height: auto; }
.s-chip { align-self: flex-start; padding: 6px 10px; border-radius: 999px; background: var(--sage-light); color: var(--sage-dark); font-size: 11px; font-weight: 650; }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.privacy-grid article { padding: 24px clamp(16px, 2vw, 28px) 32px; border-right: 1px solid var(--line); }
.privacy-grid article:first-child { padding-left: var(--gutter); }
.privacy-grid article:last-child { border-right: 0; padding-right: var(--gutter); }
.privacy-grid h3, .next-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; }
.privacy-grid p, .next-card p { margin: 0; color: var(--cream-dim); font-size: 15.5px; }

.note { display: grid; justify-items: center; margin: 0; padding: clamp(56px, 9vw, 130px) var(--gutter); border-top: 1px solid var(--line); text-align: center; }
.note blockquote { margin: 0; }
.note blockquote p { max-width: 34ch; margin: 0; font-size: clamp(22px, 2.6vw, 36px); font-weight: 450; line-height: 1.3; letter-spacing: -0.015em; }
.note figcaption { margin-top: 26px; color: var(--gold); }

/* Coming next */
.next-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.next-card { padding: 24px var(--gutter) 40px; }
.next-card:first-child { border-right: 1px solid var(--line); }
.tag { margin: 0 0 18px !important; color: var(--gold) !important; font-size: 11px !important; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--cream-dim); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.sw { display: block; aspect-ratio: 3 / 4; margin-bottom: 8px; border-radius: 4px; }
.sw-travel { background: linear-gradient(180deg, #a9c9d8 0%, #dfe7e3 48%, #e9d4a6 62%, #d6b985 100%); }
.sw-office { background: linear-gradient(180deg, #d9d6d0 0%, #bfbab2 60%, #8f877e 100%); }
.sw-festival { background: linear-gradient(160deg, #74506f 0%, #b06a7c 45%, #eacb7a 100%); }
.sw-park { background: linear-gradient(180deg, #cfe3d3 0%, #83a58b 55%, #3e6a4b 100%); }
.chat { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.bubble { max-width: 86%; margin: 0 !important; padding: 12px 15px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.bubble.you { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--cream); color: var(--ink) !important; }
.bubble.app { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 4px; background: var(--bg-raise); color: var(--cream) !important; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 48px; padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(56px, 8vw, 110px); }
.faq-title { margin: 0 0 12px; font-size: clamp(40px, 4vw, 56px); font-weight: 650; line-height: 1; letter-spacing: -0.03em; }
.faq-intro p { margin: 0; max-width: 28ch; color: var(--cream-dim); font-size: 15.5px; }
.faq-intro a:hover { color: var(--gold); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 650;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex: none; font-size: 28px; font-weight: 300; line-height: 1; transition: transform 0.25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--gold); }
.faq-list details p { max-width: 64ch; margin: 0 0 24px; color: var(--cream-dim); }

/* Page not found */
.lost { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-height: calc(100svh - var(--header)); padding: 14px var(--gutter) 56px; }
.lost .meta-row { align-self: stretch; }
.lost h1 { margin-top: auto; font-size: clamp(56px, 13vw, 220px); }
.lost p:not(.meta-row) { margin: 0; color: var(--cream-dim); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 24px var(--gutter) 32px; color: var(--cream-dim); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--gold); }

/* Smaller screens */
@media (max-width: 1080px) {
  .privacy-grid { grid-template-columns: 1fr 1fr; }
  .privacy-grid article { padding: 24px var(--gutter) 30px; border-bottom: 1px solid var(--line); }
  .privacy-grid article:nth-child(2n) { border-right: 0; }
  .privacy-grid article:nth-child(n + 3) { border-bottom: 0; }
}

@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr; }
  .fact { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .fact-num { margin-top: 28px !important; }
  .how-grid { grid-template-columns: 1fr; }
  .how-phone { display: none; }
  .js .step-phone { display: flex; justify-content: center; }
  .js .step, .step { min-height: 0; opacity: 1; }
  .next-grid, .faq-grid { grid-template-columns: 1fr; }
  .next-card:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
  .hero .meta-row span:first-child { display: none; }
  .hero-form { right: -26%; height: 70%; top: 72px; opacity: 0.55; }
  .hero-form .labels { display: none; }
  .hero-title { font-size: 13.6vw; }
  .band .waitlist, .band .btn { width: 100%; }
  .waitlist { flex-basis: 100%; }
}

@media (max-width: 600px) {
  .privacy-grid { grid-template-columns: 1fr; }
  .privacy-grid article, .privacy-grid article:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px var(--gutter) 26px; }
  .privacy-grid article:last-child { border-bottom: 0; }
  .swatches { gap: 8px; font-size: 9.5px; letter-spacing: 0.04em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ring, .label { opacity: 1; }
}
