:root {
  --surface-0: oklch(0.98 0.004 95);
  --surface-1: oklch(0.963 0.005 95);
  --ink: oklch(0.22 0.01 260);
  --ink-muted: oklch(0.44 0.01 260);
  --ink-subtle: oklch(0.58 0.01 260);
  --line: oklch(0.22 0.01 260 / 12%);
  --line-strong: oklch(0.22 0.01 260 / 22%);
  --on-accent: oklch(0.98 0.006 95);
  --clay: oklch(0.62 0.14 50);
  --toggle-green: oklch(0.74 0.14 125);

  --font-display: "Instrument Serif", Georgia, serif;
  --font-sans: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-tone="ink"] {
  --surface-0: oklch(0.2 0.008 260);
  --surface-1: oklch(0.24 0.008 260);
  --ink: oklch(0.955 0.005 95);
  --ink-muted: oklch(0.74 0.006 95);
  --ink-subtle: oklch(0.58 0.006 95);
  --line: oklch(0.955 0.005 95 / 14%);
  --line-strong: oklch(0.955 0.005 95 / 26%);
  --on-accent: oklch(0.2 0.008 260);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  background: var(--surface-0);
  scroll-behavior: smooth;
  transition: background-color 0.5s ease;
}

body {
  min-height: 100dvh;
  width: 100%;
  max-width: 120rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
  background: var(--surface-0);
  color: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  transition: background-color 0.5s ease, color 0.5s ease;
}

::selection {
  background: var(--ink);
  color: var(--surface-0);
}

/* ---------- first frame (header + hero) ---------- */

.frame {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* ---------- header ---------- */

header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(1rem, 2.5vh, 1.5rem);
  opacity: 0;
  animation: rise 0.7s var(--ease-out) forwards 0.1s;
}

header::after,
footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
  transform: scaleX(0);
  transform-origin: left;
  animation: draw 1.1s var(--ease-out) forwards 0.25s;
  transition: background-color 0.5s ease;
}

header::after { bottom: 0; }
footer::before { top: 0; }

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.wordmark a {
  color: inherit;
  text-decoration: none;
}

/* the brand mark is a working toggle: it flips the page tone */
.mark {
  --w: 3.25rem;
  --h: 1.875rem;
  appearance: none;
  border: none;
  cursor: pointer;
  position: relative;
  width: var(--w);
  height: var(--h);
  border-radius: 999px;
  background: var(--toggle-green);
  box-shadow: inset 0 1px 3px oklch(0 0 0 / 18%);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mark:hover { transform: scale(1.05); }

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

.mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--h) * 0.125);
  width: calc(var(--h) * 0.75);
  height: calc(var(--h) * 0.75);
  border-radius: 50%;
  background: oklch(0.99 0.002 95);
  box-shadow: 0 1px 3px oklch(0 0 0 / 30%);
  transform: translate(calc(var(--w) - var(--h)), -50%);
  transition: transform 0.35s var(--ease-out);
}

[data-tone="ink"] .mark::after {
  transform: translate(0, -50%);
}

/* ---------- hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2rem, 7vh, 5rem);
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4rem, 13.5vw, 11.5rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

h1 em {
  font-style: italic;
  letter-spacing: -0.02em;
}

.dot {
  color: var(--clay);
}

h1 .row {
  display: block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(0.3em);
  animation: sharpen 0.8s var(--ease-out) forwards;
}

h1 .row:nth-child(1) { animation-delay: 0.2s; }
h1 .row:nth-child(2) { animation-delay: 0.34s; }

.sub {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(2rem, 6vh, 4rem);
}

.sub-inner {
  max-width: 40ch;
  opacity: 0;
  animation: rise 0.8s var(--ease-out) forwards 0.6s;
}

@media (max-width: 900px) {
  .sub { justify-content: flex-start; }
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-muted);
  transition: color 0.5s ease;
}

.lede strong {
  font-weight: 500;
  color: var(--ink);
  transition: color 0.5s ease;
}

.actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 3.125rem;
  padding-inline: 1.5rem;
  border-radius: 0.375rem;
  background: var(--ink);
  color: var(--surface-0);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.5s ease, color 0.5s ease, transform 0.15s ease;
}

button.btn {
  appearance: none;
  border: none;
  font-family: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.quiet {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.125rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

button.quiet {
  appearance: none;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  padding-top: 0;
  padding-inline: 0;
  font-family: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.quiet:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* subtle cue at the bottom of the first frame */
