/* ==========================================================================
   song.tools — marketing site
   Warm editorial structure ("The Writer's Desk", design-contest winner)
   dressed in the runner-up's midnight palette per the owner's call:
   the product app's midnight theme — warm deep darks, ivory ink, amber +
   teal accents. Fraunces display, IBM Plex Sans body, IBM Plex Mono labels.
   ========================================================================== */

/* ---------- Self-hosted fonts (latin subsets) ---------- */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-normal-400-650.woff2") format("woff2");
  font-weight: 400 650;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-italic-400-650.woff2") format("woff2");
  font-weight: 400 650;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-normal-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-normal-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-normal-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-italic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-normal-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-normal-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  /* midnight (from the app) */
  --paper: #1d1c1a;         /* page background */
  --paper-deep: #2a2622;    /* raised warm dark */
  --card: #2b2723;
  --card-bright: #322e29;
  --ink: #f2ede6;           /* 13.9:1 on paper */
  --ink-soft: #d5cdc2;      /* body copy — 10.4:1 on paper */
  --muted: #b3aaa0;         /* 7.4:1 on paper, 5.9:1 on cards */
  --orange: #f0a641;        /* amber — 8.3:1 on paper, safe at any size */
  --orange-deep: #f0a641;   /* small-text accent (same amber; passes everywhere) */
  --teal: #66c4b5;          /* 8.2:1 on paper */

  /* deeper bands (coming-soon + footer sit below the page tone) */
  --night: #171614;
  --night-2: #121110;
  --night-card: #2b2723;
  --night-ink: #f2ede6;
  --night-muted: #b3aaa0;
  --amber: #f0a641;
  --teal-bright: #66c4b5;

  /* rules & shadows */
  --hairline: rgba(242, 237, 230, 0.14);
  --hairline-strong: rgba(242, 237, 230, 0.30);
  --hairline-dark: rgba(242, 237, 230, 0.14);
  --radius: 14px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.45),
                 0 24px 48px -20px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.35),
                 0 10px 24px -12px rgba(0, 0, 0, 0.5);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Reset & base ---------- */

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* Kill switch: no motion of any kind for users who ask for none. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;               /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(180deg, #242019 0%, var(--paper) 340px);
  background-color: var(--paper);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
p + p { margin-top: 1em; }

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

a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }

::selection { background: rgba(240, 166, 65, 0.32); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
.band-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--amber);
}

.container {
  max-width: 71.25rem; /* 1140px */
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--paper); }

/* ---------- Shared editorial atoms ---------- */

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.1rem;
}

.lede {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.asterism {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.9em;
  color: var(--orange);
  text-align: center;
  margin-bottom: 1.4rem;
  padding-left: 0.9em; /* optically recenter the letter-spaced dots */
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  color: #171614;
  background: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}
.btn:hover { background: #f4b862; border-color: #f4b862; color: #171614; }

.link-arrow {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.ruled { border-top: 1px solid var(--hairline); }

.section-head { max-width: 46rem; }
.section-head h2 {
  font-size: clamp(1.85rem, 1.15rem + 2.6vw, 2.8rem);
}
.section-head .lede { margin-top: 1.2rem; }

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

.site-header {
  border-bottom: 1px solid var(--hairline);
  background: rgba(29, 28, 26, 0.88);
  backdrop-filter: blur(6px);
}

.site-header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  padding-block: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  padding-block: 0.3rem;
}
.brand img { width: 26px; height: auto; }
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.wordmark .dot { color: var(--orange); }

.site-nav { display: flex; align-items: center; gap: clamp(0.2rem, 1.5vw, 0.9rem); }
.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.75rem 0.55rem;  /* ≥44px touch targets */
  border-radius: 8px;
}
.site-nav a:hover { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 4px; }
.site-nav a[aria-current="page"] {
  color: var(--orange-deep);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 5px;
}

/* The app lives on the apex domain; www is the marketing site. Anyone who
   lands here looking for their account gets an unmissable door. */
.site-nav .login {
  color: var(--amber);
  border: 1px solid rgba(240, 166, 65, 0.55);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  margin-left: 0.35rem;
  white-space: nowrap;
}
.site-nav .login:hover {
  background: var(--amber);
  color: #171614;
  text-decoration: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(102, 196, 181, 0.45);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  white-space: nowrap;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
@media (prefers-reduced-motion: no-preference) {
  .status-dot { animation: pulse 2.6s ease-in-out infinite; }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
  }
}

@media (max-width: 40em) {
  .site-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: space-between;
    gap: 0;
    border-top: 1px solid var(--hairline);
    margin-top: 0.25rem;
  }
  .site-nav a { padding: 0.85rem 0.4rem; }
  .status-pill { padding: 0.36rem 0.7rem; }
}

