/* ==========================================================================
   Frobly landing — design system
   --------------------------------------------------------------------------
   Tokens mirror the Flutter app's FroblyColors (frontend/lib/utils/theme.dart)
   so the marketing site and the product read as one brand: "dark fintech calm".
   No web fonts, no frameworks — a system font stack and hand-written CSS keep
   the bundle tiny and the first paint instant.
   ========================================================================== */

:root {
  /* Base surfaces (FroblyColors) */
  --bg: #0b1117;
  --surface: #111a23;
  --surface-high: #17212b;
  --border: #263241;

  /* Text */
  --text-primary: #f4f7fa;
  --text-secondary: #9aa8b6;
  /* Slightly lighter than the app's #6f7d8c so micro-labels clear WCAG AA (4.5:1)
     even on the lighter card/titlebar surfaces, not just the page background. */
  --text-muted: #8593a3;

  /* Primary accent (teal) */
  --primary: #14b8a6;
  --primary-hover: #2dd4bf;
  --primary-dark: #0f766e;
  --on-primary: #031b1a;
  --on-primary-gradient: #ccfbf1;

  /* Semantic */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #38bdf8;

  /* Effects */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.02), 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px rgba(20, 184, 166, 0.35), 0 24px 60px -24px rgba(20, 184, 166, 0.28);

  /* Layout */
  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);

  /* Glass */
  --glass: rgba(17, 26, 35, 0.72);
  --glass-border: rgba(255, 255, 255, 0.06);

  color-scheme: dark;
}

/* --- Reset / base --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px; /* offset for sticky header on anchor jumps */
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-primary);
  /* System font stack — zero network cost, no FOUT/CLS. Roboto kept so the
     site matches the Flutter app's typeface where it's installed (Android). */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient brand glow behind everything — subtle, fixed, GPU-cheap. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(620px 420px at 78% -6%, rgba(20, 184, 166, 0.16), transparent 70%),
    radial-gradient(560px 420px at 6% 4%, rgba(56, 189, 248, 0.10), transparent 70%),
    radial-gradient(700px 600px at 50% 110%, rgba(15, 118, 110, 0.12), transparent 70%);
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Visible, consistent keyboard focus everywhere. */
:focus-visible {
  outline: 2px solid var(--primary-hover);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

/* --- Layout helpers ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-hover);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}
.section-head.center .eyebrow {
  justify-content: center;
}

.h2 {
  font-size: clamp(1.7rem, 4vw, 2.55rem);
}

.lead {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.6;
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: var(--on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  box-shadow: 0 10px 30px -12px rgba(20, 184, 166, 0.7);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 14px 34px -10px rgba(20, 184, 166, 0.8);
}
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text-primary);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(20, 184, 166, 0.08);
}
.btn-sm {
  padding: 10px 16px;
  font-size: 0.9rem;
}
.btn-lg {
  padding: 16px 26px;
  font-size: 1.02rem;
}
.btn .icon {
  width: 18px;
  height: 18px;
}
.btn-block {
  width: 100%;
}

/* --- Header / nav --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 23, 0.7);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(11, 17, 23, 0.86);
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.brand:hover {
  text-decoration: none;
}
.brand .logo {
  width: 30px;
  height: 30px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}
.nav-toggle .icon-close {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 8vw, 88px);
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
/* Grid/flex items default to min-width:auto and refuse to shrink below their
   content's min size — which on narrow screens forces the column (and the page)
   wider than the viewport. Let these tracks shrink. */
.hero-grid > *,
.preview-grid > * {
  min-width: 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(23, 33, 43, 0.6);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.65rem);
  line-height: 1.04;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--primary-hover), var(--info));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 22px;
  max-width: 540px;
  color: var(--text-secondary);
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
}
.trust-item svg {
  width: 17px;
  height: 17px;
  color: var(--primary);
  flex: none;
}