.scroll-cue {
  justify-self: start;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-subtle);
  opacity: 0;
  animation: rise 0.8s var(--ease-out) forwards 1s;
  transition: color 0.2s ease;
}

.scroll-cue:hover { color: var(--ink); }

/* ---------- showcase ---------- */

.showcase {
  position: relative;
  padding-block: clamp(3.5rem, 9vh, 6.5rem) clamp(4rem, 10vh, 8rem);
  border-top: 1px solid var(--line-strong);
  transition: border-color 0.5s ease;
}

/* scroll reveal — progressive enhancement: elements are visible by default
   and only hidden pre-reveal once JS confirms IntersectionObserver support
   (see main.js), so content never depends on JS to be readable. */
.js .showcase [data-reveal],
.js .closing [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.js .showcase.is-visible [data-reveal],
.js .closing.is-visible [data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

.js .showcase h2[data-reveal] { transition-delay: 70ms; }
.js .showcase .showcase-lede[data-reveal] { transition-delay: 140ms; }
.js .showcase .demo-switch[data-reveal] { transition-delay: 180ms; }
.js .showcase .demo[data-reveal] { transition-delay: 230ms; }

.js .showcase .feat[data-reveal]:nth-of-type(1) { transition-delay: 260ms; }
.js .showcase .feat[data-reveal]:nth-of-type(2) { transition-delay: 310ms; }
.js .showcase .feat[data-reveal]:nth-of-type(3) { transition-delay: 360ms; }
.js .showcase .feat[data-reveal]:nth-of-type(4) { transition-delay: 410ms; }
.js .showcase .feats-cta[data-reveal] { transition-delay: 470ms; }

.js .closing .closing-actions[data-reveal] { transition-delay: 120ms; }

.showcase h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.showcase h2 em {
  font-style: italic;
  letter-spacing: -0.02em;
}

.showcase-lede {
  margin-top: 1.5rem;
  max-width: 52ch;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.55;
  color: var(--ink-muted);
  transition: color 0.5s ease;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
}

@media (max-width: 1000px) {
  .showcase-grid { grid-template-columns: 1fr; }
}

.demo-col {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-width: 0;
}

/* capability list */

.feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
}

/* stick beside the taller demo on wide, shorter viewports only —
   on tall screens the whole section already fits, so sticky just floats oddly */
@media (min-width: 1001px) and (max-height: 1000px) {
  .feats {
    position: sticky;
    top: clamp(1.25rem, 4vh, 2.5rem);
  }
}

.feat {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.25rem 0;
}

.feat .n {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-subtle);
  padding-top: 0.2em;
  transition: color 0.5s ease;
}

.feat h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feat p {
  grid-column: 2;
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-muted);
  transition: color 0.5s ease;
}

/* trial CTA at the foot of the capability list */

.feats-cta {
  margin-top: 0.375rem;
  padding-left: 2rem;
}

.feats-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

@media (max-width: 1000px) {
  .feats-cta { padding-left: 0; }
}

.cta-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--ink-subtle);
  transition: color 0.5s ease;
}

/* ---------- bundle builder demo (static mock-up) ---------- */

.demo {
  position: relative;
  max-width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: clamp(1rem, 2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vh, 1.5rem);
  transition:
    background-color 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.4s var(--ease-out),
    opacity 0.35s ease,
    transform 0.35s ease,
    max-width 0.35s var(--ease-out);
}

.demo.is-admin {
  max-width: 44rem;
}

.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.demo-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.demo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

