/* Forgeplot — "The Drafting Room" marketing site
   Ink on warm paper, one accent, mechanical warmth. */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --ink: #1c1b22;
  --ink-secondary: rgba(28, 27, 34, 0.68);
  --ink-faint: rgba(28, 27, 34, 0.64);
  --paper: #f7f2e8;
  --paper-edge: rgba(28, 27, 34, 0.10);
  --chrome: #e7e0d1;
  --chrome-card: #fdfbf6;
  --accent: #3050c8;
  --accent-soft: rgba(48, 80, 200, 0.1);
  --accent-line: rgba(48, 80, 200, 0.25);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Spacing — 8px scale */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 128px;

  /* Misc */
  --radius: 2px;
  --radius-card: 3px;
  --max-width: 1180px;
  --shadow-tight: 0 1px 2px rgba(28, 27, 34, 0.14), 0 2px 6px rgba(28, 27, 34, 0.08);
  --shadow-diffuse: 0 24px 60px rgba(28, 27, 34, 0.16), 0 8px 24px rgba(28, 27, 34, 0.08);
  --border-hairline: 1px solid var(--paper-edge);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--chrome);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

/* Subtle paper-grain / ruled atmosphere on the chrome background */
body {
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(28, 27, 34, 0.008) 0px,
      rgba(28, 27, 34, 0.008) 1px,
      transparent 1px,
      transparent 48px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(28, 27, 34, 0.005) 0px,
      rgba(28, 27, 34, 0.005) 1px,
      transparent 1px,
      transparent 48px
    );
}

/* ---------- Focus & selection ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}
::selection { background: var(--accent-soft); color: var(--ink); }

/* ---------- Layout shells ---------- */
.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}
main { display: block; }
section { padding-block: var(--sp-7); }
section + section { padding-top: 0; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: var(--border-hairline);
  background: rgba(243, 239, 230, 0.88);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: 20px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand svg {
  height: 28px;
  width: auto;
  display: block;
}
.brand svg polyline,
.brand svg path {
  stroke: var(--ink) !important;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.site-nav ul {
  display: flex;
  gap: var(--sp-2);
}
.site-nav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  padding: var(--sp-1) 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover { color: var(--ink); border-color: var(--accent-line); }

.badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-6);
  text-align: center;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 18ch;
  margin-inline: auto;
  letter-spacing: -0.01em;
}
.hero-sub {
  margin: var(--sp-3) auto 0;
  max-width: 56ch;
  font-size: 1.2rem;
  color: var(--ink-secondary);
}
.hero-sub2 {
  margin: var(--sp-2) auto 0;
  max-width: 56ch;
  font-size: 1.0rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

.hero-figure {
  margin-top: var(--sp-6);
  display: flex;
  justify-content: center;
}

/* ---------- Paper sheet treatment ---------- */
.sheet {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--paper-edge);
  box-shadow: var(--shadow-tight), var(--shadow-diffuse);
  padding: var(--sp-3);
}
.sheet-hero {
  max-width: 900px;
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  animation: settle 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
.sheet-hero img { width: 100%; height: auto; }

@keyframes settle {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .sheet-hero { animation: none; opacity: 1; transform: none; }
}

/* ---------- Section headings ---------- */
.section-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto var(--sp-5);
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-1);
  display: block;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}
.section-head p {
  margin-top: var(--sp-2);
  color: var(--ink-secondary);
  font-size: 1.05rem;
}

/* ---------- How it works: drafting-plate cards ---------- */
.plate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.plate {
  background: var(--chrome-card);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-card);
  padding: var(--sp-3);
  box-shadow: var(--shadow-tight);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.plate:hover {
  box-shadow: var(--shadow-tight), 0 18px 34px rgba(28, 27, 34, 0.14);
  transform: translateY(-2px);
}
.plate-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.plate-thumb {
  margin: var(--sp-2) 0;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow-tight);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2);
}
.plate-thumb img { width: 100%; height: 100%; object-fit: contain; }
.plate h3 {
  font-size: 1.15rem;
  margin-bottom: var(--sp-1);
}
.plate p { color: var(--ink-secondary); font-size: 0.96rem; }

/* ---------- Generator lineup ("What's in the box") ---------- */
.generator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.generator-card {
  background: var(--chrome-card);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-card);
  padding: var(--sp-3);
  box-shadow: var(--shadow-tight);
}
.generator-family {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.generator-desc {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink-secondary);
  font-size: 0.94rem;
  margin: 4px 0 var(--sp-2);
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-secondary);
  border: 1px solid var(--paper-edge);
  background: var(--chrome-card);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.generator-note {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-secondary);
  text-align: center;
  max-width: 64ch;
  line-height: 1.6;
  margin: var(--sp-5) auto 0;
}

