/*
 * Sellflu marketing site — shares its brand tokens (teal / ink / gold, IBM Plex Sans + Mono,
 * the torn-receipt-edge + barcode-rule motif) with the app itself (frontend/src/app/globals.css)
 * on purpose: this is the first thing a shop owner sees, retail.sellflu.com is the second, and
 * they need to visibly be the same product. Self-contained (no build step) — see
 * docs/hosting-guide.html #marketing for how it's deployed as plain static files.
 *
 * Signature move: the hero invoice doesn't just sit there, it prints itself in — header, then
 * barcode rule, then each line item, then the stamp — because "printing a receipt" is the one
 * moment that is unmistakably this product's own. Everything else on the page stays quiet by
 * comparison (a scroll reveal, a count-up, a line that draws itself between the three setup
 * steps) so that one moment keeps its weight instead of competing with six others.
 */

:root {
  --ink: #14213d;
  --ink-muted: #5b6b69;
  --paper: #ffffff;
  --paper-soft: #f2f6f5;
  --paper-soft-2: #eaf3f0;
  --line: #e1e7e5;
  --line-strong: #cbd8d5;

  --teal: #0e9a82;
  --teal-hover: #0b7c69;
  --teal-deep: #095e4f;
  --teal-tint: #e2f5f1;

  --gold: #b8862e;
  --gold-hover: #96691f;
  --gold-tint: #faf1e0;

  --ink-line: rgba(255, 255, 255, 0.14);
  --ink-muted-on-dark: #9fb0c4;

  --font-sans: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  --font-display: "IBM Plex Sans Condensed", "IBM Plex Sans", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(20, 33, 61, 0.07), 0 1px 2px rgba(20, 33, 61, 0.04);
  --shadow-md: 0 10px 28px rgba(20, 33, 61, 0.1), 0 2px 6px rgba(20, 33, 61, 0.05);
  --shadow-lg: 0 24px 60px rgba(20, 33, 61, 0.16);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  /* Bare `*` doesn't match ::before/::after — spelled out since the step-track connecting line
     and the nav/footer underline hovers are pseudo-element transitions. */
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .receipt-head,
  .receipt .barcode-rule,
  .receipt-line,
  .receipt-total,
  .stamp {
    opacity: 1 !important;
    transform: none !important;
  }
  .step-track::after {
    transform: scaleX(1) !important;
  }
  .marquee-track {
    animation: none !important;
  }
  .marquee-track:nth-child(2) {
    display: none;
  }
  .marquee-viewport {
    overflow-x: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.steps-band .eyebrow {
  color: #6fd8c4;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  margin: 0;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

.figure {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Fixed, near-invisible grain — the one "senior dev" trick that stops a flat vector page from
   reading as machine-generated: pure noise, no color, 3.5% opacity, never intercepts clicks. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  z-index: 600;
  transition: width 80ms linear;
}

/* ---------- Scroll / entrance reveal system ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 200ms var(--ease-spring), background 160ms ease, border-color 160ms ease, box-shadow 220ms ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: scale(0.97) translateY(0);
}
.btn-primary {
  background: var(--teal);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--teal-hover);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}
.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  padding: 12px 8px;
}
.btn-ghost:hover {
  color: var(--teal-hover);
  transform: none;
}
.btn-lg {
  padding: 15px 30px;
  font-size: 1.02rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 400;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  transition: transform 320ms var(--ease-spring);
}
.brand:hover .brand-mark {
  transform: rotate(-8deg);
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding-bottom: 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--teal);
  transition: right 220ms var(--ease);
}
.nav-links a:hover {
  color: var(--teal-deep);
}
.nav-links a:hover::after {
  right: 0;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}
.nav-toggle svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 18px 24px 28px;
    border-top: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 350;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a::after {
    display: none;
  }
  body.nav-open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-actions .btn-ghost {
    display: none;
  }
}

/* ---------- Section scaffolding ---------- */

section {
  padding: 88px 0;
}
.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-top: 10px;
}
.section-head p {
  margin-top: 14px;
  font-size: 1.08rem;
  color: var(--ink-muted);
}
.band-soft {
  background: var(--paper-soft);
}

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

.hero {
  padding: 60px 0 88px;
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 30%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(560px circle at var(--mx) var(--my), color-mix(in srgb, var(--teal) 15%, transparent), transparent 62%),
    radial-gradient(480px circle at calc(100% - var(--mx)) -5%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: background 400ms ease-out;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 4.6vw, 3.7rem);
  margin-top: 16px;
}
.hero-sub {
  margin-top: 20px;
  font-size: 1.16rem;
  color: var(--ink-muted);
  max-width: 46ch;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-row .tick {
  color: var(--teal);
  font-weight: 700;
}

/* ---------- Receipt card (the signature moment) ---------- */
/* Each part fades/settles in on its own delay when .receipt gets .in-view, in the order paper
   would actually feed out of a till: header first, then each line, then the total, then the
   stamp comes down last, slightly crooked, the way a rubber stamp always lands a little off. */

.receipt {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  padding: 28px 26px 34px;
  position: relative;
  transform: rotate(1.2deg);
}
.receipt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--font-mono);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.receipt-head .title {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.receipt-head .title .led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-tint);
  animation: pulse 2.2s ease-in-out infinite;
}
.receipt-head .num {
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.receipt .barcode-rule {
  height: 13px;
  border-radius: 2px;
  opacity: 0;
  margin: 16px 0;
  transform: scaleX(0.85);
  transition: opacity 450ms var(--ease), transform 450ms var(--ease);
  background-image: repeating-linear-gradient(
    90deg,
    var(--ink) 0px,
    var(--ink) 1px,
    transparent 1px,
    transparent 3px,
    var(--ink) 3px,
    var(--ink) 5px,
    transparent 5px,
    transparent 8px
  );
}
.receipt-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.96rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.receipt-line + .receipt-line {
  border-top: 1px dashed var(--line);
}
.receipt-line .label {
  color: var(--ink-muted);
}
.receipt-line .value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--teal-deep);
  text-align: right;
  white-space: nowrap;
}
.receipt-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 14px;
  opacity: 0;
  transition: opacity 450ms var(--ease);
}
.receipt-total .label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.receipt-total .value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--teal-deep);
}
.stamp {
  position: absolute;
  top: 20px;
  right: -14px;
  width: 108px;
  height: 108px;
  border: 2.5px dashed color-mix(in srgb, var(--gold) 70%, transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gold-hover);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.25;
  padding: 8px;
  background: color-mix(in srgb, var(--gold) 6%, var(--paper));
  opacity: 0;
  transform: rotate(2deg) scale(0.7);
  transition: opacity 480ms var(--ease-spring), transform 480ms var(--ease-spring);
}

