/* ============================================================
   Filvy — shared stylesheet
   Dark-first, Revolut-inspired. System fonts only. No deps.
   ============================================================ */

:root {
  --bg:              #191c1f;
  --surface:         #20252a;
  --surface-pressed: #2a3036;
  --border:          #2a3036;
  --text:            #ffffff;
  --text-2:          #b1b8be;
  --text-3:          #8d969e;
  --accent:          #494fdf;
  --accent-pressed:  #3a40b0;
  --success:         #00a87e;
  --ghost-bg:        rgba(244, 244, 244, 0.08);
  --ghost-border:    rgba(244, 244, 244, 0.16);

  --r-pill: 9999px;
  --r-card: 20px;
  --r-chip: 12px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 14px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 48px;
  --s-9: 80px;

  --maxw: 720px;

  --ff: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html, body { overflow-x: clip; }

body {
  min-height: 100vh;
  min-height: 100dvh;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
a:hover { color: #6a6fe8; border-bottom-color: currentColor; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

/* ---------- Layout shell ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

/* ---------- Landing (index) ---------- */

.landing {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.landing-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--s-6);
  width: 100%;
}

/* Top nav */
.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding-block: var(--s-5);
}
.site-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  border-bottom: none;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.site-nav-brand:hover { color: var(--text); border-bottom: none; }
.site-nav-brand .brand-mark { width: 28px; height: 28px; border-radius: 7px; }
.site-nav-links {
  display: flex;
  gap: var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav-links a {
  color: var(--text-2);
  font-size: 14px;
  border-bottom: none;
}
.site-nav-links a:hover { color: var(--text); }

.site-nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
}
.site-nav-toggle:hover { background: var(--surface); }
.site-nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-nav-icon { width: 20px; height: 20px; display: block; }
.site-nav-icon-close { display: none; }
.site-nav-toggle[aria-expanded="true"] .site-nav-icon-open { display: none; }
.site-nav-toggle[aria-expanded="true"] .site-nav-icon-close { display: block; }

@media (max-width: 720px) {
  .site-nav { gap: var(--s-3); }
  .site-nav-links { gap: var(--s-4); }
  .site-nav-links a { font-size: 13px; }
}

@media (max-width: 560px) {
  .site-nav-toggle { display: inline-flex; }
  .site-nav-links {
    position: absolute;
    top: calc(100% - var(--s-2));
    right: var(--s-6);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: var(--s-2);
    min-width: 180px;
    z-index: 100;
    display: none;
  }
  .site-nav-links[data-open="true"] { display: flex; }
  .site-nav-links li { display: block; }
  .site-nav-links a {
    display: block;
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 8px;
  }
  .site-nav-links a:hover { background: var(--surface-pressed); }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-9);
  align-items: center;
  padding: var(--s-9) 0 var(--s-8);
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--s-7);
    padding: var(--s-8) 0 var(--s-7);
    text-align: center;
  }
  .hero-copy .display,
  .hero-copy .lede,
  .hero-copy .hero-note { margin-left: auto; margin-right: auto; }
  .hero-copy .cta-row { justify-content: center; }
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--s-4);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}

.display {
  font-size: clamp(40px, 6.4vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 var(--s-5) 0;
  max-width: 14ch;
  text-wrap: balance;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 var(--s-7) 0;
  max-width: 48ch;
}
.lede strong { color: var(--text); font-weight: 500; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

/* App Store badge (real link, SVG asset) */
.appstore-badge {
  display: inline-flex;
  border-bottom: none;
  border-radius: 9px;
  transition: transform 160ms ease, opacity 160ms ease;
}
.appstore-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
  border-bottom: none;
}
.appstore-badge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.appstore-badge img {
  display: block;
  height: 60px;
  width: auto;
}

/* Hero microcopy under the App Store CTA */
.hero-microcopy {
  margin: var(--s-3) 0 0 0;
  color: var(--text-3);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.hero-note {
  margin-top: var(--s-5);
  color: var(--text-3);
  font-size: 13px;
  max-width: 48ch;
  line-height: 1.5;
}

/* Hero visual — bare screenshot, same treatment as storyboard shots */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-shot {
  margin: 0;
  width: clamp(260px, 32vw, 360px);
}
.hero-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  background: #0c0e10;
}
@media (max-width: 880px) {
  .hero-shot { width: min(75vw, 320px); }
}

/* Secondary CTA — text-style with arrow */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  border-bottom: none;
  transition: color 120ms ease, transform 160ms ease;
}
.btn-text:hover {
  color: var(--text);
  border-bottom: none;
  transform: translateX(2px);
}
.btn-text .btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 200ms ease;
}
.btn-text:hover .btn-arrow {
  transform: translateX(3px);
}

