/* Settly landing page.
   Type: the system font (SF Pro on Apple devices) with self-hosted Inter elsewhere; Segoe UI and Roboto follow so
   the rupee sign, which the bundled Inter subset lacks, still renders from a sans font. One scale, two weights
   (400, 600). Colour: neutral surfaces, ink for actions; green appears only in the logo, screenshots and money.
   Theme follows the system unless data-theme is set (shared with /app through the "settly.theme" preference). */
@font-face {
  font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Type scale */
  --t-xs: .75rem;    /* 12: fine print */
  --t-sm: .875rem;   /* 14: captions, nav, chips */
  --t-md: 1rem;      /* 16: body */
  --t-lg: 1.0625rem; /* 17: lead body, FAQ */
  --t-xl: 1.25rem;   /* 20: lead, card titles */
  --t-2xl: clamp(1.5rem, 2.6vw, 1.75rem);    /* spotlight titles */
  --t-3xl: clamp(1.75rem, 3.4vw, 2.5rem);    /* section titles */
  --t-4xl: clamp(2.25rem, 5vw, 3.5rem);      /* hero */

  /* Spacing (8px rhythm) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --r-sm: 10px; --r: 18px; --r-lg: 28px;

  /* Light theme */
  --bg: #fff; --band: #f5f5f7; --card: #f5f5f7; --card-on-band: #fff;
  --text: #1d1d1f; --muted: #6e6e73; --line: #d2d2d7;
  --ink: #1d1d1f; --ink-hover: #000; --on-ink: #fff;
  --money: #0a7d58; --deep: #000; --deep-text: #f5f5f7; --deep-muted: #a1a1a6; --deep-line: rgb(255 255 255 / .1);
  --nav-bg: rgb(255 255 255 / .82); --float-bg: rgb(255 255 255 / .9);
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 12px 32px -10px rgb(0 0 0 / .14);
  --phone-shadow: 0 30px 60px -24px rgb(0 0 0 / .28);
  --focus: #0071e3;
  --bezel: #e8e8ed; --bezel-edge: 0 0 0 1px rgb(0 0 0 / .1), inset 0 0 0 1px rgb(255 255 255 / .7); --icon-tile: #fff; --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E");

  font: 400 var(--t-md)/1.5 var(--font);
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000; --band: #000; --card: #141415; --card-on-band: #141415;
  --text: #f5f5f7; --muted: #a1a1a6; --line: #424245;
  --ink: #f5f5f7; --ink-hover: #fff; --on-ink: #000;
  --money: #34d399; --deep: #141415;
  --nav-bg: rgb(0 0 0 / .8); --float-bg: rgb(28 28 30 / .92);
  --shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 16px 40px -12px rgb(0 0 0 / .7);
  --phone-shadow: 0 30px 60px -20px rgb(0 0 0 / .8);
  --focus: #2997ff; --bezel: #2c2c2e; --bezel-edge: 0 0 0 1px rgb(255 255 255 / .16); --icon-tile: #232325; --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d2d2d7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000; --band: #000; --card: #141415; --card-on-band: #141415;
    --text: #f5f5f7; --muted: #a1a1a6; --line: #424245;
    --ink: #f5f5f7; --ink-hover: #fff; --on-ink: #000;
    --money: #34d399; --deep: #141415;
    --nav-bg: rgb(0 0 0 / .8); --float-bg: rgb(28 28 30 / .92);
    --shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 16px 40px -12px rgb(0 0 0 / .7);
    --phone-shadow: 0 30px 60px -20px rgb(0 0 0 / .8);
    --focus: #2997ff; --bezel: #2c2c2e; --bezel-edge: 0 0 0 1px rgb(255 255 255 / .16); --icon-tile: #232325; --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d2d2d7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E");
  }
}
@media (prefers-contrast: more) { :root { --muted: var(--text); --line: currentColor; } }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-padding-top: 64px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--text); }
strong, b { font-weight: 600; }
svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.apple { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.wrap { --gutter: 24px; width: min(1080px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: var(--s-2); z-index: 100; padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); background: var(--bg); }
.skip:focus { left: var(--s-2); }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); transition: box-shadow .3s; }
.nav.scrolled { box-shadow: 0 1px 12px rgb(0 0 0 / .06); }
.nav-inner { display: flex; align-items: center; gap: var(--s-2); min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: var(--t-lg); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav nav { display: flex; margin-left: auto; }
.nav nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); font-size: var(--t-sm); text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--text); }
.theme-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; opacity: 0; transform: rotate(-90deg) scale(.5); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), opacity .2s; }
.theme-toggle[data-mode="light"] .i-light, .theme-toggle[data-mode="dark"] .i-dark { opacity: 1; transform: none; }

