/* brieftolive.com — shared styles. Light theme only. No build step. */

/* ---------- Fonts (self-hosted, SIL OFL; see assets/fonts/README.txt) ---------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+20B9;
}
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+20B9;
}

/* ---------- Tokens ---------- */
:root {
  /* colour */
  --white: #FFFFFF;
  --mist: #F4F6FA;          /* alternate section background (cool, very light) */
  --mist-2: #EAEEF5;
  --line: #E3E7EF;
  --line-strong: #CDD4E1;
  --navy: #0A1C40;          /* brand */
  --navy-2: #12295A;
  --navy-3: #1D3770;
  --text: #2B3650;
  --muted: #4F5B73;         /* 7:1 on white */
  --subtle: #6A7489;        /* 4.7:1 on white */
  --orange: #E6701E;        /* brand: buttons, marks, large text on navy */
  --orange-hover: #F07C2B;
  --orange-display: #CF5F10;/* large orange text on white (3.7:1) */
  --orange-ink: #B4520C;    /* small orange text on white (4.8:1) */
  --orange-wash: #FDEEE3;
  --on-navy: #F3F5F9;
  --on-navy-muted: #B3BDD1;
  --on-navy-line: rgba(243, 245, 249, 0.14);
  --green: #1D7148;
  --green-wash: #E3F3EA;

  /* type */
  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Outfit", "Inter", ui-sans-serif, system-ui, sans-serif;

  /* shape and space */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 32px;
  --gutter: clamp(16px, 4.5vw, 40px);
  --max: 1200px;
  --section: clamp(88px, 12vw, 152px);

  /* depth */
  --shadow-sm: 0 1px 2px rgba(10, 28, 64, 0.06);
  --shadow-md: 0 1px 2px rgba(10, 28, 64, 0.05), 0 14px 32px -16px rgba(10, 28, 64, 0.22);
  --shadow-lg: 0 2px 4px rgba(10, 28, 64, 0.04), 0 48px 96px -40px rgba(10, 28, 64, 0.38);

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 140ms;
  --t-med: 260ms;
  --t-slow: 720ms;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth; scroll-padding-top: 96px;
}
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange-wash); color: var(--navy); }

h1, h2, h3 {
  font-family: var(--font-head); color: var(--navy); font-weight: 600;
  margin: 0 0 0.5em; text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 7.6vw, 5.75rem); line-height: 0.98; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.035em; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; }
p, li { text-wrap: pretty; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.on-navy :focus-visible { outline-color: var(--orange); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-text); font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap; user-select: none;
  transition: background-color var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out),
              color var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); transition-duration: 80ms; }
