/* Dwelltime web — cloned screen-for-screen from bounded.app (intake/captures/bounded-web).
   Divergences, per CLAUDE.md: primary colour is passport navy (#16305C) where they use
   sky blue; icon is ours; system font instead of their webfont (no third-party requests). */
:root {
  --primary: #16305C;
  --primary-soft: #E8EDF6;
  --ink: #000;
  --ink-2: #3A3F47;
  --muted: #6B7280;
  --muted-2: #A3ABB2;
  --line: #EBEBEC;
  --card: #F5F6F8;
  --card-2: #F0F0F0;
  --ok: #1F9D55;
  --warn: #D64545;
  --gold: #E3B04B;
  --r: 20px;
  --max: 1120px;
  --narrow: 760px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; font-weight: 600; letter-spacing: -.02em; line-height: 1.12; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--primary); }
.muted { color: var(--muted); }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; color: var(--muted); letter-spacing: .02em; }

/* ── pill nav ── */
header.top { position: sticky; top: 0; z-index: 20; padding: 14px 0; pointer-events: none; }
header.top .pill { pointer-events: auto; max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 22px; height: 56px; padding: 0 10px 0 18px; background: #fff; border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.10), 0 0 0 1px rgba(0,0,0,.05); }
header.top.plain .pill { box-shadow: none; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #000; font-size: 1rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
nav.links { display: flex; gap: 18px; align-items: center; font-size: .9rem; margin-left: 8px; }
nav.links a { color: #000; }
nav.links .sep { width: 1px; height: 18px; background: var(--line); }
.spacer { flex: 1; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: #000; color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.btn:hover { text-decoration: none; background: #1a1a1a; }
.btn.ghost { background: transparent; color: #000; border: 1px solid #000; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn.lg { padding: 13px 22px; font-size: 1rem; }
@media (max-width: 760px) { nav.links { display: none; } }

/* ── hero ── */
.hero { padding: 56px 0 24px; text-align: center; }
.hero h1 { max-width: 14ch; margin: 0 auto .5em; }
.hero p { max-width: 58ch; margin: 0 auto 1.6em; color: var(--ink-2); font-size: 1.1rem; }
.cluster { position: relative; height: 560px; max-width: 900px; margin: 30px auto 0; }
.cluster .device { position: absolute; }
.cluster .d1 { left: 24%; top: 30px; --dw: 260px; transform: rotate(-6deg); z-index: 2; }
.cluster .d2 { left: 44%; top: 0; --dw: 260px; transform: rotate(5deg); z-index: 1; }
.cluster .obj { position: absolute; width: 150px; filter: drop-shadow(0 16px 30px rgba(0,0,0,.18)); }
.cluster .o1 { left: 6%; top: 240px; width: 220px; }
.cluster .o2 { right: 6%; top: 60px; width: 210px; }
@media (max-width: 760px) { .cluster { height: 460px; } .cluster .d1, .cluster .d2 { --dw: 200px; } .cluster .d1 { left: 12%; } .cluster .d2 { left: 48%; } .cluster .obj { display: none; } }

/* ── device (CSS iPhone) ── */
.device { --dw: 300px; width: var(--dw); aspect-ratio: 1320 / 2868; position: relative; border-radius: calc(var(--dw) * .16); background: #0A0A0C; padding: calc(var(--dw) * .028); box-shadow: 0 0 0 2px #2A2C33, 0 0 0 5px #111, 0 30px 60px rgba(0,0,0,.25); }
.device img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--dw) * .135); display: block; }
.device::after { content: ""; position: absolute; top: calc(var(--dw) * .045); left: 50%; transform: translateX(-50%); width: calc(var(--dw) * .30); height: calc(var(--dw) * .085); background: #000; border-radius: 999px; }

/* ── section rhythm ── */
section.sec { padding: 72px 0 8px; }
section.sec .intro { text-align: center; max-width: 62ch; margin: 0 auto 40px; color: var(--ink-2); font-size: 1.05rem; }

/* ── scrolly features (sticky right) ── */
.scrolly { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.scrolly .steps > div { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; padding-right: 20px; }
.scrolly .steps h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.scrolly .steps h3 svg { width: 18px; height: 18px; }
.scrolly .steps p { color: var(--muted); font-size: .92rem; max-width: 40ch; }
.scrolly .sticky { position: sticky; top: 100px; background: var(--card); border-radius: 28px; min-height: 520px; display: grid; place-items: center; overflow: hidden; }
.scrolly .sticky .device { --dw: 240px; transition: opacity .35s; }
.scrolly .sticky .device.hidden { display: none; }
@media (max-width: 820px) { .scrolly { grid-template-columns: 1fr; } .scrolly .steps > div { min-height: 0; padding: 20px 0; } .scrolly .sticky { position: static; min-height: 0; padding: 30px; } }

/* ── sky band with tabs ── */
.band { border-radius: 32px; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 520px; background: linear-gradient(160deg, #DCEBFA 0%, #B8D6F5 50%, #E9F1FB 100%); position: relative; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 20%, rgba(255,255,255,.9), transparent 70%), radial-gradient(50% 40% at 20% 80%, rgba(255,255,255,.7), transparent 70%); }
.band .panel { position: relative; margin: 20px; background: #fff; border-radius: 24px; padding: 36px; display: flex; flex-direction: column; }
.band .panel p { color: var(--ink-2); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tabs button { font: inherit; font-size: .85rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tabs button[aria-selected="true"] { background: #000; color: #fff; border-color: #000; }
.band .shot { position: relative; display: grid; place-items: center; padding: 30px; }
.band .shot .device { --dw: 250px; }
.band .shot .device.hidden { display: none; }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; } }

/* ── privacy grid ── */
.priv { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.priv .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.priv .grid h3 { font-size: 1rem; margin-top: 12px; }
.priv .grid p { color: var(--muted); font-size: .9rem; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--card); display: grid; place-items: center; color: var(--primary); }
.ico svg { width: 20px; height: 20px; }
@media (max-width: 820px) { .priv { grid-template-columns: 1fr; } }

/* ── proof block (replaces their reviews: we have none, we do not invent) ── */
.proof { background: var(--card); border-radius: 32px; padding: 40px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: center; }
.proof .laurel { display: flex; align-items: center; gap: 12px; font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; margin-top: 24px; }
.proof .laurel small { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.proof .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.proof .cards > div { background: #fff; border-radius: 16px; padding: 16px; font-size: .9rem; }
.proof .cards b { display: block; font-size: 1.6rem; letter-spacing: -.03em; color: var(--primary); }
.proof .cards span { color: var(--muted); }
@media (max-width: 820px) { .proof { grid-template-columns: 1fr; } }

/* ── use-case band ── */
.usecase .sky { border-radius: 32px; height: 300px; overflow: hidden; position: relative; background: linear-gradient(180deg, #8F8FB8 0%, #C9B3C2 45%, #F2C6B0 100%); }
.usecase .sky .row { position: absolute; top: 50%; left: 0; transform: translateY(-50%); display: flex; gap: 20px; width: max-content; animation: slide 40s linear infinite; padding: 0 20px; }
.counter-card { background: #fff; border-radius: 16px; padding: 14px 16px; width: 240px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.counter-card .top { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: var(--muted); }
.counter-card .flag { font-size: 1.3rem; }
.counter-card .lbl { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-top: 8px; }
.counter-card .name { font-weight: 600; font-size: 1.05rem; }
.counter-card .dur { display: flex; justify-content: space-between; font-size: .8rem; margin-top: 8px; }
.counter-card .dur span { color: var(--muted); }
.counter-card .bar { height: 5px; background: var(--primary-soft); border-radius: 999px; margin-top: 6px; overflow: hidden; }
.counter-card .bar i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
@keyframes slide { to { transform: translate(-50%, -50%); } }
.usecase .below { display: grid; grid-template-columns: 220px 1fr; gap: 40px; margin-top: 28px; align-items: start; }
.usecase .list button { display: flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--muted-2); }
.usecase .list button[aria-selected="true"] { color: #000; }
.usecase .list svg { width: 16px; height: 16px; }
.usecase .copy p { color: var(--ink-2); font-size: .95rem; }
.usecase .copy .more { font-weight: 600; font-size: .9rem; }
.usecase .copy .pane.hidden { display: none; }
@media (max-width: 760px) { .usecase .below { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq details { background: var(--card); border-radius: 14px; margin-bottom: 10px; padding: 0 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 16px; margin: 0; font-size: .95rem; }

/* ── CTA with objects ── */
.cta-final { position: relative; text-align: center; padding: 100px 0 80px; overflow: hidden; }
.cta-final h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta-final p { max-width: 46ch; margin: 0 auto 1.4em; color: var(--ink-2); }
.cta-final .obj { position: absolute; width: 140px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.15)); pointer-events: none; }
.cta-final .o1 { left: 6%; top: 40px; } .cta-final .o2 { right: 8%; top: 30px; width: 180px; } .cta-final .o3 { left: 18%; bottom: 20px; width: 110px; } .cta-final .o4 { right: 20%; bottom: 10px; width: 120px; }
@media (max-width: 820px) { .cta-final .obj { display: none; } }

/* ── footer ── */
footer { padding: 60px 0 30px; }
footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 24px; }
footer h4 { font-size: .95rem; margin-bottom: 14px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 0 0 10px; font-size: .88rem; }
footer li a { color: var(--muted); }
footer .legal { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; font-size: .75rem; color: var(--muted); }
footer .legal p { max-width: 60ch; margin: 0; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .legal { flex-direction: column; } }

/* ── article pages (calculators, rules) ── */
.crumbs { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin: 40px 0 14px; }
.crumbs a { color: var(--muted-2); }
.byline { color: var(--muted); font-size: .95rem; margin: -6px 0 28px; }
.byline b { color: #000; font-weight: 600; }
.article h2 { font-size: 1.25rem; margin: 44px 0 12px; }
.article h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.article p, .article li { color: var(--ink-2); font-size: .95rem; }
.article ul, .article ol { padding-left: 1.2em; }
.article li { margin-bottom: 8px; }
.article .steps { list-style: none; padding: 0; counter-reset: s; }
.article .steps li { position: relative; padding-left: 34px; counter-increment: s; }
.article .steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.summary { background: var(--card); border-radius: 16px; padding: 4px 18px 6px; margin: 0 0 24px; }
.summary .head { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 8px; font-weight: 600; border-bottom: 1px solid var(--line); }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; margin: 0; }
.summary dt { color: var(--muted); font-size: .85rem; padding: 9px 0; border-bottom: 1px solid var(--line); }
.summary dd { margin: 0; font-size: .85rem; text-align: right; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.summary dt:last-of-type, .summary dd:last-of-type { border-bottom: 0; }
.eyebrow { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin: 40px 0 10px; }
.tool-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; color: #000; }
.tool-card:hover { text-decoration: none; background: var(--card); }
.tool-card b { display: block; font-weight: 600; }
.tool-card span { color: var(--muted); font-size: .9rem; }
.tool-card svg { width: 16px; height: 16px; flex: 0 0 auto; }
.tracked { margin-top: 44px; }
.tracked h2 { display: flex; align-items: center; gap: 8px; }
.tracked h2 img { width: 22px; height: 22px; border-radius: 6px; }
.tracked ul { list-style: none; padding: 0; }
.tracked li { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: .92rem; color: var(--ink-2); }
.tracked li::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: .7rem; display: grid; place-items: center; font-weight: 700; }
.sources li a { color: var(--primary); }
.disclaimer { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 16px; font-size: .78rem; color: var(--muted); }
.disclaimer b { color: var(--ink-2); }
.rel { list-style: none; padding: 0; margin: 0; }
.rel li { border-bottom: 1px solid var(--line); }
.rel a { display: flex; align-items: center; gap: 12px; padding: 14px 0; color: #000; }
.rel a:hover { text-decoration: none; background: var(--card); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 10px; }
.rel .flag { font-size: 1.3rem; width: 28px; text-align: center; }
.rel .t { flex: 1; min-width: 0; }
.rel .t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel .t span { display: block; color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel code { color: var(--muted-2); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.toc { position: sticky; top: 100px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.toc a { display: block; color: var(--muted-2); padding: 4px 0 4px 14px; border-left: 2px solid var(--line); }
.toc a.on { color: #000; border-color: #000; }
.toc .back { margin-top: 20px; padding-left: 0; border: 0; color: #000; letter-spacing: 0; text-transform: none; font-size: .85rem; font-weight: 600; }
.with-toc { display: grid; grid-template-columns: 180px minmax(0, var(--narrow)); gap: 40px; justify-content: center; }
@media (max-width: 900px) { .with-toc { grid-template-columns: 1fr; } .toc { display: none; } }

/* ── calculator (3 numbered cards) ── */
.step { background: var(--card); border-radius: 16px; margin: 0 0 16px; overflow: hidden; }
.step .h { padding: 14px 18px; font-weight: 600; font-size: .98rem; border-bottom: 1px solid #fff; }
.step .b { padding: 16px 18px 18px; }
.step .hint { color: var(--muted); font-size: .85rem; margin: 0 0 14px; }
.step label { display: block; font-size: .68rem; color: var(--muted); margin-bottom: 4px; }
.step input, .step select { font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%; }
.step input:focus, .step select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.row { display: grid; grid-template-columns: 1.1fr 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.row.spt, .row.two { grid-template-columns: 1fr 1fr auto; }
.row button, .step .add { font: inherit; font-size: .85rem; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
.step .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.step .foot small { color: var(--muted-2); font-size: .72rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats > div { background: #fff; border-radius: 12px; padding: 14px; }
.stats b { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.stats b.ok { color: var(--ok); } .stats b.bad { color: var(--warn); }
.stats span { display: block; color: var(--muted); font-size: .72rem; margin-top: 2px; }
.step .line { color: var(--muted); font-size: .78rem; margin: 12px 0 0; }
.plan { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: end; margin-bottom: 14px; }
.plan .out { font-size: .88rem; color: var(--ink-2); padding-bottom: 8px; }
.plan .out b { color: #000; }
.plan input.days { width: 90px; }
.err { color: var(--warn); font-size: .88rem; }
@media (max-width: 640px) { .row, .row.spt, .row.two { grid-template-columns: 1fr 1fr; } .row > :first-child { grid-column: 1 / -1; } .stats { grid-template-columns: 1fr; } .plan { grid-template-columns: 1fr; } }

/* rulebook hub */
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.hub a { border: 1px solid var(--line); border-radius: 16px; padding: 18px; color: #000; display: flex; flex-direction: column; gap: 8px; }
.hub a:hover { text-decoration: none; background: var(--card); }
.hub a b { font-weight: 600; }
.hub a span { color: var(--muted); font-size: .88rem; }
.hub a .n { margin-top: auto; font-size: .72rem; color: var(--muted-2); letter-spacing: .06em; text-transform: uppercase; }
.countries { columns: 3; column-gap: 24px; }
.countries a { display: block; padding: 6px 0; color: #000; border-bottom: 1px solid var(--line); font-size: .92rem; }
.countries a span { color: var(--muted-2); font-size: .8rem; float: right; }
@media (max-width: 760px) { .countries { columns: 1; } }

/* hero floating counter cards */
.cluster .float { position: absolute; z-index: 3; animation: floaty 7s ease-in-out infinite; }
.cluster .f1 { left: 2%; top: 120px; } .cluster .f2 { right: 2%; top: 300px; animation-delay: -3s; }
.counter-card .dur b { font-weight: 600; } .counter-card .dur b span { font-weight: 400; }
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@media (max-width: 760px) { .cluster .float { display: none; } }
@media (prefers-reduced-motion: reduce) { .cluster .float, .usecase .sky .row { animation: none; } }
