/* YSS Web Studio single-page site
   Tokens, both themes, then layout, then the animation system. */

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

:root {
  --paper: #fffdfb;
  --ink: #1b1b1b;
  --ink-soft: #595959;
  --line: #eadfdc;
  --blush: #fdf1f0;
  --red: #c73e28;
  --red-deep: #5d180d;
  --btn-ink: #fffdfb;
  --nav-bg: rgba(255, 253, 251, 0.82);
  --shadow: 0 12px 32px rgba(93, 24, 13, 0.07);
  --pulse: rgba(199, 62, 40, 0.45);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Seravek", "Avenir Next", "Gill Sans", "Trebuchet MS", system-ui, sans-serif;
  --mono: ui-monospace, Menlo, monospace;

  /* Dark values live once; both dark contexts map from these. */
  --d-paper: #14100f;
  --d-ink: #f5efec;
  --d-ink-soft: #a89f9a;
  --d-line: #2e2825;
  --d-blush: #1d1715;
  --d-red: #e05a41;
  --d-btn-ink: #14100f;
  --d-nav-bg: rgba(20, 16, 15, 0.82);
  --d-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --d-pulse: rgba(224, 90, 65, 0.5);

  color-scheme: light;
}

[data-theme="dark"] {
  --paper: var(--d-paper);
  --ink: var(--d-ink);
  --ink-soft: var(--d-ink-soft);
  --line: var(--d-line);
  --blush: var(--d-blush);
  --red: var(--d-red);
  --btn-ink: var(--d-btn-ink);
  --nav-bg: var(--d-nav-bg);
  --shadow: var(--d-shadow);
  --pulse: var(--d-pulse);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: var(--d-paper);
    --ink: var(--d-ink);
    --ink-soft: var(--d-ink-soft);
    --line: var(--d-line);
    --blush: var(--d-blush);
    --red: var(--d-red);
    --btn-ink: var(--d-btn-ink);
    --nav-bg: var(--d-nav-bg);
    --shadow: var(--d-shadow);
    --pulse: var(--d-pulse);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.4rem, 4.5vw + 1.2rem, 4.2rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.8rem, 2.4vw + 1rem, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--red);
}

svg {
  display: block;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

/* The red ring sits below 3:1 on the deep-red bands in light theme. */
.announce :focus-visible,
.closing :focus-visible {
  outline-color: #fffdfb;
}

/* Same problem for the skip link, which lands over the announce bar; the
   negative offset keeps the ring on the link's own chip. */
.skip-link:focus-visible {
  outline-color: #fffdfb;
  outline-offset: -5px;
}

main:focus {
  outline: none;
}

/* These two controls do nothing without JS; hide them like the hamburger. */
html:not(.js) .theme-toggle,
html:not(.js) .announce-dismiss {
  display: none;
}

/* Pre-paint hero hold: set by an inline head script so the entrance never
   flashes, cleared by app.js (or its own 2.5s failsafe). Motion-only. */
@media (prefers-reduced-motion: no-preference) {
  html.anim-pending .hero .eyebrow,
  html.anim-pending .hero h1,
  html.anim-pending .hero-sub,
  html.anim-pending .hero-ctas,
  html.anim-pending .cred li {
    opacity: 0;
  }
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.wrap.narrow {
  max-width: 820px;
}

.center {
  text-align: center;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--red-deep);
  color: #f5efec;
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.65em 1.35em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-lg {
  padding: 0.85em 1.7em;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--red);
  color: var(--btn-ink);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--red);
}

.btn-invert {
  background: #fffdfb;
  color: var(--red-deep);
}

/* ---------- Announcement bar ---------- */

.announce {
  background: var(--red-deep);
  color: #f5efec;
}

.announce[hidden],
.no-announce .announce {
  display: none;
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-block: 0.55rem;
  font-size: 0.92rem;
}

.announce p {
  margin: 0;
}

.announce a {
  color: #fff;
  text-underline-offset: 3px;
}

.announce-dismiss {
  flex: none;
  display: inline-flex;
  padding: 0.3rem;
  border-radius: 6px;
  opacity: 0.85;
}

.announce-dismiss:hover {
  opacity: 1;
}

.announce-dismiss svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
}

/* ---------- Nav ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-head.scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4rem;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-inline: auto;
  flex-wrap: wrap;
}

.js .nav-links {
  position: relative;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

/* Active-section pill (element injected by app.js, desktop only) */

.nav-pill {
  display: none;
}