.btn-primary { background: var(--orange); color: var(--navy); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px -8px rgba(230, 112, 30, 0.7); }
.btn-primary:hover { background: var(--orange-hover); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 22px -10px rgba(230, 112, 30, 0.85); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost-light { background: transparent; color: var(--on-navy); border-color: rgba(243, 245, 249, 0.3); }
.btn-ghost-light:hover { border-color: var(--on-navy); background: rgba(255,255,255,.04); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 0.9375rem; }
.btn .arrow { width: 16px; height: 16px; flex: none; transition: transform var(--t-med) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow var(--t-med) var(--ease-out), background-color var(--t-med) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); background: rgba(255, 255, 255, 0.9); }
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo-link { display: inline-flex; align-items: center; margin-right: auto; padding: 6px 0; border-radius: 6px; flex: none; }
.logo-link img { height: 26px; width: auto; }
.primary-nav { display: none; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list > li > a, .menu-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500; color: var(--navy); text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out);
}
.nav-list > li > a:hover, .menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: var(--mist); }
.nav-list > li > a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--orange);
}
.menu-toggle .chev { width: 14px; height: 14px; transition: transform var(--t-med) var(--ease-out); }
.menu-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.submenu {
  list-style: none; position: absolute; top: calc(100% + 10px); left: 50%; width: 340px; margin-left: -170px; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  transform-origin: 50% 0; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98);
  transition: opacity var(--t-fast) ease, transform var(--t-fast) ease, visibility 0s linear var(--t-fast);
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-menu.is-open .submenu, html:not(.js) .has-menu:focus-within .submenu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
@media (hover: hover) {
  .has-menu:hover .submenu { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out); }
}
.submenu a {
  display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; align-items: center; padding: 12px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--navy); transition: background-color var(--t-fast) ease;
}
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--mist); }
.submenu .sm-icon { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 12px; background: var(--mist); display: grid; place-items: center; color: var(--navy); transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.submenu a:hover .sm-icon { background: var(--navy); color: var(--orange); }
.submenu .sm-icon svg { width: 20px; height: 20px; }
.submenu .sm-title { font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.submenu .sm-desc { font-size: 0.8125rem; color: var(--muted); line-height: 1.35; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-login { display: none; padding: 9px 14px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; color: var(--navy); text-decoration: none; transition: background-color var(--t-fast) ease; }
.nav-login:hover { background: var(--mist); }
.nav-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: var(--white); border: 1px solid var(--line-strong); cursor: pointer; color: var(--navy); flex: none; }
.nav-burger:active { transform: scale(0.95); }
html:not(.js) .nav-burger { display: none; }
.nav-burger .bars { position: relative; width: 18px; height: 12px; }
.nav-burger .bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast) ease, top var(--t-med) var(--ease-out); }
.nav-burger .bars span:nth-child(1) { top: 0; }
.nav-burger .bars span:nth-child(2) { top: 5px; }
.nav-burger .bars span:nth-child(3) { top: 10px; }
.nav-burger[aria-expanded="true"] .bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.mobile-nav {
  border-top: 1px solid var(--line); background: var(--white);
  max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto;
  opacity: 0; transform: translateY(-8px); transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.mobile-nav.is-open { opacity: 1; transform: none; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; }
.mobile-nav .container { padding-top: 8px; padding-bottom: 24px; }
.mobile-nav a { display: flex; align-items: center; min-height: 52px; font-family: var(--font-head); font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .mn-group { padding: 18px 0 2px; font-size: 0.8125rem; font-weight: 600; color: var(--subtle); }
.mobile-nav .mn-sub a { font-family: var(--font-text); font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; padding-left: 16px; min-height: 48px; }
.mobile-nav .mn-actions { display: grid; gap: 10px; margin-top: 24px; }
.mobile-nav .mn-actions a { border: 0; justify-content: center; font-family: var(--font-text); font-size: 1rem; font-weight: 600; letter-spacing: 0; min-height: 50px; }
.mobile-nav .mn-actions .btn-secondary { border: 1px solid var(--line-strong); }

@media (min-width: 1020px) {
  .primary-nav { display: block; margin-inline: auto; }
  .logo-link { margin-right: 0; }
  .nav-login { display: inline-flex; }
  .nav-burger, .mobile-nav { display: none !important; }
  .logo-link img { height: 28px; }
}
@media (max-width: 380px) {
  .header-inner { gap: 10px; }
  .header-actions .btn-sm { padding: 9px 14px; }
  .logo-link img { height: 22px; }
}

/* ---------- Shared section pieces ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(64px, 9vw, 112px); }
.pt-0 { padding-top: 0 !important; }
.bg-mist { background: var(--mist); }
.on-navy { background: var(--navy); color: var(--on-navy-muted); }
.on-navy h1, .on-navy h2, .on-navy h3 { color: var(--on-navy); }

/* Eyebrow: small sentence-case label with a short orange rule */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 0.875rem; font-weight: 600; color: var(--orange-ink); letter-spacing: 0.005em; }
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: var(--orange); }
.on-navy .eyebrow { color: #F5A465; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.on-navy .lead { color: var(--on-navy-muted); }

.head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 80px); }
.head h2 { margin-bottom: 20px; }
.head.center { margin-inline: auto; text-align: center; }
.head.center .lead { margin-inline: auto; }
.head-split { display: grid; gap: 20px; margin-bottom: clamp(44px, 6vw, 80px); }
.head-split h2 { margin: 0; }
@media (min-width: 920px) { .head-split { grid-template-columns: 7fr 5fr; gap: 72px; align-items: end; } .head-split .lead { padding-bottom: 6px; } }

.ticks { list-style: none; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 999px;
  background: var(--orange-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='%23B4520C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.on-navy .ticks li::before, .is-navy .ticks li::before {
  background-color: rgba(230, 112, 30, 0.22);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='%23F5A465' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ticks-inline { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }

.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; line-height: 1.3; background: var(--white); color: var(--navy); border: 1px solid var(--line); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--orange); flex: none; }

.icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--navy); color: var(--orange); flex: none; }
.icon svg { width: 22px; height: 22px; }
.icon.soft { background: var(--orange-wash); color: var(--orange-ink); }
.kicker { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--orange-ink); margin-bottom: 6px; }

/* ---------- Scroll reveal (only when JS is on and motion is allowed) ---------- */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Home: hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 96px); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 12px; border-radius: 999px; background: var(--mist); font-size: 0.875rem; font-weight: 500; color: var(--navy); margin-bottom: clamp(24px, 4vw, 36px); }
.pill .spark { color: var(--orange); font-size: 0.875rem; line-height: 1; }
.hero h1 { margin-bottom: clamp(20px, 3vw, 28px); max-width: 12ch; font-size: clamp(3rem, 9vw, 7rem); letter-spacing: -0.035em; }
.hero h1 .l1 { display: block; font-weight: 700; }
.hero h1 .l2 { display: block; font-weight: 300; color: var(--orange-display); letter-spacing: -0.045em; }
.without { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 clamp(36px, 5vw, 56px); font-size: clamp(1rem, 1.6vw, 1.1875rem); color: var(--navy); font-weight: 500; }
.without .w-lead { font-weight: 600; color: var(--navy); }
.without .dot { color: var(--line-strong); }
.without .x { position: relative; white-space: nowrap; color: var(--subtle); }
.without .x::after { content: ""; position: absolute; left: -2px; right: -2px; top: 55%; height: 2px; border-radius: 2px; background: var(--orange); transform-origin: left center; }
.hero-foot { display: grid; gap: 28px; padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.hero-foot .lead { margin: 0; }
@media (min-width: 900px) { .hero-foot { grid-template-columns: 1fr auto; gap: 64px; align-items: center; } }

.stage { position: relative; margin-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 104px); }
.stage::before { content: ""; position: absolute; inset: 22% 0 0 0; background: var(--mist); }
.stage .container { position: relative; }

