/* Clearu landing. Tokens mirror src/theme.ts (light palette, the only one the app ships). */

@font-face { font-family: 'Nunito Sans'; src: url('assets/fonts/NunitoSans_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('assets/fonts/NunitoSans_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('assets/fonts/NunitoSans_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito Sans'; src: url('assets/fonts/NunitoSans_800ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;

  --background: #F8F9FD;
  --surface: #FFFFFF;
  --surface-muted: #F2EFF8;
  --surface-subtle: #F7F6FA;
  --text: #211D31;
  --secondary: #625C72;
  --subtle: #716A80;
  --line: #E7E1EF;
  --hairline: #F0EDF1;
  --card-edge: #EFEAF3;
  --accent: #D3729D;
  --accent-deep: #B04F7E;
  --accent-pressed: #973F6A;
  --accent-soft: #FBEAF2;
  --track: #F2E3EA;
  --score-middle: #E0A3BF;
  --score-low: #C9A0D9;
  --halo-good: #EBF8F4;
  --halo-avoid: #FBEFF1;
  --hollow-dot: #C9C2D3;
  --future-ink: #A6A0B3;
  --lavender: #EEE7FC;
  --blush: #FBE8EC;
  --mint: #DFF7EB;
  --success: #2E7759;
  --warning: #9B5C2E;
  --warning-soft: #FDF0E4;
  --danger: #A43D55;
  --suggestion: #6B4FB0;
  --suggestion-edge: #DCD0F5;
  --checkbox-edge: #D9D8E2;
  --camera: #08080B;
  --dark-surface-muted: #2D2A39;
  --dark-secondary: #C4BED1;
  --dark-accent: #F2A6C6;

  /* The welcome screen's sky, its ink, and the floor its clip settles on. */
  --sky: #8D9BF6;
  --lilac: #B9A8F0;
  --rose: #EBC3DD;
  --welcome-ink: #352747;
  --welcome-body: #3E3053;

  --radius-panel: 32px;
  --radius-card: 24px;
  --radius-row: 22px;
  --radius-tile: 14px;

  --font: 'Nunito Sans', ui-rounded, system-ui, sans-serif;
  --system: -apple-system, 'SF Pro Text', 'SF Pro Display', 'Nunito Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: clamp(20px, 4vw, 48px);
  --soft-ink: #8A85A0;
  --buddy: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #D6CCE8 transparent;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
p, h1, h2, h3, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--lavender); color: var(--text); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: #D6CCE8; border-radius: 999px; border: 3px solid var(--background); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
strong { font-weight: 800; }

.sprite { display: none; }
[hidden] { display: none !important; }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }


/* ---------- The phone ---------- */

.phone {
  --scale: .78;
  --bezel: 11px;
  position: relative;
  width: calc(390px * var(--scale) + var(--bezel) * 2);
  padding: var(--bezel);
  border-radius: calc(56px * var(--scale) + var(--bezel));
  background: #1B1922;
  box-shadow:
    inset 0 0 0 1.5px #3B3746,
    inset 0 0 0 4px #0E0D12,
    0 50px 90px -40px rgba(33, 29, 49, .55),
    0 24px 40px -28px rgba(33, 29, 49, .4);
}
.phone__screen {
  position: relative; overflow: hidden; isolation: isolate;
  width: calc(390px * var(--scale)); height: calc(844px * var(--scale));
  border-radius: calc(56px * var(--scale));
  background: var(--surface);
}
.phone__island {
  position: absolute; z-index: 5; left: 50%; top: calc(var(--bezel) + 11px * var(--scale));
  width: calc(124px * var(--scale)); height: calc(36px * var(--scale));
  transform: translateX(-50%); border-radius: 999px; background: #000;
}

/* Every screen is laid out at the iPhone's 390 × 844 points, in the app's own sizes, then scaled. */
.canvas {
  position: absolute; left: 0; top: 0; width: 390px; height: 844px;
  transform: scale(var(--scale)); transform-origin: 0 0;
  font-family: var(--font); font-size: 15px; line-height: 1.35; color: var(--text);
  overflow: hidden;
}
.canvas button { -webkit-tap-highlight-color: transparent; }
.canvas .ico { stroke-width: 2.4; }

.statusbar {
  position: absolute; z-index: 4; left: 0; right: 0; top: 0; height: 54px;
  display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 50px;
  font: 600 17px/1 var(--system); color: var(--text); pointer-events: none;
}
.statusbar--dark { color: #fff; }
.statusbar__icons { display: flex; align-items: center; gap: 6px; }
.statusbar__icons i { display: block; background: currentColor; }
.sig { width: 18px; height: 12px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect x='0' y='8' width='3' height='4' rx='1'/%3E%3Crect x='5' y='5.5' width='3' height='6.5' rx='1'/%3E%3Crect x='10' y='3' width='3' height='9' rx='1'/%3E%3Crect x='15' y='0' width='3' height='12' rx='1'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Crect x='0' y='8' width='3' height='4' rx='1'/%3E%3Crect x='5' y='5.5' width='3' height='6.5' rx='1'/%3E%3Crect x='10' y='3' width='3' height='9' rx='1'/%3E%3Crect x='15' y='0' width='3' height='12' rx='1'/%3E%3C/svg%3E") center / contain no-repeat; }
.wifi { width: 16px; height: 12px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M8 12l2.6-3.1a3.8 3.8 0 0 0-5.2 0z'/%3E%3Cpath d='M8 4.6c2 0 3.8.8 5.1 2.1l1.6-1.9A9.7 9.7 0 0 0 8 2a9.7 9.7 0 0 0-6.7 2.8l1.6 1.9A7.1 7.1 0 0 1 8 4.6z' opacity='.95'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'%3E%3Cpath d='M8 12l2.6-3.1a3.8 3.8 0 0 0-5.2 0z'/%3E%3Cpath d='M8 4.6c2 0 3.8.8 5.1 2.1l1.6-1.9A9.7 9.7 0 0 0 8 2a9.7 9.7 0 0 0-6.7 2.8l1.6 1.9A7.1 7.1 0 0 1 8 4.6z' opacity='.95'/%3E%3C/svg%3E") center / contain no-repeat; }
.batt { width: 26px; height: 12px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 12'%3E%3Crect x='.5' y='.5' width='22' height='11' rx='3.5' fill='none' stroke='black' opacity='.45'/%3E%3Crect x='2' y='2' width='19' height='8' rx='2'/%3E%3Crect x='24' y='4' width='1.6' height='4' rx='.8' opacity='.45'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 12'%3E%3Crect x='.5' y='.5' width='22' height='11' rx='3.5' fill='none' stroke='black' opacity='.45'/%3E%3Crect x='2' y='2' width='19' height='8' rx='2'/%3E%3Crect x='24' y='4' width='1.6' height='4' rx='.8' opacity='.45'/%3E%3C/svg%3E") center / contain no-repeat; }

.large-title { font: 700 34px/41px var(--system); letter-spacing: .01em; color: var(--text); }
.eyebrow-ui { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; color: var(--secondary); text-transform: uppercase; }
.eyebrow-ui--center { text-align: center; margin-top: 18px; }
.ui-h { font-size: 20px; font-weight: 700; letter-spacing: -.4px; margin-top: 28px; }
.ui-h--tight { margin: 0; }
.link-ui { display: flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--accent-deep); }
.link-ui .ico { font-size: 14px; }

.delta {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; font-style: normal; line-height: 1.25; white-space: nowrap;
}
.delta .ico { font-size: 12px; stroke-width: 2.8; }
.delta--up { color: var(--success); background: var(--mint); }
.delta--down { color: var(--warning); background: var(--warning-soft); }
.delta--steady { color: var(--secondary); background: var(--surface-muted); }

/* Score ring: the arc draws while the number counts up. */
.ring { position: relative; width: var(--size); height: var(--size); flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: var(--sw); }
.ring__track { stroke: var(--track); }
.ring__arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: var(--value) 100; }
.js .ring__arc { stroke-dasharray: 0 100; transition: stroke-dasharray .9s var(--ease-out); }
.js .ring.is-drawn .ring__arc { stroke-dasharray: var(--value) 100; }
.ring__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring__label b { font-weight: 800; font-size: calc(var(--size) * .3); letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.ring__label span { font-size: max(10px, calc(var(--size) * .1)); font-weight: 600; color: var(--secondary); margin-top: 2px; }

/* Today */
.scr-today { background: var(--surface); }
.today__wash { position: absolute; left: 0; right: 0; top: 0; height: 470px; background: linear-gradient(var(--accent-soft) 0%, var(--accent-soft) 46%, #F6EDFA 70%, var(--surface) 100%); }
.today__body { position: absolute; inset: 54px 0 0; padding: 8px 22px 0; }
.today__body .large-title { margin-bottom: 16px; }
.week { display: flex; justify-content: space-between; }
.week__day {
  width: 44px; height: 74px; border-radius: 999px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.week__day span { font-size: 10px; font-weight: 600; color: var(--secondary); }
.week__day b { font-size: 16px; font-weight: 700; line-height: 1.15; }
.week__day i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--hollow-dot); }
.week__day.is-past.is-scanned i { background: var(--accent); border-color: var(--accent); }
.week__day.is-today { background: var(--accent); }
.week__day.is-today span, .week__day.is-today b { color: #fff; }
.week__day.is-today i { border-color: #fff; }
.week__day.is-today.is-scanned i { background: #fff; }
.week__day.is-future b { color: var(--future-ink); }
.week__day.is-future i { border-color: var(--line); }
.streak {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 6px 12px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent-deep); font-size: 13px; font-weight: 700;
}
.streak .ico { font-size: 16px; }
.scorecard { margin-top: 18px; padding: 18px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--card-edge); }
.scorecard__top { display: flex; gap: 14px; align-items: center; }
.scorecard__headline { font-size: 17px; line-height: 23px; font-weight: 700; margin: 4px 0 8px; }
.spark { display: block; width: 100%; height: 64px; margin-top: 14px; overflow: visible; }
.spark__line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark__dot { fill: var(--accent); }
.js .spark__line { stroke-dasharray: 0 100; transition: stroke-dasharray 1.2s var(--ease-out) .2s; }
.js .is-drawn .spark__line { stroke-dasharray: 100 0; }
.spark__ticks { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--subtle); margin-top: 4px; }
.ui-section { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; font-size: 21px; font-weight: 700; letter-spacing: -.6px; }
.period-progress { display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: 0; color: var(--secondary); }
.period-progress > i { position: relative; width: 84px; height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.period-progress > i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform-origin: left; transform: scaleX(var(--p)); transition: transform .5s var(--ease-out); }
.period-progress--wide { display: flex; margin: 18px 0 14px; }
.period-progress--wide > i { flex: 1; width: auto; }
.steplist { margin-top: 14px; border-radius: var(--radius-card); background: var(--surface-subtle); padding: 0 14px; }
.steplist__row { display: flex; align-items: center; gap: 12px; min-height: 72px; border-bottom: 1px solid var(--hairline); }
.steplist__row:last-child { border-bottom: 0; }
.thumb { width: 44px; height: 44px; border-radius: var(--radius-tile); background: var(--surface); display: grid; place-items: center; flex: none; }
.thumb--suggested { background: var(--lavender); }
.thumb img { width: 30px; height: 34px; object-fit: contain; }
.steplist__copy { flex: 1; display: flex; flex-direction: column; }
.steplist__copy b { font-size: 14px; font-weight: 700; }
.steplist__copy small { font-size: 12px; color: var(--secondary); }
.check { width: 29px; height: 29px; border-radius: 50%; border: 1.5px solid var(--checkbox-edge); display: grid; place-items: center; color: #fff; flex: none; }
.check .ico { font-size: 16px; opacity: 0; }
.check.is-on { background: var(--accent); border-color: var(--accent); }
.check.is-on .ico { opacity: 1; }

/* The iOS 26 tab bar: system Liquid Glass, as the app draws it. */
.tabbar {
  position: absolute; z-index: 4; left: 20px; right: 20px; bottom: 26px; height: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 10px 30px -10px rgba(33, 29, 49, .22);
}
.tabbar > span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0; border-radius: 999px; font: 600 10px/1.2 var(--system); color: #1F1D26; }
.tabbar > span .ico { font-size: 23px; stroke-width: 2; }
.tabbar > span.is-active { color: var(--accent-deep); background: rgba(33, 29, 49, .06); }

/* Guided face camera */
.scr-camera { background: var(--camera); color: #fff; }
.camera__feed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 24%; }
.camera__guide { position: absolute; left: 61px; top: 168px; width: 268px; height: 354px; }
.camera__guide::before {
  content: ''; position: absolute; inset: 9px; border-radius: 999px;
  box-shadow: 0 0 0 1200px rgba(8, 8, 11, .74), inset 0 0 0 1px rgba(255, 255, 255, .4);
}
.camera__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.camera__ring rect { fill: none; stroke-width: 5; stroke-linecap: round; }
.seg-track { stroke: rgba(255, 255, 255, .22); stroke-dasharray: 92 8; stroke-dashoffset: -4; }
.seg { stroke: var(--dark-accent); stroke-dasharray: 0 300; transition: stroke-dasharray .12s linear; }
.seg--1 { stroke-dashoffset: -4; }
.seg--2 { stroke-dashoffset: -104; }
.seg--3 { stroke-dashoffset: -204; }
.camera__turn { position: absolute; top: 50%; font-size: 36px; margin-top: -18px; color: #fff; stroke-width: 2.6; opacity: 0; transition: opacity .3s; }
.camera__turn--left { left: -46px; }
.camera__turn--right { right: -46px; }
.scr-camera[data-pose="left"] .camera__turn--left, .scr-camera[data-pose="right"] .camera__turn--right { opacity: 1; animation: nudge 1s ease-in-out infinite; }
.camera__turn--left { --dir: -1; }
.camera__turn--right { --dir: 1; }
@keyframes nudge { 50% { transform: translateX(calc(var(--dir) * 7px)); } }
.camera__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 3; }
.camera__flash.is-on { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: .75; } 100% { opacity: 0; } }
.camera__top { position: absolute; z-index: 4; top: 60px; left: 20px; right: 20px; display: flex; justify-content: space-between; }
.glass-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.glass-btn--light { background: rgba(255, 255, 255, .9); color: var(--text); box-shadow: 0 2px 10px rgba(33, 29, 49, .1), inset 0 0 0 1px rgba(255, 255, 255, .9); }
.glass-btn--ghost { visibility: hidden; }
.camera__pill {
  position: absolute; z-index: 4; left: 50%; top: 108px; transform: translateX(-50%);
  max-width: 320px; width: max-content; padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: #15131D; font-size: 15px; font-weight: 600; text-align: center;
}
.camera__pill span { display: block; }
.camera__pill span.is-in { animation: pill-in .35s var(--ease-out); }
@keyframes pill-in { from { opacity: 0; transform: translateY(4px); } }
.camera__footer { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 0 21px 44px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.camera__count { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.camera__controls { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.camera__spacer { width: 50px; }
.ghost-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ghost-btn__circle { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(45, 42, 57, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); font-size: 22px; }
.ghost-btn small { font-size: 12px; color: var(--dark-secondary); }
.camera__done {
  position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(8, 8, 11, .9); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.camera__done img { width: 120px; height: 120px; }
.camera__done.is-on { opacity: 1; visibility: visible; }
.camera__done.is-on img { animation: think 1.6s ease-in-out infinite; }
@keyframes think { 50% { transform: rotate(-6deg) translateY(-4px); } }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .35; animation: dot 1.2s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { opacity: 1; transform: translateY(-3px); } }

/* Report */
.scr-report { background: var(--camera); }
.report__scroll, .routine__scroll, .product__scroll { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.report__scroll::-webkit-scrollbar, .routine__scroll::-webkit-scrollbar, .product__scroll::-webkit-scrollbar { display: none; }
.report__hero { position: relative; height: 470px; overflow: hidden; }
.report__hero > img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.scr-report > .statusbar { background: linear-gradient(rgba(8, 8, 11, .62), rgba(8, 8, 11, .28) 70%, rgba(8, 8, 11, 0)); transition: background .2s, color .2s; }
.scr-report.is-past-photo > .statusbar { color: var(--text); background: var(--background); }
.report__shade { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .62) 0%, transparent 30%, transparent 62%, rgba(0, 0, 0, .7) 100%); }
.report__top { position: absolute; z-index: 2; top: 60px; left: 16px; right: 16px; display: flex; align-items: center; gap: 8px; }
.glass-chip, .sample-chip { padding: 7px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.glass-chip { background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); margin: 0 auto; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sample-chip { background: var(--accent); }
.areas { position: absolute; z-index: 2; left: 0; right: 0; bottom: 40px; display: flex; gap: 6px; padding: 0 16px; overflow: hidden; }
.area {
  flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background .2s, color .2s;
}
.area.is-on { background: #fff; color: #15131D; }
.marker { position: absolute; z-index: 2; left: var(--mx); top: var(--my); display: flex; align-items: center; gap: 8px; transform: translate(-7px, -7px); }
.marker i { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--accent); animation: ping 1.6s ease-out infinite; }
.marker b { padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--text); font-size: 12px; font-weight: 700; animation: pill-in .35s var(--ease-out); }
@keyframes ping { 0% { box-shadow: 0 0 0 3px var(--accent), 0 0 0 3px rgba(211, 114, 157, .5); } 100% { box-shadow: 0 0 0 3px var(--accent), 0 0 0 18px rgba(211, 114, 157, 0); } }
.report__sheet { position: relative; margin-top: -28px; padding: 22px 22px 60px; border-radius: 32px 32px 0 0; background: var(--background); min-height: 420px; }
.report__score { display: flex; gap: 18px; align-items: center; }
.report__headline { font-size: 19px; line-height: 25px; font-weight: 700; letter-spacing: -.3px; margin: 4px 0 8px; }
.report__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.report__note { margin-top: 14px; font-size: 12px; line-height: 18px; color: var(--secondary); }
.metrics { margin-top: 12px; padding: 0 16px; border-radius: var(--radius-row); background: var(--surface); }
.metric { display: grid; grid-template-columns: 1fr auto 34px; align-items: center; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.metric:last-child { border-bottom: 0; }
.metric > span { font-size: 15px; font-weight: 700; }
.metric > b { font-size: 20px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.metric__bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--surface-muted); overflow: hidden; }
.metric__bar i { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: inherit; background: var(--accent); }
.metric__bar i.mid { background: var(--score-middle); }
.js .metric__bar i { transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease-out); }
.js .is-drawn .metric__bar i { transform: scaleX(1); }
.js .is-drawn .metric:nth-child(2) .metric__bar i { transition-delay: .06s; }
.js .is-drawn .metric:nth-child(3) .metric__bar i { transition-delay: .12s; }
.js .is-drawn .metric:nth-child(4) .metric__bar i { transition-delay: .18s; }
.js .is-drawn .metric:nth-child(5) .metric__bar i { transition-delay: .24s; }
.js .is-drawn .metric:nth-child(6) .metric__bar i { transition-delay: .3s; }
.js .is-drawn .metric:nth-child(7) .metric__bar i { transition-delay: .36s; }
.js .is-drawn .metric:nth-child(8) .metric__bar i { transition-delay: .42s; }
.js .is-drawn .metric:nth-child(9) .metric__bar i { transition-delay: .48s; }

/* Routine */
.scr-routine, .scr-product, .scr-ask { background: var(--background); }
.routine__scroll { padding: 62px 22px 120px; }
.routine__scroll .large-title { margin-bottom: 16px; }
.periods { display: flex; gap: 8px; }
.period {
  flex: 1; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--secondary);
  transition: background .2s, border-color .2s, color .2s;
}
.period img { width: 20px; height: 20px; opacity: .5; transition: opacity .2s; }
.period.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.period.is-on img { opacity: 1; }
.rcard { display: flex; flex-direction: column; gap: 12px; padding: 16px; margin-bottom: 12px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--card-edge); }
.rcard--suggested { border-color: var(--suggestion-edge); }
.rcard__head { display: flex; align-items: center; justify-content: space-between; }
.rcard__label { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: var(--secondary); text-transform: uppercase; }
.rcard__row { display: flex; align-items: center; gap: 12px; }
.rthumb { width: 56px; height: 56px; border-radius: var(--radius-tile); background: var(--surface-muted); display: grid; place-items: center; flex: none; }
.rthumb--suggested { background: var(--lavender); }
.rthumb img { width: 44px; height: 50px; object-fit: contain; }
.rcard__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.rcard__copy b { position: relative; font-size: 15px; line-height: 20px; font-weight: 700; transition: color .3s; }
.rcard__copy b::after { content: ''; position: absolute; left: 0; top: 50%; height: 1.5px; width: 100%; background: var(--secondary); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.rcard.is-done .rcard__copy b { color: var(--secondary); }
.rcard.is-done .rcard__copy b::after { transform: scaleX(1); }
.rcard__copy p { font-size: 12px; line-height: 17px; color: var(--secondary); }
.rcard__copy small { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--secondary); }
.rcard__copy small .ico { font-size: 13px; }
.rcheck {
  width: 30px; height: 30px; flex: none; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--checkbox-edge); background: var(--surface); color: #fff;
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.rcheck .ico { font-size: 17px; transform: scale(0); transition: transform .35s var(--spring); }
.rcheck[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.rcheck[aria-pressed="true"] .ico { transform: scale(1); }
.kind { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; margin-bottom: 4px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.kind .ico { font-size: 11px; }
.kind--suggested { color: var(--suggestion); background: var(--lavender); }
.changed { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-size: 11px; font-weight: 700; }
.changed .ico { font-size: 11px; }
.rcard__actions { display: flex; gap: 8px; }
.rbtn { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface-muted); font-size: 13px; font-weight: 700; }
.rbtn--line { background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-deep); }

/* Product scan result */
.product__scroll { padding: 54px 0 140px; }
.product__hero { position: relative; height: 260px; display: grid; place-items: center; }
.product__halo { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--halo-good); transition: background .4s; }
.scr-product[data-verdict="no-match"] .product__halo { background: var(--halo-avoid); }
.product__hero img { position: relative; width: 190px; height: 225px; object-fit: contain; }
.product__hero small { position: absolute; right: 30px; bottom: 6px; font-size: 9px; font-weight: 800; letter-spacing: .8px; color: var(--subtle); }
.product__chip-wrap { display: flex; justify-content: center; margin-top: 4px; }
.match { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px 0 7px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.match .ico { font-size: 15px; stroke-width: 2.8; }
.match--good { color: var(--success); background: var(--mint); }
.match--avoid { color: var(--danger); background: var(--blush); }
.match.is-pop { animation: pop .5s var(--spring); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.product__title { margin: 6px 26px 0; text-align: center; font-size: 26px; line-height: 31px; font-weight: 700; letter-spacing: -.8px; }
.product__brand { margin-top: 6px; text-align: center; font-size: 15px; font-weight: 600; }
.product__meta { text-align: center; font-size: 13px; font-weight: 600; color: var(--secondary); }
.matchcard { margin: 20px 22px 0; padding: 18px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--card-edge); display: flex; flex-direction: column; gap: 8px; }
.matchcard__head { margin-bottom: 4px; }
.matchcard > div { display: flex; flex-direction: column; gap: 8px; }
.matchcard__sub { margin-top: 8px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--secondary); }
.reason { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 8px; font-size: 13px; line-height: 19px; }
.reason .ico { font-size: 18px; margin-top: 1px; stroke-width: 2.6; }
.reason--good { background: var(--mint); }
.reason--good .ico { color: var(--success); }
.reason--caution { background: var(--warning-soft); }
.reason--caution .ico { color: var(--warning); }
.reason--avoid { background: var(--blush); }
.reason--avoid .ico { color: var(--danger); }
.product__footer { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 30px 22px 38px; background: linear-gradient(rgba(248, 249, 253, 0), var(--background) 40%); }
.ui-button { display: flex; align-items: center; justify-content: center; min-height: 58px; border-radius: 999px; background: var(--accent-deep); color: #fff; font-size: 17px; font-weight: 700; }

/* Assistant */
.ask__header { position: absolute; top: 54px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; }
.ask__header b { font: 600 17px/1 var(--system); }
.ask__thread { position: absolute; top: 118px; left: 16px; right: 16px; display: flex; flex-direction: column; gap: 10px; }
.cbubble { max-width: 86%; padding: 10px 15px; border-radius: var(--radius-row); font-size: 15px; line-height: 22px; }
.cbubble--user { align-self: flex-end; background: var(--lavender); border-bottom-right-radius: 6px; }
.cbubble--reply { align-self: flex-start; background: var(--surface); border: 1px solid var(--card-edge); border-bottom-left-radius: 6px; }
.ask__typing { align-self: flex-start; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: var(--radius-row); border-bottom-left-radius: 6px; background: var(--surface); border: 1px solid var(--card-edge); color: var(--subtle); }
.ask__typing img { width: 40px; height: 40px; animation: think 1.6s ease-in-out infinite; }
.ask__note { align-self: center; font-size: 12px; color: var(--subtle); margin-top: 2px; }
.js .scr-ask [data-ask-reply], .js .scr-ask [data-ask-note] { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.js .scr-ask.is-answered [data-ask-reply], .js .scr-ask.is-answered [data-ask-note] { opacity: 1; transform: none; }
.js .scr-ask.is-answered [data-ask-typing] { display: none; }
.ask__bottom { position: absolute; left: 16px; right: 16px; bottom: 34px; display: flex; flex-direction: column; gap: 8px; }
.ask__suggestions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.qrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--radius-row); border: 1px solid var(--suggestion-edge); background: var(--surface); color: var(--suggestion); font-size: 14px; font-weight: 600; }
.qrow .ico { font-size: 15px; }
.composer { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 6px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.composer__plus { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-muted); font-size: 18px; }
.composer__field { flex: 1; color: var(--subtle); }
.composer__send { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-deep); color: #fff; font-size: 18px; }

/* ---------- Page ---------- */

.match--ok { color: var(--warning); background: var(--warning-soft); }
.match--unknown { color: var(--secondary); background: var(--surface-muted); }

/* The traveling Clearu. Its position, lean and facing are set from the scroll; see main.js `createBuddy`. */
.buddy {
  position: fixed; z-index: 30; left: 0; top: 0;
  width: var(--buddy); height: var(--buddy);
  pointer-events: none;
  transform: translate3d(var(--bx, -9999px), var(--by, -9999px), 0) scale(var(--bs, 1));
  transform-origin: 0 0;
  transition: opacity .3s ease-out;
}
.buddy.is-away, .buddy.is-covering { opacity: 0; }
.buddy__walk { width: 100%; height: 100%; transform: translateY(var(--bob, 0px)) rotate(var(--lean, 0deg)) scaleX(var(--face, 1)); }
.buddy__hop, .buddy__pose { position: relative; width: 100%; height: 100%; }
.buddy__pose img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .22s ease-out; }
.buddy__pose img.is-on { opacity: 1; }
.buddy.is-blinking [data-pose="hello"].is-on { opacity: 0; }
.buddy.is-blinking.is-hello [data-blink] { opacity: 1; transition: none; }
.buddy__hop.is-hop { animation: hop .5s var(--ease-out); }
@keyframes hop { 0% { transform: none; } 35% { transform: translateY(-18%) scale(1.04, .96); } 100% { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .buddy:not(.is-walking) .buddy__pose { animation: drift 5.2s ease-in-out infinite; }
}
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }

.anchor { display: block; width: var(--buddy); height: var(--buddy); flex: none; pointer-events: none; }

/* Navigation: a floating pill */
.nav {
  position: fixed; z-index: 40; top: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  width: max-content; max-width: calc(100vw - 20px);
  padding: 6px 6px 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--card-edge), 0 14px 34px -20px rgba(53, 39, 71, .4);
}
.brand { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; margin-right: 10px; }
.brand__word { font-weight: 800; font-size: 21px; letter-spacing: -.03em; color: var(--welcome-ink); line-height: 1; }
.nav__links { display: flex; }
.nav__links a { padding: 9px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--secondary); transition: background .2s, color .2s; }
.nav__links a:hover { background: var(--surface-muted); color: var(--text); }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-muted); margin: 0 4px 0 6px; }
.lang__opt {
  border: 0; background: none; cursor: pointer; min-width: 38px; min-height: 32px; border-radius: 999px;
  font-weight: 800; font-size: 12px; letter-spacing: .04em; color: var(--secondary);
  transition: background .25s var(--ease-out), color .25s;
}
.lang__opt[aria-pressed="true"] { background: var(--surface); color: var(--accent-deep); box-shadow: 0 1px 2px rgba(33, 29, 49, .12); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 999px;
  border: 0; background: var(--accent-deep); color: #fff;
  font-weight: 800; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s var(--ease-out);
}
.btn .ico { font-size: 19px; }
.btn:hover { background: var(--accent-pressed); }
.btn:active { transform: scale(.97); }
/* Until the App Store listing exists, the download buttons read "Em breve" and link nowhere; see main.js `wireDownloads`. */
.store-ready { display: none; }
.store-live .store-ready { display: inline; }
.store-live .store-soon { display: none; }
.btn:not([href]) { background: var(--accent-soft); color: var(--accent-deep); cursor: default; }
.btn:not([href]):hover { background: var(--accent-soft); }
.btn:not([href]):active { transform: none; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; gap: 6px; }
.btn--small .ico { font-size: 16px; }
.btn--big { min-height: 62px; padding: 0 32px; font-size: 18px; }

