/* ==========================================================================
   runsitself v5. One typeface, one paper, one deep green, one action colour.
   Orange marks the main action of a page: the call on the home page,
   the newsletter signup on the landing and the map. The other action is deep green or a link.
   The same tokens are used by /ai-ecommerce/landing.css and the two map pages.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dm-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dm-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f6f2e8;
  --paper-2: #efe9da;
  --card: #fffdf8;
  --ink: #11211b;
  --muted: #4d5c54;
  --line: rgba(17, 33, 27, 0.14);
  --line-strong: rgba(17, 33, 27, 0.3);
  --green: #0b4a34;
  --deep: #0a2a20;
  --accent: #c54725;
  --accent-dark: #a5391b;
  --accent-soft: #ff9d76;
  --accent-tint: #fbe8dd;
  --on-deep: #f4f0e4;
  --on-deep-muted: #b9cbc0;
  --deep-line: rgba(255, 255, 255, 0.14);

  --w: 1160px;
  --gutter: 32px;
  --radius: 14px;
  --radius-s: 10px;
  --section: 96px;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
[id] { scroll-margin-top: 24px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--accent-soft); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--deep);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-s);
  z-index: 60;
}
.skip-link:focus-visible { left: 16px; top: 16px; }

/* ---------- Type ---------- */
h1, h2, h3 { text-wrap: balance; }
h1 {
  font-size: clamp(34px, 3.75vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.038em;
  font-weight: 800;
}
h2 {
  font-size: clamp(28px, 3.1vw, 43px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 22ch;
}
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 800; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); flex: none; }

.lead { font-size: clamp(17.5px, 1.4vw, 19.5px); line-height: 1.55; color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }
small, .small { font-size: 14.5px; line-height: 1.5; }