/* ---------- Product mockup (HTML/CSS illustration) ---------- */
.mockup { text-align: left; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px; line-height: 1.4; color: var(--navy); user-select: none; }
.mk-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--mist); border-bottom: 1px solid var(--line); }
.mk-dots { display: flex; gap: 6px; flex: none; }
.mk-dots i { width: 10px; height: 10px; border-radius: 999px; background: var(--line-strong); display: block; }
.mk-url { flex: 1; max-width: 360px; margin-inline: auto; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--white); border-radius: 999px; padding: 5px 14px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); min-width: 0; }
.mk-url svg { width: 11px; height: 11px; flex: none; }
.mk-spacer { width: 42px; flex: none; }
.mk-body { display: grid; grid-template-columns: 1fr; }
.mk-side { display: none; background: #FAFBFD; border-right: 1px solid var(--line); padding: 20px 12px; }
.mk-side .mk-logo { height: 18px; width: auto; margin: 2px 10px 20px; }
.mk-side ul { list-style: none; display: grid; gap: 2px; }
.mk-side li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-weight: 500; }
.mk-side li svg { width: 15px; height: 15px; flex: none; }
.mk-side li.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.mk-main { padding: 18px; display: grid; gap: 14px; min-width: 0; }
.mk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mk-h { font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.mk-sub { color: var(--muted); font-size: 12px; }
.mk-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--mist); color: var(--navy); white-space: nowrap; }
.mk-btn { background: var(--orange); color: var(--navy); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 12px; white-space: nowrap; }
.mk-meters { display: grid; gap: 10px; }
.mk-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.mk-card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.mk-card-t { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-meter-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.mk-pct { font-family: var(--font-head); font-size: 24px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mk-of { color: var(--muted); font-size: 11.5px; }
.mk-track { height: 8px; border-radius: 99px; background: var(--mist-2); overflow: hidden; }
.mk-fill { height: 100%; border-radius: 99px; background: var(--navy); transform-origin: left center; }
.mk-fill.warn { background: var(--orange); }
.mk-note { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.mk-note.warn { color: var(--orange-ink); font-weight: 600; }
.mk-lower { display: grid; gap: 14px; }
.mk-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mk-col { background: var(--mist); border-radius: 12px; padding: 10px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.mk-col:nth-child(2), .mk-col:nth-child(4) { display: none; }
.mk-col-h { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; font-size: 11px; font-weight: 600; color: var(--muted); padding: 2px 2px 4px; }
.mk-task { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; min-width: 0; box-shadow: var(--shadow-sm); }
.mk-task b { display: block; font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-task span { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; }
.mk-task .pf { width: 7px; height: 7px; border-radius: 99px; background: var(--navy); flex: none; }
.mk-task .pf.o { background: var(--orange); }
.mk-task .pf.g { background: #9AA6BD; }
.mk-inv { list-style: none; display: grid; }
.mk-inv li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 0; border-top: 1px solid var(--line); align-items: center; }
.mk-inv li:first-child { border-top: 0; padding-top: 0; }
.mk-inv .n { font-weight: 600; font-size: 12px; }
.mk-inv .c { color: var(--muted); font-size: 11px; grid-column: 1; }
.mk-inv .a { font-weight: 600; font-size: 12px; text-align: right; grid-row: 1; grid-column: 2; }
.mk-inv .s { grid-column: 2; justify-self: end; }
.st { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.st-paid { background: var(--green-wash); color: var(--green); }
.st-sent { background: #E5EAF5; color: var(--navy-2); }
.st-draft { background: var(--mist-2); color: var(--muted); }
.st-review { background: var(--orange-wash); color: var(--orange-ink); }
@media (min-width: 560px) {
  .mk-meters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mk-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mk-col:nth-child(2) { display: grid; }
}
@media (min-width: 880px) {
  .mk-body { grid-template-columns: 200px 1fr; }
  .mk-side { display: block; }
  .mk-main { padding: 24px; gap: 16px; }
  .mk-lower { grid-template-columns: 1.7fr 1fr; }
}
@media (min-width: 1140px) { .mk-board { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mk-col:nth-child(4) { display: grid; } }
@media (max-width: 559px) { .mk-meters .mk-card:nth-child(3), .mk-top .mk-btn, .mk-spacer { display: none; } }

/* Hero load sequence: strike-throughs draw, mockup rises, meters fill */
@media (prefers-reduced-motion: no-preference) {
  .js .without .x::after { transform: scaleX(0); animation: strike 520ms var(--ease-in-out) forwards; }
  .js .without .x:nth-of-type(1)::after { animation-delay: 700ms; }
  .js .without .x:nth-of-type(2)::after { animation-delay: 880ms; }
  .js .without .x:nth-of-type(3)::after { animation-delay: 1060ms; }
  .js .without .x:nth-of-type(4)::after { animation-delay: 1240ms; }
  .js .stage .mockup { animation: rise 1000ms var(--ease-out) 350ms both; }
  .js .hero h1 .w { animation: word-in 640ms var(--ease-out) both; animation-delay: calc(60ms + var(--i, 0) * 55ms); }
  .js .mockup .mk-fill, .js .panel .mk-fill { animation: fill 1300ms var(--ease-out) 900ms both; }
}
@keyframes word-in { from { opacity: 0; transform: translateY(0.32em); } to { opacity: 1; transform: none; } }
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: var(--white); }
.marquee-track { display: flex; width: max-content; }
.marquee-list { display: flex; flex: none; list-style: none; }
.marquee-list li { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; font-family: var(--font-head); font-weight: 300; font-size: clamp(1.375rem, 2.6vw, 2rem); letter-spacing: -0.02em; color: var(--navy); white-space: nowrap; }
.marquee-list li::before { content: "✦"; color: var(--orange); font-size: 0.6em; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { width: auto; justify-content: center; padding-inline: var(--gutter); }
  .marquee-list { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .marquee-list[aria-hidden="true"] { display: none; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Home: the reality (ledger list) ---------- */
.ledger { list-style: none; border-top: 1px solid var(--navy); }
.ledger-row { display: grid; gap: 10px 32px; padding: clamp(24px, 3.4vw, 36px) 0; border-bottom: 1px solid var(--line-strong); grid-template-columns: 44px 1fr; transition: background-color var(--t-med) var(--ease-out); }
.ledger-num { font-family: var(--font-head); font-weight: 500; font-size: 1rem; color: var(--orange-ink); padding-top: 4px; font-variant-numeric: tabular-nums; }
.ledger-row h3 { font-size: clamp(1.25rem, 2.2vw, 1.625rem); letter-spacing: -0.025em; margin: 0; grid-column: 2; }
.ledger-row p { color: var(--muted); margin: 0; grid-column: 2; max-width: 52ch; }
.ledger-row .tag { grid-column: 2; justify-self: start; }
@media (min-width: 960px) {
  .ledger-row { grid-template-columns: 64px 1.1fr 1.2fr 220px; align-items: baseline; }
  .ledger-row h3, .ledger-row p, .ledger-row .tag { grid-column: auto; }
  .ledger-row .tag { justify-self: end; }
}

/* ---------- Home: the fix (sticky index) ---------- */
.index-layout { display: grid; gap: 48px; }
.index-head .lead { margin-bottom: 32px; }
@media (min-width: 980px) {
  .index-layout { grid-template-columns: 5fr 7fr; gap: 88px; align-items: start; }
  .index-head { position: sticky; top: 120px; }
}
.feature-list { list-style: none; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.feature-list .icon { grid-row: 1 / span 3; transition: transform var(--t-med) var(--ease-out); }
.feature-list li:hover .icon { transform: rotate(-6deg) scale(1.04); }
.feature-list h3 { margin: 0; font-size: 1.25rem; }
.feature-list p { margin: 0; color: var(--muted); }
@media (min-width: 680px) {
  .feature-list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .feature-list li { grid-template-columns: 1fr; padding: 32px 0 36px; }
  .feature-list .icon { grid-row: auto; margin-bottom: 14px; }
}

/* ---------- Home: who it's for ---------- */
.audiences { display: grid; gap: 16px; }
@media (min-width: 760px) { .audiences { grid-template-columns: repeat(3, 1fr); } }
.audience {
  display: flex; flex-direction: column; padding: clamp(28px, 3vw, 36px); border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); color: var(--muted); text-decoration: none;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out);
}
.audience:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.audience:active { transform: translateY(-1px) scale(0.995); }
.audience .a-label { font-size: 0.8125rem; font-weight: 600; color: var(--orange-ink); margin-bottom: 40px; }
.audience h3 { font-size: 1.75rem; letter-spacing: -0.03em; margin-bottom: 12px; }
.audience p { margin-bottom: 28px; }
.audience .ticks { margin-bottom: 36px; color: var(--navy); font-weight: 500; font-size: 0.9375rem; }
.audience .a-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); }
.audience .a-link svg { width: 18px; height: 18px; transition: transform var(--t-med) var(--ease-out); }
.audience:hover .a-link svg { transform: translateX(4px); }
.audience.is-navy { background: var(--navy); border-color: var(--navy); color: var(--on-navy-muted); }
.audience.is-navy h3, .audience.is-navy .ticks, .audience.is-navy .a-link { color: var(--on-navy); }
.audience.is-navy .a-label { color: #F5A465; }

/* ---------- Home: principles (navy band) ---------- */
.principles { padding-block: var(--section); }
.principle-list { list-style: none; display: grid; gap: 36px; margin-bottom: clamp(64px, 8vw, 104px); }
@media (min-width: 860px) { .principle-list { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.principle { padding-top: 24px; border-top: 1px solid var(--on-navy-line); }
.principle h3 { font-size: 1.3125rem; margin-bottom: 10px; }
.stats { list-style: none; display: grid; }
.stat { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 22px 0; border-top: 1px solid var(--on-navy-line); }
.stat .num { font-family: var(--font-head); font-weight: 300; font-size: clamp(4rem, 9vw, 7.5rem); line-height: 0.9; letter-spacing: -0.06em; color: var(--orange); min-width: 1.6ch; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--on-navy); font-size: 1rem; max-width: 22ch; }
@media (min-width: 860px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { grid-template-columns: 1fr; gap: 14px; padding: 0 32px; border-top: 0; border-left: 1px solid var(--on-navy-line); }
  .stat:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- FAQ accordion ---------- */
.faq-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 5fr 7fr; gap: 88px; align-items: start; } .faq-layout > :first-child { position: sticky; top: 120px; } }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-family: var(--font-head); font-weight: 500; font-size: clamp(1.125rem, 1.8vw, 1.375rem); letter-spacing: -0.02em; color: var(--navy);
  border-radius: 6px; transition: color var(--t-fast) ease;
}
.faq-item summary:hover { color: var(--navy-3); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus { flex: none; position: relative; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line-strong); transition: background-color var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out); }
.faq-item .plus::before, .faq-item .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: var(--navy); border-radius: 2px; transition: transform var(--t-med) var(--ease-out), background-color var(--t-med) ease; }
.faq-item .plus::after { transform: rotate(90deg); }
.faq-item[open] .plus { background: var(--navy); border-color: var(--navy); }
.faq-item[open] .plus::before, .faq-item[open] .plus::after { background: #fff; }
.faq-item[open] .plus::after { transform: rotate(0deg); }
.faq-item .answer { padding: 0 64px 28px 0; color: var(--muted); max-width: 66ch; }
@media (prefers-reduced-motion: no-preference) { .faq-item[open] .answer { animation: drop var(--t-med) var(--ease-out); } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .faq-item .answer { padding-right: 0; } }

/* ---------- Closing CTA ---------- */
.closing { padding-block: clamp(24px, 4vw, 48px) clamp(72px, 9vw, 120px); }
.closing-panel { background: var(--mist); border-radius: var(--radius-lg); padding: clamp(48px, 8vw, 112px) clamp(24px, 6vw, 88px); text-align: center; position: relative; overflow: hidden; }
.closing-panel::before { content: ""; position: absolute; left: 50%; top: 0; width: min(680px, 80%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(230, 112, 30, 0.7), transparent); }
.closing-panel .closing-logo { height: 30px; width: auto; margin: 0 auto 40px; }
.closing-panel h2 { max-width: 15ch; margin-inline: auto; font-size: clamp(2.25rem, 5.6vw, 4.25rem); letter-spacing: -0.04em; }
.closing-panel .lead { margin: 0 auto 40px; max-width: 54ch; }
.closing-panel .ticks-inline { margin-top: 36px; color: var(--navy); font-size: 0.9375rem; font-weight: 500; }

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(48px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); max-width: 15ch; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .btn-row { margin-top: 36px; }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center .lead { margin-inline: auto; }
.hero-split { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .hero-split { grid-template-columns: 1.1fr 0.9fr; gap: 72px; } }

/* ---------- Features page: numbered flow ---------- */
.flow { list-style: none; border-top: 1px solid var(--navy); }
.flow-item { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line-strong); }
.flow-num { font-family: var(--font-head); font-weight: 300; font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--orange-display); min-width: 2ch; font-variant-numeric: tabular-nums; }
.flow-item h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 0; letter-spacing: -0.03em; }
.flow-item p { color: var(--muted); margin: 0; grid-column: 2; max-width: 54ch; }
.flow-item .icon { display: none; }
@media (min-width: 900px) {
  .flow-item { grid-template-columns: 110px 1fr 1.25fr 44px; align-items: center; gap: 32px; }
  .flow-item p { grid-column: auto; }
  .flow-item .icon { display: grid; transition: transform var(--t-med) var(--ease-out), background-color var(--t-med) ease; }
  .flow-item:hover .icon { transform: rotate(-8deg) scale(1.06); }
  .flow-item::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-out); }
  .flow-item:hover::before { transform: scaleX(1); }
}

/* ---------- How it works: timeline ---------- */
.timeline { list-style: none; display: grid; gap: 0; position: relative; }
.t-step { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 0 20px; padding-bottom: 44px; }
.t-step:last-child { padding-bottom: 0; }
.t-step::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.t-step:last-child::before { display: none; }
.t-node { width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; background: var(--white); border: 2px solid var(--navy); color: var(--navy); font-family: var(--font-head); font-weight: 600; font-size: 1.125rem; position: relative; z-index: 1; }
.t-step.is-final .t-node { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.t-body { padding-top: 10px; }
.t-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; letter-spacing: -0.03em; }
.t-body p { color: var(--muted); max-width: 40ch; }
.t-body .tag { margin-top: 18px; }
@media (min-width: 1000px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .t-step { grid-template-columns: 1fr; padding-bottom: 0; }
  .t-step::before { left: 60px; right: -32px; top: 25px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
  .t-body { padding-top: 32px; }
}
.how-note { margin-top: clamp(56px, 7vw, 88px); padding: clamp(28px, 4vw, 40px); border-radius: var(--radius); background: var(--mist); display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .how-note { grid-template-columns: 1fr auto; } }
.how-note p { margin: 0; color: var(--navy); font-family: var(--font-head); font-size: clamp(1.25rem, 2.2vw, 1.625rem); letter-spacing: -0.02em; line-height: 1.3; max-width: 36ch; }

/* ---------- Pricing ---------- */
.pricing-controls { display: none; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin-top: 40px; }
html.js .pricing-controls { display: flex; }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); margin: 0; min-width: 0; }
.seg legend { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; color: var(--navy); cursor: pointer; white-space: nowrap; transition: color var(--t-med) var(--ease-out); }
.seg input:checked + label { color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--navy); outline-offset: 2px; }
.seg .thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--navy); box-shadow: var(--shadow-sm); transition: transform 380ms var(--ease-out), width 380ms var(--ease-out); }
.seg:not(.has-thumb) input:checked + label { background: var(--navy); }
.seg .save { font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--orange-wash); color: var(--orange-ink); transition: background-color var(--t-med) ease, color var(--t-med) ease; }
.seg input:checked + label .save { background: var(--orange); color: var(--navy); }