/* Section scaffolding */
.section {
  padding: var(--s-9) 0;
  border-top: 1px solid var(--border);
}
.section-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-3);
}
.section-title {
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 var(--s-4) 0;
  text-wrap: balance;
  max-width: 22ch;
}
.section-lede {
  font-size: 17px;
  color: var(--text-2);
  max-width: 60ch;
  margin: 0 0 var(--s-7) 0;
}

/* 3-column grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; gap: var(--s-4); }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
@media (max-width: 880px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* Feature / pillar card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--s-6);
}
.card h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 var(--s-2) 0;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--text-2);
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-pressed);
  margin-bottom: var(--s-4);
  color: var(--text);
}
.card-icon svg { width: 20px; height: 20px; }
.card-icon { font-size: 22px; line-height: 1; }

/* Numbered step */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: var(--s-4);
}

/* Privacy pills */
.pill-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 720px) {
  .pill-list { grid-template-columns: 1fr; }
}
.pill-list li {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
}
.pill-list > li > div > strong:first-child {
  display: block;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 2px;
}
.pill-list span {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}
.pill-list span strong {
  color: var(--text);
  font-weight: 600;
}
.pill-check {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--success);
  margin-top: 2px;
}

/* Use-cases chips */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.chip-grid .chip {
  padding: 8px 14px;
  font-size: 14px;
  letter-spacing: 0.01em;
}

/* Pricing */
.price-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6);
  position: relative;
}
.price-card.is-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.price-card-badge {
  position: absolute;
  top: -10px;
  left: var(--s-5);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}
.price-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.price-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.price-amount {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.price-amount .per {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 400;
  margin-left: 4px;
}
.price-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: rgba(73, 79, 223, 0.12);
  margin-left: var(--s-2);
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: 14px;
  color: var(--text-2);
}
.price-features li {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  line-height: 1.5;
}
.price-features li::before {
  content: "·";
  color: var(--text-3);
  margin-right: 2px;
}
.price-foot {
  color: var(--text-3);
  font-size: 13px;
  margin-top: var(--s-2);
}

/* FAQ using native details/summary (no JS) */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--s-5) var(--s-6);
  transition: border-color 120ms ease;
}
.faq details[open] { border-color: var(--text-3); }
.faq summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--text-3);
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  flex: 0 0 auto;
  transition: transform 120ms ease;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  color: var(--text-2);
  margin: var(--s-3) 0 0 0;
  font-size: 15px;
  line-height: 1.6;
  max-width: 70ch;
}
.faq details p + p { margin-top: var(--s-3); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--s-6) 0;
  color: var(--text-2);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  align-items: center;
  justify-content: space-between;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
}
.site-footer a {
  color: var(--text-2);
  border-bottom-color: transparent;
}
.site-footer a:hover { color: var(--text); }

/* ---------- Document pages (privacy / terms) ---------- */

.doc-header {
  border-bottom: 1px solid var(--border);
  padding: var(--s-5) 0;
  position: sticky;
  top: 0;
  background: rgba(25, 28, 31, 0.85);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  z-index: 10;
}
.doc-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom: none;
}
.brand:hover { color: var(--text); border-bottom: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; }

