/* ============================================================
   Horizon
   Palette: forest green / bone / amber (light + dark via tokens)
   Radius system: interactive 10px, containers 16px, hero image 18px
   ============================================================ */

/* Self-hosted variable font (latin subset) — no third-party requests */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/schibsted-grotesk.woff2") format("woff2");
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/schibsted-grotesk-italic.woff2") format("woff2");
}

:root {
  --bg: #f4f3ee;
  --surface: #fcfbf8;
  --tint: #ebeae1;
  --ink: #17251e;
  --body: #3d4a43;
  --muted: #5d6b63;
  --line: rgba(23, 37, 30, 0.14);
  --green: #143d2e;
  --green-deep: #0e2b21;
  --green-soft: #e2e9e2;
  --amber: #d98e2b;
  --amber-soft: #f3e4c9;
  --on-green: #f4f3ee;
  --dark-bg: #10281f;
  --dark-ink: #eceade;
  --dark-body: #c2d0c6;
  --dark-line: rgba(236, 234, 222, 0.16);
  --r-int: 10px;
  --r-box: 16px;
  --r-img: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101b15;
    --surface: #16241d;
    --tint: #14201a;
    --ink: #eceade;
    --body: #c2d0c6;
    --muted: #93a89b;
    --line: rgba(236, 234, 222, 0.15);
    --green: #2e6b52;
    --green-deep: #24543f;
    --green-soft: #1a2f26;
    --amber: #dfa04a;
    --amber-soft: #33291a;
    --on-green: #f0efe6;
    --dark-bg: #0b1d15;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.6;
  font-size: 1.0625rem;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: #17251e; }

img { max-width: 100%; display: block; }

h1, h2, h3 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
p { text-wrap: pretty; }

html {
  scrollbar-width: thin;
  scrollbar-color: var(--green) var(--tint);
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--tint); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 5px; }

h1 { font-size: clamp(2.6rem, 5.6vw, 4.3rem); line-height: 1.05; }
h1 em { font-style: italic; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.25rem; line-height: 1.25; }

p + p { margin-top: 0.9rem; }

a { color: inherit; }

.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.25rem);
}

.note { font-size: 0.92rem; color: var(--muted); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 0.9rem;
}

.section { padding-block: clamp(4.5rem, 8vw, 6.75rem); }
.section-tint { background: var(--tint); }
.section-sub { max-width: 46ch; margin-bottom: 2.6rem; }

/* Heading underline draw, with the brand's rising sun sitting on the line */
h2 { position: relative; padding-bottom: 0.95rem; }
h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2.5px; width: 0;
  border-radius: 2px;
  background: var(--amber);
  transition: width 0.9s var(--ease) 0.15s;
}
h2::before {
  content: "";
  position: absolute;
  left: 20px; bottom: 2.5px;
  width: 13px; height: 6.5px;
  border-radius: 13px 13px 0 0;
  background: var(--amber);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.5s var(--ease) 0.75s, transform 0.5s var(--ease) 0.75s;
}
h2.is-in::after { width: 56px; }
h2.is-in::before { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.78rem 1.6rem;
  border-radius: var(--r-int);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--green);
  color: var(--on-green);
  box-shadow: 0 1px 2px rgba(14, 43, 33, 0.25);
}
.btn-primary:hover {
  background: var(--green-deep);
  box-shadow: 0 8px 20px -8px rgba(14, 43, 33, 0.45);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-light {
  background: var(--dark-ink, #eceade);
  color: #10281f;
  margin-top: 1.6rem;
}
.btn-light:hover { background: #ffffff; }

.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.95rem; }
.btn-full { width: 100%; margin-top: 0.4rem; }

.btn-arrow::after {
  content: "\2192";
  font-weight: 500;
  transition: transform 0.3s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -60px;
  z-index: 100;
  background: var(--green);
  color: var(--on-green);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Header ---------- */
#top-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

/* Slim establishment bar; collapses once the page is scrolled */
.topbar {
  background: var(--green-deep);
  color: color-mix(in srgb, var(--on-green) 80%, transparent);
  overflow: hidden;
  max-height: 40px;
  transition: max-height 0.35s var(--ease), opacity 0.35s var(--ease);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.45rem;
}
.topbar p {
  margin: 0 !important;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.site-header.scrolled .topbar { max-height: 0; opacity: 0; }
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: height 0.35s var(--ease);
}
@media (min-width: 861px) {
  .site-header.scrolled .header-inner { height: 60px; }
  /* Sunrise arc corner on the hero photograph */
  .hero .hero-visual > .img-duo { border-radius: 18px 130px 18px 18px; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 26px; height: 26px; color: var(--ink); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2rem);
}
.site-nav > a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  position: relative;
  padding-block: 0.3rem;
}
.site-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav > a:not(.btn):hover::after,
.site-nav > a.is-active::after { transform: scaleX(1); }
.site-nav > a.is-active { color: var(--green); }

.nav-phone { font-weight: 600 !important; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: 7rem 3.5rem;
  background:
    radial-gradient(1400px 820px at 88% 12%, rgba(217, 142, 43, 0.07), transparent 78%),
    radial-gradient(1200px 680px at 5% 92%, rgba(20, 61, 46, 0.05), transparent 75%);
}


.hero-copy { position: relative; z-index: 0; }
.hero-arc {
  position: absolute;
  z-index: -1;
  left: -90px;
  bottom: -70px;
  width: 560px;
  max-width: 90%;
  opacity: 0.3;
  pointer-events: none;
}


.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: 100%;
}

.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  max-width: 42ch;
  margin-top: 1.4rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.hero-visual { position: relative; }
.hero-visual > .img-duo {
  border-radius: var(--r-img);
  overflow: hidden;
  box-shadow:
    20px 24px 48px -8px rgba(217, 142, 43, 0.35),
    0 30px 60px -30px rgba(14, 43, 33, 0.5);
}

/* Headline line-mask reveal */
.hline {
  display: block;
  overflow: hidden;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}

/* Floating card over the hero image */
.float-card {
  position: absolute;
  left: -26px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1.15rem 0.8rem 0.85rem;
  text-decoration: none;
  box-shadow: 0 18px 44px -18px rgba(14, 43, 33, 0.45);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.float-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: color-mix(in srgb, var(--amber) 20%, transparent);
  color: var(--ink);
}
.float-ic .tic { width: 22px; height: 22px; }
.float-card:hover {
  border-color: var(--amber);
  box-shadow: 0 22px 50px -18px rgba(14, 43, 33, 0.55);
}
.float-label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.float-text { font-size: 0.85rem; color: var(--muted); }

.img-duo {
  position: relative;
  background: var(--green-deep);
  border-radius: inherit;
  overflow: hidden;
}
.img-duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94);
}
/* Soft brand vignette so photography sits with the palette */
.img-duo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(165deg,
    rgba(20, 61, 46, 0.16) 0%,
    rgba(20, 61, 46, 0) 38%,
    rgba(14, 43, 33, 0.28) 100%);
}