.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1140px) { .plans { grid-template-columns: repeat(4, 1fr); } .plan-for { min-height: 3.2em; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); color: var(--muted); transition: box-shadow var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out); }
.plan:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.plan-name { font-size: 1.5rem; margin-bottom: 4px; letter-spacing: -0.025em; }
.plan-for { font-size: 0.9375rem; margin-bottom: 28px; }
.plan-badge { position: absolute; top: 26px; right: 24px; padding: 4px 10px; border-radius: 999px; background: var(--orange); color: var(--navy); font-size: 0.75rem; font-weight: 700; }
.price-was { min-height: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 0.875rem; margin: 0 0 8px; transition: opacity var(--t-med) ease; }
.price-was s { color: var(--subtle); text-decoration-thickness: 1.5px; }
.price-was .off { font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--orange-wash); color: var(--orange-ink); }
.price-was.is-hidden { visibility: hidden; opacity: 0; }
.plan .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; margin: 0 0 4px; color: var(--navy); transition: opacity 160ms ease, transform 160ms ease; }
.plans.is-swapping .price, .plans.is-swapping .billing-line { opacity: 0; transform: translateY(6px); }
.price .amount { font-family: var(--font-head); font-weight: 500; font-size: 3.25rem; line-height: 1.05; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.price .amount.is-text { font-size: 2.25rem; letter-spacing: -0.035em; }
.price .per { color: var(--muted); font-weight: 500; font-size: 1rem; }
.billing-line { font-size: 0.875rem; margin-bottom: 28px; transition: opacity 160ms ease; }
.plan .btn { width: 100%; }
.trial-note { text-align: center; font-size: 0.8125rem; margin: 10px 0 26px; }
.plan .ticks { padding-top: 26px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--navy); }
.plan.is-navy { background: var(--navy); border-color: var(--navy); color: var(--on-navy-muted); box-shadow: var(--shadow-lg); }
.plan.is-navy .plan-name, .plan.is-navy .price, .plan.is-navy .ticks { color: var(--on-navy); }
.plan.is-navy .price .per, .plan.is-navy .price-was s { color: var(--on-navy-muted); }
.plan.is-navy .price-was .off { background: rgba(230, 112, 30, 0.2); color: #F5A465; }
.plan.is-navy .ticks { border-top-color: var(--on-navy-line); }
.small-print { max-width: 70ch; margin: 36px auto 0; text-align: center; color: var(--muted); font-size: 0.875rem; }

.split-cta { display: grid; gap: 24px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-lg); background: var(--mist); }
@media (min-width: 860px) { .split-cta { grid-template-columns: 1fr auto; gap: 48px; } }
.split-cta h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); margin-bottom: 12px; }
.split-cta p { color: var(--muted); }

