/* ==========================================================================
   Bill Organizer — shared stylesheet

   Status colours come from the iOS app and keep their meaning everywhere:
   green = paid, red = overdue, amber = due within 7 days, grey = later.
   Brand blue is for anything tappable; blue → violet gradients are the only
   decoration. Light is the default theme; dark is opt-in via the header
   toggle (html[data-theme="dark"]).

   Motion rule: the static CSS is always the final state. Entrance and scroll
   animations only live inside (prefers-reduced-motion: no-preference), and
   scroll reveals additionally need html.js, so content is never hidden when
   motion is reduced or JavaScript is unavailable.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted — no third-party requests)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* One phone "unit". Registered so an em value resolves once, on .phone, and
   is inherited as pixels by every part of the mockup. */
@property --u {
  syntax: "<length>";
  inherits: true;
  initial-value: 16px;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  interpolate-size: allow-keywords;

  /* Surfaces and text */
  --canvas:       #F7F8FB;
  --paper:        #FFFFFF;
  --paper-2:      #F1F3F8;
  --ink:          #0B1220;
  --ink-2:        #283244;
  --ink-muted:    #556076;
  --ink-soft:     #8A93A6;   /* decoration and inactive icons only */
  --line:         rgba(11, 18, 32, 0.08);
  --line-strong:  rgba(11, 18, 32, 0.14);

  /* Brand */
  --action:       #2D5BFF;
  --action-hover: #1E47E8;
  --action-soft:  rgba(45, 91, 255, 0.08);
  --action-mid:   rgba(45, 91, 255, 0.22);
  --violet:       #7C5CFF;
  --sky:          #38BDF8;
  --on-action:    #FFFFFF;
  --grad:         linear-gradient(135deg, #2D5BFF 0%, #6A4CF5 100%);
  --grad-text:    linear-gradient(100deg, #2D5BFF 10%, #7C5CFF 90%);

  /* Status (from the app) */
  --overdue:       #C6301C;
  --due-soon:      #B26A00;
  --paid:          #1F7A4D;
  --later-bar:     #D5D8DE;
  --overdue-tint:  rgba(198, 48, 28, 0.10);
  --due-soon-tint: rgba(178, 106, 0, 0.10);
  --paid-tint:     rgba(31, 122, 77, 0.10);

  /* Effects */
  --glass:        rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --orb-a:        rgba(45, 91, 255, 0.26);
  --orb-b:        rgba(124, 92, 255, 0.22);
  --orb-c:        rgba(56, 189, 248, 0.20);
  --dot:          rgba(11, 18, 32, 0.09);
  --shadow-sm:    0 1px 2px rgba(11, 18, 32, 0.05);
  --shadow-md:    0 1px 2px rgba(11, 18, 32, 0.04), 0 12px 32px -14px rgba(16, 28, 64, 0.16);
  --shadow-lg:    0 2px 8px rgba(11, 18, 32, 0.04), 0 32px 64px -28px rgba(16, 28, 64, 0.30);
  --shadow-phone: 0 60px 100px -40px rgba(16, 28, 64, 0.50), 0 30px 60px -30px rgba(16, 28, 64, 0.30);
  --phone-frame:  #0B1220;

  /* Shape */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Layout */
  --measure:     1200px;
  --gutter:      20px;
  --section-gap: clamp(88px, 11vw, 144px);
  --header-h:    72px;

  /* Type */
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif:   "Instrument Serif", "Iowan Old Style", Georgia, serif;

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  color-scheme: dark;

  --canvas:       #070B14;
  --paper:        #0E1522;
  --paper-2:      #151D2D;
  --ink:          #F3F5FA;
  --ink-2:        #D3D9E5;
  --ink-muted:    #9BA5B9;
  --ink-soft:     #5E687C;
  --line:         rgba(255, 255, 255, 0.08);
  --line-strong:  rgba(255, 255, 255, 0.15);

  --action:       #6E90FF;
  --action-hover: #8AA6FF;
  --action-soft:  rgba(110, 144, 255, 0.12);
  --action-mid:   rgba(110, 144, 255, 0.28);
  --violet:       #9C84FF;
  --on-action:    #070B14;
  --grad-text:    linear-gradient(100deg, #7D9BFF 10%, #B7A4FF 90%);

  --overdue:       #F1705B;
  --due-soon:      #E0A03A;
  --paid:          #4FBF88;
  --later-bar:     #3A4252;
  --overdue-tint:  rgba(241, 112, 91, 0.14);
  --due-soon-tint: rgba(224, 160, 58, 0.14);
  --paid-tint:     rgba(79, 191, 136, 0.14);

  --glass:        rgba(10, 15, 26, 0.72);
  --glass-strong: rgba(21, 29, 45, 0.94);
  --orb-a:        rgba(45, 91, 255, 0.24);
  --orb-b:        rgba(124, 92, 255, 0.20);
  --orb-c:        rgba(56, 189, 248, 0.10);
  --dot:          rgba(255, 255, 255, 0.07);
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md:    0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -14px rgba(0, 0, 0, 0.6);
  --shadow-lg:    0 32px 64px -28px rgba(0, 0, 0, 0.75);
  --shadow-phone: 0 60px 100px -40px rgba(0, 0, 0, 0.85), 0 0 80px -20px rgba(45, 91, 255, 0.25);
  --phone-frame:  #1A2232;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--canvas);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "cv11", "ss03";
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }

a {
  color: var(--action);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
}

::selection { background: var(--action-mid); }

button {
  font: inherit;
  color: inherit;
}

.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-muted); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Theme switch: circular reveal (view transitions, where supported) */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

/* --------------------------------------------------------------------------
   4. Type
   -------------------------------------------------------------------------- */
.display,
.section-title,
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}
.display {
  font-size: clamp(46px, 6.9vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.section-title {
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.038em;
}
.page-title {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.042em;
}

/* One emphasised word per heading, set in an italic serif with the brand
   gradient. The words themselves are unchanged. */
.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -0.01em;
  padding-right: 0.08em;
  margin-right: -0.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (forced-colors: active) {
  .accent { background: none; color: CanvasText; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--action);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.lead {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.55;
  color: var(--ink-muted);
}

.card-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-top: var(--section-gap);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(44px, 5.5vw, 72px);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head .section-title { margin-top: 18px; }
.section-head > p:not(.eyebrow) {
  margin-top: 20px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-muted);
}
.section-head.center > p:not(.eyebrow) {
  max-width: 560px;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   6. Components
   -------------------------------------------------------------------------- */

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:hover .arrow-down { transform: translateY(3px); }

.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }

.btn-primary {
  background: var(--action);
  color: var(--on-action);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 24px -10px rgba(45, 91, 255, 0.65);
}
.btn-primary:hover {
  background: var(--action-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 16px 32px -12px rgba(45, 91, 255, 0.75);
}
/* Shine sweep */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
  pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  background: var(--glass-strong);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--paper); border-color: var(--action-mid); box-shadow: var(--shadow-md); }

/* Official Apple "Download on the App Store" badge. Apple's marketing
   guidelines: use the artwork unmodified (no recolouring, effects, hover
   animation), at least 40px tall, with clear space of at least a quarter of
   its height. Black badge on light backgrounds, white badge on dark ones. */
.store-badge {
  display: inline-flex;
  flex: none;
  border-radius: 13px; /* focus ring follows the badge's rounded corners */
}
.store-badge img { width: auto; height: 56px; }
.store-badge .badge-white { display: none; }
[data-theme="dark"] .store-badge.adapts .badge-black { display: none; }
[data-theme="dark"] .store-badge.adapts .badge-white { display: block; }
.store-badge:focus-visible { outline-offset: 4px; }
/* Buttons that sit beside the badge share its corner shape and height. */
.hero-actions .btn { border-radius: 14px; }

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.4); }

