/* ============================================================================
 * styles.css — dark / minimal / industrial
 * ============================================================================
 * Design intent: near-black ground, one restrained accent, tight monospace
 * labels against a neutral sans for body text, hairline borders instead of
 * shadows, no gradients or glow. Everything is driven by the custom
 * properties in :root — change those to reskin the whole site.
 * ==========================================================================*/

:root {
  /* Ground */
  --bg:          #0a0a0b;
  --bg-raised:   #0f0f11;
  --bg-sunken:   #070708;

  /* Ink.
   * Every value here clears WCAG AA (4.5:1) against the darkest background it
   * is used on (--bg-raised, #0f0f11), measured rather than eyeballed:
   *   --fg        16.2:1
   *   --fg-muted   5.7:1
   *   --fg-faint   4.8:1
   * --fg-faint used to be #5a5a62, which measured 2.8:1 and failed — it
   * carries product specs and licence terms, so it has to be readable.
   * If you darken these, re-measure. Small mono type on near-black is exactly
   * where contrast quietly stops working. */
  --fg:          #e8e8ea;
  --fg-muted:    #8b8b93;
  --fg-faint:    #7e7e86;

  /* Lines */
  --line:        #1d1d21;
  --line-strong: #2c2c33;

  /* Accent — a single cold signal colour. Change this one value to reskin. */
  --accent:      #c8ff2e;
  --accent-ink:  #0a0a0b;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  /* Rhythm */
  --gutter: 24px;
  --max:    1180px;
  --radius: 2px;
}

/* --------------------------------------------------------------------------
 * Reset
 * ------------------------------------------------------------------------*/

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

button { font: inherit; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dim { color: var(--fg-faint); }

/* Available to screen readers, invisible on screen. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Anything the nav jumps to stops clear of the sticky header instead of
 * sliding underneath it. Replaces the old negative-offset spacer trick. */
:target,
.section,
.anchor { scroll-margin-top: 96px; }

.anchor { display: block; height: 0; visibility: hidden; }

/* Skip link — off-screen until focused, then pinned top-left. */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 44px;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  color: var(--accent-ink);
}

/* --------------------------------------------------------------------------
 * Pre-launch banner
 * ------------------------------------------------------------------------*/

.banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px var(--gutter);
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line-strong);
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.banner strong { color: var(--accent); font-weight: 400; }

.banner__dot {
  width: 6px; height: 6px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.logo:hover { color: inherit; }

.logo__mark {
  width: 10px; height: 10px;
  background: var(--accent);
  flex: none;
}

.logo__text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.nav {
  display: flex;
  gap: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.nav a { display: inline-flex; align-items: center; min-height: 44px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 1px; background: var(--fg); }

/* --------------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------------*/

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-sunken);
}

.hero--compact .hero__inner { padding-bottom: 68px; }

/* Faint technical grid — structure, not decoration. */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 108px var(--gutter) 88px;
}

.eyebrow {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0;
  font-size: clamp(40px, 8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.hero__lede {
  max-width: 46ch;
  margin: 26px 0 0;
  color: var(--fg-muted);
  font-size: 17px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 64px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero__meta dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.hero__meta dd {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--fg);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  min-height: 44px;
}

.btn:hover { border-color: var(--fg-muted); color: var(--fg); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: #d9ff5e; border-color: #d9ff5e; color: var(--accent-ink); }

.btn--ghost { background: transparent; }

.btn--buy { padding: 9px 16px; }
.btn--buy:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--buy:not(:disabled):hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: var(--line);
  color: var(--fg-faint);
}

.is-placeholder { color: var(--fg-faint); font-style: italic; }

/* --------------------------------------------------------------------------
 * Sections
 * ------------------------------------------------------------------------*/

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 84px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.section__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 400;
}

.section--split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.placeholder-tag {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
}

.prose { max-width: 62ch; }
.prose p { margin: 0 0 18px; color: var(--fg-muted); }
.prose p:last-child { margin-bottom: 0; }

.tags, .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.tags li, .links li {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

.links li a { color: var(--fg); }

.contact-line { margin-top: 22px; }

/* --------------------------------------------------------------------------
 * Project prep
 * ------------------------------------------------------------------------*/

.prep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.prep-card {
  padding: 24px;
  background: var(--bg-raised);
}

.prep-card--wide { grid-column: 1 / -1; }

.prep-card h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
}

.prep-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--fg-muted);
}

