/* ============================================================
   site.css — havens.company (single-page marketing site)

   Tokens are copied from the havens.studio app (code/site/css/main.css) so
   the two domains read as one brand. Role tokens name a ROLE, not a color:
   --ink is "the surface", --paper/-soft/-dim are "text, in three weights".
   The one cream band (.band--paper) swaps their values exactly the way the
   app's light mode does, so every component below renders correctly there
   without extra rules.

   Order: tokens → base → type → layout → components → sections → motion.
   ============================================================ */

:root {
  /* ---- role tokens (dark default) ---- */
  --ink: #1c1815;
  --ink-soft: #322b25;
  --paper: #f7f4ee;
  --paper-soft: #d8d2c6;
  --paper-dim: #b8ac9c;
  --wash-rgb: 247, 244, 238;

  /* ---- brand fills (pinned in both modes) ---- */
  --teal: #5fa2a4;
  --teal-deep: #3c7476;
  --teal-bright: #189ba2; /* the app's hover-brighten step for teal buttons */
  --status-critical: #d03b3b;

  /* ---- same hues re-stepped for text/border use on the current surface ---- */
  --teal-ink: var(--teal);
  --critical-ink: var(--status-critical);
  --amber: #caa06a;
  --error-text: #e08a7d;

  --on-fill-dark: #1c1815;
  --on-fill-light: #f7f4ee;
  --surface-raised: #2b251e;

  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.45);
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.5);

  /* ---- site-only ---- */
  --font-display: "Fraunces", "Avenir Next", Georgia, serif;
  --font-body: "Avenir Next Pro LT", "Avenir Next", Avenir, "Figtree", sans-serif;
  --container: 72rem;
  --prose: 44rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --nav-h: 4rem;
  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 14px;
  --section-pad: clamp(4rem, 10vw, 7.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --hairline: rgba(var(--wash-rgb), 0.12);
}

/* The cream band — main.css's light-mode block, scoped to one section. */
.band--paper {
  --ink: #eae3d5;
  --ink-soft: #e6e0d5;
  --paper: #1c1815;
  --paper-soft: #474238;
  --paper-dim: #6c6152;
  --wash-rgb: 28, 24, 21;
  --teal-ink: var(--teal-deep);
  --critical-ink: #c32d30;
  --amber: #8f6732;
  --error-text: #a9594d;
  --surface-raised: #fffdf8;
  --shadow-soft: 0 4px 14px rgba(28, 24, 21, 0.14);
  --shadow-pop: 0 12px 32px rgba(28, 24, 21, 0.16);
  background: var(--ink);
  color: var(--paper-soft);
}

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

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper-soft);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
figure,
blockquote,
fieldset {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--teal);
  color: var(--on-fill-dark);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

/* ---- Type ---- */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.9rem;
}

.display,
.h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-wrap: balance;
}

.display {
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 0.95;
}

.h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  max-width: 24ch;
}

.h3 {
  font-weight: 600;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.2;
  color: var(--paper);
}

.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--paper-dim);
}

.small {
  font-size: 0.875rem;
}

.prose > p + p {
  margin-top: 1rem;
}

