﻿/* Components. Premium-tech look: dark panels with a crimson glow, clean light
   sections, spaced uppercase labels. Values come from tokens.css. */

/* ---------- Header and nav ---------- */
.site-header {
  background-color: var(--c-paper);
  border-bottom: var(--bw) solid var(--c-border);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--s-3);
  padding-block: var(--s-1);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: var(--tap);
  color: var(--c-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-20);
  letter-spacing: var(--ls-display);
}
.brand img { width: var(--mark-nav); height: auto; aspect-ratio: 65 / 47; }
.site-footer .brand img { width: var(--mark-footer); }
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}
.nav li + li { margin-top: 0; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--c-ink);
  text-decoration: none;
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  border-bottom: var(--bw-2) solid transparent;
}
.nav a:hover { border-bottom-color: var(--c-border); }
.nav a[aria-current="page"] {
  color: var(--c-crimson);
  border-bottom-color: var(--c-crimson);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: var(--s-1) var(--s-3);
  font: inherit;
  font-size: var(--fs-16);
  font-weight: var(--fw-semibold);
  text-align: center;
  text-decoration: none;
  color: var(--c-white);
  background-color: var(--c-crimson);
  border: var(--bw-2) solid var(--c-crimson);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.btn:hover { color: var(--c-white); text-decoration: none; transform: translateY(calc(-1 * var(--bw))); box-shadow: var(--shadow); }
.btn:active { transform: none; }
/* On dark: bright accent fill with ink text (white on bright fails AA) */
.on-dark .btn,
.btn--on-dark {
  color: var(--c-ink);
  background-color: var(--c-crimson-bright);
  border-color: var(--c-crimson-bright);
}
.on-dark .btn:hover { color: var(--c-ink); box-shadow: var(--shadow-glow); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); margin-top: var(--s-3); }
.link-plain { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: var(--fw-semibold); }
.link-plain::after { content: "\2192"; margin-left: var(--s-1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--s-8) var(--s-6);
  background-image: var(--grad-hero);
}
@media (min-width: 48em) { .hero { padding-block: var(--s-8) var(--s-6); } }
.hero > .container { position: relative; z-index: 1; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grad-hero);
  opacity: 0;
  animation: glow-drift var(--dur-glow) var(--ease) infinite alternate;
}
@keyframes glow-drift { from { opacity: 0; transform: translateY(0); } to { opacity: 1; transform: translateY(var(--s-1)); } }
.hero__content, .hero__panel { animation: fade-up var(--dur-fade) var(--ease) both; }
.hero__panel { animation-delay: var(--dur-fast); }
@keyframes fade-up { from { opacity: 0; transform: translateY(var(--s-2)); } to { opacity: 1; transform: none; } }
.hero h1 { margin-bottom: var(--s-2); font-size: var(--fs-hero-title); }
.hero h1 em { font-style: normal; color: var(--c-crimson-bright); }
.hero__own { display: inline-block; margin-top: var(--s-1); padding: 0 var(--s-2); border-radius: var(--radius-1); color: var(--c-ink); background-color: var(--c-crimson-bright); box-shadow: var(--shadow-glow); }
.hero__sub strong { color: var(--c-on-dark); font-weight: var(--fw-bold); }
.hero__sub { font-size: var(--fs-20); color: var(--c-on-dark-muted); }
.hero__kicker { max-width: var(--measure); }

.hero__panel {
  position: relative;
  min-height: var(--hero-art-min);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--grad-panel);
  border: var(--bw) solid var(--c-dark-border);
  border-radius: var(--radius-3);
  box-shadow: var(--shadow-glow);
}
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hero__mark { position: relative; width: var(--mark-hero); height: auto; filter: drop-shadow(0 0 var(--s-4) var(--c-glow)); }
@media (min-width: 64em) { .hero__panel { min-height: calc(var(--hero-art-min) * 1.5); } .hero__mark { width: calc(var(--mark-hero) * 1.3); } }

