/* SBSS Studio — site styles */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-inv: #f5f5f7;
  --ink-inv-2: #a1a1a6;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --link: #0066cc;
  --tile: #fbfbfd;
  --nav-bg: rgba(251, 251, 253, 0.8);
  --radius: 28px;
  --maxw: 1024px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #101012;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --line: #333336;
  --link: #2997ff;
  --tile: #161617;
  --nav-bg: rgba(22, 22, 23, 0.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
.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);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  height: 48px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); opacity: .8; font-size: 12px; letter-spacing: -0.01em; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav-cta { font-size: 12px; background: var(--accent); color: #fff !important; opacity: 1 !important; padding: 4px 12px; border-radius: 980px; }
.nav-right { display: flex; align-items: center; gap: 4px; }
.theme-toggle { background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; opacity: .8; border-radius: 50%; display: grid; place-items: center; }
.theme-toggle:hover { opacity: 1; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .moon { display: block; } .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; margin-right: -8px; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 48px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 22px 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { display: block; font-size: 24px; font-weight: 600; padding: 10px 0; opacity: 1; }
  .nav-cta { background: none; color: var(--link) !important; padding: 10px 0; }
}

/* ---------- Type ---------- */
.eyebrow { font-size: 21px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; letter-spacing: .004em; }
.eyebrow.accent { color: #bf4800; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.display { font-size: clamp(48px, 9vw, 96px); line-height: 1.04; letter-spacing: -0.035em; }
.headline { font-size: clamp(36px, 6vw, 64px); line-height: 1.06; letter-spacing: -0.03em; }
.title { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.025em; }
.subhead { font-size: clamp(19px, 2.4vw, 28px); line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; color: var(--ink); }
.lede { font-size: clamp(19px, 2vw, 21px); line-height: 1.42; color: var(--ink-2); font-weight: 400; }
.muted { color: var(--ink-2); }
.grad {
  background: linear-gradient(90deg, #2997ff 0%, #a259ff 50%, #ff6a3d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 28px; }
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 17px; padding: 11px 22px; border-radius: 980px; font-weight: 400;
  border: 0; cursor: pointer; font-family: inherit;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--link); border: 1px solid var(--link); }
.btn-ghost:hover { background: var(--link); color: #fff; }
.link-arrow::after { content: " ›"; }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.center { text-align: center; }
.alt { background: var(--bg-alt); }
.dark { background: var(--bg-dark); color: var(--ink-inv); }
.dark .lede, .dark .muted, .dark .eyebrow { color: var(--ink-inv-2); }
.dark a { color: #2997ff; }

.hero { padding: 120px 0 80px; text-align: center; overflow: hidden; }
.hero .lede { max-width: 680px; margin: 20px auto 0; }

/* Hero visual: stacked device frames */
.hero-visual { margin: 72px auto 0; max-width: 900px; position: relative; height: clamp(300px, 52vw, 480px); }
.device {
  position: absolute; border-radius: 44px; background: #0b0b0c;
  box-shadow: 0 0 0 2px #2a2a2d, 0 40px 80px -20px rgba(0,0,0,.35);
  padding: 10px; overflow: hidden;
}
.device .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; position: relative; }
.device.phone { width: clamp(150px, 24vw, 230px); aspect-ratio: 9/19.5; bottom: 0; }
.device.p1 { left: 50%; transform: translateX(-50%); z-index: 3; }
.device.p2 { left: 50%; transform: translateX(-138%) rotate(-6deg) scale(.9); z-index: 2; opacity: .95; }
.device.p3 { left: 50%; transform: translateX(38%) rotate(6deg) scale(.9); z-index: 2; opacity: .95; }
/* Mock app screens — sized in em so they scale with the phone width */
.device { container-type: inline-size; }
.screen { font-size: 7.4cqw; color: #1d1d1f; background: #fff; letter-spacing: -0.01em; line-height: 1.25; text-align: left; }
.screen.dark-scr { background: #000; color: #f5f5f7; }
.sb { display: flex; justify-content: space-between; align-items: center; padding: 1.05em 1.5em 0; font-size: .72em; font-weight: 600; }
.sb i { display: inline-block; width: 1.6em; height: .7em; border-radius: .2em; border: .09em solid currentColor; opacity: .9; position: relative; }
.sb i::after { content: ""; position: absolute; inset: .1em; right: .35em; background: currentColor; border-radius: .08em; }
.island { position: absolute; top: .55em; left: 50%; transform: translateX(-50%); width: 34%; height: 1.45em; background: #000; border-radius: 1em; }
.scr-body { padding: .9em 1em 0; display: flex; flex-direction: column; gap: .6em; }
.scr-kicker { font-size: .62em; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #86868b; }
.scr-title { font-size: 1.55em; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.prog { height: .38em; border-radius: 1em; background: #e8e8ed; overflow: hidden; }
.prog b { display: block; height: 100%; width: 60%; background: linear-gradient(90deg, #0a84ff, #5e5ce6); border-radius: 1em; }
.prog-l { display: flex; justify-content: space-between; font-size: .6em; color: #86868b; margin-top: -.35em; }
.task { display: flex; align-items: center; gap: .55em; padding: .55em .6em; background: #f5f5f7; border-radius: .75em; font-size: .72em; }
.task .ck { flex: none; width: 1.25em; height: 1.25em; border-radius: 50%; border: .12em solid #c7c7cc; display: grid; place-items: center; }
.task.done .ck { background: #0a84ff; border-color: #0a84ff; }
.task.done .ck::after { content: ""; width: .35em; height: .6em; border: solid #fff; border-width: 0 .13em .13em 0; transform: rotate(45deg) translate(-.05em, -.08em); }
.task.done span { color: #86868b; text-decoration: line-through; }
.task em { margin-left: auto; font-style: normal; font-size: .8em; padding: .15em .5em; border-radius: 1em; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: .7em 0 1.2em; border-top: .05em solid rgba(0,0,0,.08); background: rgba(255,255,255,.9); }
.tabbar u { width: 1.1em; height: 1.1em; border-radius: .3em; background: #c7c7cc; }
.tabbar u:first-child { background: #0a84ff; }
.dark-scr .tabbar { background: rgba(20,20,22,.9); border-color: rgba(255,255,255,.08); }
.dark-scr .tabbar u { background: #3a3a3c; } .dark-scr .tabbar u:nth-child(2) { background: #30d158; }

/* Budget */
.spend { background: #f5f5f7; border-radius: .8em; padding: .7em .75em; display: flex; flex-direction: column; gap: .3em; }
.spend small { font-size: .58em; color: #86868b; }
.spend strong { font-size: 1.25em; font-weight: 700; letter-spacing: -0.03em; }
.spend strong span { font-size: .5em; color: #86868b; font-weight: 500; letter-spacing: 0; }
.seg { display: flex; gap: .12em; height: .45em; border-radius: 1em; overflow: hidden; background: #e5e5ea; margin-top: .2em; }
.seg b { display: block; height: 100%; }
.cat { display: flex; align-items: center; gap: .55em; font-size: .7em; padding: .5em .1em; border-bottom: .06em solid #e5e5ea; }
.cat i { width: .8em; height: .8em; border-radius: .25em; display: block; }
.cat strong { margin-left: auto; font-weight: 600; }
.left-note { font-size: .6em; color: #248a3d; background: #e9f8ee; border-radius: 1em; padding: .35em .75em; align-self: flex-start; font-weight: 600; }

/* Health */
.streak { display: flex; align-items: center; gap: .8em; }
.rings { width: 4.6em; height: 4.6em; flex: none; }
.streak strong { display: block; font-size: 2.1em; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.streak small { font-size: .62em; color: #a1a1a6; }
.week { display: flex; justify-content: space-between; font-size: .55em; color: #86868b; text-align: center; }
.week div { display: flex; flex-direction: column; align-items: center; gap: .35em; }
.week i { width: 1.6em; height: 1.6em; border-radius: 50%; background: #1c1c1e; display: block; }
.week i.on { background: #30d158; } .week i.today { background: transparent; border: .15em solid #30d158; }
.stat { background: #1c1c1e; border-radius: .8em; padding: .6em .7em; display: flex; justify-content: space-between; align-items: flex-end; }
.stat small { display: block; font-size: .55em; color: #a1a1a6; margin-bottom: .15em; }
.stat strong { font-size: .95em; font-weight: 700; }
.stat strong span { font-size: .6em; color: #a1a1a6; font-weight: 500; }
.bars { display: flex; align-items: flex-end; gap: .18em; height: 1.6em; }
.bars i { width: .32em; border-radius: .2em; background: #0a84ff; display: block; }
.drops { display: flex; gap: .2em; } .drops i { width: .5em; height: .7em; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #64d2ff; display: block; } .drops i.off { background: #2c2c2e; }

.hero-note { margin-top: 18px; font-size: 12px; color: var(--ink-2); }
.hero-visual::before { content: ""; position: absolute; left: 50%; bottom: 8%; width: 80%; height: 60%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(94,92,230,.22), transparent); filter: blur(20px); z-index: 0; }
/* Phones: show two mockups side by side */
@media (max-width: 640px) {
  .device.p3 { display: none; }
  .device.phone { width: 44vw; }
  .device.p1 { transform: translateX(-96%) rotate(-3deg); }
  .device.p2 { transform: translateX(-4%) rotate(3deg) scale(1); }
  .hero-visual { height: calc(44vw * 19.5 / 9); }
}

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .tiles.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tiles, .tiles.three { grid-template-columns: 1fr; } }
.tile {
  background: var(--tile); border-radius: var(--radius); padding: 40px 36px;
  display: flex; flex-direction: column; gap: 10px; min-height: 260px;
}
.alt .tile { background: var(--bg); }
.tile.wide { grid-column: 1 / -1; }
.tile h3 { font-size: 28px; line-height: 1.14; letter-spacing: -0.02em; }
.tile p { margin: 0; color: var(--ink-2); }
.tile .icon { width: 44px; height: 44px; margin-bottom: 8px; }
.tile.dark-tile { background: #000; color: #f5f5f7; }
.tile.dark-tile p { color: #a1a1a6; }
.tile.grad-tile { background: linear-gradient(145deg, #0a2540 0%, #3b1c6b 55%, #6b2a1c 100%); color: #fff; }
.tile.grad-tile p { color: rgba(255,255,255,.75); }

/* ---------- Stats / facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { border-top: 1px solid var(--line); padding-top: 18px; }
.dark .fact { border-color: #333336; }
.fact strong { display: block; font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.fact span { font-size: 14px; color: var(--ink-2); }
.dark .fact span { color: var(--ink-inv-2); }

/* ---------- Process steps ---------- */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; gap: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); counter-increment: step; }
.dark .steps li { border-color: #333336; }
.steps li::before { content: "0" counter(step); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink-2); line-height: 1; }
.steps h3 { font-size: 24px; margin-bottom: 6px; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--ink-2); }
.dark .steps p { color: var(--ink-inv-2); }
@media (max-width: 560px) { .steps li { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.list-clean li span:last-child { color: var(--ink-2); text-align: right; }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 21px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 28px; line-height: 1; color: var(--ink-2); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; color: var(--ink-2); max-width: 680px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.form-note { font-size: 12px; color: var(--ink-2); }

/* ---------- Legal ---------- */
.legal { padding: 72px 0 100px; }
.legal h1 { font-size: clamp(36px, 5vw, 48px); letter-spacing: -0.03em; margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 44px 0 10px; letter-spacing: -0.02em; }
.legal h3 { font-size: 19px; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--ink); }
.legal .meta { color: var(--ink-2); font-size: 14px; margin-bottom: 32px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.toc { background: var(--bg-alt); border-radius: 18px; padding: 22px 26px; margin: 0 0 20px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); color: var(--ink-2); font-size: 12px; line-height: 1.5; padding: 40px 0 28px; }
.footer a { color: var(--ink); opacity: .8; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: var(--ink); font-size: 12px; font-weight: 600; margin: 0 0 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 6px 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- App cards ---------- */
.app-icon { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.08), inset 0 0 0 .5px rgba(0,0,0,.08); margin-bottom: 8px; }
.app-icon svg { width: 38px; height: 38px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 980px; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-2); align-self: flex-start; margin-top: auto; }
.dark-tile .pill, .grad-tile .pill { background: rgba(255,255,255,.14); color: rgba(255,255,255,.85); }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border-radius: 12px; padding: 8px 18px 8px 14px; border: 1px solid #a1a1a6; line-height: 1.1; text-align: left; }
.store-badge:hover { text-decoration: none; }
.store-badge small { display: block; font-size: 10px; opacity: .85; }
.store-badge strong { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.store-badge svg { width: 22px; height: 22px; }
