/* Bilkul marketing site. Follows docs/DESIGN_SYSTEM.md (Ledger Calm):
   Inter body, Manrope headings, type scale 12/14/16/18/24/32pt, 8px spacing,
   12px card and 8px control radius, no purple. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  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: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  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;
}

:root {
  /* Colours: the design system palette plus the tints the CRM already uses. */
  --canvas: #f3f1eb;
  --surface: #ffffff;
  --ink: #172536;
  --muted: #566575;
  --navy: #143149;
  --gold: #d9a55a;
  --line: #d8d9d5;
  --field: #87929c;
  --navy-tint: #e8edf1;
  --on-navy: #d8e3eb;
  --navy-line: #496176;
  --success: #176b43;
  --success-bg: #e8f4ed;
  --warning: #8a5715;
  --warning-bg: #fff2da;
  --danger: #963b3b;
  --danger-bg: #fbe9e8;

  /* Type scale (pt -> rem at 16px = 12pt). */
  --text-12: 1rem;
  --text-14: 1.1667rem;
  --text-16: 1.3333rem;
  --text-18: 1.5rem;
  --text-24: 2rem;
  --text-32: 2.6667rem;

  /* z-index scale. */
  --z-header: 10;
  --z-menu: 20;
  --z-skip: 30;

  --header-height: 80px;
  --shadow: 0 16px 40px rgba(10, 25, 40, .28);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--text-12);
  line-height: 1.5;
  font-synthesis: none;
}
h1, h2, h3 { margin: 0; font-family: 'Manrope Variable', 'Inter Variable', system-ui, sans-serif; line-height: 1.25; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header-height) + 16px); }
button, input, select, textarea { font: inherit; }

.icon { display: inline-block; flex: none; vertical-align: middle; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 880px; }

.skip-link {
  position: absolute; top: -80px; left: 16px; z-index: var(--z-skip);
  padding: 8px 16px; border-radius: 8px; background: var(--navy); color: white; font-weight: 700;
}
.skip-link:focus { top: 16px; }

.preview-banner {
  padding: 8px 16px; background: var(--warning-bg); color: var(--warning);
  font-weight: 700; text-align: center;
}

/* Buttons */
.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 24px; border: 1px solid transparent; border-radius: 8px;
  font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer;
}
.button-primary { background: var(--navy); border-color: var(--navy); color: white; }
.button-primary:hover { background: var(--ink); border-color: var(--ink); }
.button-quiet { background: var(--surface); border-color: var(--navy); color: var(--navy); }
.button-quiet:hover { background: var(--navy-tint); }
.button-light { background: white; border-color: white; color: var(--navy); }
.button-light:hover { background: var(--navy-tint); border-color: var(--navy-tint); }
.button-outline-light { background: transparent; border-color: var(--on-navy); color: white; }
.button-outline-light:hover { background: rgba(255, 255, 255, .08); }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.header-inner {
  position: relative; display: flex; min-height: var(--header-height); flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 8px;
}
.brand { display: block; flex: none; border-radius: 8px; }
.brand img { width: 101px; height: 40px; }
.menu-button {
  display: inline-flex; min-width: 48px; min-height: 48px; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--navy); font-weight: 700; cursor: pointer;
}
.menu-button .icon-x, .menu-button[aria-expanded='true'] .icon-menu { display: none; }
.menu-button[aria-expanded='true'] .icon-x { display: inline-block; }
.site-nav { display: flex; width: 100%; flex-direction: column; gap: 16px; padding-bottom: 8px; }
.nav-links { display: flex; flex-direction: column; gap: 8px; }
.nav-links a {
  display: flex; min-height: 48px; align-items: center; padding: 8px 16px; border-radius: 8px;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.nav-links a:hover { background: var(--canvas); }
.nav-links a[aria-current='page'] { color: var(--navy); font-weight: 700; box-shadow: inset 4px 0 0 var(--gold); }
.nav-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-actions .button { flex: 1 1 160px; }

/* With script, the phone menu opens from a button; without it, the links simply stack. */
.js .site-nav {
  display: none; position: absolute; top: 100%; right: 0; left: 0; z-index: var(--z-menu);
  max-height: calc(100vh - var(--header-height)); overflow-y: auto;
  padding: 16px; border-bottom: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 16px 24px rgba(20, 49, 73, .12);
}
.js .site-nav.is-open { display: flex; }

/* Hero and page heroes */
.hero, .page-hero { background: var(--navy); color: white; }
.hero { padding-block: 48px; }
.page-hero { padding-block: 48px; }
.hero-grid { display: grid; gap: 48px; }
.hero-copy { display: grid; min-width: 0; align-content: start; gap: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--gold); }
.eyebrow-dark { color: var(--navy); }
.hero h1, .page-hero h1 { max-width: 760px; font-size: var(--text-24); font-weight: 800; }
.page-hero h1 { margin-top: 16px; }
.lead { max-width: 680px; color: var(--on-navy); font-size: var(--text-14); }
.page-hero .lead { margin-top: 16px; }
.hero .lead a, .page-hero .lead a { color: white; }
.page-hero .actions { margin-top: 32px; }
.hero-points { display: grid; gap: 8px; color: var(--on-navy); }
.hero-points li { display: flex; align-items: flex-start; gap: 8px; }
.hero-points .icon { margin-top: 4px; color: var(--gold); }
.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.jump-links a {
  display: inline-flex; min-height: 44px; align-items: center; padding: 8px 16px;
  border: 1px solid var(--navy-line); border-radius: 999px; color: white; text-decoration: none;
}
.jump-links a:hover { border-color: var(--on-navy); background: rgba(255, 255, 255, .08); }