/* Printed-in choreography — fires once, when the card scrolls into view */
.receipt.in-view .receipt-head {
  opacity: 1;
  transform: none;
  transition-delay: 60ms;
}
.receipt.in-view .barcode-rule {
  opacity: 0.45;
  transform: none;
}
.receipt.in-view .rule-top {
  transition-delay: 200ms;
}
.receipt.in-view .receipt-line:nth-child(3) {
  transition-delay: 300ms;
}
.receipt.in-view .receipt-line:nth-child(4) {
  transition-delay: 400ms;
}
.receipt.in-view .receipt-line:nth-child(5) {
  transition-delay: 500ms;
}
.receipt.in-view .receipt-line:nth-child(6) {
  transition-delay: 600ms;
}
.receipt.in-view .receipt-line:nth-child(7) {
  transition-delay: 700ms;
}
.receipt.in-view .receipt-line {
  opacity: 1;
  transform: none;
}
.receipt.in-view .rule-bottom {
  transition-delay: 780ms;
}
.receipt.in-view .receipt-total {
  opacity: 1;
  transition-delay: 880ms;
}
.receipt.in-view .stamp {
  opacity: 1;
  transform: rotate(-11deg) scale(1);
  transition-delay: 980ms;
}

.receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -11px;
  height: 12px;
  background-image: linear-gradient(135deg, var(--paper) 6px, transparent 0), linear-gradient(-135deg, var(--paper) 6px, transparent 0);
  background-position: left bottom;
  background-size: 12px 12px;
  background-repeat: repeat-x;
  filter: drop-shadow(0 6px 6px rgba(20, 33, 61, 0.08));
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .receipt {
    transform: none;
    max-width: 440px;
  }
  .stamp {
    right: 12px;
  }
}

