/* ProperSA — shared styles and design tokens */

/* Self-hosted variable fonts (latin subset, woff2), served from /assets/fonts.
   No external font requests; font-display swap as a safety net, though local
   files load with the stylesheet. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
}

:root {
  /* Core palette */
  --bg: #0a2a20;
  --panel: #0e3527;
  --hairline: #1c4434;
  --gold: #d8b04a;
  --gold-hover: #e8c257;
  --cream: #f6f1e2;
  --text: #eae6d8;
  --muted: #a9bcae;

  /* Supporting tones from the approved design */
  --heading: #f5f1de;
  --soft: #b8c6ba;
  --faint: #8fa596;
  --footer-text: #6f8577;
  --outline: #3a5c4b;
  --cream-text: #5a6455;
  --cream-gold: #7a5c14;
  --cream-card-border: #e5ddc6;
  --cream-badge-bg: #f0e6c8;
  --cream-badge-text: #7a5c14;
  --cream-note-bg: #fdf8ea;
  --cream-note-border: #e3c46b;
  --cream-note-text: #5a5236;

  --radius: 16px;
  --radius-lg: 20px;
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --cyan: #d8b04a;
  --violet: #9f8cff;
  --glow: rgba(216, 176, 74, 0.26);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(115deg,
    rgba(216, 176, 74, 0.035) 0px, rgba(216, 176, 74, 0.035) 2px,
    transparent 2px, transparent 28px);
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }
/* Keep keyboard navigation clearly visible across the public site. */
:focus-visible {
  outline: 3px solid var(--gold-hover);
  outline-offset: 4px;
}

h1, h2, h3 { margin: 0; font-family: var(--font-heading); color: var(--heading); }
p { margin: 0; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 80px;
  padding-right: 80px;
  position: relative;
}

/* Sticky header: the ::before paints a full-bleed backdrop behind the
   centred wrap so the bar spans the viewport on every page. */
header.wrap {
  position: sticky;
  top: 0;
  z-index: 90;
}
header.wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  /* A translucent glass header lets the hero texture show through without
     weakening the contrast of the navigation. */
  background: rgba(10, 42, 32, 0.72);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid transparent;
  z-index: -1;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
header.wrap.scrolled::before {
  border-bottom-color: var(--hairline);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.6);
}

/* Back to top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(14, 53, 39, 0.92);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--bg); }

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--heading);
}
.brand:hover { color: var(--heading); }
.brand img { display: block; height: 70px; width: auto; }
@media (max-width: 900px) { .brand img { height: 50px; } }

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
}
.brand-name span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 700;
}
.nav-links a { color: var(--soft); white-space: nowrap; background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 2px no-repeat; padding-bottom: 3px; transition: color 0.2s ease, background-size 0.25s ease; }
.nav-links a:hover { background-size: 100% 2px; }
.nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--outline);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  color: var(--text);
}

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

.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
  /* Reset native <button> chrome so button and anchor versions match. */
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  color: inherit;
  line-height: 1.2;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -140%; left: -35%; width: 55%; height: 380%;
  background: rgba(255,255,255,0.32);
  transform: rotate(26deg) translateX(-250%);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover::before { transform: rotate(26deg) translateX(480%); }
.btn-gold:hover, .btn-gold-sm:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(216, 176, 74, 0.28); }
.btn-calc { transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, background 0.2s ease; }
.btn-calc:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(216, 176, 74, 0.28); }

.btn-gold {
  background: var(--gold);
  color: var(--bg);
  padding: 17px 32px;
  font-size: 16.5px;
}
.btn-gold:hover { background: var(--gold-hover); color: var(--bg); }

.btn-gold-sm {
  background: var(--gold);
  color: var(--bg);
  padding: 13px 26px;
  font-size: 15px;
}
.btn-gold-sm:hover { background: var(--gold-hover); color: var(--bg); }

.btn-outline {
  border: 1.5px solid var(--outline);
  color: var(--text);
  padding: 16px 28px;
  font-weight: 700;
  font-size: 16.5px;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

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

.hero { position: relative; z-index: 1; }

.hero {
  display: flex;
  gap: 64px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 70px;
}

.hero-sash {
  position: absolute;
  top: -140px;
  right: -220px;
  width: 900px;
  height: 620px;
  background: linear-gradient(115deg, transparent 30%,
    rgba(216, 176, 74, 0.10) 46%, rgba(216, 176, 74, 0.16) 50%,
    rgba(216, 176, 74, 0.10) 54%, transparent 70%);
  transform: rotate(-6deg);
  pointer-events: none;
  z-index: 0;
}

.hero-copy {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.hero h1 {
  font-size: 54px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1px;
}
.hero h1 span { color: var(--gold); }

.hero-sub {
  font-size: 19px;
  line-height: 1.65;
  color: var(--soft);
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-notes {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--faint);
  font-weight: 600;
  flex-wrap: wrap;
}

.hero-preview {
  flex: 0.9;
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-preview .preview-card { z-index: 1; }

/* ---------- Motion ---------- */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes pulseValue {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Hero entrance: staggered fade-up */
.hero-copy > * { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.25s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.35s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.45s; }
.hero-preview { animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }

/* Scroll reveal (classes applied by site.js; without JS everything stays visible) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-preview { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .preview-card.floating { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.hero-ctas .btn-gold::after { content: '\2192'; display: inline-block; margin-left: 8px; transition: transform 0.2s ease; }
.hero-ctas .btn-gold:hover::after { transform: translateX(4px); }

/* ---------- Preview card ---------- */

.preview-card {
  background: linear-gradient(160deg, #114032 0%, var(--panel) 45%, #0b2e22 100%);
  border: 1px solid rgba(216, 176, 74, 0.35);
  border-radius: var(--radius-lg);
  width: 390px;
  max-width: 100%;
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(216, 176, 74, 0.08),
    0 0 60px rgba(216, 176, 74, 0.10);
  overflow: hidden;
  position: relative;
}

/* Gentle levitation for the hero calculator */
.preview-card.floating { animation: float 6s ease-in-out infinite; }

/* Soft sheen across the top edge */
.preview-card::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 176, 74, 0.55), transparent);
}

.preview-card .value-pulse { animation: pulseValue 0.45s ease; }

.preview-input input {
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--heading);
  font-family: var(--font-body);
  width: 100%;
}
.preview-input input:focus { outline: none; }
.preview-input { transition: border-color 0.2s ease; }
.preview-input:focus-within { border-color: var(--gold); }

.hero-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--gold) var(--fill, 34%), var(--hairline) var(--fill, 34%)); outline: none; margin: 2px 0 0; cursor: pointer; }
.hero-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 3px solid #0a2a20; box-shadow: 0 0 0 1px rgba(216,176,74,0.6), 0 2px 8px rgba(0,0,0,0.4); transition: transform 0.15s ease; }
.hero-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.hero-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 3px solid #0a2a20; box-shadow: 0 0 0 1px rgba(216,176,74,0.6); }

.preview-link {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--gold);
  display: inline-block;
  transition: transform 0.2s ease;
}
.preview-link:hover { transform: translateX(3px); }