/* ---- Layout ---- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.section--tint {
  background: linear-gradient(180deg, rgba(var(--wash-rgb), 0.03), transparent 40%);
  border-top: 1px solid var(--hairline);
}

.section__head {
  max-width: var(--prose);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section__head .lead {
  margin-top: 1.25rem;
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center .h2 {
  margin-inline: auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.8em 1.4em;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--on-fill-dark);
}

.btn--primary:hover {
  background: var(--teal-bright);
  border-color: var(--teal-bright);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(var(--wash-rgb), 0.28);
  color: var(--paper);
}

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

.btn--sm {
  min-height: 38px;
  padding: 0.6em 1.1em;
  font-size: 0.875rem;
}

.btn--lg {
  min-height: 52px;
  padding: 1em 1.7em;
  font-size: 1.0625rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(28, 24, 21, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav {
    background: var(--ink);
  }
}

.nav.is-scrolled {
  border-color: var(--hairline);
}

.nav__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav__brand svg {
  width: 26px;
  height: 26px;
}

.nav__links {
  display: none;
  gap: 1.75rem;
}

.nav__links a {
  color: var(--paper-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--paper);
}

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.65rem;
  margin-right: -0.65rem;
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav--open .nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav--open .nav__toggle span:nth-child(2) {
  opacity: 0;
}

.nav--open .nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 56.24em) {
  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--nav-h);
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    background: var(--ink);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-pop);
  }

  .nav--open .nav__links a {
    padding: 0.75rem 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid rgba(var(--wash-rgb), 0.06);
  }
}

@media (min-width: 56.25em) {
  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
}

.hero__copy {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(2.5rem, 6vw, 4rem);
  max-width: 42rem;
}

.hero__title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.75rem, 5.6vw, 4.75rem);
}

.hero__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  color: var(--paper);
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.hero__text {
  max-width: 33rem;
  margin: 0 0 2rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.75rem;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--paper-dim);
}

.hero__trust svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--paper-dim);
}

.hero__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink-soft);
  overflow: hidden;
}

.hero__layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__layer.is-active {
  opacity: 1;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(28, 24, 21, 0.7));
}

@media (min-width: 56.25em) {
  .hero__grid {
    grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
    min-height: min(86vh, 50rem);
  }

  .hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    padding-right: clamp(2rem, 4vw, 4rem);
  }

  .hero__media {
    aspect-ratio: auto;
    height: 100%;
  }

  .hero__media::after {
    background:
      linear-gradient(90deg, var(--ink) 0%, rgba(28, 24, 21, 0.4) 16%, transparent 42%),
      linear-gradient(180deg, transparent 70%, rgba(28, 24, 21, 0.55));
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Window frame (product mockups) ---- */

.window {
  border: 1px solid rgba(var(--wash-rgb), 0.14);
  border-radius: var(--radius-l);
  background: var(--surface-raised);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.window__bar {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(var(--wash-rgb), 0.1);
  background: rgba(var(--wash-rgb), 0.03);
}

.window__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(var(--wash-rgb), 0.22);
}

.window img {
  width: 100%;
}

/* ---- Problem: the pile of tools ---- */

.problem__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.problem__pivot {
  color: var(--paper);
  font-weight: 500;
  font-size: 1.0625rem;
}

.pile {
  position: relative;
}

.pile__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--wash-rgb), 0.18);
  background: var(--surface-raised);
  color: var(--paper-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

/* Static end state (no JS / reduced motion): the pile is crossed out. */
html:not(.js) .chip {
  text-decoration: line-through;
  opacity: 0.6;
}

.pile__caption {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--paper-dim);
}

.pile__caption strong {
  color: var(--paper);
  font-weight: 600;
}

@media (min-width: 56.25em) {
  .problem__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}

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

.steps {
  display: grid;
  gap: clamp(3.5rem, 8vw, 6rem);
}

.step {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--teal-ink);
  margin-bottom: 0.75rem;
}

.step__text .h3 {
  margin-bottom: 0.75rem;
}

.step__text p {
  max-width: 32rem;
}

.step__text .badge {
  margin-top: 1.25rem;
  height: 26px;
  width: auto;
  opacity: 0.75;
}

@media (min-width: 56.25em) {
  .step {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }

  .step--flip .step__text {
    order: 2;
  }
}

/* Step 03's stand-in for a schedule screenshot: a small live week grid. */
.sched {
  border: 1px solid rgba(var(--wash-rgb), 0.14);
  border-radius: var(--radius-l);
  background: var(--surface-raised);
  box-shadow: var(--shadow-pop);
  padding: 1rem 1rem 1.1rem;
  font-size: 0.75rem;
}

.sched__grid {
  display: grid;
  grid-template-columns: 3.25rem repeat(3, minmax(0, 1fr));
  grid-auto-rows: 2.35rem;
}