/* ---------- Numbered step plates (learn page) ---------- */
.step-plate {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: var(--border-hairline);
}
.step-plate:last-child { border-bottom: var(--border-hairline); }
.step-index {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}
.step-body h3 { font-size: 1.25rem; margin-bottom: var(--sp-1); }
.step-body p { color: var(--ink-secondary); }
.step-body ul { margin-top: var(--sp-2); display: grid; gap: var(--sp-1); }
.step-body li {
  color: var(--ink-secondary);
  padding-left: 1.2em;
  position: relative;
}
.step-body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.step-body strong { color: var(--ink); font-weight: 600; }
.step-body code {
  font-family: var(--font-mono);
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

/* ---------- What you'll need ---------- */
.needs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
  margin: var(--sp-4) 0 var(--sp-6);
}
.needs-list li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-secondary);
  border: 1px solid var(--paper-edge);
  background: var(--chrome-card);
  border-radius: var(--radius);
  padding: var(--sp-2);
}
.needs-list strong { color: var(--ink); font-family: var(--font-body); font-size: 1rem; display: block; margin-bottom: 4px; }

/* ---------- Wallpaper section ---------- */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--sp-6);
  align-items: center;
}
.split .sheet { transform: rotate(0.5deg); }

/* ---- "One piece, every screen" mockups -------------------------------- */
.mockups {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  padding-block: var(--sp-4);
}
.mac-mockup {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
}
.mac-mockup__bezel {
  position: relative;
  background: #17161b;
  border-radius: 11px 11px 4px 4px;
  padding: clamp(9px, 2.4cqw, 13px) clamp(9px, 2.4cqw, 13px) clamp(5px, 1.4cqw, 8px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    var(--shadow-tight),
    var(--shadow-diffuse);
}
.mac-mockup__cam {
  position: absolute;
  top: clamp(3px, 1cqw, 5px);
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 3px rgba(130, 155, 255, 0.5);
}
.mac-mockup__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
  container-type: inline-size;
}