.preview-head {
  padding: 20px 28px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.preview-head h2,
.preview-head h3 { font-size: 17px; font-weight: 800; }

.badge-free {
  font-size: 12px;
  font-weight: 800;
  color: var(--bg);
  background: var(--gold);
  padding: 5px 11px;
  border-radius: 999px;
}

.preview-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-inputs { display: flex; gap: 12px; }

.preview-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.preview-input .label { font-size: 12px; color: var(--faint); font-weight: 700; }
.preview-input .value { font-size: 18px; font-weight: 800; color: var(--heading); }

.preview-rows { display: flex; flex-direction: column; gap: 10px; }

.preview-row {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
}
.preview-row .k { color: var(--soft); }
.preview-row .v { font-weight: 800; color: var(--text); }

.preview-divider { height: 1px; background: var(--hairline); }

.preview-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.preview-total .k { font-size: 14.5px; color: var(--soft); }
.preview-total .v {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
}

.preview-note {
  background: var(--bg);
  border: 1px solid #2a4d3d;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--faint);
  line-height: 1.5;
}

/* ---------- Sections ---------- */

.section {
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.section-head-copy { display: flex; flex-direction: column; gap: 6px; }

.section-head h2 { font-size: 32px; font-weight: 800; }

.section-head p { font-size: 16px; color: var(--faint); }

/* Section links are now impossible-to-miss glowing pill buttons. */
.section-link {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  animation: sectionGlow 2.6s ease-in-out infinite;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.section-link:hover { background: var(--gold); color: var(--bg); transform: translateY(-2px); }
.section-link::after { content: ''; }
@keyframes sectionGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 176, 74, 0.45), 0 0 18px rgba(216, 176, 74, 0.15); }
  50% { box-shadow: 0 0 0 7px rgba(216, 176, 74, 0), 0 0 26px rgba(216, 176, 74, 0.35); }
}
@media (prefers-reduced-motion: reduce) { .section-link { animation: none; } }

/* Featured card on the dark grids (mirror of .pack-featured on cream). */
.card-featured {
  border-color: var(--gold) !important;
  box-shadow: 0 22px 46px -18px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(216, 176, 74, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translateY(-6px);
}
.card-featured:hover { transform: translateY(-10px); }
.dark-badge {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--bg);
}
.pack-featured { transform: translateY(-6px); }
.pack-featured:hover { transform: translateY(-11px); }

/* Browse-by-need chips: navigate by problem, not product name. */
.need-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.need-chips a {
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--soft);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.need-chips a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.need-chips .lead { color: var(--faint); font-size: 13.5px; font-weight: 700; align-self: center; margin-right: 2px; }

/* ---------- Card grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ---------- Tool hub ---------- */

.tool-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 52px;
}
.tool-category-nav a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(13, 52, 39, .68);
  font-size: 13px;
  font-weight: 750;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.tool-category-nav a:hover { color: var(--heading); border-color: var(--gold); transform: translateY(-2px); }
.tool-category-nav span {
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(216, 176, 74, .16);
  color: var(--gold);
  font-size: 11px;
  text-align: center;
}
.tool-category { scroll-margin-top: 100px; margin: 0 0 58px; }
.tool-category-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}
.tool-category-head h2 { margin-top: 6px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.025em; }
.tool-category-head p { max-width: 660px; margin-top: 8px; color: var(--muted); line-height: 1.6; }
.tool-category-count {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(216, 176, 74, .38);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.tool-category-grid .card { min-height: 248px; position: relative; overflow: hidden; }
.tool-category-grid .card::before { content: 'FREE TOOL'; display: inline-flex; align-items: center; align-self: flex-start; min-height: 27px; padding: 0 10px; border: 1px solid rgba(216, 176, 74, .28); border-radius: 999px; background: rgba(216, 176, 74, .1); color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.tool-category-grid .icon-3d { margin: 4px 0 5px; }
.tool-category-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-category-grid-four .card { min-height: 276px; padding: 28px; }
.tool-category-grid-four .card h3 { font-size: 20px; }
.tool-category-grid-four .card p { max-width: 455px; font-size: 15px; }

/* ---------- Selectable document catalogue ---------- */

.document-catalogue-section { gap: 20px; }
.document-catalogue-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}
.document-catalogue-heading h2 { margin-top: 6px; font-size: clamp(26px, 3vw, 34px); }
.document-catalogue-heading p { margin-top: 8px; }
.document-delivery-note {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(216,176,74,.35);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.document-order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
.document-table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 18px; background: rgba(7, 33, 25, .48); }
.document-table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.document-select-width { width: 64px; }
.document-purpose-width { width: 35%; }
.document-price-width { width: 104px; }
.document-table th { padding: 14px 16px; border-bottom: 1px solid var(--hairline); color: var(--faint); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.document-table td { padding: 17px 16px; border-bottom: 1px solid rgba(34, 77, 60, .72); vertical-align: top; color: var(--soft); font-size: 13px; line-height: 1.55; transition: background .2s ease; }
.document-table tbody tr:last-child td { border-bottom: 0; }
.document-table tr:hover td, .document-table tr.is-selected td { background: rgba(216,176,74,.075); }
.document-table tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.document-table td strong { display: block; color: var(--heading); font-size: 14px; line-height: 1.35; }
.document-table td span { display: block; margin-top: 5px; }
.document-select-col { width: 48px; text-align: center !important; }
.document-select-col label { display: inline-flex; padding: 5px; cursor: pointer; }
.document-select-col input { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }
.document-price-col { width: 88px; text-align: right !important; white-space: nowrap; }
.document-price-col strong { color: var(--gold) !important; font-family: var(--font-heading); font-size: 17px !important; }
.document-order-summary { position: sticky; top: 100px; padding: 22px; border: 1px solid rgba(216,176,74,.42); border-radius: 18px; background: linear-gradient(145deg, rgba(25,67,50,.96), rgba(8,38,29,.99)); box-shadow: 0 22px 48px rgba(0,0,0,.2); }
.document-order-summary h3 { margin-top: 16px; font-size: 21px; }
.document-order-summary > p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.document-selected-list { display: grid; gap: 9px; max-height: 230px; margin: 18px 0 0; overflow: auto; padding: 0; list-style: none; }
.document-selected-list li { display: flex; justify-content: space-between; gap: 12px; color: var(--soft); font-size: 12.5px; line-height: 1.4; }
.document-selected-list strong { flex: 0 0 auto; color: var(--heading); }
.document-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding: 16px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); color: var(--soft); font-size: 14px; }
.document-total strong { color: var(--gold); font-family: var(--font-heading); font-size: 29px; }
.document-order-summary .btn { display: inline-flex; width: 100%; max-width: 100%; margin-top: 18px; white-space: normal; justify-content: center; text-align: center; }
.document-order-note { font-size: 12px !important; }
.document-order-error { min-height: 19px; color: #e6a39b !important; font-weight: 700; }

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

.card {
  background: linear-gradient(165deg, #103a2b 0%, var(--panel) 60%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text);
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.card:hover {
  border-color: var(--gold);
  color: var(--text);
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(216, 176, 74, 0.07);
}
.card .card-icon { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease; }
.card:hover .card-icon:not(.icon-3d) { transform: scale(1.12) rotate(-3deg); background: rgba(216, 176, 74, 0.2); }
.card .card-cta { transition: transform 0.2s ease; }
.card:hover .card-cta { transform: translateX(4px); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(216, 176, 74, 0.22), rgba(216, 176, 74, 0.08));
  box-shadow: inset 0 0 0 1px rgba(216, 176, 74, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card h3 { font-size: 17.5px; font-weight: 800; }

.card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  flex-grow: 1;
}

.card-cta { font-size: 14px; font-weight: 800; color: var(--gold); }
.card:hover .card-cta { color: var(--gold-hover); }

.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(216, 176, 74, 0.1);
  border: 1px solid rgba(216, 176, 74, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* POPIA highlight card */
.card-highlight {
  background: rgba(216, 176, 74, 0.08);
  border: 1px dashed var(--gold);
  justify-content: center;
}
.card-highlight:hover { border-style: dashed; }
.card-highlight h3 { color: var(--gold); }
.card-highlight p { color: var(--soft); }
.card-highlight .btn-gold-sm { align-self: flex-start; padding: 11px 22px; font-size: 14px; }

/* Service cards */
.card-service { gap: 10px; position: relative; overflow: hidden; }
.card-service::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #e8c257);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-service:hover::before { transform: scaleX(1); }
.card-service.card-featured { border-color: rgba(216, 176, 74, 0.55); }
.card-service.card-featured::before { transform: scaleX(1); }
.price-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex-shrink: 0; }
.card-per { font-size: 11px; font-weight: 700; color: var(--faint); white-space: nowrap; }

.card-service-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.card-price { font-size: 18px; font-weight: 800; color: var(--gold); white-space: nowrap; }

.card-service .card-cta { font-size: 13.5px; }

/* ---------- Cream section (compliance packs) ---------- */

.cream-band {
  background: var(--cream);
  position: relative;
  z-index: 1;
  isolation: isolate;
  margin: 48px 0;
  border-top: 1px solid rgba(255,255,255,.82);
  border-bottom: 1px solid #dccb9c;
  border-radius: 0;
  box-shadow: 0 18px 0 #d8c89d, 0 39px 54px -28px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255,255,255,.88);
}
/* A clean, thick paper edge rather than a decorative scroll. */
.cream-band::before,
.cream-band::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.cream-band::before {
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  z-index: 2;
  background: rgba(255,255,255,.94);
}
.cream-band::after {
  left: 0;
  right: 0;
  bottom: -18px;
  height: 22px;
  pointer-events: none;
  z-index: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #d8c89d, #cbb783);
  box-shadow: 0 15px 25px -16px rgba(0,0,0,.82);
}
.cream-band .wrap { position: relative; z-index: 1; }

.cream-band .section {
  padding-top: 60px;
  padding-bottom: 60px;
  gap: 30px;
}

.cream-band h2 { color: var(--bg); }
.cream-band .section-head p { color: var(--cream-text); }
.cream-band .section-link {
  color: var(--cream-gold);
  border-color: var(--cream-gold);
  animation-name: sectionGlowCream;
}
.cream-band .section-link:hover { background: var(--cream-gold); color: #fdf8ea; }
@keyframes sectionGlowCream {
  0%, 100% { box-shadow: 0 0 0 0 rgba(122, 92, 20, 0.35), 0 0 16px rgba(122, 92, 20, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(122, 92, 20, 0), 0 0 24px rgba(122, 92, 20, 0.28); }
}

.pack-card {
  background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.55));
  border: 1px solid rgba(122, 92, 20, .28);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  backdrop-filter: blur(15px) saturate(135%);
  -webkit-backdrop-filter: blur(15px) saturate(135%);
  box-shadow: 0 20px 38px rgba(57, 43, 15, .16), inset 0 1px 0 rgba(255,255,255,.95);
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.pack-card:hover { border-color: var(--gold); transform: translateY(-7px); box-shadow: 0 25px 42px rgba(57, 43, 15, .20), inset 0 1px 0 rgba(255,255,255,.96); }
.pack-card { position: relative; overflow: hidden; }
.pack-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #e8c257);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.pack-card:hover::before { transform: scaleX(1); }
.pack-featured { border: 2px solid var(--gold); box-shadow: 0 24px 44px rgba(103, 75, 15, .24), 0 0 0 4px rgba(216, 176, 74, .14), inset 0 1px 0 rgba(255,255,255,.96); }
.pack-featured::before { transform: scaleX(1); }
.pack-price-row { display: flex; align-items: center; gap: 10px; }
.pack-per { font-size: 12.5px; font-weight: 700; line-height: 1.35; color: var(--cream-text); }
.pack-cta { font-size: 15px; font-weight: 800; color: var(--cream-gold); transition: transform 0.2s ease; }
.pack-card:hover .pack-cta { transform: translateX(4px); }

.pack-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cream-badge-bg);
  color: var(--cream-badge-text);
  box-shadow: 0 2px 6px rgba(57, 43, 15, .12);
}

.pack-badge-featured {
  background: var(--bg);
  color: var(--gold);
}

.pack-card h3 { font-size: 21px; font-weight: 800; color: var(--bg); letter-spacing: -0.2px; }

.pack-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--cream-text);
  flex-grow: 1;
}