/* Example invoice and FBR answer */
.sample { display: grid; min-width: 0; align-content: start; gap: 16px; }
.sample figcaption { color: var(--on-navy); }
.sample-answer figcaption { color: var(--muted); }
.sample-card {
  display: grid; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.sample-answer .sample-card { box-shadow: 0 8px 24px rgba(20, 49, 73, .10); }
.sample-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.sample-label { color: var(--muted); font-weight: 600; }
.sample-number { font-family: 'Manrope Variable', sans-serif; font-size: var(--text-16); font-weight: 800; }
.status-pill {
  display: inline-flex; min-height: 32px; align-items: center; gap: 8px; padding: 0 16px;
  border-radius: 999px; font-weight: 700; white-space: nowrap;
}
.status-pill.is-success { background: var(--success-bg); color: var(--success); }
.status-pill.is-danger { background: var(--danger-bg); color: var(--danger); }
.sample-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-block: 16px; border-block: 1px solid var(--line); }
.sample-parties dt, .sample-totals dt { color: var(--muted); }
.sample-parties dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.sample-lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sample-lines th, .sample-lines td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.sample-lines th:first-child { padding-right: 16px; text-align: left; }
.sample-lines td + td { padding-left: 16px; }
.sample-lines thead th { color: var(--muted); font-weight: 600; }
.sample-lines tbody th { font-weight: 700; }
.sample-lines tbody th span { display: block; color: var(--muted); font-weight: 400; white-space: nowrap; }
.sample-totals { display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.sample-totals div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.sample-totals dd { margin: 0; font-weight: 600; }
.sample-totals .is-total { padding-top: 8px; border-top: 1px solid var(--line); }
.sample-totals .is-total dt, .sample-totals .is-total dd { color: var(--ink); font-family: 'Manrope Variable', sans-serif; font-size: var(--text-14); font-weight: 800; }
.sample-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sample-steps li {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px;
  background: var(--success-bg); color: var(--success); font-weight: 700;
}
.sample-fbr { padding: 8px 16px; border-left: 4px solid var(--gold); border-radius: 8px; background: var(--canvas); overflow-wrap: anywhere; }
.sample-fbr strong { display: block; font-variant-numeric: tabular-nums; }
.answer-lines { display: grid; gap: 8px; }
.answer-lines li { display: flex; align-items: flex-start; gap: 8px; padding: 8px 16px; border-radius: 8px; }
.answer-lines .icon { margin-top: 4px; }
.answer-lines strong { display: block; }
.answer-lines .is-ok { background: var(--success-bg); color: var(--success); }
.answer-lines .is-error { background: var(--danger-bg); color: var(--danger); }
.answer-note { color: var(--muted); }

/* Audience strip */
.audience { padding-block: 32px; border-bottom: 1px solid var(--line); background: var(--surface); }
.audience-title { color: var(--muted); font-family: 'Inter Variable', sans-serif; font-size: var(--text-12); font-weight: 700; }
.audience-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px 32px; margin-top: 16px; }
.audience-list li { display: flex; align-items: center; gap: 16px; font-weight: 700; }
.audience-list .icon { color: var(--navy); }

/* Sections */
.section { padding-block: 48px; }
.section-surface { background: var(--surface); }
.section-head { display: grid; max-width: 760px; gap: 16px; margin-bottom: 32px; }
.section-head h2 { font-size: var(--text-24); font-weight: 800; }
.section-head > p:last-child:not(.eyebrow) { color: var(--muted); font-size: var(--text-14); }
.section-more { margin-top: 24px; }

.card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.section-surface .card { background: var(--canvas); border-color: transparent; }
.section-surface .card-plain { background: var(--surface); border-color: var(--line); }
.card h3 { margin-top: 16px; font-size: var(--text-16); font-weight: 800; }
.card p { margin-top: 8px; color: var(--muted); }
.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.feature-icon {
  display: inline-grid; width: 48px; height: 48px; place-items: center; border-radius: 12px;
  background: var(--navy-tint); color: var(--navy);
}
.fbr-grid { display: grid; gap: 32px; align-items: start; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 6px solid var(--navy); }
.steps li::before {
  content: counter(step); display: inline-grid; width: 40px; height: 40px; place-items: center;
  border-radius: 999px; background: var(--navy); color: white;
  font-family: 'Manrope Variable', sans-serif; font-size: var(--text-14); font-weight: 800;
}

/* Security */
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; }
.check-grid li { display: flex; align-items: flex-start; gap: 16px; }
.check-grid > li > .icon { color: var(--navy); }
.check-grid h3 { font-size: var(--text-14); font-weight: 800; }
.check-grid p { margin-top: 8px; color: var(--muted); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; max-width: 960px; }
.price-card { display: flex; flex-direction: column; gap: 16px; border-top: 6px solid var(--navy); }
.price-card.is-featured { border-top-color: var(--gold); }
.price-card h3 { margin: 0; }
.price-card p { margin: 0; }
.price-card .price { color: var(--ink); font-family: 'Manrope Variable', sans-serif; font-size: var(--text-24); font-weight: 800; }
.price-card .button { align-self: flex-start; margin-top: auto; }
.tick-list { display: grid; gap: 8px; }
.tick-list li { display: flex; align-items: flex-start; gap: 8px; }
.tick-list .icon { margin-top: 4px; color: var(--success); }
.tick-list-wide { gap: 16px; }
.tick-list-wide li { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tick-list-wide li:last-child { padding-bottom: 0; border-bottom: 0; }
.tick-list-wide strong { color: var(--ink); }
.tick-list-wide span { color: var(--muted); }

/* Features page */
.feature-row { display: grid; gap: 32px; }
.feature-intro { display: grid; align-content: start; gap: 16px; }
.feature-intro h2 { font-size: var(--text-24); font-weight: 800; }
.feature-intro p { color: var(--muted); font-size: var(--text-14); }

/* FAQ */
.faq-groups { display: grid; gap: 48px; }
.faq-group > h2, .faq-group > h3 { margin-bottom: 16px; font-size: var(--text-18); font-weight: 800; }

/* Text sections (custom pages such as a privacy notice) */
.prose { display: grid; gap: 16px; }
.prose > h2 { font-size: var(--text-24); font-weight: 800; }
.prose h2:not(:first-child), .prose h3 { margin-top: 16px; }
.prose h3 { font-size: var(--text-16); font-weight: 800; }
.prose h4 { margin-top: 8px; font-size: var(--text-14); }
.prose p, .prose li { max-width: 72ch; color: var(--muted); }
.prose ul { display: grid; gap: 8px; padding-left: 24px; list-style: disc; }
.faq-answer h4, .faq-answer h5 { margin: 8px 0 0; color: var(--ink); font-size: var(--text-12); }
.contact-pending { margin-top: 16px; color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; color: var(--ink); font-size: var(--text-14); font-weight: 700; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--navy); }
.faq summary .icon { color: var(--navy); transition: transform .15s ease; }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq-answer { display: grid; gap: 8px; max-width: 72ch; padding-bottom: 24px; color: var(--muted); }
.faq-answer ul { display: grid; gap: 8px; padding-left: 24px; list-style: disc; }