/* macOS login-screen overlay: blurred wallpaper + centred auth stack */
.mac-login {
  position: absolute;
  inset: 0;
  /* Desktop, not a login screen: the wallpaper stays sharp and undimmed —
     only the menu bar sits on top of it. */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 12%);
}
/* The menu bar sits over live line art — a soft shadow keeps it readable. */
.mac-login__menubar {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.65);
}
.mac-login__menubar {
  position: absolute;
  top: 4%;
  right: 9%;
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.4cqw, 8px);
  color: rgba(255, 255, 255, 0.75);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: clamp(7px, 2.2cqw, 10px);
}
.mac-login__menubar svg:first-child { width: clamp(9px, 2.6cqw, 13px); height: auto; }
.mac-login__menubar svg:nth-child(2) { width: clamp(15px, 4.4cqw, 22px); height: auto; }
.mac-login__stack {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -45%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.mac-login__avatar {
  width: clamp(30px, 13cqw, 54px);
  height: clamp(30px, 13cqw, 54px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #dcdce1, #979aa4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(5px, 1.8cqw, 9px);
}
.mac-login__avatar svg { width: 62%; height: 62%; }
.mac-login__name {
  margin: 0 0 clamp(6px, 2.2cqw, 11px);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: clamp(10px, 3.8cqw, 15px);
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}
.mac-login__field {
  width: clamp(120px, 46cqw, 180px);
  height: clamp(20px, 7.6cqw, 30px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(3px, 1cqw, 4px) clamp(8px, 3cqw, 12px);
}
.mac-login__field span:first-child {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: clamp(8px, 3cqw, 12px);
  color: rgba(255, 255, 255, 0.65);
}
.mac-login__submit {
  width: clamp(14px, 5.6cqw, 22px);
  height: clamp(14px, 5.6cqw, 22px);
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.mac-login__submit svg { width: 40%; height: 40%; }
.mac-login__hint {
  margin: clamp(5px, 1.8cqw, 9px) 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: clamp(7px, 2.6cqw, 11px);
  color: rgba(255, 255, 255, 0.55);
}

.mac-mockup__base {
  height: 9px;
  margin: 0 -20px;
  border-radius: 2px 2px 9px 9px;
  background: linear-gradient(180deg, #c8c8cd 0%, #9a9aa2 100%);
  box-shadow: var(--shadow-tight);
  position: relative;
}
.mac-mockup__base::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -1.5px);
  width: 68px;
  height: 4px;
  background: #82828c;
  border-radius: 0 0 5px 5px;
}

.device-frame--lock {
  position: relative;
  z-index: 2;
  width: min(158px, 60%);
}
.lock-screen {
  position: relative;
  aspect-ratio: 1206 / 2622;
  background-size: cover;
  background-position: center;
  container-type: inline-size;
}
.lock-screen::before {
  content: "";
  position: absolute;
  inset: 0 0 55% 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.lock-screen__top {
  position: absolute;
  z-index: 1;
  top: 9%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2px, 1cqw, 6px);
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.5);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}
.lock-icon {
  width: clamp(9px, 3.6cqw, 18px);
  height: auto;
  opacity: 0.85;
}
.lock-date {
  margin: 0;
  font-size: clamp(9px, 3.9cqw, 20px);
  font-weight: 500;
}
.lock-clock {
  margin: 2px 0 0;
  font-size: clamp(30px, 19.5cqw, 92px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.02em;
}
.lock-screen__bottom {
  position: absolute;
  bottom: 9%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding-inline: 8%;
}
.lock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(24px, 11cqw, 54px);
  height: clamp(24px, 11cqw, 54px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lock-btn svg {
  width: 46%;
  height: 46%;
  opacity: 0.7;
}
.lock-home-indicator {
  position: absolute;
  bottom: 2.4%;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: clamp(3px, 1cqw, 5px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

/* Desktop: laptop left/centre and larger, phone overlapping only its
   hardware at the lower-right — never the Mac's screen. */
@media (min-width: 1000px) {
  .mockups {
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
  }
  .mac-mockup { width: min(430px, 68%); }
  .device-frame--lock {
    width: min(172px, 28%);
    margin-left: 0px;
    margin-bottom: -8px;
  }
}

.wallpaper-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-top: var(--sp-3);
}
.wallpaper-sizes span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-secondary);
  border: 1px solid var(--paper-edge);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ---------- Tips list ---------- */
.tips-list {
  display: grid;
  gap: var(--sp-2);
  max-width: 760px;
  margin: 0 auto;
}
.tips-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-top: var(--border-hairline);
}
.tips-list li:last-child { border-bottom: var(--border-hairline); }
.tip-mark { font-family: var(--font-mono); color: var(--accent); }
.tips-list strong { display: block; margin-bottom: 2px; }
.tips-list span.tip-body { color: var(--ink-secondary); }

/* ---------- Pull quote ---------- */
.pull-quote {
  text-align: center;
  padding-block: var(--sp-6);
}
.pull-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  max-width: 22ch;
  margin: 0 auto;
  line-height: 1.3;
  position: relative;
}
.pull-quote .rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: var(--sp-3) auto 0;
}

/* ---------- Divider art (learn page) ---------- */
.art-divider {
  margin-block: var(--sp-6);
  display: flex;
  justify-content: center;
}
.art-divider img {
  width: 100%;
  max-width: 1000px;
  opacity: 0.85;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: var(--sp-2); }
.faq-item {
  background: var(--chrome-card);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-tight);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--sp-3);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 var(--sp-3) var(--sp-3);
  color: var(--ink-secondary);
}
.faq-item .faq-body p + p { margin-top: var(--sp-2); }

/* ---------- CTA links / buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-accent {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-accent:hover { background: var(--accent); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: var(--border-hairline);
  padding-block: var(--sp-5);
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.footer-mark img { width: 40px; height: 40px; opacity: 0.8; }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-secondary);
  text-align: right;
  max-width: 46ch;
  line-height: 1.6;
}
.footer-copy strong { color: var(--ink); font-family: var(--font-mono); }

/* ---------- Learn page hero ---------- */
.page-hero {
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-4);
  text-align: center;
}
.page-hero .hero-eyebrow { margin-bottom: var(--sp-2); }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.page-hero p { margin-top: var(--sp-2); max-width: 60ch; margin-inline: auto; color: var(--ink-secondary); font-size: 1.1rem; }

