/* ==========================================================================
   BillFold — marketing site
   Palette pulled from the app: obsidian #07080A, amber #FBBF24, cyan #22D3EE
   ========================================================================== */

:root {
  --bg: #07080a;
  --bg-2: #0d0f14;
  --surface: #151922;
  --surface-2: #1c1f27;
  --line: #2c323f;
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #f1f3f6;
  --muted: #8b93a7;
  --dim: #5d6478;
  --amber: #fbbf24;
  --cyan: #22d3ee;
  --rose: #f43f5e;
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.08; font-weight: 700; }
p { margin: 0; }

.container { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.92em; }
.c-cyan { color: var(--cyan); }
.c-muted { color: var(--muted); }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 200;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: #f1f3f6; color: #0b0d12; box-shadow: 0 10px 30px -10px rgba(241, 243, 246, 0.35); }
.btn--light:hover { background: #fff; box-shadow: 0 16px 40px -12px rgba(241, 243, 246, 0.5); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: #3d4455; background: rgba(255, 255, 255, 0.05); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ---------- eyebrow / chips ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--cyan { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.dot--amber { background: var(--amber); box-shadow: 0 0 12px var(--amber); }

.lead { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); max-width: 56ch; }

.chips { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--muted);
  border: 1px solid var(--line); background: var(--surface);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(7, 8, 10, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }
.nav__links { display: flex; gap: 30px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav__links a { transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__toggle { display: none; }

.mobile-menu {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 24px 24px;
  border-top: 1px solid var(--line-soft);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 12px 0; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.mobile-menu .btn { margin-top: 14px; justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 90px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(34, 211, 238, 0.16), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(251, 191, 36, 0.08), transparent 70%);
  filter: blur(10px);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 800; margin-bottom: 26px; }
.grad {
  background: linear-gradient(92deg, var(--cyan) 0%, #9be9f5 45%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__cta--center { justify-content: center; }

.hero__visual { position: relative; display: flex; justify-content: center; }

.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(21, 25, 34, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  font-size: 13px; line-height: 1.35;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-weight: 600; }
.float-card small { color: var(--muted); }
.float-card--a { top: -3%; left: -6%; }
.float-card--b { bottom: 12%; right: -8%; animation-delay: -3s; }
.bell {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: rgba(244, 63, 94, 0.14); font-size: 16px;
}
.ring-mini {
  width: 30px; height: 30px; border-radius: 50%;
  background: conic-gradient(var(--amber) 0 72%, var(--line) 72% 100%);
  -webkit-mask: radial-gradient(circle, transparent 9px, #000 10px);
          mask: radial-gradient(circle, transparent 9px, #000 10px);
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- phone mockup ---------- */
.phone {
  position: relative; width: 330px; aspect-ratio: 9 / 19.5;
  padding: 11px; border-radius: 48px;
  background: linear-gradient(160deg, #2a2f3a, #0f1116 40%, #1b1f28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 50px 100px -30px rgba(0, 0, 0, 0.9),
    0 0 80px -20px rgba(34, 211, 238, 0.18);
}
.phone::before { /* punch-hole camera */
  content: ""; position: absolute; top: 22px; left: 50%; width: 11px; height: 11px;
  transform: translateX(-50%); border-radius: 50%; background: #000; z-index: 5;
  box-shadow: 0 0 0 2px #151820;
}
.phone__screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 38px;
  background: #0d0f14; display: flex; flex-direction: column;
}
.phone--sm { width: 290px; }

.app-status {
  display: flex; justify-content: space-between; padding: 12px 24px 0;
  font-size: 12px; font-weight: 600; color: #d8dce4;
}
.app-status__icons { letter-spacing: 3px; font-size: 10px; }

.app { flex: 1; padding: 22px 18px 90px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.app-row { display: flex; align-items: center; gap: 12px; }
.app-row--between { justify-content: space-between; }
.app-date { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); }
.app-iconbtn {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); font-size: 12px; filter: grayscale(1);
}
.app-h1 { font-size: 27px; font-weight: 700; margin: 2px 0 8px; }
.app-title { font-size: 17px; font-weight: 600; }
.app-back { font-size: 18px; }
.app-label { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.app-link { font-size: 11px; color: var(--muted); margin-top: 6px; }

.app-card {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.app-card--attn { border-color: rgba(251, 191, 36, 0.18); }
.app-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.app-card__body strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card__body small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-thumb {
  width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 17px;
}

.badge {
  flex: none; font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em;
  padding: 5px 8px; border-radius: 999px;
}
.badge--rose { color: var(--rose); background: rgba(244, 63, 94, 0.12); }
.badge--amber { color: var(--amber); background: rgba(251, 191, 36, 0.12); }
.badge--cyan { color: var(--cyan); background: rgba(34, 211, 238, 0.1); }
.badge--muted { color: var(--muted); background: rgba(139, 147, 167, 0.12); }

.app-list { border-radius: 16px; background: var(--surface); border: 1px solid var(--line-soft); }
.app-li { display: flex; justify-content: space-between; padding: 10px 12px; font-size: 12px; }
.app-li + .app-li { border-top: 1px solid var(--line-soft); }
.app-li em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }

.app-nav {
  position: absolute; left: 12px; right: 12px; bottom: 16px;
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 6px; border-radius: 24px;
  background: rgba(21, 25, 34, 0.95); border: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
}
.app-nav > span { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.app-nav small { font-size: 8.5px; margin-top: 3px; }
.app-nav .is-on { color: var(--text); }
.app-fab {
  width: 44px; height: 44px; margin-top: -26px; border-radius: 50%;
  background: #f1f3f6; color: #0b0d12; font-size: 24px !important; font-weight: 400;
  display: grid !important; place-items: center; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.8);
}

.app-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 4px; }
.app-chips::-webkit-scrollbar { display: none; }
.app-chips button {
  flex: none; font: inherit; font-size: 11px; font-weight: 500; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; transition: all 0.2s;
}
.app-chips button:hover { color: var(--text); }
.app-chips button.on { color: var(--text); background: var(--surface-2); border-color: #3d4455; }
.app-products { display: flex; flex-direction: column; gap: 8px; }
.app-card.is-hidden { display: none; }
.app-empty { text-align: center; color: var(--muted); font-size: 12px; padding: 40px 0; }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line-soft); overflow: hidden; padding: 22px 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015));
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex; gap: 36px; width: max-content; align-items: center;
  animation: marquee 40s linear infinite;
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; color: #c9ced9;
}
.marquee__track i { font-style: normal; color: var(--amber); font-size: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 8vw, 110px) 0; position: relative; }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head h2, .section h2 { font-size: clamp(34px, 4.4vw, 56px); }
.section__head .lead { margin-top: 18px; }

.problem__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: end; }
.problem h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 600; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), #11141b);
  border: 1px solid var(--line-soft);
  overflow: hidden; isolation: isolate;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.tile::after { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, 0.08), transparent 40%);
}
.tile:hover { border-color: var(--line); transform: translateY(-3px); }
.tile:hover::after { opacity: 1; }
.tile h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.02em; }
.tile p { color: var(--muted); font-size: 15.5px; }
.tile__icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 20px;
}
.tile__num { display: block; font-family: var(--mono); color: var(--dim); font-size: 13px; margin-bottom: 18px; }
.tile--wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.tile--wide h3 { font-size: 28px; }
.tile--full { grid-column: span 3; }

/* backup demo */
.backup-demo { display: flex; flex-direction: column; gap: 14px; max-width: 420px; justify-self: end; width: 100%; }
.backup-demo__file {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  background: var(--bg-2); border: 1px solid var(--line);
}
.backup-demo__file strong { display: block; font-size: 14.5px; font-weight: 600; }
.backup-demo__file small { color: var(--muted); font-size: 13px; }
.backup-demo__icon {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px;
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.25);
}
.backup-demo__dialog {
  position: relative; margin-left: 40px; padding: 20px 22px; border-radius: 20px;
  background: var(--surface-2); border: 1px solid var(--line);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
}
.backup-demo__dialog strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.backup-demo__dialog small { color: var(--muted); font-size: 14px; }
.backup-demo__ok { display: block; text-align: right; margin-top: 8px; font-weight: 600; font-size: 14px; color: var(--cyan); }