.pack-price {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--bg);
  letter-spacing: -0.5px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.cream-note {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream-note-bg);
  border: 1px solid var(--cream-note-border);
  border-radius: 14px;
  padding: 16px 20px;
  align-self: flex-start;
}
.cream-note svg { flex-shrink: 0; }
.cream-note p { font-size: 14.5px; color: var(--cream-note-text); font-weight: 700; }

/* ---------- Closing CTA ---------- */

.closing {
  margin: 60px 0 56px;
  padding: 42px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, rgba(216, 176, 74, 0.14), rgba(216, 176, 74, 0.03) 45%), var(--panel);
  border: 1px solid rgba(216, 176, 74, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 24px 55px -28px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--gold), rgba(216, 176, 74, 0.35));
}

.closing-copy { display: flex; flex-direction: column; gap: 10px; }
.closing h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.3px; }
.closing p { font-size: 16px; color: var(--soft); max-width: 62ch; line-height: 1.6; }
.closing .btn { flex-shrink: 0; white-space: nowrap; }

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

.footer {
  border-top: 1px solid var(--hairline);
}

.footer .wrap {
  padding-top: 26px;
  padding-bottom: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: var(--footer-text);
}

.footer .site { font-weight: 700; }

.footer { margin-top: 56px; background: #061e17; }
.footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.55fr) repeat(4, minmax(130px, 1fr));
  gap: 32px;
  padding-top: 54px;
  padding-bottom: 0;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; max-width: 310px; }
