/* VerificaBol landing page — color tokens ported verbatim from
   constants/theme.ts in the VerificaBol app repo. Keep in sync manually
   if the app palette changes (no shared codegen, same caveat as the
   iOS widget's hand-ported colors). */
:root {
  --color-primary: #C8152B;
  --color-primary-dark: #9E0F21;
  --color-secondary: #F4C430;
  --color-valid: #007934;
  --color-valid-light: #E6F4EC;
  --color-invalid: #C8152B;
  --color-background: #F7F7F7;
  --color-card: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #6B6B6B;
  --color-border: #E0E0E0;

  --radius-card: 16px;
  --radius-button: 12px;
  --shadow-card: 0 1px 2px rgba(20, 20, 20, 0.04), 0 12px 32px -10px rgba(20, 20, 20, 0.14);
  --shadow-card-hover: 0 2px 4px rgba(20, 20, 20, 0.06), 0 20px 40px -12px rgba(20, 20, 20, 0.2);
  --max-width: 1120px;
}

/* Scoped to :not([data-theme]) so a manual Light/Dark choice (below) always
   wins over the OS setting — without this, a manually-light user on a
   dark-mode OS would stay stuck in dark (same specificity, later in cascade). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-primary: #E8314A;
    --color-primary-dark: #C8152B;
    --color-secondary: #F4C430;
    --color-valid: #2ECC71;
    --color-valid-light: #0D2B1A;
    --color-invalid: #E8314A;
    --color-background: #111214;
    --color-card: #1E2024;
    --color-text: #F0F0F0;
    --color-text-secondary: #9BA1A6;
    --color-border: #2C2F33;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -12px rgba(0, 0, 0, 0.55);
    --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.35), 0 24px 48px -12px rgba(0, 0, 0, 0.65);
  }
}

/* Manual "Dark" choice — same values as the media-query block above, so Dark
   applies regardless of OS setting. No manual "Light" block is needed: once
   the media query above is scoped to :not([data-theme]), picking Light while
   the OS is dark simply stops that block from matching, leaving the default
   (light) :root values in effect. */
:root[data-theme="dark"] {
  --color-primary: #E8314A;
  --color-primary-dark: #C8152B;
  --color-secondary: #F4C430;
  --color-valid: #2ECC71;
  --color-valid-light: #0D2B1A;
  --color-invalid: #E8314A;
  --color-background: #111214;
  --color-card: #1E2024;
  --color-text: #F0F0F0;
  --color-text-secondary: #9BA1A6;
  --color-border: #2C2F33;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -12px rgba(0, 0, 0, 0.55);
  --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.35), 0 24px 48px -12px rgba(0, 0, 0, 0.65);
}

/* Screenshots section reads as too flat/washed-out in dark mode against the
   near-black page background — lift it slightly (reusing --color-card,
   already a lighter dark-gray token) so the device-frame mockups stand out. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) #screenshots { background: var(--color-card); }
}
html[data-theme="dark"] #screenshots { background: var(--color-card); }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--color-card) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  color: var(--color-text);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.lang-link {
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  background: var(--color-background);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 7px 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lang-link:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-1px); }

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

#theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--color-background);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
}

#theme-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }

.theme-icon { display: none; width: 16px; height: 16px; }

/* Icon visibility is driven by data-theme-pref (always present), separate
   from data-theme (only present for light/dark) — so the icon reflects the
   user's *choice* (including "system") rather than the resolved color scheme. */
html[data-theme-pref="system"] .theme-icon--system,
html[data-theme-pref="light"] .theme-icon--light,
html[data-theme-pref="dark"] .theme-icon--dark { display: block; }

/* ---------- Hero ---------- */
/* position/overflow/isolation for the ambient glow live in the shared
   ".hero, #screenshots, ..." rule further down. */
.hero {
  padding: 88px 0 88px;
  text-align: center;
}

