/* ============================================================================
   Gridscape · wolfden.pub
   "An author's plotting grid, come to life."
   Literary-editorial display type over a literal, structural grid.
   Palette + glass drawn from the app's gridscape-dark theme. Self-hosted fonts.
   ========================================================================= */

/* ---- Fonts --------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/lora-var.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/lora-italic-var.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../assets/fonts/caveat-var.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* Ink (gridscape-dark elevations) */
  --ink-0: #000000;
  --ink-1: #0d0a12;
  --ink-2: #1a1520;
  --ink-3: #252030;
  --ink-4: #322b40;

  /* Paper / text */
  --paper: #f0f0f0;
  --paper-dim: #a6a6b6;
  --paper-faint: #757586;

  /* Lines */
  --rule: #537596;                 /* steel-blue, the app border hue */
  --rule-soft: rgba(83, 117, 150, 0.22);
  --rule-faint: rgba(83, 117, 150, 0.10);

  /* Accents */
  --accent: #996100;               /* Gridscape amber (app UI accent) */
  --accent-bright: #e6a23c;        /* luminous amber for links/glow on dark */
  --accent-deep: #5e3c00;
  --gold: #d4af37;                 /* Wolfden antique gold (publisher accent) */
  --gold-soft: rgba(212, 175, 55, 0.16);
  --strike: #ec5b52;               /* red strike on the pre-release price */

  /* Glass */
  --glass: rgba(26, 21, 32, 0.62);        /* ~ink-2 */
  --glass-strong: rgba(37, 32, 48, 0.82); /* ~ink-3 */
  --glass-blur: 18px;
  --glass-edge: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(255, 255, 255, 0.06);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 50px 90px -30px rgba(0, 0, 0, 0.85);
  --glow-amber: 0 0 0 1px rgba(230, 162, 60, 0.18), 0 14px 50px -16px rgba(230, 162, 60, 0.42);

  /* Type */
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-hand: "Caveat", "Segoe Script", cursive;

  --fs-kicker: 0.8rem;
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-cap: 1rem;
  --fs-lede: clamp(1.2rem, 1.04rem + 0.74vw, 1.6rem);
  --fs-h3: clamp(1.32rem, 1.1rem + 1vw, 1.78rem);
  --fs-h2: clamp(2.5rem, 1.6rem + 4vw, 4.7rem);
  --fs-display: clamp(3rem, 1.7rem + 6.6vw, 8.2rem);

  /* Space */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.25rem;
  --sp-5: 3.25rem;
  --sp-6: 4.5rem;
  --sp-section: clamp(5rem, 3rem + 9vw, 10rem);

  /* Layout */
  --maxw: 1280px;
  --maxw-text: 760px;
  --gutter: clamp(1.25rem, 5vw, 3.25rem);
  --nav-h: 4.25rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;

  /* Grid motif sizing */
  --cell: 48px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--paper);
  background: var(--ink-0);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Atmosphere: graph-paper grid + soft amber dawn + vignette, fixed behind all. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to right, var(--rule-faint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule-faint) 1px, transparent 1px),
    radial-gradient(120% 75% at 50% -8%, rgba(230, 162, 60, 0.12), transparent 60%),
    radial-gradient(100% 100% at 50% 100%, var(--ink-1), var(--ink-0) 72%);
  background-size: var(--cell) var(--cell), var(--cell) var(--cell), 100% 100%, 100% 100%;
  background-position: center top;
  -webkit-mask-image: radial-gradient(150% 100% at 50% 0%, #000 52%, transparent 100%);
          mask-image: radial-gradient(150% 100% at 50% 0%, #000 52%, transparent 100%);
}

/* Fine grain overlay for tactile depth. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

::selection { background: rgba(230, 162, 60, 0.28); color: #fff; }

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

/* On-brand scrollbar (WebKit). */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ink-1); }
::-webkit-scrollbar-thumb {
  background: var(--ink-3);
  border: 3px solid var(--ink-1);
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

.skip-link {
  position: absolute;
  left: 50%;
  top: -3rem;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.75rem; }

/* ---- Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--sp-section);
}
.section + .section { padding-top: 0; }

.section-head {
  max-width: var(--maxw-text);
  margin-bottom: var(--sp-5);
}
.section-head.center { margin-inline: auto; text-align: center; }
.measure { max-width: var(--maxw-text); }

/* ---- Typography ---------------------------------------------------------- */
/* Kicker: monospace section label. A grid coordinate, never a dash. */
.kicker {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-kicker);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.kicker.center { justify-content: center; }
.kicker-i {
  color: var(--gold);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}
.kicker-i::after {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.55rem;
  border-radius: 1px;
  background: var(--gold);
  opacity: 0.7;
  transform: translateY(-1px);
}

h1, h2, h3, .section-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.014em;
}
.section-title { font-size: var(--fs-h2); margin-top: 0.9rem; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.18; }
.section-title em, h2 em, h1 em { font-style: italic; color: var(--accent-bright); font-weight: 500; }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--paper-dim);
  font-weight: 400;
}
.lede strong { color: var(--paper); font-weight: 600; }