/* Contact */
.contact-grid { display: grid; gap: 32px; align-items: start; }
.contact-side { display: grid; gap: 24px; }
.contact-side h2, .contact-form-card h2 { font-size: var(--text-16); font-weight: 800; }
.contact-side .card > .button { margin-top: 16px; }
.contact-side .tick-list { margin-top: 16px; }
.contact-list { display: grid; gap: 16px; margin-top: 16px; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; overflow-wrap: anywhere; }
.contact-list .icon { color: var(--navy); }
.contact-list a { font-weight: 700; }
.form-intro { margin-top: 8px; color: var(--muted); }
.contact-form { display: grid; gap: 24px; margin-top: 24px; }
.form-grid { display: grid; gap: 24px; }
.form-grid label { display: grid; gap: 8px; min-width: 0; font-weight: 700; }
.optional { color: var(--muted); font-weight: 400; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; min-height: 48px; padding: 8px 16px; border: 1px solid var(--field); border-radius: 8px;
  background: var(--surface); color: var(--ink); font-weight: 400;
}
.form-grid textarea { resize: vertical; }
.form-grid input:focus-visible, .form-grid select:focus-visible, .form-grid textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.form-warning { display: flex; align-items: flex-start; gap: 8px; padding: 16px; border-radius: 8px; background: var(--warning-bg); color: var(--warning); }
.form-warning .icon { margin-top: 4px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.form-status:empty { display: none; }
.form-status { padding: 16px; border-left: 6px solid var(--success); border-radius: 8px; background: var(--success-bg); color: var(--success); }

/* Call-to-action band */
.cta-band { padding-block: 48px; background: var(--navy); color: white; }
.cta-inner { display: grid; gap: 24px; align-items: center; }
.cta-inner h2 { font-size: var(--text-24); font-weight: 800; }
.cta-inner p { max-width: 640px; margin-top: 8px; color: var(--on-navy); font-size: var(--text-14); }

/* Footer */
.site-footer { padding-top: 48px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; }
.footer-brand { display: grid; align-content: start; gap: 16px; }
.footer-brand img { width: 111px; height: 44px; }
.footer-brand p { color: var(--muted); }
.site-footer h2 { font-family: 'Inter Variable', sans-serif; font-size: var(--text-12); font-weight: 700; color: var(--ink); }
.footer-links ul { display: grid; gap: 8px; margin-top: 16px; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); }
.footer-contact .contact-list a { min-height: 24px; color: var(--ink); }
.footer-legal { display: grid; gap: 8px; margin-top: 48px; padding-block: 24px 48px; border-top: 1px solid var(--line); color: var(--muted); }

@media (min-width: 720px) {
  .container { padding-inline: 32px; }
  .hero { padding-block: 64px; }
  .hero h1, .page-hero h1 { font-size: var(--text-32); }
  .page-hero { padding-block: 64px; }
  .section { padding-block: 64px; }
  .sample-card { padding: 24px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .span-2 { grid-column: 1 / -1; }
  .cta-inner { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 64px; }
  .fbr-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .feature-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; }
  .contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
  .contact-side { order: 2; }
}

@media (min-width: 1080px) {
  .brand img { width: 116px; height: 46px; }
  .menu-button { display: none; }
  .site-nav, .js .site-nav {
    position: static; display: flex; width: auto; max-height: none; flex-direction: row; align-items: center;
    gap: 24px; padding: 0; overflow: visible; border: 0; box-shadow: none; background: transparent;
  }
  .nav-links { flex-direction: row; gap: 0; }
  .nav-links a { padding: 8px 16px; }
  .nav-links a[aria-current='page'] { box-shadow: inset 0 -3px 0 var(--gold); border-radius: 8px 8px 0 0; }
  .nav-actions .button { flex: none; }
  .header-inner { flex-wrap: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary .icon { transition: none; }
}

@media print {
  .site-header, .cta-band, .skip-link, .preview-banner { display: none; }
  .hero, .page-hero { background: none; color: var(--ink); }
  .lead, .hero-points { color: var(--ink); }
}

/* ==========================================================================
   SITE-003: phone-first sections (owner approved preview v2, 2026-11-01).
   Base styles are for phones; larger screens are added at the end. Motion comes from
   site.js and stops for people who ask for reduced motion.
   ========================================================================== */

:root {
  --navy-deep: #0d2335;
  --device: #0a1826;
  --gold-soft: #f6e7cf;
  --veil: rgba(255, 255, 255, .07);
  --veil-strong: rgba(255, 255, 255, .12);
  --rule: rgba(216, 227, 235, .07);
  --ledger-gold: rgba(217, 165, 90, .24);
  --glow: rgba(217, 165, 90, .18);
  --shadow-soft: 0 8px 24px rgba(20, 49, 73, .10);
  --shadow-lift: 0 18px 40px rgba(20, 49, 73, .16);
  --shadow-chip: 0 12px 28px rgba(6, 18, 30, .32);
  --shadow-device: 0 30px 60px rgba(4, 12, 20, .5);
  --font-display: 'Manrope Variable', 'Inter Variable', system-ui, sans-serif;
  /* Product pictures draw the app at reduced size, so only they use these sizes (px at 16px). */
  --pic-7: .46875rem; --pic-9: .5625rem; --pic-10: .625rem; --pic-11: .6875rem; --pic-12: .75rem; --pic-13: .8125rem;
  --pic-14: .875rem; --pic-15: .9375rem; --pic-17: 1.0625rem; --pic-18: 1.125rem; --pic-20: 1.25rem;
}

html { overflow-x: clip; }
body { overflow-x: clip; }

.button { transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.button:active { transform: scale(.97); }
.button-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); box-shadow: 0 8px 20px rgba(217, 165, 90, .28); }
.button-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- Hero with the app on a phone ---------- */
.showcase-hero {
  position: relative; overflow: clip; padding-block: 32px 0;
  background: radial-gradient(90% 60% at 70% 75%, var(--glow), transparent 70%), var(--navy);
}
.hero-ledger {
  position: absolute; inset: -200px 0 -40px; pointer-events: none;
  background-image:
    linear-gradient(var(--ledger-gold), var(--ledger-gold)),
    linear-gradient(var(--ledger-gold), var(--ledger-gold)),
    linear-gradient(var(--ledger-gold), var(--ledger-gold)),
    repeating-linear-gradient(to bottom, transparent 0 39px, var(--rule) 39px 40px);
  background-size: 1px 100%, 1px 100%, 1px 100%, auto;
  background-position: 6% 0, 72% 0, calc(72% + 5px) 0, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}