/* Soft fade into the next section instead of a hard color-stop edge. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--color-card));
  opacity: 0.4;
  pointer-events: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.hero__content {
  max-width: 560px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  color: var(--color-primary);
  border: 1px solid color-mix(in srgb, var(--color-primary) 24%, transparent);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero__icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  box-shadow: var(--shadow-card), 0 0 70px 14px color-mix(in srgb, var(--color-primary) 20%, transparent);
  margin: 0 auto 20px;
}

.hero__title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__tagline {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto 28px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.hero__note {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* Hero visual — a real screenshot in a device frame, tilted for a bit of
   dynamism, plus two small floating accent badges tied to the app's two
   core features (offline check / rate gap). Reuses .device-frame as-is —
   .device-frame itself is `width: 100%`, so .hero__visual (its flex-item
   parent) needs an explicit width here or the frame collapses to 0 (a
   shrink-to-fit flex item has no width for a 100%-width child to resolve
   against). */
.hero__visual {
  position: relative;
  flex-shrink: 0;
  width: 200px;
}

.hero__phone {
  transform: rotate(-6deg);
}

.hero__accent {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card-hover);
  font-weight: 800;
  font-size: 17px;
  animation: floatY 4.5s ease-in-out infinite;
}

.hero__accent--1 {
  top: -14px;
  left: -18px;
  color: var(--color-valid);
  animation-delay: 0s;
}

.hero__accent--2 {
  bottom: -6px;
  right: -20px;
  color: var(--color-primary);
  animation-delay: 1.4s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Two-column hero once there's room for text + visual side by side without
   cramping either — below this, everything stays centered/stacked. */
@media (min-width: 880px) {
  .hero__inner {
    flex-direction: row;
    justify-content: center;
    gap: 64px;
    text-align: left;
  }

  .hero__icon { margin: 0 0 20px; }
  .hero__tagline { margin: 0 0 28px; }
  .hero__badges { justify-content: flex-start; }
  .hero__visual { width: 220px; }
}

/* ---------- Store badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  border-radius: var(--radius-button);
  padding: 9px 18px;
  text-decoration: none;
  line-height: 1.15;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-card);
}

.badge:hover { transform: translateY(-2px); }

.badge svg { width: 26px; height: 26px; flex-shrink: 0; }

.badge__text-lines { display: flex; flex-direction: column; text-align: left; }
.badge__eyebrow { font-size: 10px; opacity: 0.85; }
.badge__name { font-size: 17px; font-weight: 600; }

/* ---------- Sections generic ---------- */
section { padding: 64px 0; }

/* Ambient glow — shared across .hero/#features instead of each having a
   flat background. Same two-stop radial recipe as the hero; #features
   repositions the two circles via custom properties so it doesn't read as
   the same graphic pasted twice. Low-opacity via color-mix so it reads as
   atmosphere, not decoration; scales fine with the dark-mode token swap
   since it's built from the same --color-primary/--color-secondary vars.

   #screenshots and #privacy are deliberately NOT in this list — glow was
   tried on both and read worse than a plain background against their
   actual content (device screenshots/widget mockups, and the privacy/
   support cards). Left plain by design. */
.hero, #features {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --glow-1-pos: 15% 15%;
  --glow-2-pos: 88% 8%;
}

#features { --glow-1-pos: 10% 85%; --glow-2-pos: 92% 15%; }

.hero::before, #features::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(560px circle at var(--glow-1-pos), color-mix(in srgb, var(--color-primary) 14%, transparent), transparent 60%),
    radial-gradient(480px circle at var(--glow-2-pos), color-mix(in srgb, var(--color-secondary) 18%, transparent), transparent 60%);
}

#screenshots { padding: 96px 0; }
#features {
  padding: 96px 0;
  background: color-mix(in srgb, var(--color-card) 45%, var(--color-background));
}
#privacy { padding: 72px 0 96px; }

.section-title {
  text-align: center;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 30px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ---------- Screenshots ---------- */
.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.platform-tab {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  background: var(--color-background);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
}

.platform-tab[aria-pressed="true"] {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  align-items: start;
}

.screenshots-grid[hidden] { display: none; }

.screenshot-item { text-align: center; }

.screenshot-caption {
  margin-top: 14px;
  font-weight: 600;
  font-size: 14px;
}

.device-frame {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  background: #0b0b0d;
  border-radius: 34px;
  padding: 8px;
  box-shadow: var(--shadow-card);
}

.device-frame__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--color-background);
  border-radius: 24px;
  overflow: hidden;
}