.lang-toggle {
  display: inline-flex;
  gap: var(--s-1);
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lang-toggle a {
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: 8px;
  border-bottom: none;
  font-weight: 500;
}
.lang-toggle a:hover {
  color: var(--text);
  background: var(--surface-pressed);
  border-bottom: none;
}

.doc {
  padding: var(--s-8) 0 var(--s-9);
}

.doc h1 {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 var(--s-4) 0;
  text-wrap: balance;
}
.doc h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: var(--s-8) 0 var(--s-4) 0;
  scroll-margin-top: 80px;
}
.doc h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin: var(--s-6) 0 var(--s-2) 0;
}
.doc p { margin: 0 0 var(--s-4) 0; color: var(--text); }
.doc ul { padding-left: 1.25em; margin: 0 0 var(--s-4) 0; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--text-3); }

.doc strong { font-weight: 500; color: var(--text); }

.meta {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: var(--s-6);
}
.meta span + span::before {
  content: "·";
  margin: 0 10px;
  color: var(--text-3);
}

/* Tables */
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-5) 0 var(--s-6);
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  overflow: hidden;
}
.doc thead th {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-pressed);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
  font-size: 12px;
  text-transform: uppercase;
}
.doc tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-2);
}
.doc tbody td:first-child {
  color: var(--text);
  white-space: nowrap;
}
.doc tbody tr:last-child td { border-bottom: none; }

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-chip);
}

/* Small "chip" for yes/no cells */
.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  letter-spacing: 0.03em;
  background: var(--ghost-bg);
  border: 1px solid var(--ghost-border);
  color: var(--text);
}
.chip-no {
  background: transparent;
  color: var(--text-3);
  border-color: var(--border);
}

code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", monospace;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--text);
}

/* Inline footnote under a CTA card (used on terms page). */
.footnote {
  color: var(--text-3);
  font-size: 14px;
  margin-top: var(--s-7);
}

/* Hero — long single-line title variant */
.display-hero {
  font-size: clamp(32px, 5.2vw, 52px);
  max-width: 22ch;
}
@media (max-width: 420px) {
  .display-hero {
    font-size: clamp(28px, 8.5vw, 36px);
    max-width: 18ch;
  }
}

/* Storyboard — Apple-style scrollytelling.
   Mobile: simple vertical stack, no animation.
   Desktop: 4× viewport-tall track with one sticky stage; the 4 phones
   overlay each other and crossfade based on scroll progress. */
.storyboard {
  padding: var(--s-9) 0 var(--s-7);
  border-top: 1px solid var(--border);
}
.storyboard-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-7);
  text-align: center;
}
.storyboard-track {
  position: relative;
}
.storyboard-stage {
  display: flex;
  flex-direction: column;
  gap: var(--s-7);
  align-items: center;
}
.story-shot {
  margin: 0;
  width: min(75vw, 360px);
}
.story-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  background: #0c0e10;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Desktop ≥1024px: sticky-pinned scrollytelling */
@media (min-width: 1024px) {
  .storyboard-track {
    /* 4 phones × ~110vh of scroll = each panel held for slightly more
       than a full viewport before the next takes over */
    height: 440vh;
    view-timeline-name: --story;
    view-timeline-axis: block;
  }
  .storyboard-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    place-items: center;
    gap: 0;
  }
  .story-shot {
    grid-column: 1;
    grid-row: 1;
    width: min(58vh, 360px);
  }
  /* Fallback when scroll-timeline unsupported: only first phone shown */
  .story-shot:not(:first-child) { opacity: 0; }

  @supports (animation-timeline: view()) {
    .story-shot {
      animation: story-shot-fade linear both;
      animation-timeline: --story;
      will-change: opacity, transform;
    }
    /* The subject (440vh) covers the scrollport (100vh) over 540vh of
       scroll. Sticky-pinned period sits roughly cover 18%–82%; split
       it into 4 overlapping ranges so adjacent phones crossfade. */
    .story-shot-1 { animation-range: cover 14% cover 34%; opacity: 0; }
    .story-shot-2 { animation-range: cover 30% cover 50%; }
    .story-shot-3 { animation-range: cover 46% cover 66%; }
    .story-shot-4 { animation-range: cover 62% cover 86%; }

    @keyframes story-shot-fade {
      0%   { opacity: 0; transform: translateY(40px) scale(0.94); }
      22%  { opacity: 1; transform: translateY(0)    scale(1); }
      78%  { opacity: 1; transform: translateY(0)    scale(1); }
      100% { opacity: 0; transform: translateY(-24px) scale(0.97); }
    }
  }
}