.hero-visual .img-duo { aspect-ratio: 4 / 4.6; }

.float-line {
  display: block;
  height: 2px;
  width: 100%;
  margin: 5px 0 6px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--amber) 0%, rgba(217, 142, 43, 0.25) 100%);
  box-shadow: 0 0 10px 1px rgba(217, 142, 43, 0.4);
}

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero-anim {
    opacity: 0;
    transform: translateY(26px);
    animation: rise 0.9s var(--ease) forwards;
    animation-delay: calc(var(--d, 0) * 0.14s + 0.1s);
  }
  @keyframes rise {
    to { opacity: 1; transform: none; }
  }

  .hline > span {
    display: block;
    transform: translateY(115%);
    animation: lineUp 1s var(--ease) forwards;
    animation-delay: 0.15s;
  }
  .hline:nth-child(2) > span { animation-delay: 0.3s; }
  @keyframes lineUp {
    to { transform: none; }
  }

  /* Slow Ken Burns on the hero photograph */
  .hero-visual .img-duo img {
    animation: kenburns 24s ease-in-out infinite alternate;
  }
  @keyframes kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.07); }
  }

  /* The card's horizon line draws itself in */
  .float-line {
    transform: scaleX(0);
    transform-origin: left;
    animation: horizonDraw 1.2s var(--ease) 1.1s forwards;
  }
  @keyframes horizonDraw {
    to { transform: scaleX(1); }
  }

  .float-card { animation: floaty 6s ease-in-out infinite alternate; }
  @keyframes floaty {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
  }

  /* Scroll parallax on split-section images (progressive enhancement) */
  @supports (animation-timeline: view()) {
    .split-img img {
      height: 116%;
      animation: parallax linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes parallax {
      from { transform: translateY(-7%); }
      to { transform: translateY(7%); }
    }
  }
}

/* Tabler icon base (real library glyphs, inlined) */
.tic {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.cell-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 1.1rem;
}
.cell-icon .tic { width: 24px; height: 24px; }
.cell-payroll .cell-icon { background: rgba(244, 243, 238, 0.14); color: var(--on-green); }
.cell-accounting .cell-icon { background: var(--green-soft); color: var(--green); }
.cell-marketing .cell-icon { background: color-mix(in srgb, var(--amber) 24%, transparent); color: var(--ink); }
.cell-soft .cell-icon { background: var(--green); color: var(--on-green); }

.p-ic { width: 15px; height: 15px; color: var(--amber); }
.nav-phone { display: inline-flex; align-items: center; gap: 0.4rem; }

.a-ic { width: 17px; height: 17px; color: var(--amber); margin-top: 2px; }
.assurance li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.f-ic { width: 15px; height: 15px; color: var(--amber); }
.footer-col h3 { display: flex; align-items: center; gap: 0.45rem; }

.balance-ic {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  width: 24px;
  height: 24px;
  opacity: 0.55;
  color: var(--on-green);
}

.to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-int);
  color: var(--dark-ink);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.to-top .tic { width: 17px; height: 17px; }
.to-top:hover { transform: translateY(-3px); border-color: var(--amber); }

.ic {
  width: 20px; height: 20px;
  flex: none;
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic-lg { width: 34px; height: 34px; }

/* ---------- How it works ---------- */
.how-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.how-intro { position: sticky; top: 110px; }
.how-intro p { max-width: 46ch; }
.how-intro .note { margin-top: 1.2rem; }

.how-steps {
  list-style: none;
  counter-reset: step;
  position: relative;
}
/* Connector line running through the step numerals */
.how-steps::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 2.4rem;
  bottom: 2.4rem;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--amber) 0%, var(--line) 85%);
  opacity: 0.55;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.4s var(--ease) 0.3s;
}
.how-steps.is-in::before { transform: scaleY(1); }
.how-steps li::before { background: var(--bg); outline: 6px solid var(--bg); }
.how-steps li {
  counter-increment: step;
  padding: 1.9rem 0 1.9rem 4.8rem;
  position: relative;
}
.how-steps li + li { border-top: 1px solid var(--line); }
.how-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.7rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--amber);
  opacity: 0.85;
  line-height: 1;
}
.how-steps h3 { margin-bottom: 0.5rem; }
.how-steps p { max-width: 48ch; }

/* ---------- Services bento ---------- */
.bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.1rem;
}
.bento-cell {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-box);
  padding: 2rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.bento-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(14, 43, 33, 0.4);
}

/* Cursor spotlight on interactive cards */
.bento-cell::after,
.sector-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(217, 142, 43, 0.18), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.bento-cell:hover::after,
.sector-tile:hover::after { opacity: 1; }
.bento-cell h3 { margin-bottom: 0.6rem; font-size: 1.35rem; }

.cell-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 1rem;
}
.cell-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--on-green);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 243, 238, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.cell-links a:hover { border-color: var(--amber); gap: 0.65rem; }

.cell-payroll {
  grid-row: 1 / 3;
  background-color: var(--green);
  /* Oversized brand sunrise watermark in the corner */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 62'%3E%3Cpath d='M10 56a40 40 0 0 1 80 0' fill='none' stroke='%23f4f3ee' stroke-width='3' opacity='0.14'/%3E%3Cline x1='0' y1='56' x2='100' y2='56' stroke='%23d98e2b' stroke-width='2.5' opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -46px bottom -8px;
  background-size: 240px auto;
  color: var(--on-green);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 340px;
}
.cell-payroll .tag-list { margin-top: auto; padding-top: 2rem; }
.cell-payroll h3 { color: var(--on-green); font-size: 1.6rem; }
.cell-payroll p { color: color-mix(in srgb, var(--on-green) 82%, transparent); max-width: 34ch; }

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-list li {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.34rem 0.8rem;
  border: 1px solid rgba(244, 243, 238, 0.35);
  border-radius: 999px;
  color: var(--on-green);
}

.cell-accounting { background: var(--surface); border: 1px solid var(--line); }
.cell-marketing { background: var(--amber-soft); }
.cell-marketing h3, .cell-marketing p { color: var(--ink); }
.cell-marketing p, .cell-accounting p { max-width: 40ch; }

.pull-line {
  margin-top: 2.6rem;
  padding-left: 1.4rem;
  border-left: 3px solid var(--amber);
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  font-weight: 500;
  color: var(--ink);
  max-width: 34em;
  line-height: 1.45;
}