@media (max-width: 700px) {
  .demo {
    /* keep the card on-page; only the pills strip scrolls */
    overflow: hidden;
  }

  .demo-top {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
  }

  .demo-pills {
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .demo-pills::-webkit-scrollbar {
    display: none;
  }

  .pill {
    flex: 0 0 auto;
  }

  /* resting state: one compact row so the overlay doesn't feel tall */
  .demo.is-skeleton .dcard:nth-child(n + 3) {
    display: none;
  }

  .demo.is-skeleton .demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pill {
  appearance: none;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pill:hover { border-color: var(--ink-subtle); }

.pill.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface-0);
}

/* storefront/admin switcher — hidden while the demo is still skeletonized */

.demo-col:has(.demo.is-skeleton) .demo-switch {
  display: none;
}

.demo-switch {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  padding: 0.1875rem;
  border-radius: 0.5rem;
  background: var(--surface-0);
  border: 1px solid var(--line);
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

.demo-switch-thumb {
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: calc(50% - 0.1875rem);
  height: calc(100% - 0.375rem);
  border-radius: 0.375rem;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), background-color 0.5s ease;
}

.demo-switch.is-admin .demo-switch-thumb {
  transform: translateX(100%);
}

.demo-switch-btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4375rem 0.9375rem;
  min-width: 5.5rem;
  border-radius: 0.375rem;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.25s ease;
}

.demo-switch-btn.is-on {
  color: var(--surface-0);
}

.demo-switch-btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* active panel sets height; inactive is out of flow so storefront hugs content */
.demo-panels {
  position: relative;
}

.demo-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vh, 1.5rem);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.demo-panel:not(.is-active) {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.demo-panel.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* product cards */

.demo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 1240px) and (min-width: 1001px) {
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.dcard {
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background-color 0.5s ease, border-color 0.5s ease, transform 0.32s var(--ease-out);
}

.dcard.is-added {
  border-color: var(--line-strong);
}

.dcard.is-pulsing {
  animation: cardPulse 0.32s var(--ease-out);
}

.dcard.is-filtered-out {
  display: none;
}

.dcard.is-entering {
  animation: cardEnter 0.45s var(--ease-out) both;
  animation-delay: var(--enter-delay, 0ms);
}

/* photo-like placeholder; fixed colors on purpose so it reads as imagery
   in both tones. Swapped for generated product shots later. */
.dcard-media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0.375rem;
  overflow: hidden;
}

.dcard-added {
  position: absolute;
  top: 0.4375rem;
  left: 0.4375rem;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-0);
  color: var(--ink);
  opacity: 0;
  transform: translateY(-4px) scale(0.92);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), background-color 0.5s ease, color 0.5s ease;
}

.dcard.is-added .dcard-added {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dcard-media--goggles {
  background: linear-gradient(145deg, oklch(0.82 0.05 245), oklch(0.6 0.1 262));
}

.dcard-media--bindings {
  background: linear-gradient(145deg, oklch(0.78 0.05 55), oklch(0.55 0.1 40));
}

.dcard-media--wax {
  background: linear-gradient(145deg, oklch(0.86 0.09 128), oklch(0.68 0.13 135));
}

.dcard-media--jacket {
  background: linear-gradient(145deg, oklch(0.72 0.06 20), oklch(0.5 0.08 8));
}

.dcard-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 25% 15%, oklch(1 0 0 / 22%), transparent 55%);
}

.dcard-name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dcard-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 0.75rem;
  margin-top: -0.375rem;
  transition: color 0.5s ease;
}

.dcard-price .price-was {
  color: var(--ink-subtle);
  text-decoration: line-through;
  transition: color 0.5s ease;
}

.dcard-price .price-now {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: color 0.5s ease;
}

/* fixed-height control slot so swapping + Add ↔ stepper never grows the card */
.dcard-controls {
  --control-h: 1.625rem;
  margin-top: auto;
  position: relative;
  height: var(--control-h);
}

.dcard-add,
.dcard-stepper {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  height: var(--control-h);
  border-radius: 0.3125rem;
  border: 1px solid var(--line-strong);
}

.dcard-add {
  appearance: none;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.15s ease, transform 0.15s ease;
}

.dcard-add:hover { background: var(--line); }
.dcard-add:active { transform: scale(0.97); }

.dcard.is-added .dcard-add {
  opacity: 0;
  pointer-events: none;
}

.dcard-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  padding: 0.125rem;
  opacity: 0;
  pointer-events: none;
  transition: border-color 0.5s ease, opacity 0.15s ease;
}