.device-frame__screen::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 18px;
  background: #0b0b0d;
  border-radius: 10px;
  z-index: 2;
}

/* Real screenshots already include the device's own status bar/notch —
   suppress the decorative fake notch so it doesn't double up on top of it. */
.device-frame--photo .device-frame__screen::before { display: none; }

.device-frame__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The History screenshot has more empty app-background below its last card
   than Verify/Exchange have below their tab bar (measured: ~7% vs ~4.4% of
   image height) — crop that small excess so the bottom framing matches.
   scaleY only (never scaleX/uniform scale) — real UI elements like the
   "Back" button sit only ~4.6% in from the edge, already close to our own
   bezel inset, so any horizontal crop risks clipping them. Vertical-only
   scaling crops purely from the bottom, with zero effect on the sides. */
.device-frame--tight .device-frame__screen img {
  transform: scaleY(1.03);
  transform-origin: top;
}

/* Light/dark screenshot variants — same attribute-based pattern as the
   data-theme color tokens, so the screenshot shown always matches the
   resolved color scheme (explicit choice or OS default). */
[data-shot-dark] { display: none; }
html[data-theme="dark"] [data-shot-light] { display: none; }
html[data-theme="dark"] [data-shot-dark] { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) [data-shot-light] { display: none; }
  html:not([data-theme]) [data-shot-dark] { display: block; }
}

/* Widget mockup — lead visual, hand-built (not a placeholder). Colors and
   sample figures mirror targets/widget/widgets.swift's #Preview data and
   widgets/ExchangeRateWidget.tsx's layout exactly. No ambient glow here —
   see the note on the shared glow rule above: #screenshots stays plain. */
.widget-showcase {
  margin-top: 56px;
}

.widget-showcase__title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
}

