/* ============================================================
   markup.co.nz — site styles
   Black + hi-vis orange. Built on Unbox's dark scaffolding,
   but the accent is #FF6B1A (construction-orange) not copper.
   ============================================================ */

:root {
  /* Override copper -> hi-vis orange */
  --orange: #FF6B1A;
  --orange-dim: #E0560E;
  --orange-bright: #FF8540;
  --orange-soft: rgba(255, 107, 26, 0.12);
  --orange-glow: rgba(255, 107, 26, 0.35);
  --orange-line: rgba(255, 107, 26, 0.25);

  /* Layout */
  --max: 1440px;          /* was 1240 — content was clustering in the middle on wide displays */
  --gutter: 40px;         /* was 32 — slightly more breathing inside the wider container */
  --section-y: 96px;      /* was 120 — tighter vertical rhythm so the page feels more loaded */
}

/* Subtle dotted texture in the side gutters on wide screens — fills the
   empty margin without competing with content. Brand-on-paper feel. */
@media (min-width: 1500px) {
  body {
    background-image:
      radial-gradient(circle at 1px 1px, rgba(20, 18, 15, 0.06) 1px, transparent 0);
    background-size: 22px 22px;
    background-attachment: fixed;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--s0);
  color: var(--t1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--orange-soft); color: var(--t1); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- Container ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--orange);
}
.eyebrow-centered .eyebrow::before { display: none; }
.eyebrow-centered .eyebrow { font-size: 16px; }
/* Centered eyebrow with explicit line spans (used in Pricing) */
.eyebrow-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow-line {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
  opacity: 1;
}
/* Centered eyebrow variant — dash on both sides */
.eyebrow-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.eyebrow-center::before,
.eyebrow-center::after {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--orange);
}
.section-head-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head-center p { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--orange);
  color: #0A0A0B;
}
.btn-primary:hover {
  background: var(--orange-bright);
  transform: translateY(-1px);
}
.btn-primary:active { transform: scale(0.98) translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--t1);
  border-color: var(--b2);
}
.btn-ghost:hover {
  background: var(--s2);
  border-color: var(--t5);
}
.btn-link {
  background: transparent;
  color: var(--t2);
  padding: 12px 0;
}
.btn-link:hover { color: var(--orange); }
.btn-lg {
  padding: 16px 26px;
  font-size: 15px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 17, 19, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.scrolled {
  border-bottom-color: var(--b1);
  background: rgba(17, 17, 19, 0.92);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 80px;
}
.nav-inner > .logo { justify-self: start; }
.nav-inner > .nav-right { justify-self: end; }
.nav-left { display: flex; align-items: center; gap: 40px; }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-self: center;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--t2);
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--t1); }
/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--t2);
  display: flex;
  align-items: center;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s ease;
}
.nav-dropdown-btn:hover { color: var(--t1); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: 10px;
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.5);
  padding: 8px;
  min-width: 200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  z-index: 200;
}
.nav-dropdown-item {
  padding: 9px 14px;
  font-size: 13px;
  color: var(--t2);
  border-radius: 6px;
  cursor: default;
  transition: background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}
.nav-dropdown-item:hover { background: rgba(255,255,255,0.06); color: var(--t1); }
.nav-right { display: flex; align-items: center; gap: 12px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: var(--t1);
}
.logo .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
  margin-right: 6px;
  align-self: center;
  box-shadow: 0 0 12px var(--orange-glow);
}
.logo .tld { color: var(--t4); font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 24px 0 80px;
  overflow: hidden;
}
.hero::before {
  /* radial vignette */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 26, 0.08), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 16px 0 22px;
  color: var(--t1);
  text-wrap: balance;
}
.hero h1 .accent {
  color: var(--orange);
  font-style: italic;
  font-weight: 600;
}
.hero-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--t2);
  max-width: 540px;
  margin: 0 0 36px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-meta {
  margin-top: 36px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--t3);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta .dot-mini {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- Hero animated demo ---------- */
.demo-wrap {
  position: relative;
  width: 100%;
  height: 660px;
  perspective: 1400px;
}

.demo-card {
  position: absolute;
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow: hidden;
}
.demo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--b1);
  background: var(--s1);
}
.demo-card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t3);
}
.demo-card-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange-glow);
}

/* Pricebook card (back-left) */
.pb-card {
  top: 24px;
  left: 0;
  width: 58%;
  height: 320px;
  transform: rotate(-3deg);
  z-index: 1;
}
.pb-row {
  display: grid;
  grid-template-columns: 1fr 70px 80px;
  gap: 12px;
  padding: 10px 14px;
  font-size: 12px;
  border-bottom: 1px dashed var(--b1);
  color: var(--t2);
  font-variant-numeric: tabular-nums;
}
.pb-row:nth-child(odd) { background: rgba(255,255,255,0.01); }
.pb-row .qty, .pb-row .price { color: var(--t3); text-align: right; }
.pb-row .price { color: var(--orange); font-weight: 500; }