p { color: var(--paper-dim); }
.text-accent { color: var(--accent-bright); }
.text-gold { color: var(--gold); }

/* Handwritten marginalia: the human voice in the margins of the grid. */
.shot-hand {
  font-family: var(--font-hand);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.05;
  color: var(--gold);
  font-weight: 600;
}

/* Clarifying caption under a screenshot: legible, not buried. */
.shot-cap {
  margin-top: 0.5rem;
  font-size: var(--fs-cap);
  line-height: 1.5;
  color: var(--paper-dim);
  max-width: 46ch;
}

/* ---- Glass surfaces ------------------------------------------------------ */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(125%);
          backdrop-filter: blur(var(--glass-blur)) saturate(125%);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 var(--glass-glow), var(--shadow);
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--paper);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}

.btn--primary {
  --btn-bg: var(--accent);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--glow-amber);
}
.btn--primary:hover {
  --btn-bg: #b87715;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(230, 162, 60, 0.3), 0 18px 60px -14px rgba(230, 162, 60, 0.6);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  border-color: var(--rule-soft);
  background: rgba(255, 255, 255, 0.02);
  color: var(--paper);
}
.btn--ghost:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  transform: translateY(-2px);
}

.btn[disabled], .btn--disabled {
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper-faint);
  border-color: var(--rule-faint);
  box-shadow: none;
}
.btn[disabled]:hover, .btn--disabled:hover { transform: none; box-shadow: none; }

.btn--lg { padding: 0.98rem 1.8rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ---- Pills / tags -------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.34rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule-soft);
  color: var(--paper-dim);
  background: rgba(255, 255, 255, 0.02);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--soon { color: var(--paper-faint); }

.usecases { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.usecases .pill { font-size: 0.74rem; }

/* ---- Navigation ---------------------------------------------------------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-inline: var(--gutter);
  background: rgba(10, 8, 14, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
          backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-nav.scrolled {
  background: rgba(10, 8, 14, 0.82);
  border-bottom-color: var(--rule-faint);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand img { width: 30px; height: 30px; }
.brand b { font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.7vw, 1.7rem);
}
.nav-links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
  padding: 0.4rem 0.1rem;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--accent-bright);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover { color: var(--paper); }
.nav-links a.is-active { color: var(--accent-bright); }
.nav-links a.is-active::after { right: 0; }

/* The single "Get Gridscape" item: an accent link, high contrast, not a low-contrast pill. */
.nav-links a.nav-cta {
  color: var(--accent-bright);
  font-weight: 600;
}
.nav-links a.nav-cta::before {
  content: "→";
  margin-right: 0.4rem;
  opacity: 0.7;
}
.nav-links a.nav-cta:hover { color: #ffce86; }

.nav-toggle {
  display: none;
  width: 2.6rem; height: 2.6rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--rule-soft);
  align-items: center; justify-content: center;
}
.nav-toggle span {
  position: relative;
  width: 18px; height: 2px; background: var(--paper);
  transition: background 0.2s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--paper);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-nav.is-open .nav-toggle span { background: transparent; }
.site-nav.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.site-nav.is-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5.5rem));
  padding-bottom: var(--sp-section);
  overflow: hidden;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy { max-width: 40rem; }

