/* ==========================================================================
   Assure 4 microsite — assure4.square4.com
   Square 4 brand guidelines 2026. Built by PS Website Design.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy: #202f5a;
  --royal: #303e80;
  --baby: #6292c3;
  --pastel: #87acd1;
  --orange: #f14e0c;
  --muted-orange: #dd8712;
  --aubergine: #5b2b5f;
  --text: #545454;
  --mid: #737373;
  --rule: #d9d9d9;
  --grey: #c9c9c9;
  --pale: #e9eef6;
  --pale-rule: #c7d1e3;
  --on-dark: #e3e9f6;
  --on-dark-soft: #aebbdc;
  --courtcorrect: #25c28a;

  --grad-cta: linear-gradient(90deg, var(--orange) 0%, var(--muted-orange) 50%, var(--orange) 100%);
  --grad-bar: linear-gradient(90deg, var(--orange), var(--muted-orange));

  --font: "Poppins", Arial, sans-serif;
  --container: 1200px;
  --gutter: 32px;
  --header-h: 84px;
  --section-y: 120px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --shadow-lg: 0 30px 60px rgba(32, 47, 90, .14);
  --shadow-dark: 0 34px 70px rgba(10, 16, 48, .42);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: var(--royal); text-underline-offset: 4px; transition: color .2s; }
a:hover { color: var(--orange); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--baby); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--royal); color: #fff; padding: 12px 18px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 16px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.section { position: relative; padding: var(--section-y) 0; overflow: hidden; }
.section--royal { background: var(--royal); color: #fff; }
.section--navy { background: var(--navy); color: #fff; }
.section--pale { background: var(--pale); }
.section--flush-top { padding-top: 0; }

/* ---------- Type ---------- */
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--pastel); }
.eyebrow--royal { color: var(--royal); font-weight: 600; }
.eyebrow .sep { margin: 0 8px; color: var(--baby); }
.display { font-weight: 300; text-transform: uppercase; line-height: 1.1; letter-spacing: .005em; color: var(--royal); }
.display--xl { font-size: clamp(40px, 5vw, 62px); line-height: 1.06; }
.display--lg { font-size: clamp(32px, 3.6vw, 46px); }
.display--md { font-size: clamp(26px, 2.6vw, 34px); }
.on-dark .display, .display.on-dark { color: #fff; }
.lead { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.75; max-width: 42em; }
.on-dark { color: var(--on-dark); }
.label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--royal); display: flex; align-items: center; gap: 12px; }
.label::before { content: ""; width: 12px; height: 12px; background: currentColor; flex: none; }
.on-dark .label { color: #fff; }
.on-dark .label::before { background: var(--baby); }
.stack > * + * { margin-top: 22px; }
.mt-s { margin-top: 18px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; } .mt-xl { margin-top: 88px; }
.fine { font-size: 12px; line-height: 1.55; color: var(--mid); }
.on-dark .fine { color: var(--on-dark-soft); }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 15px 28px; font: 600 14px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer; transition: background-position .5s var(--ease-out), background-color .25s, color .25s, box-shadow .25s, transform .25s var(--ease-out); }
.btn svg { flex: none; }
.btn--primary { background: var(--grad-cta); background-size: 200% 100%; background-position: 0 0; color: #fff; }
.btn--primary:hover { background-position: 100% 0; color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(241, 78, 12, .28); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn--ghost:hover { background: #fff; color: var(--royal); }
.btn--white { background: #fff; color: var(--royal); }
.btn--white:hover { background: var(--grad-bar); color: #fff; }
.btn:active { transform: translateY(0); }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; }
.link-arrow .arr { display: inline-block; transition: transform .3s var(--ease-out); }
.link-arrow:hover .arr { transform: translateX(6px); }
.on-dark a:not(.btn) { color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 #e3e7f0; transition: box-shadow .3s, background .3s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(32, 47, 90, .08); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .35s var(--ease-out); }
.site-header.is-scrolled .site-header__bar { height: 68px; }
.site-header__logo img { height: 53px; width: auto; transition: height .35s var(--ease-out); }
.site-header.is-scrolled .site-header__logo img { height: 43px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { position: relative; color: var(--royal); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--baby); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { font-weight: 700; }
.site-header__actions { display: flex; align-items: center; gap: 22px; }
.site-header__back { font-size: 13px; color: var(--mid); text-decoration: none; }
.menu-toggle { display: none; width: 52px; height: 52px; align-items: center; justify-content: center; background: var(--royal); border: 0; cursor: pointer; }
.menu-toggle span { position: relative; display: block; width: 22px; height: 2px; background: #fff; transition: background .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: #fff; transition: transform .3s var(--ease-out); }
.menu-toggle span::before { top: -7px; } .menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); background: #fff; }
.mobile-nav > div { overflow: hidden; }
.mobile-nav.is-open { grid-template-rows: 1fr; box-shadow: 0 1px 0 #e3e7f0 inset; }
.mobile-nav nav { display: flex; flex-direction: column; padding: 8px var(--gutter) 24px; }
.mobile-nav a { padding: 14px 0; color: var(--royal); text-decoration: none; font-weight: 500; border-bottom: 1px solid #eef1f6; }

/* ---------- Animated square fields (intelligraphic) ---------- */
.sq-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sq { position: absolute; width: var(--s); height: var(--s); left: var(--x); top: var(--y); background: var(--c); opacity: 0; transform: translate3d(0, 0, 0); will-change: transform, opacity; }
.sq-field.is-live .sq { animation: sq-in 1.4s var(--ease-out) var(--d) forwards; }
.sq::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; }
.sq-field.is-live .sq::after { animation: sq-flash var(--ft, 4.8s) linear var(--fdel, 3s) infinite; }
.sq__inner { position: absolute; inset: 0; background: inherit; }
@keyframes sq-in { from { opacity: 0; transform: translate3d(0, 40px, 0) scale(.6); } to { opacity: var(--o); transform: translate3d(0, 0, 0) scale(1); } }
@keyframes sq-flash { 0% { opacity: 0; } 2.5% { opacity: .75; } 16% { opacity: 0; } 100% { opacity: 0; } }
.sq-field__layer { position: absolute; inset: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--royal); color: #fff; padding: 150px 0 140px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.hero__copy > * + * { margin-top: 26px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 72px; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--royal); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 11px 18px; }
.trust svg { flex: none; }

/* product dashboard stand-in for the hero loop */
.dash, .on-dark a.dash { position: relative; display: block; color: var(--text); text-decoration: none; }
.dash__frame { background: #fff; box-shadow: var(--shadow-dark); transition: transform .6s var(--ease-out); }
.dash:hover .dash__frame { transform: translateY(-6px); }
.dash__bar { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 18px; background: var(--navy); color: var(--on-dark-soft); font-size: 12px; }
.dash__bar img { height: 22px; width: auto; }
.dash__body { padding: 22px; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dash__kpi { background: #f3f5fa; padding: 12px; }
.dash__kpi p:first-child { font-size: 10.5px; color: var(--mid); }
.dash__kpi p:last-child { font-size: 22px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.dash__kpi--flag { background: #fff2ec; }
.dash__kpi--flag p:first-child { color: #8a2b06; } .dash__kpi--flag p:last-child { color: var(--orange); }
.dash__title { margin: 18px 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--royal); }
.dash__rows { display: grid; gap: 9px; font-size: 11px; }
.dash__row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; align-items: center; }
.dash__track { display: flex; gap: 2px; height: 10px; }
.dash__track i { display: block; height: 100%; width: 0; transition: width 1.4s var(--ease-out); }
.dash__track i:nth-child(1) { background: var(--royal); } .dash__track i:nth-child(2) { background: var(--pastel); } .dash__track i:nth-child(3) { background: var(--orange); }
.dash.is-in .dash__track i { width: var(--w); }
.dash__play { position: absolute; left: -26px; bottom: -26px; width: 56px; height: 56px; background: #fff; box-shadow: 0 10px 24px rgba(10, 16, 48, .35); display: flex; align-items: center; justify-content: center; transition: transform .4s var(--ease-out); }
.dash:hover .dash__play { transform: scale(1.08); }

/* ---------- Page header (inner pages) ---------- */
.page-head { position: relative; overflow: hidden; background: var(--royal); color: #fff; padding: 64px 0 104px; }
.page-head .container > * + * { margin-top: 22px; }
.crumb { font-size: 13px; color: var(--on-dark-soft); margin-bottom: 28px; }
.crumb a { color: #fff; text-decoration: none; }
.crumb .sep { margin: 0 10px; color: var(--baby); }
.page-head .display { max-width: 14em; }

/* ---------- Comparison (the shift) ---------- */
.compare { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; margin-top: 56px; }
.compare__old { background: #f2f2f2; padding: 44px 44px 44px 40px; color: #666; }
.compare__new { position: relative; background: var(--royal); color: #eef2fb; padding: 44px 48px; margin: -24px 0; box-shadow: 0 24px 50px rgba(32, 47, 90, .25); }
.compare h3 { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.compare__old h3 { color: var(--mid); }
.compare__new h3 { color: #fff; }
.compare__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.compare__head img { height: 34px; width: auto; }
.sq-list { list-style: none; padding: 0; margin-top: 26px; display: grid; gap: 18px; }
.sq-list li { display: flex; gap: 16px; }
.sq-list li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 9px; background: var(--orange); }
.compare__old .sq-list li::before { background: #b3b3b3; width: 9px; height: 9px; }
.compare__new .sq-list { font-size: 16.5px; }
.compare__new .sq-list li::before { background: var(--baby); }

.stat-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 88px; }
.stat-tile { aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; background: var(--navy); color: #dfe6f5; text-decoration: none; transition: transform .5s var(--ease-out), background .3s; }
.stat-tile:hover { transform: translateY(-6px); color: #dfe6f5; }
.stat-tile:first-child { background: var(--baby); color: #fff; }
.stat-tile__num { font-size: clamp(36px, 3.8vw, 52px); font-weight: 300; line-height: 1; color: #fff; }
.stat-tile__num--words { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
.stat-tile__label { font-size: 14px; line-height: 1.45; }

/* ---------- Volume + equation ---------- */
.volume { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: end; }
.volume__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.volume__stat { border-top: 4px solid var(--baby); padding: 22px 24px 0 0; }
.volume__stat + .volume__stat { padding: 22px 0 0 24px; border-top-color: var(--pastel); }
.volume__num { font-size: 48px; font-weight: 300; line-height: 1; color: #fff; }
.volume__stat p:last-child { font-size: 14px; line-height: 1.55; color: #c9d3ea; margin-top: 12px; }

.equation { display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr; align-items: center; gap: 12px; margin-top: 44px; padding-bottom: 120px; }
.eq-item { aspect-ratio: 1; max-width: 230px; width: 100%; justify-self: center; background: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; box-shadow: inset 0 -6px 0 var(--baby); }
.eq-item span { font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--royal); }
.eq-plus { width: 48px; height: 48px; justify-self: center; background: var(--baby); display: flex; align-items: center; justify-content: center; }
.strip { position: relative; height: 190px; background: var(--royal); }
.strip__white { position: absolute; inset: 0; background: #fff; clip-path: polygon(150px 0, 100% 0, 100% 100%, 0 100%, 0 150px); }
.strip__blocks { position: relative; height: 150px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 28px; }
.strip__blocks i { display: block; transform-origin: top; transform: scaleY(0); transition: transform 1s var(--ease-out); }
.strip.is-in .strip__blocks i { transform: scaleY(1); }
.strip__blocks i:nth-child(2) { clip-path: polygon(0 0, 100% 0, 100% 100%); }
.strip__eq { position: absolute; left: 0; right: 0; top: 0; transform: translateY(-50%); display: flex; justify-content: center; }
.strip__eq > div { display: flex; align-items: center; width: 100%; max-width: 900px; }
.strip__sign { flex: none; width: 84px; height: 84px; background: var(--orange); border-right: 6px solid #fff; display: flex; align-items: center; justify-content: center; }
.strip__bar { flex: 1; background: var(--grad-bar); color: #fff; font-size: clamp(18px, 2vw, 26px); font-weight: 700; padding: 22px 40px; clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease-in-out) .3s; }
.strip.is-in .strip__bar { clip-path: inset(0 0 0 0); }

/* ---------- Numbered steps ---------- */
.num-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 56px; padding: 0; list-style: none; }
.num-steps li > * + * { margin-top: 16px; }
.num-steps__head { display: flex; align-items: center; gap: 10px; }
.num-sq { width: 96px; height: 96px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 56px; font-weight: 300; }
.num-arrow { width: 30px; height: 30px; background: var(--grey); display: flex; align-items: center; justify-content: center; }
.num-steps h3 { font-size: 17px; font-weight: 700; color: var(--royal); line-height: 1.3; }
.num-steps p { font-size: 14px; line-height: 1.6; }
.c-navy { background: var(--navy); } .c-royal { background: var(--royal); } .c-baby { background: var(--baby); } .c-pastel { background: var(--pastel); } .c-aub { background: var(--aubergine); } .c-orange { background: var(--orange); } .c-grey { background: var(--grey); } .c-cc { background: var(--courtcorrect); }
.split-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.rule-row { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }

/* ---------- Calculator teaser ---------- */
.teaser-calc { text-align: center; }
.teaser-calc .lead { margin: 18px auto 0; max-width: 40em; }
.teaser-calc__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 64px; text-align: left; }
.teaser-calc__figs { text-align: right; display: grid; gap: 30px; }
.big-num { font-size: clamp(48px, 5vw, 68px); font-weight: 300; line-height: 1; color: #fff; }
.mid-num { font-size: clamp(34px, 3.4vw, 44px); font-weight: 300; line-height: 1; color: var(--pastel); }
.num-cap { font-size: 14px; color: var(--on-dark-soft); margin-top: 10px; }
.coverage { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.coverage i { display: block; aspect-ratio: 1; background: rgba(255, 255, 255, .1); transition: background .4s, transform .5s var(--ease-out); }
.coverage i.is-today { background: var(--baby); }
.coverage i.is-added { background: #fff; }
.coverage i.pop { transform: scale(.4); }
.coverage-key { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 12.5px; color: #c9d3ea; }
.coverage-key span { display: flex; align-items: center; gap: 8px; }
.coverage-key i { width: 12px; height: 12px; display: block; }
.before-after { display: grid; gap: 18px; font-size: 14px; }
.before-after > div { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 14px; }
.before-after p:first-child { color: var(--on-dark-soft); }
.before-after p:last-child { font-size: 22px; color: #fff; margin-top: 4px; }
.before-after .to { color: #5c6b99; margin: 0 4px; }
.teaser-calc__cta { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 60px; }
.teaser-calc__cta .fine { max-width: 62em; color: #8d9bc4; }

/* ---------- Pale fields with large squares ---------- */
.ghost-sq { position: absolute; width: 300px; height: 300px; pointer-events: none; transition: transform 1.2s var(--ease-out); }

/* ---------- Proof ---------- */
.proof-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.quote-card { position: relative; background: #fff; padding: 64px 56px 48px; box-shadow: var(--shadow-lg); }
.quote-card__mark { position: absolute; left: -1px; top: -36px; width: 72px; height: 72px; background: var(--royal); color: #fff; font-size: 64px; font-weight: 600; line-height: 1; display: flex; align-items: flex-end; justify-content: center; }
.quote-card blockquote { font-size: clamp(20px, 2vw, 27px); line-height: 1.5; font-weight: 300; color: var(--navy); }
.quote-card figcaption, .cite { margin-top: 24px; font-size: 15px; }
.cite strong { color: var(--royal); }
.results-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 72px; padding: 0; list-style: none; }
.results-row li { display: grid; gap: 12px; align-content: start; padding: 0 26px; border-left: 1px solid var(--pale-rule); }
.results-row li:first-child { padding-left: 0; border-left: 0; }
.results-row li:last-child { padding-right: 0; }
.results-row i { width: 14px; height: 14px; display: block; }
.results-row .n { font-size: 42px; font-weight: 300; line-height: 1; color: var(--royal); }
.results-row .n--words { font-size: 30px; line-height: 1.15; }
.results-row .t { font-size: 14px; line-height: 1.5; }

/* ---------- Lists, closing, about, footer ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.link-list { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.link-list li { border-bottom: 1px solid var(--rule); }
.link-list a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 600; text-decoration: none; }
.link-list a span:first-child { display: flex; align-items: center; gap: 18px; }
.link-list a span:first-child::before { content: ""; width: 10px; height: 10px; background: var(--baby); transition: transform .4s var(--ease-out), background .3s; }
.link-list a:hover span:first-child::before { transform: rotate(45deg); background: var(--royal); }
.link-list a .arr { transition: transform .3s var(--ease-out); }
.link-list a:hover .arr { transform: translateX(6px); }

.closing { position: relative; overflow: hidden; background: var(--royal); color: #fff; padding: 110px 0; }
.closing .display { max-width: 15em; }
.closing__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.about__logos { display: grid; gap: 28px; justify-items: start; }
.awards { font-size: 14px; font-weight: 600; color: var(--royal); }
.awards .sep { color: var(--baby); margin: 0 6px; }

.site-footer { background: var(--royal); color: #c9d3ea; padding: 80px 0 36px; font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3fr); gap: 48px; }
.site-footer h2 { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--pastel); margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--pastel); }
.site-footer__links { display: grid; gap: 10px; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 12.5px; color: var(--on-dark-soft); }
.site-footer__legal nav { display: flex; flex-wrap: wrap; gap: 22px; }
.social { width: 40px; height: 40px; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; transition: background .3s; }
.social:hover { background: var(--baby); }

/* ---------- Inner page components ---------- */
.step-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.step-tile { text-align: left; cursor: pointer; border: 0; padding: 22px; background: var(--pale); display: flex; flex-direction: column; gap: 14px; min-height: 240px; transition: background .3s, box-shadow .4s, transform .4s var(--ease-out); }
.step-tile:hover { transform: translateY(-4px); }
.step-tile[aria-selected="true"] { background: #fff; box-shadow: 0 20px 40px rgba(32, 47, 90, .18), inset 0 -5px 0 var(--royal); }
.step-tile .num-sq { width: 72px; height: 72px; font-size: 42px; }
.step-tile strong { font-size: 16.5px; font-weight: 700; color: var(--royal); line-height: 1.35; }
.step-tile span:last-child { font-size: 13.5px; line-height: 1.55; color: var(--text); }
.step-panel { margin-top: 12px; background: var(--navy); color: #fff; padding: 36px 40px; display: flex; gap: 32px; align-items: flex-start; }
.step-panel .num-sq { width: 88px; height: 88px; font-size: 52px; background: var(--baby); }
.step-panel h3 { font-size: 22px; font-weight: 600; }
.step-panel p { font-size: 16.5px; line-height: 1.75; margin-top: 10px; color: #dfe6f5; max-width: 50em; }
.step-panel[hidden] { display: none; }
.fade-swap { animation: fade-swap .5s var(--ease-out); }
@keyframes fade-swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff; position: relative; }
.toggle button { position: relative; z-index: 1; min-height: 52px; font: 600 13px var(--font); letter-spacing: .08em; text-transform: uppercase; border: 0; cursor: pointer; background: transparent; color: var(--royal); transition: color .35s; }
.toggle button[aria-pressed="true"] { color: #fff; }
.toggle__thumb { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background: var(--royal); transition: transform .45s var(--ease-out); }
.toggle[data-active="1"] .toggle__thumb { transform: translateX(100%); }

.journeys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.journey { background: #fff; padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .4s var(--ease-out), box-shadow .4s; }
.journey:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.journey i { width: 12px; height: 12px; display: block; }
.journey strong { font-size: 16px; color: var(--royal); }
.journey span { font-size: 13.5px; line-height: 1.55; color: var(--text); }
.wealth { background: var(--aubergine); color: #f1e8f2; padding: 30px 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.wealth__chip { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: #fff; color: var(--aubergine); padding: 8px 12px; }

.table-wrap { overflow-x: auto; margin-top: 44px; }
.model-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.model-table thead th { text-align: left; padding: 22px 26px; color: #fff; font-weight: 300; font-size: 22px; text-transform: uppercase; }
.model-table thead th:nth-child(2) { background: var(--navy); border-right: 4px solid #fff; }
.model-table thead th:nth-child(3) { background: var(--royal); }
.model-table thead th span { display: flex; align-items: center; gap: 14px; }
.model-table tbody tr { border-bottom: 1px solid var(--rule); }
.model-table tbody th { text-align: left; padding: 18px 26px 18px 0; font-weight: 700; color: var(--royal); }
.model-table td { padding: 18px 26px; }
.model-table tr.is-cta { border-bottom: 0; }
.model-table tr.is-cta td { padding-top: 28px; }
.incl { display: inline-flex; align-items: center; gap: 10px; }
.incl::before { content: ""; width: 9px; height: 9px; background: var(--royal); }

.player { position: relative; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.player video, .player iframe, .player__poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__poster { object-fit: cover; }
.video-modal { width: min(1200px, 92vw); max-width: none; padding: 0; border: 0; background: #000; overflow: visible; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.video-modal::backdrop { background: rgba(20, 28, 56, .88); }
.video-modal__frame { aspect-ratio: 16 / 9; }
.video-modal__frame video { display: block; width: 100%; height: 100%; }
.video-modal__close { position: absolute; right: 0; top: -52px; width: 44px; height: 44px; border: 0; background: #fff; color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.player__play { position: relative; z-index: 2; width: 96px; height: 96px; border: 0; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); transition: transform .4s var(--ease-out); }
.player__play:hover { transform: scale(1.08); }
.player__logo { position: absolute; left: 36px; bottom: 30px; height: 44px; width: auto; z-index: 2; }
.player__tags { position: absolute; right: 28px; top: 24px; z-index: 2; display: flex; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.player__tags span { background: rgba(255, 255, 255, .12); color: #fff; padding: 6px 10px; }
.chapters { display: grid; gap: 10px; }
.chapter { text-align: left; cursor: pointer; border: 0; padding: 22px; background: var(--pale); color: var(--royal); display: flex; gap: 18px; align-items: flex-start; transition: background .3s, color .3s; }
.chapter .num-sq { width: 52px; height: 52px; font-size: 28px; background: var(--royal); transition: background .3s; }
.chapter strong { display: block; font-size: 17px; }
.chapter small { display: block; font-size: 13.5px; line-height: 1.55; color: var(--text); margin-top: 6px; transition: color .3s; }
.chapter[aria-selected="true"] { background: var(--royal); color: #fff; }
.chapter[aria-selected="true"] .num-sq { background: var(--baby); }
.chapter[aria-selected="true"] small { color: #dfe6f5; }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); box-shadow: var(--shadow-lg); }
.calc__in { background: var(--pale); padding: 40px; display: grid; gap: 26px; align-content: start; }
.calc__out { position: relative; overflow: hidden; background: var(--navy); color: #e8ecf6; padding: 40px 44px; transition: opacity .3s; }
.calc__out.is-invalid :is(.calc__head, .calc__grid, .pull, .gate) { visibility: hidden; }
.alert span { display: block; }
.alert span + span { margin-top: 6px; }
.fld-prefix { position: relative; display: block; }
.fld-prefix::before { content: attr(data-prefix); position: absolute; left: 14px; top: calc(50% + 3px); transform: translateY(-50%); font-size: 15px; color: var(--navy); pointer-events: none; }
.fld-prefix .fld { padding-left: 27px; }
.breakdown__note { display: block; font-size: 12px; font-weight: 400; color: var(--mid); }
.calc label, .calc .field-label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--royal); }
.calc output { font-size: 17px; }
.help { font-size: 12.5px; line-height: 1.5; color: #5f6675; margin-top: 6px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.two > div { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
.two > div > label { align-self: end; }
.alert { background: #fff; border-left: 4px solid var(--orange); color: #8a2b06; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.alert a { color: #8a2b06; font-weight: 700; }
.btn-text { background: none; border: 0; padding: 0; font: 600 14px var(--font); color: var(--royal); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; text-align: left; justify-self: start; }
.calc__head { display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-end; margin-top: 24px; position: relative; }
.calc__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px; margin-top: 32px; align-items: start; }
.calc table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.calc__out thead th:nth-child(2) { width: 26%; }
.calc__out thead th:nth-child(3) { width: 30%; }
#r-cov { min-height: 3lh; }
#r-msg { min-height: 2lh; }
.calc__out th { font-weight: 500; font-size: 12px; color: var(--on-dark-soft); padding: 0 0 8px; text-align: right; }
.calc__out td { padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .14); text-align: right; }
.calc__out td:first-child { text-align: left; color: #d6ddef; }
.calc__out td.a4 { color: #fff; font-weight: 700; }
.calc__out .coverage { gap: 4px; }
.pull { margin-top: 22px; padding: 18px 20px; background: rgba(255, 255, 255, .06); font-size: 14px; line-height: 1.6; color: #dfe6f5; display: flex; gap: 16px; }
.pull__mark { flex: none; width: 32px; height: 32px; background: var(--baby); color: #fff; font-size: 28px; font-weight: 600; display: flex; align-items: flex-end; justify-content: center; line-height: 1; }
.gate { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
.panel-white { background: #fff; color: var(--text); padding: 26px; }
.breakdown { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 14px; font-variant-numeric: tabular-nums; }
.breakdown thead th { background: var(--royal); color: #fff; text-align: left; padding: 10px 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.breakdown thead th:last-child { text-align: right; }
.breakdown td, .calc__out .breakdown td { padding: 9px 12px; border-top: 0; border-bottom: 1px solid var(--rule); color: var(--text); }
.breakdown td:last-child { text-align: right; }
.breakdown tr.sub td { padding: 7px 12px; border-bottom-color: #eee; }
.breakdown tr.sub td:first-child { padding-left: 30px; color: var(--mid); }
.breakdown tr.strong td { font-weight: 700; color: var(--navy); }
.breakdown tr.total td { background: var(--pale); font-weight: 700; color: var(--royal); border-bottom: 0; }
.reveal-panel { animation: fade-swap .6s var(--ease-out); }

/* forms */
.form { display: grid; gap: 16px; }
.form label { display: block; font-size: 13.5px; font-weight: 700; color: var(--royal); }
.fld { display: block; width: 100%; min-height: 50px; margin-top: 6px; padding: 12px 14px; font: 400 15px var(--font); color: var(--navy); background: #fff; border: 1px solid var(--pale-rule); border-radius: 0; transition: border-color .2s, box-shadow .2s; }
.fld:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(98, 146, 195, .35); }
textarea.fld { resize: vertical; min-height: 110px; }
select.fld { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--royal) 50%), linear-gradient(135deg, var(--royal) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.fld.is-error { border-color: var(--orange); }
.err { display: block; font-size: 12.5px; font-weight: 500; color: #b33a08; margin-top: 6px; }
.check { display: flex !important; gap: 10px; font-size: 12.5px !important; font-weight: 400 !important; line-height: 1.5; color: var(--text) !important; align-items: flex-start; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--royal); }
.on-dark .check { color: #dfe6f5 !important; }
.on-dark .form label { color: #fff; font-weight: 600; }
input[type="range"] { width: 100%; height: 30px; accent-color: var(--royal); cursor: pointer; }

/* resources */
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.res-card { display: flex; flex-direction: column; background: #fff; transition: transform .5s var(--ease-out), box-shadow .5s; }
.res-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.res-card.is-selected { box-shadow: 0 0 0 3px var(--royal), var(--shadow-lg); }
.res-card__art { height: 190px; position: relative; overflow: hidden; }
.res-card__art .ghost { position: absolute; width: 150px; height: 150px; background: rgba(255, 255, 255, .14); top: -50px; transition: transform .8s var(--ease-out); }
.res-card:hover .res-card__art .ghost { transform: translate(-14px, 14px); }
.res-card__doc { position: absolute; left: 32px; bottom: -14px; width: 118px; height: 156px; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); padding: 14px; display: grid; align-content: start; gap: 7px; transition: transform .6s var(--ease-out); }
.res-card:hover .res-card__doc { transform: translateY(-10px) rotate(-2deg); }
.res-card__doc .mini { display: grid; grid-template-columns: repeat(2, 9px); gap: 2px; }
.res-card__doc .mini i { width: 9px; height: 9px; background: var(--navy); }
.res-card__doc .mini i:first-child { background: var(--baby); }
.res-card__doc b { display: block; height: 4px; background: var(--rule); }
.res-card__kind { position: absolute; right: 20px; bottom: 18px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.res-card__body { padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; border: 1px solid var(--rule); border-top: 0; }
.res-card__body h2 { font-size: 18px; font-weight: 700; color: var(--royal); line-height: 1.35; }
.res-card__body p { font-size: 14px; line-height: 1.65; flex: 1; }
.res-card__btn { align-self: flex-start; margin-top: 10px; background: none; border: 0; padding: 0; cursor: pointer; font: 700 14px var(--font); color: var(--royal); display: inline-flex; gap: 10px; align-items: center; }
.res-card__btn:hover { color: var(--orange); }
.res-gate { position: relative; overflow: hidden; background: var(--royal); color: #fff; padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }

/* faq */
.faq-aside { position: relative; overflow: hidden; background: var(--pale); padding: 34px; display: grid; gap: 16px; position: sticky; top: 100px; }
.faq-aside ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--navy); }
.faq-aside li { display: flex; gap: 12px; align-items: center; }
.faq-aside li i { width: 10px; height: 10px; display: block; }
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; background: none; border: 0; cursor: pointer; text-align: left; font: 600 17px/1.45 var(--font); color: var(--royal); }
.faq__icon { flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--pale); transition: background .3s; }
.faq__icon svg { transition: transform .45s var(--ease-out); stroke: var(--royal); }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--royal); }
.faq__q[aria-expanded="true"] .faq__icon svg { transform: rotate(180deg); stroke: #fff; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.faq__a > div { overflow: hidden; }
.faq__a p { font-size: 15.5px; line-height: 1.8; padding: 0 60px 26px 0; }
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }

/* request demo */
.request { position: relative; overflow: hidden; background: var(--royal); color: #fff; padding: 72px 0 120px; }
.reassure { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 10px; }
.reassure li { display: flex; gap: 16px; align-items: center; background: rgba(255, 255, 255, .08); padding: 14px 16px; }
.reassure span { flex: none; width: 40px; height: 40px; background: #fff; display: flex; align-items: center; justify-content: center; }
.form-card { position: relative; background: #fff; color: var(--text); padding: 44px; box-shadow: var(--shadow-dark); }
.success { display: grid; gap: 16px; padding: 48px 0; }
.success__tick { width: 56px; height: 56px; background: var(--royal); display: flex; align-items: center; justify-content: center; animation: tick-in .7s var(--ease-out); }
@keyframes tick-in { from { transform: scale(.4) rotate(-45deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--rd, 0ms); }
.js [data-reveal="left"] { transform: translate3d(-40px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(40px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.92); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .reveal-lines .line { display: block; overflow: hidden; }
.js .reveal-lines .line > span { display: block; transform: translate3d(0, 105%, 0); transition: transform 1.1s var(--ease-out); transition-delay: var(--rd, 0ms); }
.js .reveal-lines.is-in .line > span { transform: none; }
.page-fade { animation: page-in .8s var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .site-header__back { display: none; }
}
@media (max-width: 960px) {
  :root { --section-y: 80px; --gutter: 20px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { padding: 110px 0 110px; }
  .hero__grid, .compare, .volume, .equation, .teaser-calc__row, .proof-grid, .two-col, .about, .calc, .calc__grid, .two-split { grid-template-columns: minmax(0, 1fr) !important; }
  .compare__new { margin: 0; }
  .stat-tiles, .num-steps, .results-row, .step-tiles, .journeys, .res-grid, .site-footer__grid, .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .results-row { gap: 28px 0; }
  .results-row li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .equation { justify-items: center; }
  .eq-plus { transform: rotate(0); }
  .teaser-calc__figs { text-align: center; }
  .strip__blocks { gap: 12px; }
  .strip__sign { width: 64px; height: 64px; }
  .strip__bar { padding: 18px 20px; }
  .faq-aside { position: relative; top: 0; }
  .faq__a p { padding-right: 0; }
  .dash__row { grid-template-columns: 100px 1fr; }
  .quote-card { padding: 56px 28px 36px; }
}
@media (max-width: 560px) {
  .stat-tiles, .num-steps, .step-tiles, .journeys, .res-grid, .site-footer__grid, .two, .trust-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .stat-tile { aspect-ratio: auto; min-height: 150px; }
  .site-header__actions .btn { display: none; }
  .trust li { font-size: 11px; }
  .calc__in, .calc__out, .form-card { padding: 26px 20px; }}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .sq { opacity: var(--o); }
  .sq-field.is-live .sq::after { animation: none; }
  .js [data-reveal], .js .reveal-lines .line > span { opacity: 1; transform: none; }
}

/* word-by-word headline reveal */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.js [data-split] .w > span { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform 1.1s var(--ease-out); transition-delay: var(--rd, 0ms); }
.js [data-split].is-in .w > span { transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-split] .w > span { transform: none; } }

/* utility fixes */
[hidden] { display: none !important; }
.on-dark .panel-white, .on-dark .panel-white p { color: var(--text); }
.on-dark .panel-white label { color: var(--royal); font-weight: 700; }
.on-dark .panel-white .check { color: var(--text) !important; }
.on-dark .panel-white a:not(.btn) { color: var(--royal); }
@media (max-width: 960px) { .dash__play { left: 12px; bottom: -22px; } .equation .eq-item { max-width: 260px; aspect-ratio: auto; min-height: 150px; } }
.on-dark .form-card, .on-dark .form-card p { color: var(--text); }
.on-dark .form-card .form label { color: var(--royal); font-weight: 700; }
.on-dark .form-card .check { color: var(--text) !important; font-weight: 400; }
.on-dark .form-card .display { color: var(--royal); }
.on-dark .form-card a:not(.btn) { color: var(--royal); }
