/* The public site of How Do We Fit? (index.html and ro/index.html). */
/* Fonts are served from this site: no request leaves for a font service. Newsreader and Geist, SIL OFL 1.1. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/newsreader-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/newsreader-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("/fonts/newsreader-latin-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("/fonts/newsreader-latin-ext-wght-italic.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* The product's "dusk" colours (web/src/app/globals.css): mist, plum ink, sage, dusk-rose. */
:root {
  --mist: #f2f0f5; --paper: #fbfafc; --ink: #25202e; --soft: #6b6275;
  --plum: #5b3f6b; --plum-deep: #432d50; --line: #dcd6e3; --haze: #e7e3ec;
  --sage: #dde8df; --sage-ink: #2f4a3a; --rose: #efe3e7; --rose-ink: #6b3a4a; --rose-mid: #a8748a;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Geist", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wide: 68rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--mist); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--plum); text-underline-offset: 0.2em; }
a:hover { color: var(--plum-deep); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.serif { font-family: var(--serif); }
/* The product's name inside a sentence: set like the logo, so its question mark does not end the sentence. */
.name { font-family: var(--serif); font-style: italic; font-size: 1.12em; color: var(--plum); white-space: nowrap; }
.eyebrow { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); font-weight: 500; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 2.1rem; height: 1.5rem; }
.tools { display: flex; align-items: center; gap: 1rem; }
.langs { display: flex; gap: 0.45rem; }
.langs a { display: block; padding: 3px; border-radius: 6px; border: 1.5px solid transparent; line-height: 0; opacity: 0.75; transition: opacity 0.15s ease; }
.langs a:hover { opacity: 1; }
.langs a[aria-current] { border-color: var(--plum); opacity: 1; }
.langs svg { width: 1.65rem; height: 1.1rem; border-radius: 3px; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pill { font-size: 0.8125rem; color: var(--sage-ink); background: var(--sage); padding: 0.3rem 0.8rem; border-radius: 999px; white-space: nowrap; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2rem; align-items: center; padding-top: clamp(2rem, 6vw, 5rem); padding-bottom: clamp(3rem, 8vw, 6.5rem); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.7rem, 7.2vw, 5.2rem); line-height: 1.02; letter-spacing: -0.025em; }
.hero h1 em { font-style: italic; color: var(--plum); }
.hero .lede { margin-top: 1.6rem; font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.55; color: #3a3346; max-width: 34rem; }
.actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.button { display: inline-block; background: var(--plum); color: var(--paper); text-decoration: none; padding: 0.85rem 1.5rem; border-radius: 0.75rem; font-weight: 500; transition: background 0.15s ease; }
.button:hover { background: var(--plum-deep); color: var(--paper); }
/* The waiting-list form */
.join { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: 33rem; position: relative; }
.join input[type="email"] { flex: 1 1 14rem; min-width: 0; padding: 0.85rem 1rem; border: 1px solid #cfc7d8; border-radius: 0.75rem; background: var(--paper); color: var(--ink); font: inherit; }
.join input[type="email"]::placeholder { color: #9a92a4; }
.join .button { border: 0; font: inherit; font-weight: 500; cursor: pointer; }
.join .button:disabled { opacity: 0.6; cursor: default; }
.join .trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
.join-note { flex-basis: 100%; margin: 0; font-size: 0.95rem; color: var(--rose-ink); }
.join-note:empty { display: none; }
.join.done input[type="email"], .join.done .button { display: none; }
.join.done .join-note { font-family: var(--serif); font-size: 1.25rem; color: var(--sage-ink); background: var(--sage); padding: 0.8rem 1.1rem; border-radius: 0.75rem; }
.closing .join { margin-left: auto; margin-right: auto; }
.more { margin-top: 1.4rem; }
.fine { margin-top: 1rem; font-size: 0.9rem; color: var(--soft); max-width: 33rem; }
.closing .fine { margin-left: auto; margin-right: auto; }
.rings { width: 100%; max-width: 27rem; justify-self: end; }
.rings .a { stroke-dasharray: 760; stroke-dashoffset: 760; animation: draw 1.6s 0.15s ease-out forwards; }
.rings .b { stroke-dasharray: 760; stroke-dashoffset: 760; animation: draw 1.6s 0.55s ease-out forwards; }
.rings .lens { opacity: 0; animation: appear 0.9s 1.7s ease-out forwards; }
.rings text { opacity: 0; animation: appear 0.9s 2s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* Sections */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.02em; margin-top: 0.7rem; max-width: 22ch; }
#how h2 { max-width: 28ch; }
.intro { margin-top: 1.1rem; max-width: 38rem; color: #3a3346; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Steps */
.steps { margin-top: 3rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.steps li::before { content: counter(step); font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--plum); display: block; }
.steps h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.2; margin-top: 0.9rem; }
.steps p { margin-top: 0.6rem; color: #3a3346; }
.steps .time { display: inline-block; margin-top: 0.9rem; font-size: 0.85rem; color: var(--soft); }

/* The exchange, drawn: each of the two talks with How Do We Fit? (the centre), their vibe-checks cross, and
   the pair report comes out of the middle. Hidden on phones,
   where its labels would be too small; the numbered steps above say the same. */
.exchange { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.exchange svg { display: block; width: 100%; max-width: 58rem; margin: 0 auto; }
.exchange text { text-anchor: middle; }
.exchange .who { font-family: var(--serif); font-style: italic; font-size: 22px; }
.exchange .sysname { font-family: var(--serif); font-style: italic; font-size: 16px; fill: var(--sage-ink); }
.exchange .lab { font-family: var(--sans); font-size: 17px; fill: #3a3346; }
.exchange .num { font-family: var(--serif); font-style: italic; font-size: 24px; fill: var(--plum); }
@media (max-width: 44rem) { .exchange { display: none; } }

/* Example report */
.example { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.report { background: var(--paper); border: 1px solid var(--line); border-radius: 1.25rem; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 1px 0 #fff inset, 0 24px 60px -32px rgba(67, 45, 80, 0.35); }
.report .tag { font-size: 0.8125rem; color: var(--rose-ink); background: var(--rose); padding: 0.25rem 0.7rem; border-radius: 999px; display: inline-block; }
.report h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.12; letter-spacing: -0.015em; margin-top: 1rem; }
.report h3 span { display: block; font-style: italic; font-size: 0.68em; color: var(--soft); margin-top: 0.3rem; }
.meters { margin-top: 1.6rem; display: grid; gap: 1.1rem; }
.meter .name { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.95rem; }
.meter .name b { font-weight: 500; }
.meter .name span { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--plum); }
.segments { margin-top: 0.4rem; display: grid; gap: 4px; }
.segments.four { grid-template-columns: repeat(4, 1fr); }
.segments.three { grid-template-columns: repeat(3, 1fr); }
.segments i { height: 0.55rem; border-radius: 999px; background: var(--haze); }
.segments i.on { background: var(--plum); }
.segments.calm i.on { background: #6f9480; }
.segments.open i.on { background: var(--rose-mid); }
.scale { margin-top: 0.3rem; display: grid; font-size: 0.72rem; color: var(--soft); text-align: center; }
.scale.four { grid-template-columns: repeat(4, 1fr); }
.scale.three { grid-template-columns: repeat(3, 1fr); }
.notes { margin-top: 1.8rem; display: grid; gap: 1.2rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.notes h4 { margin: 0; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); font-weight: 500; }
.notes p { margin-top: 0.35rem; font-family: var(--serif); font-size: 1.14rem; line-height: 1.45; }
.report .foot { margin-top: 1.5rem; font-size: 0.85rem; color: var(--soft); }

/* Principles */
.principles { margin-top: 3rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3.5rem; }
.principles li { padding: 1.5rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.4rem; align-content: start; }
.principles svg { width: 1.5rem; height: 1.5rem; margin-top: 0.25rem; color: var(--plum); }
.principles h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.25; }
.principles p { margin-top: 0.4rem; color: #3a3346; grid-column: 2; }

/* Care + price */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.6rem; }
.panel { border-radius: 1.25rem; padding: clamp(1.5rem, 3vw, 2.2rem); }
.panel.sage { background: var(--sage); color: var(--sage-ink); }
.panel.rose { background: var(--rose); color: var(--rose-ink); }
.panel h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }
.panel ul { margin-top: 1rem; display: grid; gap: 0.65rem; }
.panel li { padding-left: 1.3rem; position: relative; }
.panel li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.5rem; height: 0.5rem; border-radius: 50%; border: 1.5px solid currentColor; }
.panel p { margin-top: 1rem; }
.panel p + ul { margin-top: 0.6rem; }
.panel strong { font-weight: 600; }

/* Closing */
.closing { text-align: center; }
.closing h2 { margin-left: auto; margin-right: auto; max-width: 18ch; }
.closing .intro { margin-left: auto; margin-right: auto; }
.closing .actions { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; font-size: 0.9rem; color: var(--soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; }

@media (max-width: 66rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
}
@media (max-width: 54rem) {
  .hero, .example { grid-template-columns: 1fr; }
  .rings { justify-self: center; max-width: 19rem; order: -1; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .principles, .pair { grid-template-columns: 1fr; }
  .pill { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rings .a, .rings .b { animation: none; stroke-dashoffset: 0; }
  .rings .lens, .rings text { animation: none; opacity: 1; }
}