/* ---------- Stats row (three true facts) ---------- */
.stats { background-color: var(--c-ink); padding-bottom: var(--s-6); }
.stats__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
  display: grid;
  gap: var(--s-3);
  grid-template-columns: minmax(0, 1fr);
  border-top: var(--bw) solid var(--c-line-faint);
  padding-top: var(--s-4);
}
@media (min-width: 48em) { .stats__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stats__list li { margin: 0; }
.stats__list li::before { content: ""; display: block; width: var(--stat-rule); height: var(--bw-2); margin-bottom: var(--s-2); background-image: var(--grad-accent); }
.stat__title { display: block; font-size: var(--fs-24); font-weight: var(--fw-bold); letter-spacing: var(--ls-display); color: var(--c-on-dark); }
.stat__note { display: block; margin-top: var(--s-1); font-size: var(--fs-14); color: var(--c-on-dark-muted); }

/* ---------- Cards ---------- */
.card {
  padding: var(--s-3);
  background-color: var(--c-white);
  border: var(--bw) solid var(--c-border);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: var(--s-1); }
.card > :last-child { margin-bottom: 0; }
.card .eyebrow { margin-bottom: var(--s-1); }
.card--featured { border: var(--bw-2) solid var(--c-crimson); }
.on-dark .card {
  background-color: var(--c-ink-2);
  background-image: var(--grad-panel);
  border-color: var(--c-dark-border);
  color: var(--c-on-dark-muted);
  box-shadow: none;
}
.on-dark .card h3, .on-dark .card h2 { color: var(--c-on-dark); }
.on-dark .card--featured { border-color: var(--c-crimson-bright); box-shadow: var(--shadow-glow); }
.on-dark .card .eyebrow { color: var(--c-crimson-bright); }
.card-meta { color: var(--c-muted); font-size: var(--fs-14); }
.on-dark .card-meta { color: var(--c-on-dark-muted); }

/* Option card pros and cons */
.pro-con { margin: 0 0 var(--s-2); padding: 0; list-style: none; }
.pro-con li { padding-left: var(--s-4); position: relative; }
.pro-con li + li { margin-top: var(--s-1); }
.pro-con li::before {
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-weight: var(--fw-bold);
  color: var(--c-crimson);
}
.pro-con .pro::before { content: "[+]"; }
.pro-con .con::before { content: "[-]"; }
.pro-con strong { color: var(--c-ink); }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0 0 var(--s-2); }
.checks li { position: relative; padding-left: var(--s-4); }
.checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--fs-20);
  height: var(--fs-20);
  font-size: var(--fs-12);
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--c-white);
  background-color: var(--c-crimson);
  border-radius: var(--radius-round);
}
.on-dark .checks li::before { color: var(--c-ink); background-color: var(--c-crimson-bright); }

/* Draft markers are plain text tags, never hidden or animated */
.draft-tag {
  display: inline-block;
  padding: 0 var(--s-1);
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-label-tight);
  color: var(--c-white);
  background-color: var(--c-crimson);
  border-radius: var(--radius-pill);
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; gap: var(--s-3); }
.steps li { margin: 0; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--s-6);
  height: var(--s-6);
  margin-bottom: var(--s-1);
  font-weight: var(--fw-bold);
  font-size: var(--fs-20);
  color: var(--c-white);
  background-color: var(--c-crimson);
  border-radius: var(--radius-round);
}
.step-detail dl { margin: 0; }
.step-detail dt { margin-top: var(--s-2); font-weight: var(--fw-bold); color: var(--c-ink); }
.step-detail dd { margin: 0; }