/* ---------- Hero (home) ---------- */

.hero { text-align: center; padding-block: clamp(4rem, 10vw, 7.5rem) 0; }

.hero .eyebrow { color: var(--orange-deep); }

.hero h1 {
  font-size: clamp(2.25rem, 1rem + 4.8vw, 4.5rem);
  font-weight: 590;
  line-height: 1.04;
  max-width: 18ch;
  margin-inline: auto;
}
.hero h1 em {
  font-style: italic;
  font-weight: 540;
}

.hero .lede {
  margin: 1.6rem auto 0;
}

.hero-cta {
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem 1.8rem;
}

/* The hero figure sits on a tinted backdrop band so the screenshot frame
   separates from the paper (judge fix: figure/ground). */
.hero-stage {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  background:
    radial-gradient(90% 130% at 50% 115%, rgba(240, 166, 65, 0.13) 0%, rgba(240, 166, 65, 0.05) 55%, rgba(240, 166, 65, 0) 100%);
}
.hero-figure {
  max-width: 60rem;
  margin: 0 auto;
  text-align: left;
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% -40%, rgba(240, 166, 65, 0.08) 0%, rgba(240, 166, 65, 0) 70%);
}
.page-hero h1 {
  font-size: clamp(2.1rem, 1.1rem + 3.6vw, 3.6rem);
  max-width: 22ch;
  margin-inline: auto;
}
.page-hero .lede { margin-top: 1.4rem; margin-inline: auto; }
.crumbs {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--orange-deep); }
.crumbs .sep { margin-inline: 0.5rem; color: var(--orange); }

/* ---------- Screenshot slots ---------- */

.screenshot-slot { margin: 0; }

.screenshot-slot .frame {
  background: var(--card-bright);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  background: var(--card);
  border-bottom: 1px solid var(--hairline);
}
.frame-bar i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(242, 237, 230, 0.22);
}
.frame-title {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-inline: auto;
  transform: translateX(-21px); /* optically center against the dots */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewport {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--card-bright);
}
/* Real screenshots drop in edge-to-edge (adopted from Option C). */
.viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* Screenshots link to their full-size capture — no JS, just a bigger tab. */
.viewport a.zoom {
  position: absolute;
  inset: 0;
  display: block;
  cursor: zoom-in;
}
.viewport a.zoom:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -3px;
}
.phone .phone-body a {
  display: block;
  cursor: zoom-in;
}

/* ---------- Lightbox (js/lightbox.js) ---------- */

dialog.lb {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
dialog.lb::backdrop {
  background: rgba(18, 17, 16, 0.92);
}
.lb-stage {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.lb-stage img {
  max-width: 94vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  cursor: pointer;
}
.lb-stage { cursor: pointer; }
.lb-close {
  position: fixed;
  top: 0.9rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: rgba(29, 28, 26, 0.85);
  color: var(--night-ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lb-close:hover { background: var(--amber); color: #171614; border-color: var(--amber); }

/* The printed-chart figure: a paper sheet, not a browser frame. */
.sheet {
  margin: 0;
}
.sheet .sheet-body {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline-strong);
}
.sheet img { width: 100%; height: auto; display: block; }
.sheet a { display: block; cursor: zoom-in; }
.sheet figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.9rem;
}

.screenshot-slot figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1rem;
  padding-inline: 1rem;
}

.frame-dark { background: var(--night); border-color: rgba(0, 0, 0, 0.4); }
.frame-dark .frame-bar { background: var(--night-2); border-bottom-color: var(--hairline-dark); }
.frame-dark .frame-bar i { background: rgba(242, 237, 230, 0.22); }
.frame-dark .frame-title { color: var(--night-muted); }
.frame-dark .viewport { background: var(--night); }

/* Phone frames (real mobile captures) */
.phone-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 34rem;
  margin-inline: auto;
  align-items: start;
}
.phone {
  margin: 0;
}
.phone .phone-body {
  border: 1px solid var(--hairline-strong);
  border-radius: 26px;
  padding: 8px;
  background: var(--card-bright);
  box-shadow: var(--shadow-card);
}
.phone img {
  border-radius: 18px;
  width: 100%;
  height: auto;
}
.phone figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.9rem;
}