/* Shared type */
.display {
  font-weight: 800; letter-spacing: -.04em; line-height: .96;
  font-size: clamp(46px, 7vw, 96px); color: var(--text);
  max-width: 14ch; text-wrap: balance;
}
.lead { margin: 22px auto 0; max-width: 32em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--secondary); text-wrap: pretty; }
.meta { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--subtle); }
.title { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.title__soft { display: block; color: var(--soft-ink); }
.sample-note { font-size: 12px; font-weight: 700; color: var(--subtle); text-align: center; }

.head { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.head__text { margin: 26px auto 0; max-width: 34em; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--secondary); text-wrap: pretty; }
.head__punch { margin-top: 16px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.5; font-weight: 800; }

/* Scroll-linked arrival: --e runs 0 → 1 as an element enters; see main.js `revealOnScroll`. */
.js [data-reveal] { opacity: var(--e, 1); transform: translateY(calc((1 - var(--e, 1)) * 44px)); }
.js .title[data-reveal], .js .display[data-reveal] { filter: blur(calc((1 - var(--e, 1)) * 10px)); }
.js [data-reveal="left"] { transform: translateX(calc((1 - var(--e, 1)) * -70px)); }
.js [data-reveal="right"] { transform: translateX(calc((1 - var(--e, 1)) * 70px)); }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 104px var(--gutter) 0;
}
.hero::before {
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 1100px;
  background:
    radial-gradient(55% 45% at 50% 0%, rgba(141, 155, 246, .34), transparent 72%),
    radial-gradient(38% 38% at 12% 22%, rgba(185, 168, 240, .38), transparent 72%),
    radial-gradient(38% 38% at 88% 26%, rgba(235, 195, 221, .5), transparent 72%);
}
.anchor--hero { width: calc(var(--buddy) * 1.6); height: calc(var(--buddy) * 1.6); margin-bottom: 10px; }
.hero .btn--big { margin-top: 34px; }