.dcard.is-added .dcard-stepper {
  opacity: 1;
  pointer-events: auto;
}

.step-btn {
  appearance: none;
  border: none;
  background: none;
  width: 1.75rem;
  height: 100%;
  border-radius: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.step-btn:hover { background: var(--line); }
.step-btn:active { transform: scale(0.88); }

.step-qty {
  min-width: 1.125rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* savings meter */

.meter-track {
  position: relative;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--line);
  transition: background-color 0.5s ease;
}

.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  border-radius: inherit;
  background: var(--toggle-green);
  transition: width 0.5s var(--ease-out);
}

.meter-tick {
  position: absolute;
  top: 50%;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface-1);
  border: 2px solid var(--line-strong);
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.meter-tick.is-hit {
  background: var(--toggle-green);
  border-color: var(--toggle-green);
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  transition: color 0.5s ease;
}

.meter-labels .is-active { color: var(--ink); }

.meter-nudge {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  transition: color 0.5s ease;
}

.meter-nudge strong {
  font-weight: 600;
  color: var(--ink);
  transition: color 0.5s ease;
}

/* totals + minted code */

.demo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  transition: border-color 0.5s ease;
}

.demo-total {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.demo-total .was {
  font-size: 0.8125rem;
  color: var(--ink-subtle);
  text-decoration: line-through;
  transition: color 0.5s ease;
}

.demo-total .now {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.code-chip {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.375rem 0.625rem;
  border-radius: 0.3125rem;
  border: 1px dashed var(--line-strong);
  color: var(--ink-muted);
  cursor: help;
  transition: color 0.5s ease, border-color 0.5s ease;
}

/* Tooltips: CSS ::after is the no-JS fallback. With JS we use a single
   position:fixed bubble (see main.js) so tips aren't clipped by overflow
   scrollports (pills strip) and stay clamped inside the viewport. */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  width: max-content;
  max-width: min(13rem, calc(100vw - 1.5rem));
  padding: 0.5rem 0.625rem;
  border-radius: 0.375rem;
  background: oklch(0.18 0.01 260);
  color: oklch(0.98 0.006 95);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

html.has-float-tips [data-tooltip]::after {
  content: none;
  display: none;
}

.float-tip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: max-content;
  max-width: min(13rem, calc(100vw - 1.5rem));
  padding: 0.5rem 0.625rem;
  border-radius: 0.375rem;
  background: oklch(0.18 0.01 260);
  color: oklch(0.98 0.006 95);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.float-tip.is-on {
  opacity: 1;
  visibility: visible;
}

.cta-wrap {
  position: relative;
  display: inline-flex;
}

.demo-cta {
  appearance: none;
  border: none;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.5rem;
  padding-inline: 1.125rem;
  border-radius: 0.375rem;
  background: var(--ink);
  color: var(--surface-0);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.15s ease, opacity 0.3s ease;
}

.demo-cta:hover:not(:disabled) { transform: translateY(-1px); }
.demo-cta:active:not(:disabled) { transform: translateY(0) scale(0.97); }

.demo-cta:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.demo-cta.is-success {
  background: var(--toggle-green);
  color: var(--on-accent);
  animation: ctaPop 0.4s var(--ease-out);
}

.demo-cta.is-wobbling {
  animation: ctaWobble 0.5s var(--ease-out);
}

.spark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  background: var(--toggle-green);
  pointer-events: none;
  animation: sparkUp 0.7s var(--ease-out) forwards;
}

.demo.is-success {
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--toggle-green) 32%, transparent);
}

.demo.is-resetting {
  opacity: 0.4;
  transform: scale(0.99);
}

/* resting skeleton state — the demo loads gray and inert so it doesn't
   compete with the rest of the page; one click brings it to life (demo.js) */
.demo .demo-panel--storefront > :not(.demo-activate) {
  transition: filter 0.5s ease, opacity 0.5s ease, border-color 0.5s ease;
}