/* Takeoff card (back-right) */
.to-card {
  top: 60px;
  right: 0;
  width: 56%;
  height: 280px;
  transform: rotate(2.5deg);
  z-index: 2;
}
.to-row {
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: 12px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--t2);
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--b1);
}
.to-row .num { color: var(--t3); text-align: right; }
.to-grid {
  padding: 8px 0;
}

/* Quote card (front, copper-stripe top) */
.q-card {
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 450px;
  z-index: 3;
  border-top: 3px solid var(--orange);
}
.q-card-body { padding: 18px 22px 16px; }
.q-card-customer {
  font-size: 11px;
  color: var(--t4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.q-card-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--t1);
  margin-top: 4px;
  letter-spacing: -0.01em;
}
.q-card-job {
  font-size: 12.5px;
  color: var(--t3);
  margin-top: 2px;
}
.q-line {
  display: grid;
  grid-template-columns: 1fr auto;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--b1);
  font-variant-numeric: tabular-nums;
}
.q-line .qlbl { color: var(--t2); }
.q-line .qval { color: var(--t1); }
.q-total {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding-top: 14px;
  margin-top: 10px;
  border-top: 2px solid var(--orange);
}
.q-total .qlbl {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t4);
  font-weight: 600;
}
.q-total .qval {
  font-size: 30px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.q-total .qval .currency {
  font-size: 16px;
  color: var(--t4);
  font-weight: 500;
  margin-right: 4px;
}

/* Stream lines (the morph effect) */
.stream {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

/* Float pulse on quote card */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Sections ---------- */
.section {
  padding: var(--section-y) 0;
  position: relative;
}
.section-head {
  max-width: 760px;
  margin: 0 0 56px;
}
.section-head h2 {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 14px 0 16px;
  color: var(--t1);
  text-wrap: balance;
}
.section-head p {
  font-size: 17px;
  color: var(--t2);
  line-height: 1.55;
  margin: 0;
  max-width: 600px;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step {
  background: var(--s0);
  border: 1px solid var(--b1);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.step:hover {
  background: var(--s1);
  border-color: var(--orange-line);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px var(--orange-glow);
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 12px; }
}
.step-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.step h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 14px 0 10px;
  color: var(--t1);
}
.step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--t3);
  margin: 0;
}
.step-icon {
  margin-top: 24px;
  height: 110px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--s1), var(--s2));
  border: 1px solid var(--b1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t3);
  position: relative;
  overflow: hidden;
}

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

/* ---------- NZ section ---------- */
.nz-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.nz-grid > * { min-width: 0; }
@media (max-width: 980px) { .nz-grid { grid-template-columns: 1fr; gap: 48px; } }

.nz-points {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}
.nz-point {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
  align-items: start;
}
.nz-point .check {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-top: 2px;
  flex-shrink: 0;
}
.nz-point h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--t1);
  letter-spacing: -0.01em;
}
.nz-point p {
  font-size: 14px;
  color: var(--t3);
  margin: 0;
  line-height: 1.55;
}

