/* Public site design system — warm light "soft glass" on an off-white canvas.
   Deep teal accent (light-background variant of the app's #2ec4c9 brand teal),
   with a warm peach secondary for human moments.
   No build step, no webfonts. Legal pages reuse: site-nav, brand, nav-links,
   btn, article, site-footer, footer-* — keep those class names stable. */

:root {
  --bg: #faf7f2;
  --ink: #1f2d38;
  --muted: #5d6b76;
  --line: rgba(31, 45, 56, 0.10);
  --accent: #0f8a8f;
  --accent-strong: #0b6e72;
  --accent-2: #1d9e75;
  --accent-ink: #ffffff;
  --warm: #f6e7d8;
  --warm-ink: #8a5a38;
  --ok: #2e9960;
  --err: #c84f42;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(31, 45, 56, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.9);
  --glow: rgba(15, 138, 143, 0.22);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id], header[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E"),
    linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(246, 231, 216, .2) 42%, rgba(255, 255, 255, 0) 72%);
  background-repeat: repeat, no-repeat;
  background-size: 140px 140px, auto;
  background-attachment: fixed, fixed;
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- aurora backdrop (soft pastel washes) ---------- */

.aurora {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.aurora i,
.aurora::after {
  position: absolute;
  width: 56vw; height: 56vw;
  min-width: 520px; min-height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .64;
}
.aurora i:nth-child(1) {
  background: radial-gradient(circle, rgba(15, 138, 143, .17), transparent 65%);
  top: -22vw; left: -12vw;
  animation: drift-a 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  background: radial-gradient(circle, rgba(232, 165, 110, .18), transparent 65%);
  top: 24vh; right: -24vw;
  animation: drift-b 32s ease-in-out infinite alternate;
}
.aurora i:nth-child(3) {
  background: radial-gradient(circle, rgba(29, 158, 117, .15), transparent 65%);
  bottom: -28vw; left: 18vw;
  animation: drift-c 38s ease-in-out infinite alternate;
}
.aurora::after {
  content: "";
  background: radial-gradient(circle, rgba(247, 176, 128, .16), transparent 66%);
  width: 58vw; height: 58vw;
  bottom: -24vw; right: -18vw;
  animation: drift-d 34s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(9vw, 7vh) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-7vw, -6vh) scale(1.08); } }
@keyframes drift-c { to { transform: translate(-6vw, -9vh) scale(1.15); } }
@keyframes drift-d { to { transform: translate(-5vw, -5vh) scale(1.1); } }

/* ---------- glass primitive (light: soft white cards) ---------- */

.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow:
    0 24px 60px -30px rgba(31, 45, 56, .25),
    inset 0 1px 0 var(--glass-highlight);
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(.985);
  filter: blur(4px);
  transition: opacity .8s cubic-bezier(.2, .6, .2, 1),
              transform .8s cubic-bezier(.2, .6, .2, 1),
              filter .8s cubic-bezier(.2, .6, .2, 1);
}
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }

/* ---------- nav (floating soft pill) ---------- */