/* ---------- CIS dark block ---------- */
.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--dark-bg);
  color: var(--dark-body);
}
.section-dark .container { position: relative; z-index: 1; }

.cis-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cis-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: saturate(0.8) blur(6px);
  /* Slight scale hides the soft edges the blur creates */
  transform: scale(1.06);
}
.cis-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--dark-bg) 88%, transparent) 0%,
    color-mix(in srgb, var(--dark-bg) 55%, transparent) 55%,
    color-mix(in srgb, var(--dark-bg) 92%, transparent) 100%);
}

/* Drifting amber horizon glow */
.section-dark::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 10%;
  bottom: -30%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse at center,
    rgba(217, 142, 43, 0.16) 0%, transparent 62%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .section-dark::before { animation: glowDrift 16s ease-in-out infinite alternate; }
  @keyframes glowDrift {
    from { transform: translateX(-8%); }
    to { transform: translateX(14%); }
  }
}
.section-dark h2 { color: var(--dark-ink); }
.section-dark h2::after { background: var(--amber); }
.section-dark p { color: var(--dark-body); }
.section-dark .eyebrow { color: var(--amber); }

.cis-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.cis-grid > div > p { max-width: 50ch; }

.check-list {
  list-style: none;
  margin-top: 1.6rem;
}
.check-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding-block: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}
.check-list .ic { margin-top: 0.2rem; }

.check-list-dark { margin-top: 0.4rem; }
.check-list-dark li {
  color: var(--dark-ink);
  border-top: 1px solid var(--dark-line);
  padding-block: 1.25rem;
}
.check-list-dark li:first-child { border-top: none; }

/* Branded divider between adjacent plain sections */
.h-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.h-divider::before,
.h-divider::after {
  content: "";
  height: 1px;
  width: min(180px, 22vw);
  background: var(--line);
}
.h-divider svg {
  width: 28px;
  height: 17px;
  margin-inline: 16px;
  flex: none;
}

/* ---------- Split sections ---------- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split-grid h2 { max-width: 16em; }
.split-grid > div > p { max-width: 50ch; }

.split-img {
  border-radius: var(--r-img);
  aspect-ratio: 9 / 7.6;
  box-shadow:
    16px 20px 42px -8px rgba(217, 142, 43, 0.32),
    0 24px 50px -30px rgba(14, 43, 33, 0.45);
}
.split-reverse .split-img {
  box-shadow:
    -16px 20px 42px -8px rgba(217, 142, 43, 0.32),
    0 24px 50px -30px rgba(14, 43, 33, 0.45);
}

/* ---------- Sectors ---------- */
.sector-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1.1rem;
}
.sector-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-box);
  padding: 2rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.sector-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(14, 43, 33, 0.35);
}
.sector-tile p { font-size: 0.98rem; max-width: 30ch; }

.tile-soft { background: var(--surface); border: 1px solid var(--line); }
.tile-warm { background: var(--amber-soft); }

.tile-img { background: var(--green-deep); }
.tile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) saturate(0.9);
  transition: transform 0.6s var(--ease);
}
.tile-img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(10, 32, 24, 0.22) 0%,
    rgba(10, 32, 24, 0.55) 42%,
    rgba(8, 26, 19, 0.96) 80%);
}
.tile-img h3, .tile-img p { text-shadow: 0 1px 8px rgba(8, 26, 19, 0.6); }
.tile-img:hover .tile-photo { transform: scale(1.05); }
.tile-content { position: relative; z-index: 2; }
.tile-img h3 { color: #f4f3ee; font-size: 1.4rem; }
.tile-img p { color: rgba(244, 243, 238, 0.85); }

/* ---------- Why use a broker (direct vs Horizon comparison) ---------- */
.why-lead {
  max-width: 62ch;
  font-size: 1.1rem;
}
.why-lead strong { color: var(--ink); }

.vs-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.vs-card {
  border-radius: var(--r-box);
  padding: clamp(1.9rem, 3vw, 2.75rem);
}
.vs-card h3 { margin-bottom: 1.1rem; font-size: 1.35rem; }
.vs-card ul { list-style: none; }
.vs-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding-block: 0.6rem;
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.45;
}

/* Round centrepiece where the two offers meet */
.vs-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px -10px rgba(14, 43, 33, 0.4);
  font-weight: 700;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
}

.vs-direct {
  background: var(--surface);
  border: 1px solid var(--line);
}
.vs-direct h3 { color: var(--muted); }
.vs-direct li { color: var(--muted); }
.vs-dash {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted);
  opacity: 0.7;
  margin-top: 3px;
}

.vs-horizon {
  background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 62'%3E%3Cpath d='M10 56a40 40 0 0 1 80 0' fill='none' stroke='%23f4f3ee' stroke-width='3' opacity='0.14'/%3E%3Cline x1='0' y1='56' x2='100' y2='56' stroke='%23d98e2b' stroke-width='2.5' opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -40px bottom -8px;
  background-size: 200px auto;
}
.vs-horizon h3 { color: var(--on-green); }
.vs-horizon li { color: var(--on-green); }
.vs-horizon .glyph { color: var(--on-green); margin-top: 4px; }

/* ---------- Rewards ---------- */
.glyph { width: 19px; height: 14px; color: var(--ink); flex: none; }

.rw-points {
  list-style: none;
  margin-top: 1.5rem;
}
.rw-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding-block: 0.5rem;
  font-weight: 500;
  color: var(--ink);
}
.rw-points .glyph { margin-top: 5px; }

