/* FinFlow website. Colors follow the app's Forest theme (app/.../ui/theme/Theme.kt). */

@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus_jakarta_sans_regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus_jakarta_sans_medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus_jakarta_sans_semi_bold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus_jakarta_sans_bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light dark;

  /* The hero and privacy bands stay deep emerald in both modes, like the app's welcome screen. */
  --hero-1: #0b3527;
  --hero-2: #04150f;
  --hero-3: #020a07;
  --on-hero: #fffbf0;
  --on-hero-2: rgba(255, 251, 240, 0.8);
  --hero-gold: #e8d3a6;
  --hero-line: rgba(232, 211, 166, 0.18);
  --gold-grad: linear-gradient(100deg, #b77729 0%, #efbf68 30%, #fff2c0 48%, #d59a43 70%, #f1c573 100%);

  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;

  --wrap: 1180px;
  --wrap-header: 1280px; /* header is a little wider than the content; the legal pages' bar matches it */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* Motion tokens: hover in, hover out (faster), entrances. */
  --dur-in: 250ms; --dur-out: 180ms; --dur-enter: 700ms;
  /* Type scale in rem, so text follows the visitor's browser text size (16px default). */
  --fs-xs: 0.75rem;    /* 12 */
  --fs-sm: 0.875rem;   /* 14 */
  --fs-base: 1rem;     /* 16: minimum for body copy */
  --fs-md: 1.0625rem;  /* 17 */
  --fs-lg: 1.1875rem;  /* 19 */
  /* Hero surfaces (the hero is dark in both themes). */
  --header-bg: rgba(4, 21, 15, 0.86);
  --hero-tint: rgba(255, 251, 240, 0.08);
  --hero-tint-faint: rgba(255, 251, 240, 0.04);
  --hero-gold-line: rgba(232, 211, 166, 0.4);
  --hero-glass: rgba(10, 36, 28, 0.66);
  --hero-glass-line: rgba(255, 251, 240, 0.14);
  --hero-glass-strong: rgba(4, 21, 15, 0.9);
  --scrim-strong: rgba(2, 10, 7, 0.9);
  --hero-glow: rgba(0, 160, 112, 0.32);
  --mint: #4cc495; --mint-ring: rgba(76, 196, 149, 0.18);
  --amber: #efbf68; --amber-ring: rgba(239, 191, 104, 0.18);
  --on-gold: #1e1606;
  /* Play badge mirrors the store badge: black with white type. */
  --badge-bg: #000; --badge-text: #fff; --badge-line: rgba(255, 255, 255, 0.3);
  --shadow-float: 0 20px 40px -18px rgba(0, 0, 0, 0.7);
  --shadow-phone: drop-shadow(0 26px 28px rgba(0, 0, 0, 0.28));
  --shadow-phone-lift: drop-shadow(0 44px 38px rgba(0, 0, 0, 0.34));
}