/* Round icon button (theme toggle, menu) */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass-strong);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.35s var(--ease-out);
}
.icon-btn:hover { background: var(--paper); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }

.theme-toggle > svg {
  grid-area: 1 / 1;
  transition: transform 0.6s var(--ease-spring), opacity 0.3s ease;
}
:root:not([data-theme="dark"]) .theme-toggle .i-sun,
[data-theme="dark"] .theme-toggle .i-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
}

/* Icon tile */
.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  color: var(--action);
  background: linear-gradient(145deg, var(--action-soft), rgba(124, 92, 255, 0.09));
  border: 1px solid var(--action-mid);
}
.icon-tile svg { width: 26px; height: 26px; }

/* Status tags */
.tag {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 600;
}
.tag-overdue  { color: var(--overdue);  background: var(--overdue-tint); }
.tag-due-soon { color: var(--due-soon); background: var(--due-soon-tint); }
.tag-paid     { color: var(--paid);     background: var(--paid-tint); }

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-2);
}
.pill-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--grad);
  color: #FFFFFF;
}
.pill-icon svg { width: 15px; height: 15px; }

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--grad);
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 16px -6px rgba(45, 91, 255, 0.7);
  transition: transform 0.6s var(--ease-spring);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.06); }

/* Shared decorative backdrop: drifting orbs + dot grid */
.backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--orb-a), transparent);
}
.orb-1 { top: -320px; right: -180px; }
.orb-2 { top: 60px; left: -360px; width: 680px; height: 680px; background: radial-gradient(closest-side, var(--orb-b), transparent); }
.orb-3 { bottom: -380px; left: 30%; width: 720px; height: 720px; background: radial-gradient(closest-side, var(--orb-c), transparent); }
.dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

/* --------------------------------------------------------------------------
   7. Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(16, 28, 64, 0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header-h);
}
.header-inner .brand { margin-right: auto; }

.burger {
  position: relative;
  width: 18px;
  height: 12px;
}
.burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.burger span:first-child { top: 1px; }
.burger span:last-child  { top: 9px; }
.site-header.is-open .burger span:first-child { top: 5px; transform: rotate(45deg); }
.site-header.is-open .burger span:last-child  { top: 5px; transform: rotate(-45deg); }

.site-nav ul { list-style: none; }

@media (max-width: 959px) {
  .theme-toggle { order: 2; }
  .nav-toggle   { order: 3; }
  .site-nav { display: none; }
  .site-header.is-open { background: var(--paper); }
  .site-header.is-open .site-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .site-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  .site-nav li a::after {
    content: "→";
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--ink-soft);
  }
  .site-nav li a:hover { text-decoration: none; color: var(--action); }
  .site-nav .nav-cta { width: 100%; min-height: 52px; font-size: 17px; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 4px;
  }
  .site-nav ul {
    display: flex;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--glass);
  }
  .site-nav li a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--ink-muted);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease, background-color 0.2s ease;
  }
  .site-nav li a:hover,
  .site-nav li a[aria-current="page"] {
    color: var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
  }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: calc(var(--header-h) + clamp(36px, 6vw, 72px));
  padding-bottom: clamp(64px, 8vw, 104px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--canvas));
  pointer-events: none;
}

.hero-layout {
  display: grid;
  gap: clamp(56px, 8vw, 72px);
  align-items: center;
}
.hero-copy {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.hero-copy .display { margin-top: 26px; }
.display .line {
  display: block;
  overflow: hidden;
  padding: 0 0.06em 0.12em;
  margin: 0 -0.06em -0.12em;
}
.display .line > span { display: inline-block; }
.hero-copy .lead {
  max-width: 30ch;
  margin: 26px auto 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px; /* ≥ ¼ of the 56px badge height: Apple's minimum clear space */
  margin-top: 38px;
}
.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 30px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-trust svg { width: 18px; height: 18px; color: var(--action); }

@media (min-width: 960px) {
  .hero-layout { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 32px; }
  .hero-copy { margin-inline: 0; text-align: left; }
  .hero-copy .lead { margin-inline: 0; }
  .hero-actions, .hero-trust { justify-content: flex-start; }
}

/* Hero visual ------------------------------------------------------------- */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-mock {
  position: relative;
  width: fit-content;
  margin-inline: auto;
}
.hero-mock::before {
  content: "";
  position: absolute;
  inset: 8% -30%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(45, 91, 255, 0.28), rgba(124, 92, 255, 0.12) 55%, transparent);
}
.tilt {
  position: relative;
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-out);
}