/* ---------- Marquee: shop types Sellflu already ships templates for ---------- */

.marquee-section {
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-viewport {
  overflow: hidden;
  padding: 22px 0;
  display: flex;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  flex-shrink: 0;
  animation: marquee 26s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  white-space: nowrap;
}
.marquee-viewport:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track span {
  color: var(--teal-deep);
  margin-right: 10px;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* ---------- Feature bento ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 20px;
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  /* Merged with .reveal's opacity/transform here (rather than left to cascade) since this rule's
     own `transition` shorthand would otherwise silently win and drop the reveal fade entirely —
     same reason .price-card and .stat-cell below merge theirs too. */
  transition: opacity 700ms var(--ease) var(--delay, 0ms), transform 260ms var(--ease-spring) var(--delay, 0ms), border-color 200ms ease, box-shadow 200ms ease;
}
.feature-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feature-card.span-2 {
  /* Wide, not tall — spanning rows too would leave a gap auto-placement can't backfill
     once the single-column IMEI card and the full-width banner card are laid out around it. */
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.feature-card.span-3 {
  grid-column: span 3;
  display: flex;
  align-items: center;
  gap: 26px;
}
.feature-card.span-3 .feature-copy {
  flex: 1;
}
.feature-stamp {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  border: 1.5px dashed var(--line-strong);
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  transform: rotate(-6deg);
  transition: transform 220ms var(--ease-spring), border-color 220ms ease;
  margin-bottom: 16px;
}
.feature-card:hover .feature-stamp {
  transform: rotate(0deg);
  border-color: var(--teal);
}
.feature-card.span-3 .feature-stamp {
  margin-bottom: 0;
}
.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  font-family: var(--font-sans);
}
.feature-card.span-2 h3 {
  font-size: 1.3rem;
}
.feature-card p {
  margin-top: 8px;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

/* Mini animated visual inside the big billing card — a looping "calculating" fill that resolves
   to a checkmark, standing in for the GST split instead of a fake, ever-climbing number. */
.mini-calc {
  margin-top: 20px;
  padding: 16px 16px 14px;
  border-radius: 10px;
  background: var(--teal-tint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal-deep);
}
.mini-calc-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.mini-calc-track {
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 18%, transparent);
  overflow: hidden;
}
.mini-calc-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--teal);
  animation: calc-fill 3.2s var(--ease) infinite;
}
@keyframes calc-fill {
  0% {
    width: 0%;
  }
  55% {
    width: 100%;
  }
  85% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card.span-2,
  .feature-card.span-3 {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-card.span-2,
  .feature-card.span-3 {
    grid-column: span 1;
  }
  .feature-card.span-3 {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* ---------- Stat row ("why") ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat-cell {
  background: var(--paper);
  padding: 30px 22px;
  transition: opacity 700ms var(--ease) var(--delay, 0ms), transform 700ms var(--ease) var(--delay, 0ms), background 220ms ease;
}
.stat-cell:hover {
  background: var(--paper-soft);
}
.stat-cell .stat-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--teal-deep);
}
.stat-cell .stat-label {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

@media (max-width: 860px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- How it works — dark band, line draws itself between the three steps ---------- */

.steps-band {
  background: var(--ink);
  color: #ffffff;
}
.steps-band .section-head p {
  color: var(--ink-muted-on-dark);
}
.step-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
/* Full-width rail rather than one trimmed to the badges' centers — the badges are left-aligned
   inside their grid column, not centered, so a line trimmed to "meet" them precisely would need
   JS to measure real positions. A continuous rail with the (z-index: 1) badges sitting on top of
   it reads just as intentionally as a timeline and doesn't depend on exact alignment. */
.step-track::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 0;
  right: 0;
  height: 1px;
  background-image: linear-gradient(90deg, var(--ink-line) 0 6px, transparent 6px 12px);
  background-size: 12px 1px;
  background-repeat: repeat-x;
}
.step-track::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), #6fd8c4);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1100ms var(--ease);
  transition-delay: 200ms;
}
.step-track.in-view::after {
  transform: scaleX(1);
}
.step {
  position: relative;
}
.step .step-num {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--gold-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: #ffffff;
}
.step p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--ink-muted-on-dark);
}