/* ---------- Solution pages ---------- */
.pains { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--navy); }
.pains li { padding: 28px 0 32px; border-bottom: 1px solid var(--line-strong); }
.pains .icon { margin-bottom: 20px; }
.pains h3 { font-size: 1.375rem; letter-spacing: -0.025em; margin-bottom: 10px; }
.pains p { color: var(--muted); margin: 0; max-width: 40ch; }
@media (min-width: 860px) {
  .pains { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-strong); }
  .pains li { padding: 32px 36px 40px; border-bottom: 0; border-left: 1px solid var(--line-strong); }
  .pains li:first-child { padding-left: 0; border-left: 0; }
  .pains li:last-child { padding-right: 0; }
}

.tiles { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 680px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tiles li { background: var(--white); padding: clamp(26px, 3vw, 36px); transition: background-color var(--t-med) var(--ease-out); }
.tiles li:hover { background: #FBFCFE; }
.tiles .icon { margin-bottom: 24px; transition: transform var(--t-med) var(--ease-out); }
.tiles li:hover .icon { transform: rotate(-6deg) scale(1.04); }
.tiles h3 { margin-bottom: 8px; }
.tiles p { color: var(--muted); margin: 0; }

.plan-callout { border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 80px); display: grid; gap: 36px; align-items: end; position: relative; overflow: hidden; }
.plan-callout::before { content: ""; position: absolute; left: clamp(40px, 6vw, 80px); top: 0; width: 120px; height: 3px; background: var(--orange); border-radius: 0 0 3px 3px; }
@media (min-width: 920px) { .plan-callout { grid-template-columns: 1.5fr auto; gap: 72px; } }
.plan-callout h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); margin-bottom: 20px; max-width: 20ch; letter-spacing: -0.04em; }
.plan-callout p { max-width: 60ch; }