/* Floating notification cards */
.float-card {
  position: absolute;
  z-index: 3;
  transform: translateZ(60px);
}
.fc-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 250px;
  padding: 10px 16px 10px 10px;
  border-radius: 18px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.fc-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--grad);
  color: #FFFFFF;
}
.fc-icon svg { width: 20px; height: 20px; }
.fc-icon.is-paid { background: var(--paid); }
.fc-text { display: flex; flex-direction: column; gap: 1px; }
.fc-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.fc-main {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
/* Cards never cover the mock's content. On wide screens: the reminder and
   payment cards overlap the mock's empty areas on the right (beside the
   monthly total, above the tab bar); the scan card sits left of the phone,
   overlapping only its bezel. */
.fc-1 { top: 11%; left:  calc(100% - 110px); }
.fc-2 { top: 38%; right: calc(100% - 22px); }
.fc-3 { top: 73%; left:  calc(100% - 110px); }

/* Narrower screens: two cards over the empty areas. */
@media (max-width: 1319px) {
  .fc-inner { max-width: 196px; }
  .fc-2 { display: none; }
  .fc-1 { top: 2%;  left: auto; right: -16%; }
  .fc-3 { top: 72%; left: -16%; }
}
@media (max-width: 559px) {
  .fc-inner { gap: 10px; padding: 8px 12px 8px 8px; border-radius: 15px; max-width: 172px; }
  .fc-icon { width: 32px; height: 32px; border-radius: 10px; }
  .fc-icon svg { width: 17px; height: 17px; }
  .fc-label { font-size: 10px; }
  .fc-main { font-size: 12.5px; }
}

/* --------------------------------------------------------------------------
   9. Phone mockup
   -------------------------------------------------------------------------- */
.phone {
  --u: clamp(13.5px, 3.7vw, 16px);
  --row-h: calc(var(--u) * 3.5);
  --radius-mock: calc(var(--u) * 1.1);
  position: relative;
  width: calc(var(--u) * 19);
  padding: calc(var(--u) * 0.6);
  border-radius: calc(var(--u) * 3.05);
  background: var(--phone-frame);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.10), inset 0 0 0 calc(var(--u) * 0.2) rgba(255, 255, 255, 0.04);
}
/* side buttons */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: var(--phone-frame);
}
.phone::before { left: -3px; top: 22%; height: 9%; }
.phone::after  { right: -3px; top: 28%; height: 13%; }

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 19.5;
  padding: 0 calc(var(--u) * 0.75) calc(var(--u) * 0.5);
  border-radius: calc(var(--u) * 2.45);
  overflow: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--u);
  line-height: 1.3;
  font-feature-settings: "cv11", "tnum";
}

.status-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  flex: none;
  height: calc(var(--u) * 2.6);
  padding-inline: calc(var(--u) * 0.9);
  font-size: calc(var(--u) * 0.8);
  font-weight: 600;
}
.island {
  width: calc(var(--u) * 5.4);
  height: calc(var(--u) * 1.55);
  border-radius: 999px;
  background: #000000;
}
.status-icons {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.3);
}
.status-icons svg { width: calc(var(--u) * 1.05); height: calc(var(--u) * 0.75); }
.status-icons .battery { width: calc(var(--u) * 1.5); }

.home-bar {
  flex: none;
  width: 36%;
  height: calc(var(--u) * 0.3);
  margin: calc(var(--u) * 0.45) auto 0;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.85;
}

.mock-top {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 0.15);
  padding: calc(var(--u) * 0.9) calc(var(--u) * 0.25) calc(var(--u) * 0.9);
}
.mock-month { font-size: calc(var(--u) * 0.95); font-weight: 600; }
.mock-total {
  font-size: calc(var(--u) * 2.05);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.mock-sub { font-size: calc(var(--u) * 0.78); color: var(--ink-muted); }

.mock-group-label {
  height: calc(var(--u) * 1.1);
  line-height: calc(var(--u) * 1.1);
  margin: calc(var(--u) * 1) 0 calc(var(--u) * 0.4);
  padding-inline: calc(var(--u) * 0.25);
  font-size: calc(var(--u) * 0.78);
  font-weight: 600;
  color: var(--ink-muted);
}
.mock-top + .mock-group-label { margin-top: 0; }

.mock-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-mock);
  box-shadow: var(--shadow-sm);
}
.mock-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: calc(var(--u) * 0.6);
  align-items: center;
  height: var(--row-h);
  padding: 0 calc(var(--u) * 0.9);
  border-top: 1px solid var(--line);
}
.mock-row:first-child { border-top: 0; }
.mock-bar {
  position: absolute;
  left: 0;
  top: calc(var(--u) * 0.95);
  bottom: calc(var(--u) * 0.95);
  width: calc(var(--u) * 0.22);
  border-radius: 0 3px 3px 0;
  background: var(--later-bar);
}
.bar-overdue  { background: var(--overdue); }
.bar-due-soon { background: var(--due-soon); }
.bar-paid     { background: var(--paid); }

.mock-main, .mock-side {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * 0.2);
  min-width: 0;
}
.mock-main { align-items: flex-start; }
.mock-side { align-items: flex-end; text-align: right; }
.mock-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: calc(var(--u) * 0.95);
  font-weight: 500;
}
.mock-amount {
  font-size: calc(var(--u) * 0.95);
  font-weight: 600;
  white-space: nowrap;
}
.mock-caption {
  font-size: calc(var(--u) * 0.72);
  color: var(--ink-muted);
  white-space: nowrap;
}
.screen .tag {
  height: calc(var(--u) * 1.25);
  padding: 0 calc(var(--u) * 0.45);
  border-radius: calc(var(--u) * 0.4);
  font-size: calc(var(--u) * 0.68);
}

.mock-tabbar {
  display: flex;
  justify-content: space-around;
  margin-top: auto;
  padding-top: calc(var(--u) * 0.6);
  border-top: 1px solid var(--line);
}
.mock-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * 0.2);
  font-size: calc(var(--u) * 0.66);
  font-weight: 500;
  color: var(--ink-soft);
}
.mock-tab svg { width: calc(var(--u) * 1.35); height: calc(var(--u) * 1.35); }
.mock-tab.is-active { color: var(--action); }

/* Signature moment: "Water" turns from amber to green and slides into the
   Paid group. Static CSS is the final state; keyframes play from the start
   state. */
.mock-ghost { height: 0; }
.mock-slot  { position: relative; height: var(--row-h); }
.mock-flyer {
  --fly: calc(-1 * (var(--row-h) + var(--u) * 2.5 + 2px));
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  background: var(--paper);
  border-top: 1px solid transparent;
  border-radius: var(--radius-mock) var(--radius-mock) 0 0;
}
.bar-fly { background: var(--paid); }
.swap { position: relative; display: inline-flex; }
.swap-new { position: absolute; left: 0; top: 0; }
.swap-right .swap-new { left: auto; right: 0; }
.swap-old { opacity: 0; }

