/* ==========================================================================
   FIRSTPAGE OPERATIONS — Global Stylesheet
   Brand: Deep Navy #07182E · Operations Green #0F9F6E · Slate #667085
   Type:  Sora (headlines) · Inter (UI / body)
   Plain CSS3. No build step. Safe for Laravel Blade conversion.
   --------------------------------------------------------------------------
   01. Design tokens
   02. Reset & base
   03. Layout primitives
   04. Typography
   05. Buttons
   06. Site header & navigation
   07. Hero
   08. Software UI mockups (dashboard, tables, stats)
   09. Estimate-to-payment workflow
   10. Feature / split sections
   11. Branded document mockups
   12. Industries
   13. Roles & permissions
   14. Pricing
   15. FirstPage ecosystem
   16. CTA band
   17. Site footer
   18. Legal pages
   19. Contact form
   20. FAQ accordion
   21. Utilities & motion
   22. Responsive
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand core */
  --navy:            #07182E;
  --navy-900:        #0A1F3A;
  --navy-800:        #0E2A47;
  --navy-700:        #163457;
  --navy-600:        #1E4368;

  --green:           #0F9F6E;
  --green-600:       #0C8B5F;
  --green-700:       #0A7350;
  --green-100:       #E6F5EF;
  --green-50:        #F1FAF6;

  --slate:           #667085;
  --slate-400:       #98A2B3;
  --slate-300:       #C3C9D4;

  /* Neutrals */
  --white:           #FFFFFF;
  --bg:              #FFFFFF;
  --bg-alt:          #F7F9FC;
  --bg-alt-2:        #EFF3F8;
  --border:          #E3E8EF;
  --border-strong:   #D3DAE4;

  /* Status */
  --amber:           #B54708;
  --amber-bg:        #FEF6EE;
  --red:             #B42318;
  --red-bg:          #FEF3F2;

  /* Typography */
  --font-head: "Sora", "Segoe UI", Tahoma, Geneva, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Space */
  --gutter: 24px;
  --max: 1200px;
  --max-narrow: 820px;
  --section-y: 104px;
  --section-y-sm: 68px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Elevation — flat, restrained. No glossy effects. */
  --shadow-sm: 0 1px 2px rgba(7, 24, 46, .06);
  --shadow-md: 0 4px 16px rgba(7, 24, 46, .07);
  --shadow-lg: 0 18px 48px rgba(7, 24, 46, .12);
  --shadow-nav: 0 1px 0 rgba(7, 24, 46, .08);

  --ease: cubic-bezier(.4, 0, .2, 1);
}


/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

button { font: inherit; cursor: pointer; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Accessible focus — always visible, never removed. */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   03. LAYOUT PRIMITIVES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--max-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-sm); }
.section--alt { background: var(--bg-alt); }
.section--alt2 { background: var(--bg-alt-2); }

.section--navy {
  background: var(--navy);
  color: #DCE4EE;
}
.section--navy h2,
.section--navy h3,
.section--navy .stat-value { color: var(--white); }

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

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: center;
}
.split--flip .split__media { order: -1; }


/* ==========================================================================
   04. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 700; line-height: 1.25; }
h4 { font-size: 1.06rem; font-weight: 700; line-height: 1.35; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 18px;
}
.section--navy .eyebrow { color: #34C795; }

.lede {
  font-size: 1.17rem;
  color: var(--slate);
  max-width: 62ch;
}
.section--navy .lede,
.section--navy p { color: #B7C4D4; }

.section-head {
  max-width: 72ch;
  margin-bottom: 56px;
}
.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.statement {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.25;
  letter-spacing: -.02em;
}

/* Short, strong stacked copy lines */
.lines {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--navy);
}
.lines li { color: var(--slate); font-weight: 500; }
.section--navy .lines li { color: #B7C4D4; }

.text-green { color: var(--green); }
.text-slate { color: var(--slate); }


/* ==========================================================================
   05. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.btn--primary:hover { background: var(--green-600); border-color: var(--green-600); }

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--navy);
}
.btn--outline:hover { border-color: var(--navy); background: var(--bg-alt); }

.btn--onnavy {
  background: transparent;
  border-color: rgba(255, 255, 255, .34);
  color: var(--white);
}
.btn--onnavy:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

.btn--white {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}
.btn--white:hover { background: #EDF2F7; border-color: #EDF2F7; }

.btn--sm { min-height: 42px; padding: 10px 18px; font-size: .82rem; }
.btn--lg { min-height: 56px; padding: 16px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.textlink {
  font-weight: 700;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.textlink::after { content: "\2192"; transition: transform .18s var(--ease); }
.textlink:hover::after { transform: translateX(3px); }


/* ==========================================================================
   06. SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand img { width: 280px; height: auto; }

.nav { margin-left: auto; }
/* Drawer-only actions. Desktop uses .header-actions--desktop instead. */
.nav__actions { display: none; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  color: var(--navy);
  font-size: .95rem;
  font-weight: 600;
  padding: 8px 0;
  position: relative;
}
.nav__link:hover { color: var(--green-700); text-decoration: none; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform .18s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}
.header-actions .login-link {
  color: var(--navy);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 8px 4px;
}
.header-actions .login-link:hover { color: var(--green-700); text-decoration: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  background: transparent;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 0;
  position: relative;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bar { top: 50%; margin-top: -1px; }
.nav-toggle__bar::before { content: ""; top: -6px; }
.nav-toggle__bar::after  { content: ""; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-90deg); }


/* ==========================================================================
   07. HERO
   ========================================================================== */
.hero {
  background: var(--navy);
  color: #C9D5E3;
  padding-block: 92px 104px;
  position: relative;
  overflow: hidden;
}
/* Structural navy field with a restrained grid — no gradient as a device. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 60px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #34C795;
  margin-bottom: 22px;
}
.hero__eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--green);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 22px;
}

.hero__terms {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.hero__terms span { color: #34C795; }

.hero__sub {
  font-size: 1.12rem;
  color: #B7C4D4;
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero__meta {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  font-size: .93rem;
  color: #93A3B8;
}
.hero__meta strong { color: var(--white); font-weight: 700; }


/* ==========================================================================
   08. SOFTWARE UI MOCKUPS
   Pure HTML/CSS "product" visuals. Illustrative sample data only.
   ========================================================================== */
.ui {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--navy);
}
.ui--flat { box-shadow: var(--shadow-md); }

