/* ===================================================
   Кузня landing page — style.css
   Palette, typography, layout.
   No framework, no build step.
=================================================== */

/* ── Custom properties ── */
:root {
  --base:         #0e1013;
  --panel:        #14161b;
  --hairline:     #252a33;
  --hairline-2:   #1e2229;

  --orange:       #e8823a;
  --orange-hover: #f09040;
  --yellow:       #f2c14e;
  --green:        #4fbf7b;
  --red:          #e0524a;
  --steel:        #7a8290;

  --text-primary:   #e6e9ef;
  --text-secondary: #b9c1cd;
  --text-muted:     #8b95a5;

  --font-ui:   'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Mono', monospace;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-med:  200ms;

  /* Layout */
  --max-w: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-gap: clamp(3rem, 5vw, 5rem);
}

/* Respect reduced motion everywhere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--base);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }


/* ── Utility ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Tabular figures on anything numeric */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}


/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 8px;
  padding: 0.625rem 1.25rem;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 8px rgba(232, 130, 58, 0.35);
}
.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 130, 58, 0.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-sm {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 0.8125rem 1.625rem;
  border-radius: 10px;
}


/* ══════════════════════════════════════════════
   STICKY HEADER
══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 16, 19, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  display: block;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur-fast);
  text-decoration: none;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Mobile menu button — hidden on desktop */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: background var(--dur-fast);
}
.mobile-menu-btn:hover span { background: var(--text-primary); }

/* Mobile nav drawer — hidden by default via [hidden] attribute */
.mobile-menu {
  background: var(--panel);
  border-top: 1px solid var(--hairline);
  padding: 1rem var(--gutter) 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
}
/* Show only when [hidden] is removed by JS */
.mobile-menu:not([hidden]) {
  display: flex;
}
.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.375rem 0;
}
.mobile-menu a:hover { color: var(--text-primary); }
.mobile-menu .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}


/* ══════════════════════════════════════════════
   SECTION LABELS & TITLES
══════════════════════════════════════════════ */
.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.625rem;
}

.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.section-title--center { text-align: center; }


/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  padding: clamp(3rem, 5vw, 5rem) 0 clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 42ch;
  margin-bottom: 2.25rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.download-meta {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.download-spec {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.smartscreen-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 46ch;
  padding: 0.5rem 0.75rem;
  background: rgba(224, 82, 74, 0.08);
  border: 1px solid rgba(224, 82, 74, 0.2);
  border-radius: 6px;
}
.smartscreen-warning svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--red);
}

.hero-alt {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.link-accent {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--dur-fast);
}
.link-accent:hover { text-decoration-color: var(--orange); }

/* Hero screenshot */
.hero-screenshot {
  position: relative;
}
.hero-screenshot img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}


/* ══════════════════════════════════════════════
   WHAT IS
══════════════════════════════════════════════ */
.what-is {
  padding: clamp(2.5rem, 4vw, 4rem) 0;
  border-bottom: 1px solid var(--hairline);
}

.prose-block {
  max-width: 72ch;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.prose-block p {
  font-size: clamp(1rem, 1.5vw, 1.0625rem);
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ══════════════════════════════════════════════
   FEATURE SECTIONS
══════════════════════════════════════════════ */
.feature-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  border-bottom: 1px solid var(--hairline);
}

.feature-section--alt {
  background: var(--panel);
}

.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.feature-layout--reverse .feature-text { order: 2; }
.feature-layout--reverse .feature-screenshot { order: 1; }

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.375rem;
}

.bullet-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.bullet-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-screenshot img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}


/* ══════════════════════════════════════════════
   CODE BLOCK
══════════════════════════════════════════════ */
.code-block {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.875rem;
  background: var(--hairline-2);
  border-bottom: 1px solid var(--hairline);
}

.code-lang {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange);
}

.code-filename {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.code-block pre {
  padding: 1rem 0.875rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
  /* prevent code from stretching the card on narrow screens */
  max-width: 100%;
  word-break: normal;
  overflow-wrap: normal;
}

.code-block--compact {
  border-radius: 6px;
}
.code-block--compact pre {
  padding: 0.875rem;
}

/* Syntax tokens */
.c-comment { color: #556070; font-style: italic; }
.c-key     { color: var(--yellow); }
.c-str     { color: var(--green); }
.c-num     { color: #d97642; }
.c-brace   { color: var(--text-muted); }

.code-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem !important;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--yellow);
  background: rgba(242, 193, 78, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.8125em;
  color: var(--text-muted);
  background: var(--hairline-2);
  border: 1px solid var(--hairline);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}


/* ══════════════════════════════════════════════
   FEATURE STRIP (small cards)
══════════════════════════════════════════════ */
.feature-strip {
  padding: clamp(3rem, 5vw, 5rem) 0;
  border-bottom: 1px solid var(--hairline);
}

.feature-strip .section-title--center {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.strip-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--dur-fast);
}
.strip-card:hover {
  border-color: rgba(232, 130, 58, 0.3);
}

.strip-icon {
  width: 44px;
  height: 44px;
  background: rgba(232, 130, 58, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.strip-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.strip-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}


/* ══════════════════════════════════════════════
   RESULTS TABLE
══════════════════════════════════════════════ */
.results-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  border-bottom: 1px solid var(--hairline);
}

.results-meta {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: -0.75rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  font-family: var(--font-mono);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.results-table th {
  background: var(--panel);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}

.results-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--hairline-2);
  color: var(--text-secondary);
  vertical-align: middle;
}