.prep-card li + li { margin-top: 8px; }

.prep-card p {
  margin: 0;
  color: var(--fg-muted);
}

.brief-template {
  max-width: 760px;
}

.brief-template p {
  margin: 0 0 16px;
  color: var(--fg-muted);
}

.brief-template pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--fg);
  white-space: pre-wrap;
}

.brief-template code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
 * Quick links page
 * ------------------------------------------------------------------------*/

.link-stack {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.link-card {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  transition: border-color 0.15s, background 0.15s;
}

.link-card:hover {
  border-color: var(--accent);
  background: #121216;
  color: var(--fg);
}

.link-card--primary {
  border-color: var(--accent);
}

.link-card span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.link-card small {
  color: var(--fg-muted);
  font-size: 14px;
}

.mini-service-list {
  display: grid;
  gap: 1px;
  max-width: 760px;
  border: 1px solid var(--line);
  background: var(--line);
}

.mini-service-list a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: var(--bg-raised);
  color: var(--fg);
}

.mini-service-list a:hover {
  color: var(--accent);
}

.mini-service-list strong {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
 * One-sheet page
 * ------------------------------------------------------------------------*/

.one-sheet {
  max-width: 880px;
  margin: 0 auto;
  padding: 88px var(--gutter);
}

.one-sheet h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.one-sheet__lede {
  max-width: 58ch;
  margin: 24px 0 0;
  color: var(--fg-muted);
  font-size: 18px;
}

.one-sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 52px;
}

.one-sheet__block {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.one-sheet__block h2 {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 400;
}

.one-sheet__block p {
  max-width: 68ch;
  margin: 0;
  color: var(--fg-muted);
}

.rate-list {
  display: grid;
  gap: 1px;
  margin: 0 0 18px;
  background: var(--line);
  border: 1px solid var(--line);
}

.rate-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  background: var(--bg-raised);
}

.rate-list dt,
.rate-list dd {
  margin: 0;
}

.rate-list dd {
  font-family: var(--font-mono);
  color: var(--accent);
}

.one-sheet__list {
  margin: 0;
  padding-left: 18px;
  color: var(--fg-muted);
}

.one-sheet__list li + li { margin-top: 8px; }

.one-sheet__contact a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media print {
  .banner,
  .site-header,
  .site-footer,
  .one-sheet__actions { display: none; }

  body {
    background: #fff;
    color: #000;
  }

  .one-sheet {
    max-width: none;
    padding: 0;
  }

  .one-sheet__lede,
  .one-sheet__block p,
  .one-sheet__list,
  .rate-list dd {
    color: #000;
  }
}

/* --------------------------------------------------------------------------
 * FAQ
 * Native details/summary keeps disclosure keyboard and screen-reader support
 * without a JavaScript accordion or hidden-focus edge cases.
 * ------------------------------------------------------------------------*/

.faq {
  max-width: 760px;
  border-top: 1px solid var(--line);
}

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  position: relative;
  min-height: 64px;
  padding: 20px 48px 20px 0;
  color: var(--fg);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  position: absolute;
  top: 17px;
  right: 4px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
}

.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--accent); }

.faq details p {
  max-width: 62ch;
  margin: -2px 48px 22px 0;
  color: var(--fg-muted);
}

/* --------------------------------------------------------------------------
 * Filters
 * ------------------------------------------------------------------------*/

.filters { display: flex; gap: 6px; }

.filter {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  min-height: 44px;
}