/* Small phones used in the screens section */
.phone-sm { --u: 13px; }
@media (min-width: 900px) {
  .phone-sm { --u: clamp(11.5px, 1.02vw, 13.5px); }
}

/* --------------------------------------------------------------------------
   10. Ticker
   -------------------------------------------------------------------------- */
.ticker {
  position: relative;
  overflow: hidden;
  padding-block: 22px;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
}
.ticker-list {
  list-style: none;
  display: flex;
}
.ticker-list li {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-inline: 18px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.ticker-list svg {
  width: 18px;
  height: 18px;
  color: var(--violet);
}

/* --------------------------------------------------------------------------
   11. How it works
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  display: grid;
  gap: 24px;
}
@media (min-width: 880px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}
.step {
  position: relative;
  padding: clamp(28px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.3s ease;
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--action-mid);
}
.step-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 800;
  line-height: 0.75;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, var(--action-mid), transparent 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
.step-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--action);
}
.step p { margin-top: 10px; color: var(--ink-muted); }

.step-arrow {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -32px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  color: var(--action);
  transform: translateX(-50%) rotate(90deg);
}
.step-arrow svg { width: 18px; height: 18px; }
.step:last-child .step-arrow { display: none; }
@media (min-width: 880px) {
  .step-arrow {
    left: auto;
    right: -36px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
}

/* --------------------------------------------------------------------------
   12. Features (bento)
   -------------------------------------------------------------------------- */
.bento {
  list-style: none;
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-scan, .tile-remind { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .tile-scan { grid-row: span 2; }
}

.feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.3s ease;
}
/* cursor spotlight (position set by script.js) */
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), var(--action-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--action-mid);
}
.feature:hover::before { opacity: 1; }
.feature .icon-tile { margin-bottom: 22px; transition: transform 0.6s var(--ease-spring); }
.feature:hover .icon-tile { transform: scale(1.08) rotate(-6deg); }
.feature .card-title { font-size: 19px; }
.feature p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.tile-scan,
.tile-remind { padding: clamp(28px, 3vw, 36px); }
.tile-scan .card-title,
.tile-remind .card-title { font-size: clamp(24px, 2.3vw, 30px); }
.tile-scan p,
.tile-remind p { font-size: 17px; max-width: 46ch; }

.tile-visual {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background-color: var(--paper-2);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.5px);
  background-size: 18px 18px;
  border: 1px solid var(--line);
}

/* Scan tile */
.tile-scan .tile-visual {
  flex: 1;
  display: grid;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 28px 24px;
}
@media (min-width: 480px) {
  .tile-scan .tile-visual { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.viewfinder {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 230px;
  padding: 16px;
}
.vf-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid var(--action);
}
.vf-corner.tl { top: 0; left: 0;     border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.vf-corner.tr { top: 0; right: 0;    border-left: 0;  border-bottom: 0; border-top-right-radius: 10px; }
.vf-corner.bl { bottom: 0; left: 0;  border-right: 0; border-top: 0;    border-bottom-left-radius: 10px; }
.vf-corner.br { bottom: 0; right: 0; border-left: 0;  border-top: 0;    border-bottom-right-radius: 10px; }
.receipt {
  padding: 16px 14px;
  border-radius: 8px;
  background: #FFFFFF;
  color: #0B1220;
  box-shadow: 0 18px 36px -18px rgba(16, 28, 64, 0.45);
  transform: rotate(-2deg);
  font-size: 11px;
  line-height: 1.3;
}
.r-head { display: flex; align-items: center; gap: 8px; }
.r-logo { width: 22px; height: 22px; border-radius: 6px; background: #334155; }
.r-company { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; }
.r-lines { margin-top: 10px; }
.r-lines i {
  display: block;
  height: 5px;
  margin-top: 6px;
  border-radius: 3px;
  background: #E6E9F0;
}
.r-lines i:nth-child(1) { width: 86%; }
.r-lines i:nth-child(2) { width: 64%; }
.r-lines i:nth-child(3) { width: 74%; }
.r-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(45, 91, 255, 0.07);
  box-shadow: inset 0 0 0 1.5px rgba(45, 91, 255, 0.45);
  color: #556076;
}
.r-field b { font-size: 12.5px; color: #0B1220; font-variant-numeric: tabular-nums; }
.r-field + .r-field { margin-top: 6px; }
.scan-track {
  position: absolute;
  inset: 16px;
  pointer-events: none;
}
.scan-line {
  position: absolute;
  left: -4px;
  right: -4px;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: var(--action);
  box-shadow: 0 0 14px 3px rgba(45, 91, 255, 0.55);
}

.detected {
  list-style: none;
  display: grid;
  gap: 10px;
}
.detected li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px 11px 11px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  line-height: 1.25;
  color: var(--ink-muted);
}
.detected .tick {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 999px;
  background: var(--action);
  color: var(--on-action);
}
.detected .tick svg { width: 14px; height: 14px; }
.detected span { display: flex; flex-direction: column; }
.detected b {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Reminders tile */
.tile-remind {
  display: grid;
  align-items: center;
  gap: 28px;
}
/* Side by side only where the tile is wide enough (~560px+): full width of
   the 2-column bento, or 2 of 4 columns on large screens. Between 1024 and
   1279px the tile is ~480px, so text and bubbles stack instead. */
@media (min-width: 640px) and (max-width: 1023px), (min-width: 1280px) {
  .tile-remind { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
.tile-remind .tile-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* let bubbles shrink to the tile */
  gap: 10px;
  padding: 22px 16px;
}
.notif {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px 11px 11px;
  border-radius: 18px;
  background: var(--glass-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
/* Stacked look via scale, which takes no layout width (insets would). */
.notif:nth-child(2) { transform: scale(0.97); opacity: 0.9; }
.notif:nth-child(3) { transform: scale(0.94); opacity: 0.75; }
.notif-app {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--grad);
  color: #FFFFFF;
}
.notif-app svg { width: 20px; height: 20px; }
.notif-body { flex: 1; min-width: 0; line-height: 1.3; }
.notif-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-muted);
}
/* The app name gives way first; the time is always shown in full. */
.notif-top span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.notif-top span:last-child { flex: none; }
.notif-text {
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   13. Screens
   -------------------------------------------------------------------------- */
.screens::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(1100px, 100%);
  height: 700px;
  z-index: -1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--orb-a), transparent);
  opacity: 0.7;
  pointer-events: none;
}
.shots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: 16px var(--gutter) 40px;
}
.shots::-webkit-scrollbar { display: none; }
.shot {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  scroll-snap-align: center;
}
.shot figcaption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.shot-phone { transition: transform 1.1s var(--ease-out), opacity 1.1s var(--ease-out); }