/* The reward engine: a small account preview inside the rewards card */
.rw-engine { padding: 1.4rem 2rem 0.2rem; }
.rw-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 62'%3E%3Cpath d='M10 56a40 40 0 0 1 80 0' fill='none' stroke='%23f4f3ee' stroke-width='3' opacity='0.14'/%3E%3Cline x1='0' y1='56' x2='100' y2='56' stroke='%23d98e2b' stroke-width='2.5' opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -34px bottom -6px;
  background-size: 170px auto;
  color: var(--on-green);
  border-radius: var(--r-int);
  padding: 1.05rem 1.3rem;
}
.rw-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 500;
}
.rw-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  flex: none;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
}
.rw-ic .tic { width: 15px; height: 15px; }
.rw-amount {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0.1rem;
  font-variant-numeric: tabular-nums;
}
.rw-coins { width: 26px; height: 26px; opacity: 0.6; flex: none; }
.rw-rows { list-style: none; margin-top: 0.45rem; }
.rw-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
  font-size: 0.95rem;
  color: var(--body);
  border-bottom: 1px solid var(--line);
}
.rw-rows li:last-child { border-bottom: none; }
.rw-plus {
  font-weight: 650;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.rw-note {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.55;
}
/* When the calculator closes the card (rewards page), give it a proper bottom edge */
.rw-engine:last-child { padding-bottom: 1.6rem; }
.rewards-panel {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
/* Visual card sits left, copy right on desktop; stacked copy-first on mobile.
   The card is tall, so the copy pins and travels with the reader. */
@media (min-width: 861px) {
  .rewards-panel { align-items: start; }
  .rewards-panel .rewards-visual { order: 1; }
  .rewards-panel .rewards-copy {
    order: 2;
    position: sticky;
    top: 120px;
    margin-top: 3rem;
  }
}
.rewards-copy p { max-width: 46ch; }
.rewards-copy .note { margin-top: 1.1rem; }

/* Rewards teaser card (homepage) */
.rewards-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  overflow: hidden;
  box-shadow: 0 24px 60px -35px rgba(14, 43, 33, 0.45);
}
.rewards-img {
  aspect-ratio: 21 / 10;
  position: relative;
  /* The card's own overflow rounds the top; the photo itself stays square
     so it meets the CTA area below with a clean edge */
  border-radius: 0;
}
/* Brand horizon line across the London skyline */
.rewards-img::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 56%;
  height: 2px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, var(--amber) 18%, var(--amber) 82%, transparent);
  box-shadow: 0 0 16px 2px rgba(217, 142, 43, 0.45);
  pointer-events: none;
}
.rewards-cta { padding: 1rem 2rem 1.9rem; }
.rewards-cta .cta-row { margin-top: 0; }

/* Auth page (rewards.html) */
.auth-page .section-auth {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 7.5rem;
}
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  width: 100%;
}
.auth-intro h1 { margin-bottom: 1.1rem; }
.auth-intro p { max-width: 44ch; }
.auth-intro .note { margin-top: 1.1rem; }

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: 2rem;
  box-shadow: 0 24px 60px -35px rgba(14, 43, 33, 0.45);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: var(--tint);
  padding: 0.3rem;
  border-radius: var(--r-int);
  margin-bottom: 1.5rem;
}
.auth-tab {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem;
  border: none;
  border-radius: calc(var(--r-int) - 3px);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.auth-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(14, 43, 33, 0.15);
}

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-int);
  padding: 0.68rem 0.9rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f9187' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
  padding-right: 2.6rem;
}
.field:focus-within label { color: var(--green); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 35%, transparent);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #b3402a;
}

.field-hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }
.field-error, .form-error {
  font-size: 0.85rem;
  font-weight: 500;
  color: #b3402a;
  margin-top: 0.4rem;
}
@media (prefers-color-scheme: dark) {
  .field-error, .form-error { color: #e58a70; }
  .field input[aria-invalid="true"],
  .field textarea[aria-invalid="true"] { border-color: #e58a70; }
}
.form-error { margin-bottom: 0.8rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.link-quiet {
  display: block;
  margin: 1rem auto 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-quiet:hover { color: var(--ink); }
#forgot-note { margin-top: 0.8rem; text-align: center; }

/* Account view */
.account-hello { color: var(--ink); margin-bottom: 1.2rem; }
.balance-box {
  position: relative;
  background: var(--green);
  color: var(--on-green);
  border-radius: var(--r-int);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}
.balance-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--on-green) 75%, transparent);
}
.balance-value {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0.2rem;
}
.balance-meta { font-size: 0.9rem; margin-top: 0.4rem; color: color-mix(in srgb, var(--on-green) 80%, transparent); }
#view-account .note { margin-bottom: 1.2rem; }
#view-account .btn { margin-top: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-copy p { max-width: 40ch; }

.phone-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.phone-row .phone-link { margin-top: 0; }

.phone-link {
  display: inline-block;
  margin-top: 1.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--amber);
  padding-bottom: 0.15rem;
  transition: color 0.25s var(--ease);
}
.phone-link:hover { color: var(--green); }
.contact-copy .note { margin-top: 0.7rem; }

.assurance {
  list-style: none;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.assurance li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-block: 0.25rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: 2rem;
}

.contact-success {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: 3rem 2rem;
  text-align: center;
}
@media (min-width: 861px) {
  .contact-success { grid-column: 2; grid-row: 1; }
}
.contact-success .ic-lg { margin: 0 auto 1rem; }
.contact-success h3 { margin-bottom: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background-color: var(--dark-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 64'%3E%3Cpath d='M6 58a44 44 0 0 1 88 0' fill='none' stroke='%23f4f3ee' stroke-width='0.9' opacity='0.06'/%3E%3Cpath d='M18 58a32 32 0 0 1 64 0' fill='none' stroke='%23f4f3ee' stroke-width='0.9' opacity='0.045'/%3E%3Cline x1='-10' y1='58' x2='110' y2='58' stroke='%23d98e2b' stroke-width='0.8' opacity='0.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -140px bottom -30px;
  background-size: 520px auto;
  color: var(--dark-body);
  padding-block: 3.5rem 2rem;
}
/* Horizon hairline closing the page */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber) 30%, var(--amber) 70%, transparent);
  opacity: 0.75;
}
.site-footer .brand { color: var(--dark-ink); }
.site-footer .brand-mark { color: var(--dark-ink); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand p { margin-top: 1rem; font-size: 0.92rem; line-height: 1.6; }
.footer-tag {
  font-style: italic;
  font-size: 1.02rem !important;
  color: var(--dark-ink);
}
.footer-col h3 {
  color: var(--dark-ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}
.footer-col p { font-size: 0.95rem; line-height: 1.9; }
.footer-col a { color: var(--dark-body); text-decoration: none; }
.footer-col a:hover { color: var(--dark-ink); text-decoration: underline; text-underline-offset: 3px; }

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--dark-line);
  padding-top: 1.6rem;
}
.footer-base p { font-size: 0.85rem; color: color-mix(in srgb, var(--dark-body) 70%, transparent); }

/* ---------- v49: six-service bento ---------- */
.bento-6 { grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: none; }
.bento-6 .cell-payroll { grid-row: auto; min-height: 0; }
.cell-soft { background: var(--green-soft); }
.cell-soft h3, .cell-soft p { color: var(--ink); }
.tag-list-light li { border-color: var(--line); color: var(--ink); }
.cell-links-light a { color: var(--ink); border-bottom-color: var(--line); }
.cell-links-light a:hover { border-color: var(--amber); }

/* ---------- Accounts and payments ---------- */
.pay-closing {
  margin-top: 1.4rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--amber);
  color: var(--dark-ink);
  font-weight: 500;
}

