/* ==========================================================================
   GreenAnt Apps — shared stylesheet
   Used by index.html and every app page (/<app>/index.html).
   Colors are tokens on :root; dark mode follows the visitor's OS setting.
   ========================================================================== */

:root {
  --bg: #fafaf7;
  --bg-alt: #f2f4ef;
  --surface: #ffffff;
  --ink: #0e1a13;
  --ink-soft: #2c3a31;
  --muted: #5e6b63;
  --line: #e3e7e0;
  --line-strong: #cfd6cc;

  --brand: #15803d;
  --brand-strong: #116632;
  --brand-tint: #e8f3eb;
  --brand-glow: rgba(21, 128, 61, 0.14);
  --on-brand: #ffffff;

  --tile: #f1f4ef;
  --shadow-sm: 0 1px 2px rgba(14, 26, 19, 0.05);
  --shadow-md: 0 1px 2px rgba(14, 26, 19, 0.04), 0 8px 24px rgba(14, 26, 19, 0.06);
  --shadow-lg: 0 2px 4px rgba(14, 26, 19, 0.04), 0 18px 48px rgba(14, 26, 19, 0.10);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', 'Inter', system-ui, sans-serif;

  --container: 1120px;
  --gutter: 24px;
  --header-h: 68px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c120e;
    --bg-alt: #111913;
    --surface: #141d17;
    --ink: #eef3ef;
    --ink-soft: #d3ddd5;
    --muted: #97a59c;
    --line: #223027;
    --line-strong: #2e3f34;

    --brand: #34c26a;
    --brand-strong: #4ed482;
    --brand-tint: #15291c;
    --brand-glow: rgba(52, 194, 106, 0.16);
    --on-brand: #06120a;

    --tile: #1a251e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 18px 48px rgba(0, 0, 0, 0.35);

    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main { flex: 1; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--surface); color: var(--ink);
  padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-logo { width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px; box-shadow: 0 0 0 1px var(--line-strong); }
.brand .brand-sub { color: var(--muted); font-weight: 600; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav > a,
.nav summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.nav > a:hover,
.nav summary:hover,
.nav details[open] summary { background: var(--bg-alt); color: var(--ink); }
.nav > a[aria-current="page"] { color: var(--brand); }

.nav-cta {
  margin-left: 6px;
  background: var(--ink) !important;
  color: var(--bg) !important;
}
.nav-cta:hover { opacity: 0.88; }

/* Apps dropdown (native <details>, works without JS) */
.dropdown { position: relative; }
.dropdown summary { list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary svg { width: 14px; height: 14px; transition: transform 0.2s; }
.dropdown[open] summary svg { transform: rotate(180deg); }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.dropdown-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.dropdown-panel a:hover { background: var(--bg-alt); color: var(--ink); }
.dropdown-panel img { width: 36px; height: 36px; border-radius: 10px; }
.dropdown-panel strong { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.dropdown-panel span { display: block; font-size: 0.8125rem; color: var(--muted); line-height: 1.3; }
.dropdown-panel .all-apps {
  justify-content: center;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px var(--brand-glow); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); transform: translateY(-1px); }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-soft); color: var(--ink); }

.btn-disabled { background: transparent; color: var(--muted); border: 1px dashed var(--line-strong); cursor: default; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Third-party badges (Product Hunt, AlternativeTo) under an app hero's buttons */
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.badge-row img { height: 44px; width: auto; }

/* ---------- Generic sections ---------- */

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.875rem, 3.5vw, 2.5rem); margin-top: 12px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.0625rem; }

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

.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, var(--brand-glow), transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--brand-tint); display: grid; place-items: center;
}
.hero-badge .dot::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--brand); }

.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.hero h1 em { font-style: normal; color: var(--brand); }

.hero-lead {
  margin-top: 22px;
  max-width: 540px;
  font-size: 1.1875rem;
  color: var(--muted);
}

.hero .btn-row { margin-top: 34px; }

/* Icon cluster on the right of the hero */
.icon-cluster {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  width: 100%;
  justify-self: end;
}

.icon-cluster .ring {
  position: absolute;
  inset: 8%;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}
.icon-cluster .ring.inner { inset: 28%; }

.icon-cluster a {
  position: absolute;
  width: 26%;
  aspect-ratio: 1 / 1;
  padding: 3.2%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24%;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease;
}
.icon-cluster a:hover { transform: translateY(-4px) scale(1.04); }
.icon-cluster img { width: 100%; height: 100%; object-fit: contain; }

.icon-cluster .center { width: 30%; left: 35%; top: 35%; }
.icon-cluster .p1 { left: 8%;  top: 6%; }
.icon-cluster .p2 { right: 4%; top: 14%; }
.icon-cluster .p3 { left: 0;   bottom: 14%; }
.icon-cluster .p4 { right: 10%; bottom: 2%; }

/* ---------- App cards (home) ---------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.app-card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); transform: translateY(-2px); }

.app-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--brand-tint), transparent 55%),
    var(--surface);
}

.app-card-top { display: flex; align-items: center; gap: 16px; }

.app-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  padding: 6px;
  background: var(--tile);
  border-radius: 18px;
}
.app-icon img { width: 100%; height: 100%; object-fit: contain; }

/* Some launcher icons have an opaque square background; round them like a phone launcher would */
.app-icon img,
.icon-cluster img,
.dropdown-panel img { border-radius: 22%; }

.app-card h3 { font-size: 1.25rem; }
.app-card .app-cat { font-size: 0.875rem; color: var(--muted); margin-top: 2px; }