/* Light palette: the page by default, and the screenshots section when its switch is on Light. */
:root, .shots-section[data-look="light"] {
  --bg: #f5f1e8;
  --surface: #fcfaf5;
  --surface-2: #eee8da;
  --line: #e5ddcb;
  --text: #10231c;
  --text-2: #3f4d47;
  --muted: #5f6b65;
  --accent: #0f4a37;
  --accent-soft: #e2ebe3;
  --gold: #8a6220;
  --focus: #0f4a37;
  --shadow: 0 1px 2px rgba(16, 35, 28, 0.06), 0 12px 40px -12px rgba(16, 35, 28, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06100d;
    --surface: #0d1a15;
    --surface-2: #14251f;
    --line: #1e322a;
    --text: #f1eee6;
    --text-2: #c9cfc9;
    --muted: #94a19a;
    --accent: #4cc495;
    --accent-soft: #11261e;
    --gold: #e2be78;
    --focus: #4cc495;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 48px -16px rgba(0, 0, 0, 0.7);
  }
}
/* Dark palette for the screenshots section when its switch is on Dark (keep in sync with the block above). */
.shots-section[data-look="dark"] {
  --bg: #06100d;
  --surface: #0d1a15;
  --surface-2: #14251f;
  --line: #1e322a;
  --text: #f1eee6;
  --text-2: #c9cfc9;
  --muted: #94a19a;
  --accent: #4cc495;
  --accent-soft: #11261e;
  --gold: #e2be78;
  --focus: #4cc495;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 48px -16px rgba(0, 0, 0, 0.7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-md)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* Rounded ring for text links only; round buttons keep their own shape (the ring follows it). */
a:focus-visible { border-radius: 6px; }
/* No square flash on tap (phones); buttons give their own press feedback. Keyboard focus keeps the ring above. */
a, button, summary, [role="button"] { -webkit-tap-highlight-color: transparent; }
/* Text for screen readers only (e.g. the gallery's "Budgets, 7 of 15" announcement). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.on-hero :focus-visible, .site-header :focus-visible { outline-color: var(--hero-gold); }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hero-line);
  color: var(--on-hero);
}
.site-header .wrap { position: relative; max-width: var(--wrap-header); display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: 8px; }
.brand img { height: 30px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--on-hero-2); text-decoration: none; font-weight: 500; font-size: var(--fs-base);
  padding: 10px 14px; border-radius: 999px; transition: color 0.2s, background-color 0.2s;
}
.nav a:hover, .nav a.is-active { color: var(--on-hero); background: var(--hero-tint); }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--hero-line); background: transparent; color: var(--on-hero); cursor: pointer;
  align-items: center; justify-content: center;
}

@media (max-width: 767px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #04150f; border-bottom: 1px solid var(--hero-line);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .js .nav[data-open="true"] { display: flex; }
  .js .nav a { padding: 14px 12px; font-size: var(--fs-base); }
  .no-js .nav a { padding: 10px 8px; font-size: var(--fs-sm); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 var(--fs-base)/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-ghost { color: var(--on-hero); border-color: var(--hero-gold-line); background: var(--hero-tint-faint); }
.btn-ghost:hover { border-color: var(--hero-gold); background: var(--hero-tint); }
.btn-gold { color: var(--on-gold); background: var(--gold-grad); }
.btn-gold:hover { transform: translateY(-1px); }

/* "Coming soon" Google Play badge. Not a link until the listing is live. */
.play-badge {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 8px 20px 8px 16px; border-radius: 16px;
  background: var(--badge-bg); color: var(--badge-text); border: 1px solid var(--badge-line);
  text-align: left;
}
.play-badge svg { width: 26px; height: 26px; }
.play-badge .lines { display: grid; line-height: 1.2; }
.play-badge small { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.play-badge strong { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.01em; }
.soon-pill {
  padding: 4px 10px; border-radius: 999px;
  background: var(--gold-grad); color: var(--on-gold); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
  color: var(--on-hero);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
}
.ribbons { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
/* Fade the ribbons out behind the hero copy so they never cross the text. */
.hero .ribbons {
  -webkit-mask-image: linear-gradient(90deg, transparent 0 48%, #000 66%);
  mask-image: linear-gradient(90deg, transparent 0 48%, #000 66%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hero-gold);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.875rem, 7.4vw, 5.75rem); line-height: 1.02; letter-spacing: -0.02em;
  margin: 22px 0 24px;
}
.hero h1 em { font-style: italic; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }
.hero .lede { font-size: clamp(var(--fs-md), 1.6vw, 1.25rem); color: var(--on-hero-2); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; color: var(--on-hero-2); font-size: var(--fs-base); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .icon { width: 18px; height: 18px; color: var(--hero-gold); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before {
  content: ""; position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%;
  top: 6%; background: radial-gradient(closest-side, var(--hero-glow), transparent);
}

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .ribbons { -webkit-mask-image: linear-gradient(180deg, transparent 0 58%, #000 74%); mask-image: linear-gradient(180deg, transparent 0 58%, #000 74%); }
}

/* ---------- Device frames ---------- */
/* The phones are the user's iPhone mockup renders with the screenshots composited in
   (docs/website-project/screenshot-tools/mockup/). Front view in the screenshot row, tilted in the hero. */
.phone { position: relative; width: min(100%, 300px); }
.phone img { vertical-align: top; width: 100%; height: auto; filter: var(--shadow-phone); }
/* Screenshot phones are buttons that open the zoom view. */
button.phone { display: block; padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; border-radius: 28px; }
/* 3D phones in the row (phone3d.js) replace the images once drawn. */
.shot-3d {
  position: absolute; inset: 0; width: 100%; height: 100%; filter: var(--shadow-phone);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-in) var(--ease);
}
.shots.is-3d .shot-3d { opacity: 1; }
.shots.is-3d .phone img { opacity: 0; transition: opacity var(--dur-in) var(--ease); }

/* Zoom view: one phone, nearly full screen, turned by pointer or drag. */
/* Locking the page while zoomed keeps the scroll bar's space, so the page doesn't shift sideways when it opens or closes. */
html { scrollbar-gutter: stable; }
html.is-zoomed { overflow: hidden; }
.zoom {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--on-hero); overflow: hidden;
}
.zoom::backdrop { background: rgba(2, 10, 7, 0.86); /* ::backdrop can't read :root tokens in older browsers */ -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.zoom-stage { position: absolute; inset: 0; display: grid; place-items: center; touch-action: none; }
.zoom:not(.has-3d) .zoom-stage { touch-action: auto; }
/* The whole phone fits the screen (above the bottom bar). */
.zoom-img { height: min(82dvh, 1180px); width: auto; max-width: 92vw; object-fit: contain; filter: var(--shadow-phone-lift); }
/* A soft glow that blooms behind the phone as it opens. */
.zoom-glow {
  position: absolute; left: 50%; top: 50%; width: min(120vw, 1100px); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(52, 211, 153, 0.22), rgba(201, 162, 39, 0.08) 55%, transparent 72%);
  pointer-events: none;
}
/* Zoom in: the backdrop fades in at once; the phone leads (site.js adds .is-in as it starts to grow), then
   the glow blooms behind it, the bar slides up and the close button pops in.
   Zoom out (.is-closing, while the phone flies back to its card): all of it fades away. */
.zoom[open]::backdrop { animation: zoom-fade 0.4s var(--ease) both; }
.zoom:not(.is-in) .zoom-glow, .zoom:not(.is-in) .zoom-bar, .zoom:not(.is-in) .zoom-close { opacity: 0; }
.zoom.is-in .zoom-glow { animation: zoom-bloom 0.7s var(--ease) 0.18s both; }
.zoom.is-in .zoom-bar { animation: zoom-rise 0.5s var(--ease) 0.2s both; }
.zoom.is-in .zoom-close { animation: zoom-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.26s both; }
.zoom.is-closing::backdrop { animation: zoom-fade 0.42s var(--ease) reverse both; }
.zoom.is-closing .zoom-glow { animation: zoom-bloom 0.3s var(--ease) reverse both; }
.zoom.is-closing .zoom-bar, .zoom.is-closing .zoom-close { animation: zoom-fade 0.2s var(--ease) reverse both; }
@keyframes zoom-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom-bloom { from { opacity: 0; transform: translate(-50%, -50%) scale(0.35); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes zoom-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes zoom-pop { from { opacity: 0; transform: scale(0.5) rotate(-90deg); } to { opacity: 1; transform: none; } }
/* The card the phone came from stays empty while it is open, so it reads as one phone moving. */
.shot .phone.is-lifted { opacity: 0; transition: none; }
.zoom-3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity var(--dur-in) var(--ease); }
.zoom-stage.is-3d .zoom-3d { opacity: 1; }
.zoom-stage.is-3d .zoom-img { opacity: 0; transition: opacity var(--dur-in) var(--ease); }
.zoom-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; min-height: 76px; padding: 28px var(--gutter) 14px;
  display: flex; align-items: center; justify-content: center; gap: 16px; pointer-events: none;
  background: linear-gradient(to top, var(--scrim-strong), transparent);
}
.zoom-bar p { text-align: center; }
.zoom-bar strong { display: block; font-size: var(--fs-md); }
.zoom-hint { color: var(--on-hero-2); font-size: var(--fs-sm); }
.zoom:not(.has-3d) .zoom-hint { display: none; }
.zoom-close {
  position: fixed; z-index: 2; top: 16px; right: 16px; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--hero-glass-line); background: var(--hero-glass);
  color: var(--on-hero); cursor: pointer;
}
.zoom-close:hover { background: var(--hero-tint); }
.hero-float { position: relative; width: min(60vw, 270px); aspect-ratio: 300 / 749; }
/* The static image is a still rendered from the 3D model (phone3d/render-stills.cjs) in the same
   box and pose as the live canvas below, so the switch to 3D is seamless. */
.hero-phone {
  position: absolute; left: 50%; top: 50%; width: 180%; height: 116%; max-width: none; filter: var(--shadow-phone);
  transform: translate(-50%, -50%) perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--zoom, 1));
  transition: transform var(--dur-out) var(--ease);
}
/* Glass chips around the hero phone; numbers are the ones on its screen. */
.hero-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 12px; border-radius: 14px; white-space: nowrap;
  background: var(--hero-glass); border: 1px solid var(--hero-glass-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-float);
  color: var(--on-hero); font-weight: 600; font-size: var(--fs-sm); line-height: 1.25;
  transform: translate(calc(var(--px, 0) * var(--depth)), calc(var(--py, 0) * var(--depth)));
  transition: transform var(--dur-out) var(--ease);
}
.hero-chip small { display: block; color: var(--on-hero-2); font-weight: 500; font-size: var(--fs-xs); letter-spacing: 0.02em; }
.chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-ring); flex: none; }
.chip-trend { --depth: 26px; top: 34%; left: -58%; }
.chip-safe { --depth: -22px; bottom: 16%; right: -46%; }
.chip-safe .chip-dot { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-ring); }
@media (max-width: 1239px) { .chip-trend { left: -56%; } .chip-safe { right: -46%; } }
/* Two-column hero without room on the right: stack both chips on the left. */
@media (min-width: 1024px) and (max-width: 1239px) { .chip-safe { right: auto; left: -56%; bottom: 14%; } }
@media (max-width: 600px) { .hero-chip { display: none; } }
/* Real-time 3D phone (assets/js/hero3d.js) crossfades over the static image once it has drawn. */
.hero-3d {
  position: absolute; left: 50%; top: 50%; width: 180%; height: 116%; transform: translate(-50%, -50%); filter: var(--shadow-phone);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-in) var(--ease);
}
.hero-float.is-3d .hero-3d { opacity: 1; }
.hero-float.is-3d .hero-phone { opacity: 0; transition: opacity var(--dur-in) var(--ease); }
@media (orientation: landscape) and (max-height: 520px) { .hero-float { width: min(60vw, 270px, 32vh); } }
/* Phones and tablets: the hero phone turns and drifts as the page scrolls (site.js sets --sp, -1..1).
   The 3D phone turns itself; this tilts the still image until it loads, or when 3D can't run. */
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .hero-phone { --ry: calc(var(--sp, 0) * -18deg); --rx: calc(var(--sp, 0) * 7deg); transition-duration: 120ms; }
  .hero-float { translate: 0 calc(var(--sp, 0) * -28px); }
}

