/* ================================================================
   TAXSIGNAL — cinematic scroll film
   ================================================================ */
:root {
  --bg: #07090d;
  --ink: #eef1f4;
  --ink-dim: rgba(238, 241, 244, .78);
  --accent: #38e0c3;
  --gold: #f5b942;
  --bg-light: #f3efe7;
  --ink-dark: #14161a;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Inter", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: auto; }
html, body { background: var(--bg); }

body {
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; height: 100vh; }

::selection { background: var(--accent); color: #04211b; }

/* ---------------- Preloader ---------------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .9s var(--ease), visibility .9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; width: min(420px, 80vw); }
.loader__mark { margin-bottom: 30px; }
.loader__mark img { width: min(210px, 56vw); height: auto; display: inline-block; }
.loader__bar {
  height: 1px; background: rgba(255,255,255,.14);
  overflow: hidden; border-radius: 2px;
}
.loader__fill {
  height: 3px; width: 0%; margin-top: -1px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width .25s ease-out;
}
.loader__pct {
  margin-top: 14px; font-size: 11px; letter-spacing: .3em;
  color: var(--ink-dim); font-variant-numeric: tabular-nums;
}
.loader__hint {
  margin-top: 42px; font-size: 11px; letter-spacing: .24em;
  text-transform: uppercase; color: rgba(238,241,244,.32);
}

/* ---------------- Nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  opacity: 0; transform: translateY(-12px);
  transition: opacity 1s var(--ease) .4s, transform 1s var(--ease) .4s;
}
body:not(.is-loading) .nav { opacity: 1; transform: none; }
.nav__logo { display: inline-flex; align-items: center; text-decoration: none; }
.nav__logo img { height: 26px; width: auto; display: block; }
.nav__logo .logo--dark { display: none; }
.nav--light .nav__logo .logo--white { display: none; }
.nav--light .nav__logo .logo--dark { display: block; }

.nav__links { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav__links a {
  color: rgba(255,255,255,.82); text-decoration: none;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  transition: color .3s; text-shadow: 0 1px 10px rgba(0,0,0,.45);
}
.nav__links a:hover { color: #fff; }
.nav__cta {
  color: #fff; text-decoration: none; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.45); border-radius: 999px;
  padding: 10px 20px; transition: border-color .3s, background .3s, color .3s;
  text-shadow: 0 1px 10px rgba(0,0,0,.45);
}
.nav__cta:hover { border-color: #fff; }

/* Over the cream CTA section — flip to dark ink */
.nav--light .nav__links a { color: rgba(20,22,26,.72); text-shadow: none; }
.nav--light .nav__links a:hover { color: #14161a; }
.nav--light .nav__cta { color: #14161a; border-color: rgba(20,22,26,.35); text-shadow: none; }
.nav--light .nav__cta:hover { border-color: #14161a; }

@media (max-width: 720px) { .nav__links { display: none; } }

/* ---------------- Progress rail ---------------- */
.rail {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: transparent;
}
.rail__fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

/* ---------------- Grain ---------------- */
.grain { position: fixed; inset: -100px; z-index: 40; pointer-events: none; opacity: .07; }
.grain::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  animation: grain 7s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-4%,-6%); }
  30% { transform: translate(5%,-3%); } 50% { transform: translate(-6%,4%); }
  70% { transform: translate(4%,6%); } 90% { transform: translate(-3%,2%); }
}

/* ---------------- Pinned film sections ---------------- */
.pin { position: relative; }
.pin__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden;
}
.pin__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; background: var(--bg);
}
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(0,0,0,.34), rgba(0,0,0,.34)),
    radial-gradient(ellipse at center, transparent 52%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,.35), transparent 22%, transparent 78%, rgba(0,0,0,.45));
}
.vignette--soft {
  background:
    linear-gradient(rgba(0,0,0,.14), rgba(0,0,0,.14)),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.3) 100%);
}

/* Letterbox bars — open as the film starts */
.letterbox {
  position: absolute; left: 0; right: 0; height: 9vh;
  background: #000; z-index: 5; will-change: transform;
}
.letterbox--top { top: 0; transform-origin: top; }
.letterbox--bottom { bottom: 0; transform-origin: bottom; }