.demo.is-skeleton .demo-panel--storefront > :not(.demo-activate) {
  filter: grayscale(1);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.demo.is-skeleton .dcard-media {
  background: var(--line);
}

.demo.is-skeleton .dcard-media::after {
  content: none;
}

/* text reads as gray bars, like a loading skeleton */
.demo.is-skeleton .demo-panel--storefront
  :is(.demo-title, .dcard-name, .meter-nudge, .code-chip, .pill, .dcard-price > *, .demo-total > *, .meter-labels > *) {
  background: var(--line);
  border-color: transparent;
  border-radius: 0.25rem;
}

.demo.is-skeleton .demo-panel--storefront
  :is(.demo-title, .dcard-name, .meter-nudge, .code-chip, .pill, .dcard-price > *, .demo-total > *, .meter-labels > *),
.demo.is-skeleton .demo-panel--storefront
  :is(.demo-title, .dcard-name, .meter-nudge, .code-chip, .pill, .dcard-price > *, .demo-total > *, .meter-labels > *) * {
  color: transparent !important;
  text-decoration: none;
}

.demo-activate {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.demo.is-skeleton .demo-activate {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.demo-activate-btn {
  box-shadow: 0 12px 32px oklch(0 0 0 / 16%);
}

/* ---------- admin panel (Polaris-esque config demo) ---------- */

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.5s ease;
}

.admin-app {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.admin-app-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  background: linear-gradient(145deg, var(--toggle-green), oklch(0.6 0.13 145));
  flex-shrink: 0;
}

.admin-app-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.5625rem;
  border-radius: 999px;
  color: var(--ink);
  background: color-mix(in oklch, var(--toggle-green) 22%, transparent);
  transition: color 0.5s ease;
}

.admin-badge::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--toggle-green);
}

.admin-groups {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-group {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.5s ease;
}

.admin-group:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.admin-group-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.admin-group-help {
  margin-top: 0.3125rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-muted);
  transition: color 0.5s ease;
}

/* discount tier editor */