/* Hero side panels (illustrations) */
.panel-wrap { position: relative; padding: 0 0 28px; }
.panel-wrap::before { content: ""; position: absolute; inset: 12% -3% -4% 14%; border-radius: var(--radius-lg); background: var(--mist); z-index: -1; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 24px; font-size: 14px; color: var(--navy); line-height: 1.45; position: relative; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.panel-h .t { font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.panel-h .s { color: var(--muted); font-size: 12.5px; }
.field { margin-bottom: 14px; }
.field .l { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field .v { display: flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 10px; background: var(--mist); border: 1px solid var(--line); font-size: 13.5px; }
.field .v.empty { color: var(--subtle); }
.field .v.focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10, 28, 64, 0.08); background: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--mist); border: 1px solid var(--line); }
.chips span.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.panel .mk-btn { display: inline-block; margin-top: 8px; padding: 9px 16px; font-size: 13px; }
.meter-list { display: grid; gap: 20px; }
.meter .mrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.meter .mname { font-weight: 600; }
.meter .mval { font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.queue { list-style: none; display: grid; gap: 10px; }
.queue li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--mist); border: 1px solid var(--line); }
.queue .q-t { font-weight: 600; font-size: 13.5px; }
.queue .q-s { color: var(--muted); font-size: 12px; grid-column: 1; }
.queue .st { grid-row: 1 / span 2; grid-column: 2; }
.panel .budget { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.panel-float { position: absolute; right: -14px; bottom: -22px; background: var(--navy); color: var(--on-navy); border-radius: 14px; padding: 12px 16px; font-size: 12.5px; font-weight: 500; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px; }
.panel-float svg { width: 18px; height: 18px; color: var(--orange); flex: none; }
.panel-wrap { margin-right: 14px; }
@media (max-width: 560px) { .panel-float { right: 12px; } .panel-wrap { margin-right: 0; } .panel-wrap::before { inset: 10% 0 -2% 10%; } }
@media (prefers-reduced-motion: no-preference) { .js .panel-float { animation: rise 800ms var(--ease-out) 700ms both; } }

/* ---------- Legal ---------- */
.legal { padding-top: clamp(48px, 8vw, 104px); padding-bottom: var(--section); }
.legal-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 88px; align-items: start; } .toc { position: sticky; top: 112px; } }
.legal h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); margin-bottom: 14px; }
.legal .updated { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.legal-head { padding-bottom: clamp(32px, 5vw, 48px); margin-bottom: clamp(32px, 5vw, 48px); border-bottom: 1px solid var(--line-strong); }
.toc { font-size: 0.9375rem; }
.toc p { font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; transition: color var(--t-fast) ease, border-color var(--t-fast) ease; }
.toc a:hover { color: var(--navy); border-left-color: var(--orange); }
@media (max-width: 999px) { .toc { display: none; } }
.legal-body h2 { font-size: 1.375rem; letter-spacing: -0.02em; margin: 44px 0 12px; scroll-margin-top: 100px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h2 .n { color: var(--orange-ink); margin-right: 8px; font-variant-numeric: tabular-nums; }
.legal-body p { max-width: 68ch; }
.legal-body a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }
.legal .note { margin-top: 48px; padding: 20px 24px; border-radius: var(--radius); background: var(--mist); color: var(--navy); }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(80px, 14vw, 168px); text-align: center; }
.notfound .big { font-family: var(--font-head); font-weight: 300; font-size: clamp(7rem, 26vw, 15rem); line-height: 0.85; letter-spacing: -0.07em; color: var(--navy); margin-bottom: 24px; }
.notfound .big span { color: var(--orange-display); font-weight: 700; }
.notfound h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.notfound .lead { margin: 0 auto 36px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding-top: clamp(64px, 9vw, 104px); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 48px; padding-bottom: 56px; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 30ch; color: var(--on-navy); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.footer-cols > :last-child { grid-column: 1 / -1; }
.footer-title { font-family: var(--font-text); font-size: 0.8125rem; font-weight: 600; color: #F5A465; margin: 0 0 14px; letter-spacing: 0.01em; }
.footer-cols ul { list-style: none; display: grid; gap: 2px; }
.footer-cols a { color: var(--on-navy); text-decoration: none; display: inline-block; padding: 5px 0; border-radius: 4px; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 85%; transition: background-size var(--t-med) var(--ease-out); }
.footer-cols a:hover { background-size: 100% 1px; }
.footer-base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 36px; font-size: 0.875rem; }
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--on-navy-line); }
.footer-base p { margin: 0; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 2fr; gap: 72px; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); }
  .footer-cols > :last-child { grid-column: auto; }
}