/* ---------- CIS rich points ---------- */
.cis-head { max-width: 62ch; margin-bottom: 2.4rem; }
.cis-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 3rem;
  margin-bottom: 2.4rem;
}
.cis-point { display: flex; align-items: flex-start; gap: 0.85rem; }
.cis-point .ic { margin-top: 0.25rem; }
.cis-point strong { display: block; color: var(--dark-ink); margin-bottom: 0.15rem; }
.cis-point p { color: var(--dark-body); font-size: 0.96rem; }

/* ---------- Labelled checklists (payroll / switching) ---------- */
.check-list-rich li { padding-block: 0.6rem; font-weight: 400; color: var(--body); }
.check-list-rich strong { color: var(--ink); }

/* ---------- Company formation steps ---------- */
.form-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.form-step {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: 1.9rem 2rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease);
}
.form-step:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--amber) 45%, var(--line));
  box-shadow: 0 18px 38px -26px rgba(14, 43, 33, 0.4);
}
/* Ghost step number in the corner */
.form-steps { counter-reset: fstep; }
.form-step::after {
  counter-increment: fstep;
  content: "0" counter(fstep);
  position: absolute;
  top: 1rem;
  right: 1.3rem;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: color-mix(in srgb, var(--amber) 30%, transparent);
  pointer-events: none;
}
.form-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(14, 43, 33, 0.35);
}
.form-step h3 { margin-bottom: 0.55rem; }
.form-step h3::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--amber);
  margin-bottom: 0.9rem;
}
.form-step p { font-size: 0.98rem; }

/* ---------- Selling your business ---------- */
.selling-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.selling-grid h2 { max-width: 14em; }
.selling-grid > div > p { max-width: 46ch; }
.selling-points {
  margin-top: 0;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 62'%3E%3Cpath d='M10 56a40 40 0 0 1 80 0' fill='none' stroke='%23d98e2b' stroke-width='2.5' opacity='0.18'/%3E%3Cline x1='0' y1='56' x2='100' y2='56' stroke='%23143d2e' stroke-width='2' opacity='0.16'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -34px bottom -6px;
  background-size: 150px auto;
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: 1.8rem 2rem;
  align-self: center;
}
.selling-cta { margin-top: 1.7rem; }

/* ---------- v50 UI balance ---------- */
/* Bento: equal-feeling cells; tags pin to the bottom edge, payroll links flow inline */
.bento-6 .bento-cell { display: flex; flex-direction: column; align-items: flex-start; }
.bento-6 .bento-cell .tag-list { margin-top: auto; padding-top: 1.6rem; }
.bento-6 .cell-payroll .cell-links {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.9rem;
  margin-bottom: 0.4rem;
}

/* How: compact phone card fills the sticky intro column */
.how-cta {
  margin-top: 2.2rem;
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
}
.how-cta p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.5rem; }
.how-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--green);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.how-cta a:hover { color: var(--amber); }
.how-cta .tic { width: 19px; height: 19px; color: var(--amber); }

/* CIS: the CTA occupies the eighth grid slot instead of leaving it empty */
.cis-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.1rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--amber);
}
.cis-cta p { color: var(--dark-ink); font-weight: 500; }

/* ---------- Sectors: five tiles ---------- */
.sector-grid-5 { grid-template-columns: repeat(3, 1fr); }
.tile-wide { grid-column: span 2; }

/* ---------- Reward calculator ---------- */
.rw-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.rw-slider-head label { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.rw-fees {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
#rw-range {
  width: 100%;
  margin-top: 0.9rem;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber) var(--fill, 20%), var(--green-soft) var(--fill, 20%));
  cursor: pointer;
}
#rw-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--surface);
  box-shadow: 0 2px 8px rgba(14, 43, 33, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
#rw-range:hover::-webkit-slider-thumb { transform: scale(1.1); }
#rw-range:active::-webkit-slider-thumb {
  transform: scale(1.18);
  box-shadow: 0 0 0 7px rgba(217, 142, 43, 0.22), 0 2px 8px rgba(14, 43, 33, 0.35);
}
#rw-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--surface);
  box-shadow: 0 2px 8px rgba(14, 43, 33, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
#rw-range:hover::-moz-range-thumb { transform: scale(1.1); }
#rw-range:active::-moz-range-thumb {
  transform: scale(1.18);
  box-shadow: 0 0 0 7px rgba(217, 142, 43, 0.22), 0 2px 8px rgba(14, 43, 33, 0.35);
}
.rw-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rw-outs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.rw-outs > div {
  background: var(--green);
  color: var(--on-green);
  border-radius: var(--r-int);
  padding: 1rem 1.2rem;
  /* Faint sunrise watermark in the corner, echoing the payroll cell */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 62'%3E%3Cpath d='M10 56a40 40 0 0 1 80 0' fill='none' stroke='%23f4f3ee' stroke-width='3' opacity='0.1'/%3E%3Cline x1='0' y1='56' x2='100' y2='56' stroke='%23d98e2b' stroke-width='2.5' opacity='0.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -28px bottom -6px;
  background-size: 110px auto;
}
.rw-out-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: color-mix(in srgb, var(--on-green) 75%, transparent);
}
.rw-out-val {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 0.1rem;
  font-variant-numeric: tabular-nums;
}
.rw-dest-label {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.rw-dest {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}
.rw-dest li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.33rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  opacity: 0.55;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), opacity 0.35s var(--ease),
              transform 0.35s var(--ease);
}
.rw-dest .rw-plane {
  width: 13px;
  height: 13px;
  transition: transform 0.4s var(--ease);
}
.rw-dest li.is-on {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-green);
  opacity: 1;
  transform: translateY(-2px);
}
.rw-dest li.is-on .rw-plane {
  transform: rotate(-14deg);
  color: var(--amber);
}

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .how-intro { position: static; }
}