.footer-wordmark { color: var(--heading); font-family: var(--font-heading); font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.footer-wordmark span { color: var(--gold); }
.footer-brand p { font-size: 13.5px; color: var(--faint); line-height: 1.65; }
.footer-about { color: var(--gold); font-size: 13px; font-weight: 700; }
.footer-about:hover { color: var(--heading); }
.footer-flag { color: var(--cyan); font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-column h2 { color: var(--heading); font-size: 13px; letter-spacing: .07em; text-transform: uppercase; }
.footer-column a, .footer-column span { color: var(--faint); font-size: 13px; line-height: 1.5; }
.footer-column a:hover { color: var(--gold); }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 20px 0 24px; border-top: 1px solid var(--hairline); color: var(--faint); font-size: 12px; line-height: 1.5; }
.footer-bottom span:last-child { max-width: 560px; text-align: right; }

/* ---------- Tool pages ---------- */

.tool-hero {
  padding-top: 40px;
  padding-bottom: 44px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.5px; }
.tool-hero .tool-intro { font-size: 17px; line-height: 1.6; color: var(--soft); max-width: 640px; }

/* ---------- HR hub ---------- */

.hr-hero { max-width: 820px; padding-bottom: 50px; }
.hr-eyebrow, .section-kicker { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hr-hero h1 { max-width: 760px; font-size: clamp(39px, 4vw, 54px); line-height: 1.06; }
.hr-hero .tool-intro { max-width: 735px; font-size: 18px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--hairline); }
.section-heading h2 { margin-top: 6px; }
.section-heading p { margin: 0; max-width: 365px; text-align: right; }
.hr-packs { gap: 22px; }
.hr-pack { min-height: 324px; padding: 26px; gap: 13px; border-color: rgba(206, 223, 211, .15); background: linear-gradient(145deg, rgba(19, 68, 50, .97), rgba(10, 47, 35, .98)); }
.hr-pack-featured { border-color: rgba(216, 176, 74, .72); box-shadow: 0 20px 42px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .07); }
.hr-pack-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; width: 100%; margin-bottom: 6px; }
.hr-pack-icon { display: inline-flex; align-items: center; justify-content: center; justify-self: start; min-height: 29px; padding: 0 10px; border-radius: 999px; color: var(--gold); background: rgba(216, 176, 74, .12); border: 1px solid rgba(216, 176, 74, .28); font-size: 10px; font-weight: 900; letter-spacing: .055em; white-space: nowrap; }
.hr-price { justify-self: end; color: var(--gold); font-family: var(--font-heading); font-size: 24px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.hr-pack h3 { color: var(--heading); font-size: 21px; }
.hr-pack p { flex-grow: 0; font-size: 15px; line-height: 1.55; }
.hr-includes { display: block; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(209, 226, 213, .12); color: var(--soft); font-size: 12.5px; line-height: 1.5; }
.hr-includes strong { color: var(--heading); margin-right: 3px; }
.hr-pack .card-cta { margin-top: 3px; }
.hr-questions { gap: 22px; }
.hr-question { min-height: 210px; padding: 24px 26px; background: rgba(13, 58, 43, .72); }
.hr-question-number { color: rgba(216, 176, 74, .78); font-size: 12px; font-weight: 900; letter-spacing: .09em; }
.hr-question h3 { margin-top: 4px; font-size: 18px; }
.hr-question p { font-size: 14px; }

/* ---------- Trade compliance hub ---------- */

.trade-services { gap: 22px; }
.trade-card { min-height: 315px; padding: 26px; gap: 13px; background: linear-gradient(145deg, rgba(19, 68, 50, .97), rgba(10, 47, 35, .98)); }
.trade-card-featured { border-color: rgba(216, 176, 74, .72); box-shadow: 0 20px 42px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .07); }
.trade-card-secondary { background: rgba(13, 58, 43, .76); }
.trade-card-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; width: 100%; margin-bottom: 6px; }
.trade-label { display: inline-flex; align-items: center; justify-content: center; justify-self: start; min-height: 29px; padding: 0 10px; border-radius: 999px; color: var(--gold); background: rgba(216, 176, 74, .12); border: 1px solid rgba(216, 176, 74, .28); font-size: 10px; font-weight: 900; letter-spacing: .055em; white-space: nowrap; }
.trade-price { justify-self: end; color: var(--gold); font-family: var(--font-heading); font-size: 23px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.trade-card h3 { color: var(--heading); font-size: 21px; }
.trade-card p { flex-grow: 0; font-size: 15px; line-height: 1.55; }
.trade-includes { display: block; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(209, 226, 213, .12); color: var(--soft); font-size: 12.5px; line-height: 1.5; }
.trade-includes strong { color: var(--heading); margin-right: 3px; }
.trade-card .card-cta { margin-top: 3px; }

/* ---------- Business services hub ---------- */

.business-services-hero { max-width: 820px; }
.business-services-section { display: flex; flex-direction: column; gap: 22px; margin-bottom: 24px; }
.business-service-grid .card { min-height: 250px; padding: 26px; gap: 13px; position: relative; overflow: hidden; background: linear-gradient(145deg, rgba(19, 68, 50, .97), rgba(10, 47, 35, .98)); }
.business-service-grid .card::before { content: 'DONE FOR YOU'; display: inline-flex; align-items: center; align-self: flex-start; min-height: 28px; padding: 0 10px; border: 1px solid rgba(216, 176, 74, .28); border-radius: 999px; background: rgba(216, 176, 74, .1); color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.business-service-grid .card h3 { font-size: 20px; line-height: 1.2; }
.business-service-grid .card p { font-size: 14.5px; }
.business-service-grid .card:first-child { border-color: rgba(216, 176, 74, .7); box-shadow: 0 20px 42px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .07); }

/* ---------- Homepage package builder ---------- */

.home-package-builder { margin: 58px 0 0; padding: 62px 0; background: linear-gradient(135deg, rgba(7, 43, 31, .98), rgba(12, 61, 44, .96)); border-top: 1px solid rgba(216, 176, 74, .34); border-bottom: 1px solid rgba(216, 176, 74, .25); }
.home-package-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding-bottom: 24px; }
.home-package-heading h2 { max-width: 700px; margin-top: 8px; color: var(--heading); font-size: clamp(29px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.025em; }
.home-package-heading p { max-width: 640px; margin-top: 10px; color: var(--soft); font-size: 16px; line-height: 1.6; }
.home-package-all { flex: 0 0 auto; color: var(--gold); font-weight: 800; font-size: 14px; }
.home-package-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.home-package-catalogue { display: grid; gap: 12px; }
.package-category { overflow: hidden; border: 1px solid var(--hairline); border-radius: 16px; background: rgba(6, 37, 27, .52); }
.package-category[open] { border-color: rgba(216, 176, 74, .48); box-shadow: 0 18px 38px rgba(0, 0, 0, .16); }
.package-category summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; padding: 16px 20px; cursor: pointer; list-style: none; }
.package-category summary::-webkit-details-marker { display: none; }
.package-category summary::after { content: '+'; color: var(--gold); font-size: 24px; font-weight: 500; line-height: 1; }
.package-category[open] summary::after { content: '−'; }
.package-category summary > span:first-child { display: grid; gap: 4px; }
.package-category summary strong { color: var(--heading); font-size: 17px; }
.package-category summary small { color: var(--muted); font-size: 13.5px; }
.package-category-count { padding: 6px 9px; border-radius: 999px; border: 1px solid rgba(216, 176, 74, .26); color: var(--gold); font-size: 11px; font-weight: 800; white-space: nowrap; }
.package-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-top: 1px solid var(--hairline); background: var(--hairline); }
.package-options label { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 100px; padding: 15px 18px; background: rgba(12, 53, 39, .95); cursor: pointer; transition: background .2s ease; }
.package-options label:hover { background: rgba(25, 79, 58, .95); }
.package-options label > span { display: grid; grid-template-columns: 18px 1fr; column-gap: 9px; }
.package-options input { grid-row: span 2; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--gold); }
.package-options strong { color: var(--heading); font-size: 14px; line-height: 1.35; }
.package-options small { grid-column: 2; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.42; }
.package-options b { flex: 0 0 auto; color: var(--gold); font-size: 14px; white-space: nowrap; }
.home-package-summary { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 14px; padding: 25px; border: 1px solid rgba(216, 176, 74, .55); border-radius: 18px; background: linear-gradient(160deg, rgba(25, 76, 55, .96), rgba(7, 43, 31, .98)); box-shadow: 0 24px 48px rgba(0, 0, 0, .25); }
.home-package-summary h3 { color: var(--heading); font-size: 24px; line-height: 1.16; }
.home-package-summary p { color: var(--soft); font-size: 14px; line-height: 1.55; }
.home-package-total { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); color: var(--soft); font-size: 14px; }
.home-package-total strong { color: var(--gold); font-family: var(--font-heading); font-size: 30px; }
.home-package-discount { min-height: 22px; color: var(--gold) !important; font-weight: 700; }
.home-package-summary .btn { justify-content: center; width: 100%; }
.home-package-error { min-height: 19px; color: #e6a39b; font-size: 13px; font-weight: 700; }
.home-package-summary small { color: var(--faint); font-size: 11.5px; line-height: 1.5; }

@media (max-width: 700px) {
  .hr-hero { padding-bottom: 38px; }
  .hr-hero .tool-intro { font-size: 16px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-heading p { text-align: left; }
  .hr-pack, .hr-question, .trade-card { min-height: 0; }
}

.breadcrumb { font-size: 13.5px; color: var(--faint); font-weight: 600; }
.breadcrumb a { color: var(--faint); }
.breadcrumb a:hover { color: var(--gold); }

.calc-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.25);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field label { font-size: 13px; font-weight: 700; color: var(--faint); }

.field input,
.field select {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  font-family: var(--font-body);
  width: 100%;
}
.field input:focus,
.field select:focus { outline: none; border-color: var(--gold); }
.field .hint { font-size: 12.5px; color: var(--faint); }

.field-check {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
}
.field-check input { width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }
.field-check label { font-size: 14.5px; font-weight: 600; color: var(--text); }

.calc-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.btn-calc {
  background: var(--gold);
  color: var(--bg);
  border: none;
  cursor: pointer;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  font-family: var(--font-body);
}
.btn-calc:hover { background: var(--gold-hover); }

.calc-error { font-size: 14.5px; color: #e8a19a; font-weight: 700; }

.results {
  display: none;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.results.show { display: flex; animation: fadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 15px;
}
.result-row .k { color: var(--soft); }
.result-row .v { font-weight: 800; color: var(--text); text-align: right; }

.result-divider { height: 1px; background: var(--hairline); margin: 4px 0; }

.result-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}
.result-total .k { font-size: 15px; color: var(--soft); }
.result-total .v {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  text-align: right;
}

.result-note { font-size: 13.5px; color: var(--faint); line-height: 1.55; }

.result-flag {
  font-size: 14.5px;
  line-height: 1.55;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
}
.result-flag.good { background: rgba(216, 176, 74, 0.1); border: 1px solid var(--gold); color: var(--gold); }
.result-flag.bad { background: rgba(180, 90, 80, 0.12); border: 1px solid #7a4a42; color: #e8a19a; }

.tool-section { padding-top: 44px; display: flex; flex-direction: column; gap: 16px; }
.tool-section h2 { font-size: 26px; font-weight: 800; }
.tool-section p { font-size: 15.5px; line-height: 1.7; color: var(--soft); max-width: 720px; }
.tool-section ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.tool-section li { font-size: 15.5px; line-height: 1.6; color: var(--soft); }

.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }

.faq-list details {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0 20px;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 800;
  font-size: 15.5px;
  color: var(--heading);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--gold); font-size: 20px; font-weight: 700; flex-shrink: 0; }
.faq-list details[open] summary::after { content: '\2013'; }
.faq-list details p { padding: 0 0 16px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }

.related-pack {
  margin-top: 44px;
  background: linear-gradient(120deg, rgba(216, 176, 74, 0.16), rgba(216, 176, 74, 0.05) 55%), var(--panel);
  border: 1px solid rgba(216, 176, 74, 0.55);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.related-pack:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 26px 52px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(216, 176, 74, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.related-pack .copy { display: flex; flex-direction: column; gap: 7px; }
.related-pack h3 { font-size: 20px; font-weight: 800; color: var(--gold); letter-spacing: 0.1px; }
.related-pack p { font-size: 15px; line-height: 1.55; color: var(--text); }
.related-pack .btn { flex-shrink: 0; white-space: nowrap; }

/* Two clear routes for business visitors, rather than a pair of long notices. */
.business-paths-section { margin-top: 0; }
.business-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 56px;
}
.business-path {
  min-height: 254px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  padding: 27px 30px;
  border: 1px solid rgba(216, 176, 74, 0.45);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  background: linear-gradient(130deg, rgba(216, 176, 74, 0.12), rgba(216, 176, 74, 0.035) 58%), var(--panel);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.business-path::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  right: -70px;
  bottom: -110px;
  border: 1px solid rgba(216, 176, 74, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(216, 176, 74, 0.025);
}
.business-path:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 26px 52px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(216, 176, 74, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.business-path > * { position: relative; z-index: 1; }
.business-path-head { display: flex; align-items: center; gap: 15px; }
.business-path .icon-3d { width: 58px; height: 58px; }
.business-path .journey-kicker { display: block; margin-bottom: 5px; color: var(--gold); }
.business-path h3 { max-width: 390px; color: var(--heading); font-size: 22px; line-height: 1.2; }
.business-path p { max-width: 490px; color: var(--soft); font-size: 15px; line-height: 1.58; }
.business-path .btn { margin-top: auto; }

.tool-disclaimer {
  margin-top: 32px;
  margin-bottom: 56px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--footer-text);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 18px;
}

@media (max-width: 700px) {
  .tool-hero h1 { font-size: 30px; }
  .calc-card { padding: 20px; }
  .tool-category-nav { margin: 26px 0 40px; }
  .tool-category-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .tool-category-head h2 { font-size: 27px; }
  .tool-category-grid .card { min-height: 0; }
  .tool-category-grid-four { grid-template-columns: 1fr; }
  .document-catalogue-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .document-order-layout { grid-template-columns: 1fr; }
  .document-order-summary { position: static; }
  .document-table th, .document-table td { padding: 14px 12px; }
  .related-pack { flex-direction: column; align-items: flex-start; }
  .business-paths { grid-template-columns: 1fr; }
  .result-total .v { font-size: 22px; }
}

/* ---------- Pack / service pages ---------- */

.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  align-self: flex-start;
}
.price-tag .amount {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  color: var(--gold);
}
.price-tag .qualifier { font-size: 14px; color: var(--faint); font-weight: 600; }

.included-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  max-width: 860px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.included-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
}
.included-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 6px;
}