.menu-toggle { display: none; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--text); cursor: pointer; }
.menu-toggle path { transition: transform .25s, opacity .2s; transform-origin: 12px 12px; }
.menu-toggle[aria-expanded="true"] .m-top { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .m-bottom { transform: translateY(-4px) rotate(-45deg); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

.nav nav .menu-cta { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-5); border-radius: 999px; background: var(--ink); color: var(--on-ink); font: inherit; font-size: var(--t-md); text-decoration: none; transition: background .2s; }
.btn:hover { background: var(--ink-hover); }
.btn svg { transition: transform .2s; } .btn:hover svg { transform: translateX(3px); }
.btn-small { min-height: 32px; padding: 0 var(--s-4); font-size: var(--t-sm); margin-left: var(--s-1); white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { overflow: hidden; background: var(--band); padding: var(--s-8) 0 var(--s-7); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; }
h1 { font-size: var(--t-4xl); line-height: 1.07; letter-spacing: -.02em; }
.accent { color: var(--muted); }
.lead { margin-top: var(--s-4); max-width: 30rem; font-size: var(--t-xl); line-height: 1.4; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-6); }
.soon { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--muted); font-size: var(--t-sm); }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-5) 0 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--t-sm); }
.hero-points li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-points li::before, .ticks li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--text) 10%, transparent) var(--check) center / 10px no-repeat; }

/* Three phones fanned out. --px/--py (pointer) and --s (scroll progress) are set by landing.js and drive the
   individual translate/rotate properties, so they layer on top of each phone's resting transform. */
.hero-visual { position: relative; height: 540px; --px: 0; --py: 0; --s: 0; }
.phone { width: 240px; padding: 8px; border-radius: 42px; background: var(--bezel); box-shadow: var(--bezel-edge), var(--phone-shadow); }
.phone img { width: 100%; height: auto; aspect-ratio: 600 / 1304; object-fit: cover; border-radius: 34px; }
.hero-visual .phone { position: absolute; left: 50%; transform: var(--base); will-change: transform, translate; }
.phone-front { z-index: 2; top: 0; --base: translateX(-50%); translate: calc(var(--px) * 8px) calc(var(--py) * 6px - var(--s) * 28px); }
.phone-back { top: 44px; }
.phone-left { --base: translateX(-108%) rotate(-9deg) scale(.86); translate: calc(var(--px) * -10px - var(--s) * 36px) calc(var(--py) * -6px + var(--s) * 20px); rotate: calc(var(--s) * -4deg); }
.phone-right { --base: translateX(8%) rotate(9deg) scale(.86); translate: calc(var(--px) * -10px + var(--s) * 36px) calc(var(--py) * -6px + var(--s) * 20px); rotate: calc(var(--s) * 4deg); }
.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r); background: var(--float-bg); box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  translate: calc(var(--px) * 16px) calc(var(--py) * 12px - var(--s) * 48px); }
.card-owed { right: 0; top: 104px; flex-direction: column; align-items: flex-start; gap: 0; }
.card-owed .fc-label { font-size: var(--t-xs); color: var(--muted); }
.card-owed strong { font-family: var(--font-display); font-size: var(--t-xl); font-variant-numeric: tabular-nums; }
.card-settle { left: 0; bottom: 96px; }
.card-settle strong { display: block; font-size: var(--t-sm); }
.card-settle small { display: block; font-size: var(--t-xs); color: var(--muted); }
.fc-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: var(--t-sm); font-weight: 600; }

/* Hero entrance: plays once on load with CSS alone, so the hero never waits on a script. Copy rises in line by
   line, the front phone slides up, the two behind it fan out from the centre, then the cards pop in. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes phone-in { from { opacity: 0; transform: translateX(-50%) translateY(90px) scale(.92); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.88); } 70% { transform: scale(1.03); } }
@keyframes tick { from { transform: scale(0) rotate(-45deg); } 60% { transform: scale(1.15); } }
.hero h1 .line { display: inline-block; animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero h1 .accent { animation-delay: .12s; }
.hero .lead { animation: rise .8s .24s cubic-bezier(.2, .8, .2, 1) both; }
.hero .cta-row { animation: rise .8s .34s cubic-bezier(.2, .8, .2, 1) both; }
.hero .hero-points { animation: rise .8s .44s cubic-bezier(.2, .8, .2, 1) both; }
.phone-front { animation: phone-in 1s .15s cubic-bezier(.2, .8, .2, 1) both; }
.phone-back { animation: phone-in 1.1s .4s cubic-bezier(.2, .9, .25, 1) both; }
.card-owed { animation: pop-in .6s 1.05s cubic-bezier(.3, 1.3, .5, 1) both; }
.card-settle { animation: pop-in .6s 1.3s cubic-bezier(.3, 1.3, .5, 1) both; }
.card-settle .fc-icon { animation: tick .5s 1.65s cubic-bezier(.3, 1.4, .5, 1) both; }

/* Screenshots follow the page theme. */
.shot-dark { display: none; } img.shot-light { display: block; }
:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] img.shot-dark { display: block; } :root[data-theme="dark"] span.shot-dark { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none; }
  :root:not([data-theme="light"]) img.shot-dark { display: block; } :root:not([data-theme="light"]) span.shot-dark { display: inline; }
}