.browser {
  width: 100%; border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.browser-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar span {
  margin-left: 10px; flex: 1; max-width: 340px; height: 22px; border-radius: 6px; background: var(--surface);
  font-size: var(--fs-xs); line-height: 22px; padding: 0 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.kicker { font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.125rem, 4.6vw, 3.5rem); letter-spacing: -0.015em; }
.section-head p { margin-top: 18px; color: var(--text-2); font-size: clamp(var(--fs-md), 1.4vw, var(--fs-lg)); }

/* Why FinFlow: the problems it solves */
.why + .section { padding-top: 0; }
.problems { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.problem { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.problem .icon-wrap { margin-bottom: 18px; }
.problem h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.375rem, 2vw, 1.5rem); letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 12px; }
.problem p { color: var(--text-2); font-size: var(--fs-base); }
.why-for { margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); max-width: 52em; color: var(--text-2); font-size: var(--fs-md); }
.why-for strong { color: var(--gold); font-size: var(--fs-sm); letter-spacing: 0.16em; text-transform: uppercase; margin-right: 10px; }
@media (max-width: 1179px) { .problems { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .problems { grid-template-columns: 1fr; } .problem { padding: 24px 20px; } }

/* Highlights */
.highlights { display: grid; grid-template-columns: repeat(5, 1fr); row-gap: 32px; }
.highlight { position: relative; padding: 32px 24px 8px 0; border-top: 1px solid var(--line); }
.highlight + .highlight { padding-left: 24px; border-left: 1px solid var(--line); }
.highlight:nth-child(5n + 1) { padding-left: 0; border-left: 0; }
.icon-wrap {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 20px;
}
.highlight h3 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.highlight p { color: var(--text-2); font-size: var(--fs-base); }
@media (max-width: 1023px) {
  .highlights { grid-template-columns: repeat(2, 1fr); column-gap: 40px; row-gap: 0; }
  .highlight, .highlight + .highlight { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) { .highlights { grid-template-columns: 1fr; } }

/* Screenshots */
.shots-section {
  background: var(--surface); color: var(--text); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  view-transition-name: shots-look;
}
.shots-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.shots-head .section-head { margin-bottom: 0; }
.mode-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.mode-switch button {
  min-height: 44px; min-width: 92px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text-2); font: 600 var(--fs-base)/1 var(--sans);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background-color 0.2s, color 0.2s;
}
.mode-switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
/* With JS the highlight is a thumb that slides between the two buttons (site.js sets --thumb-x/-w). */
.mode-switch { position: relative; }
.mode-switch button { position: relative; z-index: 1; }
.mode-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--thumb-w, 0); border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow); transform: translateX(var(--thumb-x, 0));
}
.mode-switch.has-thumb button[aria-pressed="true"] { background: transparent; box-shadow: none; }
.mode-switch .icon { width: 18px; height: 18px; }
.no-js .mode-switch { display: none; }