.admin-tiers {
  margin-top: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-tier-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.admin-tier-row.is-entering {
  animation: cardEnter 0.3s var(--ease-out) both;
}

.admin-tier-row.is-removing {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-tier-arrow {
  color: var(--ink-subtle);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.admin-tier-input {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid var(--line-strong);
  background: var(--surface-0);
  cursor: text;
  transition: border-color 0.2s ease, background-color 0.5s ease;
}

.admin-tier-input:focus-within {
  border-color: var(--ink);
}

.admin-tier-qty {
  min-width: 4.25rem;
}

.admin-tier-rate {
  min-width: 5.5rem;
}

.tier-qty,
.tier-rate {
  appearance: textfield;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tier-qty {
  width: 1.75rem;
}

.tier-rate {
  width: 2.25rem;
}

.tier-qty::-webkit-outer-spin-button,
.tier-qty::-webkit-inner-spin-button,
.tier-rate::-webkit-outer-spin-button,
.tier-rate::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.tier-qty:focus,
.tier-rate:focus {
  outline: none;
}

.admin-tier-suffix {
  font-size: 0.75rem;
  color: var(--ink-subtle);
}

.admin-tier-remove {
  appearance: none;
  border: none;
  background: none;
  flex-shrink: 0;
  margin-left: auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.3125rem;
  font-size: 0.9375rem;
  line-height: 1;
  color: var(--ink-subtle);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-tier-remove:hover {
  background: var(--line);
  color: var(--ink);
}

.admin-tier-remove:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: none;
}

.admin-tier-add {
  appearance: none;
  border: 1px dashed var(--line-strong);
  background: none;
  margin-top: 0.625rem;
  height: 1.875rem;
  padding-inline: 0.75rem;
  border-radius: 0.375rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.admin-tier-add:hover {
  border-color: var(--ink-subtle);
  color: var(--ink);
  background: var(--line);
}

/* toggle / checkbox / radio rows shared across setting groups */

.admin-toggle-row,
.admin-check-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.625rem;
  cursor: pointer;
}

.admin-check-row {
  justify-content: flex-start;
  align-items: flex-start;
}

.admin-check-row.is-locked {
  cursor: default;
}

.admin-row-text {
  display: flex;
  flex-direction: column;
  gap: 0.1875rem;
}

.admin-row-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.admin-row-help {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-muted);
  transition: color 0.5s ease;
}

/* toggle switch — same visual language as the header brand-mark toggle */

.admin-toggle {
  --w: 2.125rem;
  --h: 1.25rem;
  position: relative;
  flex-shrink: 0;
  width: var(--w);
  height: var(--h);
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.admin-toggle::after {
  content: "";
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: calc(var(--h) - 0.25rem);
  height: calc(var(--h) - 0.25rem);
  border-radius: 50%;
  background: var(--surface-0);
  box-shadow: 0 1px 2px oklch(0 0 0 / 25%);
  transition: transform 0.25s var(--ease-out);
}

.admin-toggle.is-on {
  background: var(--toggle-green);
}

.admin-toggle.is-on::after {
  transform: translateX(calc(var(--w) - var(--h)));
}

.admin-toggle:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* checkboxes and radios lean on accent-color for a native, low-effort control
   that still picks up the brand green */

.admin-check-row input[type="checkbox"],
.admin-radio-row input[type="radio"] {
  accent-color: var(--toggle-green);
  width: 1.0625rem;
  height: 1.0625rem;
  margin-top: 0.0625rem;
  flex-shrink: 0;
  cursor: pointer;
}

.admin-check-row.is-locked input[type="checkbox"] {
  cursor: default;
  opacity: 0.65;
}

.admin-radio-group {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.admin-radio-group-label {
  display: block;
  margin-bottom: 0.25rem;
}

.admin-radio-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
}

.admin-foot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  transition: border-color 0.5s ease;
}

.admin-save {
  appearance: none;
  border: none;
  font: inherit;
  height: 2.25rem;
  padding-inline: 1.125rem;
  border-radius: 0.375rem;
  background: var(--ink);
  color: var(--surface-0);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.15s ease;
}

.admin-save:hover { transform: translateY(-1px); }
.admin-save:active { transform: translateY(0) scale(0.97); }

.admin-toast {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.admin-toast::before {
  content: "\2713";
  margin-right: 0.375rem;
  color: var(--toggle-green);
  font-weight: 600;
}

.admin-toast.is-shown {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- closing cta ---------- */

.closing {
  padding-block: clamp(5rem, 14vh, 9rem);
  border-top: 1px solid var(--line-strong);
  text-align: center;
  transition: border-color 0.5s ease;
}

.closing h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.closing h2 em {
  font-style: italic;
  letter-spacing: -0.02em;
}

.closing-actions {
  margin-top: clamp(1.75rem, 4vh, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

/* ---------- contact dialog ---------- */

.contact-dialog {
  width: min(26rem, calc(100vw - 2.5rem));
  height: fit-content;
  max-height: min(92vh, 56rem);
  margin: auto;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface-0);
  color: var(--ink);
  box-shadow: 0 24px 60px oklch(0 0 0 / 22%);
  overflow: auto;
  transition: width 0.3s var(--ease-out);
}

.contact-dialog[open] {
  animation: dialogIn 0.35s var(--ease-out);
}

.contact-dialog::backdrop {
  background: oklch(0.14 0.01 260 / 45%);
  backdrop-filter: blur(3px);
}

/* mobile form: full-width bottom sheet */
@media (max-width: 700px) {
  .contact-dialog {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    height: fit-content;
    max-height: 94dvh;
    margin: 0;
    padding:
      0.625rem
      max(1.125rem, env(safe-area-inset-right, 0px))
      max(1rem, env(safe-area-inset-bottom, 0px))
      max(1.125rem, env(safe-area-inset-left, 0px));
    border: none;
    border-top: 1px solid var(--line);
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -16px 48px oklch(0 0 0 / 18%);
  }

  .contact-dialog[open] {
    animation: sheetUp 0.4s var(--ease-out);
  }

  .contact-dialog::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 0.25rem;
    margin: 0.125rem auto 0.75rem;
    border-radius: 999px;
    background: var(--line-strong);
  }

  .contact-head h3 {
    font-size: 1.375rem;
  }
}

/* Booking screen lives outside <dialog> so Calendly date taps work on iOS.
   Full-screen panel on mobile; centered card on desktop. */
.contact-book-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  overflow: hidden;
  overscroll-behavior: none;
}

.contact-book-screen[hidden] {
  display: none;
}

.contact-book-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--surface-0);
  color: var(--ink);
  overflow: hidden;
}

html.is-booking-open,
html.is-booking-open body {
  overflow: hidden;
}

.contact-book-screen-bar {
  flex-shrink: 0;
  padding:
    max(1rem, env(safe-area-inset-top, 0px))
    max(1.25rem, env(safe-area-inset-right, 0px))
    0.75rem
    max(1.25rem, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line);
  background: var(--surface-0);
}

.contact-book-screen .contact-head {
  margin-bottom: 0.5rem;
}

.contact-book-screen .contact-book-lede {
  max-width: 40ch;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.contact-book-screen .calendly-host {
  flex: 1;
  width: 100%;
  min-width: 320px;
  min-height: 0;
  height: auto;
  overflow: hidden !important;
  border-radius: 0;
}

.contact-book-screen .calendly-inline-widget,
.contact-book-screen .calendly-inline-widget iframe {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  border: 0;
  border-radius: 0;
}

@media (min-width: 701px) {
  .contact-book-screen {
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: oklch(0.14 0.01 260 / 45%);
    backdrop-filter: blur(3px);
  }

  .contact-book-panel {
    width: min(52rem, 100%);
    height: min(50rem, 100%);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    box-shadow: 0 24px 60px oklch(0 0 0 / 22%);
  }

  .contact-book-screen-bar {
    padding: 1.5rem 2rem 1rem;
  }

  .contact-book-screen .contact-book-lede {
    font-size: 0.9375rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form[hidden] {
  display: none;
}

.contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.contact-head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.625rem;
  letter-spacing: -0.02em;
}

/* 44×44 touch target — shared by contact, pricing, and booking close */
.contact-close {
  appearance: none;
  border: none;
  background: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: -0.5rem -0.5rem -0.5rem 0;
  border-radius: 0.5rem;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--ink-subtle);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.contact-close:hover {
  background: var(--line);
  color: var(--ink);
}

.contact-close:active {
  background: var(--line-strong);
  color: var(--ink);
}

/* Polaris-style floating labels — rest centered, rise on focus/value */
.field {
  position: relative;
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  background: var(--surface-1);
  cursor: text;
  transition: border-color 0.2s ease, background-color 0.5s ease;
}

.field:focus-within {
  border-color: var(--ink);
}

.field-label {
  position: absolute;
  left: 0.75rem;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-muted);
  line-height: 1.2;
  pointer-events: none;
  transform-origin: left center;
  transition:
    top 0.18s var(--ease-out),
    transform 0.18s var(--ease-out),
    font-size 0.18s var(--ease-out),
    color 0.18s ease;
}

.field--area .field-label {
  top: 1.125rem;
}

.field:focus-within .field-label,
.field.is-floated .field-label,
.field:has(input:not(:placeholder-shown)) .field-label,
.field:has(textarea:not(:placeholder-shown)) .field-label {
  top: 0.4rem;
  transform: translateY(0);
  font-size: 0.6875rem;
  letter-spacing: 0.01em;
  color: var(--ink-subtle);
}

.field-optional {
  font-weight: 400;
}

.field-input {
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: none;
  border: none;
  border-radius: 0.5rem;
  padding: 1.375rem 0.75rem 0.4375rem;
}

.field-input:focus {
  outline: none;
}

/* hint text only after the label has floated up */
.field-input::placeholder {
  color: transparent;
  transition: color 0.15s ease;
}

.field:focus-within .field-input::placeholder {
  color: var(--ink-subtle);
}

select.field-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.field:has(select) {
  cursor: pointer;
}

textarea.field-input {
  resize: vertical;
  min-height: 4.25rem;
  line-height: 1.4;
  padding-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .field-label {
    transition: none;
  }
}

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

.cf-turnstile {
  line-height: 0;
}

.cf-turnstile:empty {
  display: none;
}

.contact-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.125rem;
}

.contact-submit {
  height: 2.75rem;
  flex-shrink: 0;
}

.contact-form.is-sent .contact-submit {
  background: var(--toggle-green);
  color: var(--on-accent);
}

.contact-note {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-subtle);
  transition: color 0.5s ease;
}

.contact-status {
  font-size: 0.8125rem;
  line-height: 1.4;
}

.contact-status:empty {
  display: none;
}

.contact-skip {
  appearance: none;
  border: none;
  background: none;
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-subtle);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.contact-skip:hover {
  color: var(--ink);
}

.contact-skip[hidden] {
  display: none;
}

.contact-status[data-kind="error"] {
  color: oklch(0.5 0.16 25);
}

.contact-status[data-kind="ok"] {
  color: var(--ink-muted);
}

[data-tone="ink"] .contact-status[data-kind="error"] {
  color: oklch(0.78 0.12 25);
}

/* ---------- pricing dialog ---------- */

@media (min-width: 701px) {
  .pricing-dialog {
    width: min(28rem, calc(100vw - 2.5rem));
  }
}

.pricing-note {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-muted);
  transition: color 0.5s ease;
}