/* ---------- Reduced motion: final states, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
  .marquee-track { animation: none !important; }
}

/* ---------- Home hero: live demo, tilt and parallax ---------- */
.hero h1 .w { display: inline-block; }
.mk-par, .mk-tilt { transform-origin: 50% 40%; }
.mk-tilt { transform-style: preserve-3d; }

/* Reserved landing spots for the moving brief card (keeps layout fixed) */
.mk-board { position: relative; }
.mk-slot { height: 66px; border-radius: 10px; }
.mk-travel {
  position: absolute; left: 0; top: 0; z-index: 2; height: 66px; display: grid; align-content: center;
  --x: 0px; --y: 0px; --s: 1;
  transform: translate3d(var(--x), var(--y), 0) scale(var(--s));
  opacity: 0; pointer-events: none; border-color: rgba(230, 112, 30, 0.45);
  transition: transform 950ms var(--ease-out), opacity 500ms var(--ease-out), border-color 400ms ease;
}
html:not(.js) .mk-travel { display: none; }
.mk-travel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 18px 32px -14px rgba(10, 28, 64, 0.45); opacity: 0; transition: opacity 500ms var(--ease-out); }
.mk-travel.is-on { opacity: 1; }
.mk-travel.is-lifted { --s: 1.04; }
.mk-travel.is-lifted::after { opacity: 1; }
.mk-travel.is-entering { --s: 0.94; }
.mk-travel.no-move { transition: opacity 500ms var(--ease-out); }
.mk-travel b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-status { display: grid !important; margin-top: 3px; }
.tv-status > span { grid-area: 1 / 1; margin-top: 0 !important; display: flex; align-items: flex-start; gap: 5px; font-size: 11px; line-height: 1.3; color: var(--muted); white-space: normal; transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.tv-status .pf { margin-top: 4px; }
.tv-b { color: var(--green) !important; font-weight: 600; opacity: 0; transform: translateY(4px); }
.tv-tick { width: 12px; height: 12px; flex: none; margin-top: 1px; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tv-tick path { stroke-dasharray: 12; stroke-dashoffset: 12; transition: stroke-dashoffset 500ms var(--ease-out) 200ms; }
.mk-travel.is-approved { border-color: rgba(29, 113, 72, 0.4); }
.mk-travel.is-approved .tv-a { opacity: 0; transform: translateY(-4px); }
.mk-travel.is-approved .tv-b { opacity: 1; transform: none; }
.mk-travel.is-approved .tv-tick path { stroke-dashoffset: 0; }

/* New-brief badge on the sidebar */
.mk-side li { position: relative; }
.mk-badge { position: absolute; right: 10px; top: 50%; margin-top: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--orange); color: var(--navy); font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; opacity: 0; transform: scale(0.6); transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out); }
.mk-badge.is-on { opacity: 1; transform: none; }