.hero-title {
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.026em;
  margin-top: 1.5rem;
}
/* Stacked, deterministic: every word on its own line, never an orphan. */
.hero-title span { display: block; }
.hero-title .is-em { font-style: italic; color: var(--accent-bright); font-weight: 500; }

.hero-lede { margin-top: 1.7rem; max-width: 34ch; }
.hero .btn-row { margin-top: 2.3rem; }

/* Hero figure (the signature screenshot) */
.hero-figure { position: relative; margin: 0; }
.shot {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-edge);
  background: var(--ink-1);
  box-shadow: var(--shadow-lg), inset 0 1px 0 var(--glass-glow);
  overflow: hidden;
}
.shot img { width: 100%; display: block; }
.shot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.shot--tilt { transform: perspective(1900px) rotateY(-4deg) rotateX(1.4deg); }

.hero-figure .shot-hand {
  display: inline-block;
  margin-top: 1.05rem;
  transform: rotate(-2deg);
}
.hero-figure .shot-cap { margin-top: 0.25rem; }

/* Decorative corner brackets: grid-cell corners, not dashes. */
.bracket { position: absolute; width: 28px; height: 28px; border: 2px solid var(--accent-bright); opacity: 0.5; }
.bracket.tl { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.bracket.br { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }

/* ---- Breadth band (overview: creative uses) ------------------------------ */
.breadth {
  margin-top: clamp(4rem, 4rem + 4vw, 8rem);
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.breadth-figure { position: relative; margin: 0; }
.breadth-figure .shot-hand { display: inline-block; margin-top: 0.9rem; transform: rotate(-2deg); }
.breadth-title { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 600; line-height: 1.06; letter-spacing: -0.014em; }
.breadth-copy > p { margin-top: 1.2rem; max-width: 42ch; }
.breadth-copy .usecases { margin-top: 1.6rem; }
.bridge {
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem);
  line-height: 1.4;
  color: var(--paper);
}

/* ---- Feature grid (echoes the product's grid) ---------------------------- */
.feature-grid {
  display: grid;
  gap: 1px;
  background: var(--rule-faint);
  border: 1px solid var(--rule-faint);
  border-radius: var(--r-lg);
  overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 21, 32, 0.6), rgba(13, 10, 18, 0.6));
  padding: clamp(1.6rem, 1rem + 1.8vw, 2.4rem);
  transition: background 0.4s var(--ease);
}
.feature:hover { background: linear-gradient(180deg, rgba(42, 34, 54, 0.72), rgba(20, 16, 28, 0.72)); }
.feature .f-ico {
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--rule-soft);
  color: var(--accent-bright);
  margin-bottom: 1.15rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.feature:hover .f-ico { border-color: rgba(230, 162, 60, 0.5); }
.feature .f-ico svg { width: 1.35rem; height: 1.35rem; }
.feature h3 { font-size: 1.22rem; margin-bottom: 0.5rem; }
.feature p { font-size: 0.97rem; line-height: 1.6; }
.feature .tag {
  position: absolute; top: 1.2rem; right: 1.2rem;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-bright); opacity: 0.7;
}

/* ---- Split (scripting) --------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.flip .split-media { order: -1; }
}
.stack { display: grid; gap: 1.2rem; align-content: start; }
.split-media { position: relative; margin: 0; }
.split-media .shot-hand { display: inline-block; margin-top: 0.9rem; transform: rotate(-1.6deg); }

.code-card {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.7;
  color: #cdd6e6;
  padding: 1.4rem 1.5rem;
  background: rgba(8, 6, 12, 0.72);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  overflow-x: auto;
}
.code-card .c-key { color: var(--accent-bright); }
.code-card .c-str { color: #9ad29a; }
.code-card .c-com { color: var(--paper-faint); font-style: italic; }
.code-card .c-tok { color: var(--gold); }

.cap-list {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  margin-top: 0.4rem;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.03em;
  color: var(--paper-dim);
}
.cap-list span { display: inline-flex; align-items: center; gap: 0.5rem; }
.cap-list span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-bright); }

/* ---- Gallery (screenshots) ----------------------------------------------- */
.gallery {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .gallery .tile { grid-column: span 3; }
  .gallery .tile.wide { grid-column: span 6; }
}
.tile { display: flex; flex-direction: column; gap: 0.85rem; margin: 0; }
.tile .shot { flex: 1; }
.tile figcaption {
  font-size: var(--fs-cap);
  line-height: 1.5;
  color: var(--paper-dim);
}
.tile figcaption b { color: var(--paper); font-weight: 600; }