.showcase-hero .hero-grid { position: relative; gap: 24px; }
.showcase-hero .hero-copy { gap: 16px; }
.showcase-hero h1 { max-width: 640px; font-size: var(--text-24); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.showcase-hero h1 em { font-style: normal; color: var(--gold); }
.showcase-hero .lead { max-width: 600px; font-size: var(--text-14); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.hero-ctas .button { flex: 1 1 auto; padding-inline: 14px; white-space: nowrap; }
.microcopy { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--on-navy); font-size: var(--text-12); }
.microcopy span { display: inline-flex; align-items: center; gap: 6px; }
.microcopy .icon { color: var(--gold); }
.microcopy-link { display: inline-flex; min-height: 24px; align-items: center; gap: 6px; color: white; font-weight: 700; }

.hero-scene { position: relative; width: 100%; max-width: 440px; height: 420px; margin-inline: auto; }
.phone {
  position: absolute; z-index: 3; top: 18px; left: 50%; width: 236px; height: 480px; margin-left: -118px;
  padding: 9px; border-radius: 38px; background: var(--device);
  box-shadow: var(--shadow-device), inset 0 0 0 2px var(--navy-line);
}
.phone::before { content: ''; position: absolute; z-index: 3; top: 17px; left: 50%; width: 70px; height: 20px; margin-left: -35px; border-radius: 12px; background: var(--device); }
.sheet {
  position: absolute; z-index: 1; display: grid; align-content: start; gap: 10px; width: 210px; height: 260px; padding: 16px;
  border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-size: var(--pic-13);
}
.sheet-left { top: 70px; left: 0; transform: rotate(-8deg); }
.sheet-right { top: 110px; right: 0; transform: rotate(7deg); opacity: .8; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; }
.mini-pill { padding: 2px 8px; border-radius: 999px; background: var(--success-bg); color: var(--success); font-family: 'Inter Variable', sans-serif; font-size: var(--pic-11); font-weight: 700; }
.mini-pill.is-warning { background: var(--warning-bg); color: var(--warning); }
.bar { display: block; height: 7px; border-radius: 4px; background: var(--navy-tint); }
.w90 { width: 90%; } .w80 { width: 80%; } .w70 { width: 70%; } .w66 { width: 66%; } .w60 { width: 60%; } .w45 { width: 45%; }
.chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; max-width: 190px; padding: 8px 12px;
  border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-chip); font-size: var(--pic-13); line-height: 1.3;
}
.chip strong { display: block; font-size: var(--pic-14); }
.chip > .icon { color: var(--success); }
.chip-lock > .icon { color: var(--navy); }
.chip-lock { top: 64px; right: 0; }
.chip-valid { top: 250px; left: 0; }
.desk-card { display: none; }
.sample-note { color: var(--muted); font-size: var(--pic-13); }

.perforation {
  position: absolute; left: 0; right: 0; z-index: 5; height: 12px; pointer-events: none;
  background: radial-gradient(circle at 10px 12px, var(--surface) 6px, transparent 6.5px) 0 0 / 20px 12px repeat-x;
}
.perforation-bottom { bottom: -1px; }
.perforation-top { top: -1px; background-image: radial-gradient(circle at 10px 0, var(--surface) 6px, transparent 6.5px); }

.proof-band { background: var(--surface); }
.proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-block: 28px 4px; }
.proof li { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border-radius: 12px; background: var(--canvas); font-weight: 700; font-size: var(--text-12); line-height: 1.3; }
.proof .icon-wrap { display: grid; width: 36px; height: 36px; flex: none; place-items: center; border-radius: 10px; background: var(--navy); color: var(--gold); }