.ui__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ui__mark { height: 20px; width: auto; opacity: .95; }
.ui__bar-title {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #93A3B8;
}
.ui__bar-right {
  margin-left: auto;
  font-size: .75rem;
  color: #93A3B8;
  letter-spacing: .04em;
}

.ui__body { padding: 22px; }
.ui__body + .ui__body { border-top: 1px solid var(--border); }

.ui__section-title {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}

/* Stat tiles */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.stat {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 15px 16px;
}
.stat--accent {
  background: var(--green-50);
  border-color: rgba(15, 159, 110, .28);
}
.stat__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 7px;
}
.stat__value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--navy);
}
.stat--accent .stat__value { color: var(--green-700); }
.stat__note {
  font-size: .78rem;
  color: var(--slate);
  margin-top: 5px;
}

/* Data table */
.ui-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ui-table th {
  text-align: left;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.ui-table td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
  vertical-align: middle;
}
.ui-table tr:last-child td { border-bottom: 0; }
.ui-table .num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
.ui-table .name { font-weight: 600; }
.ui-table .muted { color: var(--slate); }

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge--paid { background: var(--green-100); color: var(--green-700); }
.badge--open { background: var(--amber-bg); color: var(--amber); }
.badge--over { background: var(--red-bg); color: var(--red); }
.badge--neutral { background: var(--bg-alt-2); color: var(--slate); }

/* Progress / meter */
.meter {
  height: 8px;
  background: var(--bg-alt-2);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  background: var(--green);
  border-radius: var(--r-pill);
}
.meter__fill--slate { background: var(--slate-400); }
.meter-label {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--slate);
  margin-bottom: 7px;
}
.meter-label strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.meter-group > * + * { margin-top: 16px; }

/* Simple bar chart (revenue by customer) */
.barchart { display: grid; gap: 14px; }
.barchart__row { display: grid; grid-template-columns: 130px 1fr auto; gap: 14px; align-items: center; }
.barchart__label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.barchart__track { height: 10px; background: var(--bg-alt-2); border-radius: var(--r-pill); overflow: hidden; }
.barchart__bar { height: 100%; background: var(--green); border-radius: var(--r-pill); }
.barchart__bar--muted { background: #A9C2D6; }
.barchart__val { font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Profit summary block */
.profit {
  display: grid;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
}
.profit__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .95rem;
  color: var(--slate);
}
.profit__line strong { font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 700; }
.profit__line--total {
  border-top: 1px solid var(--border-strong);
  padding-top: 12px;
  margin-top: 2px;
}
.profit__line--total span { color: var(--navy); font-weight: 700; }
.profit__line--total strong {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-700);
}


/* ==========================================================================
   09. ESTIMATE-TO-PAYMENT WORKFLOW
   ========================================================================== */
.flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  counter-reset: flowstep;
}
.flow__step {
  position: relative;
  padding: 0 16px;
  text-align: center;
}
.flow__step + .flow__step { border-left: 1px solid var(--border); }
.section--navy .flow__step + .flow__step { border-left-color: rgba(255, 255, 255, .14); }