.site-nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  pointer-events: none;
}
.site-nav .wrap {
  pointer-events: auto;
  max-width: 980px;
  display: flex; align-items: center; gap: 26px;
  height: 58px;
  padding: 0 12px 0 22px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 12px 36px -18px rgba(31, 45, 56, .35), inset 0 1px 0 var(--glass-highlight);
}
@media (max-width: 1020px) { .site-nav .wrap { margin: 0 16px; } }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17.5px; letter-spacing: -0.3px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a:not(.btn) {
  color: #3e4d59; font-size: 14.5px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:not(.btn):hover { color: var(--ink); background: rgba(31, 45, 56, .06); text-decoration: none; }
.nav-links a.btn, .nav-links a.btn:hover { color: var(--accent-ink); }
.nav-links .btn { padding: 9px 18px; margin-left: 10px; }
/* pages without a CTA: keep the last link off the pill's edge */
.site-nav .wrap:not(:has(a.btn)) { padding-right: 18px; }

/* page content clears the fixed nav */
main, .hero, .article { padding-top: 86px; }
.site-nav + .hero, body > .hero { padding-top: 110px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: linear-gradient(120deg, var(--accent), #129499);
  color: var(--accent-ink);
  border: 0; border-radius: 999px;
  padding: 12px 24px;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover {
  filter: brightness(1.06);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn:disabled { opacity: .5; cursor: wait; transform: none; }
.btn.ghost {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn.ghost:hover { border-color: rgba(15, 138, 143, .45); color: var(--accent-strong); filter: none; }
.btn.big { padding: 15px 32px; font-size: 16.5px; }

/* Google sign-in button — light variant (per Google's light-theme guidelines) */
.btn.google {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(31, 45, 56, 0.18);
  color: #3c4043;
  box-shadow: 0 1px 3px rgba(31, 45, 56, .08);
  width: 100%;
}
.btn.google:hover {
  filter: none;
  background: #f8fafb;
  border-color: rgba(15, 138, 143, .45);
}
.btn.google svg { width: 20px; height: 20px; flex: none; }

/* Plan toggle: a muted segmented control so the checkout button is the one loud CTA */
#plan-pick .btn { font-weight: 600; }
#plan-pick .btn.sel {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--accent-strong);
  background: rgba(46, 196, 201, .12);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 76svh;
  display: flex; flex-direction: column; justify-content: center;
  text-align: left;
  padding-bottom: 24px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 48px;
  align-items: center;
  max-width: 1160px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
h1.hero-title {
  margin: 0 0 18px;
  max-width: none;
  font-size: clamp(34px, 3.55vw, 54px);
  line-height: 1.05;
  letter-spacing: -1.6px;
  font-weight: 800;
  background: linear-gradient(150deg, var(--ink) 45%, #14545c 75%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin: 0 0 24px;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18.5px);
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-copy .hero-ctas { justify-content: flex-start; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* dashboard mock in the hero's right column: full-width, panels stacked */
.hero .screen { margin: 0; max-width: none; width: 100%; padding: 20px 22px; }
.hero .screen-grid { grid-template-columns: 1fr; gap: 14px; }
.hero .panel { padding: 18px 20px; }
.hero .big-number { font-size: clamp(30px, 3vw, 40px); }

@media (max-width: 880px) {
  .hero { text-align: center; }
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { align-items: center; }
  h1.hero-title { margin-left: auto; margin-right: auto; }
  .hero-sub { margin-left: auto; margin-right: auto; max-width: 600px; }
  .hero-copy .hero-ctas { justify-content: center; }
  .hero .trust-pill { margin-left: auto; margin-right: auto; }
}
.chip-strip { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.chip {
  font-size: 13px; font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 6px 14px;
}

/* hero trust pill — privacy promise, links to /security */
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 22px;
  font-size: 13.5px; font-weight: 600;
  color: var(--accent-strong);
  background: rgba(15, 138, 143, .08);
  border: 1px solid rgba(15, 138, 143, .25);
  border-radius: 999px;
  padding: 7px 16px;
  transition: border-color .2s ease, background .2s ease;
}
.trust-pill:hover { text-decoration: none; border-color: rgba(15, 138, 143, .5); background: rgba(15, 138, 143, .12); }
.trust-pill svg { width: 15px; height: 15px; flex: none; }

/* ---------- app screens (placeholder mocks) ---------- */

.screen {
  margin: 30px auto 0;
  max-width: 1010px;
  padding: 22px 28px;
  text-align: left;
}
.screen.narrow { max-width: 860px; }
.screen.floaty { animation: floaty 7s ease-in-out infinite alternate; }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-9px); } }

.screen-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.screen-title { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.screen-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--accent-strong); font-weight: 600;
  background: rgba(15, 138, 143, .08);
  border: 1px solid rgba(15, 138, 143, .28);
  border-radius: 999px; padding: 4px 12px;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(15, 138, 143, .55);
  animation: live-blink 2.2s ease-in-out infinite;
}
@keyframes live-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.screen-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; }
.panel {
  background: rgba(255, 255, 255, .65);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px;
}
.panel-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .9px; color: var(--muted); margin-bottom: 10px; }
.big-number { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -1.8px; font-variant-numeric: tabular-nums; }
.delta { font-size: 15px; color: var(--ok); margin-top: 4px; }

/* line charts (draw when section gets .in) */
.chart-wrap { position: relative; }
svg.chart { width: 100%; display: block; overflow: visible; }
.chart .line { stroke-dasharray: 320; stroke-dashoffset: 320; }
.chart .area { opacity: 0; }
.chart .dashed { stroke-dasharray: 6 7; opacity: 0; }
.chart .cone { opacity: 0; }
.in svg.chart .line { animation: draw-line 2.2s cubic-bezier(.4, 0, .2, 1) .25s forwards; }
.in svg.chart .area { animation: fade-in 1s ease 1.6s forwards; }
.in svg.chart .dashed { animation: fade-in 1.1s ease 2s forwards; }
.in svg.chart .cone { animation: fade-in 1.3s ease 2.2s forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* chart end-dot: HTML overlay so it stays round despite the chart's
   non-uniform scaling, and pulses like the "synced" live dot */
.chart-tip {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px rgba(15, 138, 143, .55);
  transform: translate(-50%, -50%); opacity: 0;
}
/* appear only once the line has finished drawing (line ends ~2.45s),
   then breathe by scaling — opacity blinking renders poorly at this size */
.in .chart-tip { animation: tip-appear .5s ease 2.55s forwards, tip-breathe 2.6s ease-in-out 3.05s infinite; }
@keyframes tip-appear {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.3); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes tip-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.5); }
}