/* ---------- Plan ---------- */
.plan__price {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-56);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--c-on-dark);
  margin: var(--s-1) 0;
}
.plan__price small { font-size: var(--fs-20); font-weight: var(--fw-semibold); color: var(--c-on-dark-muted); }
.split { display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48em) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Placeholder card: dashed, plainly labeled */
.placeholder {
  padding: var(--s-4) var(--s-3);
  background-color: var(--c-white);
  border: var(--bw-2) dashed var(--c-crimson);
  border-radius: var(--radius-2);
}
.placeholder h3 { font-family: var(--font-mono); font-size: var(--fs-20); letter-spacing: 0; }
.placeholder > :last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq details {
  background-color: var(--c-white);
  border: var(--bw) solid var(--c-border);
  border-radius: var(--radius-2);
}
.faq details + details { margin-top: var(--s-1); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: var(--tap);
  padding: var(--s-1) var(--s-2);
  font-weight: var(--fw-semibold);
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--fs-24);
  color: var(--c-crimson);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 var(--s-2) var(--s-2); }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- Dark bands ---------- */
.section.on-dark { background-image: var(--grad-hero); }
.cta-band { text-align: left; }
.cta-band p { color: var(--c-on-dark-muted); }

/* ---------- Form ---------- */
.dev-banner {
  padding: var(--s-2) 0;
  background-color: var(--c-crimson);
  color: var(--c-white);
  font-weight: var(--fw-bold);
}
.dev-banner p { margin: 0; max-width: none; }
.form { display: grid; gap: var(--s-3); max-width: var(--max-text); }
.field label, .field .field__label { display: block; margin-bottom: var(--s-1); font-weight: var(--fw-semibold); color: var(--c-ink); }
.field .optional { font-weight: var(--fw-regular); color: var(--c-muted); }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: var(--s-1) var(--s-2);
  font: inherit;
  color: var(--c-ink);
  background-color: var(--c-white);
  border: var(--bw-2) solid var(--c-field-border);
  border-radius: var(--radius-1);
}
.field textarea { min-height: calc(var(--tap) * 3); resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--c-crimson); border-width: var(--bw-3); }
.field__error {
  margin: var(--s-1) 0 0;
  font-weight: var(--fw-semibold);
  color: var(--c-crimson);
}
.field__error:empty { display: none; }
.field__error::before { content: "! "; font-family: var(--font-mono); }
.form-note { font-size: var(--fs-14); color: var(--c-muted); max-width: none; }
.success { max-width: var(--max-text); }
.success[hidden], .form[hidden] { display: none; }
.next-up { max-width: var(--max-text); }

/* ---------- Sticky mobile bar ---------- */
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: var(--s-1) var(--gutter) calc(var(--s-1) + env(safe-area-inset-bottom, 0px));
  background-color: var(--c-ink);
  border-top: var(--bw) solid var(--c-dark-border);
}
.sticky-bar .btn { width: 100%; }
@media (min-width: 48em) { .sticky-bar { display: none; } }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--s-6); border-top: var(--bw) solid var(--c-dark-border); }
.site-footer p { color: var(--c-on-dark-muted); }
.site-footer .brand { color: var(--c-on-dark); }
.site-footer__grid { display: grid; gap: var(--s-4); }
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: var(--tap); }
.footer-flag { font-family: var(--font-mono); font-size: var(--fs-14); }