/* The row runs edge to edge across the screen, with the current phone in the middle.
   No scroll bar: the dots below show where you are. */
.shots {
  --bleed: calc(50vw - 50%); perspective: 1400px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 250px); gap: clamp(20px, 3vw, 32px);
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px var(--edge, var(--bleed)) 28px;
  margin: -32px calc(var(--bleed) * -1) 0; /* room above for the hover lift */
  scrollbar-width: none;
}
/* With the layered gallery running, site.js moves the row (drag, swipe, trackpad, keys, buttons) and does the
   snapping (to the slots, not the shifted layers), so it doesn't scroll natively. */
.shots.has-focus { scroll-snap-type: none; overflow-x: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.shots.is-dragging, .shots.is-dragging * { cursor: grabbing; }
.shots.has-focus img { -webkit-user-drag: none; }
.shots::-webkit-scrollbar { display: none; }
.shots:focus-visible { outline-offset: -3px; }
/* Gallery in three layers (site.js sets the variables from the scroll position): the middle phone in front,
   one each side a step back, and all the others fanned out behind those to the edges of the screen.
   Clicking a side or back phone brings it to the middle. --edge lets the first and last reach the middle. */
.shot {
  scroll-snap-align: center; margin: 0;
  translate: var(--x, 0px) 0; scale: var(--s, 1); rotate: y var(--ry, 0deg); z-index: var(--z, 1);
}
.shot .phone { width: 100%; filter: brightness(var(--b, 1)) blur(var(--blur, 0px)); transition: transform var(--dur-out) var(--ease), opacity var(--dur-out) var(--ease); }
.shot figcaption { opacity: var(--c, 1); }
.shots.has-focus .shot:not(.is-focus) .phone { cursor: pointer; }
.shots.has-focus .shot:not(.is-focus) .shot-tag { scale: 0; }
.shot .phone img { transition: filter var(--dur-out) var(--ease); }
/* Labels on each screenshot: what that screen is for, pointing at the part that shows it. */
.shot-tag {
  position: absolute; z-index: 2; top: var(--y); transform: translateY(-50%); white-space: nowrap;
  display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px;
  background: var(--hero-glass-strong); border: 1px solid var(--hero-glass-line); box-shadow: var(--shadow-float);
  color: var(--on-hero); font-size: var(--fs-xs); font-weight: 600; line-height: 1.3; pointer-events: none;
}
.shot-tag { transition: scale 0.35s cubic-bezier(0.34, 1.4, 0.64, 1); }
.shot-tag[data-side="right"] { right: -7%; }
.shot-tag[data-side="left"] { left: -7%; }
.shot-tag i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px var(--mint-ring); }
.shot figcaption { margin-top: 18px; text-align: center; }
.shot figcaption strong { display: block; font-size: var(--fs-base); }
.shot figcaption span { color: var(--muted); font-size: var(--fs-base); }
/* Back/next buttons for the screenshot row while it scrolls sideways (shown by site.js). */
.shots-nav { display: flex; justify-content: center; align-items: center; margin-top: 8px; }
/* The row and its back/next arrows, which sit either side of the phones. */
.shots-stage { position: relative; }
/* One dot per screen; the current one stretches into a pill that fills from left to right. */
.shots-dots { display: flex; align-items: center; }
.shots-dot {
  position: relative; width: 28px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  transition: width 0.45s var(--ease);
}
.shots-dot::before, .shots-dot::after {
  content: ""; position: absolute; left: 7px; right: 7px; top: 50%; height: 7px; margin-top: -3.5px; border-radius: 999px;
}
.shots-dot::before { background: var(--line); transition: background-color 0.3s var(--ease); }
/* The fill is revealed with a rounded clip (not stretched), so its ends stay round while it grows. */
.shots-dot::after { background: var(--accent); clip-path: inset(0 100% 0 0 round 999px); transition: clip-path 0.45s var(--ease); }
.shots-dot:hover::before { background: var(--muted); }
.shots-dot[aria-current="true"] { width: 64px; }
.shots-dot[aria-current="true"]::after { clip-path: inset(0 0 0 0 round 999px); }
/* Once filled, the track turns the same colour, so no grey rim shows around the green edges. */
.shots-dot[aria-current="true"]::before { background: var(--accent); transition: background-color 0.15s linear 0.4s; }
.shots-nav[hidden] { display: none; }
.shots-btn {
  position: absolute; z-index: 2; top: calc(50% - 40px); transform: translateY(-50%);
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); box-shadow: var(--shadow-float);
  transition: background-color var(--dur-out), opacity var(--dur-out), scale 0.15s ease-out;
  /* No tap box, long-press selection or tap-zoom delay on phones. */
  -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.shots-btn svg { pointer-events: none; }