/* combined growth → projection story: one continuous line — solid history
   (left half) then dotted projection (right half), each revealed by a clip-wipe
   so the dots appear progressively. Two reversible states drive it:
     .in1 — builds the history (phase 1)
     .in2 — swaps the copy and extends the dotted projection (phase 2)
   Both are transitions, so .in2 reverses cleanly — the scroll controller
   (landing.html) rewinds it to let people scroll back and re-read. */
.gp-copy { display: grid; }
.gp-copy > .gp-act { grid-area: 1 / 1; }

.screen-head .gp-stack { display: grid; }
.screen-head .gp-stack > * { grid-area: 1 / 1; justify-self: start; }
.screen-head .gp-stack-right > * { justify-self: end; }

/* chart paths stay painted; the reveal is done by clip-rect wipes */
.gp-chart .line { stroke-dasharray: none; stroke-dashoffset: 0; }
.gp-chart .area, .gp-chart .cone, .gp-chart .dashed { opacity: 1; }
.gp-chart .hist-reveal,
.gp-chart .proj-reveal {
  transform: scaleX(0);
  transform-box: view-box;
  transition: transform 1.6s cubic-bezier(.4, 0, .2, 1);
}
.gp-chart .hist-reveal { transform-origin: 0 0; }
.gp-chart .proj-reveal { transform-origin: 300px 0; transition-duration: 1.5s; }
.gp.in1 .gp-chart .hist-reveal { transform: scaleX(1); }
.gp.in2 .gp-chart .proj-reveal { transform: scaleX(1); }

/* "today" divider + hand-off tip appear with phase 2 */
.gp-chart .today-line { opacity: 0; transition: opacity .5s ease; }
.gp.in2 .gp-chart .today-line { opacity: 1; }
.gp-tip { left: 50%; top: 40%; opacity: 0; transition: opacity .5s ease .15s; }
.gp.in2 .gp-tip { opacity: 1; animation: tip-breathe 2.6s ease-in-out 1s infinite; }

/* copy swap: phase-1 line swipes up and out, phase-2 line rises into place */
.gp-act1 { transition: opacity .55s ease, transform .55s cubic-bezier(.4, 0, .2, 1); }
.gp-act2 { opacity: 0; transform: translateY(26px);
  transition: opacity .6s ease .05s, transform .6s cubic-bezier(.2, .7, .3, 1) .05s; }
.gp.in2 .gp-act1 { opacity: 0; transform: translateY(-26px); }
.gp.in2 .gp-act2 { opacity: 1; transform: translateY(0); }

.gp-stack .gp-a1 { transition: opacity .55s ease, transform .55s cubic-bezier(.4, 0, .2, 1); }
.gp-stack .gp-a2 { opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease .05s, transform .6s cubic-bezier(.2, .7, .3, 1) .05s; }
.gp.in2 .gp-stack .gp-a1 { opacity: 0; transform: translateY(-14px); }
.gp.in2 .gp-stack .gp-a2 { opacity: 1; transform: translateY(0); }