@media (max-width: 860px) {
  /* Full-bleed photo hero on mobile: the photograph fills the first screen,
     copy sits on top of a deep green scrim */
  .hero {
    position: relative;
    min-height: 100dvh;
    padding-block: 6rem 8rem;
    background: var(--green-deep);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    align-content: center;
  }
  /* The entrance animation's transform would make .hero-visual the containing
     block for the absolutely positioned photo and card, so it is disabled here */
  .hero-visual.hero-anim {
    position: static;
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-visual .img-duo {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
    z-index: 0;
  }
  .hero-visual .img-duo::after {
    background: linear-gradient(180deg,
      rgba(14, 43, 33, 0.74) 0%,
      rgba(14, 43, 33, 0.46) 48%,
      rgba(10, 32, 24, 0.85) 100%);
  }
  /* Show more of the upper frame so the hands settle beneath the copy */
  .hero-visual .img-duo img { object-position: 50% 32%; }
  /* Cap content width so buttons don't stretch on tablets */
  .hero-copy { z-index: 1; max-width: 33rem; }
  /* Fluid headline: two lines from 320px phones up to small tablets */
  .hero h1 { font-size: clamp(2.05rem, 10.2vw, 2.6rem); color: #f4f3ee; }
  .hero .lede { color: rgba(244, 243, 238, 0.9); margin-top: 1rem; }
  .hero .cta-row {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.7rem;
  }
  .hero .cta-row .btn { width: 100%; }
  .hero .btn-primary {
    background: #f4f3ee;
    color: #143d2e;
    padding-block: 0.95rem;
    box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
  }
  .hero .btn-primary:hover { background: #ffffff; }
  /* Secondary action reads as a quiet link, not a second box */
  .hero .btn-ghost {
    border: none;
    background: none;
    color: rgba(244, 243, 238, 0.88);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: rgba(217, 142, 43, 0.7);
    padding-block: 0.55rem;
  }

  /* Light header over the photo until the page scrolls or the menu opens
     (homepage only: other pages have a light background at the top) */
  .home .site-header:not(.scrolled):not(.nav-open) .brand { color: #f4f3ee; }
  .home .site-header:not(.scrolled):not(.nav-open) .nav-toggle span { background: #f4f3ee; }


  /* Tighter, consistent rhythm on small screens */
  .section { padding-block: 3.75rem; }
  .section-sub { margin-bottom: 1.8rem; }

  .how-grid,
  .cis-grid,
  .split-grid,
  .rewards-panel,
  .auth-wrap,
  .selling-grid,
  .cis-points,
  .form-steps,
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cis-points { gap: 1.3rem; }
  .tile-wide { grid-column: auto; }

  .how-steps li { padding: 1.4rem 0 1.4rem 3.5rem; }
  .how-steps li::before { font-size: 1.5rem; top: 1.55rem; }
  .how-steps::before { left: 0.85rem; top: 1.9rem; bottom: 1.9rem; }

  .bento { gap: 0.9rem; }
  .bento-cell, .sector-tile { padding: 1.5rem; }
  .pull-line { margin-top: 1.8rem; }

  .sector-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .vs-grid { grid-template-columns: 1fr; }
  .sector-tile { min-height: 200px; }

  .rewards-cta { padding: 0.9rem 1.5rem 1.5rem; }
  .rw-engine { padding: 1.2rem 1.5rem 0.2rem; }

  .phone-link { margin-top: 1.1rem; }
  .assurance { margin-top: 1.4rem; padding-top: 1.1rem; }

  /* Full-width glass strip anchored at the bottom of the hero */
  .float-card {
    left: clamp(1.1rem, 4vw, 2.25rem);
    right: clamp(1.1rem, 4vw, 2.25rem);
    max-width: 31rem;
    bottom: calc(1.3rem + env(safe-area-inset-bottom, 0px));
    z-index: 1;
    padding: 0.8rem 1.1rem 0.8rem 0.85rem;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .auth-page .section-auth { min-height: auto; padding-top: 7rem; }
  .topbar { display: none; }
  .hero-arc { display: none; }

  .split-reverse .split-img { order: -1; }

  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .cell-payroll { grid-row: auto; min-height: 0; }

  .field-row { grid-template-columns: 1fr; gap: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 0;
    top: 72px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1.5rem clamp(1.1rem, 4vw, 2.25rem);
    background: var(--bg);
    border-top: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .site-header.nav-open .site-nav {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  .site-header.nav-open {
    background: var(--bg);
    border-color: var(--line);
    /* backdrop-filter would turn the header into a containing block,
       collapsing the fixed-position menu behind it */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-nav {
    gap: 0;
    padding: 1.8rem clamp(1.1rem, 4vw, 2.25rem) 2.5rem;
  }
  .site-nav > a:not(.btn) {
    width: 100%;
    font-size: clamp(1.7rem, 7vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    padding-block: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  /* Phone + CTA anchored at the bottom of the menu */
  .site-nav > a.nav-phone {
    font-size: clamp(1.5rem, 6.4vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    border-bottom: none;
    margin-top: auto;
    padding-block: 0.4rem;
    color: var(--green);
    gap: 0.7rem;
  }
  .site-nav > a.nav-phone .p-ic { width: 24px; height: 24px; }
  .site-nav .btn {
    margin-top: 0.9rem;
    width: 100%;
    padding: 1rem 1.6rem;
    font-size: 1.1rem;
  }

  /* Staggered link entrance when the menu opens */
  .site-nav > a {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  .site-header.nav-open .site-nav > a { opacity: 1; transform: none; }
  .site-header.nav-open .site-nav > a:nth-child(1) { transition-delay: 0.06s; }
  .site-header.nav-open .site-nav > a:nth-child(2) { transition-delay: 0.11s; }
  .site-header.nav-open .site-nav > a:nth-child(3) { transition-delay: 0.16s; }
  .site-header.nav-open .site-nav > a:nth-child(4) { transition-delay: 0.21s; }
  .site-header.nav-open .site-nav > a:nth-child(5) { transition-delay: 0.26s; }
  .site-header.nav-open .site-nav > a:nth-child(6) { transition-delay: 0.31s; }

  .site-header.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  body.nav-locked { overflow: hidden; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .auth-card, .contact-form { padding: 1.4rem; }
  .cta-row .btn { width: 100%; }
}

/* Tablet tier: use the extra width instead of pure phone stacking */
@media (min-width: 601px) and (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .cell-payroll { grid-column: 1 / -1; }
  .bento-6 > :last-child { grid-column: 1 / -1; }

  .sector-grid { grid-template-columns: 1fr 1fr; }
  .sector-grid > :first-child { grid-column: 1 / -1; }
  .sector-tile { min-height: 220px; }

  .field-row { grid-template-columns: 1fr 1fr; gap: 1rem; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* Stacked split images read better in a wider, shorter frame */
@media (max-width: 860px) {
  .split-img { aspect-ratio: 16 / 10; }
}

/* Short desktop and laptop screens (1366x768, 1280x720): keep the whole hero in view */
@media (min-width: 861px) and (max-height: 760px) {
  .hero { padding-block: 5.75rem 2.25rem; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
  .hero-visual .img-duo { aspect-ratio: 4 / 4; }
  .float-card { bottom: 24px; }
}

/* Landscape phones: shorter hero, photo background still fills it */
@media (max-width: 860px) and (max-height: 520px) {
  .hero { min-height: auto; padding-block: 4.5rem 7rem; }
}

/* Anchor offset for fixed header */
section[id] { scroll-margin-top: 84px; }

/* ---------- v51 Internal pages ---------- */
/* Page hero: shared opening block for every inner page */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(9.5rem, 18vw, 11.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 64'%3E%3Cpath d='M6 58a44 44 0 0 1 88 0' fill='none' stroke='%23d98e2b' stroke-width='0.7' opacity='0.3'/%3E%3Cpath d='M18 58a32 32 0 0 1 64 0' fill='none' stroke='%23d98e2b' stroke-width='0.7' opacity='0.2'/%3E%3Cpath d='M30 58a20 20 0 0 1 40 0' fill='none' stroke='%23d98e2b' stroke-width='0.7' opacity='0.12'/%3E%3C/svg%3E"),
    radial-gradient(720px 340px at 88% -80px, rgba(217, 142, 43, 0.12), transparent 70%);
  background-repeat: no-repeat, no-repeat;
  background-position: right clamp(-160px, -8vw, -40px) bottom -8px, top right;
  background-size: clamp(380px, 42vw, 620px) auto, auto;
}
.page-hero .container { position: relative; }
.page-hero .hero-arc { display: none; }
.page-hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14em;
  margin: 0.9rem 0 1.2rem;
}
.page-hero .lede {
  max-width: 56ch;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--muted);
}

/* Closing CTA band on inner pages */
.cta-band {
  background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 62'%3E%3Cpath d='M10 56a40 40 0 0 1 80 0' fill='none' stroke='%23f4f3ee' stroke-width='3' opacity='0.14'/%3E%3Cline x1='0' y1='56' x2='100' y2='56' stroke='%23d98e2b' stroke-width='2.5' opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -56px bottom -10px;
  background-size: 300px auto;
  color: var(--on-green);
  border-radius: var(--r-box);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--on-green); margin-bottom: 0.55rem; }
.cta-band p { color: var(--dark-body); max-width: 44ch; }
.cta-band .cta-row { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.band-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--on-green);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.band-phone:hover { color: var(--amber); }
.band-phone .tic { width: 18px; height: 18px; color: var(--amber); }

/* Hero chips: quick scan of what the page covers */
.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
  padding: 0;
}
.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.36rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}
.hero-chips li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.85;
}

/* FAQ: heading pins left, accordion column right. Opening only pushes below. */
.faq-wrap {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.faq-head { position: sticky; top: 110px; }
.faq-head .section-sub { margin-bottom: 0; max-width: 30ch; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: start;
  counter-reset: faq;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.faq-item:hover {
  border-color: color-mix(in srgb, var(--amber) 55%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -24px rgba(14, 43, 33, 0.35);
}
.faq-item[open] {
  border-color: var(--amber);
  box-shadow: 0 18px 40px -26px rgba(14, 43, 33, 0.45);
  transform: none;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.3rem 1.2rem 1.5rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
/* Question number, echoing the numbered how-steps */
.faq-item summary::before {
  counter-increment: faq;
  content: counter(faq, decimal-leading-zero);
  flex: none;
  width: 1.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.faq-item summary span { flex: 1; }
/* Circular open marker */
.faq-item summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 13%, transparent);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease);
}
.faq-item:hover summary::after { background: color-mix(in srgb, var(--amber) 22%, transparent); }
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--green);
  color: var(--on-green);
}
.faq-item > p {
  margin: 0 1.3rem 0 1.5rem;
  padding: 1rem 0 1.3rem calc(1.7rem + 1rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 62ch;
}
/* Smooth height animation where the browser supports it */
@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; }
}

/* Tighten the gap when a plain section follows the page hero */
.page-hero + .section:not(.section-dark):not(.section-tint) {
  padding-block-start: clamp(1.25rem, 3vw, 2.25rem);
}

@media (max-width: 860px) {
  .page-hero { padding-top: 8.5rem; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .faq-wrap { grid-template-columns: 1fr; gap: 0.4rem; }
  .faq-head { position: static; }
  .faq-head .section-sub { margin-bottom: 1.4rem; max-width: none; }
  .faq-item > p { padding-left: 0; }
}

/* Rewards banner: full-width photo card with the copy over a scrim */
.rewards-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-box);
  background-color: var(--green-deep, #0e2b21);
  min-height: clamp(340px, 34vw, 430px);
  display: flex;
  align-items: center;
  box-shadow: 0 30px 70px -40px rgba(14, 43, 33, 0.55);
}
.rewards-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/img/plane-1600.jpg") center 38% / cover no-repeat;
  transition: transform 6s var(--ease);
}
.rewards-banner:hover::before { transform: scale(1.04); }
.rewards-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(10, 32, 24, 0.9) 0%,
    rgba(10, 32, 24, 0.72) 42%,
    rgba(14, 43, 33, 0.18) 100%);
}
.rw-banner-copy {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 36rem;
}
.rw-banner-copy h2 { color: var(--on-green); }
.rw-banner-copy > p:not(.eyebrow) {
  color: var(--dark-body);
  margin-bottom: 1.7rem;
  max-width: 40ch;
}
@media (max-width: 860px) {
  .rewards-banner { min-height: 380px; align-items: flex-end; }
  .rewards-banner::before { background-image: url("assets/img/plane-900.jpg"); background-position: center 30%; }
  .rewards-banner::after {
    background: linear-gradient(180deg,
      rgba(10, 32, 24, 0.2) 0%,
      rgba(10, 32, 24, 0.55) 45%,
      rgba(10, 32, 24, 0.92) 100%);
  }
}

/* Closing line under a tile grid */
.section-close {
  margin-top: 2.1rem;
  max-width: 62ch;
  color: var(--muted);
}
.section-close a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--amber);
  transition: color 0.25s var(--ease);
}
.section-close a:hover { color: var(--amber); }

/* ---------- v58 Motion layer ---------- */
/* Reading progress hairline above the header */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), #e8aa52);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 500;
  pointer-events: none;
}

/* Micro-interactions available to everyone (hover states) */
.cell-icon { transition: transform 0.35s var(--ease); }
.bento-cell:hover .cell-icon { transform: rotate(-6deg) scale(1.1); }
.form-step::after { transition: transform 0.35s var(--ease), color 0.35s var(--ease); }
.form-step:hover::after {
  transform: translateY(-3px);
  color: color-mix(in srgb, var(--amber) 50%, transparent);
}
.tile-content { transition: transform 0.4s var(--ease); }
.tile-img:hover .tile-content { transform: translateY(-4px); }
.btn:active { transform: translateY(1px) scale(0.98); }

@media (prefers-reduced-motion: no-preference) {
  /* Check marks draw themselves in as their row reveals */
  .reveal .ic polyline {
    stroke-dasharray: 34;
    stroke-dashoffset: 34;
  }
  .reveal.is-in .ic polyline {
    animation: ic-draw 0.55s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 90ms + 0.3s);
  }
  @keyframes ic-draw { to { stroke-dashoffset: 0; } }

  /* Page-hero chips pop in one after another */
  .page-hero .hero-chips li {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    animation: chip-in 0.5s var(--ease) forwards;
  }
  .page-hero .hero-chips li:nth-child(1) { animation-delay: 0.5s; }
  .page-hero .hero-chips li:nth-child(2) { animation-delay: 0.57s; }
  .page-hero .hero-chips li:nth-child(3) { animation-delay: 0.64s; }
  .page-hero .hero-chips li:nth-child(4) { animation-delay: 0.71s; }
  .page-hero .hero-chips li:nth-child(5) { animation-delay: 0.78s; }
  .page-hero .hero-chips li:nth-child(6) { animation-delay: 0.85s; }
  @keyframes chip-in { to { opacity: 1; transform: none; } }

  /* FAQ answers ease in under the question */
  .faq-item[open] > p { animation: faq-in 0.4s var(--ease) both; }
  @keyframes faq-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: none; }
  }

  /* Ghost step numbers rise with their card (backwards fill keeps hover free) */
  .form-step.reveal.is-in::after {
    animation: num-in 0.6s var(--ease) backwards;
    animation-delay: calc(var(--i, 0) * 90ms + 0.35s);
  }
  @keyframes num-in {
    from { opacity: 0; transform: translateY(6px); }
  }
}