/* A tap or click leaves no ring (some phone browsers draw one); keyboard focus still gets it. */
.shots-btn:focus:not(:focus-visible) { outline: none; }
/* Hover only where there is a real pointer, so the colour doesn't stick after a tap on phones. */
@media (hover: hover) { .shots-btn:hover { background: var(--accent-soft); transition-duration: var(--dur-in); } }
.shots-btn:active:not(:disabled) { scale: 0.9; background: var(--accent-soft); }
.shots-btn:disabled { opacity: 0.4; cursor: default; }
.shots-btn .flip { transform: scaleX(-1); }
/* Out at the edges of the screen (the row runs edge to edge), clear of the middle phones. */
.shots-btn[data-dir="-1"] { left: calc(50% - 50vw + clamp(10px, 2.5vw, 40px)); }
.shots-btn[data-dir="1"] { right: calc(50% - 50vw + clamp(10px, 2.5vw, 40px)); }
.shots-btn[hidden] { display: none; }
/* On phones: smaller arrows at the screen edges and narrower dots, so all 15 fit. */
@media (max-width: 600px) {
  .shots-btn { width: 42px; height: 42px; }
  .shots-dot { width: 18px; }
  .shots-dot::before, .shots-dot::after { left: 5px; right: 5px; height: 6px; margin-top: -3px; }
  .shots-dot[aria-current="true"] { width: 40px; }
}
/* Fifteen screens: the row scrolls sideways at every width, with the back/next buttons. */

/* PC Manager: the phone links to the browser, then the dashboard loads (once, on reveal);
   afterwards the window tilts toward the pointer with the chips at different depths. */
.pc-stage { position: relative; padding: 0 0 6% 7%; }
.pc-stage .browser {
  position: relative; z-index: 1;
  transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform var(--dur-out) var(--ease);
}
.pc-stage:hover .browser { transition-duration: var(--dur-in); }
.pc-phone { position: absolute; left: 0; bottom: 0; z-index: 2; width: 8.5%; height: auto; filter: var(--shadow-phone); }
.pc-phone .body { fill: var(--badge-bg); }
.pc-phone .glass { fill: var(--hero-1); }
.pc-phone .island { fill: var(--badge-bg); }
/* Wi-Fi waves from the phone toward the browser. */
.pc-waves { position: absolute; left: 6%; bottom: 21%; z-index: 2; width: 9%; height: auto; overflow: visible; }
.pc-waves path { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.pc-chip { --depth: 18px; background: var(--hero-glass-strong); }
.chip-wifi { left: 11%; bottom: 0; z-index: 3; }
.chip-worth { --depth: -24px; right: -3%; top: 14%; z-index: 3; }
.chip-worth .chip-dot { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-ring); }
@media (max-width: 600px) { .pc-chip { display: none; } }
.pc-shot { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.pc-shot h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 3vw, 2.375rem); margin-bottom: 14px; }
.pc-shot p { color: var(--text-2); }
@media (max-width: 767px) { .pc-shot { grid-template-columns: 1fr; } }