/* What you get: orbit. Stacked cards by default; a floating ring on wide screens. */
.orbit-section, .section.orbit-section { position: relative; isolation: isolate; padding-bottom: var(--s-6); background-image: var(--grad-sides), var(--grad-web); }
.orbit { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.orbit__hub, .orbit__slot, .web { display: none; }
.orbit__card {
  padding: var(--s-3);
  border: var(--bw-3) solid var(--c-card-border); border-radius: var(--radius-2);
  background-image: var(--grad-panel);
}
.orbit__card h3 { margin-block: 0 var(--s-1); }
.orbit__card p { margin: 0; color: var(--c-on-dark-muted); }

@property --k { syntax: "<number>"; inherits: false; initial-value: 0; }
.orbit__ring { display: grid; gap: var(--s-2); }
@keyframes pulse { 0%, 100% { opacity: 0.55; scale: 0.9; } 50% { opacity: 1; scale: 1.12; } }
@media (min-width: 64em) {
  .orbit {
    position: relative; display: block; margin-inline: auto; margin-top: var(--s-4);
    width: var(--orbit-w); height: var(--orbit-h);
  }
  /* The web: spokes and sagging rings. Cards hang from the outer corners. */
  .orbit__ring { position: absolute; inset: 0; display: block; }
  .orbit-section { overflow-x: clip; }
  .web { display: block; z-index: 0; position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: calc(var(--orbit-r) * 2.2); height: calc(var(--orbit-r) * 2.2); overflow: visible; }
  .web path { fill: none; stroke: var(--c-on-dark-muted); stroke-opacity: 0.22; stroke-width: var(--bw); vector-effect: non-scaling-stroke; stroke-linecap: round; }
  .web__spoke { stroke: var(--c-crimson-bright); stroke-opacity: 0.45; transition: stroke var(--dur-base) var(--ease), stroke-opacity var(--dur-base) var(--ease); }
  .web__dot { fill: var(--c-crimson-bright); opacity: 0.7; }
  .orbit:has(.orbit__slot:nth-child(1):hover) .s0, .orbit:has(.orbit__card:nth-child(2):focus) .s0,
  .orbit:has(.orbit__slot:nth-child(3):hover) .s1, .orbit:has(.orbit__card:nth-child(4):focus) .s1,
  .orbit:has(.orbit__slot:nth-child(5):hover) .s2, .orbit:has(.orbit__card:nth-child(6):focus) .s2,
  .orbit:has(.orbit__slot:nth-child(7):hover) .s3, .orbit:has(.orbit__card:nth-child(8):focus) .s3,
  .orbit:has(.orbit__slot:nth-child(9):hover) .s4, .orbit:has(.orbit__card:nth-child(10):focus) .s4,
  .orbit:has(.orbit__slot:nth-child(11):hover) .s5, .orbit:has(.orbit__card:nth-child(12):focus) .s5 { stroke: var(--c-crimson-bright); stroke-opacity: 1; }
  .orbit__hub {
    display: grid; justify-items: center; gap: var(--s-1); text-align: center;
    position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%; width: var(--hub-size);
    transition: opacity var(--dur-zoom) var(--ease);
  }
  .orbit__hub::before {                 /* pulsing glow: the "brain" */
    content: ""; position: absolute; left: 50%; top: 30%; z-index: -1;
    width: calc(var(--hub-size) * 2); aspect-ratio: 1; translate: -50% -50%;
    border-radius: var(--radius-round);
    background-image: radial-gradient(closest-side, var(--c-glow) 0, var(--c-glow-soft) 55%, transparent 100%);
  }
  .orbit__hub img { width: var(--hub-size); height: auto; }
  .wordmark { margin: 0; display: grid; justify-items: center; font-family: var(--font-display); text-transform: uppercase; }
  .wordmark span:first-child { color: var(--c-on-dark); font-size: var(--fs-24); font-weight: var(--fw-bold); letter-spacing: var(--ls-label); margin-right: calc(var(--ls-label) * -1); }
  .wordmark span:last-child { color: var(--c-crimson-bright); font-size: var(--fs-14); font-weight: var(--fw-bold); letter-spacing: var(--ls-wordmark-web); margin-right: calc(var(--ls-wordmark-web) * -1); }
  .orbit:has(.orbit__slot:hover) .orbit__hub, .orbit:has(.orbit__card:focus) .orbit__hub { opacity: 0; }

  .orbit__slot, .orbit__card {
    --a: calc(var(--i) * 60deg - 90deg);
    position: absolute; left: 50%; top: 50%;
    width: var(--orbit-card);
    translate: calc(-50% + cos(var(--a)) * var(--orbit-r) * (1 - var(--k))) calc(-50% + sin(var(--a)) * var(--orbit-r) * (1 - var(--k)));
  }
  .orbit__slot { display: block; height: 8rem; margin-top: -1rem; cursor: pointer; z-index: 2; }   /* mouse and touch target: rides the ring with its card */
  .orbit__card {
    z-index: 1; pointer-events: none; padding: var(--s-4);
    width: var(--orbit-zoom); scale: var(--orbit-rest-scale);   /* laid out at full size, scaled down: text never reflows */
    transition: --k var(--dur-zoom) var(--ease), scale var(--dur-zoom) var(--ease), border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
  }
  .orbit__card h3 { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-28); text-transform: uppercase; letter-spacing: var(--ls-label-tight); line-height: var(--lh-display); }
  .orbit__card p { font-size: var(--fs-20); }
  .orbit__card p {
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height var(--dur-zoom) var(--ease), opacity var(--dur-zoom) var(--ease);
  }
  .orbit__slot:hover + .orbit__card, .orbit__card:focus {
    --k: 1; scale: 1;
    z-index: 5;
    border-color: var(--c-crimson-bright); box-shadow: var(--shadow-glow);
    background-image: radial-gradient(70% 80% at 100% 0, var(--c-glow) 0, transparent 70%), var(--grad-panel);
  }
  .orbit__slot:hover + .orbit__card p, .orbit__card:focus p { max-height: 12rem; opacity: 1; color: var(--c-on-dark); }
  .orbit__card:focus { outline: none; }
  .orbit__card:focus-visible { outline: var(--bw-3) solid var(--c-crimson-bright); outline-offset: var(--bw-2); }
}
@media (prefers-reduced-motion: reduce) {
  .orbit__hub::before { animation: none; }
  .orbit__card { transition: none; }
  .orbit__card p, .orbit__hub { transition: none; }
}