@media (max-width: 860px) {
  .step-track {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .step-track::before,
  .step-track::after {
    display: none;
  }
}

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

.pricing-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.pricing-head-row .section-head {
  margin-bottom: 0;
}
.price-toggle {
  position: relative;
  display: inline-flex;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  flex-shrink: 0;
}
.price-toggle button {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-muted);
  transition: color 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.price-toggle button[aria-pressed="true"] {
  color: #ffffff;
}
.price-toggle .save-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--gold-tint);
  color: var(--gold-hover);
  padding: 1px 6px;
  border-radius: 999px;
}
.price-toggle button[aria-pressed="true"] .save-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.price-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  background: var(--teal);
  border-radius: 999px;
  transition: transform 260ms var(--ease-spring);
}
.pricing.yearly .price-toggle-thumb {
  transform: translateX(100%);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  transition: opacity 700ms var(--ease) var(--delay, 0ms), transform 260ms var(--ease-spring) var(--delay, 0ms), border-color 220ms ease, box-shadow 220ms ease;
}
.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.price-card.featured {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  position: relative;
}
.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 22px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-name {
  font-weight: 600;
  font-size: 1.02rem;
}
.price-amount {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.7rem;
  margin-top: 10px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-amount span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.price-amount .y-price {
  display: none;
}
.pricing.yearly .price-amount .m-price {
  display: none;
}
.pricing.yearly .price-amount .y-price {
  display: inline;
}
.price-list {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  flex: 1;
}
.price-list li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.price-note {
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--ink-muted);
  text-align: center;
}

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

/* ---------- Final CTA ---------- */

.cta-band {
  background: var(--teal-deep);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  color: #ffffff;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}
.cta-band p {
  margin-top: 10px;
  color: color-mix(in srgb, #ffffff 78%, transparent);
  max-width: 44ch;
}
.cta-band .btn-outline {
  border-color: color-mix(in srgb, #ffffff 40%, transparent);
  color: #fff;
}
.cta-band .btn-outline:hover {
  border-color: #fff;
}
.cta-band .btn-primary {
  background: #ffffff;
  color: var(--teal-deep);
}
.cta-band .btn-primary:hover {
  background: #f2f6f5;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 34px;
  background: var(--paper-soft);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand {
  max-width: 320px;
}
.footer-brand p {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.footer-cols {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  position: relative;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink);
}
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--teal-deep);
  transition: right 200ms var(--ease);
}
.footer-col a:hover {
  color: var(--teal-deep);
}
.footer-col a:hover::after {
  right: 0;
}
.footer-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* ---------- Legal pages (privacy / terms) ---------- */

.legal-hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--line);
}
.legal-hero .eyebrow {
  margin-bottom: 10px;
}
.legal-hero .updated {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.legal-body {
  padding: 48px 0 96px;
}
.legal-body .wrap {
  max-width: 800px;
}
.legal-body h2 {
  font-size: 1.35rem;
  margin-top: 44px;
}
.legal-body h2:first-child {
  margin-top: 0;
}
.legal-body p,
.legal-body li {
  font-size: 0.98rem;
  color: var(--ink-muted);
  margin-top: 12px;
}
.legal-body ul {
  padding-left: 20px;
}
.legal-note {
  background: var(--gold-tint);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 0.92rem;
  color: var(--gold-hover);
  margin-bottom: 36px;
}

@media (max-width: 720px) {
  section {
    padding: 60px 0;
  }
  .hero {
    padding-top: 40px;
  }
  .cta-band {
    padding: 40px 26px;
  }
  .pricing-head-row {
    align-items: flex-start;
  }
}