.filter:hover { color: var(--fg); border-color: var(--line-strong); }

.filter.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
 * Service grid
 * ------------------------------------------------------------------------*/

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

/* Hairline separators come from the grid gap, so cards themselves are flat. */
.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  transition: background 0.15s;
}

.card:hover { background: #131316; }

.card--unavailable { opacity: 0.6; }

/* Briefly marks the card a shared #service-id link points at. */
.card--focused {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
  background: #131316;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px;
}

.card__head { margin-bottom: 14px; }

.card__badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.card__title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card__subtitle {
  margin: 5px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
}

.card__desc {
  margin: 0;
  font-size: 14px;
  color: var(--fg-muted);
}

/* Turnaround and revisions — the two things a client decides on after price,
 * so they get their own block rather than being buried in the bullet list. */
.card__terms {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 18px 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card__terms dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  align-self: center;
}

.card__terms dd {
  margin: 0;
  font-size: 13px;
  color: var(--fg);
}

.card__details {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--fg-faint);
}

.card__details li {
  position: relative;
  padding: 3px 0 3px 16px;
}

.card__details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 1px;
  background: var(--fg-faint);
}

.card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.card__pricing { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

.card__price {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--fg);
}

.card__price-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.card__closed {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.card__provider {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  text-align: right;
}

.grid__empty {
  margin: 28px 0 0;
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 12px;
}

.section__note {
  max-width: 62ch;
  margin: 26px 0 0;
  font-size: 14px;
  color: var(--fg-faint);
}

.section__note a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.section__note a:hover { color: var(--accent); }
.section__note code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
}

/* --------------------------------------------------------------------------
 * Process steps
 * ------------------------------------------------------------------------*/

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.step {
  padding: 26px;
  background: var(--bg-raised);
}

.step__num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.step__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-muted);
}

/* --------------------------------------------------------------------------
 * Status pages (success.html / cancel.html)
 * ------------------------------------------------------------------------*/

.status {
  max-width: 560px;
  margin: 0 auto;
  padding: 140px var(--gutter);
  text-align: center;
}

.status h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.02em;
}

.status p { color: var(--fg-muted); margin: 0 0 26px; }

.status__next {
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-align: left;
}
.status__next strong { color: var(--fg); font-weight: 600; }

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px var(--gutter) 60px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.footer-links { display: flex; gap: 22px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg-faint);
}
.footer-links a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
 * Legal pages (impressum.html / privacy.html)
 * ------------------------------------------------------------------------*/

.legal { max-width: 720px; }

.legal__title {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.02em;
}

.legal h2 {
  margin: 40px 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--accent);
}

.legal p { color: var(--fg-muted); margin: 0 0 14px; }

.legal a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--accent); }

.legal__block { font-family: var(--font-mono); font-size: 13px; line-height: 1.9; }

.legal__note {
  padding: 14px 16px;
  border-left: 2px solid var(--line-strong);
  font-size: 14px;
}

.legal__foot { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }

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

@media (max-width: 860px) {
  .section--split { grid-template-columns: 1fr; gap: 24px; }
  .hero__inner { padding: 72px var(--gutter) 60px; }
  .hero__meta { gap: 28px; }
  .prep-grid { grid-template-columns: 1fr; }
  .prep-card--wide { grid-column: auto; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0 var(--gutter);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
    visibility: hidden;
    pointer-events: none;
  }

  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }

  .nav-open .nav {
    max-height: 520px;
    visibility: visible;
    pointer-events: auto;
  }

  .section { padding: 60px var(--gutter); }
  .section__head { align-items: flex-start; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
}

/* Touch devices: everything tappable clears the ~44px guideline. Measured at
 * 375px the filters came in at 35px and the buy button at 39px — small enough
 * to mis-tap, and the buy button is the last place you want that. Keyed on
 * pointer:coarse rather than width, since a small window on a laptop still has
 * a precise cursor. */
@media (pointer: coarse) {
  .filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

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