/* Divider between the hero and the web */
.divider {
  position: relative; height: var(--divider-h); background-color: var(--c-ink);
  display: grid; place-items: center;
}
.divider::before {                       /* thin line that fades out at both ends */
  content: ""; position: absolute; inset-inline: 0; top: 50%; height: var(--bw);
  background-image: linear-gradient(90deg, transparent 0, var(--c-crimson-bright) 50%, transparent 100%);
}
.divider::after {                        /* soft glow under the line */
  content: ""; position: absolute; inset-inline: 20%; top: 50%; height: var(--s-4); translate: 0 -50%;
  background-image: radial-gradient(closest-side, var(--c-glow-soft) 0, transparent 100%);
}
.divider__gem {
  position: relative; z-index: 1; width: var(--gem); height: var(--gem); rotate: 45deg;
  background-color: var(--c-ink); border: var(--bw-2) solid var(--c-crimson-bright); box-shadow: var(--shadow-glow);
}

.orbit-title { font-size: var(--fs-hero); text-align: center; max-width: none; margin-bottom: 0; }
.orbit-section { padding-top: var(--s-4); }

.orbit-section .orbit-title { max-width: none; }
.section > .container > h2.orbit-title { max-width: none; }

/* Sides of the web section: soft crimson light and a fine dot grid that fades toward the middle */
.orbit-section::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--c-dot) 0, var(--c-dot) var(--dot-r), transparent calc(var(--dot-r) + var(--bw)));
  background-size: var(--dot-gap) var(--dot-gap);
  -webkit-mask-image: var(--mask-sides); mask-image: var(--mask-sides);
}

@media (min-width: 64em) {
  .orbit__card { display: flex; flex-direction: column; justify-content: center; text-align: center; min-height: var(--orbit-card-h); padding-block: var(--s-3); }
  .orbit__card h3 { margin-bottom: 0; }
  .orbit__slot:hover + .orbit__card h3, .orbit__card:focus h3 { margin-bottom: var(--s-1); }
}

/* Gradual dark-to-light transition: black, deep crimson, then off-white */
.fade-band { height: var(--fade-h); background-image: var(--grad-fade); }