.sched__head {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
  border-bottom: 1px solid rgba(var(--wash-rgb), 0.14);
}

.sched__time {
  padding-top: 0.2rem;
  font-size: 0.66rem;
  color: var(--paper-dim);
  border-top: 1px solid rgba(var(--wash-rgb), 0.08);
}

.sched__cell {
  border-top: 1px solid rgba(var(--wash-rgb), 0.08);
  border-left: 1px solid rgba(var(--wash-rgb), 0.06);
}

.sched__ev {
  z-index: 1;
  margin: 3px;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border-left: 3px solid var(--teal);
  background: rgba(95, 162, 164, 0.22);
  color: var(--paper);
  font-weight: 500;
  line-height: 1.25;
  overflow: hidden;
}

.sched__ev small {
  display: block;
  font-size: 0.66rem;
  font-weight: 400;
  color: var(--paper-dim);
}

.sched__sync {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(var(--wash-rgb), 0.05);
  color: var(--paper-soft);
  font-size: 0.75rem;
  font-weight: 500;
}

.sched__sync svg {
  width: 14px;
  height: 14px;
  color: var(--teal-ink);
}

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

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

.who-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  background: rgba(var(--wash-rgb), 0.03);
  overflow: hidden;
}

.who-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.who-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.who-card:hover .who-card__media img {
  transform: scale(1.04);
}

.who-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(28, 24, 21, 0.9));
}

.who-card__title {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0.9rem;
  z-index: 1;
  font-size: 1.25rem;
}

.who-card__body {
  padding: 1.1rem 1.15rem 1.35rem;
}

.who-card__body p {
  font-size: 0.9375rem;
  color: var(--paper-dim);
}