.pricing-plans {
  list-style: none;
  margin-top: 1rem;
}

.plan {
  padding-block: 1rem;
  border-top: 1px solid var(--line);
  transition: border-color 0.5s ease;
}

.plan:last-child {
  border-bottom: 1px solid var(--line);
}

.plan-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.plan-name {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.plan-price {
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.plan-per {
  font-weight: 400;
  color: var(--ink-subtle);
  transition: color 0.5s ease;
}

.plan-cap {
  display: block;
  margin-top: 0.3125rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-subtle);
  transition: color 0.5s ease;
}

.plan-feats {
  margin-top: 0.4375rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-muted);
  transition: color 0.5s ease;
}

.pricing-foot {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pricing-foot .btn {
  flex-shrink: 0;
  height: 2.75rem;
}

.pricing-foot .cta-note {
  margin-top: 0;
  font-size: 0.75rem;
  line-height: 1.5;
}

/* ---------- footer ---------- */

footer {
  position: relative;
  padding-block: clamp(1.25rem, 3vh, 1.75rem) clamp(1.25rem, 3vh, 2rem);
  opacity: 0;
  animation: rise 0.7s var(--ease-out) forwards 0.85s;
}

.caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 1rem 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .caps { grid-template-columns: 1fr; gap: 0.875rem; }
}

