/* Fio: product, support and privacy pages. The app's tokens: light sage paper, forest ink,
   one terracotta accent, Nunito 800 for titles, the system font for text. */
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-800-latin.woff2") format("woff2"); font-weight: 800; font-display: swap; }
:root {
  --bg: #f4f6f1; --ink: #17302a; --muted: #536b62; --sage: #cfe3d4; --line: #e1e7dd;
  --clay: #b5532f; --forest: #1f3a33; --card: #ffffff;
  --wrap: min(1120px, 100% - 48px);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: Nunito, ui-rounded, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
p, h1, h2, h3 { margin: 0; }
::selection { background: var(--sage); color: var(--ink); }
html { scrollbar-color: #9fb5ab var(--bg); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
.display em { font-style: normal; color: var(--clay); }

/* bar: text only */
.bar nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; text-decoration: none; }
.brand img { border-radius: 8px; }
.bar .nl { color: var(--muted); font-size: 0.95rem; text-decoration: none; }
.bar .nl:hover, .bar .nl[aria-current] { color: var(--ink); }
@media (max-width: 720px) { .bar .nl:not(.keep) { display: none; } .bar nav { gap: 20px; } }

/* hero: the phone in the middle, the app's own pieces around it */
.hero { padding: clamp(28px, 6vh, 64px) 24px 0; text-align: center; }
.hero h1 { max-width: 12ch; margin-inline: auto; font-size: clamp(2.9rem, 6.6vw, 5.75rem); line-height: 0.96; letter-spacing: -0.045em; }
.sub { max-width: 34ch; margin: 22px auto 0; color: var(--muted); font-size: clamp(1.1rem, 1.5vw, 1.25rem); text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; margin-top: 24px; font-size: 0.95rem; }
.soon { font-weight: 600; }
.soon::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--clay); vertical-align: 1px; }
.cta a { color: var(--muted); }
.cta a:hover { color: var(--ink); }