/* ---------- v63 Campaign landing pages (business-account, cis-payroll) ---------- */
/* Static top bar: brand and phone only, no navigation — conversion pages */
.lp-bar { background: var(--green-deep); }
.lp-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.lp-bar .brand,
.lp-bar .brand-mark { color: #f4f3ee; }
.lp-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f4f3ee;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.lp-phone:hover { color: var(--amber); }
.lp-phone .tic { width: 16px; height: 16px; color: var(--amber); }

/* Dark hero with the enquiry card beside the pitch */
.lp-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--green);
  /* Sunrise watermark whose horizon line fades in from the left */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 62'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23d98e2b' stop-opacity='0'/%3E%3Cstop offset='0.45' stop-color='%23d98e2b' stop-opacity='0.4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 56a40 40 0 0 1 80 0' fill='none' stroke='%23f4f3ee' stroke-width='3' opacity='0.14'/%3E%3Cline x1='0' y1='56' x2='100' y2='56' stroke='url(%23g)' stroke-width='2.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -80px bottom -14px;
  background-size: 400px auto;
  padding-block: clamp(2.75rem, 5.5vw, 4.5rem) clamp(3.25rem, 6.5vw, 5.25rem);
}
/* Drifting amber horizon glow, echoing the dark sections */
.lp-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 6%;
  bottom: -34%;
  width: 72%;
  height: 72%;
  background: radial-gradient(ellipse at center,
    rgba(217, 142, 43, 0.14) 0%, transparent 62%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .lp-hero::before { animation: glowDrift 16s ease-in-out infinite alternate; }
}
.lp-hero .container { position: relative; z-index: 1; }
.lp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 26.5rem);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}
.lp-hero .eyebrow { color: var(--amber); }
.lp-hero h1 {
  color: var(--on-green);
  font-size: clamp(2.35rem, 4.6vw, 3.6rem);
  max-width: 16ch;
}
.lp-lede {
  margin-top: 1.2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: color-mix(in srgb, var(--on-green) 85%, transparent);
  max-width: 48ch;
}
.lp-ticks {
  list-style: none;
  margin-top: 1.9rem;
  display: grid;
  gap: 0.8rem;
}
.lp-ticks li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-weight: 500;
  color: var(--on-green);
}
.lp-ticks .ic { margin-top: 0.2rem; }