/* How it works: timeline */
.timeline { list-style: none; margin: var(--s-4) 0 var(--s-3); padding: 0; max-width: none; display: grid; gap: var(--s-4); }
.timeline__item { position: relative; margin: 0; padding-left: calc(var(--node) + var(--s-3)); }
.timeline__item .step__num {
  position: absolute; left: 0; top: 0; z-index: 1; width: var(--node); height: var(--node); margin: 0;
  transition: scale var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease);
}
.timeline__item::before, .timeline__item::after {          /* line down to the next step: grey track, crimson fill on hover */
  content: ""; position: absolute; left: calc(var(--node) / 2 - var(--track) / 2); top: var(--node);
  width: var(--track); height: calc(100% + var(--s-4) - var(--node)); border-radius: var(--radius-pill);
  background-color: var(--c-border);
}
.timeline__item::after { background-image: linear-gradient(to bottom, var(--c-crimson), var(--c-crimson-bright)); transform: scaleY(0); transform-origin: top; transition: transform var(--dur-fade) var(--ease); }
.timeline__item:last-child::before, .timeline__item:last-child::after { display: none; }
.timeline__card {
  padding: var(--s-3); background-color: var(--c-white); border: var(--bw-2) solid var(--c-border); border-radius: var(--radius-2); box-shadow: var(--shadow);
  transition: translate var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.timeline__card h3 { margin-bottom: var(--s-1); }
.timeline__card p { margin: 0; }
.timeline__item:hover .step__num, .timeline__item:focus-within .step__num { scale: 1.18; background-color: var(--c-crimson-bright); color: var(--c-ink); box-shadow: 0 0 0 var(--s-1) var(--c-glow-soft), var(--shadow-glow); }
.timeline__item:hover::after, .timeline__item:focus-within::after { transform: scaleY(1); }
.timeline__item:hover .timeline__card, .timeline__item:focus-within .timeline__card { translate: 0 calc(var(--s-1) * -0.5); border-color: var(--c-crimson); box-shadow: var(--shadow), var(--shadow-glow); }
@media (min-width: 48em) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-4); row-gap: 0; margin-top: var(--s-6); }
  .timeline__item { padding: calc(var(--node) + var(--s-3)) 0 0; }
  .timeline__item .step__num { left: 50%; translate: -50% 0; }
  .timeline__item:hover .step__num, .timeline__item:focus-within .step__num { scale: 1.18; }
  .timeline__item::before, .timeline__item::after { left: 50%; top: calc(var(--node) / 2 - var(--track) / 2); width: calc(100% + var(--s-4)); height: var(--track); }
  .timeline__item::after { transform: scaleX(0); transform-origin: left; background-image: linear-gradient(to right, var(--c-crimson), var(--c-crimson-bright)); }
  .timeline__item:hover::after, .timeline__item:focus-within::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .timeline__item .step__num, .timeline__item::after, .timeline__card { transition: none; }
}
@media (min-width: 48em) { .timeline__item { display: flex; flex-direction: column; } .timeline__card { flex: 1; } }

@media (min-width: 64em) { .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 48em) and (max-width: 63.99em) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); }
  .timeline__item:nth-child(even)::before, .timeline__item:nth-child(even)::after { display: none; }
}

/* Pricing card on the home page */
.pricing-title { text-align: center; max-width: none; }
.section > .container > h2.pricing-title { max-width: none; }
.pricing {
  max-width: var(--max-text); margin: var(--s-4) auto 0; padding: var(--s-4);
  border: var(--bw-2) solid var(--c-crimson-bright); border-radius: var(--radius-3);
  background-image: radial-gradient(70% 80% at 100% 0, var(--c-glow) 0, transparent 70%), var(--grad-panel);
  box-shadow: var(--shadow-glow);
}
.pricing .plan__price { margin: var(--s-1) 0 var(--s-2); }
.pricing__setup { margin-top: var(--s-3); color: var(--c-on-dark-muted); }