.widget-showcase__frames {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.home-mock {
  width: 220px;
  padding: 22px 16px;
  border-radius: 30px;
  background: linear-gradient(160deg, #cfd3da, #9aa1ac);
  box-shadow: var(--shadow-card);
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .home-mock { background: linear-gradient(160deg, #2a2c31, #131417); }
}

:root[data-theme="dark"] .home-mock { background: linear-gradient(160deg, #2a2c31, #131417); }

.home-mock__caption {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.home-mock__apps {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.home-mock__apps span {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.35);
}

.widget-mock {
  background: var(--color-card);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  text-align: left;
}

.widget-mock--ios { aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; }
.widget-mock--android { aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; }

.widget-mock__header {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
}

.widget-mock__label {
  font-size: 10px;
  color: var(--color-text-secondary);
}

.widget-mock__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
}

.widget-mock__divider {
  height: 1px;
  background: var(--color-border);
  margin: 8px 0;
}

.widget-mock__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.widget-mock--android .widget-mock__row {
  flex-direction: column;
  gap: 6px;
}

.widget-mock__sub {
  display: flex;
  flex-direction: column;
}

.widget-mock__sub-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.widget-mock__gap .widget-mock__sub-value { color: var(--color-valid); }

.widget-mock__footer {
  font-size: 9px;
  color: var(--color-text-secondary);
  margin-top: 6px;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: color-mix(in srgb, var(--color-primary) 25%, var(--color-border));
}

.feature-card__glyph {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(155deg, var(--color-valid-light), color-mix(in srgb, var(--color-valid) 24%, var(--color-valid-light)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-valid) 18%, transparent);
  color: var(--color-valid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}

.feature-card h3 { font-size: 16px; font-weight: 700; }
.feature-card p { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 0; }

/* ---------- Privacy & Support ---------- */
.privacy-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.privacy-support-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.privacy-support-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: color-mix(in srgb, var(--color-primary) 25%, var(--color-border));
}

.privacy-support-item h3 {
  font-size: 17px;
  font-weight: 700;
}

.privacy-support-item p {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  box-shadow: var(--shadow-card);
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.privacy-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.privacy-link svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 48px;
  text-align: center;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 14px;
}

.site-footer a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes checkDraw {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

/* Scroll-reveal, gated behind html.js (set synchronously by the inline head
   script, before first paint). Without html.js, .reveal elements have no
   opacity rule at all — a no-JS visitor sees a fully static, fully-visible
   page. This matters because the legal-notice feature card and #privacy
   carry legal text that must never depend on JS executing to become visible. */
html.js .reveal { opacity: 0; }
html.js .reveal.is-visible { animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
html.js .reveal.reveal--fade.is-visible { animation: fadeIn 0.7s ease-out forwards; }

.feature-grid .feature-card:nth-child(1).is-visible { animation-delay: 0ms; }
.feature-grid .feature-card:nth-child(2).is-visible { animation-delay: 80ms; }
.feature-grid .feature-card:nth-child(3).is-visible { animation-delay: 160ms; }
.feature-grid .feature-card:nth-child(4).is-visible { animation-delay: 240ms; }
.feature-grid .feature-card:nth-child(5).is-visible { animation-delay: 320ms; }
.feature-grid .feature-card:nth-child(6).is-visible { animation-delay: 400ms; }

.screenshots-grid .screenshot-item:nth-child(1).is-visible { animation-delay: 0ms; }
.screenshots-grid .screenshot-item:nth-child(2).is-visible { animation-delay: 100ms; }
.screenshots-grid .screenshot-item:nth-child(3).is-visible { animation-delay: 200ms; }

.widget-showcase__frames .home-mock:nth-child(1).is-visible { animation-delay: 0ms; }
.widget-showcase__frames .home-mock:nth-child(2).is-visible { animation-delay: 100ms; }

/* Checkmark draw-in on the first feature card's glyph — undrawn (dashoffset
   24) only while JS is present and the card hasn't revealed yet; static fully-
   drawn (dashoffset 0) with no JS, so it never depends on script execution. */
.feature-card__glyph--check svg { width: 22px; height: 22px; stroke-dashoffset: 0; }
html.js .feature-card__glyph--check svg { stroke-dashoffset: 24; }
html.js .reveal.is-visible .feature-card__glyph--check svg {
  animation: checkDraw 0.8s ease-out 0.3s forwards;
}

/* Hero on-load chain — pure CSS, self-triggers on load (above the fold, no
   scroll-trigger relevant), not gated behind html.js: with "both" fill-mode
   these degrade to a normal static hero even if this stylesheet somehow
   loaded without the animation ever completing. */
.hero__icon { animation: fadeIn 0.6s ease-out both; }
.hero__eyebrow { animation: fadeInUp 0.6s ease-out 0.1s both; }
.hero__title { animation: fadeInUp 0.6s ease-out 0.2s both; }
.hero__tagline { animation: fadeInUp 0.6s ease-out 0.35s both; }
.hero__badges { animation: fadeInUp 0.6s ease-out 0.5s both; }
.hero__note { animation: fadeInUp 0.6s ease-out 0.65s both; }
.hero__visual { animation: fadeIn 0.7s ease-out 0.3s both; }

/* Must force the *end state*, not just disable — otherwise reduced-motion
   users get stuck at opacity:0 (the .reveal base rule) instead of seeing
   content. */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible,
  .hero__icon, .hero__eyebrow, .hero__title, .hero__tagline, .hero__badges,
  .hero__note, .hero__visual {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__accent {
    animation: none !important;
  }
  .feature-card__glyph--check svg {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  section { padding: 44px 0; }
  .hero { padding: 44px 0 32px; }
  #screenshots { padding: 56px 0; }
  #features { padding: 56px 0; }
  #privacy { padding: 44px 0 56px; }
  .site-footer { padding: 40px 0 32px; }

  .section-subtitle { margin-bottom: 32px; }
  .feature-grid { gap: 16px; }
  .widget-showcase__frames { gap: 24px; }
  .screenshots-grid { gap: 20px; }

  .hero__inner { gap: 36px; }
  .hero__visual { width: 160px; }
  .hero__accent { width: 36px; height: 36px; font-size: 15px; }
  .hero__accent--1 { top: -10px; left: -12px; }
  .hero__accent--2 { bottom: -4px; right: -14px; }
}
