/* GoFlyVPN — neo-brutalist design system.
   Class names follow the project scaffold so the behavioural QA keeps passing. */

:root {
  /* measured surfaces */
  --bg:            #FFFDF8;   /* app wrapper background */
  --surface:       #ffffff;   /* card surface */
  --surface-alt:   #FEFAF0;   /* subtle alternating band */
  --ink:           #1c1917;   /* borders + primary text (stone-900/800) */
  --ink-soft:      #57534e;   /* body copy (stone-600) */
  --ink-muted:     #78716c;   /* meta (stone-500) */
  --footer-bg:     #1c1917;
  --footer-ink:    #a8a29e;   /* stone-400 */

  /* accent + pastel icon tiles, measured per card */
  --accent:        #fde047;   /* yellow-300 */
  --accent-soft:   #fef9c3;   /* yellow-100 (expanded FAQ row) */
  --tile-blue:     #bae6fd;
  --tile-yellow:   #fde047;
  --tile-red:      #fecaca;
  --tile-green:    #bbf7d0;
  --tile-purple:   #e9d5ff;
  --tile-orange:   #fed7aa;
  --tile-sky:      #bae6fd;

  /* geometry */
  --bd:            2px solid var(--ink);
  --r-pill:        12px;
  --r-btn:         16px;
  --r-card:        24px;
  --shadow:        4px 4px 0 0 var(--ink);
  --shadow-sm:     2px 2px 0 0 var(--ink);
  --shadow-md:     6px 6px 0 0 var(--ink);
  --shadow-lg:     8px 8px 0 0 var(--ink);

  --wrap:          1280px;
  --wrap-narrow:   896px;
  --gutter:        40px;
  --gap:           24px;

  /* no webfont is loaded; typography uses the system stack */
  --font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
          "Segoe UI Symbol", "Noto Color Emoji";
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body ::selection { background: var(--accent); color: var(--ink); }

img { max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 900; letter-spacing: -0.01em; line-height: 1.25; }

p { margin: 0; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ============================ header ============================ */
/* Source: h-24 transparent, collapsing to h-20 + blur + bottom border on scroll. */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: 96px; display: flex; align-items: center;
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: height .3s, background .3s, border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  height: 80px;
  background: rgba(255, 253, 248, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--bd);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.nav {
  position: relative;
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { order: 1; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo {
  height: 56px; width: auto; max-width: 160px; object-fit: contain;
  border-radius: var(--r-btn);
}
.brand-name { font-size: 24px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }

.nav-links { order: 2; display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
/* the in-menu language switcher is mobile-only; it must never appear in the desktop nav */
.mobile-lang { display: none; }
.nav-links > li > a {
  font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em;
  color: #44403c; transition: color .2s;
}
.nav-links > li > a:hover { color: var(--ink); }

.nav-right { order: 3; display: flex; align-items: center; gap: 16px; }

/* language dropdown — no gap between trigger and panel, hover whole wrapper (§1) */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: 100%; right: 0; left: auto;
  margin-top: 0; padding-top: 8px;
  display: none; min-width: 128px; z-index: 1000;
}
.dropdown:hover .dropdown-panel,
.dropdown.open .dropdown-panel,
.dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel-inner {
  background: var(--surface); border: var(--bd); border-radius: var(--r-pill);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.dropdown-panel a {
  display: block; padding: 10px 16px; font-size: 14px; font-weight: 700;
  white-space: nowrap; transition: background .15s;
}
.dropdown-panel a:hover { background: var(--accent); }

.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; font-family: var(--font); font-size: 14px; font-weight: 700;
  color: var(--ink); background: var(--surface);
  border: var(--bd); border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
  cursor: pointer; white-space: nowrap;
}
.lang-btn:hover { background: var(--accent); }
.lang-btn .ico { width: 16px; height: 16px; }

/* ============================ buttons ============================ */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 24px; font-size: 15px; font-weight: 900; color: var(--ink);
  background: var(--accent); border: var(--bd); border-radius: var(--r-pill);
  box-shadow: var(--shadow); white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-cta:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.btn-cta:active { transform: translateY(4px); box-shadow: none; }

.btn-lg { padding: 20px 32px; font-size: 18px; border-radius: var(--r-btn); }

.btn-white { background: var(--surface); }
.btn-white:hover { background: var(--accent); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-blue { background: #7dd3fc; }
.btn-sm { padding: 8px 16px; font-size: 13px; box-shadow: var(--shadow-sm); }

.btn-cta .ico { width: 20px; height: 20px; flex-shrink: 0; }

.nav-toggle {
  display: none; order: 99; margin-left: auto;
  background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink);
}
.nav-toggle .ico { width: 26px; height: 26px; }

/* inline svg icons inherit colour like the source's currentColor icons */
.ico { display: block; width: 100%; height: 100%; }

/* ============================ hero ============================ */
.hero {
  position: relative; z-index: 10;
  max-width: var(--wrap-narrow); margin: 0 auto;
  padding: 128px 24px 0; text-align: center;
  min-height: 50vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-inner { position: relative; z-index: 10; width: 100%; }

/* decorative orbit rings + floating glyphs (measured: 700/450px, 15s/25s, float 6s) */
.hero-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -10;
  display: flex; align-items: center; justify-content: center; }
.orbit {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); border-radius: 50%;
}
.orbit-outer { width: 700px; height: 700px; border: 3px dashed rgba(28,25,23,.15); animation: orbit 15s linear infinite; }
.orbit-inner { width: 450px; height: 450px; border: 3px solid rgba(28,25,23,.20); animation: orbit 25s linear infinite reverse; }
.glyph { position: absolute; animation: float 6s ease-in-out infinite; }
.glyph-star { top: 10%; left: 20%; width: 40px; height: 40px; color: #facc15; }
.glyph-dot  { bottom: 20%; right: 15%; width: 32px; height: 32px; color: #38bdf8; animation-delay: 3s; }

@keyframes orbit {
  0%   { transform: rotate(0deg) translate(150px) rotate(0deg); }
  100% { transform: rotate(360deg) translate(150px) rotate(-360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-15px) rotate(4deg); }
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; margin-bottom: 24px;
  background: var(--accent); border: var(--bd); border-radius: var(--r-pill);
  font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em;
  animation: float 6s ease-in-out infinite;
}
.badge .ico { width: 17px; height: 17px; }
.badge-left { align-self: flex-start; }

.hero h1 { font-size: 60px; line-height: 1.25; margin-bottom: 24px; }
.hero p { max-width: 576px; margin: 0 auto 32px; font-size: 16px; color: var(--ink-soft); }
.hero-cta { display: flex; justify-content: center; width: 100%; }

/* ============================ sections ============================ */
.section { max-width: var(--wrap); margin: 0 auto 96px; padding: 0 var(--gutter); width: 100%; }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: 30px; margin-bottom: 8px; }
.section-head p { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.section-head.sm h2 { font-size: 24px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.feature-card {
  padding: 32px; background: var(--surface); border: var(--bd); border-radius: var(--r-card);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border: var(--bd); border-radius: var(--r-btn); flex-shrink: 0;
}
.feature-icon .ico { width: 28px; height: 28px; }
.feature-card h3 { font-size: 18px; }
.feature-card p { font-size: 14px; color: var(--ink-soft); }

/* ============================ globe card ============================ */
.globe-card {
  position: relative; overflow: hidden;
  border: var(--bd); border-radius: var(--r-card); box-shadow: var(--shadow);
  background:
    linear-gradient(rgba(28,25,23,.045) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(28,25,23,.045) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px;
  padding: 48px;
}
.globe-copy h2 { font-size: 60px; line-height: 1.1; margin-bottom: 16px; }
.globe-copy p { font-size: 16px; color: var(--ink-soft); max-width: 44ch; }
.globe-visual { display: flex; align-items: center; justify-content: center; }
.globe-canvas {
  width: 408px; height: 408px; max-width: 100%; aspect-ratio: 1 / 1;
  transition: transform .5s;
}
.globe-card:hover .globe-canvas { transform: scale(1.02); }

/* ============================ marquee ============================ */
.marquee-wrap { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 24px; }
.marquee-row { display: flex; gap: 24px; padding: 0 12px; width: max-content; }
.marquee-row.a { animation: marquee 115s linear infinite; }
.marquee-row.b { animation: marquee 115s linear infinite reverse; }
.marquee-wrap:hover .marquee-row { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.note-card {
  width: 320px; flex-shrink: 0; padding: 20px;
  background: var(--surface); border: var(--bd); border-radius: var(--r-btn); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.note-head { display: flex; align-items: center; gap: 12px; }
.note-tile {
  width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border: var(--bd); border-radius: var(--r-pill);
}
.note-tile .ico { width: 20px; height: 20px; }
.note-title { font-size: 14px; font-weight: 900; }
.note-card p { font-size: 14px; color: var(--ink-soft); }

/* ============================ download cards ============================ */
.dl-list { display: flex; flex-direction: column; gap: 24px; max-width: 944px; margin: 0 auto; }
.dl-card {
  border: var(--bd); border-radius: var(--r-card); box-shadow: var(--shadow);
  overflow: hidden; border-left-width: 10px;
}
.dl-card.android { background: #dcfce7; border-left-color: #16a34a; }
.dl-card.windows { background: #eff6ff; border-left-color: #2563eb; }
.dl-card.apple   { background: #f5f3ff; border-left-color: #7c3aed; }
.dl-main { display: flex; align-items: center; gap: 24px; padding: 32px; flex-wrap: wrap; }
.dl-mark {
  width: 76px; height: 76px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: var(--bd); border-radius: var(--r-btn);
}
.dl-mark .ico { width: 40px; height: 40px; }
.dl-mark.android .ico { color: #16a34a; }
.dl-mark.windows .ico { color: #2563eb; }
.dl-mark.apple   .ico { color: #7c3aed; }
.dl-text { flex: 1 1 260px; min-width: 0; }
.dl-text h2 { font-size: 30px; margin-bottom: 6px; }
.dl-text p { font-size: 15px; color: var(--ink-soft); }
.dl-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 6px 14px; background: var(--surface); border: var(--bd); border-radius: var(--r-pill);
  font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em;
}
/* §15 of the source spec: at md the two-button row used to clip its card. Wrap instead. */
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-left: auto; }
.dl-actions .btn-cta { flex: 0 1 auto; max-width: 100%; }
.dl-legacy {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 18px 32px; border-top: var(--bd); background: rgba(255,255,255,.5);
  font-size: 14px; font-weight: 700; color: var(--ink-soft);
}
.dl-legacy .btn-cta { margin-left: auto; }
.dl-tag {
  padding: 2px 10px; background: var(--surface); border: var(--bd); border-radius: 8px;
  font-size: 12px; font-weight: 900; color: var(--ink);
}

/* ============================ page hero / prose ============================ */
.page-hero { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gutter) 40px; }
.page-hero-inner { max-width: 760px; }
.page-hero h1 { font-size: 60px; margin-bottom: 12px; }
.page-hero p { font-size: 16px; font-weight: 700; color: var(--ink-soft); }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em;
}
.back-link .ico { width: 16px; height: 16px; }
.back-link:hover { text-decoration: underline; }

.prose { max-width: 880px; margin: 0 auto 96px; padding: 0 var(--gutter); }
.prose-block {
  display: flex; gap: 20px; padding: 28px;
  background: var(--surface); border: var(--bd); border-radius: var(--r-card);
  box-shadow: var(--shadow); margin-bottom: 24px;
}
.prose-num { font-size: 30px; font-weight: 900; line-height: 1; color: var(--ink); flex-shrink: 0; min-width: 44px; }
.prose-body { flex: 1; min-width: 0; }
.prose-body h2 { font-size: 22px; margin-bottom: 12px; }
.prose-body h3 { font-size: 17px; margin: 18px 0 8px; }
.prose-body p { font-size: 15px; color: var(--ink-soft); margin-bottom: 12px; }
.prose-body p:last-child { margin-bottom: 0; }
.prose-body ul { margin: 0 0 12px; padding-left: 22px; }
.prose-body li { font-size: 15px; color: var(--ink-soft); margin-bottom: 6px; }
.note-box {
  padding: 20px 24px; background: var(--accent-soft); border: var(--bd); border-radius: var(--r-btn);
  box-shadow: var(--shadow); margin-bottom: 24px; font-size: 15px;
}
.note-box strong { font-weight: 900; }
/* affiliate disclosure under the download cards — informational, not a CTA */
.aff-note {
  max-width: 944px; margin: 24px auto 0; background: var(--surface);
  font-size: 14px; line-height: 1.6; color: var(--ink-soft);
}
.aff-note strong { color: var(--ink); }

/* ============================ FAQ ============================ */
.faq-list { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--surface); border: var(--bd); border-radius: var(--r-btn);
  box-shadow: var(--shadow); overflow: hidden; transition: background .2s, box-shadow .2s;
}
.faq-item.open { background: var(--accent-soft); box-shadow: var(--shadow-md); }
.faq-q {
  width: 100%; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font); font-size: 18px; font-weight: 900; color: var(--ink);
}
/* the source had focus:outline-none with no replacement — give keyboard users a visible ring */
.faq-q:focus-visible, .lang-btn:focus-visible, .btn-cta:focus-visible,
.nav-toggle:focus-visible, .nav-links a:focus-visible, .back-link:focus-visible {
  outline: 3px solid #0ea5e9; outline-offset: 3px;
}
.faq-tile {
  width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--tile-sky); border: var(--bd); border-radius: var(--r-pill);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), background .3s;
}
.faq-tile .ico { width: 24px; height: 24px; stroke-width: 3; }
.faq-item.open .faq-tile { transform: rotate(180deg); background: var(--accent); }
.faq-a { display: none; padding: 0 24px 20px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 15px; color: #44403c; margin-bottom: 10px; }
.faq-a p:last-child, .faq-a ul:last-child { margin-bottom: 0; }
.faq-a ul { margin: 0 0 10px; padding-left: 22px; }
.faq-a li { font-size: 15px; color: #44403c; margin-bottom: 6px; }

/* ============================ footer ============================ */
.site-footer {
  background: var(--footer-bg); color: var(--footer-ink);
  padding: 44px var(--gutter) 0; margin-top: 96px;
}
.footer-grid {
  max-width: var(--wrap); margin: 0 auto; display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand .logo-footer { height: 48px; width: auto; max-width: 150px; object-fit: contain; border-radius: var(--r-pill); }
.footer-brand p { font-size: 14px; max-width: 34ch; }
.footer-col-title { display: block; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--wrap); margin: 0 auto; padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.12); text-align: center;
}
.footer-bottom p { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }

/* ============================ responsive ============================ */
@media (max-width: 1023px) {
  .globe-card { grid-template-columns: 1fr; padding: 36px; }
  .globe-copy h2 { font-size: 48px; }
  .globe-visual { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .feature-grid, .feature-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --gutter: 24px; }

  .site-header { height: 80px; }
  .site-header.scrolled { height: 72px; }
  /* §10 — the open menu must anchor to the HEADER, not to .nav (which is shorter than it).
     .site-header is sticky, i.e. positioned, so it becomes the containing block. */
  .nav { position: static; justify-content: space-between; padding: 0 16px; }

  .logo { height: 44px; }
  .brand-name { font-size: 20px; }

  /* §11 — hamburger far right, NO language switcher in the header bar */
  .nav-right { display: none; }
  .nav-toggle { display: block; order: 99; margin-left: auto; margin-right: -8px; padding: 6px 8px; }

  /* §10 — menu drops BELOW the header, expands to content, background on the panel only */
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: center; gap: 0;
    height: auto; max-height: none; overflow: visible;
    background: var(--bg); border: var(--bd); border-radius: 0 0 var(--r-card) var(--r-card);
    box-shadow: 0 8px 16px rgba(0,0,0,.12);
    padding: 12px 0; z-index: 1000;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a { display: block; width: 100%; text-align: center; padding: 14px 0; font-size: 18px; }

  /* §12 — switcher inside the menu, centered, language names never wrap */
  .mobile-lang {
    display: flex !important; justify-content: center; align-items: center; flex-wrap: wrap;
    gap: 10px; width: 100%; padding: 14px 12px 6px; margin-top: 6px;
    border-top: 1px solid rgba(28,25,23,.12);
  }
  /* specificity must beat `.nav-links > li > a`, which otherwise adds 14px block padding
     and pushes scrollHeight past the 1.6x line-height single-line check (§12) */
  .nav-links > li.mobile-lang > a {
    display: inline-block; width: auto; white-space: nowrap;
    padding: 0 16px; line-height: 40px; font-size: 15px; font-weight: 900; text-align: center;
    background: var(--surface); border: var(--bd); border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
  }
  .nav-links > li.mobile-lang > a.active { background: var(--accent); }

  /* §14 — CTAs centered on every page */
  .hero-cta, .cta-wrap { display: flex; justify-content: center; width: 100%; }
  .hero-cta .btn-cta, .cta-wrap .btn-cta {
    display: flex; margin-left: auto; margin-right: auto; text-align: center;
    width: max-content; max-width: 90%;
  }

  .hero { padding: 64px 24px 0; min-height: 0; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 15px; }
  .orbit-outer { width: 460px; height: 460px; }
  .orbit-inner { width: 300px; height: 300px; }

  .section { margin-bottom: 64px; }
  .section-head h2, .page-hero h1 { font-size: 30px; }
  .section-head { text-align: center; }
  .feature-grid, .feature-grid.cols-3 { grid-template-columns: 1fr; }

  .globe-card { padding: 28px; text-align: center; }
  .globe-copy h2 { font-size: 30px; }
  .globe-copy p { margin-left: auto; margin-right: auto; }
  .badge-left { align-self: center; }
  .globe-canvas { width: 246px; height: 246px; }

  .dl-main { padding: 24px; }
  .dl-actions { margin-left: 0; width: 100%; justify-content: center; }
  .dl-actions .btn-cta { width: 100%; max-width: 340px; }
  .dl-legacy { padding: 16px 24px; justify-content: center; text-align: center; }
  .dl-legacy .btn-cta { margin-left: 0; width: 100%; max-width: 340px; }
  .dl-text h2 { font-size: 24px; }

  .page-hero { padding: 40px var(--gutter) 28px; }
  .prose-block { flex-direction: column; gap: 12px; padding: 22px; }
  .faq-q { font-size: 16px; padding: 18px 18px; }
  .note-card { width: 260px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-brand p { max-width: none; }
  .footer-col ul { align-items: center; }
  .site-footer { margin-top: 64px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 32px; }
  .note-card { width: 232px; }
  .dl-mark { width: 60px; height: 60px; }
  .dl-mark .ico { width: 32px; height: 32px; }
}

/* the source ships no reduced-motion handling at all; honour the preference here */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .orbit, .glyph, .badge, .marquee-row { animation: none !important; }
}