/* Scroll reveal for light sections. Content is always visible without JS or with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 var(--s-6); transition: opacity var(--dur-reveal) var(--ease), translate var(--dur-reveal) var(--ease); }
  .js .reveal.is-in { opacity: 1; translate: 0 0; }
  .js .timeline__item.reveal:nth-child(2), .js .grid > .reveal:nth-child(2) { transition-delay: 120ms; }
  .js .timeline__item.reveal:nth-child(3), .js .grid > .reveal:nth-child(3) { transition-delay: 240ms; }
  .js .timeline__item.reveal:nth-child(4), .js .grid > .reveal:nth-child(4) { transition-delay: 360ms; }
}

/* Web cards burst out of the logo each time the web scrolls into view (desktop ring only) */
@keyframes burst { from { --k: 1; opacity: 0; scale: 0.15; } to { --k: 0; opacity: 1; scale: var(--orbit-rest-scale); } }
@media (min-width: 64em) and (prefers-reduced-motion: no-preference) {
  .js .orbit:not(.is-in) .orbit__card { opacity: 0; }
  .js .orbit.is-in .orbit__card { animation: burst var(--dur-burst) var(--ease) backwards; animation-delay: calc(var(--i) * 110ms); }
}

/* Pricing: two boxes, closer to How it works */
#how { padding-bottom: var(--s-2); }
#pricing { padding-top: 0; }
.pricing-grid { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.pricing-grid .pricing { max-width: none; margin: 0; }
@media (min-width: 48em) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); } }
.badge { display: inline-block; padding: 0 var(--s-1); border-radius: var(--radius-pill); color: var(--c-ink); background-color: var(--c-crimson-bright); font-size: var(--fs-12); letter-spacing: var(--ls-label-tight); }
.price-was { color: var(--c-on-dark-muted); font-size: var(--fs-32); text-decoration-thickness: var(--bw-3); }
.price-free { color: var(--c-crimson-bright); font-weight: var(--fw-heavy); }
.pricing__detail { font-size: var(--fs-20); color: var(--c-on-dark); }
.pricing--setup { border-color: var(--c-crimson-bright); }

/* Pricing comparison table */
.compare { margin-top: var(--s-6); }
.compare__title { text-align: center; margin-bottom: var(--s-3); }
.compare__scroll { overflow-x: auto; border: var(--bw) solid var(--c-border); border-radius: var(--radius-2); background-color: var(--c-white); box-shadow: var(--shadow); }
.compare__table { width: 100%; border-collapse: collapse; font-size: var(--fs-16); }
.compare__table th, .compare__table td { padding: var(--s-2) var(--s-3); text-align: left; border-bottom: var(--bw) solid var(--c-border); }
.compare__table thead th { font-size: var(--fs-14); text-transform: uppercase; letter-spacing: var(--ls-label-tight); color: var(--c-muted); background-color: var(--c-paper); }
.compare__table tbody th { font-weight: var(--fw-semibold); color: var(--c-ink); }
.compare__table tbody tr:last-child th, .compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__ours th, .compare__ours td { background-color: var(--c-ink); color: var(--c-on-dark); }
.compare__ours th { color: var(--c-on-dark); }
.compare__note, .compare__sources { max-width: var(--max-text); margin: var(--s-2) auto 0; font-size: var(--fs-14); color: var(--c-muted); }
.compare__sources a { color: var(--c-crimson); }
.compare__table tbody .compare__ours th { color: var(--c-on-dark); }
.compare__title { font-size: var(--fs-24); }

/* Agency comparison story */
.compare__grid { display: grid; gap: var(--s-3); }
@media (min-width: 48em) { .compare__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); } }
.compare__col { padding: var(--s-4); border: var(--bw) solid var(--c-border); border-radius: var(--radius-3); background-color: var(--c-white); box-shadow: var(--shadow); }
.compare__col--ours { border: var(--bw-2) solid var(--c-crimson-bright); background-color: var(--c-ink); box-shadow: var(--shadow-glow); }
.compare__col .eyebrow { margin-bottom: var(--s-2); }
.compare__rows { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-3); margin: 0; align-items: baseline; }
.compare__rows dt { color: var(--c-muted); }
.compare__col--ours .compare__rows dt { color: var(--c-on-dark-muted); }
.compare__rows dd { margin: 0; font-size: var(--fs-24); font-weight: var(--fw-bold); text-align: right; }
.compare__rows dd small { display: block; font-size: var(--fs-14); font-weight: var(--fw-regular); color: var(--c-muted); }
.compare__col--ours .compare__rows dd small { color: var(--c-on-dark-muted); }
.compare__total { font-size: var(--fs-32) !important; padding-top: var(--s-1); border-top: var(--bw) solid var(--c-border); }
.compare__col--ours .compare__total { color: var(--c-crimson-bright); border-top-color: var(--c-dark-border); }
.compare__story { margin: var(--s-4) auto 0; max-width: var(--max-text); text-align: center; font-size: var(--fs-24); color: var(--c-ink); }

