﻿/* ==========================================================================
   Sweep-in FD · Iteration 05 — Reel
   Companion to the "SWEEP" reel sent by DM. One question on white,
   then the answer in the reel's own language: near-black, neon yellow,
   Instrument Serif italics over Poppins. Mobile first.
   ========================================================================== */

:root {
  --yellow: #FEF213;
  --yellow-dim: #E6E048;
  --olive: #322F1D;
  --black: #0C0C0C;
  --card: #151515;
  --card-2: #1C1C1C;
  --line: #2A2A2A;
  --white: #FFFFFF;
  --text: #F5F5F2;
  --muted: #9A9A94;

  --ink: #0C0C0C;
  --ink-2: #4A4A47;
  --ink-3: #8A8A85;
  --hair: #E8E8E4;
  --paper: #F6F6F3;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --sans: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, blockquote { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.result :focus-visible { outline-color: var(--yellow); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 20px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 24px; border-radius: 999px; font-size: 15.5px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 14px; }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--white); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }

/* ==========================================================================
   1 · ASK (white)
   ========================================================================== */
.ask { min-height: 100svh; display: flex; padding: 0 0 40px; }
.ask .wrap { display: flex; flex-direction: column; }
.has-result .ask { min-height: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; letter-spacing: .3em; }
.brand-mark { width: 18px; height: 18px; border-radius: 50% 50% 0 50%; background: var(--ink); box-shadow: inset 0 0 0 4px var(--yellow); }
.tag { font-size: 12px; font-weight: 500; color: var(--ink-3); }

.ask h1 { margin-top: clamp(28px, 9vh, 88px); font-size: clamp(40px, 11vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; }
.ask h1 em { font-size: 1.14em; letter-spacing: -.01em; background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%); padding: 0 .06em; }
.lede { margin-top: 14px; font-size: 16px; color: var(--ink-2); max-width: 30ch; }

.form { margin-top: 32px; display: flex; flex-direction: column; }
.q { font-size: 14px; font-weight: 600; }
.field { margin-top: 10px; display: flex; align-items: center; gap: 6px; height: 76px; padding: 0 20px; border-radius: 20px; border: 1.5px solid var(--hair); background: var(--paper); transition: border-color .2s, box-shadow .2s, background .2s; cursor: text; }
.field:focus-within { border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px var(--yellow); }
.field.is-err { border-color: #C2410C; }
.rupee { font-size: 30px; font-weight: 500; color: var(--ink-3); }
.field input { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; background: transparent; outline: none; font: inherit; font-size: 34px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.field input::placeholder { color: #C9C9C4; }
.hint { margin-top: 8px; font-size: 13px; color: var(--ink-3); min-height: 20px; }
.hint.is-err { color: #C2410C; }

.chips { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chips button { height: 44px; border-radius: 999px; border: 1.5px solid var(--hair); font-size: 14px; font-weight: 600; transition: border-color .2s, background .2s; }
.chips button:hover { border-color: var(--ink); }
.chips button.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }

.go { margin-top: 24px; height: 60px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--ink); color: var(--yellow); font-size: 16px; font-weight: 600; transition: background .2s, color .2s, transform .2s var(--ease), opacity .2s; }
.go svg { transition: transform .3s var(--ease); }
.go:hover:not(:disabled) svg { transform: translateX(4px); }
.go:active:not(:disabled) { transform: scale(.98); }
.go:disabled { background: #EDEDEA; color: #A8A8A3; cursor: not-allowed; }
.trust { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* ==========================================================================
   2 · RESULT (dark, reel language)
   ========================================================================== */
.result { background: var(--black); color: var(--text); padding: 20px 0 120px; position: relative; overflow: hidden; scroll-margin-top: 0; }
.result::before { content: ''; position: absolute; inset: 0 0 auto; height: 520px; background: radial-gradient(60% 60% at 50% 0%, rgba(254, 242, 19, .10), transparent 70%); pointer-events: none; }
.result .wrap { position: relative; }
.result.is-in .hero, .result.is-in .diff { animation: rise .6s var(--ease) both; }
.result.is-in .diff { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.edit { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--muted); transition: border-color .2s, color .2s; }
.edit b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.edit:hover { border-color: var(--muted); color: var(--text); }

.eyebrow { font-size: 14px; font-weight: 500; color: var(--muted); }
.hero { padding: 36px 0 8px; }
.big { margin-top: 8px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; line-height: .95; }
.big span { font-size: clamp(56px, 17vw, 96px); font-weight: 700; letter-spacing: -.045em; color: var(--yellow); font-variant-numeric: tabular-nums; white-space: nowrap; }
.big em { font-size: clamp(44px, 12vw, 72px); color: var(--text); }
.per { margin-top: 10px; font-size: 18px; font-weight: 500; color: var(--text); }

/* the difference */
.diff { margin-top: 36px; padding: 6px 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.diff .eyebrow { padding: 16px 0 6px; font-size: 13px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; }
.diff .eyebrow + .row { border-top: 0; }
.row small { margin-left: 6px; font-size: 12.5px; color: var(--muted); }
.row b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-fd b { color: var(--text); }
.row-gap { margin: 0 -20px; padding: 18px 20px; border-top: 0; border-radius: 0 0 21px 21px; background: linear-gradient(160deg, var(--olive) 0%, var(--card) 80%); box-shadow: inset 0 1px 0 rgba(254, 242, 19, .35); }
.row-gap span { font-weight: 600; }
.row-gap b { color: var(--yellow); font-size: 24px; font-weight: 700; }
.diff:has(.row-gap) { padding-bottom: 0; overflow: hidden; }
.later { margin-top: 14px; font-size: 14px; color: var(--muted); }
.later b { color: var(--text); font-weight: 600; white-space: nowrap; }
/* twist */
.twist { margin-top: 16px; display: flex; gap: 14px; padding: 20px; border-radius: 22px; border: 1px solid var(--line); }
.twist-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--black); }
.twist h3 { font-size: 16px; font-weight: 600; }
.twist p { margin-top: 4px; font-size: 14px; color: var(--muted); }

.quote { margin: 52px 0 0; font-size: 30px; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.quote em { font-size: 1.35em; color: var(--yellow); }

.ctas { margin-top: 28px; display: grid; gap: 10px; }
.ctas .btn { width: 100%; }

.how { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.how summary::-webkit-details-marker { display: none; }
.how summary::after { content: '+'; font-size: 20px; transition: transform .3s var(--ease); }
.how[open] summary::after { transform: rotate(45deg); }
.how ul { padding: 0 0 18px 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.how b { color: var(--text); font-weight: 600; }
.fine { margin-top: 18px; font-size: 12px; color: #6F6F69; }

/* dock */
.dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; max-width: 536px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px; border-radius: 999px; background: rgba(28, 28, 28, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; transform: translateY(160%); transition: transform .35s var(--ease); }
.dock b { color: var(--yellow); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dock.is-on { transform: none; }

.toast { position: fixed; left: 50%; top: 16px; z-index: 100; transform: translate(-50%, -12px); opacity: 0; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; background: var(--yellow); color: var(--black); font-size: 13.5px; font-weight: 600; pointer-events: none; transition: all .3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
  .wrap { padding: 0 32px; }
  .ctas { grid-template-columns: 1.3fr 1fr; }
  .quote { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.ctas:has(#cta[hidden]) { grid-template-columns: 1fr; }

.tag { transition: color .2s; }
a.tag:hover { color: var(--ink); }
.assume { margin-top: 6px; font-size: 12.5px; color: #6F6F69; }