/* NZ map / visual */
.nz-visual {
  position: relative;
  max-height: 520px;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 16px;
  overflow: hidden;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nz-visual svg.map { width: 100%; height: auto; }
/* Real NZ map */
.nz-map-wrap {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1000 / 1330;
  margin-top: 16px;
}
.nz-map-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.nz-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.nz-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.nz-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.nz-stat .num {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--orange);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.nz-stat .lbl {
  font-size: 13px;
  color: var(--t3);
  max-width: 160px;
  line-height: 1.4;
}

/* ---------- Trades ---------- */
.trades {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--b1);
  border: 1px solid var(--b1);
  border-radius: 12px;
  overflow: hidden;
}
.trade {
  background: var(--s0);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.trade:hover { background: var(--s1); }
.trade:hover .trade-arrow { color: var(--orange); transform: translateX(4px); }
.trade-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.01em;
}
.trade-arrow {
  color: var(--t4);
  transition: color 0.2s ease, transform 0.2s ease;
}
@media (max-width: 800px) { .trades { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .trades { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .pricing { grid-template-columns: 1fr; } }

.plan {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 14px;
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.3s var(--ease-out-quint);
}
.plan {
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.plan:hover {
  background: var(--s1);
  border-color: var(--orange-line);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px var(--orange-glow);
}
.plan-popular {
  border-color: var(--orange);
  background: linear-gradient(180deg, rgba(255,107,26,0.06), transparent 40%), var(--s1);
}
.plan-popular:hover { border-color: var(--orange); }
.plan-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--orange);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 6px;
  box-shadow: 0 2px 8px var(--orange-glow);
}
.plan-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
}
.plan-price {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plan-price .currency {
  font-size: 18px;
  color: var(--t3);
  font-weight: 500;
}
.plan-price .num {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--t1);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-price .per {
  font-size: 14px;
  color: var(--t3);
  margin-left: 6px;
}
.plan-gst {
  font-size: 11px;
  color: var(--t4);
  margin-top: 6px;
  letter-spacing: 0.04em;
}
.plan-feats {
  list-style: none;
  margin: 28px 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.plan-feats li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  font-size: 14px;
  color: var(--t2);
  line-height: 1.5;
}
.plan-feats li .check {
  color: var(--orange);
  margin-top: 5px;
}
.plan-feats li b { color: var(--t1); font-weight: 600; }

/* ---------- How tokens work ---------- */
/* Section background matches the page background (no contrasting panel)
   so it sits flush with the rest of the site. */
.tokens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .tokens-grid { grid-template-columns: 1fr; gap: 16px; }
}
.tokens-card {
  background: var(--s0);
  border: 1px solid var(--b1);
  border-radius: 14px;
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.tokens-card:hover {
  border-color: var(--orange-line);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px var(--orange-glow);
}
.tokens-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.tokens-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.tokens-card p {
  font-size: 14px;
  color: var(--t3);
  line-height: 1.6;
  margin: 0;
}

.enterprise-card {
  margin-top: 56px;
  background: transparent;
  border: 2.5px solid var(--orange);
  border-radius: 16px;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 800px) {
  .enterprise-card { padding: 36px 24px; }
}
.enterprise-card h3 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.enterprise-card p {
  font-size: 14.5px;
  color: var(--t3);
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
}
.enterprise-cta {
  margin-top: 8px;
  min-width: 240px;
  justify-content: center;
}
.tokens-tagline {
  margin-top: 32px;
  font-size: 13.5px;
  color: var(--t3);
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Money on the table — closing CTA ---------- */
/* Light theme: page-cream bg with a soft orange radial glow behind the
   headline. Matches the rest of the site (no dark inversion, no grid). */
.money-cta {
  background:
    radial-gradient(ellipse 900px 560px at center, rgba(255, 107, 26, 0.28) 0%, rgba(255, 107, 26, 0.10) 35%, transparent 70%),
    var(--s0);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.money-cta-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.money-cta h2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--t1);
  margin: 0 0 24px;
}
.money-cta p {
  font-size: 16px;
  color: var(--t3);
  margin: 0 0 36px;
}
.money-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 18px 32px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 8px 24px var(--orange-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.money-cta-btn:hover {
  background: var(--orange-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--orange-glow);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--b1);
}
.faq-item {
  border-bottom: 1px solid var(--b1);
  padding: 0;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 4px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q-text {
  font-size: 17px;
  font-weight: 500;
  color: var(--t1);
  letter-spacing: -0.01em;
  padding-right: 20px;
}
.faq-toggle {
  width: 28px; height: 28px;
  border: 1px solid var(--b2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.3s var(--ease-out-quint);
  color: var(--t2);
}
details[open] .faq-toggle {
  transform: rotate(45deg);
  background: var(--orange);
  border-color: var(--orange);
  color: #0A0A0B;
}
.faq-a {
  padding: 0 4px 28px;
  max-width: 700px;
  font-size: 15px;
  color: var(--t2);
  line-height: 1.65;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  margin: 60px 0;
  padding: 64px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255,107,26,0.18), transparent 50%),
    linear-gradient(180deg, var(--s1), var(--s0));
  border: 1px solid var(--b1);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 600px;
  text-wrap: balance;
}
.cta-banner p {
  color: var(--t2);
  font-size: 17px;
  max-width: 520px;
  margin: 0 0 28px;
}
.cta-banner-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 700px) { .cta-banner { padding: 40px 28px; } }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--b1);
  padding: 64px 0 40px;
  background: var(--s0);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t4);
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: var(--t2);
  position: relative;
  display: inline-block;
}
.footer-col a:hover { color: var(--orange); }
.footer-tag {
  font-size: 14px;
  color: var(--t3);
  margin: 18px 0 0;
  max-width: 320px;
  line-height: 1.55;
}
.footer-credit-link {
  color: var(--orange);
  text-decoration: none;
}
.footer-credit-link:hover { color: var(--orange-bright); text-decoration: underline; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--b1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12.5px;
  color: var(--t4);
}
@media (max-width: 600px) { .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-quint), transform 0.8s var(--ease-out-quint);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Variants — different directions for visual variety */
.reveal-left { transform: translateX(-50px); }
.reveal-left.in { transform: translateX(0); }