/* ---------------- Text beats ---------------- */
.beat {
  position: absolute; z-index: 10; max-width: min(620px, 86vw);
  opacity: 0; will-change: transform, opacity; pointer-events: none;
}
/* Soft scrim so copy survives any frame behind it */
.beat::before {
  content: ""; position: absolute; z-index: -1;
  inset: -56px -72px; border-radius: 40px;
  background: radial-gradient(closest-side,
    rgba(4, 7, 12, .68),
    rgba(4, 7, 12, .42) 58%,
    transparent 100%);
}
.beat--title::before {
  inset: 0; border-radius: 0;
  background: radial-gradient(ellipse 75% 62% at center,
    rgba(4, 7, 12, .6),
    rgba(4, 7, 12, .3) 55%,
    transparent 78%);
}
.beat--dark::before {
  background: radial-gradient(closest-side,
    rgba(245, 241, 234, .78),
    rgba(245, 241, 234, .48) 58%,
    transparent 100%);
}
.beat h2 {
  font-size: clamp(34px, 5.4vw, 74px);
  line-height: 1.02; font-weight: 800; letter-spacing: -.02em;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0,0,0,.85), 0 0 60px rgba(0,0,0,.5);
}
.beat .huge { font-size: clamp(44px, 7.6vw, 108px); }
.beat--title { inset: 0; display: grid; place-content: center; text-align: center; max-width: none; }
.beat--center {
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  text-align: center;
}
.beat--left  { left: clamp(24px, 7vw, 110px); top: 50%; transform: translateY(-50%); }
.beat--right { right: clamp(24px, 7vw, 110px); top: 50%; transform: translateY(-50%); text-align: right; }