.stage { position: relative; height: 540px; margin: clamp(32px, 5vh, 48px) -24px 0; }
.disc { position: absolute; left: 50%; top: 70px; width: min(560px, 100vw); aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, var(--sage) 0, #dcebdf 50%, rgba(220, 235, 223, 0) 70%); }

.phone { padding: 6px; border-radius: 36px; background: #13201c; box-shadow: 0 40px 60px -36px rgba(23, 48, 42, 0.6), inset 0 0 0 1px #2c3a35; }
.phone img { border-radius: 30px; }
.hero-phone { position: absolute; left: 50%; top: 0; width: 236px; translate: -50% 0; animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both; }

.frag { position: absolute; z-index: 1; background: var(--card); border-radius: 20px; box-shadow: 0 1px 1px rgba(23, 48, 42, 0.04), 0 22px 44px -26px rgba(23, 48, 42, 0.45); text-align: left; font-size: 0.9rem; line-height: 1.4; animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes land { 0% { opacity: 0; transform: translateY(-22px) scale(0.94); filter: blur(10px); } 60% { opacity: 1; filter: none; } }
.note { right: calc(50% + 150px); top: 48px; width: 320px; padding: 13px 15px; display: grid; grid-template-columns: 36px 1fr; gap: 3px 12px; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); animation: land 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both; }
.note img { grid-row: span 3; width: 36px; height: 36px; border-radius: 9px; }
.note .app { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.note span { color: var(--muted); }
.formula { right: calc(50% + 172px); top: 236px; width: 268px; padding: 14px 16px 8px; animation-delay: 0.2s; }
.formula header { display: flex; justify-content: space-between; gap: 12px; white-space: nowrap; color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.formula dl { display: grid; grid-template-columns: 1fr auto; margin: 6px 0 0; }
.formula dt, .formula dd { margin: 0; padding: 8px 0; border-top: 1px solid #edf0ea; font-size: 0.94rem; }
.formula dt b { margin-right: 6px; font-variant-numeric: tabular-nums; }
.formula dd { color: var(--clay); font-weight: 700; font-variant-numeric: tabular-nums; }
.photos { left: calc(50% + 156px); top: 28px; display: flex; gap: 6px; padding: 8px; animation-delay: 0.35s; }
.photos figure { position: relative; margin: 0; }
.photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 13px; }
.photos figcaption { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.92); font-size: 0.7rem; font-weight: 700; }
.wa { left: calc(50% + 150px); top: 200px; width: 300px; padding: 14px 16px; animation-delay: 0.5s; }
.wa .who { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-weight: 600; }
.wa .who img { width: 30px; height: 30px; border-radius: 50%; }
.wa .who small { margin-left: auto; color: var(--muted); font-weight: 400; }
.wa p { padding: 9px 11px; border-radius: 14px 14px 14px 4px; background: #e7f6dc; font-size: 0.92rem; }
.wa .send { display: block; margin-top: 8px; text-align: right; color: var(--clay); font-weight: 700; }
.ghost { width: 220px; padding: 12px 14px; opacity: 0.4; animation-delay: 0.7s; }
.ghost b { display: block; }
.ghost span { color: var(--muted); }
.g1 { right: calc(50% + 300px); top: 420px; }
.g2 { left: calc(50% + 330px); top: 400px; }
.stage::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(rgba(244, 246, 241, 0), var(--bg)); }

@media (max-width: 1000px) {
  .formula, .photos, .ghost { display: none; }
  .note { right: auto; left: calc(50% - 170px); top: 170px; width: 300px; }
  .wa { left: auto; right: calc(50% - 170px); top: 330px; width: 280px; }
}
@media (max-width: 400px) {
  .note { left: 16px; width: calc(100% - 48px); }
  .wa { right: 16px; width: calc(100% - 56px); }
}

section { padding: clamp(72px, 10vw, 128px) 0; }
.hero { padding-bottom: 0; }

/* the story: one client, four moments, a strand of hair drawn as you scroll */
.story { position: relative; background: var(--forest); color: #f4f6f1; }
.story h2 { max-width: 13ch; font-size: clamp(2.4rem, 5vw, 4.25rem); }
.storyGrid { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: clamp(40px, 8vw, 120px); }
.track { position: relative; margin-top: clamp(48px, 7vw, 88px); padding-left: 64px; }
.thread { position: absolute; left: 0; top: 0; width: 40px; height: 100%; overflow: visible; }
.thread path { fill: none; stroke-linecap: round; }
.thread .base { stroke: rgba(240, 181, 143, 0.16); stroke-width: 2; }
.thread .ink { stroke: #f0b58f; stroke-width: 3; stroke-dasharray: 1 1; }
.track ol { margin: 0; padding: 0; list-style: none; }
.step { position: relative; min-height: 62vh; padding-bottom: 48px; }
.step:last-child { min-height: 31vh; padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: -51px; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--forest); box-shadow: inset 0 0 0 2px #6f8c81; transition: background-color 0.4s, box-shadow 0.4s, scale 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.step.on::before { background: #f0b58f; box-shadow: inset 0 0 0 2px #f0b58f, 0 0 0 7px rgba(240, 181, 143, 0.16); scale: 1.15; }
.when { margin-top: -5px; color: #f0b58f; font-weight: 700; }
.step h3 { margin-top: 10px; font-size: clamp(1.75rem, 3vw, 2.5rem); transition: color 0.4s; }
.step p:not(.when) { max-width: 40ch; margin-top: 14px; color: #c3d5cc; font-size: 1.125rem; text-wrap: pretty; transition: color 0.4s; }
.js .step:not(.on) h3 { color: #93ada2; }
.js .step:not(.on) p:not(.when) { color: #93ada2; }
.story .phone { background: #0c1512; box-shadow: 0 50px 80px -40px rgba(0, 0, 0, 0.85), inset 0 0 0 1px #2f3f39; }
.inline { display: none; }
.screen { position: sticky; top: max(24px, calc(50vh - 290px)); align-self: start; margin-top: clamp(48px, 7vw, 88px); }
.shots { display: grid; overflow: hidden; border-radius: 30px; }
.shots img { grid-area: 1 / 1; opacity: 0; filter: blur(10px); transform: scale(1.04); transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.shots img.on { opacity: 1; filter: none; transform: none; }

.statement p { max-width: 24ch; font-size: clamp(2rem, 4.6vw, 3.75rem); line-height: 1.08; }

.price { padding-top: 0; }
.price .wrap { padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.price .big { font-size: clamp(2.2rem, 4.6vw, 3.75rem); }
.paid { margin-top: 12px; font-size: clamp(1.125rem, 1.8vw, 1.375rem); }
.paid b { font-weight: 700; }
.fine { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }

.support { background: var(--card); }
.supGrid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); }
.support h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.support .lead { margin-top: 14px; color: var(--muted); }
.support .lead a { color: var(--ink); font-weight: 600; }
.support h3 { margin: 32px 0 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.support ul { margin: 0; padding-left: 18px; }
.support li { margin: 4px 0; }
.support li::marker { color: var(--clay); }
.faqH { margin-top: 10px !important; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 2px; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--clay); }
summary::after { content: "+"; flex: none; color: var(--clay); font-size: 1.4rem; font-weight: 400; line-height: 1; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
details[open] summary::after { transform: rotate(45deg); }
details p { max-width: 64ch; margin: 0 2px 18px; color: var(--muted); }

.foot { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; }
.foot a { color: var(--ink); }

@media (max-width: 900px) {
  .storyGrid, .supGrid { grid-template-columns: 1fr; }
  .screen { display: none; }
  .track { padding-left: 48px; }
  .step { min-height: 0; padding-bottom: 64px; }
  .step::before { left: -35px; }
  .inline { display: block; width: min(232px, 62vw); margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frag, .hero-phone { animation: none; }
  .thread .ink { stroke-dashoffset: 0 !important; }
  .shots img { filter: none; transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
@media (prefers-reduced-transparency: reduce) { .note { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* privacy policy */
.doc main { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.doc h1 { margin-bottom: 12px; font-family: var(--display); font-weight: 800; font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.05; letter-spacing: -0.035em; }
.doc h2 { margin: 44px 0 12px; font-size: 1.3rem; font-weight: 700; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 10px; }
.doc strong { color: var(--ink); }
.doc .date { font-size: 0.9rem; }
.doc .card { margin: 16px 0; padding: 22px; border-radius: 20px; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.doc table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: 0.95rem; background: var(--card); border-radius: 16px; overflow: hidden; }
.doc th, .doc td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { font-weight: 700; background: #e9efe6; }
@media (max-width: 600px) { .doc table { table-layout: fixed; } .doc th, .doc td { padding: 8px 6px; overflow-wrap: anywhere; } }