/* ---------- Mock atoms (CSS diagrams, kept from the prototype) ---------- */

.mock-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 8px;
}
.mock-section {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 14px 0 6px;
}
.mock-chords {
  display: flex;
  justify-content: space-between;
  max-width: 78%;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--orange-deep);
  margin-bottom: 1px;
}

/* the editor's two-views diagram */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.8rem, 2vw, 1.25rem);
  align-items: stretch;
}
.view-card {
  background: var(--card-bright);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.1rem 1.2rem;
  font-size: 12.5px;
  line-height: 1.55;
  overflow: hidden;
}
.view-card.tilt-l { transform: rotate(-0.6deg); }
.view-card.tilt-r { transform: rotate(0.6deg); }
.view-card .mock-label { margin-bottom: 10px; }
.view-card .mock-label.on { color: var(--teal); }
.view-card .mock-section { margin: 8px 0 4px; }
.view-card .mock-section:first-of-type { margin-top: 0; }
.view-card .mock-chords { font-size: 10px; max-width: 92%; }
.view-card p { margin: 0 0 4px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-card .dim { color: var(--muted); font-style: italic; }
/* Text mode shows chords as inline [brackets] — mirror the app's mono buffer */
.view-card .mock-textline {
  font-family: var(--mono);
  font-size: 10.5px;
}

/* ---------- Two spaces ---------- */

.spaces {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: stretch;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}

.space-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-soft);
}
.space-card .eyebrow { margin-bottom: 0.7rem; }
.space-card h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
.space-card > p { margin-top: 0.9rem; color: var(--ink-soft); }

.space-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  font-size: 0.95rem;
}
.space-list li {
  border-top: 1px solid var(--hairline);
  padding: 0.55rem 0;
  color: var(--ink-soft);
}
.space-list li::before {
  content: "—";
  color: var(--teal);
  margin-right: 0.6rem;
}

.spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 5.5rem;
}
.spine::before, .spine::after {
  content: "";
  width: 1px;
  flex: 1 1 1.5rem;
  background: var(--hairline-strong);
}
.spine-node {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--card-bright);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
}
.spine-node img { width: 30px; height: auto; }
.spine-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-block: 0.7rem;
}

.spaces-note {
  max-width: 46rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  text-align: center;
}
.spaces-note p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
}
.spaces-note strong { font-style: normal; font-weight: 600; color: var(--ink); }

/* ---------- Features ---------- */

.cluster { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.cluster:first-of-type { margin-top: clamp(2rem, 4vw, 3rem); }
.cluster-head {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
}
.cluster-head h3, .cluster-head h2 {
  font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem);
  white-space: nowrap;
}
.cluster-head .where {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.cluster-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
  transform: translateY(-0.35em);
}

.feat {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-top: clamp(2.75rem, 5vw, 4rem);
}
.feat-copy h4, .feat-copy h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.7rem); }
.feat-copy p { margin-top: 0.9rem; color: var(--ink-soft); }
.feat-copy .kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-deep);
  display: block;
  margin-bottom: 0.8rem;
}
.feat.flip .feat-copy { order: 2; }
.feat.flip .feat-visual { order: 1; }

/* small features */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 2.25rem 2.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.mini {
  border-top: 1px solid var(--hairline-strong);
  padding-top: 1.1rem;
}
.mini .no {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--orange-deep);
  display: block;
  margin-bottom: 0.55rem;
}
.mini h4 { font-size: 1.2rem; }
.mini p { margin-top: 0.55rem; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Audiences ---------- */

.aud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}

.aud-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
}
.aud-card .eyebrow { margin-bottom: 0.7rem; }
.aud-card h3 { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.8rem); }
.aud-card > p { margin-top: 1rem; color: var(--ink-soft); }

.dropcap::first-letter {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 3.3em;
  line-height: 0.8;
  float: left;
  padding: 0.06em 0.12em 0 0;
  color: var(--orange);
}