/* Reduced motion: drop sticky + animation, show all 4 in a static stack */
@media (prefers-reduced-motion: reduce) {
  .storyboard-track { height: auto; }
  .storyboard-stage {
    position: static;
    display: flex;
    flex-direction: column;
    gap: var(--s-7);
    height: auto;
  }
  .story-shot {
    grid-column: auto;
    grid-row: auto;
    opacity: 1;
    animation: none !important;
    transform: none;
    width: min(75vw, 360px);
  }
}

/* Pricing toggle (Monthly / Yearly) */
.pricing-toggle {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 var(--s-6) 0;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.pricing-toggle-btn {
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  transition: background 160ms ease, color 160ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pricing-toggle-btn:hover { color: var(--text); }
.pricing-toggle-btn.is-active {
  background: var(--accent);
  color: #fff;
}
.pricing-toggle-save {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.pricing-toggle-btn:not(.is-active) .pricing-toggle-save {
  background: rgba(0, 168, 126, 0.15);
  color: var(--success);
}

/* Pricing grid — billing-aware price display.
   Both monthly and yearly variants share a single grid cell so the
   inactive one occupies the same space; toggling only changes opacity
   and visibility, which keeps Cumulative Layout Shift at zero. */
.price-amount[data-price] {
  display: inline-grid;
}
.price-foot {
  display: grid;
}
.price-amount .price-monthly,
.price-amount .price-yearly,
.price-foot .foot-monthly,
.price-foot .foot-yearly {
  grid-area: 1 / 1;
  transition: opacity 200ms ease;
}
.pricing-grid[data-billing="yearly"] .price-amount .price-monthly,
.pricing-grid[data-billing="yearly"] .price-foot .foot-monthly,
.pricing-grid[data-billing="monthly"] .price-amount .price-yearly,
.pricing-grid[data-billing="monthly"] .price-foot .foot-yearly {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  html, body { font-size: 16px; }
  .wrap { padding: 0 var(--s-5); }
  .doc { padding: var(--s-7) 0 var(--s-8); }
  .doc table { font-size: 13px; }
  .doc thead th,
  .doc tbody td { padding: 10px; }
  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
  }
}

/* ---------- Print ---------- */
@media print {
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-pressed: #f4f4f4;
    --border: #d0d0d0;
    --text: #000000;
    --text-2: #333333;
    --text-3: #666666;
  }
  html, body {
    background: #fff !important;
    color: #000 !important;
  }
  body.landing::before { display: none !important; }
  a { color: #000 !important; border-bottom: none !important; }
  .doc-header, .site-footer, .lang-toggle { display: none !important; }
  .doc { padding: 0 !important; }
  .doc h1, .doc h2, .doc h3 { color: #000 !important; page-break-after: avoid; }
  .doc table {
    background: #fff !important;
    border: 1px solid #999 !important;
    page-break-inside: avoid;
  }
  .doc thead th {
    background: #eee !important;
    color: #000 !important;
    border-bottom: 1px solid #999 !important;
  }
  .doc tbody td {
    color: #000 !important;
    border-bottom: 1px solid #ccc !important;
  }
  .chip {
    background: transparent !important;
    border: 1px solid #999 !important;
    color: #000 !important;
  }
}