.flow__num {
  counter-increment: flowstep;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
}
.flow__num::before { content: counter(flowstep); }
.section--navy .flow__num {
  background: rgba(15, 159, 110, .18);
  color: #34C795;
  border: 1px solid rgba(15, 159, 110, .4);
}
.flow__step--final .flow__num { background: var(--green); color: var(--white); }
.section--navy .flow__step--final .flow__num {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.flow__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.section--navy .flow__title { color: var(--white); }
.flow__text { font-size: .9rem; color: var(--slate); margin: 0; }
.section--navy .flow__text { color: #93A3B8; }

.flow__auto {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--green-100);
  color: var(--green-700);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.section--navy .flow__auto { background: rgba(15, 159, 110, .2); color: #34C795; }

.flow-note {
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.section--navy .flow-note { border-top-color: rgba(255, 255, 255, .14); }
.flow-note__item {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--navy);
  padding-left: 20px;
  border-left: 3px solid var(--green);
}
.section--navy .flow-note__item { color: var(--white); }


/* ==========================================================================
   10. FEATURE / SPLIT SECTIONS
   ========================================================================== */
.checklist { display: grid; gap: 13px; margin-top: 26px; }
.checklist li {
  position: relative;
  padding-left: 32px;
  font-size: 1rem;
  color: var(--navy);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green-100);
  border: 1px solid rgba(15, 159, 110, .4);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px; top: .68em;
  width: 5px; height: 9px;
  border-right: 2px solid var(--green-700);
  border-bottom: 2px solid var(--green-700);
  transform: rotate(45deg);
}
.section--navy .checklist li { color: #DCE4EE; }
.section--navy .checklist li::before { background: rgba(15, 159, 110, .2); }
.section--navy .checklist li::after {
  border-right-color: #34C795;
  border-bottom-color: #34C795;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.card--plain { box-shadow: none; }
.card__icon {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--green-100);
  color: var(--green-700);
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); font-size: .97rem; margin: 0; }
.card__list { margin-top: 16px; display: grid; gap: 8px; }
.card__list li {
  font-size: .92rem;
  color: var(--slate);
  padding-left: 16px;
  position: relative;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* Numbered stat strip */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.metrics__item { padding: 0 26px; }
.metrics__item + .metrics__item { border-left: 1px solid rgba(255, 255, 255, .14); }
.metrics__value {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.metrics__label { font-size: .92rem; color: #93A3B8; margin: 0; }


/* ==========================================================================
   11. BRANDED DOCUMENT MOCKUPS
   The service business's own brand dominates. FirstPage stays subordinate.
   ========================================================================== */
.doc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 560px;
}
.doc__accent { height: 6px; background: #1F5FA8; }        /* sample client colour */
.doc__accent--warm { background: #B4531F; }

.doc__head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--border);
}
.doc__logo {
  flex: 0 0 auto;
  width: 58px; height: 58px;
  border-radius: var(--r-md);
  background: #1F5FA8;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}
.doc__logo--warm { background: #B4531F; }
.doc__biz { min-width: 0; }
.doc__biz-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.14rem;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 5px;
}
.doc__biz-meta { font-size: .82rem; color: var(--slate); line-height: 1.5; }
.doc__type {
  margin-left: auto;
  text-align: right;
  flex: 0 0 auto;
}
.doc__type-label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
}
.doc__type-num { font-size: .82rem; color: var(--slate); margin-top: 4px; }

.doc__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
}
.doc__meta-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 5px;
}
.doc__meta-value { font-size: .9rem; color: var(--navy); font-weight: 600; }
.doc__meta-value span { display: block; font-weight: 400; color: var(--slate); font-size: .84rem; }

.doc__lines { padding: 20px 28px; }
.doc__total {
  padding: 18px 28px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.doc__terms {
  padding: 16px 28px 22px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--slate);
  line-height: 1.6;
}
.doc__terms strong {
  display: block;
  font-size: .68rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}
.doc__footnote {
  padding: 12px 28px;
  border-top: 1px solid var(--border);
  font-size: .72rem;
  color: var(--slate-400);
  text-align: center;
}

.doc-stack { position: relative; }
.doc-stack .doc + .doc { margin-top: -28px; margin-left: 48px; }


/* ==========================================================================
   12. INDUSTRIES
   ========================================================================== */
.industries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
}
.industries li {
  padding: 22px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color .18s var(--ease);
}
.industries li:hover { background: var(--green-50); }
.industries li::before {
  content: "";
  width: 8px; height: 8px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: var(--green);
}


/* ==========================================================================
   13. ROLES & PERMISSIONS
   ========================================================================== */
.role {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  background: var(--white);
  height: 100%;
}
.role__tag {
  display: inline-block;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.role__tag--owner { background: var(--navy); color: var(--white); }
.role__tag--staff { background: var(--green-100); color: var(--green-700); }
.role__list { display: grid; gap: 11px; margin-top: 18px; }
.role__list li {
  font-size: .95rem;
  color: var(--slate);
  padding-left: 26px;
  position: relative;
}
.role__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 14px; height: 2px;
  background: var(--green);
}
.role__list li.is-restricted::before { background: var(--slate-300); }


/* ==========================================================================
   14. PRICING
   ========================================================================== */
.price-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: 40px;
  align-items: start;
}

.price-card {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.price-card__head {
  padding: 34px 34px 28px;
  background: var(--navy);
  color: var(--white);
}
.price-card__name {
  font-family: var(--font-head);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #34C795;
  margin-bottom: 16px;
}
.price-card__amount {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--white);
}
.price-card__currency { font-size: 1.8rem; margin-top: .35em; }
.price-card__figure { font-size: clamp(3.4rem, 6vw, 4.6rem); }
.price-card__period {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #93A3B8;
  margin-top: 12px;
}
.price-card__body { padding: 30px 34px 34px; }
.price-card__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin-bottom: 28px;
}
.price-card__list li {
  position: relative;
  padding-left: 26px;
  font-size: .95rem;
  color: var(--navy);
}
.price-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .34em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-100);
}
.price-card__list li::after {
  content: "";
  position: absolute;
  left: 5px; top: .58em;
  width: 4px; height: 8px;
  border-right: 2px solid var(--green-700);
  border-bottom: 2px solid var(--green-700);
  transform: rotate(45deg);
}
.price-card__fine {
  margin-top: 18px;
  font-size: .86rem;
  color: var(--slate);
  text-align: center;
}

.price-aside {
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--r-lg);
  background: var(--bg-alt);
  padding: 30px;
}
.price-aside h3 { font-size: 1.2rem; }
.price-aside p { color: var(--slate); font-size: .98rem; }


/* ==========================================================================
   15. FIRSTPAGE ECOSYSTEM
   ========================================================================== */