@media (min-width: 900px) {
  .shots {
    justify-content: center;
    align-items: flex-end;
    gap: clamp(24px, 3.5vw, 56px);
    overflow: visible;
    margin-inline: 0;
    padding: 20px 0 0;
  }
  .shot:nth-child(1) .shot-phone { transform: translateY(36px) rotate(-6deg); }
  .shot:nth-child(2) { position: relative; z-index: 2; }
  .shot:nth-child(2) .shot-phone { transform: translateY(-8px); }
  .shot:nth-child(3) .shot-phone { transform: translateY(36px) rotate(6deg); }
  .shot:nth-child(1) figcaption,
  .shot:nth-child(3) figcaption { margin-top: 40px; }
}

/* Bills list screen */
.s-title {
  padding: calc(var(--u) * 0.6) calc(var(--u) * 0.25) 0;
  font-size: calc(var(--u) * 1.9);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.s-chips {
  display: flex;
  gap: calc(var(--u) * 0.35);
  margin: calc(var(--u) * 0.7) 0 calc(var(--u) * 0.2);
}
.s-chips span {
  padding: calc(var(--u) * 0.3) calc(var(--u) * 0.7);
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: calc(var(--u) * 0.72);
  font-weight: 600;
  color: var(--ink-muted);
}
.s-chips .is-on { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.s-fab {
  position: absolute;
  right: calc(var(--u) * 1.2);
  bottom: calc(var(--u) * 5.2);
  display: grid;
  place-items: center;
  width: calc(var(--u) * 3.2);
  height: calc(var(--u) * 3.2);
  border-radius: 999px;
  background: var(--action);
  color: var(--on-action);
  box-shadow: 0 10px 20px -8px rgba(45, 91, 255, 0.7);
}
.s-fab svg { width: calc(var(--u) * 1.4); height: calc(var(--u) * 1.4); }

/* Scan screen */
.screen.is-camera {
  padding: 0;
  background: #05070C;
  color: #FFFFFF;
}
.is-camera .status-bar { color: #FFFFFF; }
.cam-view {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 42%, #1E283C, #05070C 72%);
}
.cam-frame {
  position: relative;
  width: 70%;
  padding: calc(var(--u) * 0.9);
}
.cam-frame .vf-corner {
  width: calc(var(--u) * 1.4);
  height: calc(var(--u) * 1.4);
  border-color: #FFFFFF;
  border-width: 2.5px;
}
.cam-receipt {
  padding: calc(var(--u) * 0.9);
  border-radius: calc(var(--u) * 0.35);
  background: #F4F1EA;
  color: #1F2533;
  transform: rotate(-4deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  font-size: calc(var(--u) * 0.7);
}
.cam-receipt .r-head { gap: calc(var(--u) * 0.45); }
.cam-receipt .r-logo { width: calc(var(--u) * 1.3); height: calc(var(--u) * 1.3); border-radius: calc(var(--u) * 0.35); }
.cam-receipt .r-company { font-size: calc(var(--u) * 0.85); }
.cam-receipt .r-lines i { height: calc(var(--u) * 0.32); background: #DAD5CA; }
.cam-receipt .cam-amount {
  margin-top: calc(var(--u) * 0.7);
  font-size: calc(var(--u) * 1.3);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cam-frame .scan-track { inset: calc(var(--u) * 0.9); }
.cam-sheet {
  flex: none;
  padding: calc(var(--u) * 1) calc(var(--u) * 1) calc(var(--u) * 0.5);
  border-radius: calc(var(--u) * 1.3) calc(var(--u) * 1.3) 0 0;
  background: var(--paper);
  color: var(--ink);
}
.cam-sheet-title { font-size: calc(var(--u) * 1); font-weight: 650; }
.cam-fields {
  margin-top: calc(var(--u) * 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-mock);
  background: var(--canvas);
}
.cam-fields div {
  display: flex;
  justify-content: space-between;
  padding: calc(var(--u) * 0.55) calc(var(--u) * 0.75);
  border-top: 1px solid var(--line);
  font-size: calc(var(--u) * 0.78);
}
.cam-fields div:first-child { border-top: 0; }
.cam-fields span { color: var(--ink-muted); }
.cam-fields b { font-weight: 600; }
.cam-save {
  display: grid;
  place-items: center;
  height: calc(var(--u) * 2.6);
  margin-top: calc(var(--u) * 0.7);
  border-radius: calc(var(--u) * 0.8);
  background: var(--action);
  color: var(--on-action);
  font-size: calc(var(--u) * 0.85);
  font-weight: 600;
}
.is-camera .home-bar { background: var(--ink); margin-top: calc(var(--u) * 0.6); }

/* Insights screen */
.ins-card {
  margin-top: calc(var(--u) * 0.6);
  padding: calc(var(--u) * 0.8) calc(var(--u) * 0.85);
  border-radius: var(--radius-mock);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.ins-label { font-size: calc(var(--u) * 0.72); font-weight: 600; color: var(--ink-muted); }
.ins-value {
  margin-top: calc(var(--u) * 0.1);
  font-size: calc(var(--u) * 1.45);
  font-weight: 650;
  letter-spacing: -0.03em;
}
.ins-bars {
  display: flex;
  align-items: flex-end;
  gap: calc(var(--u) * 0.45);
  height: calc(var(--u) * 5.2);
  margin-top: calc(var(--u) * 0.6);
}
.ins-bars div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: calc(var(--u) * 0.25);
  height: 100%;
}
.ins-bars i {
  display: block;
  width: 100%;
  height: var(--h);
  border-radius: calc(var(--u) * 0.3);
  background: var(--action-mid);
  transform-origin: bottom;
}
.ins-bars .is-now i { background: var(--action); }
.ins-bars span { font-size: calc(var(--u) * 0.6); color: var(--ink-muted); }
.ins-cats { display: grid; gap: calc(var(--u) * 0.5); margin-top: calc(var(--u) * 0.6); }
.ins-cat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: calc(var(--u) * 0.25) calc(var(--u) * 0.5);
  font-size: calc(var(--u) * 0.74);
}
.ins-cat b { font-weight: 600; }
.ins-track {
  grid-column: 1 / -1;
  height: calc(var(--u) * 0.4);
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}
.ins-track i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--c, var(--action));
  transform-origin: left;
}

/* --------------------------------------------------------------------------
   14. Benefits
   -------------------------------------------------------------------------- */
.benefits {
  list-style: none;
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.benefit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: var(--radius-xl);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.3s ease;
}
.benefit::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  z-index: -1;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--orb-b), transparent);
  transition: transform 0.9s var(--ease-out);
}
.benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--action-mid);
}
.benefit:hover::after { transform: scale(1.35); }
.benefit .icon-tile { width: 56px; height: 56px; border-radius: 18px; background: var(--grad); border: 0; color: #FFFFFF; box-shadow: 0 12px 24px -12px rgba(45, 91, 255, 0.7); }
.benefit .card-title { font-size: clamp(23px, 2.2vw, 28px); }
.benefit p { margin-top: 12px; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   15. Privacy panel (deep navy in both themes)
   -------------------------------------------------------------------------- */
.privacy-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 44px;
  padding: clamp(32px, 6vw, 80px);
  border-radius: clamp(28px, 3.5vw, 44px);
  background: #0A1330;
  color: #C6CFE3;
  box-shadow: 0 50px 100px -50px rgba(10, 19, 48, 0.8);
}
[data-theme="dark"] .privacy-panel { background: #0B1330; border: 1px solid var(--line); }
.privacy-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px circle at 0% 0%, rgba(45, 91, 255, 0.42), transparent 60%),
    radial-gradient(560px circle at 100% 100%, rgba(124, 92, 255, 0.34), transparent 60%);
}
.privacy-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
@media (min-width: 960px) {
  .privacy-panel { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
}
.privacy-panel .eyebrow { color: #9DB4FF; }
.privacy-panel .section-title { margin-top: 18px; color: #FFFFFF; }
.privacy-panel .accent { background: linear-gradient(100deg, #9DB4FF, #C9B8FF); -webkit-background-clip: text; background-clip: text; }
.privacy-copy > p:not(.eyebrow) {
  margin-top: 20px;
  max-width: 44ch;
  font-size: clamp(17px, 1.4vw, 19px);
  color: #C6CFE3;
}
.privacy-copy .btn { margin-top: 32px; }

.shield {
  position: relative;
  display: none;
  place-items: center;
  width: 150px;
  height: 150px;
  margin-top: 48px;
}
@media (min-width: 960px) { .shield { display: grid; } }
.shield .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(157, 180, 255, 0.35);
}
.shield .ring:nth-child(2) { inset: 18px; border-color: rgba(157, 180, 255, 0.25); }
.shield .ring:nth-child(3) { inset: 36px; border-color: rgba(157, 180, 255, 0.18); }
.shield-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--grad);
  color: #FFFFFF;
  box-shadow: 0 0 40px 4px rgba(45, 91, 255, 0.55);
}
.shield-core svg { width: 30px; height: 30px; }

.privacy-list {
  list-style: none;
  display: grid;
  gap: 12px;
}
.privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 16px;
  line-height: 1.55;
  color: #C6CFE3;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.5s var(--ease-out);
}
.privacy-list li:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(157, 180, 255, 0.3);
  transform: translateX(6px);
}
.privacy-list strong { color: #FFFFFF; font-weight: 600; }
.li-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(110, 144, 255, 0.3), rgba(156, 132, 255, 0.16));
  border: 1px solid rgba(157, 180, 255, 0.25);
  color: #D5DEFF;
}
.li-icon svg { width: 20px; height: 20px; }
.privacy-list li > span:last-child { padding-top: 8px; }