.app-card .app-desc { margin-top: 18px; color: var(--ink-soft); flex: 1; }

.app-card-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Whole card clickable via the "Learn more" link's overlay */
.app-card .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.app-card .stretched { display: inline-flex; align-items: center; gap: 6px; }
.app-card .stretched svg { width: 16px; height: 16px; transition: transform 0.15s; }
.app-card:hover .stretched svg { transform: translateX(3px); }

.app-card .play-link {
  position: relative; /* sits above the stretched overlay */
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 500;
}
.app-card .play-link:hover { color: var(--ink); }
.app-card .play-link svg { width: 14px; height: 14px; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag.neutral { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }

.featured-points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.featured-points li { display: flex; gap: 10px; align-items: flex-start; }
.featured-points svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }

.featured-aside {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
}
.featured-aside .app-icon { width: 152px; height: 152px; border-radius: 40px; padding: 14px; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }

/* ---------- About / values ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.about-grid .section-head { margin-bottom: 0; }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.value {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.value-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
}
.value-icon svg { width: 20px; height: 20px; }
.value h3 { font-size: 1.0625rem; margin-top: 16px; }
.value p { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Contact band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--bg);
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -120px; top: -160px;
  width: 420px; height: 420px;
  background: radial-gradient(closest-side, rgba(52, 194, 106, 0.35), transparent);
  pointer-events: none;
}
.cta-band h2 { color: var(--bg); font-size: clamp(1.625rem, 3vw, 2.125rem); }
.cta-band p { margin-top: 10px; color: color-mix(in srgb, var(--bg) 72%, transparent); max-width: 520px; }
.cta-band .btn { position: relative; z-index: 1; background: var(--bg); color: var(--ink); }
.cta-band .btn:hover { background: color-mix(in srgb, var(--bg) 88%, var(--brand)); color: var(--ink); }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  background: var(--bg);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-about p { margin-top: 14px; color: var(--muted); max-width: 300px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-soft); }
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- App page ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

.app-hero { position: relative; padding: 40px 0 80px; overflow: hidden; }
.app-hero::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -10%;
  width: 640px; height: 640px;
  background: radial-gradient(closest-side, var(--brand-glow), transparent);
  pointer-events: none;
}
.app-hero .container { position: relative; }

.app-hero-main {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
}
.app-hero-main .app-icon {
  width: 128px; height: 128px;
  padding: 12px;
  border-radius: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.app-hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; }
.app-hero .tagline { margin-top: 10px; font-size: 1.1875rem; color: var(--muted); max-width: 620px; }
.app-hero .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.app-hero .btn-row { margin-top: 36px; }

[hidden] { display: none !important; }

.stats-band { margin-top: -24px; padding: 0 0 80px; }
.stat-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.stat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.stat-updated { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
}
.stat-icon svg { width: 20px; height: 20px; }
.stat-num {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-title { margin-top: 10px; font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.stat-caption { margin-top: 4px; font-size: 0.875rem; color: var(--muted); line-height: 1.45; }

.prose { max-width: 720px; color: var(--ink-soft); font-size: 1.0625rem; }
.prose p + p { margin-top: 16px; }

.embed-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
.embed-card {
  position: relative;
  contain: paint;
  min-width: 0;
  min-height: 260px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.embed-card.loaded { padding: 12px; }
.embed-live { min-width: 0; }
.embed-live iframe { max-width: 100% !important; }
.embed-placeholder { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.embed-placeholder h3 { font-size: 1.25rem; }
.embed-handle { color: var(--muted); }
.embed-note { margin-top: 14px; margin-bottom: 8px; font-size: 0.875rem; color: var(--muted); }
.embed-footer { margin-top: 24px; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  counter-increment: step;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
}
.step h3 { font-size: 1.0625rem; margin-top: 16px; }
.step p { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; overflow-wrap: anywhere; }

.screenshots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.screenshots img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  scroll-snap-align: start;
}

.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.link-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); color: var(--ink); }
.link-card span.value-icon { display: grid; flex-shrink: 0; color: var(--brand); }
.link-card strong { display: block; font-weight: 600; }
.link-card span { display: block; font-size: 0.875rem; color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .icon-cluster { justify-self: center; max-width: 340px; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .app-card.featured { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: span 2; }
  .feature-grid, .feature-grid.cols-4, .link-cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px; }
}

@media (max-width: 680px) {
  :root { --gutter: 16px; --header-h: 60px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-lead { font-size: 1.0625rem; }
  .icon-cluster { max-width: 280px; }
  .brand .brand-sub { display: none; }
  .nav > a.hide-sm { display: none; }
  .nav > a, .nav summary { padding: 8px 10px; }
  .dropdown-panel { left: auto; right: -64px; transform: none; width: min(320px, calc(100vw - 32px)); }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { padding: 22px; }
  .app-card.featured { grid-column: auto; grid-template-columns: 1fr; }
  .featured-aside { display: none; }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-band { padding: 32px 24px; }
  .app-hero { padding: 24px 0 56px; }
  .app-hero-main { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 28px; }
  .app-hero-main .app-icon { width: 96px; height: 96px; border-radius: 26px; }
  .feature-grid, .feature-grid.cols-4, .link-cards, .steps { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .embed-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat { padding: 22px; }
  .stat-panel-head { padding: 14px 22px; }
  .stats-band { padding-bottom: 56px; }
  .btn-row .btn { flex: 1 1 auto; }
  .badge-row { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