/* Enquiry card: the shared form styling with a deeper sit on the dark hero */
.lp-card { box-shadow: 0 30px 70px -30px rgba(10, 32, 24, 0.65); }
.lp-card h2 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.lp-card .card-sub { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.4rem; }
.no-line { padding-bottom: 0; }
.no-line::before, .no-line::after { display: none; }
.lp-smallprint {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}
.lp-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.1rem 0 1.1rem;
}
.lp-check input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  accent-color: var(--green);
}
.lp-check label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--body);
  cursor: pointer;
}
.lp-success { text-align: center; padding: 1.4rem 0 0.4rem; }
.lp-success .ic-lg { margin: 0 auto 1rem; }
.lp-success h3 { margin-bottom: 0.5rem; }

/* Reason cards ("Why it happens" / "What we check") */
.lp-points {
  list-style: none;
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
@media (min-width: 601px) and (max-width: 900px) {
  .lp-points { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .lp-points { grid-template-columns: 1fr; }
}
.lp-points li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: 1.6rem 1.7rem;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.lp-points li:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--amber) 45%, var(--line));
  box-shadow: 0 18px 38px -26px rgba(14, 43, 33, 0.4);
}
.lp-points strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.lp-points span { font-size: 0.96rem; color: var(--body); }

/* Slim centred footer for campaign pages */
.lp-footer { text-align: center; padding-block: 2.6rem 2.4rem; }
.lp-footer .brand { margin-bottom: 0.9rem; }
.lp-footer p { font-size: 0.88rem; line-height: 1.9; }
.lp-footer a { color: var(--dark-body); text-decoration: none; }
.lp-footer a:hover { color: var(--dark-ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .lp-grid { grid-template-columns: 1fr; }
  .lp-hero { background-size: 300px auto; }
  .lp-points { margin-top: 1.9rem; }
}

/* ---------- 404 popular-links block ---------- */
.nf-links {
  margin-top: 2.8rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--line);
  max-width: 640px;
}
.nf-links-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.nf-links ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.nf-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-int);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.nf-links a:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--amber) 55%, var(--line));
  box-shadow: 0 12px 28px -20px rgba(14, 43, 33, 0.4);
}
.nf-links a .tic {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--amber);
  transition: transform 0.25s var(--ease);
}
.nf-links a:hover .tic { transform: scale(1.12); }

@media (max-width: 520px) {
  .nf-links ul { grid-template-columns: 1fr; }
}

/* Honeypot field — hidden from people, visible to bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Keep the 404 footer pinned to the bottom when content is short */
body.nf-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body.nf-page main { flex: 1 0 auto; }
body.nf-page .site-footer { flex-shrink: 0; }