/* ---------- The app on a phone, in the production app's colours (Liquid Rail) ---------- */
.app-light {
  --a-canvas: #eef1f4; --a-surface: #ffffff; --a-ink: #172536; --a-muted: #566575; --a-line: #d8dce1;
  --a-primary: #143149; --a-on-primary: #ffffff; --a-success: #176b43; --a-success-bg: #e8f4ed;
  --a-warning: #8a5715; --a-warning-bg: #fff2da; --a-glass: rgba(255, 255, 255, .72); --a-glass-line: rgba(255, 255, 255, .92);
  --a-active-bg: #143149; --a-active-ink: #ffffff; --a-glow: rgba(217, 165, 90, .2); --a-glow-2: rgba(20, 49, 73, .16);
  --a-shadow: 0 6px 16px rgba(20, 49, 73, .12);
}
.app-dark {
  --a-canvas: #0b1219; --a-surface: #141e28; --a-ink: #eaf0f5; --a-muted: #9daab7; --a-line: #26333f;
  --a-primary: #e6eef6; --a-on-primary: #0f2537; --a-success: #7fd4a4; --a-success-bg: #133022;
  --a-warning: #f1c27d; --a-warning-bg: #34280f; --a-glass: rgba(26, 37, 49, .74); --a-glass-line: rgba(255, 255, 255, .1);
  --a-active-bg: rgba(255, 255, 255, .14); --a-active-ink: #ffffff; --a-glow: rgba(217, 165, 90, .12); --a-glow-2: rgba(60, 110, 170, .3);
  --a-shadow: 0 6px 16px rgba(0, 0, 0, .4);
}
.app {
  position: relative; height: 100%; overflow: hidden; border-radius: 30px; color: var(--a-ink); font-size: var(--pic-12); line-height: 1.35;
  background: radial-gradient(90% 40% at 100% 0%, var(--a-glow), transparent 70%), radial-gradient(80% 40% at 0% 100%, var(--a-glow-2), transparent 70%), var(--a-canvas);
  transition: background-color .4s ease, color .4s ease;
}
.app-status { display: flex; justify-content: space-between; padding: 13px 22px 0; font-weight: 700; font-size: var(--pic-11); }
.p-bars { display: inline-flex; align-items: end; gap: 2px; height: 10px; }
.p-bars i { display: block; width: 3px; border-radius: 1px; background: currentColor; }
.p-bars i:nth-child(1) { height: 4px; } .p-bars i:nth-child(2) { height: 6px; } .p-bars i:nth-child(3) { height: 8px; } .p-bars i:nth-child(4) { height: 10px; }
.app-top {
  position: absolute; z-index: 2; top: 36px; left: 10px; right: 10px; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 6px 0 10px;
  border: 1px solid var(--a-glass-line); border-radius: 999px; background: var(--a-glass); box-shadow: var(--a-shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.app-top strong { flex: 1; font-family: var(--font-display); font-size: var(--pic-14); }
.app-top .icon { color: var(--a-muted); }
.app-av { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--a-primary); color: var(--a-on-primary); font-size: var(--pic-9); font-weight: 800; }
.app-body { display: grid; gap: 8px; padding: 84px 10px 72px; }
.a-card { display: grid; gap: 5px; padding: 10px 12px; border: 1px solid var(--a-line); border-radius: 16px; background: var(--a-surface); box-shadow: var(--a-shadow); }
.a-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.a-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--a-success-bg); color: var(--a-success); font-weight: 700; font-size: var(--pic-10); white-space: nowrap; }
.a-pill.is-warning { background: var(--a-warning-bg); color: var(--a-warning); }
.a-muted { color: var(--a-muted); }
.a-total { font-family: var(--font-display); font-size: var(--pic-20); font-weight: 800; font-variant-numeric: tabular-nums; }
.a-ok { display: inline-flex; align-items: center; gap: 3px; color: var(--a-success); font-weight: 700; }
.a-fbr { display: flex; align-items: center; gap: 8px; border-left: 3px solid var(--gold); }
.a-fbr strong { display: block; font-size: var(--pic-10); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.a-fbr .qr { width: 38px; height: 38px; flex: none; color: var(--a-ink); }
.a-btn { display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 32px; border-radius: 999px; background: var(--a-primary); color: var(--a-on-primary); font-weight: 700; }
.a-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a-stat { font-family: var(--font-display); font-size: var(--pic-17); font-weight: 800; font-variant-numeric: tabular-nums; }
.app-nav { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 12px; display: flex; align-items: center; gap: 6px; }
.app-tabs {
  display: grid; flex: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 3px;
  border: 1px solid var(--a-glass-line); border-radius: 999px; background: var(--a-glass); box-shadow: var(--a-shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.app-tabs span { display: grid; justify-items: center; gap: 1px; padding: 5px 0; border-radius: 999px; color: var(--a-muted); font-weight: 600; }
.app-tabs span:not(.is-on) b { display: none; }
.app-tabs b { font-weight: 600; }
.app-tabs span.is-on { padding: 4px 0 3px; background: var(--a-active-bg); color: var(--a-active-ink); font-size: var(--pic-7); }
.app-plus { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 50%; background: var(--a-primary); color: var(--a-on-primary); box-shadow: var(--a-shadow); }

/* ---------- Who it is for (tabs) ---------- */
.audience-tabs h2 { font-size: var(--text-24); font-weight: 800; }
.audience-tabs .container > p { margin-top: 8px; color: var(--muted); }
.tabs { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.js .tabs { display: grid; }
.tabs .tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 359px) { .tabs { grid-template-columns: minmax(0, 1fr); } }
.tab {
  display: flex; min-height: 52px; align-items: center; gap: 10px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: var(--text-12); line-height: 1.25; text-align: left; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.tab .icon { color: var(--navy); }
.tab[aria-selected="true"] { border-color: var(--navy); background: var(--navy); color: white; }
.tab[aria-selected="true"] .icon { color: var(--gold); }
.panel { display: grid; gap: 20px; margin-top: 16px; padding: 20px; border-radius: 16px; background: var(--canvas); }
.js .panel:not(.is-current) { display: none; }
.panel h3 { font-size: var(--text-16); font-weight: 800; }
.panel-points { display: grid; gap: 10px; margin-top: 14px; }
.panel-points li { display: flex; gap: 10px; align-items: flex-start; }
.panel-points .icon { margin-top: 3px; color: var(--success); }
.panel-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface); color: var(--muted); font-size: var(--text-12); }
.panel-note .icon { margin-top: 3px; }
.panel-viz { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-soft); font-size: var(--pic-14); }
.viz-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--canvas); font-variant-numeric: tabular-nums; }
.viz-label { color: var(--muted); font-size: var(--pic-13); font-weight: 600; }
.panel.is-entering { animation: panel-in .35s ease; }