/* --------------------------------------------------------------------------
   16. FAQ (accordion — also used on the support page)
   -------------------------------------------------------------------------- */
.faq-layout {
  display: grid;
  gap: 40px;
}
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
  .faq-aside { position: sticky; top: calc(var(--header-h) + 40px); }
}
.faq-aside > p:not(.eyebrow) {
  margin-top: 20px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-muted);
}
.faq-aside .section-title { margin-top: 18px; }

.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.faq details:hover { border-color: var(--line-strong); }
.faq details[open] {
  border-color: var(--action-mid);
  box-shadow: var(--shadow-md);
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 16px 18px 16px 22px;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--action); }
.plus {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 999px;
  background: var(--action-soft);
  transition: transform 0.45s var(--ease-out), background-color 0.3s ease;
}
.plus::before,
.plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--action);
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease;
}
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .plus { transform: rotate(135deg); background: var(--action); }
.faq details[open] .plus::before,
.faq details[open] .plus::after { background: var(--on-action); }

.faq details > p,
.faq details > ul {
  max-width: 68ch;
  padding-inline: 22px;
  color: var(--ink-muted);
}
.faq details > p + p,
.faq details > p + ul,
.faq details > ul + p { margin-top: 10px; }
.faq details > :last-child { padding-bottom: 22px; }
.faq details > ul { padding-left: 44px; }
.faq details li + li { margin-top: 6px; }