.results-table tr:last-child td { border-bottom: none; }
.results-table tr:hover td { background: rgba(255,255,255,0.025); }

.metric-dim {
  color: var(--steel);
}
.metric-good {
  color: var(--green);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2em 0.55em;
  border-radius: 5px;
  font-family: var(--font-mono);
}
.badge-green {
  background: rgba(79, 191, 123, 0.12);
  color: var(--green);
  border: 1px solid rgba(79, 191, 123, 0.25);
}
.badge-yellow {
  background: rgba(242, 193, 78, 0.10);
  color: var(--yellow);
  border: 1px solid rgba(242, 193, 78, 0.22);
}


/* ══════════════════════════════════════════════
   QUICK START
══════════════════════════════════════════════ */
.quickstart-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  border-bottom: 1px solid var(--hairline);
  background: var(--panel);
}

.quickstart-section .section-title--center {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.quickstart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.qs-card {
  background: var(--base);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.qs-card--primary {
  border-color: rgba(232, 130, 58, 0.4);
  background: rgba(232, 130, 58, 0.04);
}

.qs-badge {
  position: absolute;
  top: -11px;
  left: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--base);
  border: 1px solid rgba(232, 130, 58, 0.4);
  border-radius: 4px;
  padding: 0.2em 0.6em;
}

.qs-card--primary .qs-badge {
  background: rgba(232, 130, 58, 0.04);
}

.qs-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-top: 0.25rem;
}

.qs-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.qs-steps {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.qs-steps li {
  counter-increment: steps;
  display: flex;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* step text sits in a block that can wrap freely */
.qs-steps li > span {
  flex: 1;
}

/* filename code inside steps — don't break mid-word */
.qs-steps li code {
  white-space: nowrap;
  font-size: 0.75rem;
}

.qs-steps li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(232, 130, 58, 0.15);
  color: var(--orange);
  font-size: 0.6875rem;
  font-weight: 700;
  margin-top: 2px;
}

.qs-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}


/* ══════════════════════════════════════════════
   LIMITATIONS
══════════════════════════════════════════════ */
.limits-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  border-bottom: 1px solid var(--hairline);
}

.limits-section .section-title {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.limits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.limit-item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.limit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(122, 130, 144, 0.08);
  margin-top: 1px;
}

.limit-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.limit-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ══════════════════════════════════════════════
   LINKS SECTION
══════════════════════════════════════════════ */
.links-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  border-bottom: 1px solid var(--hairline);
}

.links-section .section-title--center {
  margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

a.link-card:hover {
  border-color: rgba(232, 130, 58, 0.35);
  background: rgba(232, 130, 58, 0.04);
}

.link-card--static { cursor: default; }

.link-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(232, 130, 58, 0.08);
  border-radius: 8px;
  color: var(--orange);
}

/* middle text block must be allowed to shrink */
.link-card > div {
  min-width: 0;
  flex: 1;
}

.link-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.1875rem;
}

.link-card-url {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;   /* allow flex child to shrink */
}

.link-card-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--dur-fast), color var(--dur-fast);
}
a.link-card:hover .link-card-arrow {
  transform: translateX(3px);
  color: var(--orange);
}


/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo svg {
  border-radius: 6px;
}

.footer-logo-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color var(--dur-fast), text-decoration-color var(--dur-fast);
}
.footer-copy a:hover {
  color: var(--text-secondary);
  text-decoration-color: var(--text-muted);
}


/* ══════════════════════════════════════════════
   RESPONSIVE — 1024px (tablet)
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ══════════════════════════════════════════════
   RESPONSIVE — 768px (phablet/tablet portrait)
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Header: hide desktop nav, show burger */
  .header-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }

  /* Hero: stack vertically */
  .hero-content {
    grid-template-columns: 1fr;
  }
  .hero-screenshot {
    order: -1;  /* screenshot above text on mobile */
  }
  .hero-title {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
  }

  /* Feature sections: stack */
  .feature-layout,
  .feature-layout--reverse {
    grid-template-columns: 1fr;
  }
  .feature-layout--reverse .feature-text  { order: 0; }
  .feature-layout--reverse .feature-screenshot { order: 1; }

  /* Quickstart: single col on mobile */
  .quickstart-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  /* Limits */
  .limits-grid {
    grid-template-columns: 1fr;
  }

  /* Links */
  .links-grid {
    grid-template-columns: 1fr;
  }
}


/* ══════════════════════════════════════════════
   RESPONSIVE — 480px (large phone)
══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .strip-grid {
    grid-template-columns: 1fr;
  }

  .smartscreen-warning {
    max-width: 100%;
  }
}


/* ══════════════════════════════════════════════
   RESPONSIVE — 390px (iPhone SE etc.)
══════════════════════════════════════════════ */
@media (max-width: 400px) {
  :root {
    --gutter: 1rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-tagline {
    font-size: 0.9375rem;
  }

  .btn-lg {
    font-size: 0.9375rem;
    padding: 0.75rem 1.25rem;
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .results-table th,
  .results-table td {
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
  }

  .qs-card {
    padding: 1.25rem;
  }

  .limit-item {
    flex-direction: column;
    gap: 0.5rem;
  }
}


/* ══════════════════════════════════════════════
   FOCUS / ACCESSIBILITY
══════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Skip link (hidden until focused) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--orange);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  font-weight: 600;
  z-index: 9999;
  transition: top var(--dur-fast);
}
.skip-link:focus {
  top: 0;
}


/* ══════════════════════════════════════════════
   SCROLL ANIMATIONS (only if motion ok)
══════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out);
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