.stage { position: relative; width: min(1120px, 100%); margin-top: 72px; display: flex; flex-direction: column; align-items: center; gap: 14px; perspective: 1700px; }
.stage__phone { transform-origin: 50% 0; transform: rotateX(calc((1 - var(--t, 1)) * 14deg)) scale(calc(.9 + var(--t, 1) * .1)); will-change: transform; }
.phone--hero { --scale: .9; }
.floater {
  position: absolute; z-index: 2;
  transform: translateY(calc(var(--s, 0) * var(--k) * -0.16px));
  border-radius: 20px; background: var(--surface);
  box-shadow: 0 18px 40px -22px rgba(53, 39, 71, .5);
}
.floater--metric { left: 4%; top: 18%; display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 10px; padding: 14px 18px; }
.floater--metric > span { font-weight: 700; font-size: 15px; }
.floater--metric > b { font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.floater--chip { left: 12%; top: 52%; padding: 10px; }
.floater--match { right: 6%; top: 26%; padding: 10px; }
.floater--match .match { min-height: 32px; font-size: 14px; padding: 0 12px 0 9px; }
.floater--streak { right: 12%; top: 60%; padding: 8px; }
.floater .delta { font-size: 13px; padding: 6px 11px; }
.floater .streak { margin: 0; }

/* Pain */
.pain { padding: clamp(110px, 13vw, 180px) var(--gutter) 0; }
.compare { max-width: 1000px; margin: 64px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare__card { padding: 34px; border-radius: 28px; background: var(--surface); border: 1px solid var(--card-edge); }
.compare__card h3 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.compare__sub { margin-top: 2px; font-size: 15px; color: var(--subtle); font-weight: 600; }
.compare__card ul { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.compare__card li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.45; color: var(--secondary); }
.compare__card li .ico { font-size: 18px; margin-top: 3px; color: var(--future-ink); stroke-width: 2.6; }
.compare__card--with { background: var(--text); border-color: var(--text); color: #fff; }
.compare__card--with .compare__sub { color: var(--future-ink); }
.compare__card--with li { color: #E9E4F2; }
.compare__card--with li .ico { color: var(--dark-accent); }

/* Demo: the steps scroll, the phone stays and plays them */
.demo { --demo-scale: .78; padding: clamp(120px, 14vw, 190px) var(--gutter) 40px; }
.demo__track { max-width: 1120px; margin: 40px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 6vw, 96px); }
.demo__steps { padding-left: calc(var(--buddy) + 28px); }
.dstep { position: relative; min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.js .dstep { opacity: .26; transition: opacity .45s var(--ease-out); }
.js .dstep.is-active { opacity: 1; }
.dstep__text { display: flex; flex-direction: column; align-items: flex-start; }
.dstep__icon { width: 58px; height: 58px; border-radius: 18px; background: var(--tile); display: grid; place-items: center; }
.dstep__icon img { width: 38px; height: 38px; }
.dstep h3 { margin-top: 20px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.dstep p { margin-top: 12px; max-width: 25em; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--secondary); }
.try { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--secondary); }
.chip-btn {
  min-height: 40px; padding: 0 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--suggestion-edge); background: var(--surface); color: var(--suggestion);
  font-size: 14px; font-weight: 700; transition: background .2s, color .2s, border-color .2s;
}
.chip-btn[aria-pressed="true"] { background: var(--suggestion); border-color: var(--suggestion); color: #fff; }

.demo__sticky {
  position: sticky; top: calc(50vh - (844px * var(--demo-scale) + 22px) / 2 + 16px);
  align-self: start; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.phone--demo { --scale: var(--demo-scale); }
.js .phone--demo .canvas { transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility .35s; }
.js .phone--demo .canvas:not(.is-active) { opacity: 0; visibility: hidden; transform: scale(var(--scale)) translateY(18px); }

/* Promises as a bento */
.truth { padding: clamp(110px, 13vw, 170px) var(--gutter) 0; }
.bento { max-width: 1060px; margin: 64px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile {
  position: relative; overflow: hidden; min-height: 300px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--card-edge);
}
.tile h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.tile p { font-size: 17px; line-height: 1.55; color: var(--secondary); }
.tile--wide { grid-column: span 2; }
.tile--ink { background: var(--text); border-color: var(--text); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; }
.tile--ink p { color: var(--dark-secondary); }
.tile__copy { display: flex; flex-direction: column; gap: 10px; }
.minirows { display: flex; flex-direction: column; gap: 8px; }
.minirow { display: grid; grid-template-columns: 1fr auto 34px; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); }
.minirow > span { font-size: 15px; font-weight: 700; }
.minirow > b { font-size: 20px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.pile { position: relative; margin-top: auto; height: 176px; }
.pile .match {
  position: absolute; left: 50%; top: calc(var(--n) * 42px);
  min-height: 32px; padding: 0 13px 0 9px; font-size: 14px; white-space: nowrap;
  transform: translateX(calc(-50% + var(--x))) translateY(calc((1 - var(--e, 1)) * -40px)) rotate(calc(var(--r) * (1 + (1 - var(--e, 1)) * 3)));
  box-shadow: 0 8px 18px -12px rgba(53, 39, 71, .45);
}
.pile .match:nth-child(1) { --n: 0; }
.pile .match:nth-child(2) { --n: 1; }
.pile .match:nth-child(3) { --n: 2; }
.pile .match:nth-child(4) { --n: 3; }
.ring--tile { margin-bottom: auto; }
.tile--lavender { background: var(--lavender); border-color: var(--lavender); flex-direction: row; align-items: center; gap: 28px; }
.tile__icon { width: 96px; height: 96px; flex: none; }

/* Testimonials: two rows drifting in opposite directions */
.voices { padding: clamp(110px, 13vw, 170px) 0 0; }
.voices .head { padding: 0 var(--gutter); }
.voices__label { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--subtle); }
.marquee {
  margin-top: 56px; display: flex; flex-direction: column; gap: 16px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__row { transform: translateX(calc(var(--m, 0) * 1px - 640px)); }
.marquee__row--reverse { transform: translateX(calc(var(--m, 0) * -1px)); }
.marquee__track { display: flex; width: max-content; }
.js .marquee__track { animation: marquee 70s linear infinite; }
.js .marquee__row--reverse .marquee__track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-25%); } }
.vcard {
  width: 340px; margin-right: 16px; min-height: 196px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--card-edge);
}
.vcard__text { font-size: 16px; line-height: 1.6; color: var(--text); }
.vcard__who { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.35; }
.vcard__who b { display: block; font-size: 15px; font-weight: 800; }
.vcard__who span span { color: var(--secondary); font-weight: 600; }
.avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--tone); color: var(--accent-deep); font-weight: 800; font-size: 15px; }