/* Why Loonwick: large, positives only */
.why {
  margin-top: var(--s-6); padding: var(--s-6) var(--s-4);
  border: var(--bw-2) solid var(--c-crimson-bright); border-radius: var(--radius-3);
  background-image: radial-gradient(70% 80% at 100% 0, var(--c-glow) 0, transparent 70%), var(--grad-panel);
  box-shadow: var(--shadow-glow);
}
.why__title { font-size: var(--fs-h2); margin-bottom: var(--s-4); }
.why__list { display: grid; gap: var(--s-3); margin: 0 0 var(--s-4); font-size: var(--fs-20); }
@media (min-width: 48em) { .why { padding: var(--s-8) var(--s-8); } .why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); } }
.why__list strong { display: block; color: var(--c-on-dark); }

/* Options on one line (wide screens); shorter Why Loonwick box that fills the width */
@media (min-width: 64em) {
  #options .container { max-width: 90rem; }
  #options .grid--options { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); }
  #options .grid--options .card { padding: var(--s-2); }
  #options .grid--options .card h3 { font-size: var(--fs-16); }
  #options .grid--options .pro-con { font-size: var(--fs-14); }
  #options .why__list { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: var(--fs-16); }
}
.why { margin-top: var(--s-4); padding: var(--s-4); }
.why__title { margin-bottom: var(--s-3); }
.why__list { margin-bottom: var(--s-3); }
@media (min-width: 48em) { .why { padding: var(--s-4) var(--s-6); } }
.why .why__list { max-width: none; width: 100%; }

/* Light-to-dark fade before the final call to action */
.fade-band--down { background-image: linear-gradient(to bottom, var(--c-paper) 0, var(--c-crimson) 45%, var(--c-ink) 100%); }

/* Web tiles: angular, no rounded corners. Two opposite corners are cut; the edge is drawn by an inset panel. */
.orbit__card {
  isolation: isolate; border: 0; border-radius: 0; background-image: none; box-shadow: none;
  background-color: var(--c-card-edge);
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
}
.orbit__card::before {
  content: ""; position: absolute; inset: var(--bw-3); z-index: -1; background-image: var(--grad-panel);
  clip-path: polygon(calc(var(--chamfer) - var(--bw-3) * 0.6) 0, 100% 0, 100% calc(100% - var(--chamfer) + var(--bw-3) * 0.6), calc(100% - var(--chamfer) + var(--bw-3) * 0.6) 100%, 0 100%, 0 calc(var(--chamfer) - var(--bw-3) * 0.6));
}
@media (max-width: 63.99em) { .orbit__card { position: relative; } }
@media (min-width: 64em) {
  .orbit__slot:hover + .orbit__card, .orbit__card:focus { background-color: var(--c-crimson-bright); border-color: transparent; box-shadow: none; background-image: none; }
  .orbit__slot:hover + .orbit__card::before, .orbit__card:focus::before { background-image: radial-gradient(70% 80% at 100% 0, var(--c-glow) 0, transparent 70%), var(--grad-panel); }
}

/* Quote form: spam trap and status line */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: var(--s-2) 0 0; color: var(--c-crimson); font-weight: var(--fw-semibold); max-width: none; }
.form-status:empty { display: none; }
.form [aria-busy="true"] { opacity: 0.7; cursor: progress; }