/* ---------- Tiles and their pictures ---------- */
.tile {
  position: relative; display: grid; align-content: start; gap: 12px; min-width: 0; padding: 18px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile:active { transform: scale(.985); }
.tile h3 { font-size: var(--text-14); font-weight: 800; }
.tile p { color: var(--muted); }
.section-surface .tile { background: var(--surface); }
.viz { position: relative; display: grid; gap: 8px; align-content: start; min-height: 132px; padding: 14px; overflow: hidden; border-radius: 12px; background: var(--navy-tint); font-size: var(--pic-13); line-height: 1.35; }
.viz-card { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-soft); }
.viz-muted { color: var(--muted); }
.viz-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; background: var(--canvas); font-weight: 700; font-size: var(--pic-12); font-variant-numeric: tabular-nums; white-space: nowrap; }
.viz-tag.is-ok { background: var(--success-bg); color: var(--success); }
.viz-tag.is-bad { background: var(--danger-bg); color: var(--danger); }
.viz-tag.is-warn { background: var(--warning-bg); color: var(--warning); }
.viz-tag.is-navy { background: var(--navy); color: white; }
.viz-tag.is-gold { background: var(--gold); color: var(--navy-deep); }
.viz-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.viz-tags.is-column { flex-direction: column; align-items: flex-end; }
.viz-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.viz .qr { width: 40px; height: 40px; color: var(--navy); }
.track { position: relative; height: 8px; overflow: hidden; border-radius: 4px; background: var(--surface); }
.track > i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--gold); }
.grow-x { transform-origin: left; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.grow-y { transform-origin: bottom; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.rise { transition: transform .6s ease, opacity .6s ease; }
.rise:nth-child(2) { transition-delay: .12s; } .rise:nth-child(3) { transition-delay: .24s; } .rise:nth-child(4) { transition-delay: .36s; }
/* With script and motion, a picture starts part-way (still visible) and settles when it scrolls into view. */
.anim-ready .tile:not(.in-view) .grow-x { transform: scaleX(.25); }
.anim-ready .tile:not(.in-view) .grow-y { transform: scaleY(.3); }
.anim-ready .tile:not(.in-view) .rise { transform: translateY(10px); opacity: .55; }
.strike { text-decoration: line-through; text-decoration-color: var(--danger); text-decoration-thickness: 2px; }
.select { display: grid; gap: 4px; }
.select .opt { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 6px; background: var(--surface); }
.select .opt.is-picked { outline: 2px solid var(--navy); }
.calc { display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.calc .viz-line { padding: 6px 10px; border-radius: 8px; background: var(--surface); }
.calc .is-total { background: var(--navy); color: white; font-weight: 800; }
.arrow-flow { display: flex; align-items: center; gap: 8px; }
.arrow-flow .icon { color: var(--navy); }
.mini-chart { display: flex; align-items: end; gap: 6px; height: 70px; }
.mini-chart i { flex: 1; border-radius: 4px 4px 0 0; background: var(--navy); }
.mini-chart i:last-child { background: var(--gold); }
.h40 { height: 40%; } .h48 { height: 48%; } .h62 { height: 62%; } .h80 { height: 80%; } .h92 { height: 92%; }
.aging { display: flex; height: 12px; overflow: hidden; border-radius: 6px; }
.aging i { display: block; height: 100%; }
.aging .a1 { width: 58%; } .aging .a2 { width: 27%; } .aging .a3 { width: 15%; }
.a1 { background: var(--success); } .a2 { background: var(--gold); } .a3 { background: var(--danger); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: var(--pic-12); }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.paper-stack { position: relative; width: 100px; height: 96px; }
.paper-stack span { position: absolute; top: 6px; left: 12px; width: 64px; height: 84px; border-radius: 6px; background: var(--surface); box-shadow: var(--shadow-soft); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.paper-stack span:nth-child(1) { transform: rotate(-10deg) translateX(-6px); }
.paper-stack span:nth-child(2) { transform: rotate(-3deg); }
.paper-stack span:nth-child(3) { transform: rotate(5deg) translateX(10px); }
.anim-ready .tile:not(.in-view) .paper-stack span { transform: none; }
.avatars { display: flex; }
.avatars b { display: grid; width: 34px; height: 34px; place-items: center; margin-left: -8px; border: 2px solid var(--navy-tint); border-radius: 50%; background: var(--navy); color: white; font-size: var(--pic-12); }
.avatars b:first-child { margin-left: 0; background: var(--gold); color: var(--navy-deep); }

/* ---------- Problems and fixes ---------- */
.problems { display: grid; gap: 14px; }
.problem .kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--danger); font-weight: 700; font-size: var(--text-12); }
.problem .fix { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--success-bg); color: var(--success); }
.problem .fix .icon { flex: none; margin-top: 2px; }
.problem .fix span { color: var(--ink); }
.problem .fix strong { color: var(--success); }
.dup .viz-card + .viz-card { margin-top: -34px; margin-left: 22px; transform: rotate(3deg); opacity: .9; }

/* ---------- Invoice story ---------- */
.journey {
  position: relative; overflow-x: clip; padding-block: 56px 24px; color: white;
  background: radial-gradient(70% 40% at 15% 8%, var(--glow), transparent 70%), var(--navy-deep);
}
.journey .section-head > p:last-child:not(.eyebrow), .section-navy .section-head > p:last-child:not(.eyebrow) { color: var(--on-navy); }
.journey-grid { display: grid; gap: 8px; }
.journey-stage-wrap { position: sticky; top: calc(var(--header-height) + 8px); z-index: 2; align-self: start; padding-bottom: 14px; background: var(--navy-deep); }
.journey-stage-wrap::after { content: ''; position: absolute; left: 0; right: 0; bottom: -24px; height: 24px; background: linear-gradient(var(--navy-deep), transparent); pointer-events: none; }
.rail { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 12px; --progress: 1; }
.rail::before, .rail::after { content: ''; position: absolute; top: 7px; left: 10%; width: 80%; height: 2px; background: var(--navy-line); }
.rail::after { background: var(--gold); transform: scaleX(var(--progress)); transform-origin: left; transition: transform .45s ease; }
.rail li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; color: var(--on-navy); font-size: var(--pic-11); text-align: center; }
.rail li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--gold); background: var(--gold); transition: background-color .3s, border-color .3s; }
.journey.is-live .rail li:not(.is-done)::before { border-color: var(--navy-line); background: var(--navy-deep); }
.rail li.is-current { color: white; font-weight: 700; }
.j-card { display: grid; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.stack { display: grid; }
.stack > * { grid-area: 1 / 1; }
.stack.is-inline { display: inline-grid; }
.pill-stack { justify-items: end; }
.j-lines, .j-totals { display: none; }
.j-lines td.state { width: 64px; }
.tick { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-weight: 700; font-size: var(--pic-13); }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--navy); animation: blink 1s steps(1) infinite; }
.editing { outline: 2px dashed var(--gold); outline-offset: 2px; border-radius: 4px; }
.j-total-mini { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.j-total-mini strong { font-family: var(--font-display); font-size: var(--pic-18); }
.lock-mark { display: inline-flex; align-items: center; gap: 6px; }
.lock-mark .icon { color: var(--navy); }
.slot { min-height: 72px; }
.slot-box { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--canvas); font-size: var(--pic-15); }
.slot-box.is-gold { border-left: 4px solid var(--gold); }
.slot-box.is-warning { background: var(--warning-bg); color: var(--warning); }
.slot-box .qr { width: 48px; height: 48px; flex: none; color: var(--navy); }
.slot-box strong { display: block; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sending { display: grid; flex: 1; gap: 8px; }
.progress { position: relative; height: 6px; overflow: hidden; border-radius: 3px; background: var(--line); }
.progress::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 3px; background: var(--gold); animation: travel 1.4s ease-in-out infinite; }
.spin { display: inline-flex; animation: spin 1s linear infinite; }
/* An element shows in the stages its data-at lists ("u" = outcome unknown). Old fades out, then new fades in. */
.journey-stage [data-at] { opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
.journey-stage[data-stage="0"] [data-at~="0"],
.journey-stage[data-stage="1"] [data-at~="1"],
.journey-stage[data-stage="2"] [data-at~="2"],
.journey-stage[data-stage="3"]:not([data-unknown]) [data-at~="3"],
.journey-stage[data-stage="3"][data-unknown] [data-at~="u"],
.journey-stage[data-stage="4"] [data-at~="4"] { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease .15s, transform .3s ease .15s, visibility 0s linear .15s; }
.journey-steps { display: grid; }
.js .journey-steps { padding-bottom: 16vh; }
.journey-steps li { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding-block: 24px; transition: opacity .3s ease; }
.js .journey-steps li { min-height: 64vh; }
.journey.is-live .journey-steps li:not(.is-active) { opacity: .45; }
.step-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; }
.journey-steps h3 { font-size: var(--text-16); font-weight: 800; }
.journey-steps p { max-width: 52ch; color: var(--on-navy); }
.link-button {
  align-self: flex-start; display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--on-navy); border-radius: 10px; background: transparent; color: white; font-weight: 700; text-align: left; cursor: pointer;
}
.link-button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }

/* ---------- Feature tiles: swipe on phones, a bento grid on large screens ---------- */
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px;
  margin-inline: -16px; padding: 4px 16px 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.carousel-nav { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.js .carousel-nav { display: flex; }
.dots { display: flex; gap: 6px; }
.dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .25s ease, background-color .25s ease; }
.dots span.is-on { width: 22px; background: var(--navy); }
.arrows { display: flex; gap: 8px; }
.arrow { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--navy); cursor: pointer; }
.arrow:disabled { opacity: .35; cursor: default; }
.swipe-hint { color: var(--muted); font-size: var(--text-12); }
.feature .viz { min-height: 148px; }

/* ---------- The app ---------- */
.app-section { overflow-x: clip; background: radial-gradient(60% 50% at 85% 60%, var(--glow), transparent 70%), var(--canvas); }
.app-grid { display: grid; gap: 28px; }
.app-copy .section-head { margin-bottom: 24px; }
.app-points { display: grid; gap: 16px; }
.app-points li { display: flex; gap: 14px; align-items: flex-start; }
.app-points li > .icon { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--navy); color: var(--gold); }
.app-points h3 { font-size: var(--text-14); font-weight: 800; }
.app-points p { margin-top: 2px; color: var(--muted); }
.app-note { margin-top: 18px; color: var(--muted); font-size: var(--text-12); }
.app-stage { display: grid; justify-items: center; gap: 20px; }
.segmented { position: relative; z-index: 3; display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-soft); }
.segmented button { display: inline-flex; min-height: 40px; align-items: center; gap: 6px; padding: 6px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.segmented button[aria-checked="true"] { background: var(--navy); color: white; }
.app-phones { position: relative; width: 100%; max-width: 380px; height: 470px; }
.app-phones .phone { top: 0; left: 0; margin-left: 0; width: 210px; height: 440px; border-radius: 34px; }
.app-phones .phone .app { border-radius: 26px; }
.app-phones .phone-a { z-index: 1; transform: rotate(-5deg); transform-origin: bottom left; }
.app-phones .phone-b { z-index: 2; top: 24px; left: auto; right: 0; transform: rotate(4deg); transform-origin: bottom right; }

/* ---------- Getting started: a timeline on phones, cards on large screens ---------- */
.timeline { position: relative; display: grid; gap: 20px; counter-reset: step; --line-fill: 1; }
.timeline::before, .timeline::after { content: ''; position: absolute; top: 20px; bottom: 20px; left: 19px; width: 3px; border-radius: 2px; background: var(--line); }
.timeline::after { background: var(--gold); transform: scaleY(var(--line-fill)); transform-origin: top; }
.timeline-step { gap: 10px; padding: 0 0 0 56px; border: 0; background: transparent; counter-increment: step; --fill: 1; }
.section-surface .timeline-step { background: transparent; }
.timeline-step::before {
  content: counter(step); position: absolute; z-index: 1; top: 0; left: 0; display: grid; width: 40px; height: 40px; place-items: center;
  border-radius: 50%; background: var(--navy); color: white; font-family: var(--font-display); font-size: var(--text-14); font-weight: 800;
  box-shadow: 0 0 0 4px var(--surface);
}
.timeline-step h3 { padding-top: 6px; }
.timeline-step .viz { min-height: 120px; background: var(--canvas); }
.needs { display: grid; gap: 20px; margin-top: 32px; padding: 20px; border-radius: 16px; background: var(--navy); color: white; }
.needs h3 { font-size: var(--text-14); font-weight: 800; }
.needs ul { display: grid; gap: 10px; margin-top: 12px; }
.needs li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-navy); }
.needs li .icon { flex: none; margin-top: 3px; color: var(--gold); }
.needs li strong { color: white; }
.needs a { color: white; }