/* --- Product mock (shared card system) ------------------------------------ */
.mock {
  position: relative;
  max-width: 100%;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(23, 33, 43, 0.9), rgba(17, 26, 35, 0.92));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  padding: 18px;
  backdrop-filter: blur(6px);
}
.hero-mock {
  transform: perspective(1600px) rotateY(-7deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.hero-mock:hover {
  transform: perspective(1600px) rotateY(-3deg) rotateX(1deg);
}
.mock-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(20, 184, 166, 0.5), transparent 45%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 14px;
}
.mock-titlebar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.mock-titlebar .label {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mock-screen {
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 16px;
}
.mock-app-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mock-app-subtitle {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

/* Period toggle */
.seg {
  display: inline-flex;
  margin-top: 14px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  gap: 2px;
}
.seg span {
  padding: 5px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 7px;
  color: var(--text-secondary);
}
.seg span.on {
  background: rgba(20, 184, 166, 0.18);
  color: var(--primary-hover);
}

/* Spend hero card (mirrors _HeroSpendCard) */
.spend-card {
  margin-top: 12px;
  border-radius: var(--radius-xl);
  padding: 20px;
  background: linear-gradient(135deg, var(--primary-dark), #0c3f3a);
  border: 1px solid rgba(20, 184, 166, 0.35);
  box-shadow: 0 18px 40px -24px rgba(20, 184, 166, 0.5);
}
.spend-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.spend-top .k {
  color: var(--on-primary-gradient);
  font-size: 0.78rem;
  font-weight: 600;
}
.spend-pill {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 7px;
}
.spend-value {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(1.9rem, 4.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.spend-note {
  margin-top: 2px;
  color: var(--on-primary-gradient);
  font-size: 0.78rem;
  font-weight: 500;
}

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.stat-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.stat-ico svg {
  width: 18px;
  height: 18px;
}
.stat .k {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
}
.stat .v {
  margin-top: 3px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat .s {
  color: var(--text-muted);
  font-size: 0.72rem;
  margin-top: 1px;
}

/* Reminder chips */
.reminder-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--surface-high);
  border: 1px solid var(--border);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.chip svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.chip.warn {
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
}
.chip.teal {
  color: var(--primary-hover);
  border-color: rgba(20, 184, 166, 0.35);
  background: rgba(20, 184, 166, 0.1);
}

/* Subscription tiles (mirrors SubscriptionTile) */
.sub-list {
  margin-top: 14px;
  display: grid;
  gap: 9px;
}
.sub-list .list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.sub-list .list-head .lh {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}
.sub-list .list-head .see {
  color: var(--primary-hover);
  font-size: 0.74rem;
  font-weight: 700;
}
.sub-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.sub-avatar {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  flex: none;
}
.sub-main {
  min-width: 0;
  flex: 1;
}
.sub-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 700;
}
.sub-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--warning);
  background: rgba(245, 158, 11, 0.18);
}
.sub-meta {
  margin-top: 2px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sub-meta.warn {
  color: var(--warning);
}
.sub-price {
  text-align: right;
  flex: none;
}
.sub-price .p {
  font-size: 0.88rem;
  font-weight: 700;
}
.sub-price .c {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* --- Generic cards / grids ------------------------------------------------ */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: var(--shadow-card);
}
.card-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card-ico svg {
  width: 23px;
  height: 23px;
}
.card h3 {
  font-size: 1.12rem;
  font-weight: 700;
}
.card p {
  margin-top: 9px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.grid {
  display: grid;
  gap: 18px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.features-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Tinted icon utilities */
.tint-teal { background: rgba(20, 184, 166, 0.16); color: var(--primary-hover); }
.tint-amber { background: rgba(245, 158, 11, 0.16); color: var(--warning); }
.tint-blue { background: rgba(56, 189, 248, 0.16); color: var(--info); }
.tint-green { background: rgba(34, 197, 94, 0.16); color: var(--success); }
.tint-pink { background: rgba(232, 90, 173, 0.16); color: #e85aad; }
.tint-violet { background: rgba(138, 161, 255, 0.16); color: #8aa1ff; }
.tint-red { background: rgba(239, 68, 68, 0.16); color: var(--danger); }

/* --- How it works (stepped timeline) -------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}
.step-num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary-hover);
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(20, 184, 166, 0.3);
  margin-bottom: 18px;
}
.step h3 {
  font-size: 1.1rem;
}
.step p {
  margin-top: 9px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.step-connector {
  display: none;
}

/* --- Problem section ------------------------------------------------------ */
.problem-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* --- App preview band ----------------------------------------------------- */
.preview {
  position: relative;
}
.preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.preview-points {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.preview-point {
  display: flex;
  gap: 14px;
}
.preview-point .pp-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
}
.preview-point .pp-ico svg {
  width: 19px;
  height: 19px;
}
.preview-point h3 {
  font-size: 1rem;
  font-weight: 700;
}
.preview-point p {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.mock-note {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.mock-note svg {
  width: 14px;
  height: 14px;
  flex: none;
}

/* --- Pricing -------------------------------------------------------------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 36px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.billing-toggle button {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.billing-toggle button[aria-pressed="true"] {
  background: rgba(20, 184, 166, 0.16);
  color: var(--primary-hover);
}
.billing-toggle .save {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--success);
  background: rgba(34, 197, 94, 0.14);
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 6px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 860px;
  margin-inline: auto;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
}
.plan.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.plan-name {
  font-size: 1.15rem;
  font-weight: 800;
}
.plan-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary-hover);
  background: rgba(20, 184, 166, 0.16);
  padding: 4px 9px;
  border-radius: 7px;
}
.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.plan-price .amount {
  font-size: clamp(2.1rem, 5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-price .per {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.plan-desc {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  min-height: 2.8em;
}
.plan-features {
  margin-top: 20px;
  display: grid;
  gap: 11px;
  flex: 1;
}
.plan-features li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.plan-features svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--primary);
}
.plan .btn {
  margin-top: 24px;
}
.price-foot {
  max-width: 860px;
  margin: 26px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.stripe-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
}
.stripe-badge svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* --- Privacy / trust band ------------------------------------------------- */
.trust-band {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(17, 26, 35, 0.9), rgba(11, 17, 23, 0.6));
  padding: clamp(32px, 5vw, 52px);
  overflow: hidden;
}
.trust-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 320px at 88% 10%, rgba(20, 184, 166, 0.12), transparent 70%);
  pointer-events: none;
}
.trust-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
  margin-top: 28px;
}
.trust-list li {
  display: flex;
  gap: 13px;
}
.trust-list .ti {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  background: rgba(20, 184, 166, 0.14);
  color: var(--primary-hover);
}
.trust-list .ti svg {
  width: 19px;
  height: 19px;
}
.trust-list h3 {
  font-size: 0.98rem;
  font-weight: 700;
}
.trust-list p {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- FAQ ------------------------------------------------------------------ */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}
.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq[open] {
  border-color: rgba(20, 184, 166, 0.4);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  color: var(--text-primary);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .plus {
  width: 22px;
  height: 22px;
  flex: none;
  position: relative;
  transition: transform 0.2s ease;
  color: var(--primary-hover);
}
.faq[open] summary .plus {
  transform: rotate(45deg);
}
.faq-body {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Final CTA ------------------------------------------------------------ */
.final-cta {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  border: 1px solid rgba(20, 184, 166, 0.3);
  background: linear-gradient(150deg, rgba(15, 118, 110, 0.32), rgba(11, 17, 23, 0.4));
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 50% -10%, rgba(20, 184, 166, 0.22), transparent 70%);
  pointer-events: none;
}
.final-cta h2 {
  font-size: clamp(1.8rem, 4.4vw, 2.7rem);
  position: relative;
}
.final-cta p {
  position: relative;
  margin: 16px auto 0;
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 1.08rem;
}
.final-cta .hero-cta {
  position: relative;
  justify-content: center;
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(44px, 6vw, 64px) 36px;
  margin-top: var(--section-y);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand {
  margin-bottom: 14px;
}
.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 320px;
}
.footer-col h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.92rem;
  padding: 6px 0;
}
.footer-col a:hover {
  color: var(--text-primary);
  text-decoration: none;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.84rem;
}
.footer-bottom .legal-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* --- Legal / content pages ------------------------------------------------ */
.doc {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(48px, 8vw, 96px);
}
.doc h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}
.doc .updated {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.doc h2 {
  font-size: 1.3rem;
  margin-top: 40px;
}
.doc h3 {
  font-size: 1.05rem;
  margin-top: 26px;
}
.doc p,
.doc li {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 14px;
}
.doc ul {
  list-style: disc;
  padding-left: 22px;
}
.doc ul li {
  margin-top: 8px;
}
.doc a {
  color: var(--primary-hover);
}
.todo-flag {
  display: block;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px dashed rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.08);
  color: var(--warning);
  font-size: 0.88rem;
}

/* --- Scroll reveal -------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-mock {
    transform: none;
    max-width: 460px;
    margin-inline: auto;
  }
  .preview-grid {
    grid-template-columns: 1fr;
  }
  .preview-grid .mock {
    max-width: 460px;
    margin-inline: auto;
    order: 2;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .site-header.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 14px var(--gutter) 20px;
    background: rgba(11, 17, 23, 0.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
  }
  .site-header.menu-open .nav-actions {
    display: flex;
    position: absolute;
    top: calc(68px + 168px);
    left: 0;
    right: 0;
    padding: 0 var(--gutter) 20px;
    background: rgba(11, 17, 23, 0.98);
    border-bottom: 1px solid var(--border);
  }
  .site-header.menu-open .nav-actions .btn {
    width: 100%;
  }
  .grid-3,
  .features-grid,
  .problem-grid,
  .steps,
  .trust-list {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .hero-cta .btn {
    width: 100%;
  }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-mock {
    transform: none;
  }
}