/* ---- Get Gridscape ------------------------------------------------------- */
.get-grid {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 860px) { .get-grid { grid-template-columns: 1.04fr 1fr; } }

.offer {
  position: relative;
  padding: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem);
  display: flex;
  flex-direction: column;
  border-color: rgba(230, 162, 60, 0.4);
  box-shadow: var(--glow-amber), var(--shadow);
}
.offer-tier {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-bright);
}
.offer-price { display: flex; align-items: baseline; gap: 0.85rem; margin: 0.9rem 0 0.5rem; flex-wrap: wrap; }
.offer-was {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem);
  font-weight: 500; line-height: 1; color: var(--paper-faint);
  text-decoration: line-through;
  text-decoration-color: var(--strike);
  text-decoration-thickness: 3px;
}
.offer-now {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 3vw, 4.4rem);
  font-weight: 600; line-height: 1; color: var(--paper);
}
.offer-sub { font-size: 0.98rem; }
.offer-list { display: grid; gap: 0.75rem; margin: 1.5rem 0 1.9rem; }
.offer-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.98rem; color: var(--paper-dim); }
.offer-list li svg { width: 1.12rem; height: 1.12rem; flex: none; margin-top: 0.3rem; color: var(--accent-bright); }
.offer .btn { width: 100%; }
.offer-note {
  margin-top: 0.95rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.03em;
  color: var(--paper-faint); text-align: center;
}

.avail { display: flex; flex-direction: column; gap: 0.85rem; }
.avail-head {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--paper-faint); margin-bottom: 0.2rem;
}
.avail-row {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--rule-faint);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.avail-row:hover { border-color: var(--rule-soft); background: rgba(255, 255, 255, 0.03); }
.avail-row--primary { border-color: rgba(230, 162, 60, 0.4); background: rgba(230, 162, 60, 0.05); }
.avail-row--primary:hover { border-color: rgba(230, 162, 60, 0.6); background: rgba(230, 162, 60, 0.08); }
.avail-dl { padding: 0.55rem 1.3rem; font-size: 0.85rem; }
.avail-row .os {
  width: 2.6rem; height: 2.6rem; flex: none;
  display: grid; place-items: center;
  color: var(--paper); border-radius: var(--r-sm);
  border: 1px solid var(--rule-soft);
}
.avail-row .os svg { width: 1.4rem; height: 1.4rem; }
.avail-row .meta { margin-right: auto; display: flex; flex-direction: column; }
.avail-row .meta b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.avail-row .meta span { font-size: 0.85rem; color: var(--paper-faint); }
.avail-free { margin-top: 0.6rem; font-size: 0.92rem; color: var(--paper-faint); line-height: 1.55; }

/* ---- Contact ------------------------------------------------------------- */
.contact-card { text-align: center; padding: clamp(2.4rem, 1.5rem + 3.4vw, 4.4rem); }
.contact-card .section-title { margin-top: 0.4rem; }
.mail-link {
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 0.9rem + 1.3vw, 1.7rem);
  color: var(--accent-bright);
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.mail-link:hover { border-bottom-color: currentColor; }
.figure-note {
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--paper-faint); letter-spacing: 0.03em;
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: var(--sp-section);
  border-top: 1px solid var(--rule-faint);
  background: linear-gradient(180deg, transparent, rgba(8, 6, 12, 0.6));
  padding-block: var(--sp-6) var(--sp-4);
}
.footer-grid {
  display: grid; gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand img.mark { width: 40px; height: 40px; margin-bottom: 1rem; }
.footer-brand .wordmark { height: 26px; width: auto; margin-bottom: 1rem; opacity: 0.92; }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--paper-faint); margin-bottom: 1rem;
}
.footer-col a { display: block; color: var(--paper-dim); padding: 0.3rem 0; font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent-bright); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; justify-content: space-between;
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--rule-faint);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--paper-faint);
}
.footer-bottom .gold { color: var(--gold); }