@supports selector(::details-content) {
  .faq details::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* --------------------------------------------------------------------------
   17. Final call to action
   -------------------------------------------------------------------------- */
.section-cta { padding-bottom: var(--section-gap); }
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) clamp(24px, 5vw, 64px);
  border-radius: clamp(28px, 3.5vw, 44px);
  background: linear-gradient(135deg, #2448E8 0%, #3A4BEE 45%, #5B45F0 100%);
  color: #FFFFFF;
  text-align: center;
  box-shadow: 0 50px 100px -50px rgba(45, 91, 255, 0.75);
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.cta-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%);
}
.cta-ring:nth-child(1) { width: 520px;  height: 520px; }
.cta-ring:nth-child(2) { width: 820px;  height: 820px; border-color: rgba(255, 255, 255, 0.08); }
.cta-ring:nth-child(3) { width: 1120px; height: 1120px; border-color: rgba(255, 255, 255, 0.05); }
.cta-orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(140, 170, 255, 0.45), transparent);
}
.cta-orb.o1 { top: -260px; left: -160px; }
.cta-orb.o2 { bottom: -280px; right: -160px; background: radial-gradient(closest-side, rgba(186, 150, 255, 0.45), transparent); }
.cta-mark {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 20px 40px -16px rgba(8, 16, 60, 0.6);
}
.cta-mark svg { width: 38px; height: 38px; }
.cta .section-title {
  max-width: 13ch;
  margin-inline: auto;
  color: #FFFFFF;
}
.cta .accent { background: linear-gradient(100deg, #FFFFFF, #DCE3FF); -webkit-background-clip: text; background-clip: text; }
.cta > p:not(.cta-note) {
  max-width: 34ch;
  margin: 20px auto 0;
  font-size: clamp(18px, 1.6vw, 21px);
  color: rgba(255, 255, 255, 0.92);
}
.cta .store-badge { margin-top: 40px; }
.cta-note {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.footer-top {
  display: grid;
  gap: 40px;
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
.footer-tagline {
  max-width: 34ch;
  margin-top: 14px;
  color: var(--ink-muted);
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.footer-nav ul {
  list-style: none;
  margin-top: 10px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
}
.footer-nav a:hover { color: var(--action); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.footer-wordmark {
  margin-bottom: -0.2em;
  font-family: var(--font-display);
  font-size: clamp(56px, 12.5vw, 184px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--line-strong), transparent 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

/* --------------------------------------------------------------------------
   19. Document pages (privacy, terms, support)
   -------------------------------------------------------------------------- */
.read-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 3px;
  pointer-events: none;
}
.read-progress span {
  display: block;
  height: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: calc(var(--header-h) + clamp(32px, 5vw, 64px));
  padding-bottom: clamp(44px, 6vw, 72px);
}
.page-hero .orb-1 { top: -380px; right: -240px; }
.page-hero .orb-2 { top: -200px; left: -420px; }

.draft-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  border: 1px dashed var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.draft-banner svg { width: 20px; height: 20px; color: var(--action); }

.page-head { max-width: 780px; }
.page-head .page-title { margin-top: 18px; }
.page-head .lead { margin-top: 22px; }
.page-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-bottom: var(--section-gap);
}
@media (min-width: 960px) {
  .page-grid { grid-template-columns: 270px minmax(0, 1fr); gap: 72px; }
}

.toc-title {
  margin-bottom: 8px;
  padding-inline: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.toc a:hover { color: var(--ink); background: var(--paper-2); text-decoration: none; }
.toc a.is-active { color: var(--action); background: var(--action-soft); }

@media (min-width: 960px) {
  .toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    padding: 18px 10px;
    border-radius: 22px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
}
@media (max-width: 959px) {
  html:has(.toc) { scroll-padding-top: calc(var(--header-h) + 88px); }
  .toc {
    position: sticky;
    top: var(--header-h);
    z-index: 20;
    margin-inline: calc(var(--gutter) * -1);
    padding: 10px 0;
    background: var(--glass);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-block: 1px solid var(--line);
  }
  .toc-title {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .toc ol {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-inline: var(--gutter);
  }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc a {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    white-space: nowrap;
    font-size: 14px;
  }
  .toc a.is-active { border-color: var(--action-mid); }
}

/* Long-form text */
.prose {
  max-width: 740px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}
.prose h2 {
  margin-top: 64px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(25px, 2.5vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 {
  margin-top: 36px;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.prose p, .prose ul, .prose ol { margin-top: 16px; }
.prose ul { list-style: none; }
.prose ul > li {
  position: relative;
  padding-left: 28px;
}
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--action);
  transform: rotate(45deg);
}
.prose ol { padding-left: 24px; }
.prose li + li { margin-top: 10px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { font-weight: 500; overflow-wrap: anywhere; } /* long URLs and emails wrap on phones */
.prose .note {
  position: relative;
  margin-top: 20px;
  padding: 14px 18px 14px 50px;
  border-radius: 14px;
  border: 1px dashed var(--action-mid);
  background: var(--action-soft);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.prose .note::before {
  content: "i";
  position: absolute;
  left: 16px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--action);
  color: var(--on-action);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1;
}

/* Information callout (real content, unlike the dashed [REVIEW] .note) */
.prose .callout {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--action-mid);
  background: var(--action-soft);
  color: var(--ink-2);
}
.prose .callout strong { color: var(--ink); }
.prose .callout ul { margin-top: 8px; }

/* Data tables scroll sideways inside their own box on small screens */
.table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}
.prose th,
.prose td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose thead th {
  border-top: 0;
  background: var(--paper-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.prose tbody th { width: 38%; font-weight: 600; color: var(--ink); }
.prose tbody th .cell-detail { display: block; margin-top: 4px; font-weight: 400; color: var(--ink-2); }
/* Phones: each row becomes a small stacked card (label above its value). */
@media (max-width: 600px) {
  .prose table { min-width: 0; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tbody tr { display: block; padding: 14px 16px; border-top: 1px solid var(--line); }
  .prose tbody tr:first-child { border-top: 0; }
  .prose tbody th,
  .prose tbody td { display: block; width: auto; padding: 0; border: 0; }
  .prose tbody td { margin-top: 4px; color: var(--ink-muted); }
}

/* Numbered how-to steps */
.prose ol.steps-list {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
}
.prose ol.steps-list > li {
  position: relative;
  min-height: 32px;
  padding: 3px 0 0 46px;
  counter-increment: step;
}
.prose ol.steps-list > li + li { margin-top: 14px; }
.prose ol.steps-list > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--action);
  color: var(--on-action);
  font-size: 15px;
  font-weight: 700;
}
.prose .btn { margin-top: 20px; font-weight: 600; text-decoration: none; }
.prose .btn:hover { text-decoration: none; }
.prose a.btn-primary { color: var(--on-action); }
.prose a.btn-ghost { color: var(--ink); }

/* Support page */
.help { max-width: 780px; }
.help-group + .help-group { margin-top: 64px; }
.help-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.help-title .icon-tile { width: 44px; height: 44px; border-radius: 14px; }
.help-title .icon-tile svg { width: 22px; height: 22px; }

.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--action-mid);
  box-shadow: var(--shadow-md);
  color: var(--ink-2);
}
.contact-card::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--orb-a), transparent);
}
.contact-card p + p,
.contact-card p + ul { margin-top: 14px; }
.contact-card ul { list-style: none; display: grid; gap: 10px; }
.contact-card li {
  position: relative;
  padding-left: 28px;
}
.contact-card li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--action);
  transform: rotate(45deg);
}
.contact-card .btn { margin-top: 22px; }

/* --------------------------------------------------------------------------
   20. Motion
   -------------------------------------------------------------------------- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes line-up {
  from { transform: translateY(112%) rotate(3deg); }
  to   { transform: translateY(0) rotate(0); }
}
@keyframes phone-in {
  from { opacity: 0; transform: translateY(80px) rotate(6deg) scale(0.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(16px) scale(0.86); }
  to   { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes drift-1 { to { transform: translate3d(-90px, 70px, 0) scale(1.1); } }
@keyframes drift-2 { to { transform: translate3d(110px, -40px, 0) scale(0.92); } }
@keyframes drift-3 { to { transform: translate3d(-70px, -80px, 0) scale(1.06); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scan {
  0%, 100% { top: 4%; }
  50%      { top: 96%; }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-scale {
  from { opacity: 0; transform: translateY(24px) scale(0.965); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slide-in {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes notif-in {
  from { opacity: 0; transform: translateY(-18px) scale(0.94); }
}
@keyframes ring {
  0%, 60%, 100% { transform: rotate(0); }
  64% { transform: rotate(14deg); }
  70% { transform: rotate(-12deg); }
  76% { transform: rotate(8deg); }
  82% { transform: rotate(-4deg); }
}
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(3px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.85); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes spin-slow { to { transform: translate(-50%, -50%) rotate(360deg) scale(1.04); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
}
/* Mock: Water row turns paid and moves into the Paid group */
@keyframes ghost-collapse { from { height: var(--row-h); } to { height: 0; } }
@keyframes slot-expand    { from { height: 0; } to { height: var(--row-h); } }
@keyframes flyer-move {
  from { transform: translateY(var(--fly)); border-top-color: var(--line); border-radius: 0 0 var(--radius-mock) var(--radius-mock); }
  to   { transform: translateY(0);          border-top-color: transparent; border-radius: var(--radius-mock) var(--radius-mock) 0 0; }
}
@keyframes bar-to-paid { from { background: var(--due-soon); } to { background: var(--paid); } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Hero entrance */
  [data-hero] {
    animation: rise-in 1s var(--ease-out) both;
    animation-delay: calc(var(--d, 0) * 110ms + 80ms);
  }
  .display .line > span {
    animation: line-up 1.15s var(--ease-out) both;
    animation-delay: calc(var(--d, 0) * 110ms + 80ms);
  }
  .hero-visual { animation: phone-in 1.5s var(--ease-out) 0.3s both; }
  .phone-float { animation: float 7s ease-in-out 1.8s infinite; }
  .float-card .fc-inner { animation: pop-in 0.8s var(--ease-spring) both, float 6s ease-in-out infinite; }
  .fc-1 .fc-inner { animation-delay: 1.1s, 1.9s; }
  .fc-2 .fc-inner { animation-delay: 1.5s, 2.6s; animation-duration: 0.8s, 7s; }
  .fc-3 .fc-inner { animation-delay: 4.1s, 4.9s; animation-duration: 0.8s, 6.5s; }

  .hero .orb-1, .page-hero .orb-1 { animation: drift-1 22s ease-in-out infinite alternate; }
  .hero .orb-2, .page-hero .orb-2 { animation: drift-2 26s ease-in-out infinite alternate; }
  .hero .orb-3 { animation: drift-3 30s ease-in-out infinite alternate; }

  .mock-ghost { animation: ghost-collapse 0.75s var(--ease-out) 3.2s both; }
  .mock-slot  { animation: slot-expand    0.75s var(--ease-out) 3.2s both; }
  .mock-flyer { animation: flyer-move     0.75s var(--ease-out) 3.2s both; }
  .bar-fly    { animation: bar-to-paid    0.4s ease 2.6s both; }
  .swap-old   { animation: fade-out       0.4s ease 2.6s both; }
  .swap-new   { animation: fade-in        0.4s ease 2.6s both; }

  .site-header.is-open .site-nav { animation: menu-in 0.35s var(--ease-out); }

  /* Ticker */
  .ticker-track { animation: marquee 48s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }

  /* Scroll reveals (need html.js; script.js adds .is-in) */
  .js [data-reveal]:not(.is-in) { opacity: 0; }
  .js [data-reveal].is-in {
    animation: reveal-up 1s var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 100ms);
  }
  .js [data-reveal="scale"].is-in { animation-name: reveal-scale; animation-duration: 1.2s; }

  /* Section details */
  .scan-line { animation: scan 3.4s ease-in-out infinite; }
  .js .tile-scan.is-in .detected li {
    animation: slide-in 0.7s var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 160ms + 500ms);
  }
  .js .tile-remind.is-in .notif {
    animation: notif-in 0.8s var(--ease-spring) backwards;
    animation-delay: calc(var(--i, 0) * 170ms + 350ms);
  }
  .tile-remind .icon-tile svg { transform-origin: 50% 15%; animation: ring 4.5s ease-in-out 1s infinite; }
  .step-arrow svg { animation: nudge 2.4s ease-in-out infinite; }
  .shield .ring { animation: pulse-ring 3.6s ease-out infinite; }
  .shield .ring:nth-child(2) { animation-delay: 1.2s; }
  .shield .ring:nth-child(3) { animation-delay: 2.4s; }
  .cta-ring { animation: spin-slow 40s linear infinite alternate; }
  .cta-orb.o1 { animation: drift-2 18s ease-in-out infinite alternate; }
  .cta-orb.o2 { animation: drift-1 20s ease-in-out infinite alternate; }

  @media (min-width: 900px) {
    .js .shots:not(.is-in) .shot-phone { opacity: 0; transform: translateY(80px) rotate(0) scale(0.94); }
    .js .shots .shot:nth-child(1) .shot-phone { transition-delay: 0.1s; }
    .js .shots .shot:nth-child(3) .shot-phone { transition-delay: 0.2s; }
  }
  .js .shots.is-in .ins-bars i { animation: grow-y 1.1s var(--ease-out) backwards; animation-delay: calc(var(--k, 0) * 80ms + 700ms); }
  .js .shots.is-in .ins-track i { animation: grow-x 1.2s var(--ease-out) backwards; animation-delay: calc(var(--k, 0) * 120ms + 900ms); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
@supports selector(::details-content) {
  @media (prefers-reduced-motion: reduce) {
    .faq details::details-content { transition: none !important; }
  }
}