/* ---------- Security ---------- */
.section-navy { background: var(--navy); color: white; }
.security-grid { display: grid; gap: 28px; }
.security-grid .section-head { margin-bottom: 0; }
.vault { position: relative; min-height: 300px; }
.vault-card { position: absolute; display: grid; gap: 8px; width: min(300px, 86%); padding: 14px; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-size: var(--pic-14); }
.vault-card h3 { display: flex; align-items: center; gap: 8px; font-size: var(--pic-15); font-weight: 800; }
.vault-card h3 .icon { color: var(--navy); }
.vault-history { top: 0; left: 0; background: var(--canvas); }
.vault-record { top: 84px; left: 10%; }
.vault-token { top: 196px; right: 0; outline: 2px solid var(--gold); outline-offset: -2px; }
.log { display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.log li { display: flex; gap: 10px; color: var(--muted); }
.log time { color: var(--ink); font-weight: 600; }
.masked { display: flex; justify-content: space-between; gap: 12px; padding-block: 4px; border-bottom: 1px solid var(--line); }
.masked span:last-child { font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.token-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 1px solid var(--field); border-radius: 8px; }
.sec-tiles { display: grid; gap: 10px; }
.sec-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 16px; border: 1px solid var(--navy-line); border-radius: 14px; background: var(--veil); transition: background-color .2s ease, transform .2s ease; }
.sec-tile:active { transform: scale(.985); }
.sec-icon { grid-row: span 3; display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: var(--navy-deep); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.sec-tile h3 { font-size: var(--text-14); font-weight: 800; }
.sec-tile p { color: var(--on-navy); font-size: var(--text-12); }
.sec-tile a { color: white; }
.sec-proof { justify-self: start; margin-top: 6px; padding: 3px 8px; border-radius: 6px; background: var(--navy-deep); color: var(--gold); font-size: var(--text-12); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Fit check ---------- */
.fit { display: grid; gap: 14px; }
.fit-card { display: grid; align-content: start; gap: 14px; padding: 20px; border-radius: 16px; background: var(--canvas); }
.fit-card.is-yes { border-top: 5px solid var(--success); }
.fit-card.is-no { border-top: 5px solid var(--field); }
.fit-card h3 { font-size: var(--text-14); font-weight: 800; }
.fit-card ul { display: grid; gap: 10px; }
.fit-card li { display: flex; gap: 10px; align-items: flex-start; }
.fit-card li .icon { flex: none; margin-top: 3px; }
.fit-card.is-yes li .icon { color: var(--success); }
.fit-card.is-no li .icon { color: var(--field); }
.section:not(.section-surface) .fit-card { background: var(--surface); }

/* ---------- Call to action with a checklist ---------- */
.demo-cta { position: relative; overflow: clip; padding-block: 56px 64px; }
.cta-sheets { position: absolute; inset: 0; pointer-events: none; }
.cta-sheet { position: absolute; width: 150px; height: 200px; padding: 32px 18px; border: 1px solid var(--navy-line); border-radius: 10px; background: repeating-linear-gradient(to bottom, transparent 0 18px, var(--veil) 18px 20px) content-box; }
.cta-sheet.s1 { top: 8%; right: -30px; transform: rotate(-8deg); }
.cta-sheet.s2 { top: 52%; right: 20%; transform: rotate(6deg); opacity: .55; }
.cta-sheet.s3 { bottom: -30%; left: -20px; transform: rotate(-4deg); opacity: .5; }
.demo-cta .cta-inner { position: relative; }
.cta-buttons { display: grid; gap: 10px; margin-top: 22px; }
.ready { display: grid; gap: 8px; padding: 14px 16px; border: 1px dashed var(--navy-line); border-radius: 14px; color: var(--on-navy); font-size: var(--text-12); }
.ready strong { color: white; }
.ready li { display: flex; gap: 8px; align-items: flex-start; }
.ready li .icon { flex: none; margin-top: 3px; color: var(--gold); }

/* ---------- Call to action bar on phones ---------- */
.mobile-cta {
  position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -10px 30px rgba(20, 49, 73, .14);
  transform: translateY(110%); transition: transform .3s ease; visibility: hidden;
}
.mobile-cta.is-shown { transform: none; visibility: visible; }
.mobile-cta .button { min-height: 50px; }
.wa-button { width: 50px; padding: 0; border-color: var(--navy); background: var(--surface); color: var(--navy); }
.footer-legal { padding-bottom: 112px; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes travel { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes panel-in { from { opacity: .4; transform: translateY(8px); } }

@media (min-width: 600px) {
  .showcase-hero h1 { font-size: var(--text-32); }
  .proof { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .panel { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; padding: 24px; }
  .problems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-buttons { grid-template-columns: auto auto; justify-content: start; }
  .sec-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 28px; }
}

@media (min-width: 720px) {
  .j-lines { display: table; }
  .j-totals { display: grid; }
  .j-total-mini { display: none; }
  .j-card { padding: 22px; gap: 14px; }
  .rail li { font-size: var(--pic-13); }
  .carousel { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
  .js .carousel-nav { display: none; }
}

@media (min-width: 960px) {
  .showcase-hero { padding-top: 56px; }
  .showcase-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: 48px; }
  .showcase-hero .hero-copy { padding-top: 40px; padding-bottom: 72px; gap: 20px; }
  .showcase-hero h1 { font-size: var(--text-32); }
  .showcase-hero .lead { font-size: var(--text-14); }
  .hero-ctas .button { flex: none; padding-inline: 24px; }
  .hero-scene { max-width: none; height: 600px; }
  .desk-card { position: absolute; z-index: 2; top: 0; left: -8px; display: block; width: 340px; font-size: var(--pic-15); }
  .hero-scene .phone { top: 170px; left: auto; right: 0; margin-left: 0; }
  .sheet-left { top: 30px; left: -48px; transform: rotate(-7deg); opacity: .5; }
  .sheet-right { display: none; }
  .chip-lock { top: 72px; right: -8px; }
  .chip-valid { top: auto; bottom: 64px; left: 24px; }
  .audience-tabs h2 { font-size: var(--text-24); }
  .tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .tabs .tab:last-child:nth-child(odd) { grid-column: auto; }
  .problems { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .journey-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; }
  .journey-stage-wrap { top: calc(var(--header-height) + 40px); padding-bottom: 0; background: transparent; }
  .journey-stage-wrap::after { display: none; }
  .js .journey-steps li { min-height: 72vh; }
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
  .bento .span-2 { grid-column: span 2; }
  .bento .span-all { grid-column: 1 / -1; }
  .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
  .sec-tile:hover { background: var(--veil-strong); transform: translateY(-3px); }
  .app-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; }
  .app-phones { max-width: 460px; height: 560px; }
  .app-phones .phone { width: 236px; height: 500px; border-radius: 38px; }
  .app-phones .phone .app { border-radius: 30px; }
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .timeline::before, .timeline::after { display: none; }
  .timeline-step { padding: 20px; border: 1px solid var(--line); border-top: 6px solid var(--navy); border-radius: 14px; background: var(--canvas); }
  .section-surface .timeline-step { background: var(--canvas); }
  .timeline-step::before { position: static; box-shadow: none; }
  .timeline-step::after { content: ''; position: absolute; top: -6px; left: -1px; right: -1px; height: 6px; border-radius: 14px 14px 0 0; background: var(--gold); transform: scaleX(var(--fill)); transform-origin: left; }
  .timeline-step .viz { background: var(--navy-tint); }
  .security-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 56px; }
  .sec-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-column: 1 / -1; }
  .demo-cta .cta-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
  .mobile-cta { display: none; }
  .footer-legal { padding-bottom: 48px; }
}

@media (min-width: 1080px) {
  .nav-links a { padding-inline: 10px; white-space: nowrap; }
  .nav-actions { flex-wrap: nowrap; }
  .nav-actions .button { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .caret, .progress::after, .spin, .panel.is-entering { animation: none; }
  .button, .tile, .sec-tile, .mobile-cta, .app, .rail::after, .rail li::before, .journey-stage [data-at],
  .grow-x, .grow-y, .rise, .paper-stack span { transition: none; }
}

@media print {
  .mobile-cta, .hero-scene, .journey-stage-wrap, .app-stage, .vault, .cta-sheets { display: none; }
  .showcase-hero, .journey, .section-navy { background: none; color: var(--ink); }
}