@media (min-width: 768px) {
  .js .nav-pill {
    display: block;
    position: absolute;
    left: 0;
    top: calc(50% - 16px);
    height: 32px;
    width: 0;
    border-radius: 999px;
    background: var(--blush);
    border: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
  }

  .js .nav-links a {
    position: relative;
    z-index: 1;
  }

  .js .nav-links a.is-active {
    color: var(--red);
  }
}

.nav-links a:hover {
  color: var(--red);
}

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: var(--btn-ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
}

.nav-links + .nav-actions {
  margin-left: 0;
}

.theme-toggle,
.hamburger {
  display: inline-flex;
  padding: 0.45rem;
  border-radius: 8px;
  color: var(--ink);
}

.theme-toggle:hover,
.hamburger:hover {
  color: var(--red);
}

.theme-toggle svg,
.hamburger svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Icon swap: show the theme you would switch to */
.icon-sun {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .icon-moon {
    display: none;
  }
}

.hamburger {
  display: none;
}

.nav-cta-m {
  display: none;
}

@media (max-width: 767px) {
  .nav {
    gap: 0.75rem;
  }

  /* Without JS the desktop nav renders here; let it wrap instead of clipping
     under body's overflow-x: clip. */
  html:not(.js) .nav {
    flex-wrap: wrap;
    padding-block: 0.5rem;
  }

  .js .nav-cta {
    display: none;
  }

  .js .hamburger {
    display: inline-flex;
  }

  .js .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    box-shadow: var(--shadow);
  }

  .js .nav-links.open {
    display: flex;
  }

  .js .nav-links a {
    padding: 0.7rem 0;
    font-size: 1.05rem;
  }

  .js .nav-links .nav-cta-m {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 0.75rem;
    padding: 0.65em 1.35em;
  }
}

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

.section {
  padding-block: clamp(3.5rem, 9vw, 6.25rem);
}

.band {
  background: var(--blush);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.sub {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.caption {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-style: italic;
  margin-top: 1rem;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin: clamp(2.5rem, 6vw, 4rem) 0 1.25rem;
}

/* ---------- Cards ---------- */

.card {
  background: var(--blush);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
}

.band .card {
  background: var(--paper);
}

.card > :last-child {
  margin-bottom: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5rem);
}

/* Very subtle gradient drift behind the cover and closing bands.
   Pure CSS, transform only; the global reduced-motion kill stops it. */

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(620px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  left: -12%;
  top: -28%;
  background: radial-gradient(circle closest-side, rgba(199, 62, 40, 0.055), transparent 72%);
}

.hero::after {
  right: -14%;
  bottom: -34%;
  background: radial-gradient(circle closest-side, rgba(93, 24, 13, 0.05), transparent 72%);
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle closest-side, rgba(224, 90, 65, 0.07), transparent 72%);
}