.pills { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.pills span {
  font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  color: var(--amber); background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.2);
}

/* scan demo */
.scan-demo { position: relative; justify-self: center; width: 100%; max-width: 280px; padding: 18px; }
.scan-demo__bill {
  position: relative; background: #f3f0e8; color: #2a2a2a; border-radius: 6px;
  padding: 18px 18px 22px; font-family: var(--mono); font-size: 11.5px; line-height: 1.7;
  display: flex; flex-direction: column;
  transform: rotate(-2deg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  -webkit-mask: linear-gradient(#000, #000) top/100% calc(100% - 8px) no-repeat,
    radial-gradient(circle at 6px 100%, transparent 5px, #000 5.5px) bottom/12px 8px repeat-x;
          mask: linear-gradient(#000, #000) top/100% calc(100% - 8px) no-repeat,
    radial-gradient(circle at 6px 100%, transparent 5px, #000 5.5px) bottom/12px 8px repeat-x;
}
.scan-demo__bill b { font-weight: 700; }
.scan-demo__bill > b:first-child { font-size: 15px; letter-spacing: 0.1em; }
.scan-demo__bill hr { width: 100%; border: 0; border-top: 1px dashed #aaa; margin: 6px 0; }
.scan-demo__bill .ln { display: flex; justify-content: space-between; gap: 10px; }
.scan-demo__bill em { font-style: normal; }
.scan-demo__beam {
  position: absolute; left: 8px; right: 8px; height: 2px; top: 20%;
  background: var(--cyan); box-shadow: 0 0 16px 3px rgba(34, 211, 238, 0.6);
  animation: beam 2.8s ease-in-out infinite;
}
@keyframes beam { 0%, 100% { top: 14%; } 50% { top: 84%; } }
.scan-demo__corners i {
  position: absolute; width: 26px; height: 26px; border: 3px solid var(--cyan); border-radius: 4px;
}
.scan-demo__corners i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.scan-demo__corners i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.scan-demo__corners i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.scan-demo__corners i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* search demo */
.search-demo { display: flex; flex-direction: column; gap: 14px; }
.search-demo__bar {
  display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); font-size: 16px;
}
.search-demo__bar .typed { color: var(--text); }
.caret { width: 2px; height: 20px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.search-demo__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-demo__chips span {
  font-size: 13px; padding: 7px 14px; border-radius: 999px; color: var(--muted);
  border: 1px solid var(--line); background: var(--surface-2);
}
.search-demo__chips .on { color: var(--text); border-color: #3d4455; }

/* ---------- calculator ---------- */
.calc-section { background: radial-gradient(60% 60% at 80% 50%, rgba(251, 191, 36, 0.05), transparent); }
.calc { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.calc__copy .lead { margin-top: 18px; }
.calc__card {
  padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 24px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.field { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.field > span, .field legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 10px; }
.field > span { margin-bottom: 0; }
.field input[type="date"] {
  font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px; color-scheme: dark;
}
.field input[type="date"]:focus { outline: none; border-color: var(--cyan); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: block; text-align: center; padding: 12px 6px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--muted);
  transition: all 0.2s;
}
.seg input:checked + span { color: var(--bg); background: var(--text); border-color: var(--text); }
.seg input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.calc__result {
  display: flex; align-items: center; gap: 26px; padding: 22px; border-radius: 20px;
  background: var(--bg-2); border: 1px solid var(--line-soft);
}
.calc__ring { position: relative; width: 128px; height: 128px; flex: none; }
.calc__ring svg, .detail-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.calc__ring .track, .detail-ring .track { fill: none; stroke: var(--line); stroke-width: 7; }
.calc__ring .prog, .detail-ring .prog {
  fill: none; stroke: var(--amber); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 276.46; stroke-dashoffset: 276.46;
  transition: stroke-dashoffset 0.9s var(--ease), stroke 0.3s;
}
.calc__ringtext { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.calc__ringtext strong { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.calc__ringtext small { font-size: 11px; color: var(--muted); }
.calc__until { font-size: 16px; color: var(--muted); }
.calc__until strong { color: var(--cyan); font-weight: 600; }
.calc__rem { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.calc__rem li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #c9ced9; }
.calc__rem li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none; }
.calc__rem li.past { color: var(--dim); text-decoration: line-through; }
.calc__rem li.past::before { background: var(--dim); }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  display: flex; gap: 18px; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.step:hover { border-color: #3d4455; transform: translateY(-3px); }
.step__num { font-family: var(--mono); color: var(--muted); font-size: 15px; padding-top: 4px; }
.step h3 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }
.steps__after { margin-top: 32px; color: var(--muted); font-size: 17px; text-align: center; }
.steps__after strong { color: var(--text); font-weight: 600; }

/* ---------- screens ---------- */
.screens { background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.03) 50%, transparent); }
.screens .section__head { text-align: center; margin-inline: auto; }
.screens .section__head .lead { margin-inline: auto; }
.screens__row { display: flex; justify-content: center; align-items: flex-start; gap: 36px; }
.shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.shot--center { margin-top: -30px; }
.shot figcaption { text-align: center; color: var(--muted); font-size: 14.5px; max-width: 260px; }
.shot figcaption strong { display: block; color: var(--text); font-size: 16px; font-weight: 600; margin-bottom: 2px; }

.detail-hero { display: flex; gap: 14px; align-items: center; margin: 6px 0 4px; }
.detail-hero strong { display: block; font-size: 16px; font-weight: 600; }
.detail-hero small { display: block; font-size: 11px; color: var(--muted); }
.detail-ring { position: relative; width: 64px; height: 64px; flex: none; }
.detail-ring .prog { stroke-dasharray: 251.3; stroke: var(--cyan); }
.detail-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; }
.kv { border-radius: 16px; background: var(--surface); border: 1px solid var(--line-soft); }
.kv div { display: flex; justify-content: space-between; padding: 9px 12px; font-size: 11.5px; }
.kv div + div { border-top: 1px solid var(--line-soft); }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; }
.docs { display: flex; gap: 6px; flex-wrap: wrap; }
.docs span {
  font-size: 11px; padding: 7px 10px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
}

.phone__screen--cam { background: #000; }
.cam { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 26px 18px 30px; }
.cam__hint {
  font-size: 11.5px; color: #e4e7ee; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); text-align: center;
}
.cam__frame { position: relative; width: 100%; padding: 16px; }
.scan-demo__bill--cam { transform: rotate(1.5deg); font-size: 10px; padding: 14px; }
.scan-demo__bill--cam > b:first-child { font-size: 12px; }
.cam__controls { display: flex; align-items: center; justify-content: space-between; width: 80%; }
.cam__btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1); font-size: 15px; filter: grayscale(1);
}
.cam__shutter { width: 62px; height: 62px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px #000, 0 0 0 8px #fff; }

/* ---------- privacy ---------- */
.privacy__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; align-items: center; }
.privacy .lead { margin-top: 18px; }
.privacy__badge { position: relative; aspect-ratio: 1; max-width: 400px; width: 100%; justify-self: center; display: grid; place-items: center; }
.privacy__badge img {
  width: 46%; border-radius: 28%;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -20px rgba(34, 211, 238, 0.35);
  position: relative; z-index: 2;
}
.orbit { position: absolute; border-radius: 50%; border: 1px dashed var(--line); }
.orbit--1 { inset: 12%; animation: spin 40s linear infinite; }
.orbit--2 { inset: 0; border-style: solid; border-color: var(--line-soft); animation: spin 60s linear infinite reverse; }
.orbit--1::after, .orbit--2::after {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 14px var(--amber);
}
.orbit--2::after { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); top: 50%; left: -5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.checks { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 38px; color: var(--muted); }
.checks li b { color: var(--text); font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 8px;
  background: rgba(34, 211, 238, 0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%2322d3ee' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}

/* ---------- privacy page ---------- */
.privacy__title { font-size: clamp(40px, 5.4vw, 68px); font-weight: 800; }
.nav__links a[aria-current="page"] { color: var(--text); }
.legal { padding-top: 0; }
.legal__inner { max-width: 760px; }
.legal__inner h2 { font-size: clamp(30px, 3.6vw, 42px); }
.legal__date { color: var(--dim); font-size: 14px; margin-top: 10px; }
.legal__inner h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 44px 0 12px; }
.legal__inner p, .legal__inner li { color: var(--muted); }
.legal__inner b { color: var(--text); font-weight: 600; }
.legal__inner ul { padding-left: 20px; display: grid; gap: 8px; margin: 0 0 14px; }
.legal__table { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); background: var(--surface); }
.legal__table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal__table td { padding: 13px 16px; color: var(--muted); vertical-align: top; }
.legal__table tr + tr td { border-top: 1px solid var(--line-soft); }
.legal__table td:first-child { color: var(--text); font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; }
.faq .section__head { margin: 0; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line-soft);
  transition: border-color 0.25s, background 0.25s;
}
.faq details[open] { border-color: var(--line); background: #171b25; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted); font-weight: 400; font-size: 18px;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 24px; color: var(--muted); font-size: 15.5px; }

/* ---------- cta ---------- */
.cta__card {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(56px, 8vw, 96px) 24px; border-radius: 36px;
  background: linear-gradient(180deg, #151922, #0b0d12);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.cta__glow {
  position: absolute; inset: auto 0 -50% 0; height: 100%; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 50%, rgba(34, 211, 238, 0.22), transparent 70%);
}
.cta__card > * { position: relative; }
.cta__card img { border-radius: 22px; box-shadow: 0 20px 50px -10px rgba(34, 211, 238, 0.4); }
.cta__card h2 { max-width: 16ch; }
.cta__card .lead { margin-inline: auto; }
.cta__meta { font-size: 14px; color: var(--dim); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 36px 0; font-size: 14px; }
.footer__inner { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; color: var(--muted); }
.footer nav a:hover { color: var(--text); }
.footer p { margin-left: auto; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 70px; }
  .hero__copy { text-align: center; }
  .hero__copy .lead { margin-inline: auto; }
  .hero__cta, .chips { justify-content: center; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--wide, .tile--full, .tile--links { grid-column: span 2; }
  .problem__grid, .calc, .privacy__grid, .faq { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .screens__row { overflow-x: auto; justify-content: flex-start; padding: 40px 24px 10px; margin-inline: -24px; scroll-snap-type: x mandatory; }
  .shot { scroll-snap-align: center; flex: none; }
  .shot--center { margin-top: 0; }
  .hero__visual { width: fit-content; margin-inline: auto; }
  .float-card--a { left: -34%; top: 6%; }
  .float-card--b { right: -34%; bottom: 14%; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links, .nav__inner > .btn { display: none; }
  .nav__toggle {
    display: grid; gap: 6px; margin-left: auto; width: 42px; height: 42px; place-content: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .bento { grid-template-columns: 1fr; }
  .tile--wide, .tile--full, .tile--links { grid-column: auto; grid-template-columns: 1fr; }
  .backup-demo { justify-self: stretch; }
  .backup-demo__dialog { margin-left: 16px; }
  .eyebrow { font-size: 11.5px; letter-spacing: 0.1em; }
  .phone { width: 290px; }
  .seg { grid-template-columns: repeat(2, 1fr); }
  .calc__result { flex-direction: column; text-align: center; }
  .calc__rem li { justify-content: center; }
  .footer p { margin-left: 0; }

  /* hero */
  .hero { padding-bottom: 64px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 48px); }
  .hero__copy .eyebrow { display: block; }
  .hero__copy .eyebrow .dot { vertical-align: middle; margin: -2px 8px 0 0; }
  .float-card { display: none; }

  /* screens carousel: let the next phone peek in so it's obviously swipeable */
  .screens__row { gap: 16px; padding-inline: 24px; scroll-padding-inline: 24px; }
  .phone--sm { width: min(290px, 74vw); }
  .shot figcaption { max-width: min(260px, 74vw); }

  /* privacy page: stack permission rows */
  .legal__table tr { display: block; padding: 14px 16px; }
  .legal__table tr + tr { border-top: 1px solid var(--line-soft); }
  .legal__table td { display: block; padding: 0; border: 0 !important; }
  .legal__table td:first-child { margin-bottom: 4px; white-space: normal; word-break: break-word; }

  .footer__inner { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