/* FAQ */
.faq { padding: clamp(110px, 13vw, 170px) var(--gutter) 0; }
.faq__list { max-width: 760px; margin: 48px auto 0; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; cursor: pointer; list-style: none;
  font-size: clamp(17px, 1.5vw, 20px); font-weight: 800; letter-spacing: -.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ico { font-size: 20px; color: var(--accent-deep); transition: transform .3s var(--ease-out); }
.qa[open] summary .ico { transform: rotate(45deg); }
.qa summary:hover { color: var(--accent-deep); }
.qa p { padding: 0 4px 24px; max-width: 40em; font-size: 17px; line-height: 1.65; color: var(--secondary); }
.qa[open] p { animation: answer .35s var(--ease-out); }
@keyframes answer { from { opacity: 0; transform: translateY(-6px); } }

/* Closing invitation */
.close {
  position: relative; isolation: isolate; overflow: hidden;
  margin: clamp(110px, 13vw, 170px) 12px 0; border-radius: var(--radius-panel);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(64px, 8vw, 104px) var(--gutter) clamp(72px, 9vw, 112px);
  background:
    radial-gradient(60% 70% at 50% 100%, rgba(141, 155, 246, .32), transparent 75%),
    radial-gradient(45% 60% at 10% 30%, rgba(235, 195, 221, .55), transparent 75%),
    radial-gradient(45% 60% at 90% 30%, rgba(185, 168, 240, .45), transparent 75%),
    var(--surface);
}
.anchor--close { margin-bottom: 18px; }
.display--close { font-size: clamp(42px, 6vw, 84px); max-width: 12ch; }
.close .lead { margin-top: 18px; }
.close .btn { margin-top: 32px; }

/* Footer */
.foot { max-width: 1120px; margin: 0 auto; padding: 40px var(--gutter) 48px; display: flex; align-items: center; gap: 28px; color: var(--secondary); }
.foot__note { flex: 1; max-width: 620px; font-size: 13px; line-height: 1.55; }
.foot small { margin-left: auto; font-size: 13px; font-weight: 600; }

/* ---------- Responsive ---------- */

@media (max-height: 880px) { .demo { --demo-scale: .7; } }
@media (max-height: 780px) { .demo { --demo-scale: .62; } }
@media (max-height: 680px) { .demo { --demo-scale: .54; } }

/* Below 1280px the side margins are too narrow to stand in, so the mascot's stops sit above each heading. */
.head .anchor { position: absolute; top: calc(-1 * var(--buddy) - 22px); }
.head .anchor--left { left: 0; }
.head .anchor--right { right: 0; }
.dstep .anchor--step { position: absolute; right: 0; top: 0; }
/* From 1280px Clearu waits in the page margins, a fixed distance from the viewport edge. */
@media (min-width: 1280px) {
  .head .anchor--left { left: calc(28px - (100vw - 100%) / 2); right: auto; top: -8px; }
  .head .anchor--right { right: calc(28px - (100vw - 100%) / 2); left: auto; top: -8px; }
  .dstep .anchor--step { right: auto; left: calc(-1 * var(--buddy) - 28px); top: calc(50% - var(--buddy) / 2); }
}
@media (max-width: 1439px) { :root { --buddy: 104px; } }
@media (max-width: 1279px) {
  :root { --buddy: 96px; }
  .demo__steps { padding-left: 0; }
}

@media (max-width: 1080px) {
  .nav__links { display: none; }
  .floater--metric { left: 0; }
  .floater--chip { left: 4%; }
  .floater--match { right: 0; }
  .floater--streak { right: 4%; }
}

@media (max-width: 900px) {
  .demo__track { grid-template-columns: 1fr; gap: 0; }
  .demo { --demo-scale: .56; }
  .demo__sticky {
    order: -1; z-index: 3; top: 70px; padding: 0 0 26px;
    background: linear-gradient(var(--background) 88%, rgba(248, 249, 253, 0));
  }
  .demo__sticky .sample-note { display: none; }
  .dstep { min-height: 72vh; justify-content: flex-start; }
  /* The active step's copy stays pinned just under the phone until its step scrolls away. */
  .dstep__text { position: sticky; top: calc(70px + 844px * var(--demo-scale) + 22px + 30px); padding-bottom: 20px; }
  .dstep__icon { width: 40px; height: 40px; border-radius: 13px; }
  .dstep__icon img { width: 26px; height: 26px; }
  .dstep h3 { margin-top: 12px; }
  .dstep p { margin-top: 8px; }
  .try { margin-top: 14px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--wide { grid-column: span 2; }
}
@media (max-width: 900px) and (max-height: 760px) { .demo { --demo-scale: .48; } }

@media (max-width: 720px) {
  :root { --buddy: 64px; }
  body { font-size: 16px; }
  .nav { padding: 5px 5px 5px 12px; top: 10px; }
  .brand__word { font-size: 19px; }
  .brand { margin-right: 4px; }
  .hero { padding-top: 92px; }
  .display { font-size: clamp(44px, 13vw, 60px); }
  .stage { margin-top: 48px; }
  .phone--hero { --scale: .72; --bezel: 9px; }
  .floater { display: none; }
  .compare { grid-template-columns: 1fr; margin-top: 44px; }
  .compare__card { padding: 26px; }
  .dstep h3 { font-size: 22px; }
  .dstep p { font-size: 15px; line-height: 1.55; }
  .bento { grid-template-columns: 1fr; margin-top: 44px; }
  .tile--wide { grid-column: auto; }
  .tile--ink { grid-template-columns: 1fr; }
  .tile--lavender { flex-direction: column; align-items: flex-start; }
  .tile { padding: 26px; min-height: 0; }
  .vcard { width: 288px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .foot small { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__row { overflow-x: auto; transform: none !important; }
}