[data-theme="dark"] .hero::after {
  background: radial-gradient(circle closest-side, rgba(224, 90, 65, 0.045), transparent 72%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero::before {
    background: radial-gradient(circle closest-side, rgba(224, 90, 65, 0.07), transparent 72%);
  }

  :root:not([data-theme="light"]) .hero::after {
    background: radial-gradient(circle closest-side, rgba(224, 90, 65, 0.045), transparent 72%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: drift-a 22s ease-in-out infinite alternate;
  }

  .hero::after {
    animation: drift-b 26s ease-in-out infinite alternate;
  }
}

@keyframes drift-a {
  to {
    transform: translate(9%, 12%) scale(1.14);
  }
}

@keyframes drift-b {
  to {
    transform: translate(-10%, -9%) scale(0.92);
  }
}

/* Split-word masks for the staged headline rise (built by app.js) */

.wmask {
  display: inline-block;
  overflow: hidden;
  overflow: clip;
  padding: 0.14em 0.04em;
  margin: -0.14em -0.04em;
}

.wmask .w {
  display: inline-block;
  will-change: transform;
}

.hero-inner {
  text-align: center;
  max-width: 60rem;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.h1-line {
  display: block;
}

.hero-sub {
  max-width: 42rem;
  margin: 1.25rem auto 2rem;
  font-size: clamp(1.05rem, 1vw + 0.9rem, 1.25rem);
  color: var(--ink-soft);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.cred {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  padding: 0;
  margin: 2.25rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.cred li {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.cred svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Accent word with the pen-stroke underline */

.accent {
  position: relative;
  display: inline-block;
}

.accent .stroke {
  position: absolute;
  left: -3%;
  bottom: -0.24em;
  width: 106%;
  height: 0.34em;
  overflow: visible;
  pointer-events: none;
}

.accent .stroke path {
  fill: none;
  stroke: var(--red);
  stroke-width: 6;
  stroke-linecap: round;
}

/* CSS fallback draw for no-JS and no-anime visitors; when the anime.js
   timeline runs (html.anim) it drives the dash attributes itself. */
@media (prefers-reduced-motion: no-preference) {
  html:not(.anim) .accent .stroke path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: pen-stroke 0.8s cubic-bezier(0.55, 0, 0.3, 1) 0.5s forwards;
  }
}

@keyframes pen-stroke {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  text-align: center;
}

.zero-stats {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.stat-num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1.1;
}

/* Odometer digits (built by app.js inside .stat-num .count) */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.od {
  display: inline-flex;
  font-variant-numeric: tabular-nums;
}

.od-col {
  display: block;
  height: 1em;
  overflow: hidden;
  overflow: clip;
}

.od-strip {
  display: block;
  will-change: transform;
}

.od-d {
  display: block;
  height: 1em;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.stats-sm {
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.stats-sm .stat-num {
  font-size: 1.7rem;
}

.stats-sm .stat-label {
  font-size: 0.82rem;
}

/* ---------- The fix / live feed ---------- */

.fix-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .fix-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}

.feed-card {
  box-shadow: var(--shadow);
  padding: 1.4rem 1.4rem 1.1rem;
}

.feed-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.feed-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}

@media (prefers-reduced-motion: no-preference) {
  .dot {
    animation: pulse 1.8s ease-out infinite;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--pulse);
  }

  70% {
    box-shadow: 0 0 0 9px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed li {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.55;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

@media (prefers-reduced-motion: no-preference) {
  .js .feed li:nth-child(n + 5) {
    display: none;
  }
}

/* The item fading out is the 5th child for a moment; keep it visible.
   Needs the .js prefix to outweigh the nth-child cap above. */
.js .feed li.feed-exit {
  display: list-item;
}

.feed .t,
.timeline .t {
  color: var(--red);
  font-weight: 700;
  margin-right: 0.35em;
}

.feed-note {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* Class-driven fallback rotation; the anime.js path (html.anim) springs
   heights and opacity inline instead. */
@media (prefers-reduced-motion: no-preference) {
  html:not(.anim) .feed li.feed-enter {
    animation: feed-in 0.45s ease-out;
  }

  html:not(.anim) .feed li.feed-exit {
    opacity: 0;
    transition: opacity 0.35s ease;
  }
}

@keyframes feed-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- How it works ---------- */

.how-icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 0.9rem;
}

/* ---------- The score ---------- */

.score-rows {
  display: grid;
  gap: 1.4rem;
}

.score-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.score-label {
  font-weight: 600;
}

.score-num {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.bar {
  height: 12px;
  border-radius: 999px;
  background: var(--blush);
  border: 1px solid var(--line);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: var(--ink-soft);
  opacity: 0.55;
}

.is-ws .bar-fill {
  background: var(--red);
  opacity: 1;
}

.is-ws .score-num {
  color: var(--red);
}

@media (prefers-reduced-motion: no-preference) {
  .bar-fill {
    transition: width 1.1s cubic-bezier(0.2, 0.7, 0.3, 1);
  }

  /* The anime.js driver writes width per frame; a transition would fight it. */
  html.anim .bar-fill {
    transition: none;
  }

  .js .score-rows:not(.in) .bar-fill {
    width: 0;
  }
}

.dims {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.9rem 2rem;
  padding: 0;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.dims strong {
  color: var(--ink);
}

/* ---------- A night on the job ---------- */

.night-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 820px) {
  .night-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.night-panel h3 {
  color: var(--red);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.55;
  padding: 0.65rem 0 0.65rem 1.1rem;
  border-left: 2px solid var(--line);
}

.night-close {
  max-width: 40rem;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  font-family: var(--serif);
  font-size: 1.2rem;
}

/* ---------- Pricing ---------- */

.flagship {
  border-color: var(--red);
  border-width: 1.5px;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  margin-bottom: 1.25rem;
}

.flagship .blurb {
  max-width: 44rem;
  color: var(--ink-soft);
}

.paths {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .paths {
    grid-template-columns: 1fr 1fr;
  }
}

.path {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem;
}

.band .path {
  background: var(--blush);
}

.path h4 {
  font-size: 1.15rem;
  margin-bottom: 0.2em;
}

.path > :last-child {
  margin-bottom: 0;
}

.price {
  font-family: var(--mono);
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0.1em 0 0.5em;
}

.price .per,
.price .pre {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.footnote {
  margin: 1.4rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.pricing-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 820px) {
  .pricing-row {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.card-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.slim {
  background: transparent;
  padding: 1.3rem 1.6rem;
}

.slim .price {
  font-size: 1.5rem;
}

.pricing-foot {
  text-align: center;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

.terms {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.cta-lead {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* ---------- Who it's for ---------- */

/* Marquee of the six business types. Decorative (aria-hidden), duplicated
   from the card headings. JS clones the set and drives a rAF loop; without
   JS it is a static strip, and reduced motion makes it a scrollable row. */

.who-marquee {
  overflow: hidden;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding-block: 0.9rem;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-set {
  display: flex;
  align-items: center;
  flex: none;
}

.mq-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.mq-item::after {
  content: "\25C6";
  color: var(--red);
  font-size: 0.5em;
  margin-inline: 1.6rem;
}

@media (prefers-reduced-motion: reduce) {
  /* Static and clipped; the strip is aria-hidden, so it must never become
     a focusable scroll container. */
  .who-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}

.who-card {
  padding: 1.3rem 1.5rem;
}

.who-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3em;
}

.who-card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.partner {
  margin-top: clamp(2rem, 5vw, 3rem);
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  text-align: center;
}

.partner p {
  margin: 0;
}

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

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

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

.faq-item h3 {
  margin: 0;
  font-size: 1.05rem;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1.1rem 0.15rem;
  font-family: var(--sans);
  font-weight: 600;
}

.faq-q:hover {
  color: var(--red);
}

.faq-q .plus {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.2;
  stroke-linecap: round;
  transition: transform 0.3s ease;
}

.faq-q[aria-expanded="true"] .plus {
  transform: rotate(45deg);
}

/* Panels are height-managed inline by app.js: springs when anime.js runs,
   instant 0/auto otherwise and under reduced motion. */
.js .faq-a {
  overflow: hidden;
}

.faq-a p {
  margin: 0 0 1.25rem;
  padding-right: 1.5rem;
  color: var(--ink-soft);
}

/* ---------- Closing CTA ---------- */

.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  background: var(--red-deep);
  color: #f5efec;
  text-align: center;
  padding-block: clamp(3.5rem, 9vw, 6rem);
}

.closing::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -35% -15%;
  background: radial-gradient(ellipse at 28% 38%, rgba(255, 255, 255, 0.05), transparent 58%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .closing::before {
    animation: drift-c 18s ease-in-out infinite alternate;
  }
}

@keyframes drift-c {
  to {
    transform: translate(14%, 10%) scale(1.12);
  }
}

.closing h2 {
  color: #fffdfb;
  margin-bottom: 0.4em;
}

.closing-sub {
  color: #f2ded9;
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
}

.small-print {
  color: #f2ded9;
  font-size: 0.85rem;
  margin: 1.25rem 0 0;
}

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

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3.5rem;
  justify-content: space-between;
}

.foot-brand {
  max-width: 22rem;
}

.foot-brand .brand {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.foot-line {
  margin: 0;
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.foot-links a,
.foot-contact a {
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.foot-links a:hover,
.foot-contact a:hover {
  color: var(--red);
}

.foot-contact p {
  margin: 0.45rem 0 0;
}

/* ---------- Scroll reveals ----------
   Fallback transition for JS-without-anime; the anime.js path (html.anim)
   hides and animates reveals with inline styles instead. */

@media (prefers-reduced-motion: no-preference) {
  html.js:not(.anim) .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  html.js:not(.anim) .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Reduced motion: kill everything ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Print: animation initial states must not hide content ---------- */

@media print {
  .reveal,
  .hero .eyebrow,
  .hero h1,
  .hero-sub,
  .hero-ctas,
  .cred li {
    opacity: 1 !important;
    transform: none !important;
  }

  .wmask .w {
    transform: none !important;
  }

  /* JS-built animated number spans double the sr-only value on paper. */
  .count [aria-hidden] {
    display: none !important;
  }

  .count .sr-only {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    clip-path: none;
    margin: 0;
    overflow: visible;
    white-space: normal;
  }

  .bar-fill {
    width: var(--w) !important;
  }

  .od {
    display: none !important;
  }

  .stat-num .sr-only,
  .score-num .sr-only {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    clip-path: none;
    margin: 0;
    overflow: visible;
    white-space: normal;
  }
}