/* ---------- Layout ---------- */
.wrap { max-width: calc(var(--w) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: var(--section); }
.band { background: var(--paper-2); }
section.dark { background: var(--deep); color: var(--on-deep); }
section.dark .eyebrow { color: var(--accent-soft); }
section.dark .eyebrow::before { background: var(--accent-soft); }
section.dark .muted, section.dark .lead { color: var(--on-deep-muted); }
section.dark a { color: var(--on-deep); }

.section-head { display: grid; gap: 18px; margin-bottom: 44px; max-width: 820px; }
.section-head h2 { max-width: 24ch; }
.section-head p:not(.eyebrow) { color: var(--muted); max-width: 62ch; font-size: 18px; }
.section-head .eyebrow { margin-bottom: 0; }
section.dark .section-head p:not(.eyebrow) { color: var(--on-deep-muted); }

.split { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 64px; align-items: start; }
.split > .section-head { margin-bottom: 0; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--w) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 18px var(--gutter);
  position: relative;
}
.brand {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.brand i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: radial-gradient(circle at 70% 70%, #f4cf4e 0 2.6px, transparent 3.2px), var(--deep);
  display: inline-block;
  flex: none;
}

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.site-nav a:hover { color: var(--accent); }
.site-nav .lang-link {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 3px 7px;
}
.site-nav .nav-cta {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: var(--radius-s);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-call { background: var(--deep); color: #fff; }
.btn-call:hover { background: var(--green); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
section.dark .btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--on-deep); }
section.dark .btn-ghost:hover { border-color: #fff; }

.text-link { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { color: var(--accent); }
section.dark .text-link { color: var(--on-deep); text-decoration-color: var(--accent-soft); }

/* ---------- Newsletter form ---------- */
.newsletter-form {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  max-width: 540px;
  box-shadow: 0 10px 30px rgba(17, 33, 27, 0.08);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.newsletter-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: var(--radius-s);
}
.newsletter-form input[type="email"]::placeholder { color: #6f7b73; }
.newsletter-form input[type="email"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.signup-need { margin-top: 14px; font-size: 15.5px; line-height: 1.5; color: var(--ink); max-width: 540px; }
.signup-need b { font-weight: 800; }
.newsletter-consent { margin-top: 6px; color: var(--muted); max-width: 540px; }
.newsletter-status { margin-top: 8px; font-weight: 700; color: var(--green); min-height: 0; }
.newsletter-status:empty { display: none; }
.newsletter-status[data-state="error"] { color: var(--ink); }
section.dark .newsletter-form { border-color: transparent; box-shadow: none; }
section.dark .newsletter-consent { color: var(--on-deep-muted); }
section.dark .newsletter-status { color: #b6f25c; }

/* ---------- Hero ---------- */
.hero { padding-block: 34px 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr); gap: 64px; align-items: center; }
.hero .lead { margin-top: 22px; max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
.hero-actions .btn { padding: 17px 28px; font-size: 17px; }

/* The author, right next to the first call button: a portrait on wide screens, a compact row on a phone. */
.hero-author { position: relative; margin: 0; }
.hero-author-frame { display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 1 / 1.06; background: var(--deep); }
.hero-author img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.12); transform-origin: 30% 0; }
.hero-author figcaption {
  position: absolute;
  left: -28px;
  bottom: 26px;
  max-width: 300px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px 15px;
  box-shadow: 0 24px 48px -24px rgba(17, 33, 27, 0.45);
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}
.hero-author figcaption b { display: block; color: var(--ink); font-size: 17px; letter-spacing: -0.015em; margin-bottom: 2px; }

/* ---------- Problem: flat rows ---------- */
.pains { list-style: none; counter-reset: pain; border-top: 1.5px solid var(--ink); }
.pains li {
  counter-increment: pain;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 17px 0 18px;
  border-bottom: 1px solid var(--line);
  font-size: 18.5px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pains li::before { content: "0" counter(pain); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent); font-weight: 500; }
.pains-note { margin-top: 22px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Manifesto ---------- */
.manifesto h2 { font-size: clamp(38px, 5vw, 70px); letter-spacing: -0.045em; max-width: 9ch; }
.manifesto-copy { display: grid; gap: 20px; }
.manifesto-copy p { font-size: 19px; line-height: 1.55; max-width: 56ch; }
.manifesto-copy p.muted { font-size: 17px; }
.manifesto-key { font-weight: 800; font-size: 22px !important; letter-spacing: -0.02em; line-height: 1.3 !important; border-left: 3px solid var(--accent); padding-left: 18px; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }
.chain span { border: 1px dashed var(--line-strong); border-radius: 999px; padding: 9px 16px; color: var(--muted); }
.chain span + i + span { border-style: solid; border-color: var(--ink); color: var(--ink); background: var(--card); }
.chain strong { border: 1px solid var(--accent); border-radius: 999px; padding: 9px 16px; background: var(--accent); color: #fff; font-weight: 500; }
.chain i { color: var(--accent); font-style: normal; }

/* ---------- How it works: one sequence ---------- */
.flow { list-style: none; display: grid; }
.flow > li { display: grid; grid-template-columns: minmax(0, 0.9fr) 44px minmax(0, 1.25fr); align-items: stretch; }
.flow-note { padding: 2px 0 34px; }
.flow-note b { display: block; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 8px; }
.flow-note h3 { margin-bottom: 8px; font-size: 21px; }
.flow-note p { color: var(--muted); font-size: 16.5px; max-width: 40ch; }
.flow-rail { position: relative; }
.flow-rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--line-strong); }
.flow-rail::after { content: ""; position: absolute; left: 50%; top: 8px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--paper-2); border: 2.5px solid var(--accent); }
.flow > li:first-child .flow-rail::before { top: 12px; }
.flow > li:last-child .flow-rail::before { bottom: auto; height: 12px; }
.flow > li:last-child .flow-note, .flow > li:last-child .flow-visual { padding-bottom: 0; }
.flow-visual { padding-bottom: 34px; min-width: 0; }
.flow-label { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); padding: 8px 15px; font-size: 14.5px; font-weight: 600; }
.flow-core { background: var(--deep); color: var(--on-deep); border-radius: var(--radius); padding: 20px 22px 22px; }
.flow-core .flow-label { color: var(--accent-soft); }
.flow-core .chips span { background: rgba(255, 255, 255, 0.08); border-color: var(--deep-line); color: var(--on-deep); }
.flow-example { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); padding: 18px 22px; margin-bottom: 12px; }
.flow-example p:not(.flow-label) { font-size: 17px; line-height: 1.5; }
.flow-example b { font-weight: 800; }

/* The map in six tiles. It lives here now, next to the step it illustrates. */
.mapstrip { display: block; background: var(--deep); color: var(--on-deep); border-radius: var(--radius); padding: 16px 18px 18px; text-decoration: none; }
.mapstrip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mapstrip-head b { font-size: 16px; letter-spacing: -0.01em; font-weight: 800; }
.mapstrip-open { font-size: 13.5px; font-weight: 700; color: var(--on-deep); border: 1px solid rgba(255, 255, 255, 0.34); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
a.mapstrip:hover .mapstrip-open { background: var(--on-deep); color: var(--deep); }
.mapstrip ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mapstrip li { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--deep-line); border-radius: 10px; padding: 9px 12px 10px; font-size: 14px; line-height: 1.3; color: var(--on-deep-muted); }
.mapstrip li b { display: block; color: var(--on-deep); font-size: 14.5px; font-weight: 800; margin-bottom: 1px; }
.flow-gate { border: 1.5px solid var(--accent); background: var(--accent-tint); border-radius: var(--radius); padding: 18px 22px; }
.flow-gate .flow-label { color: var(--accent-dark); }
.flow-gate p:not(.flow-label) { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; line-height: 1.35; }
.flow-result { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 18px 22px; background: var(--card); }
.flow-result p:not(.flow-label) { font-weight: 700; font-size: 17px; }

/* ---------- Case study ---------- */
.case h2 { max-width: none; }
.case h2 span { display: block; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-block: 8px 56px; border-top: 1px solid var(--deep-line); border-bottom: 1px solid var(--deep-line); }
.stats div { padding: 24px 20px 24px 0; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--deep-line); }
.stats b { display: block; font-size: clamp(28px, 3vw, 44px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; color: var(--accent-soft); }
.stats span { display: block; margin-top: 8px; font-size: 15px; color: var(--on-deep-muted); }
.case-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.story { display: grid; gap: 18px; color: var(--on-deep-muted); }
.story p b { color: #fff; }
.case-thumbs { display: grid; grid-template-columns: 1fr; gap: 16px; }
.case-thumb {
  border: 1px solid var(--deep-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
  text-align: left;
  color: inherit;
  font: inherit;
  display: block;
  width: 100%;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.case-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.case-thumb span { display: block; padding: 12px 16px; font-size: 13px; color: var(--on-deep-muted); border-top: 1px solid var(--deep-line); }
.case-thumb:hover { border-color: var(--accent-soft); }
.case-caption { font-size: 14px; color: var(--on-deep-muted); margin-top: 12px; }

/* ---------- Other builds ---------- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.project img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.project div { padding: 20px 22px 22px; }
.project h3 { margin-bottom: 6px; }
.project p { font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 52ch; }

/* ---------- The paid path: one block ---------- */
.path { counter-reset: step; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px 20px 0 0; }
.path li { counter-increment: step; padding: 28px 30px 30px; }
.path li + li { border-left: 1px solid var(--line); }
.path li::before { content: "0" counter(step); display: block; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 12px; }
.path h3 { font-size: 21px; }
.path h3 span { display: block; margin-top: 7px; font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dark); }
.path p { margin-top: 12px; color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.path p.path-price { color: var(--ink); font-weight: 700; }
.path-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; background: var(--deep); color: var(--on-deep); border-radius: 0 0 20px 20px; padding: 26px 30px; }
.path-facts { list-style: none; display: grid; gap: 8px; }
.path-facts li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 17px; line-height: 1.45; font-weight: 600; }
.path-facts li::before { content: "→"; color: var(--accent-soft); font-weight: 800; }

/* ---------- About ---------- */
.about-story { display: grid; gap: 18px; max-width: 62ch; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1.5px solid var(--ink); }
.faq-item button {
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 20px 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.faq-item button:hover { color: var(--accent); }
.faq-item button b { color: var(--accent); font-weight: 400; font-size: 24px; line-height: 1; flex: none; }
.faq-item [hidden] { display: none; }
.faq-answer p { padding-bottom: 22px; color: var(--muted); max-width: 62ch; }

/* ---------- Closing: the call first, the newsletter as a link ---------- */
.cta-final .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 64px; align-items: center; }
.cta-final h2 { max-width: 20ch; }
.cta-final .lead { margin-top: 18px; font-size: 18px; max-width: 58ch; }
.cta-actions { display: grid; gap: 18px; justify-items: start; }
.cta-actions .btn { padding: 18px 30px; font-size: 17.5px; }
.cta-actions p { font-size: 16.5px; color: var(--on-deep-muted); }

/* ---------- Newsletter: its own section, lower on the page ---------- */
.newsletter .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 64px; align-items: center; }
.newsletter h2 { max-width: 18ch; }
.newsletter .lead { margin-top: 18px; }
.signup { margin-top: 26px; }
.newsletter .newsletter-form .btn { background: var(--deep); color: #fff; }
.newsletter .newsletter-form .btn:hover { background: var(--green); }
.issue {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 26px 20px;
  box-shadow: 0 30px 60px -34px rgba(17, 33, 27, 0.4);
}
.issue-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1.5px solid var(--ink); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.issue-top b { font-weight: 500; color: var(--accent-dark); }
.issue-title { font-size: clamp(22px, 2.05vw, 28px); letter-spacing: -0.03em; line-height: 1.12; margin: 16px 0 10px; max-width: none; }
.issue-excerpt { font-size: 16px; line-height: 1.55; color: var(--muted); }
.issue-read { display: inline-block; margin-top: 16px; font-size: 16px; }
.issue-prev { list-style: none; margin-top: 18px; border-top: 1px solid var(--line); }
.issue-prev a { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.35; font-weight: 700; color: var(--ink); text-decoration: none; }
.issue-prev a:hover { color: var(--accent); }
.issue-prev span { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.issue-all { margin-top: 14px; font-size: 15px; }
.issue-next { list-style: none; counter-reset: nx; }
.issue-next li { counter-increment: nx; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.issue-next li::before { content: "0" counter(nx); grid-row: 1 / span 2; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--accent-dark); padding-top: 4px; }
.issue-next b { font-size: 17px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.issue-next b em { font-style: normal; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--accent-tint); color: var(--accent-dark); border-radius: 999px; padding: 3px 9px; }
.issue-next span { font-size: 15.5px; line-height: 1.45; color: var(--muted); }
.issue-inside { margin-top: 14px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.issue-inside b { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep-muted); border-top: 1px solid var(--deep-line); }
.footer-row {
  max-width: calc(var(--w) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 28px var(--gutter) 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14.5px;
}
.footer-brand { display: grid; gap: 4px; }
.footer-brand b { color: var(--on-deep); font-size: 16px; letter-spacing: -0.02em; }
.footer-row a { color: var(--on-deep-muted); }
.footer-row a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.cookie-settings { background: transparent; border: 0; padding: 0; font-family: var(--sans); font-size: 14.5px; color: var(--on-deep-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookie-settings:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 16px; background: transparent; max-width: min(96vw, 1280px); max-height: 92vh; margin: auto; }
.lightbox::backdrop { background: rgba(10, 42, 32, 0.92); }
.lightbox img { border-radius: var(--radius-s); max-height: 84vh; width: auto; max-width: 100%; margin-inline: auto; }
.lightbox-close { display: block; margin-left: auto; margin-bottom: 8px; background: var(--paper); color: var(--ink); border: 0; border-radius: var(--radius-s); font-size: 22px; line-height: 1; padding: 8px 16px; cursor: pointer; }

/* ---------- Tablet ---------- */
@media (max-width: 1120px) {
  :root { --section: 76px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    z-index: 50;
    box-shadow: 0 24px 50px -20px rgba(17, 33, 27, 0.35);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 16px; }

  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 40px; }
  .hero-author figcaption { left: -16px; max-width: 260px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .case-grid { grid-template-columns: 1fr; gap: 36px; }
  .flow > li { grid-template-columns: minmax(0, 0.8fr) 36px minmax(0, 1.2fr); }
  .path li { padding: 24px 22px 26px; }
  .cta-final .wrap, .newsletter .wrap { grid-template-columns: 1fr; gap: 36px; }
  .issue { max-width: 640px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  :root { --gutter: 20px; --section: 60px; }
  body { font-size: 16.5px; }
  .site-header { padding-block: 14px; }
  .section-head { margin-bottom: 30px; gap: 14px; }
  .section-head p:not(.eyebrow) { font-size: 17px; }

  .hero { padding-block: 14px 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero .lead { margin-top: 16px; font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 24px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .text-link { align-self: flex-start; }
  .hero-author { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding-top: 22px; border-top: 1px solid var(--line); }
  .hero-author-frame { width: 64px; aspect-ratio: 1 / 1; border-radius: 50%; }
  .hero-author img { transform: scale(1.25); transform-origin: 50% 12%; }
  .hero-author figcaption { position: static; max-width: none; background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; font-size: 15px; }
  .hero-author figcaption b { font-size: 16.5px; }

  .pains li { font-size: 17.5px; grid-template-columns: 34px minmax(0, 1fr); padding: 15px 0 16px; }
  .pains-note { font-size: 17px; }
  .manifesto-copy p { font-size: 17.5px; }
  .manifesto-key { font-size: 20px !important; }

  .flow > li { grid-template-columns: 22px minmax(0, 1fr); }
  .flow-rail { grid-row: 1 / span 2; grid-column: 1; }
  .flow-rail::before { left: 6px; }
  .flow-rail::after { left: 6px; background: var(--paper-2); }
  .flow-note { grid-column: 2; grid-row: 1; padding-bottom: 12px; }
  .flow-visual { grid-column: 2; grid-row: 2; padding-bottom: 30px; }
  .flow > li:last-child .flow-note { padding-bottom: 12px; }
  .flow > li:last-child .flow-rail::before { bottom: 0; height: auto; }
  .flow-example { padding: 16px 18px; }
  /* phone: six layer names only, the descriptions are one tap away on the map */
  .mapstrip { padding: 14px; }
  .mapstrip-head { flex-wrap: wrap; }
  .mapstrip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mapstrip li { font-size: 0; padding: 11px 6px; text-align: center; }
  .mapstrip li b { font-size: 14px; margin: 0; }

  .stats { grid-template-columns: 1fr; margin-bottom: 36px; }
  .stats div { padding: 16px 0; }
  .stats div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--deep-line); }
  .stats b { font-size: 30px; }

  .projects { grid-template-columns: 1fr; gap: 14px; }
  .project img { aspect-ratio: 16 / 10; }
  .project div { padding: 16px 18px 18px; }
  .path { grid-template-columns: 1fr; border-radius: 16px 16px 0 0; }
  .path li { padding: 22px 20px 24px; }
  .path li + li { border-left: 0; border-top: 1px solid var(--line); }
  .path-foot { flex-direction: column; align-items: stretch; padding: 22px 20px 24px; border-radius: 0 0 16px 16px; }
  .path-foot .btn { width: 100%; }
  .path-facts li { font-size: 16.5px; }
  .faq-item button { font-size: 17px; padding: 17px 0; }

  .signup { margin-top: 22px; }
  .newsletter-form { flex-direction: column; padding: 0; background: transparent; border: 0; box-shadow: none; gap: 10px; }
  .newsletter-form input[type="email"] { background: var(--card); border: 1.5px solid var(--ink); padding: 15px 16px; }
  .newsletter-form .btn { width: 100%; padding-block: 16px; }
  .issue { padding: 18px 18px 18px; border-radius: 16px; }
  .cta-actions { justify-items: stretch; }
  .cta-actions .btn { width: 100%; white-space: normal; text-align: center; }
  .footer-row { flex-direction: column; }
}