/* ---- Legal pages (privacy / terms) --------------------------------------- */
.legal {
  padding-top: calc(var(--nav-h) + clamp(2rem, 4vw, 3.5rem));
  padding-bottom: var(--sp-6);
}
.legal-head {
  max-width: var(--maxw-text);
  margin-inline: auto;
  margin-bottom: var(--sp-4);
}
.legal-meta {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  color: var(--paper-faint);
}

.legal-body {
  max-width: var(--maxw-text);
  margin-inline: auto;
  color: var(--paper-dim);
}
/* Restore document semantics inside pasted legal HTML: the base reset strips
   list bullets and link styling, and generators emit plain semantic markup. */
.legal-body h1 { font-size: var(--fs-h2); color: var(--paper); margin: 0 0 1.2rem; }
.legal-body h2 { font-size: var(--fs-h3); color: var(--paper); margin: 2.4rem 0 0.9rem; }
.legal-body h3 { font-size: 1.18rem; color: var(--paper); margin: 1.8rem 0 0.6rem; }
.legal-body h4 {
  font-family: var(--font-body); font-weight: 600; font-size: 1.02rem;
  color: var(--paper); margin: 1.4rem 0 0.5rem;
}
.legal-body p { margin: 0 0 1.1rem; }
.legal-body ul, .legal-body ol { margin: 0 0 1.1rem; padding-left: 1.45rem; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li { margin: 0.3rem 0; }
.legal-body li::marker { color: var(--accent-bright); }
.legal-body a {
  color: var(--accent-bright);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.legal-body a:hover { border-bottom-color: currentColor; }
.legal-body strong, .legal-body b { color: var(--paper); font-weight: 600; }
.legal-body table {
  width: 100%; border-collapse: collapse;
  margin: 0 0 1.3rem; font-size: 0.95rem;
}
.legal-body th, .legal-body td {
  text-align: left; padding: 0.6rem 0.8rem;
  border: 1px solid var(--rule-faint);
}
.legal-body th { color: var(--paper); font-weight: 600; }

/* Visible draft notice: an accent callout, obvious and easy to delete once the
   generated legal text is pasted in its place. */
.legal-placeholder {
  margin-top: 1.5rem;
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  background: rgba(230, 162, 60, 0.05);
}
.legal-placeholder p { margin: 0 0 0.7rem; color: var(--paper-dim); }
.legal-placeholder p:last-child { margin-bottom: 0; }
.legal-placeholder .legal-note-label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-bright);
}

/* ---- Inline prose helpers ------------------------------------------------ */
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--accent-bright);
  background: rgba(230, 162, 60, 0.09);
  padding: 0.12em 0.42em;
  border-radius: var(--r-xs);
}
blockquote { margin: 0; }
figure { margin: 0; }

/* ---- Reveal-on-scroll (JS adds .in) -------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.8rem);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js [data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-d="1"] { transition-delay: 0.09s; }
[data-reveal][data-d="2"] { transition-delay: 0.18s; }
[data-reveal][data-d="3"] { transition-delay: 0.27s; }

/* Hero load stagger (CSS-only, above the fold) */
@keyframes rise {
  from { opacity: 0; transform: translateY(2rem); }
  to   { opacity: 1; transform: none; }
}
.hero [data-load] { animation: rise 0.95s var(--ease-out) backwards; }
.hero [data-load="1"] { animation-delay: 0.05s; }
.hero [data-load="2"] { animation-delay: 0.16s; }
.hero [data-load="3"] { animation-delay: 0.3s; }
.hero [data-load="4"] { animation-delay: 0.44s; }

/* ---- Responsive ---------------------------------------------------------- */
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.12fr); }
  .breadth { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

@media (max-width: 960px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.2rem;
    background: rgba(10, 8, 14, 0.97);
    -webkit-backdrop-filter: blur(16px);
            backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rule-faint);
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 0.9rem 0; font-size: 0.92rem; border-bottom: 1px solid var(--rule-faint); }
  .nav-links a::after { display: none; }
  .nav-links a.nav-cta::before { content: none; }
  .nav-toggle { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .shot--tilt { transform: none; }
}