.eco {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.eco__item {
  display: block;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .03);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.eco__item:hover {
  text-decoration: none;
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .06);
}
.eco__item--current {
  border-color: var(--green);
  background: rgba(15, 159, 110, .1);
}
.eco__item--current:hover { border-color: var(--green); background: rgba(15, 159, 110, .14); }
.eco__promise {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: 8px;
}
.eco__item--current .eco__promise { color: #34C795; }
.eco__name { font-size: .98rem; color: #93A3B8; margin: 0; }
.eco__badge {
  display: inline-block;
  margin-top: 14px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
}


/* ==========================================================================
   16. CTA BAND
   ========================================================================== */
.cta-band {
  background: var(--navy);
  color: #C9D5E3;
  padding-block: 84px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #B7C4D4; max-width: 58ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 30px; }
.cta-band__fine { margin-top: 22px; font-size: .9rem; color: #93A3B8; }


/* ==========================================================================
   17. SITE FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: #93A3B8;
  padding-block: 68px 30px;
  font-size: .95rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 44px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer__brand img { width: 280px; height: auto; margin-bottom: 20px; }
.site-footer__brand p { max-width: 34ch; font-size: .93rem; color: #93A3B8; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: #93A3B8; font-size: .94rem; }
.footer-col a:hover { color: var(--white); text-decoration: none; }

.site-footer__bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  font-size: .86rem;
  color: #6C7C91;
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { margin-left: auto; display: flex; gap: 22px; }
.site-footer__legal a { color: #6C7C91; }
.site-footer__legal a:hover { color: var(--white); text-decoration: none; }


/* ==========================================================================
   18. LEGAL / PAGE HEADERS
   ========================================================================== */
.page-head {
  background: var(--navy);
  color: #B7C4D4;
  padding-block: 74px 66px;
}
.page-head h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
}
.page-head .lede { color: #B7C4D4; }

.legal { padding-block: 76px; }
.legal__meta {
  font-size: .9rem;
  color: var(--slate);
  padding: 14px 18px;
  background: var(--bg-alt);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-bottom: 38px;
}
.legal h2 {
  font-size: 1.5rem;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.legal h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.legal h3 { font-size: 1.1rem; margin-top: 28px; }
.legal p, .legal li { color: #33445C; }
.legal ul { display: grid; gap: 10px; margin: 0 0 1.2em; }
.legal ul li { padding-left: 20px; position: relative; }
.legal ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .68em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.legal__placeholder {
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: var(--bg-alt);
  padding: 18px 20px;
  font-size: .92rem;
  color: var(--slate);
  margin: 0 0 1.4em;
}
.legal__placeholder strong {
  display: block;
  color: var(--navy);
  font-size: .74rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.toc {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  background: var(--bg-alt);
  margin-bottom: 44px;
}
.toc h2 {
  font-size: .74rem !important;
  font-family: var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  border: 0 !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
}
.toc ol { display: grid; gap: 9px; counter-reset: toc; }
.toc li { counter-increment: toc; font-size: .95rem; }
.toc li::before {
  content: counter(toc) ".";
  color: var(--slate-400);
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}


/* ==========================================================================
   19. CONTACT FORM
   ========================================================================== */
.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 56px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .86rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.field .req { color: var(--green-700); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; padding-right: 40px; background-image: none; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 159, 110, .16);
}
.field .hint { font-size: .82rem; color: var(--slate); margin-top: 6px; }
.field .error {
  font-size: .82rem;
  font-weight: 600;
  color: var(--red);
  margin-top: 6px;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--red); }
.field.has-error .error { display: block; }

.form-notice {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--bg-alt);
  border-left: 3px solid var(--slate-400);
  font-size: .89rem;
  color: var(--slate);
}
.form-status {
  display: none;
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--green-50);
  border-left: 3px solid var(--green);
  color: var(--navy);
  font-size: .94rem;
  font-weight: 600;
}
.form-status.is-visible { display: block; }

.contact-aside__block {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  background: var(--bg-alt);
}
.contact-aside__block + .contact-aside__block { margin-top: 20px; }
.contact-aside__block h3 { font-size: 1.08rem; }
.contact-aside__block p { color: var(--slate); font-size: .95rem; margin: 0; }


/* ==========================================================================
   20. FAQ ACCORDION
   ========================================================================== */
.faq {
  border-top: 1px solid var(--border);
  max-width: 860px;
}
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.01em;
}
.faq__q:hover { color: var(--green-700); }
.faq__icon {
  flex: 0 0 auto;
  position: relative;
  width: 22px; height: 22px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--green);
  transform: translate(-50%, -50%);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.faq__icon::before { width: 14px; height: 2px; }
.faq__icon::after  { width: 2px; height: 14px; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__a {
  display: none;
  padding: 0 46px 26px 0;
  color: var(--slate);
  font-size: 1rem;
}
.faq__a.is-open { display: block; }
.faq__a p:last-child { margin-bottom: 0; }


/* ==========================================================================
   21. UTILITIES & MOTION
   ========================================================================== */
.mt-0  { margin-top: 0 !important; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0  { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }

/* Production-safe content visibility.
   Marketing content is always visible, even if JavaScript is blocked, delayed,
   or a crawler/full-page capture does not execute scroll observers. */
.reveal,
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}


/* ==========================================================================
   22. RESPONSIVE
   ========================================================================== */

/* --- Large laptop ------------------------------------------------------- */
@media (min-width: 941px) and (max-width: 1440px) {
  :root { --section-y: 70px; }
  .hero { padding-block: 64px 70px; }
  .section-head { margin-bottom: 36px; }
  .split { gap: 38px; }
  .nav__list { gap: 18px; }
  .nav__link { font-size: .88rem; }
  .site-header__inner { gap: 18px; }
  .header-actions { gap: 10px; }
  .header-actions .btn--sm { padding: 9px 14px; font-size: .78rem; }
}

@media (max-width: 1120px) {
  :root { --section-y: 86px; }
  .nav__list { gap: 24px; }
  .split { gap: 44px; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .flow__step { border-left: 0 !important; text-align: left; padding: 0; }
  .flow__step:nth-child(n+4) { padding-top: 34px; border-top: 1px solid var(--border); }
  .section--navy .flow__step:nth-child(n+4) { border-top-color: rgba(255, 255, 255, .14); }
}

/* --- Tablet: collapse navigation ---------------------------------------- */
@media (max-width: 940px) {
  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    margin: 0;
    padding: 12px var(--gutter) 24px;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__link {
    display: block;
    padding: 16px 4px;
    font-size: 1.06rem;
    border-bottom: 1px solid var(--border);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--green-700); }

  .nav__actions {
    display: grid;
    gap: 12px;
    margin-top: 22px;
  }
  .nav__actions .btn { width: 100%; min-height: 54px; }
  .nav__actions .login-link {
    display: block;
    text-align: center;
    padding: 15px;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--r-md);
    color: var(--navy);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
  }

  /* Header actions live inside the drawer on small screens. */
  .header-actions--desktop { display: none; }

  .site-header__inner { position: relative; }

  .hero { padding-block: 66px 76px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 46px; }
  .hero__sub { max-width: none; }

  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split--flip .split__media { order: 0; }

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

  .price-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .form-wrap { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .eco { grid-template-columns: minmax(0, 1fr); }

  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .metrics__item:nth-child(3) { border-left: 0; }

  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
  .doc-stack .doc + .doc { margin-left: 24px; }
}

/* --- Mobile ------------------------------------------------------------- */
@media (max-width: 680px) {
  :root {
    --gutter: 20px;
    --section-y: 62px;
    --section-y-sm: 48px;
  }

  body { font-size: 16.5px; }

  .site-header__inner { min-height: 84px; }
  .brand img { width: 240px; }

  h1 { font-size: clamp(2.2rem, 11vw, 2.9rem); }

  .section-head { margin-bottom: 36px; }

  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }

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

  .flow { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .flow__step { padding: 22px 0 !important; border-top: 1px solid var(--border) !important; }
  .flow__step:first-child { border-top: 0 !important; padding-top: 0 !important; }
  .flow__num { width: 38px; height: 38px; margin-bottom: 12px; }
  .flow-note { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 38px; }

  .metrics { grid-template-columns: minmax(0, 1fr); }
  .metrics__item { padding: 0; border-left: 0 !important; }
  .metrics__item + .metrics__item {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }

  .card, .role, .price-aside, .contact-aside__block { padding: 24px; }
  .form-card { padding: 22px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }

  .price-card__head { padding: 26px 24px 22px; }
  .price-card__body { padding: 24px; }
  .price-card__list { grid-template-columns: minmax(0, 1fr); }

  /* Software visuals adapt rather than overflow. */
  .ui__body { padding: 16px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 13px; }
  .stat__value { font-size: 1.24rem; }

  .table-scroll { overflow-x: visible; }
  .table-scroll .ui-table { width: 100%; min-width: 0; table-layout: fixed; }
  .table-scroll .ui-table th,
  .table-scroll .ui-table td { overflow-wrap: anywhere; }

  .barchart__row { grid-template-columns: 96px 1fr auto; gap: 10px; }
  .barchart__label { font-size: .8rem; }

  .doc { max-width: none; }
  .doc__head { flex-wrap: wrap; padding: 20px; }
  .doc__type { margin-left: 0; text-align: left; width: 100%; }
  .doc__meta { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 20px; }
  .doc__lines, .doc__total, .doc__terms { padding-inline: 20px; }
  .doc-stack .doc + .doc { margin-left: 0; margin-top: 18px; }

  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industries li { padding: 16px; font-size: .92rem; }

  .site-footer { padding-block: 48px 26px; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .site-footer__legal { margin-left: 0; flex-wrap: wrap; gap: 16px; }

  .faq__q { font-size: 1rem; padding: 20px 0; }
  .faq__a { padding-right: 0; }

  .legal { padding-block: 48px; }
}

/* --- Print (legal pages, documents) ------------------------------------ */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .skip-link { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .section { padding-block: 12pt; }
  a { color: #000; text-decoration: underline; }
}\n\n/* Production Laravel integration additions */
.product-proof{margin-top:32px}
.product-proof__frame{background:#fff;border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:10px;box-shadow:0 24px 60px rgba(0,0,0,.22);overflow:hidden}
.product-proof__frame img{display:block;width:100%;height:auto;border-radius:12px}
.product-proof__caption{margin-top:12px;color:#B7C4D4;font-size:.9rem;text-align:center}
.trust-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.trust-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:28px}
.trust-card h3{margin-bottom:10px}
.trust-card p{color:var(--slate)}
.alert-success{background:#ecfdf3;border:1px solid #abefc6;color:#067647;border-radius:10px;padding:14px 16px;margin-bottom:20px}
.alert-error{background:#fef3f2;border:1px solid #fecdca;color:#b42318;border-radius:10px;padding:14px 16px;margin-bottom:20px}
.honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.auth-site-links{margin-top:14px;font-size:11px;text-align:center;color:#98a2b3}
.auth-site-links a{color:#667085;text-decoration:none;margin:0 5px}.auth-site-links a:hover{text-decoration:underline}
@media(max-width:800px){.trust-grid{grid-template-columns:1fr}}

/* Production header refinement: keep desktop navigation labels on one line. */
@media (min-width: 941px) {
  .nav__link {
    white-space: nowrap;
  }
  .nav__list {
    gap: 26px;
  }
  .site-header__inner {
    gap: 22px;
  }
}

/* ==========================================================================
   V1.3 MARKETING CLEANUP — Hub-family spacing, conversion flow & footer
   ========================================================================== */
:root {
  --max: 1240px;
  --section-y: 76px;
  --section-y-sm: 56px;
}

.section-head { margin-bottom: 42px; }
.split {
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 48px;
}
.split__media { min-width: 0; }
.split__media > .ui,
.split__media > .doc,
.split__media > .doc-stack { width: 100%; max-width: none; }
.doc { max-width: none; }

.hero { padding-block: 70px 76px; }
.hero__grid {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 50px;
}
.hero__meta { margin-top: 24px; padding-top: 22px; }

.flow-note { margin-top: 40px; padding-top: 26px; }

/* Mid-page conversion cue: keeps the user journey visible without turning
   every section into a sales pitch. */
.conversion-strip {
  margin-top: 42px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--r-lg);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow-sm);
}
.conversion-strip__eyebrow {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.04rem;
  color: var(--navy);
}
.conversion-strip__copy {
  margin: 0;
  color: var(--slate);
  font-size: .95rem;
  max-width: 70ch;
}
.conversion-strip__copy strong { color: var(--navy); }
.conversion-strip__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* The real product screenshot is the proof. Give it the visual weight instead
   of stacking a second illustrative dashboard underneath it. */
.product-proof { margin-top: 24px; }
.product-proof__frame {
  padding: 6px;
  border-radius: 16px;
}
.product-proof__frame img { border-radius: 10px; }
.product-proof__caption { margin-top: 10px; }
.section--navy .metrics { margin-top: 34px; }

/* Slightly tighter audience and user sections on laptop/desktop. */
#who-its-for.section,
#users.section,
#pricing.section { padding-block: 72px; }

.cta-band { padding-block: 68px; }
.cta-band .btn-row { margin-top: 24px; }

/* Hub-family footer treatment. */
.site-footer {
  background: #051326;
  padding-block: 56px 28px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer__top {
  grid-template-columns: minmax(280px, 1.45fr) repeat(3, minmax(150px, .72fr));
  gap: 40px;
  padding-bottom: 38px;
}
.site-footer__brand img { width: 280px; margin-bottom: 18px; }
.site-footer__tagline {
  margin: 0 0 8px;
  color: var(--white) !important;
  font-family: var(--font-head);
  font-size: 1rem !important;
  font-weight: 700;
  letter-spacing: -.01em;
  max-width: none !important;
}
.site-footer__family {
  margin: 0;
  color: #93A3B8 !important;
  font-size: .9rem !important;
  max-width: 38ch !important;
}
.footer-col h4 { margin-bottom: 14px; }
.footer-col ul { gap: 9px; }
.site-footer__bottom { padding-top: 22px; }

/* Start / activation page. */
.page-head--start { padding-block: 64px 58px; }
.section--start { padding-block: 70px 78px; }
.start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}
.start-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 34px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.start-card--primary { border: 2px solid var(--navy); }
.start-card__label {
  margin: 0 0 14px;
  color: var(--green-700);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.start-card h2 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}
.start-card h2 span {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0;
}
.start-card__lead { color: var(--slate); font-size: 1.04rem; }
.start-card__list { margin-bottom: 28px; }
.start-card .btn { margin-top: auto; }
.start-card__fine {
  margin: 14px 0 0;
  color: var(--slate);
  font-size: .84rem;
  line-height: 1.55;
  text-align: center;
}
.start-steps {
  margin-top: 54px;
  padding-top: 50px;
  border-top: 1px solid var(--border);
}
.start-steps__head { max-width: 64ch; margin-bottom: 30px; }
.start-steps__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: none;
}
.start-steps__grid li {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  background: var(--bg-alt);
}
.start-steps__grid li > span {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 14px;
}
.start-steps__grid strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 1rem;
  margin-bottom: 6px;
}
.start-steps__grid p { margin: 0; color: var(--slate); font-size: .9rem; line-height: 1.55; }
.start-login {
  margin-top: 34px;
  padding: 24px 26px;
  border-radius: var(--r-lg);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.start-login p { margin: 0; color: #B7C4D4; }
.start-login__title {
  color: var(--white) !important;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.08rem;
}

@media (max-width: 1120px) {
  :root { --section-y: 72px; }
  .split { gap: 36px; }
  .hero { padding-block: 66px 72px; }
  .site-footer__top { gap: 30px; }
  #who-its-for.section,
  #users.section,
  #pricing.section { padding-block: 66px; }
}

@media (max-width: 940px) {
  .conversion-strip { align-items: flex-start; }
  .conversion-strip__actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .start-steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .brand img { width: 240px; }
  .hero { padding-block: 54px 62px; }
  .conversion-strip { margin-top: 32px; padding: 22px; flex-direction: column; }
  .conversion-strip__actions { width: 100%; }
  .conversion-strip__actions .btn { width: 100%; }
  #who-its-for.section,
  #users.section,
  #pricing.section { padding-block: 56px; }
  .site-footer { padding-block: 46px 24px; }
  .site-footer__brand img { width: 240px; }
  .start-grid { grid-template-columns: minmax(0, 1fr); }
  .start-card { padding: 26px 22px; }
  .start-steps { margin-top: 42px; padding-top: 40px; }
  .start-steps__grid { grid-template-columns: minmax(0, 1fr); }
  .start-login { flex-direction: column; align-items: stretch; }
  .start-login .btn { width: 100%; }
}

/* ==========================================================================
   24. V1.4 — RESPONSIVE PRODUCT, CONVERSION FLOW & HUB-FAMILY CTA
   ========================================================================== */

/* Laptop/desktop rhythm: tighter than the early marketing build while still
   leaving enough space for the product screens to carry visual weight. */
@media (min-width: 941px) {
  :root {
    --section-y: 76px;
    --section-y-sm: 54px;
  }
  .hero { padding-block: 72px 80px; }
  .hero__grid { gap: 48px; }
  .section-head { margin-bottom: 40px; }
  .split {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: 44px;
  }
  .split--flip { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
  .split--flip .split__copy { order: 2; }
  .split--flip .split__media { order: 1; }
}

/* Four dashboard summary boxes stay in one row through laptop/tablet sizes.
   Mobile intentionally becomes a balanced two-by-two grid. */
.stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Product UI is the proof, not a thumbnail. */
.hero__media,
.split__media,
.product-proof__frame { min-width: 0; }
.split__media > .ui,
.hero__media > .ui { width: 100%; }
.product-proof__frame { padding: 8px; }

/* Hub-style account-manager conversion panel. */
.account-manager-cta {
  background: var(--white);
  padding-block: 64px;
}
.account-manager-cta__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
  padding: 42px 52px;
  background: #F3F7FF;
  border: 1px solid #D8E3F7;
  border-radius: 24px;
}
.account-manager-cta__copy { max-width: 880px; }
.account-manager-cta__eyebrow {
  margin: 0 0 8px;
  color: #43526A;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.account-manager-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 1.05;
}
.account-manager-cta__copy > p:last-child {
  margin: 0;
  max-width: 74ch;
  color: #4B5C73;
  font-size: 1.05rem;
}
.account-manager-cta__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-manager-cta__actions .btn {
  min-height: 58px;
  padding-inline: 28px;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
}
.account-manager-cta__phone {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.account-manager-cta__phone:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  color: var(--white);
}
.account-manager-cta__contact {
  background: var(--white);
  border-color: #C8D3E2;
  color: var(--navy);
}
.account-manager-cta__contact:hover {
  background: #F9FBFE;
  border-color: #AEBBCD;
  color: var(--navy);
}

/* Account / Plan page. The fields are intentionally not wrapped in a submit
   form while payment is disabled, so no account data can be accidentally sent. */
.page-head--account { padding-block: 64px 58px; }
.section--account { padding-block: 70px 76px; background: var(--bg-alt); }
.account-signup {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr);
  gap: 34px;
  align-items: start;
}
.account-signup__form,
.account-plan__card,
.account-plan__local {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.account-signup__form { padding: 36px; }
.account-signup__head { max-width: 66ch; margin-bottom: 30px; }
.account-signup__head h2 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
.account-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
}
.account-fields .field label { color: var(--navy); }
.account-terms { padding-top: 4px; }
.check-control {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: #44536A;
  font-size: .92rem;
  line-height: 1.5;
}
.check-control input {
  flex: 0 0 auto;
  width: 18px !important;
  height: 18px;
  margin-top: 2px;
  padding: 0 !important;
  accent-color: var(--green);
}
.account-plan { position: sticky; top: 116px; display: grid; gap: 18px; }
.account-plan__card { padding: 32px; border-top: 5px solid var(--green); }
.account-plan__label {
  margin: 0 0 8px;
  color: var(--green-700);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.account-plan__card h2 { margin-bottom: 12px; font-size: 1.45rem; }
.account-plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.account-plan__price span {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}
.account-plan__price small { color: var(--slate); font-weight: 600; }
.account-plan__lead { color: var(--slate); margin-bottom: 22px; }
.account-plan__features { margin-bottom: 26px; }
.btn--disabled,
.btn[disabled] {
  background: #A8B4C3 !important;
  border-color: #A8B4C3 !important;
  color: #FFFFFF !important;
  cursor: not-allowed !important;
  transform: none !important;
  opacity: 1;
}
.account-plan__payment-note {
  margin: 12px 0 0;
  text-align: center;
  color: var(--slate);
  font-size: .83rem;
  line-height: 1.5;
}
.account-plan__local { padding: 22px 24px; }
.account-plan__local-title {
  margin: 0 0 6px;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
}
.account-plan__local p:not(.account-plan__local-title) {
  margin-bottom: 12px;
  color: var(--slate);
  font-size: .9rem;
  line-height: 1.55;
}
.account-flow {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}
.account-flow .eyebrow { margin-bottom: 16px; }
.account-flow__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.account-flow__steps li {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.account-flow__steps li span {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt-2);
  color: var(--slate);
  font-weight: 800;
}
.account-flow__steps li strong { font-size: .9rem; }
.account-flow__steps li.is-current { border-color: rgba(15,159,110,.4); background: var(--green-50); }
.account-flow__steps li.is-current span { background: var(--green); color: var(--white); }

/* Footer family treatment: same broad proportions as Hub/Local, with the
   product identity large enough to read as part of the ecosystem. */
.site-footer { padding-block: 54px 26px; }
.site-footer__top {
  grid-template-columns: minmax(300px, 1.55fr) repeat(3, minmax(150px, .72fr));
  gap: 42px;
  padding-bottom: 36px;
}
.site-footer__brand img { width: 280px; margin-bottom: 16px; }
.site-footer__promise {
  margin: 0 0 4px !important;
  color: var(--white) !important;
  font-family: var(--font-head);
  font-size: 1.08rem !important;
  font-weight: 800;
}
.site-footer__tagline {
  margin: 0 !important;
  color: #93A3B8 !important;
  font-family: var(--font-body);
  font-size: .9rem !important;
  font-weight: 500;
  letter-spacing: 0;
}

@media (max-width: 1120px) and (min-width: 941px) {
  .account-manager-cta__panel { padding: 36px 38px; gap: 28px; }
  .account-manager-cta__actions { flex-direction: column; align-items: stretch; }
  .account-manager-cta__actions .btn { width: 100%; }
  .site-footer__top { gap: 28px; }
}

@media (max-width: 940px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics__item:nth-child(3) { border-left: 0; }
  .account-manager-cta { padding-block: 52px; }
  .account-manager-cta__panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 34px;
    gap: 24px;
  }
  .account-manager-cta__actions { justify-content: flex-start; }
  .account-signup { grid-template-columns: minmax(0, 1fr); }
  .account-plan { position: static; }
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  /* Four-box areas remain balanced two-by-two on phones. */
  .stat-row,
  .metrics,
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics { gap: 0; }
  .metrics__item {
    padding: 16px 14px !important;
    border-left: 0 !important;
    border-top: 0 !important;
  }
  .metrics__item:nth-child(even) { border-left: 1px solid rgba(255,255,255,.14) !important; }
  .metrics__item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14) !important; }
  .metrics__value { font-size: 1.35rem; }
  .metrics__label { font-size: .82rem; }

  /* Mobile product visuals fit the viewport. No horizontal swipe/scroll. */
  .hero__media,
  .split__media,
  .product-proof__frame {
    overflow-x: visible;
    max-width: 100%;
  }
  .hero__media > .ui,
  .split__media > .ui,
  .product-proof__frame img {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .hero__media,
  .split__media { padding-bottom: 0; }

  .account-manager-cta { padding-block: 42px; }
  .account-manager-cta__panel { padding: 28px 22px; border-radius: 18px; }
  .account-manager-cta h2 { font-size: 2rem; }
  .account-manager-cta__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .account-manager-cta__actions .btn { width: 100%; }

  .page-head--account { padding-block: 50px 46px; }
  .section--account { padding-block: 48px 56px; }
  .account-signup__form,
  .account-plan__card { padding: 24px 20px; }
  .account-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .account-flow__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-flow__steps li { min-height: 66px; padding: 14px; }

  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__brand img { width: 240px; }
  .site-footer__bottom { align-items: flex-start; }
}

@media (max-width: 430px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
  .site-footer__brand { grid-column: auto; }
  .account-flow__steps { grid-template-columns: minmax(0, 1fr); }
}

/* V1.4 stat-grid correction: three-stat product panels keep natural sizing;
   only the four-summary dashboard is forced into a single four-up row. */
.stat-row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat-row--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 680px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Use a simple equal two-column field grid for broad browser consistency. */
.account-fields { grid-template-columns: 1fr 1fr; }
@media (max-width: 680px) { .account-fields { grid-template-columns: 1fr; } }

/* ==========================================================================
   25. V1.4.3 — LOCAL-FAMILY FOOTER + MOBILE NO-SCROLL FINALIZATION
   Only two presentation changes: footer alignment and removal of horizontal
   scrolling on mobile. Laptop/desktop V1.4 layout remains unchanged.
   ========================================================================== */

/* Match the Hub/Local footer hierarchy: brand statement on the left, three
   grouped columns on the right, copyright left and family motto right. */
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(0, 1.92fr);
  gap: 72px;
  align-items: start;
  padding-bottom: 40px;
}
.site-footer__brand img {
  width: 280px;
  height: auto;
  margin-bottom: 24px;
}
.site-footer__description {
  margin: 0 !important;
  max-width: 38ch !important;
  color: #9FB0C6 !important;
  font-family: var(--font-body);
  font-size: 1rem !important;
  font-weight: 400;
  line-height: 1.7;
}
.site-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
}
.site-footer .footer-col h4 { margin-bottom: 16px; }
.site-footer .footer-col ul { gap: 10px; }
.site-footer__bottom {
  padding-top: 24px;
  align-items: center;
}
.site-footer__motto {
  margin: 0 0 0 auto !important;
  color: #8192AA !important;
  font-size: .94rem !important;
  white-space: nowrap;
}

@media (max-width: 1120px) and (min-width: 941px) {
  .site-footer__top {
    grid-template-columns: minmax(280px, .95fr) minmax(0, 1.55fr);
    gap: 42px;
  }
  .site-footer__links { gap: 28px; }
}

@media (max-width: 940px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  .site-footer__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 680px) {
  /* No side-to-side page or product scrolling on phones. */
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .container,
  .hero__grid,
  .hero__media,
  .split,
  .split__media,
  .product-proof,
  .product-proof__frame,
  .ui,
  .doc,
  .table-scroll {
    min-width: 0;
    max-width: 100%;
  }
  .hero__media,
  .split__media,
  .product-proof__frame,
  .table-scroll {
    overflow-x: visible !important;
  }
  .hero__media > .ui,
  .split__media > .ui,
  .product-proof__frame img,
  .table-scroll .ui-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .table-scroll .ui-table {
    table-layout: fixed;
    font-size: .78rem;
  }
  .table-scroll .ui-table th,
  .table-scroll .ui-table td {
    padding-left: 5px;
    padding-right: 5px;
    overflow-wrap: anywhere;
  }

  /* Footer remains family-consistent while stacking cleanly on phones. */
  .site-footer { padding-block: 46px 24px; }
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding-bottom: 32px;
  }
  .site-footer__brand img { width: 240px; }
  .site-footer__description { max-width: 34ch !important; }
  .site-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
  .site-footer__links .footer-col:last-child { grid-column: 1 / -1; }
  .site-footer__bottom {
    display: grid;
    gap: 12px;
    align-items: start;
  }
  .site-footer__motto {
    margin-left: 0 !important;
    white-space: normal;
  }
}

@media (max-width: 430px) {
  .site-footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__links .footer-col:last-child { grid-column: 1 / -1; }
}

/* ========================================================================== 
   26. V1.4.4 — MOBILE RESTORE / NO HORIZONTAL SCROLL
   Restores the earlier stacked mobile presentation while keeping the current
   desktop/laptop layout intact. Product interfaces scale to the phone width;
   nothing relies on side-to-side scrolling.
   ========================================================================== */
@media (max-width: 680px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  /* Restore the earlier mobile header proportions. */
  .site-header,
  .site-header__inner,
  main,
  .hero,
  .section,
  .container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .site-header__inner { min-height: 84px; }
  .brand img { width: 190px !important; max-width: calc(100vw - 96px); }

  /* The mobile page is a true single-column layout. */
  .hero__grid,
  .split,
  .split--flip {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
  }
  .hero__copy,
  .hero__media,
  .split__copy,
  .split__media,
  .product-proof,
  .product-proof__frame,
  .ui,
  .doc,
  .table-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
  }
  .split--flip .split__copy,
  .split--flip .split__media { order: initial !important; }

  /* Product UI fits inside the phone. No swipe rails or oversized canvases. */
  .hero__media,
  .split__media,
  .product-proof__frame,
  .table-scroll {
    overflow-x: hidden !important;
  }
  .hero__media > .ui,
  .split__media > .ui,
  .product-proof__frame img,
  .table-scroll .ui-table {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    transform: none !important;
  }
  .product-proof__frame img { height: auto !important; }

  /* Keep the four summary tiles balanced 2x2 as previously approved. */
  .stat-row,
  .stat-row--four,
  .metrics,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Compact the dashboard so the full interface remains readable at phone width. */
  .ui__bar {
    padding: 11px 12px;
    gap: 8px;
  }
  .ui__mark { max-width: 92px; height: 18px; }
  .ui__bar-title { font-size: .68rem; letter-spacing: .07em; }
  .ui__bar-right { font-size: .66rem; }
  .ui__body { padding: 14px !important; }
  .stat { padding: 12px 10px; }
  .stat__label { font-size: .63rem; letter-spacing: .07em; }
  .stat__value { font-size: 1.08rem; }
  .stat__note { font-size: .7rem; line-height: 1.35; }

  /* Tables compress to the available width rather than becoming scrollable. */
  .table-scroll .ui-table {
    display: table;
    table-layout: fixed;
    font-size: .67rem;
  }
  .table-scroll .ui-table th,
  .table-scroll .ui-table td {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    padding: 8px 4px !important;
    line-height: 1.25;
  }
  .table-scroll .ui-table th { font-size: .58rem; letter-spacing: .05em; }
  .table-scroll .ui-table .num { padding-right: 0 !important; }
  .badge {
    white-space: normal;
    padding: 3px 6px;
    gap: 4px;
    font-size: .56rem;
    letter-spacing: .02em;
  }
  .badge::before { width: 5px; height: 5px; flex: 0 0 5px; }

  /* Earlier mobile rhythm: screens stack naturally below their copy. */
  .hero__grid { gap: 36px !important; }
  .split { gap: 32px !important; }
  .hero { padding-block: 54px 62px !important; }

  /* Prevent any decorative/content element from expanding the viewport. */
  img,
  svg,
  canvas,
  video { max-width: 100%; }
}
