/* Routine Finder v2 (20 Nov 2026). Design read: interactive beauty tool for women arriving from
   Pinterest on phones; soft premium-consumer language that matches the account's warm photo pins.
   Dials: variance 7, motion 6, density 3. Fonts: Bricolage Grotesque (display), Geist (body),
   Cormorant Garamond italic only for single standalone lines, matching the pins' italic taglines.
   One accent (terracotta from the pins), light and dark tokens, one radius scale (22 / 14 / pill). */
:root {
  --bg: #FBF1EB; --bg-2: #F5E2D7; --surface: #FFF9F5; --ink: #36231B; --muted: #765B4F;
  --line: rgba(54, 35, 27, .12); --accent: #B04B27; --accent-ink: #FFF7F2; --accent-deep: #8E3A1C;
  --t0: #F8DCCB; --t1: #F4D3CA; --t2: #EEDDCB; --t3: #F2E3D9; --t4: #F6E6D0;
  --r: 22px; --r-sm: 14px; --shadow: 0 30px 70px -38px rgba(120, 62, 36, .55);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --script: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1310; --bg-2: #261914; --surface: #2A1C17; --ink: #F7E9E1; --muted: #CBAE9F;
    --line: rgba(247, 233, 225, .13); --accent: #E8784D; --accent-ink: #2A140B; --accent-deep: #F39B76;
    --t0: #3A251C; --t1: #3C2420; --t2: #34271D; --t3: #382921; --t4: #3A2B1D;
    --shadow: 0 30px 70px -38px rgba(0, 0, 0, .8);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -.025em; margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.ph { line-height: 1; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.brand .ph { color: var(--accent); font-size: 1.3rem; }
.toplink { font-weight: 500; font-size: .95rem; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .25s var(--ease); }
@media (max-width: 420px) { .brand { font-size: .95rem; } .toplink .lbl { display: none; } .toplink { padding: .5rem; } .toplink .ph { font-size: 1.2rem; } }
.toplink:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; height: 52px; padding: 0 1.45rem; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background .25s, box-shadow .25s; }
.btn .ph { font-size: 1.2rem; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 14px 30px -16px var(--accent); }
.btn.primary:hover { background: var(--accent-deep); }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.quiet:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* Hero */
.hero { display: grid; gap: 28px; padding: 8px 0 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.5rem, 9vw, 4.1rem); line-height: 1.02; max-width: 14ch; text-wrap: balance; }
.hero-copy p { color: var(--muted); font-size: 1.12rem; max-width: 34ch; margin: 18px 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; max-width: 520px; width: 100%; margin: 0 auto; }
.arch { border-radius: 999px 999px var(--r) var(--r); overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow); background: var(--bg-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.bubble { position: absolute; left: -6%; bottom: -8%; width: 42%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--bg); box-shadow: var(--shadow); }
.bubble img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 60%; }
.note-card { position: absolute; right: -2%; top: 12%; background: var(--surface); border-radius: var(--r-sm); padding: 12px 14px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.35; max-width: 190px; }
.note-card b { display: block; font-family: var(--display); font-size: 1.05rem; }
.note-card span { color: var(--muted); }
@media (max-width: 767px) {
  .hero-art { order: -1; max-width: 360px; }
  .arch { aspect-ratio: 5 / 4; }
  .bubble { left: -2%; width: 34%; }
  .note-card { right: 0; top: auto; bottom: -14%; }
  .hero-copy { padding-top: 24px; }
}
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr .95fr; gap: 56px; padding: 24px 0 96px; } }