.who-card__body p strong {
  display: block;
  color: var(--paper-soft);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.fit-line {
  max-width: 30ch;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  color: var(--paper);
  text-wrap: balance;
}

.fit {
  padding-bottom: 0.06em;
  background: linear-gradient(var(--teal), var(--teal)) no-repeat 0 100% / 0 3px;
  transition: background-size 0.6s var(--ease);
}

.fit:nth-of-type(2) {
  transition-delay: 0.15s;
}

.fit:nth-of-type(3) {
  transition-delay: 0.3s;
}

.is-in .fit,
html:not(.js) .fit {
  background-size: 100% 3px;
}

@media (min-width: 40em) {
  .who-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 68.75em) {
  .who-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---- Access control ---- */

.ac-wrap {
  max-width: 60rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ac {
  display: block;
  width: 100%;
  min-width: 640px;
  height: auto;
  font-family: var(--font-body);
}

.ac text {
  fill: var(--paper-soft);
  font-size: 11px;
}

.ac .ac-name {
  fill: var(--paper);
  font-weight: 600;
}

.ac .ac-title {
  fill: var(--amber);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ac .ac-sub,
.ac .ac-label,
.ac .ac-foot {
  fill: var(--paper-dim);
  font-size: 10.5px;
}

.ac .ac-status {
  fill: var(--paper);
  font-weight: 600;
  opacity: 0;
}

.ac .ac-status--locked {
  opacity: 1;
}

.ac .ac-sub--bad {
  opacity: 0;
}

.ac .ac-node {
  fill: var(--surface-raised);
  stroke: rgba(var(--wash-rgb), 0.2);
  stroke-width: 1.2;
}

.ac .ac-avatar {
  fill: rgba(95, 162, 164, 0.25);
  stroke: var(--teal);
  stroke-width: 1.5;
}

.ac .ac-rf {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.8;
}

.ac .ac-link {
  fill: none;
  stroke: rgba(var(--wash-rgb), 0.22);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  stroke-linecap: round;
}

.ac .ac-tick,
.ac .ac-cross {
  fill: none;
  stroke: var(--teal);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}

.ac .ac-cross {
  stroke: var(--critical-ink);
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
}

.ac .ac-badge,
.ac .ac-glow {
  transform-box: fill-box;
  transform-origin: center;
}

.ac .ac-glow {
  fill: var(--teal);
  opacity: 0.5;
  transform: scale(0);
}

.ac .ac-shackle {
  fill: none;
  stroke: var(--paper-soft);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.ac .ac-lockbody {
  fill: var(--paper-soft);
}

.ac .ac-handle {
  fill: var(--paper-dim);
}

/* One shared 12 s timeline: 0–48 % a member is let in, 50–98 % a lapsed one
   is refused. Everything is stroke-dashoffset / opacity / transform. */
.ac .ac-badge { animation: ac-badge 12s var(--ease) infinite; }
.ac .ac-link--1 { animation: ac-link1 12s linear infinite; }
.ac .ac-link--2 { animation: ac-link2 12s linear infinite; }
.ac .ac-link--3 { animation: ac-link3 12s linear infinite; }
.ac .ac-node--m { animation: ac-node-m 12s linear infinite; }
.ac .ac-node--c { animation: ac-node-c 12s linear infinite; }
.ac .ac-tick--m { animation: ac-tick-m 12s var(--ease) infinite; }
.ac .ac-tick--c { animation: ac-tick-c 12s var(--ease) infinite; }
.ac .ac-cross { animation: ac-cross 12s var(--ease) infinite; }
.ac .ac-sub--ok { animation: ac-sub-ok 12s linear infinite; }
.ac .ac-sub--bad { animation: ac-sub-bad 12s linear infinite; }
.ac .ac-glow { animation: ac-glow 12s ease-out infinite; }
.ac .ac-shackle { animation: ac-shackle 12s var(--ease) infinite; }
.ac .ac-door { animation: ac-door 12s linear infinite; }
.ac .ac-status--locked { animation: ac-st-locked 12s linear infinite; }
.ac .ac-status--open { animation: ac-st-open 12s linear infinite; }
.ac .ac-status--denied { animation: ac-st-denied 12s linear infinite; }

/* Paused until the diagram scrolls into view (site.js adds .is-in). */
.js .ac * { animation-play-state: paused; }
.js .ac.is-in * { animation-play-state: running; }

@keyframes ac-badge {
  0%, 50%, 100% { transform: scale(1); }
  2.5%, 52.5% { transform: scale(1.06); }
  5%, 55% { transform: scale(1); }
}

@keyframes ac-link1 {
  0%, 5% { stroke: rgba(247, 244, 238, 0.22); stroke-dashoffset: 0; }
  6% { stroke: #5fa2a4; }
  12%, 44% { stroke: #5fa2a4; stroke-dashoffset: -28; }
  48%, 55% { stroke: rgba(247, 244, 238, 0.22); stroke-dashoffset: 0; }
  56% { stroke: #5fa2a4; }
  62%, 94% { stroke: #5fa2a4; stroke-dashoffset: -28; }
  98%, 100% { stroke: rgba(247, 244, 238, 0.22); stroke-dashoffset: 0; }
}

@keyframes ac-link2 {
  0%, 18% { stroke: rgba(247, 244, 238, 0.22); stroke-dashoffset: 0; }
  19% { stroke: #5fa2a4; }
  28%, 44% { stroke: #5fa2a4; stroke-dashoffset: -28; }
  48%, 100% { stroke: rgba(247, 244, 238, 0.22); stroke-dashoffset: 0; }
}

@keyframes ac-link3 {
  0%, 28% { stroke: rgba(247, 244, 238, 0.22); stroke-dashoffset: 0; }
  29% { stroke: #5fa2a4; }
  36%, 44% { stroke: #5fa2a4; stroke-dashoffset: -28; }
  48%, 100% { stroke: rgba(247, 244, 238, 0.22); stroke-dashoffset: 0; }
}

@keyframes ac-node-m {
  0%, 12% { stroke: rgba(247, 244, 238, 0.2); }
  14%, 44% { stroke: #5fa2a4; }
  48%, 62% { stroke: rgba(247, 244, 238, 0.2); }
  64%, 94% { stroke: #d03b3b; }
  98%, 100% { stroke: rgba(247, 244, 238, 0.2); }
}

@keyframes ac-node-c {
  0%, 22% { stroke: rgba(247, 244, 238, 0.2); }
  24%, 44% { stroke: #5fa2a4; }
  48%, 100% { stroke: rgba(247, 244, 238, 0.2); }
}

@keyframes ac-tick-m {
  0%, 12% { stroke-dashoffset: 60; }
  18%, 44% { stroke-dashoffset: 0; }
  48%, 100% { stroke-dashoffset: 60; }
}

@keyframes ac-tick-c {
  0%, 22% { stroke-dashoffset: 60; }
  28%, 44% { stroke-dashoffset: 0; }
  48%, 100% { stroke-dashoffset: 60; }
}

@keyframes ac-cross {
  0%, 62% { stroke-dashoffset: 70; }
  68%, 94% { stroke-dashoffset: 0; }
  98%, 100% { stroke-dashoffset: 70; }
}

@keyframes ac-sub-ok {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes ac-sub-bad {
  0%, 49% { opacity: 0; }
  50%, 100% { opacity: 1; }
}

@keyframes ac-glow {
  0%, 34% { transform: scale(0); opacity: 0.6; }
  42%, 100% { transform: scale(1); opacity: 0; }
}

@keyframes ac-shackle {
  0%, 34% { transform: translateY(0); }
  37%, 44% { transform: translateY(-6px); }
  47%, 100% { transform: translateY(0); }
}

@keyframes ac-door {
  0%, 34% { stroke: rgba(247, 244, 238, 0.2); }
  36%, 44% { stroke: #5fa2a4; }
  48%, 66% { stroke: rgba(247, 244, 238, 0.2); }
  68%, 94% { stroke: #d03b3b; }
  98%, 100% { stroke: rgba(247, 244, 238, 0.2); }
}

@keyframes ac-st-locked {
  0%, 35% { opacity: 1; }
  36%, 45% { opacity: 0; }
  47%, 67% { opacity: 1; }
  68%, 94% { opacity: 0; }
  96%, 100% { opacity: 1; }
}

@keyframes ac-st-open {
  0%, 35% { opacity: 0; }
  36%, 45% { opacity: 1; }
  47%, 100% { opacity: 0; }
}

@keyframes ac-st-denied {
  0%, 67% { opacity: 0; }
  68%, 94% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

.ac-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.ac-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  background: rgba(var(--wash-rgb), 0.03);
}

.ac-card svg {
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  color: var(--teal-ink);
}

.ac-card h3 {
  font-size: 1.0625rem;
  color: var(--paper);
  margin-bottom: 0.25rem;
}

.ac-card p {
  font-size: 0.9375rem;
  color: var(--paper-dim);
}

.ac-proof {
  display: grid;
  gap: 1.25rem;
}

.ac-log {
  position: relative;
  height: 13.5rem;
  overflow: hidden;
  padding: 0 1.1rem;
  border: 1px solid rgba(var(--wash-rgb), 0.14);
  border-radius: var(--radius-l);
  background: var(--surface-raised);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(transparent, #000 15%, #000 85%, transparent);
}

.ac-log__track {
  animation: ticker 22s linear infinite;
}

.ac-log li {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(var(--wash-rgb), 0.06);
  color: var(--paper-dim);
  white-space: nowrap;
}

.ac-log li b {
  font-weight: 500;
  color: var(--paper-soft);
  overflow: hidden;
  text-overflow: ellipsis;
}

.ac-log .ok {
  color: var(--teal-ink);
}

.ac-log .no {
  color: var(--critical-ink);
}

@keyframes ticker {
  to {
    transform: translateY(-50%);
  }
}

/* Same fixed height as .ac-log beside it, so the two captions sit on one
   line; below the two-column breakpoint it falls back to natural height. */
.crop {
  overflow: hidden;
  border: 1px solid rgba(var(--wash-rgb), 0.14);
  border-radius: var(--radius-l);
  background: var(--ink);
  box-shadow: var(--shadow-pop);
}

.crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.caption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--paper-dim);
}

@media (min-width: 40em) {
  .ac-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 56.25em) {
  .ac-proof {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    align-items: start;
  }

  .crop {
    height: 13.5rem;
  }
}

/* ---- Social proof (cream band) ---- */

.proof__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.proof__photo {
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.proof__logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
  color: var(--paper);
}

.proof__logo svg {
  width: 40px;
  height: 40px;
  flex: none;
}

.proof__logo .eyebrow {
  margin: 0;
}

.proof__text {
  margin-top: 1.25rem;
  max-width: 34rem;
}

.quote {
  position: relative;
  margin-top: 1.75rem;
  padding: 1.25rem 0 0 2.6rem;
}

.quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.05em;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 5rem;
  line-height: 1;
  color: var(--amber);
}

.quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  line-height: 1.25;
  color: var(--paper);
  text-wrap: balance;
}

.quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--paper-dim);
}

@media (min-width: 56.25em) {
  .proof__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
}

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

.price-card {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(var(--wash-rgb), 0.14);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius-l);
  background: var(--surface-raised);
  box-shadow: var(--shadow-pop);
  text-align: center;
}

.price {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.price small {
  margin-left: 0.3rem;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 1rem;
  color: var(--paper-dim);
}

.price__plus {
  margin-top: 0.75rem;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  color: var(--paper);
}

.price__note {
  font-style: italic;
  margin-top: 0.20rem;
  font-size: 0.90rem;
  color: var(--paper-dim);
}

.price__terms {
  margin-top: 1.25rem;
  font-weight: 500;
  color: var(--paper-soft);
}

.price__list {
  display: grid;
  gap: 0.6rem;
  max-width: 21rem;
  margin: 1.75rem auto;
  text-align: left;
}

.price__list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper-soft);
}

.price__list svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--teal-ink);
}

.price__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.price__cta img {
  height: 26px;
  width: auto;
  opacity: 0.8;
}

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

.faq-list {
  max-width: var(--prose);
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
}

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

.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--paper);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--teal-ink), var(--teal-ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--teal-ink), var(--teal-ink)) center / 2px 12px no-repeat;
  transition: transform 0.3s var(--ease);
}

.faq[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:focus-visible {
  outline-offset: 2px;
}

.faq p {
  max-width: 40rem;
  padding: 0 0 1.25rem;
  color: var(--paper-dim);
}

/* ---- Final CTA + lead form ---- */

.talk {
  overflow: hidden;
}

.talk::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: radial-gradient(ellipse at top left, rgba(202, 160, 106, 0.22), transparent 65%);
  pointer-events: none;
}

.talk__grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

.talk__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.talk__copy .lead {
  margin-top: 1.25rem;
  max-width: 28rem;
}

.lead-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgba(var(--wash-rgb), 0.14);
  border-radius: var(--radius-l);
  background: var(--surface-raised);
  box-shadow: var(--shadow-pop);
}

.lead-card .h3 {
  margin-bottom: 0.35rem;
}

.lead-card__intro {
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--paper-dim);
}

.lead__grid {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--paper-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--wash-rgb), 0.18);
  background: rgba(var(--wash-rgb), 0.04);
  color: var(--paper);
  transition: border-color 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(var(--wash-rgb), 0.35);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline-offset: 1px;
  border-color: var(--teal);
}

.field textarea {
  min-height: 6rem;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b8ac9c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}

.field select option {
  background: var(--surface-raised);
  color: var(--paper);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.lead__error {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--error-text);
}

.lead__done {
  padding: 1rem 0;
}

.lead__done .h3 {
  margin-bottom: 0.5rem;
}

.lead__done p {
  color: var(--paper-dim);
}

@media (min-width: 40em) {
  .lead__grid {
    grid-template-columns: 1fr 1fr;
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 56.25em) {
  .talk__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

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

.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(var(--wash-rgb), 0.1);
  font-size: 0.875rem;
  color: var(--paper-dim);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.footer__brand svg {
  width: 20px;
  height: 20px;
}

.footer a {
  color: var(--paper-dim);
  text-underline-offset: 3px;
}

.footer a:hover {
  color: var(--paper);
}

/* ---- Mobile "Start now" bar ---- */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(28, 24, 21, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}

.mobile-cta .btn {
  width: 100%;
}

body.past-hero .mobile-cta {
  transform: none;
}

@media (max-width: 56.24em) {
  body.past-hero {
    padding-bottom: 4.75rem;
  }
}

@media (min-width: 56.25em) {
  .mobile-cta {
    display: none;
  }
}

/* ---- Motion ----
   Every hidden "before" state is gated on html.js (set by a one-line script
   in <head>) AND on no-preference, so with JS blocked or motion reduced
   nothing on the page is ever invisible. */

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

  /* Hero entrance — the app's pass-fade-up stagger. */
  .hero__copy > * {
    opacity: 0;
    animation: fade-up 0.7s ease-out forwards;
  }

  .hero__copy > :nth-child(1) { animation-delay: 0.05s; }
  .hero__copy > :nth-child(2) { animation-delay: 0.15s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.25s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.35s; }
  .hero__copy > :nth-child(5) { animation-delay: 0.45s; }
  .hero__copy > :nth-child(6) { animation-delay: 0.55s; }

  /* Scroll reveal. */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.7s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
  }

  .js [data-reveal="from-left"] {
    transform: translateX(-28px);
  }

  .js [data-reveal="from-right"] {
    transform: translateX(28px);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  /* The pile: chips scatter over the stage, then fly to the center and are
     absorbed while the one-system card resolves beneath them. */
  .js .pile__chips {
    position: absolute;
    inset: 0;
    z-index: 2;
    margin: 0;
    pointer-events: none;
  }

  .js .chip {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%) rotate(var(--r));
    transition:
      left 0.9s var(--ease) calc(var(--i) * 70ms),
      top 0.9s var(--ease) calc(var(--i) * 70ms),
      transform 0.9s var(--ease) calc(var(--i) * 70ms),
      opacity 0.45s ease calc(var(--i) * 70ms + 0.4s),
      visibility 0s linear 1.4s;
  }

  .js .pile.is-in .chip {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(0) scale(0.4);
    opacity: 0;
    visibility: hidden;
  }

  .js .pile__card {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
    transition: opacity 0.8s ease 0.5s, transform 0.9s var(--ease) 0.5s;
  }

  .js .pile.is-in .pile__card {
    opacity: 1;
    transform: none;
  }

  .js .pile__caption {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease 1.1s, transform 0.6s var(--ease) 1.1s;
  }

  .js .pile.is-in .pile__caption {
    opacity: 1;
    transform: none;
  }

  /* Schedule: the late booking lands, then the sync chip confirms it. */
  .js .sched__ev--new {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease 0.6s, transform 0.5s var(--ease) 0.6s;
  }

  .js .is-in .sched__ev--new {
    opacity: 1;
    transform: none;
  }

  .js .sched__sync {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s ease 1.2s, transform 0.5s var(--ease) 1.2s;
  }

  .js .is-in .sched__sync {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .chip {
    text-decoration: line-through;
    opacity: 0.6;
  }

  /* Diagram rests in its "let in, logged" end state. */
  .ac * {
    animation: none !important;
  }

  .ac .ac-link,
  .ac .ac-node {
    stroke: var(--teal);
  }

  .ac .ac-tick {
    stroke-dashoffset: 0;
  }

  .ac .ac-status--locked {
    opacity: 0;
  }

  .ac .ac-status--open {
    opacity: 1;
  }

  .ac .ac-shackle {
    transform: translateY(-6px);
  }

  .ac-log__track {
    animation: none !important;
  }
}