/* Scope meter that fills from 72% to 80% (transform only) */
.mk-fill.demo { background: transparent; }
.mk-fill-v { display: block; height: 100%; border-radius: inherit; background: var(--navy); transform-origin: left center; transform: scaleX(0.9); transition: transform 1200ms var(--ease-out); }
[data-demo].is-scope-up .mk-fill-v { transform: scaleX(1); }
[data-demo].is-resetting .mk-fill-v { transition-duration: 900ms; }

/* Invoice status swap */
.st-swap { display: grid !important; justify-items: end; }
.st-swap > .st { grid-area: 1 / 1; transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out); }
.st-swap .st-paid { opacity: 0; transform: scale(0.85); }
[data-demo].is-paid .st-swap .st-sent { opacity: 0; transform: scale(0.9); }
[data-demo].is-paid .st-swap .st-paid { opacity: 1; transform: none; }
[data-demo-inv] { position: relative; }
[data-demo-inv]::before { content: ""; position: absolute; inset: 2px -8px; border-radius: 8px; background: var(--green-wash); opacity: 0; transition: opacity 600ms ease; z-index: -1; }
.mk-inv { position: relative; z-index: 0; }
[data-demo].is-paid-flash [data-demo-inv]::before { opacity: 0.7; }

@media (prefers-reduced-motion: reduce) {
  .mk-tilt, .mk-par, .hero-copy { transform: none !important; }
}