/* Load-in motion (hero only) */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .3s; } .rise.d4 { animation-delay: .5s; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  .pop { animation: pop .8s var(--ease) .55s both; }
  @keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
  [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  [data-reveal].in { opacity: 1; transform: none; }
}

/* Finder (quiz) */
.finder { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); display: grid; overflow: hidden; scroll-margin-top: 16px; }
.finder-media { position: relative; min-height: 150px; background: var(--bg-2); }
.finder-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.finder-media img.on { opacity: 1; transform: none; }
.finder-main { padding: 22px 18px 24px; min-height: 420px; }
@media (min-width: 900px) { .finder { grid-template-columns: .8fr 1.2fr; } .finder-main { padding: 34px 38px 36px; } }
.progress { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex: 1; }
.bars i { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; position: relative; }
.bars i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.bars i.on::after { transform: scaleX(1); }
.count { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 3.4em; text-align: right; }
.back { background: none; border: 0; padding: 6px; margin-left: -6px; color: var(--accent); cursor: pointer; display: inline-flex; font-size: 1.3rem; visibility: hidden; border-radius: 999px; }
.back.show { visibility: visible; }
.q h2 { font-size: clamp(1.55rem, 4.6vw, 2.1rem); line-height: 1.1; text-wrap: balance; }
.q .hint { color: var(--muted); margin: 8px 0 20px; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opts.five .opt:last-child { grid-column: 1 / -1; }
.opt { text-align: left; border: 0; border-radius: var(--r-sm); padding: 16px 15px 15px; cursor: pointer; display: grid; gap: 4px; align-content: start; min-height: 118px; background: var(--t0); position: relative; box-shadow: inset 0 0 0 1.5px transparent; transition: transform .35s var(--ease), box-shadow .3s var(--ease); }
.opt:hover { transform: translateY(-3px); }
.opt:active { transform: scale(.98); }
.opt .ph { font-size: 1.8rem; color: var(--accent); margin-bottom: 6px; transition: transform .45s var(--ease); }
.opt:hover .ph { transform: rotate(-8deg) scale(1.08); }
.opt b { font-weight: 600; font-size: 1.04rem; line-height: 1.25; }
.opt small { color: var(--muted); font-size: .88rem; line-height: 1.35; }
.opt.sel { box-shadow: inset 0 0 0 2px var(--accent); }
.opt.sel::after { content: "\2713"; position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .8rem; display: grid; place-items: center; }
.c0 { background: var(--t0); } .c1 { background: var(--t1); } .c2 { background: var(--t2); } .c3 { background: var(--t3); } .c4 { background: var(--t4); }
@media (prefers-reduced-motion: no-preference) {
  .q { animation: qin .5s var(--ease) both; }
  .q.backward { animation-name: qback; }
  @keyframes qin { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
  @keyframes qback { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
  .opts .opt { animation: tile .55s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 80ms); }
  @keyframes tile { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Result card */
.result { scroll-margin-top: 16px; }
.rcard { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: grid; }
@media (min-width: 900px) { .rcard { grid-template-columns: 170px 1fr; } }
.rstrip { background: var(--bg-2) url("img/steps.webp") center 30% / cover no-repeat; min-height: 120px; }
@media (max-width: 899px) { .rstrip { background-image: url("img/gel.webp"); background-position: center 40%; } }
.rbody { padding: 26px 18px 26px; }
@media (min-width: 768px) { .rbody { padding: 34px 40px 36px; } }
.script { font-family: var(--script); font-style: italic; font-weight: 500; font-size: 1.3rem; color: var(--accent); margin: 0; line-height: 1.2; }
.rbody h2 { font-size: clamp(1.8rem, 5.5vw, 2.6rem); line-height: 1.05; margin: 4px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip::first-letter { text-transform: uppercase; }
.chip { display: inline-block; background: var(--t0); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 500; }
.cols { display: grid; gap: 28px; }
@media (min-width: 768px) { .cols { grid-template-columns: 1fr 1fr; gap: 36px; } }
.col-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1.5px solid var(--line); }
.col-h h3 { font-size: 1.25rem; display: inline-flex; align-items: center; gap: 8px; }
.col-h h3 .ph { color: var(--accent); font-size: 1.4rem; }
.col-h small { color: var(--muted); font-size: .82rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .88rem; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.steps b { display: block; font-weight: 600; line-height: 1.3; }
.steps .why { display: block; color: var(--muted); font-size: .92rem; line-height: 1.45; margin-top: 2px; }
.steps .low { display: block; line-height: 1.3; margin-top: 4px; font-size: .78rem; color: var(--accent); font-weight: 600; }
.layer { display: block; height: 6px; border-radius: 999px; background: var(--t1); margin-top: 8px; width: var(--w); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .steps li { animation: step .6s var(--ease) both; animation-delay: var(--d); }
  @keyframes step { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .layer { animation: grow .9s var(--ease) both; animation-delay: calc(var(--d) + .15s); }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.tips { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 768px) { .tips { grid-template-columns: 1.15fr 1fr; } }
.tip { border-radius: var(--r-sm); padding: 16px 18px; display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: .98rem; background: var(--t2); }
.tip.alt { background: var(--t1); }
.tip .ph { font-size: 1.5rem; color: var(--accent); }
.tip p { margin: 0; }
.rule { margin: 26px 0 0; font-size: 1.45rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.toast { min-height: 1.4em; margin: 12px 0 0; font-size: .92rem; color: var(--muted); }
.soon { margin: 18px 0 0; font-size: .92rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.soon .ph { color: var(--accent); font-size: 1.15rem; margin-top: 2px; }

/* Shelf scan */
.scan { margin-top: 96px; display: grid; gap: 28px; align-items: start; scroll-margin-top: 16px; }
@media (min-width: 900px) { .scan { grid-template-columns: .9fr 1.1fr; gap: 56px; margin-top: 128px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.scan-copy h2 { font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.04; max-width: 13ch; text-wrap: balance; }
.scan-copy > p { color: var(--muted); font-size: 1.08rem; max-width: 40ch; margin: 16px 0 24px; }
.how { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.how li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.how .ph { width: 40px; height: 40px; border-radius: 50%; background: var(--t0); color: var(--accent); display: grid; place-items: center; font-size: 1.25rem; }
.privacy { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 16px 0 0; max-width: 46ch; }
.privacy .ph { font-size: 1.1rem; color: var(--accent); margin-top: 2px; }
.scan-stage { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; min-height: 420px; position: relative; }
.drop { display: grid; place-items: center; text-align: center; min-height: 460px; padding: 28px; position: relative; cursor: pointer; isolation: isolate; }
.drop::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("img/textures.webp") center 40% / cover no-repeat; }
.drop::after { content: ""; position: absolute; inset: 16px; z-index: -1; border-radius: var(--r-sm); border: 2px dashed rgba(255, 249, 245, .85); background: linear-gradient(180deg, rgba(54, 35, 27, .05), rgba(54, 35, 27, .55)); transition: background .3s; }
.drop:hover::after, .drop.over::after { background: linear-gradient(180deg, rgba(54, 35, 27, .15), rgba(54, 35, 27, .68)); }
.drop-inner { align-self: end; color: #FFF7F2; display: grid; justify-items: center; gap: 10px; }
.drop-inner .ph { font-size: 2.2rem; }
.drop-inner b { font-family: var(--display); font-size: 1.35rem; font-weight: 650; }
.drop-inner span { font-size: .92rem; opacity: .92; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.busy { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 24px; }
.busy img { width: 120px; height: 160px; object-fit: cover; border-radius: var(--r-sm); }
.skel { display: grid; gap: 12px; align-content: start; }
.skel i { height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--t3) 0%, var(--t0) 50%, var(--t3) 100%); background-size: 200% 100%; }
.skel i:nth-child(odd) { width: 80%; } .skel i:nth-child(3n) { width: 55%; }
@media (prefers-reduced-motion: no-preference) { .skel i { animation: shimmer 1.4s linear infinite; } @keyframes shimmer { to { background-position: -200% 0; } } }
.busy p { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.shelf-out { padding: 24px 18px 26px; }
@media (min-width: 768px) { .shelf-out { padding: 30px 32px 32px; } }
.shelf-out h3.big { font-size: 1.6rem; margin: 0 0 18px; }
.shelf-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.shelf-head img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.extra { margin-top: 22px; display: grid; gap: 10px; }
.extra h4 { margin: 0; font-family: var(--display); font-size: 1rem; font-weight: 650; }
.extra p, .extra li { margin: 0; color: var(--muted); font-size: .94rem; }
.extra ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 4px; }
.notes { display: grid; gap: 8px; margin-top: 22px; }
.notes p { margin: 0; display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: .95rem; background: var(--t1); border-radius: var(--r-sm); padding: 12px 14px; }
.notes .ph { color: var(--accent); font-size: 1.2rem; }
.msg { padding: 40px 24px; text-align: center; display: grid; justify-items: center; gap: 12px; min-height: 420px; align-content: center; }
.msg .ph { font-size: 2.4rem; color: var(--accent); }
.msg h3 { font-size: 1.4rem; }
.msg p { margin: 0; color: var(--muted); max-width: 36ch; }

/* Every case */
.cases { margin-top: 112px; }
.cases h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.05; max-width: 16ch; }
.cases > .wrap > p { color: var(--muted); margin: 12px 0 24px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 82%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 18px; scroll-padding: 0 16px; overscroll-behavior-x: contain; scrollbar-width: thin; }
@media (min-width: 768px) { .rail { grid-auto-columns: minmax(280px, 1fr); padding: 4px 32px 18px; scroll-padding: 0 32px; } }
@media (min-width: 1180px) { .rail { max-width: 1180px; margin: 0 auto; grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }
.case { scroll-snap-align: start; border-radius: var(--r); padding: 20px 18px; display: grid; gap: 10px; align-content: start; }
.case h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 8px; }
.case h3 .ph { color: var(--accent); }
.case p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.case .links { display: grid; gap: 6px; margin-top: 4px; }
.case a { text-decoration: none; font-size: .92rem; font-weight: 500; display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 999px; background: var(--surface); transition: transform .25s var(--ease), box-shadow .25s; }
.case a .ph { color: var(--accent); transition: transform .3s var(--ease); }
.case a:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.case a:hover .ph { transform: translateX(3px); }

.care { margin: 96px auto 0; max-width: 62ch; text-align: center; font-size: .92rem; color: var(--muted); }
footer { padding: 32px 0 40px; text-align: center; font-size: .88rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