.order-steps { counter-reset: step; display: flex; flex-direction: column; gap: 12px; max-width: 720px; padding: 0; margin: 0; list-style: none; }
.order-steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.6;
  color: var(--soft);
}
.order-steps li::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(216, 176, 74, 0.12);
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.quiz-list { display: flex; flex-direction: column; gap: 10px; }
.quiz-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 13px 16px;
}
.quiz-item .q { font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.5; }
.quiz-item .opts { display: flex; gap: 8px; flex-shrink: 0; }
.quiz-item .opts label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--soft);
  cursor: pointer;
}
.quiz-item .opts input { accent-color: var(--gold); width: 16px; height: 16px; }

.score-ring {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: var(--gold);
}

@media (max-width: 700px) {
  .quiz-item { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .wrap { padding-left: 40px; padding-right: 40px; }

  .nav-links { gap: 22px; }

  .footer .footer-grid {
    grid-template-columns: minmax(190px, 1.45fr) repeat(4, minmax(105px, 1fr));
    gap: 22px;
  }

  .hero { flex-direction: column; align-items: stretch; gap: 44px; padding-top: 44px; }
  .hero h1 { font-size: 44px; }
  .hero-preview { justify-content: flex-start; }

  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .closing { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
}

@media (max-width: 900px) {
  .wrap { padding-left: 20px; padding-right: 20px; }

  .cream-band { margin: 32px 0; box-shadow: 0 13px 0 #d8c89d, 0 30px 42px -27px rgba(0,0,0,.78), inset 0 1px 0 rgba(255,255,255,.88); }
  .cream-band::after { bottom: -13px; height: 16px; left: 0; right: 0; border-radius: 0; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    flex-direction: column;
    gap: 0;
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    padding: 8px;
    z-index: 40;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-links a:hover { background: rgba(216, 176, 74, 0.08); }

  .nav .btn-gold-sm { display: none; }

  .hero h1 { font-size: 34px; letter-spacing: -0.5px; }
  .hero-sub { font-size: 17px; }
  .hero-ctas .btn-gold,
  .hero-ctas .btn-outline { padding: 14px 24px; font-size: 15px; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .business-paths { grid-template-columns: 1fr; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-head h2 { font-size: 26px; }

  .closing h2 { font-size: 24px; }

  .footer .wrap { flex-direction: column; }

  .footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { grid-column: 1 / -1; flex-direction: column; gap: 8px; }
  .footer-bottom span:last-child { text-align: left; }

}

/* ---------- Interactive product experience ---------- */

@keyframes float-3d { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes orbit-glow { 0%, 100% { opacity: .45; transform: rotate(0deg) scale(.98); } 50% { opacity: .9; transform: rotate(180deg) scale(1.04); } }
@keyframes scan-line { from { transform: translateX(-130%); } to { transform: translateX(290%); } }
@keyframes signal-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.signal-ticker { overflow: hidden; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: rgba(7, 33, 25, .78); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.signal-track { width: max-content; display: flex; align-items: center; gap: 44px; padding: 12px 0; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; animation: signal-slide 28s linear infinite; }
.signal-ticker:hover .signal-track { animation-play-state: paused; }
.signal-track span { white-space: nowrap; }
.signal-track span::first-letter { color: var(--gold); }

.icon-3d {
  width: 58px;
  height: 58px;
  display: inline-block;
  flex: 0 0 auto;
  /* Modern browsers download the smaller WebP sprite; PNG remains as a fallback. */
  background-image: image-set(url('3d-icon-sprite.webp') type('image/webp'), url('3d-icon-sprite.png') type('image/png'));
  background-size: 400% 400%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,.26));
  animation: float-3d 4.2s ease-in-out infinite;
  transition: transform .28s cubic-bezier(.16,1,.3,1), filter .28s ease;
}
.card:hover .icon-3d, .pack-card:hover .icon-3d, .card-service:hover .icon-3d { transform: translateY(-5px) scale(1.12) rotate(-5deg); filter: drop-shadow(0 16px 14px rgba(0,0,0,.32)); }
.icon-uif { background-position: 0% 0%; }
.icon-disability { background-position: 33.333% 0%; }
.icon-retirement { background-position: 66.666% 0%; }
.icon-refund { background-position: 100% 0%; }
.icon-two-pot { background-position: 0% 33.333%; }
.icon-popia { background-position: 33.333% 33.333%; }
.icon-ecommerce { background-position: 100% 33.333%; }
.icon-employer { background-position: 0% 66.666%; }
.icon-escalations { background-position: 33.333% 66.666%; }
.icon-company { background-position: 66.666% 66.666%; }
.icon-import { background-position: 100% 66.666%; }
.icon-ownership { background-position: 0% 100%; }
.icon-annual { background-position: 33.333% 100%; }
.icon-coida { background-position: 66.666% 100%; }
.icon-tender { background-position: 100% 100%; }

.journey-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 38px 0 88px;
}
.journey-card {
  min-height: 238px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 30px;
  background: linear-gradient(135deg, #0e392a, #08261d);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s ease, box-shadow .3s ease;
}
.journey-card::before {
  content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  right: -82px; bottom: -100px; border: 1px solid rgba(216,176,74,.22); box-shadow: 0 0 0 28px rgba(216,176,74,.035), 0 0 0 56px rgba(216,176,74,.025); animation: orbit-glow 10s linear infinite;
}
.journey-card.business { background: linear-gradient(135deg, #173a36, #0b2c24); }
.journey-card.business::before { border-color: rgba(216,176,74,.3); box-shadow: 0 0 0 28px rgba(216,176,74,.04), 0 0 0 56px rgba(216,176,74,.025); }
.journey-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 24px 50px rgba(0,0,0,.25); }

/* Cursor-responsive light keeps the interactive surfaces tactile without adding noise. */
.card, .pack-card, .journey-card { --spot-x: 50%; --spot-y: 50%; }
.card::after, .pack-card::after, .journey-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(260px circle at var(--spot-x) var(--spot-y), rgba(216,176,74,.13), transparent 44%);
  transition: opacity .28s ease;
}
.card.surface-active::after, .pack-card.surface-active::after, .journey-card.surface-active::after { opacity: 1; }
.card > *, .pack-card > *, .journey-card > * { position: relative; z-index: 1; }
.journey-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.journey-card.business .journey-kicker { color: var(--gold); }
.journey-card h2 { font-size: 26px; max-width: 370px; }
.journey-card p { color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 400px; }
.journey-card .btn { align-self: flex-start; margin-top: auto; }

.process-band { background: #061f18; border-top: 1px solid #193e31; border-bottom: 1px solid #193e31; }
.process { padding: 68px 0; display: grid; grid-template-columns: .95fr 2fr; gap: 48px; align-items: start; }
.process h2 { font-size: 32px; }
.process p { color: var(--muted); margin-top: 10px; line-height: 1.65; }
.process-intro { display: flex; flex-direction: column; align-items: flex-start; }
.process-intro .btn { margin-top: 22px; }
.process-flow { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.process-step { position: relative; overflow: hidden; min-height: 165px; border: 1px solid #214a3a; border-radius: 16px; padding: 21px; background: linear-gradient(145deg, #103a2b, #0a2d22); }
.process-step::after { content: ''; position: absolute; top: 0; left: 0; width: 28%; height: 1px; background: var(--cyan); box-shadow: 0 0 15px var(--cyan); animation: scan-line 3.5s ease-in-out infinite; }
.step-num { color: var(--cyan); font-family: var(--font-heading); font-size: 13px; font-weight: 800; }
.process-step h3 { font-size: 17px; margin-top: 18px; }
.process-step p { font-size: 13px; margin-top: 8px; }

.client-portal-link { color: var(--cyan) !important; }
.client-portal-link::before { content: '◈'; font-size: 10px; margin-right: 6px; }

/* Checkout and portal */
.app-shell { max-width: 1120px; margin: 0 auto; padding: 42px 32px 84px; }
.app-hero { display: flex; justify-content: space-between; gap: 28px; padding: 24px 0 34px; align-items: end; }
.app-hero h1 { font-size: clamp(34px, 5vw, 56px); max-width: 660px; }
.app-hero p { color: var(--muted); max-width: 620px; margin-top: 12px; line-height: 1.65; }
.tech-pill { display: inline-flex; gap: 8px; align-items: center; color: var(--cyan); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.tech-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.checkout-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; align-items: start; }
.app-panel { background: linear-gradient(145deg, rgba(19,61,46,.95), rgba(8,38,29,.98)); border: 1px solid #24503e; border-radius: 20px; padding: 28px; box-shadow: 0 25px 65px rgba(0,0,0,.25); }
.app-panel h2 { font-size: 23px; }
.app-panel .field { margin-top: 16px; }
.order-summary { position: sticky; top: 100px; }
.summary-product { display: flex; gap: 16px; align-items: center; margin: 20px 0; }
.summary-product .icon-3d { width: 76px; height: 76px; }
.summary-product h3 { font-size: 19px; }
.summary-product p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.summary-price { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 16px 0; display: flex; justify-content: space-between; align-items: baseline; }
.summary-price strong { color: var(--gold); font-family: var(--font-heading); font-size: 30px; }
.summary-renewal { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 13px 0; border-bottom: 1px solid var(--hairline); color: var(--soft); font-size: 13px; }
.summary-renewal strong { color: var(--gold); font-size: 16px; }
.summary-renewal small { grid-column: 1 / -1; color: var(--faint); line-height: 1.45; }
.summary-order-breakdown { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.summary-order-breakdown ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.summary-order-breakdown li { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.summary-order-breakdown li::before { content: '•'; color: var(--gold); margin-right: 8px; }
.summary-order-breakdown p { margin-top: 10px; color: var(--gold); font-size: 12.5px; font-weight: 800; }
.checkout-next { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.checkout-next ol { margin: 8px 0 0; padding-left: 19px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.checkout-privacy-note { margin-top: 12px; padding: 10px 12px; border-left: 2px solid var(--gold); background: rgba(216, 176, 74, .07); color: var(--soft); font-size: 12.5px; line-height: 1.5; }
.checkout-resend { margin-top: 12px; padding: 0; border: 0; background: transparent; color: var(--gold); cursor: pointer; font-family: var(--font-body); font-size: 13px; font-weight: 800; }
.checkout-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 800px; margin: 0 0 26px; padding: 0; list-style: none; }
.checkout-steps li { display: grid; grid-template-columns: 30px 1fr; column-gap: 9px; padding: 12px; border: 1px solid var(--hairline); border-radius: 12px; color: var(--faint); }
.checkout-steps li.active { border-color: rgba(216, 176, 74, .62); background: rgba(216, 176, 74, .07); color: var(--heading); }
.checkout-steps span { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(216, 176, 74, .14); color: var(--gold); font-size: 12px; font-weight: 900; }
.checkout-steps strong { font-size: 13px; }
.checkout-steps small { margin-top: 3px; color: var(--faint); font-size: 11.5px; }
.secure-note { display: flex; gap: 10px; margin-top: 18px; color: var(--faint); font-size: 12.5px; line-height: 1.55; }
.secure-note::before { content: '⌁'; color: var(--cyan); font-size: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid .field.full { grid-column: 1 / -1; }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.checkout-consent { display:flex; gap:10px; align-items:flex-start; margin-top:18px; color:var(--muted); font-size:13px; line-height:1.55; cursor:pointer; }
.checkout-consent input { width:18px; height:18px; margin-top:2px; flex:none; accent-color:var(--gold); }
.checkout-consent a { color:var(--heading); text-decoration:underline; text-underline-offset:3px; }
.portal-help { margin-top:14px; color:var(--muted); font-size:14px; line-height:1.65; }
.portal-help p { margin:0 0 12px; }
.portal-help strong { color:var(--heading); }
.portal-help ul { margin:0; padding-left:20px; display:grid; gap:5px; }
.portal-help a { color:var(--gold); font-weight:800; }
.q-form { margin-top: 20px; padding: 26px; border: 1px solid rgba(216,176,74,.32); border-radius: 20px; background: linear-gradient(145deg, rgba(15,57,43,.96), rgba(7,38,28,.98)); box-shadow: 0 18px 42px rgba(0,0,0,.18); }
.q-form-heading { padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.q-form-kicker { display:block; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.q-form h3 { margin-top: 5px; font-size: 21px; color: var(--heading); }
.q-form-heading p { margin-top: 7px; max-width: 680px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.q-form-grid { gap: 18px; }
.q-field > label { color: var(--soft); }
.q-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 5px; }
.q-check-option { display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 11px !important; min-height: 50px; margin: 0 !important; padding: 11px 13px; border: 1px solid rgba(209,226,213,.14); border-radius: 12px; background: rgba(3,29,21,.38); color: var(--text) !important; font-size: 14px !important; font-weight: 600 !important; line-height: 1.35; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.q-check-option:hover { border-color: rgba(216,176,74,.55); background: rgba(216,176,74,.07); }
.q-check-option:has(input:checked) { border-color: var(--gold); background: rgba(216,176,74,.12); color: var(--heading) !important; }
.q-check-option input { appearance: none; width: 19px !important; height: 19px !important; margin: 0 !important; flex: 0 0 19px; border: 1px solid rgba(216,176,74,.65); border-radius: 5px; background: rgba(3,29,21,.75); cursor: pointer; }
.q-check-option input:checked { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 4px var(--bg); }
.q-form-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.q-status { color: var(--faint); font-size: 13px; }
@media (max-width: 700px) {
  .q-checks { grid-template-columns: 1fr; }
  .q-form { padding: 20px; }
}
.order-authority { margin-top:5px; color:var(--gold); font-size:12px !important; font-weight:700; }
.form-status { display: none; margin-top: 18px; color: var(--cyan); background: rgba(216,176,74,.08); border: 1px solid rgba(216,176,74,.3); border-radius: 12px; padding: 14px; line-height: 1.55; font-size: 14px; }
.form-status.show { display: block; }

/* Contextual tool upsell: it appears only after a visitor has generated a result. */
.tool-next-step {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(216,176,74,.5);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(216,176,74,.16), rgba(13,52,39,.96));
  box-shadow: 0 18px 35px rgba(0,0,0,.16);
}
.tool-next-step-kicker { display: block; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.tool-next-step h2 { font-size: 21px; margin-top: 8px; }
.tool-next-step p { color: var(--soft); font-size: 14px; line-height: 1.55; margin-top: 7px; max-width: 560px; }
.tool-next-step .btn { display: inline-flex; margin-top: 16px; }

.portal-grid { display: grid; grid-template-columns: 230px 1fr; gap: 20px; }
.portal-sidebar { padding: 18px; }
.portal-sidebar a { display: flex; gap: 10px; padding: 12px; border-radius: 10px; color: var(--soft); font-size: 14px; font-weight: 700; }
.portal-sidebar a.active, .portal-sidebar a:hover { background: rgba(216,176,74,.09); color: var(--cyan); }
.portal-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.metric { padding: 18px; border: 1px solid var(--hairline); border-radius: 14px; background: rgba(6,31,24,.55); }
.metric span { display: block; color: var(--faint); font-size: 12px; font-weight: 700; }
.metric strong { display: block; color: var(--heading); font-family: var(--font-heading); font-size: 26px; margin-top: 5px; }
.document-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.document-row:last-child { border-bottom: 0; }
.document-row h3 { font-size: 15px; }
.document-row p { color: var(--faint); font-size: 12px; margin-top: 4px; }
.download-btn { border: 1px solid rgba(216,176,74,.4); color: var(--cyan); border-radius: 999px; padding: 9px 13px; font-size: 12px; font-weight: 800; }

@media (max-width: 900px) {
  .journey-switch, .checkout-layout, .portal-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 25px; }
  .app-shell { padding: 24px 20px 72px; }
  .app-hero { display: block; }
  .app-hero .tech-pill { margin-bottom: 14px; }
  .order-summary { position: static; }
  .order-summary { order: -1; }
  .portal-overview, .process-steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* ---------- Portal: auth + live dashboard ---------- */

.auth-wrap { max-width: 520px; margin: 0 auto; }
.auth-panel h1 { font-size: 30px; margin-top: 10px; }

.order-row {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--hairline); padding: 18px 0; margin-top: 14px;
}
.order-row:first-of-type { border-top: none; }
.order-main h3 { font-size: 17px; }
.order-main p { color: var(--faint); font-size: 13px; margin-top: 4px; }
.order-state { text-align: right; min-width: 220px; }
.order-hint { color: var(--muted); font-size: 12.5px; margin-top: 8px; line-height: 1.5; }

.status-chip {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--hairline); color: var(--soft);
}
.status-chip.s-received { color: var(--soft); }
.status-chip.s-in_progress { color: var(--gold); border-color: rgba(216,176,74,.45); background: rgba(216,176,74,.08); }
.status-chip.s-awaiting_info { color: #e8a19a; border-color: rgba(232,161,154,.4); background: rgba(180,90,80,.1); }
.status-chip.s-ready, .status-chip.s-delivered { color: #9fd8a8; border-color: rgba(120,200,140,.35); background: rgba(80,160,100,.12); }

.order-progress { display: flex; gap: 5px; justify-content: flex-end; margin-top: 9px; }
.progress-step { width: 34px; height: 4px; border-radius: 999px; background: var(--hairline); }
.progress-step.done { background: var(--gold); }

.download-btn.ready { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.download-btn.ready:hover { background: var(--gold-hover); color: var(--bg); }

@media (max-width: 700px) {
  .order-state { text-align: left; min-width: 0; }
  .order-progress { justify-content: flex-start; }
}

/* Opt-in email capture under calculator results */
.lead-capture { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.lead-capture-copy { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 10px; }
.lead-capture-row { display: flex; gap: 10px; flex-wrap: wrap; }
.lead-capture-row input {
  flex: 1 1 220px; min-width: 0; padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--outline); background: rgba(10, 42, 32, 0.55);
  color: var(--text); font-family: var(--font-body); font-size: 14.5px;
}
.lead-capture-row input:focus { outline: none; border-color: var(--gold); }
.lead-capture-status { font-size: 13px; color: var(--gold); margin-top: 8px; min-height: 17px; }

/* ---------- Boet, the site guide ---------- */
.boet-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 95;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--gold); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(216, 176, 74, 0.4);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, opacity 0.2s ease;
}
.boet-fab:hover { transform: translateY(-3px) scale(1.04); background: var(--gold-hover); }
.boet-fab.hidden { opacity: 0; pointer-events: none; }

.boet-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 96;
  width: min(370px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 48px));
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid rgba(216, 176, 74, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0; transform: translateY(16px) scale(0.98); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.boet-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.boet-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 18px 13px;
  background: linear-gradient(120deg, rgba(216, 176, 74, 0.16), rgba(216, 176, 74, 0.04) 60%);
  border-bottom: 1px solid var(--hairline);
}
.boet-name { font-family: var(--font-heading); font-weight: 800; font-size: 22px; color: var(--heading); display: block; }
.boet-e { color: var(--heading); position: relative; display: inline-block; }
.boet-e::after {
  content: '';
  position: absolute;
  left: -12%; right: -12%; top: 52%;
  height: 2.5px;
  background: #e04b3a;
  border-radius: 2px;
  transform: rotate(-24deg);
  pointer-events: none;
}
.boet-sub { font-size: 12px; color: var(--faint); display: block; margin-top: 2px; }
.boet-close {
  background: none; border: none; color: var(--muted); font-size: 26px; line-height: 1;
  cursor: pointer; padding: 0 4px; font-family: var(--font-body);
}
.boet-close:hover { color: var(--gold); }

.boet-log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.boet-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.boet-msg.boet { background: rgba(216, 176, 74, 0.1); border: 1px solid rgba(216, 176, 74, 0.25); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.boet-msg.me { background: var(--gold); color: var(--bg); font-weight: 600; align-self: flex-end; border-bottom-right-radius: 4px; }
.boet-msg a { font-weight: 700; }

.boet-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 10px; }
.boet-chip {
  border: 1px solid var(--outline); background: transparent; color: var(--soft);
  border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 700;
  cursor: pointer; font-family: var(--font-body);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.boet-chip:hover { border-color: var(--gold); color: var(--gold); }

.boet-input { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--hairline); }
.boet-input input {
  flex: 1; min-width: 0; padding: 11px 15px; border-radius: 999px;
  border: 1px solid var(--outline); background: rgba(10, 42, 32, 0.6);
  color: var(--text); font-family: var(--font-body); font-size: 14px;
}
.boet-input input:focus { outline: none; border-color: var(--gold); }

/* Boet reply links: underlined inline + repeated as tappable buttons */
.boet-msg.boet a { text-decoration: underline; text-underline-offset: 2px; }
.boet-links { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 92%; }
.boet-linkchip {
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gold);
  transition: background 0.2s ease, color 0.2s ease;
}
.boet-linkchip:hover { background: var(--gold); color: var(--bg); }

/* Mobile: slimmer sticky header and comfortable tap targets */
@media (max-width: 900px) {
  .nav { padding-top: 12px; padding-bottom: 12px; }
  .need-chips a { padding: 12px 18px; }
  .boet-chip { padding: 10px 14px; }
}

/* Keyboard focus: a clear gold ring on everything interactive */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.cream-band a:focus-visible, .cream-band button:focus-visible {
  outline-color: var(--cream-gold);
}

/* Client portal: gold button on desktop, menu entry on mobile - never both. */
.nav-links .client-portal-link { color: var(--gold); font-weight: 800; }
@media (min-width: 901px) { .nav-links .client-portal-link { display: none; } }

/* Mobile refinements for the HR, trade and free-tool hubs. */
@media (max-width: 900px) {
  .tool-hero { padding-top: 30px; padding-bottom: 34px; }
  .tool-category { margin-bottom: 42px; }
  .tool-category-head { align-items: flex-start; flex-direction: column; gap: 12px; padding-bottom: 16px; margin-bottom: 16px; }
  .tool-category-head h2 { font-size: 27px; line-height: 1.15; }
  .tool-category-count { align-self: flex-start; }
  .tool-category-grid { gap: 14px; }
  .tool-category-grid .card, .tool-category-grid-four .card { min-height: 0; padding: 22px; }
  .tool-category-grid .card::before { min-height: 30px; }
  .tool-category-grid .icon-3d { margin-top: 2px; }
  .hr-pack, .trade-card { padding: 22px; }
  .hr-question { min-height: 0; padding: 22px; }
  .business-service-grid .card { min-height: 0; padding: 22px; }
  .home-package-builder { margin-top: 42px; padding: 44px 0; }
  .home-package-heading { align-items: flex-start; flex-direction: column; gap: 14px; padding-bottom: 20px; }
  .home-package-layout { grid-template-columns: 1fr; }
  .home-package-summary { position: static; }
}

@media (max-width: 520px) {
  .hr-hero h1 { font-size: 32px; line-height: 1.1; }
  .hr-hero .tool-intro { font-size: 16px; }
  .section-heading h2 { font-size: 25px; line-height: 1.15; }
  .hr-pack h3, .trade-card h3 { font-size: 19px; }
  .hr-pack p, .trade-card p { font-size: 14.5px; }
  .hr-includes, .trade-includes { font-size: 12.5px; }
  .tool-category-nav { gap: 8px; margin: 24px 0 34px; }
  .tool-category-nav a { width: 100%; justify-content: space-between; padding: 12px 14px; }
  .home-package-heading h2 { font-size: 29px; }
  .package-category summary { min-height: 72px; padding: 14px 16px; }
  .package-category summary small { font-size: 12.5px; }
  .package-options { grid-template-columns: 1fr; }
  .package-options label { min-height: 88px; padding: 14px 16px; }
  .home-package-summary { padding: 22px; }
  .checkout-steps { grid-template-columns: 1fr; gap: 8px; }
  .checkout-steps li { grid-template-columns: 28px 1fr; }
}

/* Checkout: exact deliverables list in the order summary */
.summary-includes { margin-top: 14px; border-top: 1px solid var(--hairline); padding-top: 12px; }
.summary-includes-label { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.summary-includes ul { list-style: none; margin: 0; padding: 0; }
.summary-includes li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.55; color: var(--muted); margin-top: 5px; }
.summary-includes li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