.proof {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  font-size: 0.95rem;
  margin-top: auto;
  padding-top: 1.6rem;
}
.proof li {
  border-top: 1px solid var(--hairline);
  padding: 0.6rem 0;
  color: var(--ink-soft);
}
.proof li::before {
  content: "—";
  color: var(--teal);
  margin-right: 0.6rem;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 46rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline-strong);
}
.faq-list details {
  border-bottom: 1px solid var(--hairline);
}
.faq-list summary {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 560;
  padding: 1.1rem 0.2rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--orange-deep);
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details > p {
  padding: 0 0.2rem 1.3rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- Simple prose pages (pricing / early access / 404) ---------- */

.prose-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  max-width: 46rem;
}
.prose-card p { color: var(--ink-soft); }
.prose-card p + p { margin-top: 1em; }
.prose-card .proof { margin-top: 1.4rem; padding-top: 0; }

/* ---------- Interest form (early access) ---------- */

.hand-form { margin-top: 1.6rem; }
.hand-form .field { margin-bottom: 1.1rem; }
.hand-form label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.hand-form input,
.hand-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
}
.hand-form input:focus-visible,
.hand-form textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}
.hand-form textarea { min-height: 7.5rem; resize: vertical; }
.hand-form ::placeholder { color: var(--muted); opacity: 0.7; }
.hand-form .btn { margin-top: 0.4rem; }
.hand-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
/* Honeypot: visually gone, still in the DOM for bots to find. */
.hand-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Coming-soon band + footer (midnight) ---------- */

.band-dark {
  background: var(--night);
  color: var(--night-ink);
  text-align: center;
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
}
.band-dark .mark-jewel { width: 46px; margin: 0 auto 1.6rem; }
.band-dark .eyebrow { color: var(--amber); }
.band-dark h2 {
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem);
  color: var(--night-ink);
  max-width: 20ch;
  margin-inline: auto;
}
.band-dark .lede {
  color: var(--night-muted);
  margin: 1.4rem auto 0;
  max-width: 56ch;
}
.band-dark .lede a { color: var(--amber); }
.band-dark .lede a:hover { color: var(--night-ink); }
.band-dark .btn {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--night-2);
  margin-top: 2.2rem;
}
.band-dark .btn:hover { background: #f4b862; border-color: #f4b862; color: var(--night-2); }
.band-note {
  margin-top: 2.2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.site-footer {
  background: var(--night-2);
  color: var(--night-muted);
  border-top: 1px solid var(--hairline-dark);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.25rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
}
.footer-brand img { height: 120px; width: auto; margin: -10px 0 0 -12px; }
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--night-muted);
  max-width: 26ch;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.15rem; }
.footer-nav a {
  color: var(--night-ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding-block: 0.35rem;
}
.footer-nav a:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 4px; }
.footer-col .footer-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--night-muted);
  margin-bottom: 0.9rem;
}
.footer-legal { font-size: 0.85rem; }

.footer-bottom {
  border-top: 1px solid var(--hairline-dark);
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

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

@media (max-width: 56.25em) { /* 900px */
  .feat { grid-template-columns: 1fr; gap: 1.75rem; }
  .feat.flip .feat-copy { order: 1; }
  .feat.flip .feat-visual { order: 2; }
  .aud-grid { grid-template-columns: 1fr; }
}

@media (max-width: 53.75em) { /* 860px */
  .spaces { grid-template-columns: 1fr; }
  .spine { flex-direction: row; min-width: 0; width: 100%; gap: 0; }
  .spine::before, .spine::after { width: auto; height: 1px; flex: 1 1 2rem; }
  .spine-node { margin-inline: 1rem; width: 60px; height: 60px; }
  .spine-node img { width: 26px; }
  .spine-label { display: none; }
}

@media (max-width: 40em) { /* 640px — phone pairs stack */
  .phone-duo { grid-template-columns: 1fr; }
}

@media (max-width: 32.5em) { /* 520px */
  .duo { grid-template-columns: 1fr; }
  .cluster-head { flex-wrap: wrap; gap: 0.4rem 1.1rem; }
  .cluster-head h3, .cluster-head h2 { white-space: normal; }
  .footer-brand img { height: 96px; }
}