.beat--dark h2 { color: #14161a; text-shadow: 0 2px 22px rgba(255,255,255,.7), 0 0 70px rgba(255,255,255,.45); }
.beat--dark .body { color: rgba(20,22,26,.85); text-shadow: 0 1px 14px rgba(255,255,255,.6); }
.beat--dark .kicker { color: #0b6e5c; }

.kicker {
  font-size: 12px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px; font-weight: 600;
}
.body {
  margin-top: 20px; font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.55; color: var(--ink-dim); max-width: 46ch;
  text-shadow: 0 1px 12px rgba(0,0,0,.75);
}
.beat--right .body { margin-left: auto; }

/* Hero title */
.title { line-height: 0; }
.title img {
  width: min(760px, 86vw); height: auto; display: inline-block;
  filter: drop-shadow(0 10px 60px rgba(0,0,0,.55));
}
.sub {
  margin-top: 26px; font-size: clamp(15px, 1.8vw, 21px);
  color: var(--ink-dim); line-height: 1.5; letter-spacing: .02em;
}
.scrollcue {
  margin-top: 54px; font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: rgba(238,241,244,.5);
  display: grid; justify-items: center; gap: 14px;
}
.scrollcue span {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Integration badges — brand colours + lettermark icons */
.badges { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.beat--right .badges { justify-content: flex-end; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; color: #fff;
  padding: 8px 16px 8px 9px; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.badge i {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font-style: normal; font-weight: 800; font-size: 11px;
  letter-spacing: 0; text-transform: lowercase; color: #fff;
}
.badge--qb   { border: 1px solid rgba(44,160,28,.65);  background: rgba(44,160,28,.16); }
.badge--qb i { background: #2ca01c; }
.badge--xero   { border: 1px solid rgba(19,181,234,.65); background: rgba(19,181,234,.16); }
.badge--xero i { background: #13b5ea; }
.badge--sage   { border: 1px solid rgba(0,214,57,.6);    background: rgba(0,214,57,.14); }
.badge--sage i { background: #00d639; color: #04250c; }

/* ---------------- Engine cards (exploded macro section) ---------------- */
.card {
  position: absolute; z-index: 10; width: min(340px, 78vw);
  padding: 26px 28px; border-radius: 18px;
  background: rgba(10, 14, 20, .55);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; will-change: transform, opacity;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  pointer-events: none;
}
.card p { font-size: 14px; line-height: 1.55; color: var(--ink-dim); }
.card__stat {
  font-size: clamp(34px, 3.6vw, 48px); font-weight: 800;
  color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.card__label {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin: 6px 0 12px; font-weight: 600;
}
.card--tl { left: clamp(20px, 6vw, 90px); top: 14vh; }
.card--tr { right: clamp(20px, 6vw, 90px); top: 16vh; }
.card--bl { left: clamp(20px, 8vw, 120px); bottom: 13vh; }
.card--br { right: clamp(20px, 8vw, 120px); bottom: 15vh; }
@media (max-width: 720px) {
  .card--tl, .card--tr { top: 9vh; } .card--bl, .card--br { bottom: 9vh; }
}

/* ---------------- CTA (daylight theme) ---------------- */
.cta {
  position: relative; z-index: 2;
  background: var(--bg-light); color: var(--ink-dark);
  text-align: center;
  padding: clamp(110px, 16vh, 200px) 24px clamp(90px, 12vh, 150px);
}
.cta .kicker { color: #0e8f77; }
.cta h2 {
  font-size: clamp(40px, 6.4vw, 92px); font-weight: 850;
  letter-spacing: -.02em; line-height: 1.02;
}
.cta .body { margin: 26px auto 0; color: rgba(20,22,26,.66); }
.cta__form {
  margin: 44px auto 0; display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap;
}
.cta__form input {
  font: inherit; font-size: 15px; padding: 16px 22px; min-width: min(340px, 76vw);
  border-radius: 999px; border: 1px solid rgba(20,22,26,.25);
  background: #fff; outline: none;
}
.cta__form input:focus { border-color: #0e8f77; }
.cta__form button {
  font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .06em;
  padding: 16px 30px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink-dark); color: #fff;
  transition: transform .25s var(--ease), background .25s;
}
.cta__form button:hover { background: #0e8f77; transform: translateY(-2px); }
.cta__meta {
  margin-top: 40px; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(20,22,26,.5);
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.cta__meta i { font-style: normal; color: #0e8f77; }

/* Reassurance line under the signup form */
.cta__reassure {
  margin: 24px auto 0; max-width: 56ch;
  font-size: 13.5px; line-height: 1.6; color: rgba(20,22,26,.6);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap;
}
.cta__reassure svg { width: 16px; height: 16px; color: #0e8f77; flex: none; }
.cta__reassure a { color: #0e8f77; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(14,143,119,.4); }
.cta__reassure a:hover { border-color: #0e8f77; }

/* ================= Navy / mint trust + pricing zone ================= */
:root {
  --navy: #0a1728;
  --navy-panel: #10233b;
  --navy-line: rgba(255,255,255,.09);
  --navy-ink: #e7edf6;
  --navy-dim: rgba(231,237,246,.7);
}

/* ---------------- Trust / security ---------------- */
.trust {
  background: var(--navy); color: var(--navy-ink);
  padding: clamp(80px, 12vh, 130px) 24px;
  border-top: 1px solid var(--navy-line);
}
.trust__inner { max-width: 1100px; margin: 0 auto; }
.trust__head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.trust__head h2 {
  font-size: clamp(30px, 4.4vw, 52px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.05; color: #fff;
}
.trust__sub { margin-top: 18px; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; color: var(--navy-dim); }
.trust__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.trust__card {
  background: var(--navy-panel); border: 1px solid var(--navy-line);
  border-radius: 16px; padding: 28px 26px;
}
.trust__icon {
  display: inline-flex; width: 44px; height: 44px; border-radius: 12px;
  align-items: center; justify-content: center; margin-bottom: 18px;
  background: rgba(56,224,195,.1); border: 1px solid rgba(56,224,195,.28);
  color: var(--accent);
}
.trust__icon svg { width: 22px; height: 22px; }
.trust__card h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 9px; letter-spacing: -.01em; }
.trust__card p { font-size: 14.5px; line-height: 1.6; color: var(--navy-dim); }
.trust__more {
  display: block; text-align: center; margin-top: 46px;
  color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none;
}
.trust__more:hover { color: #fff; }
@media (max-width: 860px) { .trust__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust__grid { grid-template-columns: 1fr; } }

/* ---------------- Pricing ---------------- */
.pricing {
  background: var(--navy); color: var(--navy-ink);
  padding: clamp(20px, 3vh, 40px) 24px clamp(80px, 12vh, 120px);
  border-top: 1px solid var(--navy-line);
}
.pricing__inner { max-width: 1080px; margin: 0 auto; }
.pricing__head { text-align: center; margin: 0 auto 50px; }
.pricing__head h2 {
  font-size: clamp(30px, 4.4vw, 52px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.05; color: #fff;
}
.pricing__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: stretch;
}
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--navy-panel); border: 1px solid var(--navy-line);
  border-radius: 20px; padding: 34px 30px;
}
.plan--featured {
  border-color: rgba(56,224,195,.55);
  box-shadow: 0 0 0 1px rgba(56,224,195,.3), 0 24px 60px rgba(0,0,0,.4);
}
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #04211b;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.plan__name {
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); margin-bottom: 16px;
}
.plan__price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 56px; }
.plan__amt { font-size: 46px; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.plan__poa { font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; color: #fff; letter-spacing: -.01em; line-height: 1.1; display: inline-block; }
.plan__per { font-size: 16px; color: var(--navy-dim); }
.plan__vat { font-size: 13px; color: var(--navy-dim); letter-spacing: .04em; }
.plan__desc { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--navy-ink); }
.plan__annual { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--gold); }
.plan__annual strong { color: #ffd680; }
.plan__annual--spacer { color: transparent; }
.plan__cta {
  margin-top: 26px; text-align: center; text-decoration: none;
  padding: 14px 22px; border-radius: 999px; font-size: 14px; font-weight: 700;
  letter-spacing: .04em; color: #fff; border: 1px solid rgba(255,255,255,.28);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.plan__cta:hover { border-color: #fff; transform: translateY(-2px); }
.plan__cta--primary { background: var(--accent); color: #04211b; border-color: var(--accent); }
.plan__cta--primary:hover { background: #5cead1; border-color: #5cead1; }
.pricing__notes {
  margin-top: 40px; text-align: center; color: var(--navy-dim);
  font-size: 13px; line-height: 1.7;
}
.pricing__notes p { margin: 4px 0; }
@media (max-width: 820px) {
  .pricing__grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .plan--featured { order: -1; }
}

/* ---------------- Why TaxSignal ---------------- */
.why {
  background: var(--navy); color: var(--navy-ink);
  padding: clamp(80px, 12vh, 130px) 24px;
  border-top: 1px solid var(--navy-line);
}
.why__inner { max-width: 860px; margin: 0 auto; }
.why__head { text-align: center; margin-bottom: 40px; }
.why__head h2 {
  font-size: clamp(30px, 4.4vw, 52px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.05; color: #fff;
}
.why__story {
  max-width: 680px; margin: 0 auto 56px; text-align: center;
}
.why__story p {
  font-size: clamp(18px, 2.2vw, 25px); line-height: 1.5;
  color: var(--navy-ink); font-weight: 400; letter-spacing: -.01em;
}
.why__beliefs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 48px;
}
.belief {
  background: var(--navy-panel); border: 1px solid var(--navy-line);
  border-radius: 16px; padding: 28px 26px;
  border-top: 2px solid var(--accent);
}
.belief h3 {
  font-size: 17px; font-weight: 700; color: #fff; line-height: 1.3;
  letter-spacing: -.01em; margin-bottom: 12px;
}
.belief p { font-size: 14.5px; line-height: 1.6; color: var(--navy-dim); }
.why__close {
  text-align: center; max-width: 640px; margin: 0 auto;
  font-size: clamp(17px, 2vw, 21px); line-height: 1.5; font-weight: 600;
  color: #fff;
}
.why__close::before {
  content: ""; display: block; width: 40px; height: 3px; border-radius: 2px;
  background: var(--accent); margin: 0 auto 24px;
}
@media (max-width: 780px) { .why__beliefs { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }

/* ---------------- Footer (navy, cross-linked) ---------------- */
.footer {
  background: #07111f; color: var(--navy-dim);
  text-align: center; padding: 54px 24px 60px;
  border-top: 1px solid var(--navy-line);
}
.footer__inner { max-width: 720px; margin: 0 auto; }
.footer__logo { margin-bottom: 22px; }
.footer__logo img { height: 30px; width: auto; display: inline-block; }
.footer__links {
  display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer__links a {
  color: var(--navy-ink); text-decoration: none; font-size: 13px;
  letter-spacing: .06em; border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.footer__links a:hover { color: var(--accent); border-color: var(--accent); }
.footer__entity { font-size: 12.5px; line-height: 1.6; color: var(--navy-dim); margin-bottom: 10px; }
.footer__disclaimer { font-size: 12px; line-height: 1.6; color: rgba(231,237,246,.45); max-width: 62ch; margin: 0 auto; }

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  .grain::before, .scrollcue span { animation: none; }
}