/* allocation bars */
.alloc-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.alloc-row .name { width: 104px; color: var(--muted); }
.alloc-row .bar { flex: 1; height: 10px; border-radius: 5px; background: rgba(31, 45, 56, .08); overflow: hidden; }
.alloc-row .bar i {
  display: block; height: 100%; border-radius: 5px;
  background: var(--accent);
  width: 0;
}
.in .alloc-row .bar i { width: var(--w); transition: width 1.5s cubic-bezier(.2, .7, .3, 1) .2s; }
.in .alloc-row:nth-child(2) .bar i { transition-delay: .45s; }
.in .alloc-row:nth-child(3) .bar i { transition-delay: .65s; }
.in .alloc-row:nth-child(4) .bar i { transition-delay: .85s; }
.in .alloc-row:nth-child(5) .bar i { transition-delay: 1.05s; }
.alloc-row .pct { width: 46px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

/* donut */
.donut-wrap { display: flex; align-items: center; gap: 36px; }
svg.donut { width: 168px; height: 168px; flex: none; transform: rotate(-90deg); }
/* one continuous clock-sweep around the ring: per-slice duration is
   proportional to its share (38/22/16/14/10 of a 2s sweep), linear easing,
   back-to-back delays — no pause between slices. Legend rows fade in as the
   sweep reaches their slice. */
.donut circle {
  fill: none; stroke-width: 4.2;
  stroke-dasharray: 0 100;
  transition: stroke-dasharray linear;
}
.in .donut circle { stroke-dasharray: var(--seg); }
.donut circle:nth-child(1) { transition-duration: .76s; }
.donut circle:nth-child(2) { transition-duration: .44s; }
.donut circle:nth-child(3) { transition-duration: .32s; }
.donut circle:nth-child(4) { transition-duration: .28s; }
.donut circle:nth-child(5) { transition-duration: .20s; }
.in .donut circle:nth-child(2) { transition-delay: .76s; }
.in .donut circle:nth-child(3) { transition-delay: 1.2s; }
.in .donut circle:nth-child(4) { transition-delay: 1.52s; }
.in .donut circle:nth-child(5) { transition-delay: 1.8s; }
.donut-legend { font-size: 15.5px; color: var(--muted); }
.donut-legend div {
  display: flex; align-items: center; gap: 11px; padding: 4px 0;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .45s ease, transform .45s ease;
}
.in .donut-legend div { opacity: 1; transform: none; }
.in .donut-legend div:nth-child(1) { transition-delay: .05s; }
.in .donut-legend div:nth-child(2) { transition-delay: .76s; }
.in .donut-legend div:nth-child(3) { transition-delay: 1.2s; }
.in .donut-legend div:nth-child(4) { transition-delay: 1.52s; }
.in .donut-legend div:nth-child(5) { transition-delay: 1.8s; }
.donut-legend i { width: 11px; height: 11px; border-radius: 3.5px; flex: none; }

/* sync rows */
.sync-row {
  display: flex; align-items: center; gap: 16px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .65);
  margin-top: 7px;
  font-size: 15.5px;
  opacity: 0; transform: translateX(-18px);
}
.in .sync-row { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }
.in .sync-row:nth-child(2) { transition-delay: .2s; }
.in .sync-row:nth-child(3) { transition-delay: .4s; }
.in .sync-row:nth-child(4) { transition-delay: .6s; }
.in .sync-row:nth-child(5) { transition-delay: .8s; }
.sync-logo {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 138, 143, .09);
  border: 1px solid rgba(15, 138, 143, .22);
  color: var(--accent-strong);
}
.sync-logo svg { width: 21px; height: 21px; }
.sync-name { font-weight: 600; }
.sync-kind { color: var(--muted); font-size: 13.5px; }
.sync-state { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.sync-state .live-dot { animation-delay: .6s; }

/* ---------- story sections (one thing at a time) ---------- */

.story {
  min-height: 70svh;
  display: flex; align-items: center;
  padding: 30px 0;
}
.story .wrap { width: 100%; text-align: center; }
.story-kicker {
  font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px;
  color: var(--accent-strong); margin: 0 0 14px;
}
.story-title {
  margin: 0 auto 16px;
  max-width: 720px;
  font-size: clamp(30px, 5.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -1.8px;
  font-weight: 800;
}
.story-sub {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(15.5px, 1.8vw, 18px);
}

/* calm illustration (privacy section) */
.calm-figure {
  width: min(184px, 48vw);
  margin: 16px auto 0;
  display: block;
}


/* trust trio */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.trust-card { padding: 18px 20px; text-align: left; }
.trust-card svg { width: 22px; height: 22px; color: var(--accent-strong); margin-bottom: 10px; }
.trust-card h3 { margin: 0 0 6px; font-size: 16px; }
.trust-card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.security-link { margin-top: 20px; font-size: 14.5px; color: var(--muted); }

/* ---------- pricing ---------- */

.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 22px; justify-content: center; margin-top: 32px; }
.price-card { padding: 24px 28px; text-align: left; }
.price-card.featured {
  border-color: rgba(15, 138, 143, .45);
  box-shadow:
    0 24px 60px -30px rgba(31, 45, 56, .25),
    0 0 56px -22px var(--glow),
    inset 0 1px 0 var(--glass-highlight);
}
.price-tag {
  position: absolute; top: -13px; right: 22px;
  background: var(--accent);
  color: var(--accent-ink); font-size: 12px; font-weight: 800;
  border-radius: 999px; padding: 4px 13px;
}
.price-card .plan-name { font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 1.2px; }
.price-card .amount { font-size: 46px; font-weight: 800; letter-spacing: -1.8px; }
.price-card .amount small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card .per { color: var(--muted); font-size: 14px; margin: 4px 0 16px; }
.price-card ul { list-style: none; margin: 0 0 18px; padding: 0; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 14.5px; }
.price-card li svg { width: 17px; height: 17px; color: var(--accent-strong); flex: none; margin-top: 3px; }
.price-card .btn { width: 100%; text-align: center; }
.price-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 18px; }