/* ---------- Use cases ---------- */
.uses { border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.uses-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); padding: var(--s-4) 0; }
.uses-label { font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.uses ul { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.uses li { padding: 6px var(--s-3); border-radius: 999px; background: var(--card); font-size: var(--t-sm); }

/* ---------- Sections ---------- */
.section { padding: var(--s-8) 0; }
.section-head { max-width: 48rem; margin-bottom: var(--s-6); }
h1, h2, h3 { text-wrap: balance; } p { text-wrap: pretty; }
.eyebrow { margin-bottom: var(--s-2); font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
h2 { font-size: var(--t-3xl); line-height: 1.1; letter-spacing: -.015em; }
h3 { font-size: var(--t-lg); line-height: 1.25; letter-spacing: -.01em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.feature { padding: var(--s-5); border-radius: var(--r); background: var(--card); }
.feature p, .step p { margin-top: var(--s-2); font-size: var(--t-md); color: var(--muted); }
@media (hover: hover) { .feature { transition: translate .3s cubic-bezier(.2, .8, .2, 1); } .feature:hover { translate: 0 -4px; } }

/* How it works. Baseline: three cards, each with its own cropped screenshot. With landing.js the list sits beside
   (on phones, below) one phone on a stage: the steps take turns, hovering or tapping picks one, and the phone shows
   the active step's screen. All three steps stay readable throughout. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); background: var(--card); }
.step-copy { padding: var(--s-5); }
.step-n { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: var(--s-3); border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: var(--t-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.step-shot { display: flex; justify-content: center; align-items: flex-start; height: 300px; margin-top: auto; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.step-shot .phone { flex: none; width: 190px; }
.how-stage { display: none; }

@keyframes step-fill { from { transform: scaleX(0); } }
.js .how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; }
.js .steps { grid-template-columns: 1fr; gap: var(--s-2); }
.js .step { position: relative; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .35s; }
.js .step.active { background: var(--card); }
.js .step-copy { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s-4); align-items: center; }
.js .step-n { margin: 0; background: var(--card); color: var(--muted); transition: background .35s, color .35s; }
.js .step.active .step-n { background: var(--ink); color: var(--on-ink); }
.js .step h3 { font-size: var(--t-xl); }
.js .step p { grid-column: 2; }
.js .step-shot { display: none; }
/* A thin bar along the active step fills while it waits its turn to hand over. */
.js .step::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.js .step.active::after { transform: none; }
.js .how.auto .step.active::after { animation: step-fill 5s linear both; }
.js .how-stage { display: flex; justify-content: center; align-items: flex-start; height: 540px; padding-top: var(--s-7); overflow: hidden; border-radius: var(--r-lg); background: var(--card); }
.js .how-stage .phone { display: grid; flex: none; width: 270px; }
/* Screens stack: every step up to the active one stays opaque, so a change never shows the bezel through. */
.screen { grid-area: 1 / 1; overflow: hidden; border-radius: 34px; opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .45s, transform .6s cubic-bezier(.2, .8, .2, 1); }
.screen.on { opacity: 1; transform: none; }
.f-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--s-4); border-radius: var(--r-sm); background: var(--icon-tile); color: var(--text); }
.f-icon svg { width: 20px; height: 20px; }

.spotlights { background: var(--band); }
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; }
.spot + .spot { margin-top: var(--s-5); }
.spot.flip .spot-copy { order: 2; }
.spot-copy { max-width: 28rem; }
.spot-copy h3 { font-size: var(--t-2xl); line-height: 1.15; letter-spacing: -.015em; }
.spot-copy > p { margin-top: var(--s-3); color: var(--muted); }
.ticks { display: grid; gap: var(--s-2); margin: var(--s-4) 0 0; padding: 0; list-style: none; font-size: var(--t-md); }
.ticks li { display: flex; align-items: center; gap: var(--s-3); }
.spot-visual { display: flex; align-items: flex-start; justify-content: center; height: 420px; padding-top: var(--s-6); overflow: hidden; border-radius: var(--r-lg); background: var(--card-on-band); }
.spot:has(.receipt) .spot-visual { align-items: center; padding-top: 0; }

.spot-visual .phone { width: 250px; }

/* Receipt illustration: always paper-coloured, so its colours are fixed rather than themed. */
.receipt { width: min(320px, 100% - 48px); padding: var(--s-5) var(--s-5) var(--s-6); border-radius: 14px; background: #fffdf8; color: #1d1b16; font-size: var(--t-sm); font-variant-numeric: tabular-nums;
  box-shadow: 0 20px 40px -16px rgb(0 0 0 / .3), 0 0 0 1px rgb(0 0 0 / .05); transform: rotate(-2deg);
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, #0000 98%, #000) 0 0 / 20px 100%; mask: radial-gradient(circle 6px at 50% 100%, #0000 98%, #000) 0 0 / 20px 100%; }
.r-head { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: var(--s-3); border-bottom: 1px dashed #d8d2c4; }
.r-head strong { font-family: var(--font-display); font-size: var(--t-lg); }
.r-head span, .r-row { color: #6d675b; font-size: var(--t-xs); }
.r-items { display: grid; gap: 2px; margin: 0; padding: var(--s-2) 0; list-style: none; border-bottom: 1px dashed #d8d2c4; }
.r-items li, .r-row, .r-total { display: grid; grid-template-columns: 1fr auto 4.5rem; align-items: center; gap: var(--s-2); padding: 6px var(--s-2); border-radius: 8px; }
.r-items b, .r-row b, .r-total b { text-align: right; }
.r-items li.flag { background: #fff3cf; box-shadow: inset 0 0 0 1px #f3d98a; }
.r-row { font-size: var(--t-sm); }
.r-total { padding-top: var(--s-3); font-size: var(--t-md); font-weight: 600; } .r-total b { color: #0a7d58; }
.who { display: flex; }
.who i { --h: 160; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 10px; font-weight: 600; color: hsl(var(--h) 55% 26%); background: hsl(var(--h) 60% 86%); box-shadow: 0 0 0 2px #fffdf8; }
.who i + i { margin-left: -5px; }
.r-chip { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: #f1f1f3; color: #1d1d1f; font-size: var(--t-xs); font-weight: 600; }
.r-chip .fc-icon { width: 20px; height: 20px; font-size: 11px; background: #1d1d1f; color: #fff; }
/* As the receipt scrolls in, a scan line sweeps down it once and the lines it "reads" appear in order. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes scan { from { top: 0; opacity: 1; } 85% { opacity: 1; } to { top: 100%; opacity: 0; } }
  .js .receipt { position: relative; overflow: hidden; }
  .js .receipt::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; background: #0a7d58; box-shadow: 0 0 12px 2px rgb(10 125 88 / .45); opacity: 0; }
  .js .spot.in .receipt::after { animation: scan 1.3s .35s cubic-bezier(.4, 0, .6, 1) both; }
  .js .receipt :is(.r-items li, .r-row, .r-total, .r-chip) { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * .16s + .55s); }
  .js .spot.in .receipt :is(.r-items li, .r-row, .r-total, .r-chip) { opacity: 1; transform: none; }
  .r-items li:nth-child(2) { --i: 1; } .r-items li:nth-child(3) { --i: 2; } .r-row { --i: 3; } .r-total { --i: 4; } .r-chip { --i: 5.5; }
}

/* Privacy */
.privacy-card { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); padding: var(--s-7); border-radius: var(--r-lg); background: var(--deep); color: var(--deep-text); }
.privacy-card h2 { color: var(--deep-text); }
.privacy-card .eyebrow, .privacy-copy p:not(.eyebrow) { color: var(--deep-muted); }
.privacy-copy p:not(.eyebrow) { margin-top: var(--s-4); font-size: var(--t-lg); }
.text-link { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; margin-top: var(--s-3); color: var(--deep-text); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.privacy-list { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.privacy-list li { padding: var(--s-4); border-radius: var(--r); background: rgb(255 255 255 / .06); border: 1px solid var(--deep-line); }
.privacy-list strong { display: block; } .privacy-list span { font-size: var(--t-sm); color: var(--deep-muted); }

/* FAQ */
.faq-wrap { max-width: 760px; }
.faq { display: grid; gap: var(--s-2); }
.faq details { border-radius: var(--r); background: var(--card); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 56px; padding: var(--s-3) var(--s-5); list-style: none; cursor: pointer; font-size: var(--t-lg); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: var(--t-xl); font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s-5) var(--s-5); color: var(--muted); }
.faq details a { text-decoration: underline; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s cubic-bezier(.2, .8, .2, 1), content-visibility .35s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* Closing call to action */
.final { padding: 0 0 var(--s-8); }
.final-card { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-7) var(--s-5); border-radius: var(--r-lg); background: var(--card); text-align: center; }
.final-card img { width: 52px; height: 52px; border-radius: 13px; }
.final-card p { max-width: 28rem; color: var(--muted); font-size: var(--t-lg); }
.final-card .btn { margin-top: var(--s-2); }

/* Footer */
.footer { padding: var(--s-5) 0 var(--s-6); background: var(--band); font-size: var(--t-xs); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); }
.footer .brand { font-size: var(--t-md); color: var(--text); } .footer .brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer nav { display: flex; flex-wrap: wrap; margin-left: auto; }
.footer nav a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--s-2); text-decoration: none; }
.footer nav a:hover { color: var(--text); text-decoration: underline; }
.fine { width: 100%; }

/* ---------- Scroll reveal (landing.js adds .js when motion is allowed) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .spot, .privacy-card { grid-template-columns: 1fr; }
  .hero { padding-top: var(--s-7); }
  .hero-visual { height: 520px; }
  .spot { gap: var(--s-5); } .spot.flip .spot-copy { order: 0; }
  .spot-visual { height: 380px; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  /* The stage moves above the steps. */
  .js .how { grid-template-columns: 1fr; gap: var(--s-4); }
  .js .how-stage { order: -1; height: 440px; padding-top: var(--s-6); }
  .js .how-stage .phone { width: 240px; }
  /* Phones and tablets: the section links move into a menu panel under the bar. */
  .nav-inner { position: relative; }
  .nav-inner .theme-toggle { margin-left: auto; }
  .menu-toggle { display: grid; }
  .nav nav { display: none; position: absolute; left: -24px; right: -24px; top: 100%; flex-direction: column; margin: 0; padding: var(--s-2) var(--s-5) var(--s-4);
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px -16px rgb(0 0 0 / .25); }
  .nav nav.open { display: flex; animation: menu-in .2s ease both; }
  .nav nav a { min-height: 48px; padding: 0; font-size: var(--t-lg); color: var(--text); border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
  .nav nav a:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .wrap { --gutter: 16px; }
  .hero { padding: var(--s-6) 0 var(--s-5); }
  .lead { font-size: var(--t-lg); }
  .phone { width: 200px; } .spot-visual .phone { width: 210px; }
  .section { padding: var(--s-7) 0; } .section-head { margin-bottom: var(--s-5); }
  .features { grid-template-columns: 1fr; }
  .js .how-stage { height: 360px; padding-top: var(--s-5); }
  .js .how-stage .phone { width: 200px; }
  .js .step-copy { padding: var(--s-4); column-gap: var(--s-3); }
  .js .step h3 { font-size: var(--t-lg); }
  .spot-visual { height: 340px; }
  .privacy-card { padding: var(--s-6) var(--s-5); }
  .final { padding-bottom: var(--s-7); }
  .footer nav { margin-left: calc(-1 * var(--s-2)); }
  .nav nav { left: -16px; right: -16px; padding-inline: var(--s-4); }
  .btn-small { min-height: 40px; padding: 0 var(--s-3); }
  .footer nav a { min-height: 44px; }
  .theme-toggle { width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  /* Bar keeps only the logo, theme and menu; "Open Settly" moves into the menu as a full-width button. */
  .nav-cta { display: none; }
  .nav nav .menu-cta { display: flex; margin-top: var(--s-3); min-height: 48px; justify-content: center; color: var(--on-ink); font-size: var(--t-md); border-bottom: 0; }
  /* A smaller fan, cropped with a soft fade, and no floating cards. */
  .hero-visual { height: 340px; margin-top: var(--s-2);
    -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  .float-card { display: none; }
  .hero-visual .phone { width: 172px; padding: 6px; border-radius: 32px; }
  .hero-visual .phone img { border-radius: 26px; }
  .phone-back { top: 30px; }
  .phone-left { --base: translateX(-100%) rotate(-8deg) scale(.86); } .phone-right { --base: translateX(0%) rotate(8deg) scale(.86); }
  .spot:has(.receipt) .spot-visual { height: auto; padding-block: var(--s-5); }
  .spot-visual { height: 300px; padding-top: var(--s-5); }
  .spot-visual .phone { width: 180px; }
  .receipt { transform: none; }
}