.reveal-right { transform: translateX(50px); }
.reveal-right.in { transform: translateX(0); }

.reveal-scale { transform: scale(0.92); }
.reveal-scale.in { transform: scale(1); }

.reveal-blur {
  filter: blur(10px);
  transition: opacity 0.9s var(--ease-out-quint), transform 0.9s var(--ease-out-quint), filter 0.9s var(--ease-out-quint);
}
.reveal-blur.in { filter: blur(0); }

/* Stagger delays — used on .in to defer entry */
.reveal.delay-1 { transition-delay: 0.06s; }
.reveal.delay-2 { transition-delay: 0.14s; }
.reveal.delay-3 { transition-delay: 0.22s; }
.reveal.delay-4 { transition-delay: 0.30s; }
.reveal.delay-5 { transition-delay: 0.38s; }
.reveal.delay-6 { transition-delay: 0.46s; }

/* ---------- "Built Here in Aotearoa" — slower stagger so each
   bullet's reveal is visible even on a slow scroll ---------- */
.nz-point {
  transition-duration: 1.1s;
}
.nz-point.delay-1 { transition-delay: 0.10s; }
.nz-point.delay-2 { transition-delay: 0.40s; }
.nz-point.delay-3 { transition-delay: 0.70s; }
.nz-point.delay-4 { transition-delay: 1.00s; }
.reveal.delay-7 { transition-delay: 0.54s; }
.reveal.delay-8 { transition-delay: 0.62s; }
.reveal.delay-9 { transition-delay: 0.70s; }

/* Failsafe: if JS hasn't tagged anything by 1.5s, reveal everything anyway */
@keyframes revealFailsafe {
  to { opacity: 1; transform: translateY(0) translateX(0) scale(1); filter: blur(0); }
}
.reveal {
  animation: revealFailsafe 0.6s var(--ease-out-quint) 1.8s forwards;
}
.reveal.in {
  animation: none;
}

/* ---------- Parallax ---------- */
.parallax {
  will-change: transform;
  transition: transform 0.05s linear;
}

/* ---------- Section number scrub indicator (sticky on left) ---------- */
.scroll-rail {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
}
@media (max-width: 1100px) { .scroll-rail { display: none; } }
.scroll-rail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--t5);
  position: relative;
  transition: background 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
}
.scroll-rail-dot::after {
  content: attr(data-label);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t3);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  font-weight: 600;
}
.scroll-rail-dot:hover::after,
.scroll-rail-dot.active::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.scroll-rail-dot.active {
  background: var(--orange);
  transform: scale(1.4);
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--b1);
  border-bottom: 1px solid var(--b1);
  padding: 28px 0;
  margin: 40px 0;
  overflow: hidden;
  position: relative;
  background: var(--s1);
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--s1), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--s1), transparent); }
.marquee-track {
  display: flex;
  gap: 56px;
  animation: marqueeScroll 38s linear infinite;
  width: max-content;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 500;
  color: var(--t3);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.marquee-item .sep {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

/* ---------- Hero parallax background lines ---------- */
.hero-bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}
.hero-bg-lines line {
  stroke: var(--b1);
  stroke-width: 1;
}
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

/* ---------- Light mode override (for tweaks) ---------- */
body.light {
  --s0: #FAFAFA;
  --s1: #FFFFFF;
  --s2: #F4F4F4;
  --s3: #ECECEC;
  --s4: #E2E2E2;
  --b1: #E6E6E6;
  --b2: #D6D6D6;
  --t1: #0F0F11;
  --t2: #3A3A3F;
  --t3: #6E6E76;
  --t4: #9A9AA2;
  --t5: #BFBFC6;
}
body.light .nav { background: rgba(255,255,255,0.78); }
body.light .nav.scrolled { background: rgba(255,255,255,0.92); }
body.light .nav-dropdown-menu { box-shadow: 0 16px 40px -8px rgba(0,0,0,0.15); background: #fff; }
body.light .nav-dropdown-item:hover { background: rgba(0,0,0,0.04); }
body.light .btn-primary { color: #FFFFFF; }
body.light .plan-tag { color: #FFFFFF; }
body.light details[open] .faq-toggle { color: #FFFFFF; }
body.light .cta-banner { background: linear-gradient(180deg, #FFFFFF, #FAFAFA); }
body.light .demo-card { box-shadow: 0 30px 60px -20px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.02) inset; }