/* ---------- FAQ ---------- */

.faq { max-width: 720px; margin: 28px auto 0; text-align: left; }
.faq details {
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(15, 138, 143, .4); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 13px 22px;
  font-weight: 600; font-size: 15.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-strong); font-size: 21px; font-weight: 400; transition: transform .2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 18px; color: var(--muted); font-size: 14.5px; }

/* ---------- auth / form cards (signup, signin) ---------- */

.auth-page {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 130px 24px 60px;
  text-align: center;
}
.auth-card {
  width: 100%; max-width: 440px;
  padding: 38px 34px;
  text-align: left;
}
.auth-card h1 { margin: 0 0 8px; font-size: 27px; letter-spacing: -0.7px; text-align: center; }
.auth-card .auth-sub { margin: 0 0 26px; color: var(--muted); font-size: 14.5px; text-align: center; }
.auth-card form { display: flex; flex-direction: column; gap: 13px; }
.auth-card form[hidden] { display: none; }  /* author display:flex would otherwise beat the hidden attr */
.auth-card label { font-size: 13px; color: var(--muted); }
.auth-card input {
  background: #ffffff; color: var(--ink);
  border: 1px solid rgba(31, 45, 56, 0.16); border-radius: 12px;
  padding: 12px 15px; font-size: 15px; width: 100%;
}
.auth-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 138, 143, .14); }
.sub-row { display: flex; align-items: center; gap: 8px; }
.sub-row input { flex: 1; }
.sub-row span { color: var(--muted); font-size: 14.5px; white-space: nowrap; }
.auth-foot { margin-top: 22px; font-size: 13.5px; color: var(--muted); text-align: center; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 22px; }
#msg { margin-top: 14px; min-height: 22px; font-size: 14px; text-align: center; }
#msg.ok { color: var(--ok); }
#msg.err { color: var(--err); }

/* ---------- marketing consent ---------- */