.cap {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.cap .n {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-subtle);
  transition: color 0.5s ease;
}

.cap .t {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.colophon {
  justify-self: end;
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  color: var(--ink-subtle);
  text-align: right;
  transition: color 0.5s ease;
}

.colophon a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.colophon a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .colophon { justify-self: start; text-align: left; }
}

/* ---------- motion ---------- */

@keyframes sharpen {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

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

@keyframes draw {
  to { transform: scaleX(1); }
}

@keyframes cardPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ctaWobble {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-3deg); }
  40% { transform: rotate(3deg); }
  60% { transform: rotate(-2deg); }
  80% { transform: rotate(2deg); }
}

@keyframes ctaPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sheetUp {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sparkUp {
  to {
    transform: translate(var(--dx), var(--dy)) scale(0.4);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  header, footer, .sub-inner, .scroll-cue, h1 .row {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
  header::after, footer::before {
    animation: none;
    transform: scaleX(1);
  }
  .mark::after { transition: none; }
  html { scroll-behavior: auto; }

  .js .showcase [data-reveal],
  .js .closing [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .contact-dialog[open] {
    animation: none;
  }

  @media (max-width: 700px) {
    .contact-dialog[open] {
      animation: none;
    }
  }

  .dcard.is-pulsing,
  .dcard.is-entering,
  .demo-cta.is-success,
  .demo-cta.is-wobbling {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .spark { display: none; }

  .demo.is-resetting {
    transform: none;
  }

  [data-tooltip]::after {
    transition: none;
  }

  .demo,
  .demo-switch-thumb,
  .demo-panel,
  .admin-toggle::after,
  .admin-toast,
  .admin-tier-row.is-removing,
  .demo .demo-panel--storefront > :not(.demo-activate),
  .demo-activate {
    transition: none;
  }

  .admin-tier-row.is-entering {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