/* Light/dark screenshot pairs: show the one matching the switch, or the device theme without JS. */
[data-mode="dark"] { display: none; }
html[data-shots="dark"] [data-mode="dark"] { display: block; }
html[data-shots="dark"] [data-mode="light"] { display: none; }
@media (prefers-color-scheme: dark) {
  html:not([data-shots]) [data-mode="dark"] { display: block; }
  html:not([data-shots]) [data-mode="light"] { display: none; }
}

/* Feature catalogue */
.catalog { columns: 3 300px; column-gap: clamp(28px, 4vw, 56px); }
.group { break-inside: avoid; margin: 0 0 clamp(36px, 4vw, 48px); }
.group-title { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.group-title .icon { color: var(--accent); }
.group-toggle {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 6px 0;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.group-toggle .count { margin-left: auto; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
.group-toggle .chev { width: 18px; height: 18px; flex: none; transition: transform var(--dur-out) var(--ease); }
.group-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); transition-duration: var(--dur-in); }
.group-title h3 { font-size: var(--fs-md); font-weight: 700; }
.catalog.is-accordion .group-title h3 { flex: 1; }
.catalog.is-accordion .group { margin: 0; }
.catalog.is-accordion .group-title { padding: 4px 0; margin: 0; }
.catalog.is-accordion .group ul { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.group li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.group li:last-child { border-bottom: 0; }
.group li strong { display: block; font-weight: 600; font-size: var(--fs-base); margin-bottom: 3px; }
.group li span { color: var(--text-2); font-size: var(--fs-base); line-height: 1.55; }

/* Privacy band */
.privacy-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, var(--hero-1), var(--hero-2) 60%, var(--hero-3));
  color: var(--on-hero);
}
.privacy-band .ribbons { opacity: 0.5; transform: scaleX(-1); }
.privacy-band .kicker { color: var(--hero-gold); }
.privacy-band .section-head p { color: var(--on-hero-2); }
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 32px); }
.privacy-item { position: relative; padding-top: 24px; border-top: 1px solid var(--hero-line); }
.privacy-item .icon { color: var(--hero-gold); width: 28px; height: 28px; margin-bottom: 18px; }
.privacy-item h3 { font-size: var(--fs-lg); font-weight: 700; margin-bottom: 8px; }
.privacy-item p { color: var(--on-hero-2); font-size: var(--fs-base); }
.privacy-band .links { margin-top: clamp(40px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1023px) { .privacy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .privacy-grid { grid-template-columns: 1fr; } }

/* Closing CTA */
.cta { text-align: center; }
.cta .mark { width: 88px; height: 88px; margin: 0 auto 28px; }
.cta h2 { margin-bottom: 18px; }
.cta p { color: var(--text-2); max-width: 34em; margin: 0 auto; }
.cta .play-badge { margin-top: 32px; }
.cta .contact { margin-top: 22px; font-size: var(--fs-base); color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: var(--fs-base); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand strong { color: var(--text); display: block; font-size: var(--fs-base); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 -10px; }
.footer-links a { color: var(--text-2); text-decoration: none; padding: 10px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

/* 404 */
.hero.not-found .ribbons {
  -webkit-mask-image: radial-gradient(ellipse 60% 34% at 50% 50%, transparent 55%, #000 100%);
  mask-image: radial-gradient(ellipse 60% 34% at 50% 50%, transparent 55%, #000 100%);
}
.not-found { min-height: calc(100vh - 68px); min-height: calc(100dvh - 68px); display: grid; place-items: center; text-align: center; }
.not-found h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 6vw, 4rem); margin: 18px 0 14px; }
.not-found p { color: var(--on-hero-2); margin-bottom: 30px; }

/* Reveal on scroll, only with JS and when motion is allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-enter) var(--ease), transform var(--dur-enter) var(--ease); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .hero-float { animation: float-in 1s var(--ease) both 0.15s; }
  @keyframes float-in { from { opacity: 0; transform: translateY(28px); } }
  .hero-chip { animation: chip-in 0.9s var(--ease) both; }
  .chip-trend { animation-delay: 0.7s; }
  .chip-safe { animation-delay: 0.9s; }
  @keyframes chip-in { from { opacity: 0; translate: 0 14px; } }
  .js .shot[data-reveal] { transition-delay: var(--d, 0ms); }
  /* Screenshot labels slide up just after their phone. */
  .js .shot[data-reveal] figcaption > * { opacity: 0; transform: translateY(10px); }
  .js .shot[data-reveal].is-visible figcaption > * {
    opacity: 1; transform: none;
    transition: opacity 500ms var(--ease), transform 500ms var(--ease);
    transition-delay: calc(var(--d, 0ms) + 260ms);
  }
  .js .shot[data-reveal].is-visible figcaption > span { transition-delay: calc(var(--d, 0ms) + 360ms); }
  /* Screen labels pop in after the phone, one then the other. */
  .js .shot[data-reveal] .shot-tag { opacity: 0; }
  .js .shot[data-reveal].is-visible .shot-tag { opacity: 1; animation: tag-in 520ms cubic-bezier(0.34, 1.4, 0.64, 1) both; animation-delay: calc(var(--d, 0ms) + 520ms); }
  .js .shot[data-reveal].is-visible .shot-tag + .shot-tag { animation-delay: calc(var(--d, 0ms) + 700ms); }
  @keyframes tag-in { from { opacity: 0; scale: 0.8; } }
  /* Light/Dark switch: spring-y thumb, the chosen icon spins in, the section's colours sweep out
     in a circle from the button (View Transitions; a colour fade elsewhere). */
  .mode-thumb { transition: transform 420ms cubic-bezier(0.34, 1.4, 0.64, 1), width 420ms cubic-bezier(0.34, 1.4, 0.64, 1), background-color var(--dur-in); }
  .mode-switch button[aria-pressed="true"] .icon { animation: icon-in 520ms cubic-bezier(0.34, 1.4, 0.64, 1); }
  @keyframes icon-in { from { transform: rotate(-120deg) scale(0.4); opacity: 0.3; } }
  .shots-section { transition: background-color 450ms var(--ease), color 450ms var(--ease), border-color 450ms var(--ease); }
  ::view-transition-old(shots-look) { animation: none; }
  ::view-transition-new(shots-look) { animation: look-reveal 700ms cubic-bezier(0.65, 0, 0.35, 1); }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  @keyframes look-reveal {
    from { clip-path: circle(0 at var(--look-x, 90%) var(--look-y, 10%)); }
    to { clip-path: circle(150% at var(--look-x, 90%) var(--look-y, 10%)); }
  }
  /* PC Manager sequence, once when the stage is revealed. */
  .js .pc-stage .pc-phone, .js .pc-stage .pc-chip, .js .pc-stage .pc-waves path { opacity: 0; animation: none; }
  .js .pc-stage.is-visible .pc-phone { opacity: 1; animation: pc-pop 0.5s var(--ease) 0.2s both; }
  .js .pc-stage.is-visible .pc-waves path { opacity: 1; animation: pc-wave 0.5s var(--ease) both; }
  .js .pc-stage.is-visible .pc-waves path:nth-child(1) { animation-delay: 0.6s; }
  .js .pc-stage.is-visible .pc-waves path:nth-child(2) { animation-delay: 0.75s; }
  .js .pc-stage.is-visible .pc-waves path:nth-child(3) { animation-delay: 0.9s; }
  .js .pc-stage.is-visible .browser img { animation: pc-load 0.8s var(--ease) 1.1s both; }
  .js .pc-stage.is-visible .pc-chip { opacity: 1; animation: chip-in 0.7s var(--ease) both; }
  .js .pc-stage.is-visible .chip-wifi { animation-delay: 1.3s; }
  .js .pc-stage.is-visible .chip-worth { animation-delay: 1.8s; }
  @keyframes pc-pop { from { opacity: 0; transform: translateY(12px) scale(0.85); } to { opacity: 1; transform: none; } }
  @keyframes pc-wave { from { opacity: 0; transform: translate(-6px, 6px); } }
  @keyframes pc-load { from { clip-path: inset(0 0 100% 0); opacity: 0.4; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
  @media (hover: hover) {
    .hero-visual:hover { --zoom: 1.04; }
    .hero-visual:hover .hero-phone, .hero-visual:hover .hero-chip { transition-duration: var(--dur-in); }
    .shot.is-focus:hover .phone { transform: translateY(-12px) scale(1.04); transition-duration: var(--dur-in); }
    .shot.is-focus:hover .phone img, .shot.is-focus:hover .shot-3d { filter: var(--shadow-phone-lift); transition-duration: var(--dur-in); }
    .shot-tag { transition: translate var(--dur-out) var(--ease), scale 0.35s cubic-bezier(0.34, 1.4, 0.64, 1); }
    .shot:hover .shot-tag[data-side="right"] { translate: 8px 0; transition-duration: var(--dur-in); }
    .shot:hover .shot-tag[data-side="left"] { translate: -8px 0; transition-duration: var(--dur-in); }
    /* Text highlights respond to the pointer. */
    .highlight::before {
      content: ""; position: absolute; top: -1px; left: 0; right: 24px; height: 2px; background: var(--accent);
      transform: scaleX(0); transform-origin: left; transition: transform var(--dur-out) var(--ease);
    }
    .highlight + .highlight::before { left: 24px; }
    .highlight:hover::before { transform: scaleX(1); transition-duration: 420ms; }
    .highlight .icon-wrap, .highlight h3 { transition: transform var(--dur-out) var(--ease), color var(--dur-out); }
    .highlight:hover .icon-wrap { transform: translateY(-3px) rotate(-8deg) scale(1.08); transition-duration: var(--dur-in); }
    .highlight:hover h3 { color: var(--accent); transform: translateX(3px); transition-duration: var(--dur-in); }
    .group li { position: relative; transition: transform var(--dur-out) var(--ease); }
    .group li::before {
      content: ""; position: absolute; left: -12px; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--accent);
      transform: scaleY(0); transition: transform var(--dur-out) var(--ease);
    }
    .group li strong { transition: color var(--dur-out); }
    .group li:hover { transform: translateX(6px); transition-duration: var(--dur-in); }
    .group li:hover::before { transform: scaleY(1); transition-duration: var(--dur-in); }
    .group li:hover strong { color: var(--accent); }
    .privacy-item { transition: transform var(--dur-out) var(--ease), border-color var(--dur-out); }
    .privacy-item .icon { transition: transform var(--dur-out) var(--ease); }
    .privacy-item:hover { transform: translateY(-4px); border-top-color: var(--hero-gold); transition-duration: var(--dur-in); }
    .privacy-item:hover .icon { transform: translateY(-3px) rotate(-6deg); transition-duration: var(--dur-in); }
    /* Why FinFlow cards: lift, tilt toward the pointer (site.js sets --rx/--ry/--px/--py), a spotlight
       under the pointer, an accent bar, and each icon acts out its problem. */
    .why .problem { position: relative; isolation: isolate; overflow: hidden; }
    .why .problem, .js .why .problem[data-reveal] {
      transition: opacity var(--dur-enter) var(--ease), transform var(--dur-enter) var(--ease), translate var(--dur-out) var(--ease),
        box-shadow var(--dur-out) var(--ease), border-color var(--dur-out);
    }
    .js .why .problem.is-visible { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
    .why .problem:hover, .js .why .problem[data-reveal]:hover { transition-duration: var(--dur-enter), 160ms, var(--dur-in), var(--dur-in), var(--dur-in); }
    .why .problem::before {
      content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--dur-out);
      background: radial-gradient(260px circle at calc((var(--px, 0) + 1) * 50%) calc((var(--py, 0) + 1) * 50%), var(--accent-soft), transparent 70%);
    }
    .why .problem::after {
      content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent);
      transform: scaleX(0); transform-origin: left; transition: transform var(--dur-out) var(--ease);
    }
    .why .problem .icon-wrap { transition: transform var(--dur-out) var(--ease), background var(--dur-out), color var(--dur-out); }
    .why .problem h3 { transition: color var(--dur-out); }
    .why .problem:hover { translate: 0 -6px; border-color: var(--accent); box-shadow: 0 24px 48px -20px rgba(15, 74, 55, 0.35); }
    .why .problem:hover::before { opacity: 1; transition-duration: var(--dur-in); }
    .why .problem:hover::after { transform: scaleX(1); transition-duration: 420ms; }
    .why .problem:hover .icon-wrap { transform: scale(1.1); background: var(--accent); color: var(--surface); transition-duration: var(--dur-in); }
    .why .problem:hover h3 { color: var(--accent); }
    .why .problem:hover .icon { animation: var(--act) 700ms var(--ease) both; }
    .why .problem .icon { transform-origin: var(--act-origin, 50% 50%); }
    @keyframes act-wallet { 30% { transform: translateY(-4px) scale(1.12); } 55% { transform: translateY(1px) scale(0.96); } 75% { transform: translateY(-1px); } }
    @keyframes act-target { 0% { transform: scale(0.6) rotate(-90deg); opacity: 0.4; } 60% { transform: scale(1.15) rotate(8deg); opacity: 1; } }
    @keyframes act-ring { 15% { transform: rotate(18deg); } 30% { transform: rotate(-16deg); } 45% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 75% { transform: rotate(4deg); } }
    @keyframes act-rise { 0% { transform: translate(-3px, 4px); opacity: 0.3; } 60% { transform: translate(1px, -2px); opacity: 1; } }
    @keyframes act-stack { 25% { transform: scaleY(0.75) translateY(2px); } 55% { transform: scaleY(1.15) translateY(-3px); } 80% { transform: scaleY(0.97); } }
    @keyframes act-lock { 20% { transform: translateY(-3px); } 40% { transform: translateX(-2px) rotate(-6deg); } 60% { transform: translateX(2px) rotate(6deg); } 80% { transform: translateX(-1px) rotate(-2deg); } }
    @keyframes act-page { 0% { transform: translateY(6px) rotate(-8deg); opacity: 0.3; } 55% { transform: translateY(-3px) rotate(3deg); opacity: 1; } 80% { transform: rotate(-1deg); } }
    @keyframes act-drop { 0% { transform: translateY(-8px); opacity: 0; } 45% { transform: translateY(1px) scaleY(0.85); opacity: 1; } 65% { transform: translateY(-2px); } 85% { transform: translateY(0) scaleY(0.97); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .zoom[open]::backdrop, .zoom.is-in .zoom-glow, .zoom.is-in .zoom-bar, .zoom.is-in .zoom-close { animation: none; }
  .shots-dot, .shots-dot::before, .shots-dot::after { transition: none; }
}