.marketing-consent {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 80;
  width: min(740px, calc(100vw - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(31, 45, 56, .18), inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.marketing-consent-text {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.marketing-consent-actions {
  display: flex;
  gap: 10px;
  flex: none;
}
.marketing-consent .btn {
  padding: 9px 14px;
  font-size: 13.5px;
  min-width: 72px;
}
.marketing-consent .btn:not(.ghost) {
  background: rgba(15, 138, 143, .10);
  border: 1px solid rgba(15, 138, 143, .32);
  color: var(--accent-strong);
  box-shadow: none;
}
.marketing-consent .btn:not(.ghost):hover {
  background: rgba(15, 138, 143, .16);
  filter: none;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 44px;
  color: var(--muted);
  font-size: 14px;
  background: rgba(243, 238, 230, .65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.footer-cols { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-cols .brand { display: flex; font-size: 16px; margin-bottom: 10px; }
.footer-col h4 { margin: 0 0 12px; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--ink); }
.footer-col a { display: block; color: var(--muted); padding: 3px 0; }
.footer-col a:hover { color: var(--accent-strong); text-decoration: none; }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; }

/* ---------- legal / article pages ---------- */

.article { max-width: 760px; margin: 0 auto; padding-bottom: 96px; padding-left: 24px; padding-right: 24px; }
.article h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -1.2px; margin: 26px 0 8px; }
.article .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.article h2 { font-size: 21px; letter-spacing: -0.3px; margin: 40px 0 12px; }
.article h3 { font-size: 16.5px; margin: 26px 0 8px; }
.article p, .article li { color: #3c4a55; font-size: 15.5px; }
.article ul { padding-left: 22px; }
.article table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 16px 0; }
.article th, .article td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { color: var(--muted); font-weight: 600; }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .screen-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: minmax(0, 420px); }
  .donut-wrap { justify-content: center; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .site-nav .wrap { gap: 12px; height: 54px; }
  .story { min-height: 0; padding: 64px 0; }
  .hero { min-height: 86svh; }
  .screen { padding: 20px 18px; }
  .marketing-consent { align-items: stretch; flex-direction: column; }
  .marketing-consent-text { white-space: normal; overflow: visible; text-overflow: clip; }
  .marketing-consent-actions { width: 100%; }
  .marketing-consent .btn { flex: 1; }

  /* donut: stack chart over legend instead of a too-wide row */
  .donut-wrap { flex-direction: column; align-items: center; gap: 20px; }
  .screen-grid > .panel { min-width: 0; }

  /* sync rows: let the label column shrink/wrap, keep the state top-right */
  .sync-row { align-items: flex-start; gap: 12px; padding: 14px 15px; }
  .sync-row > span:nth-child(2) { flex: 1; min-width: 0; }
  .sync-logo { width: 38px; height: 38px; border-radius: 11px; }
  .sync-state { font-size: 12.5px; }

  /* footer: brand full-width, Product+Legal side-by-side, Contact full-width below */
  .footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .footer-col:first-child { grid-column: 1 / -1; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .footer-col:last-child { grid-column: 1 / -1; }
  .site-footer { padding: 36px 0 32px; }
}

/* ---------- reduced motion ----------
   Remove movement (drift, float, slide, scale) but keep the gentle fades
   and chart draw-ins — they're not vestibular triggers, and killing them
   makes the page feel broken. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i, .aurora::after, .screen.floaty { animation: none !important; }
  .chart-tip { opacity: 0; transform: translate(-50%, -50%); }
  .in .chart-tip { animation: fade-in .4s ease 2.55s forwards !important; }
  .reveal { transform: none; filter: none; transition: opacity .8s ease; }
  .sync-row { transform: none; transition: opacity .8s ease; }
  .donut-legend div { transform: none; }
  /* growth → projection story: keep the clip-wipe build (a draw-in), but make
     the copy swap a plain crossfade — no vertical travel — and drop the tip's
     breathing pulse. (Reduced motion always uses the timed fallback, not pin.) */
  .gp-act2, .gp-stack .gp-a2 { transform: none; }
  .gp.in2 .gp-act1, .gp.in2 .gp-act2,
  .gp.in2 .gp-stack .gp-a1, .gp.in2 .gp-stack .gp-a2 { transform: none; }
  .gp.in2 .gp-tip { animation: none; }
}