/* ---------- Hero: two-column on desktop so the plot sits above the fold ---------- */
@media (min-width: 1000px) {
  .hero {
    padding-top: var(--sp-6);
    padding-bottom: var(--sp-6);
    text-align: left;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    align-items: center;
    gap: var(--sp-6);
  }
  .hero-copy { text-align: left; }
  .hero h1 {
    font-size: clamp(2.1rem, 3vw, 3.25rem);
    max-width: none;
    margin-inline: 0;
  }
  .hero-sub {
    margin: var(--sp-3) 0 0;
    margin-inline: 0;
    max-width: 48ch;
  }
  .hero-sub2 {
    margin: var(--sp-2) 0 0;
    margin-inline: 0;
  }
  .hero-cta {
    align-items: flex-start;
  }
  .hero-figure {
    margin-top: 0;
    justify-content: center;
  }
  .sheet-hero {
    /* The sheet hugs the artwork: the hero plot is A4 landscape, so give the
       paper that ratio instead of letterboxing a wide plot in a tall sheet.
       Height stays capped so the whole thing sits above the fold. */
    width: 100%;
    max-width: min(100%, calc(min(62vh, 560px) * 297 / 210));
    aspect-ratio: 297 / 210;
    height: auto;
    margin-inline: auto;
    display: block;
  }
  .sheet-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .plate-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: var(--sp-4); }
  .needs-list { grid-template-columns: 1fr; }
  .generator-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  section { padding-block: var(--sp-6); }
  .site-nav ul { display: none; }
  .site-header .wrap { flex-wrap: wrap; row-gap: var(--sp-1); }
  .hero { padding-top: var(--sp-5); }
  .hero h1 { font-size: 2.1rem; }
  .footer-copy { text-align: left; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .step-plate { grid-template-columns: 1fr; }
  .step-index { font-size: 1.2rem; }
  .generator-grid { grid-template-columns: 1fr; }
}

/* ---- App Store badges ------------------------------------------------ */
/* Official Apple artwork (Download_on_the_App_Store_Badge_US-UK_RGB_blk).
   Per Apple's badge guidelines the artwork is never altered — no shadows,
   glows or recolouring; only position and size change. Clear space around
   each badge is kept well above the required 1/10 of badge height. */

.store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.18s ease;
}
.store-badge img { display: block; width: 156px; height: auto; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 8px; }

.store-badge-sm img { width: 124px; }

.hero-cta {
  margin-top: var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-cta-note {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--ink-secondary);
  margin: 0;
}

.quote-actions {
  margin-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
}

@media (prefers-reduced-motion: reduce) {
  .store-badge { transition: none; }
  .store-badge:hover { transform: none; }
}

@media (max-width: 720px) {
  .store-badge-sm { display: none; }
}

/* ---- App screenshots -------------------------------------------------- */

.showcase { background: var(--chrome); }

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  align-items: start;
}

.shot { margin: 0; }

.shot figcaption {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink-secondary);
  margin-top: var(--sp-2);
  text-align: center;
}

.shot-wide {
  margin: var(--sp-6) auto 0;
  max-width: 720px;
}

/* Inline monospace for literal UI strings — SVG layer names, field values. */
.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* A single centred phone shot: same placement as .shot-wide, but held to
   phone width so the frame doesn't scale up to tablet size. */
.shot-solo {
  margin: var(--sp-6) auto 0;
  max-width: 360px;
}

@media (max-width: 900px) {
  .shots { grid-template-columns: 1fr; gap: var(--sp-5); max-width: 380px; margin: 0 auto; }
  .shot-wide { max-width: 100%; }
}

/* ---- Device frames (pure CSS, no image assets) ------------------------ */
/* Phone: dark bezel, screen clipped to inner radius. Screenshots already
   contain the iOS status bar / Dynamic Island, so no notch is drawn here. */
.device-frame {
  background: #1c1b22;
  border-radius: clamp(26px, 7vw, 44px);
  padding: clamp(7px, 1.8vw, 10px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    var(--shadow-tight),
    var(--shadow-diffuse);
}
.device-frame__screen {
  border-radius: clamp(18px, 5.4vw, 34px);
  overflow: hidden;
  background: #000;
}
.device-frame__screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* Tablet variant: slightly tighter bezel + radii */
.device-frame--tablet {
  border-radius: clamp(16px, 4vw, 26px);
  padding: clamp(8px, 1.6vw, 12px);
}
.device-frame--tablet .device-frame__screen {
  border-radius: clamp(9px, 2.8vw, 16px);
}

/* ---- Legal / support pages ------------------------------------------- */
.legal h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; }
.legal h2 { font-family: var(--font-display); font-size: 1.15rem; margin-top: var(--sp-5); margin-bottom: var(--sp-1); }
.legal p { margin-bottom: var(--sp-2); }
.legal a { color: var(--accent); }

/* ---- Footer links ----------------------------------------------------- */
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.footer-links { display: flex; gap: var(--sp-2); flex-wrap: wrap; justify-content: flex-end; }
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-links a:hover { color: var(--accent); border-bottom-color: var(--accent-line); }
.footer-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) {
  .footer-right { align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
  .footer-copy { text-align: left; }
}
