/* Lawsuit Loans Pre Settlement Funding
   One stylesheet for the whole site. Tokens come from DESIGN.md; values
   match the approved pages in reference/.

   1  Tokens and fonts
   2  Base
   3  Layout helpers
   4  Type
   5  Links and buttons
   6  Header and mobile menu
   7  Hero
   8  Inquiry forms
   9  Lists and rows
   10 Page sections
   11 Closing band
   12 Footer
   13 Sticky action bar
   14 Motion
   15 Mobile (max-width 900px)
   16 User preferences */


/* 1  Tokens and fonts -------------------------------------------------- */

/* Schibsted Grotesk, self-hosted from @fontsource/schibsted-grotesk (latin
   subset, SIL Open Font License, see /assets/fonts/LICENSE). */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk-latin-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Arial resized to Schibsted Grotesk, so text keeps its place when the real
   font arrives. Ascent 0.98em, descent 0.26em and no line gap are Schibsted's
   measured metrics, divided by size-adjust. size-adjust is tuned on the site's
   own pages: it is between Schibsted's width over Arial at 400 (104.25%) and
   at 700 (109.3%), where page layouts matched best. */
@font-face {
  font-family: 'Schibsted Fallback';
  src: local('Arial');
  size-adjust: 105.75%;
  ascent-override: 92.67%;
  descent-override: 24.59%;
  line-gap-override: 0%;
}

:root {
  /* Colour */
  --ink: #0E1A16;
  --green: #0F4C3A;
  --green-hover: #0B3A2C;
  --text-2: #4A5C55;              /* secondary on white, 7.1:1 */
  --text-2-on-green: #C9DED4;     /* secondary on green, 7.0:1 */
  --hairline: #D7E0DB;            /* rules on white */
  --hairline-pale: #C5D2CB;       /* rules on the pale field */
  --hairline-green: rgba(255, 255, 255, .22);
  --pale: #EEF4F0;
  --row-hover: #F3F7F4;
  --white: #ffffff;
  --input-border: #C5D2CB;
  --focus: #0F4C3A;
  --selection: #CDE3D8;
  --caret: #0F4C3A;
  --error: #A3261C;               /* form errors, 7.4:1 on white */
  --glass-header: rgba(255, 255, 255, .78);
  --glass-bar: rgba(255, 255, 255, .88);
  --glass-filter: blur(18px) saturate(160%);

  /* Shape */
  --radius: 6px;
  --radius-panel: 10px;
  --radius-photo: 8px;
  --shadow-panel: 0 24px 48px -16px rgba(14, 26, 22, .22), 0 2px 6px rgba(14, 26, 22, .08);
  --shadow-panel-hero: 0 24px 48px -12px rgba(14, 26, 22, .35), 0 2px 6px rgba(14, 26, 22, .12); /* deeper, for the panel on green */

  /* Type */
  --font: 'Schibsted Grotesk', 'Schibsted Fallback', system-ui, sans-serif;
  --fs-body: 17px;
  --lh-body: 1.55;
  --fs-h1: 64px;
  --fs-h2: 44px;
  --fs-h2-list: 32px;
  --fs-h3: 22px;
  --fs-secondary: 15px;
  --fs-label: 14px;
  --fs-legal: 13px;

  /* Layout */
  --wrap: 1280px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-snap: cubic-bezier(.2, .8, .2, 1);
}


/* 2  Base -------------------------------------------------------------- */

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

/* Legal pages set a slightly looser line-height on the whole page */
.long-read { line-height: 1.6; }

h1, h2, h3, p, figure { margin: 0; }

a { color: var(--green); }
a:where(:hover) { color: var(--green-hover); }

::selection { background: var(--selection); color: var(--ink); }

input, select, textarea, button { font-family: inherit; caret-color: var(--caret); }

input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }


/* 3  Layout helpers ---------------------------------------------------- */

.wrap { max-width: var(--wrap); margin: 0 auto; }

/* Sections: 112px rhythm, with variants used by the reference pages */
.section { padding: 112px 40px; }
.section--short { padding-top: 96px; padding-bottom: 96px; }
.section--intro { padding-top: 96px; padding-bottom: 64px; }
.section--form { padding-top: 80px; }
.section--tail { padding-top: 0; }
.section--pale { background: var(--pale); }
.section--green { background: var(--green); color: var(--white); }

.split { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start; }
.split-40 { row-gap: 40px; }
.split-form { column-gap: 96px; }

.grow-360 { flex: 1 1 360px; min-width: 0; }
.grow-380 { flex: 1 1 380px; min-width: 0; }
.grow-400 { flex: 1 1 400px; min-width: 0; }
.grow-420 { flex: 1 1 420px; min-width: 0; }
.grow-440 { flex: 1 1 440px; min-width: 0; }
.grow-480 { flex: 1 1 480px; min-width: 0; }
.grow-520 { flex: 1 1 520px; min-width: 0; }
.grow-560 { flex: 1 1 560px; min-width: 0; }

.stack { display: flex; flex-direction: column; }
.gap-6 { gap: 6px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-28 { gap: 28px; }
.gap-32 { gap: 32px; }
.gap-40 { gap: 40px; }
.gap-48 { gap: 48px; }

.self-start { align-self: flex-start; }

.measure-12 { max-width: 12ch; }
.measure-13 { max-width: 13ch; }
.measure-14 { max-width: 14ch; }
.measure-16 { max-width: 16ch; }
.measure-18 { max-width: 18ch; }
.measure-20 { max-width: 20ch; }
.measure-36 { max-width: 36ch; }
.measure-40 { max-width: 40ch; }
.measure-44 { max-width: 44ch; }
.measure-48 { max-width: 48ch; }
.measure-52 { max-width: 52ch; }
.measure-56 { max-width: 56ch; }
.measure-58 { max-width: 58ch; }
.measure-60 { max-width: 60ch; }
.measure-64 { max-width: 64ch; }
.measure-68 { max-width: 68ch; }
.measure-72 { max-width: 72ch; }

.photo { display: block; width: 100%; height: auto; border-radius: var(--radius-photo); }
.caption { font-size: var(--fs-label); color: var(--text-2); }


/* 4  Type -------------------------------------------------------------- */

.h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.h1-60 { font-size: 60px; }
.h1-56 { font-size: 56px; line-height: 1.04; }
.h1-52 { font-size: 52px; line-height: 1.04; }

.h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
.h2-md { font-size: 40px; }
.h2-list { font-size: var(--fs-h2-list); line-height: 1.1; letter-spacing: -0.025em; font-weight: 700; }
.h2-row { font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.h2-label { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.h2-sm { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.h2-article { font-size: 24px; letter-spacing: -0.02em; font-weight: 700; }

.h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; }

.lede { font-size: 19px; color: var(--text-2); }
.balance { text-wrap: balance; }
.muted { color: var(--text-2); }
.strong { font-weight: 600; }
.small { font-size: var(--fs-secondary); }


/* 5  Links and buttons ------------------------------------------------- */

.link-strong {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}
.link-on-green { color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.1); }

.btn-green { background: var(--green); color: var(--white); }
.btn-white { background: var(--white); color: var(--green); }
.btn-outline { background: var(--white); color: var(--ink); border: 1px solid var(--input-border); }

.btn-sm { height: 44px; padding: 0 22px; font-size: var(--fs-secondary); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }

button, .btn { transition: transform 120ms var(--ease-snap), background-color 160ms ease; }
button:active, .btn:active { transform: scale(.98); }


/* 6  Header and mobile menu -------------------------------------------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--glass-header);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  border-bottom: 1px solid var(--hairline);
}

.hdr-bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-sub { font-size: 12px; font-weight: 500; color: var(--text-2); letter-spacing: 0.02em; }

.nav-desktop { display: flex; flex-wrap: wrap; gap: 32px; font-size: var(--fs-secondary); font-weight: 500; }
.nav { color: var(--ink); text-decoration: none; }

.hdr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.hdr-phone { font-size: var(--fs-secondary); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
}
.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--hairline);
  background: var(--white);
  padding: 4px 20px 20px;
  flex-direction: column;
}
.menu-link {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.menu-call { padding: 16px 0; font-size: 19px; font-weight: 600; text-decoration: none; }
.menu-apply { margin-top: 8px; display: flex; height: 52px; font-size: var(--fs-body); }

/* Hover, and the current page in both navs */
.nav:hover,
.nav[aria-current="page"],
.menu-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }


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

.hero { padding: 0 40px; }

.hero-inner {
  padding-top: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 72px;
  align-items: flex-start;
}

.hero-copy {
  flex: 1 1 540px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 96px;
}

.hero-lede { font-size: 20px; line-height: 1.5; color: var(--text-2-on-green); max-width: 36ch; }

.facts { display: flex; flex-direction: column; max-width: 520px; border-top: 1px solid var(--hairline-green); }
.fact {
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-green);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 16px;
}
.fact-val { color: var(--text-2-on-green); white-space: nowrap; }

.hero-call { font-size: 16px; color: var(--text-2-on-green); }


/* 8  Inquiry forms ----------------------------------------------------- */

/* Two sizes: the panel in the homepage hero, and the larger panel on
   /apply/ and /contact/. Field sizes are set per variant below. */
.inquiry {
  --field-h: 50px;
  --field-px: 14px;
  --field-fs: 16px;
  --area-py: 12px;
  --row-gap: 12px;
  --submit-h: 54px;
  --sub-lh: 1.5;
  --note-lh: 1.5;
  min-width: 0;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  display: flex;
  flex-direction: column;
}
.inquiry--hero {
  flex: 0 1 460px;
  margin-bottom: -88px;
  position: relative;
  z-index: 1;
  padding: 36px;
  gap: 16px;
  box-shadow: var(--shadow-panel-hero);
}
.inquiry--page {
  --field-h: 52px;
  --field-px: 16px;
  --field-fs: 17px;
  --area-py: 14px;
  --row-gap: 16px;
  --submit-h: 56px;
  --sub-lh: var(--lh-body);
  --note-lh: 1.6;
  flex: 1 1 520px;
  max-width: 620px;
  padding: 40px;
  gap: 20px;
}

.inquiry-head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.inquiry-head--ruled { border-bottom: 1px solid var(--hairline); }
.inquiry-title { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.inquiry-sub { font-size: var(--fs-secondary); line-height: var(--sub-lh); color: var(--text-2); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--row-gap); }

.label { font-size: var(--fs-label); font-weight: 600; }
.label-opt { font-weight: 400; color: var(--text-2); }

.input {
  height: var(--field-h);
  padding: 0 var(--field-px);
  border-radius: var(--radius);
  border: 1px solid var(--input-border);
  font-size: var(--field-fs);
  color: var(--ink);
  background: var(--white);
  box-sizing: border-box;
  width: 100%;
}
.input-area { height: auto; padding: var(--area-py) var(--field-px); resize: vertical; }

.submit {
  height: var(--submit-h);
  border-radius: var(--radius);
  border: 0;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: var(--fs-body);
  cursor: pointer;
  margin-top: 4px;
}

.form-note { font-size: var(--fs-legal); line-height: var(--note-lh); color: var(--text-2); text-align: center; }

/* Shown by site.js when submit.php sends the visitor back with missing fields */
.form-error { font-size: var(--fs-secondary); font-weight: 600; color: var(--error); }
.input[aria-invalid="true"] { border-color: var(--error); }

/* Honeypot: off screen, out of the tab order, ignored by screen readers. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Cloudflare Turnstile (invisible): kept out of the form's layout and gaps. */
.turnstile { position: absolute; }

/* Column beside the page forms */
.form-aside--sticky { position: sticky; top: 112px; }

.next-steps { max-width: 440px; }
.next-title { padding: 14px 0 6px; font-size: var(--fs-legal); font-weight: 600; color: var(--text-2); }
.next-row { padding: 14px 0; border-top: 1px solid var(--hairline); display: flex; gap: 20px; font-size: 16px; }
.next-row:last-child { border-bottom: 1px solid var(--hairline); }
.next-num { color: var(--text-2); font-variant-numeric: tabular-nums; flex: 0 0 24px; }

.contact-list { max-width: 460px; }
.contact-item { padding: 24px 0; border-bottom: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 6px; }
.contact-phone {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.contact-email { font-size: 18px; font-weight: 600; text-decoration: none; color: var(--ink); word-break: break-all; }


/* 9  Lists and rows ---------------------------------------------------- */

/* Hairline-ruled list: top rule here, each row draws its own bottom rule */
.ruled { border-top: 1px solid var(--hairline); display: flex; flex-direction: column; }
.ruled--pale { border-top-color: var(--hairline-pale); }

.ruled-item { padding: 28px 0; border-bottom: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 6px; }

/* Two-up ruled grid on the pale field */
.ruled-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  border-top: 1px solid var(--hairline-pale);
}
.pair-item { padding: 28px 0; border-bottom: 1px solid var(--hairline-pale); display: flex; flex-direction: column; gap: 10px; }

/* Grid rows: numeral or heading / content / meta */
.row-grid { display: grid; padding: 48px 0; border-bottom: 1px solid var(--hairline); align-items: start; }
.row-grid--compact { grid-template-columns: 72px minmax(0, 1fr) 220px; gap: 24px; padding: 28px 0; align-items: baseline; }
.row-grid--steps { grid-template-columns: 96px minmax(0, 6fr) minmax(0, 4fr); gap: 32px; }
.row-grid--cases { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 160px; gap: 32px; padding: 40px 0; align-items: baseline; }
.row-grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; }
.row-grid--label { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
.row-grid--def { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom-color: var(--hairline-pale); align-items: stretch; }

/* Homepage step rows */
.step-num { font-size: var(--fs-secondary); color: var(--text-2); font-variant-numeric: tabular-nums; }
.step-meta { font-size: var(--fs-secondary); color: var(--text-2); }

/* How it works step rows */
.step-num-lg {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.step-aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--fs-secondary);
  border-left: 1px solid var(--hairline);
  padding-left: 24px;
}

.step-meta--strong,
.step-aside-final { color: var(--green); font-weight: 600; }

/* Case rows link */
.case-link { gap: 8px; justify-self: end; }

/* Ruled link rows */
.rowlink {
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline-pale);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background-color 160ms ease, padding-left 220ms var(--ease-snap);
}
.rowlink:hover { background: var(--row-hover); padding-left: 12px; }
.rowlink--on-white { border-bottom-color: var(--hairline); }

/* FAQ: details/summary with a plus that rotates to a cross */
.faq-intro { flex: 1 1 320px; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.faq-item { border-bottom: 1px solid var(--hairline); padding: 22px 0; }
.faq-q { font-weight: 600; font-size: 19px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-a { margin-top: 14px; color: var(--text-2); max-width: 60ch; }

/* Comparison table, scrolls sideways on narrow screens */
.table-scroll { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 760px; font-variant-numeric: tabular-nums; }
.compare th { text-align: left; }
.compare thead tr { border-bottom: 1px solid var(--ink); }
.compare tbody tr { border-bottom: 1px solid var(--hairline-pale); }
.compare thead th { padding: 0 24px 14px; font-weight: 600; color: var(--text-2); }
.compare thead th:first-child { padding: 0 0 14px; font-size: var(--fs-label); }
.compare thead th:last-child { padding: 0 0 14px 24px; }
.compare thead .compare-us { font-weight: 700; color: var(--green); }
.compare tbody th { padding: 18px 0; font-weight: 600; }
.compare td { padding: 18px 24px; color: var(--text-2); }
.compare td:first-of-type { font-weight: 600; color: var(--ink); }
.compare td:last-child { padding: 18px 0 18px 24px; }


/* 10 Page sections ----------------------------------------------------- */

/* Proof strip */
.proof { padding: 136px 40px 0; }
.proof-row {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font-size: var(--fs-secondary);
  color: var(--text-2);
  justify-content: space-between;
}

/* Page intro: h1 left, lede right */
.intro-row { display: flex; flex-wrap: wrap; gap: 32px 80px; align-items: flex-end; justify-content: space-between; }

/* Section heading with a link on the right */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }

.why-figure { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }

.faq-wrap { border-top: 1px solid var(--hairline); padding-top: 64px; }

/* Nationwide */
.region {
  border-top: 1px solid var(--hairline);
  padding-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 80px;
  align-items: baseline;
}
.region-title { flex: 0 0 280px; }
.region-text { flex: 1 1 520px; }

/* Legal pages: 760px article */
.article { max-width: 760px; margin: 0 auto; padding-top: 96px; display: flex; flex-direction: column; gap: 40px; }
.article-head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 32px; border-bottom: 1px solid var(--hairline); }
.article-part { display: flex; flex-direction: column; gap: 12px; }
.article-list { margin: 0; padding-left: 20px; color: var(--text-2); display: flex; flex-direction: column; gap: 8px; }


/* 11 Closing band ------------------------------------------------------ */

.band-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px 48px; }
.band-copy { flex: 1 1 480px; display: flex; flex-direction: column; gap: 14px; }
.band-sub { font-size: 18px; color: var(--text-2-on-green); max-width: 44ch; }
.band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.band-phone {
  color: var(--white);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}


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

.site-footer { padding: 64px 40px 40px; margin-top: auto; border-top: 1px solid var(--hairline); }

.footer-top { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.footer-brand { flex: 1 1 300px; max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.footer-name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.footer-name-sub { font-weight: 500; color: var(--text-2); }
.footer-about { font-size: var(--fs-secondary); color: var(--text-2); }

.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-secondary); }
.footer-head { font-weight: 600; }
.footer-link { color: var(--text-2); text-decoration: none; }
.footer-phone { color: var(--ink); text-decoration: none; font-weight: 600; }

.footer-legal {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: var(--fs-label);
  color: var(--text-2);
}
.legal { font-size: var(--fs-legal); line-height: 1.6; max-width: 90ch; }


/* 13 Sticky action bar (mobile only) ----------------------------------- */

.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: none;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--glass-bar);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
  border-top: 1px solid var(--hairline);
}
.cta-call { flex: 0 0 auto; gap: 8px; height: 50px; padding: 0 18px; font-size: 16px; }
.cta-apply { flex: 1 1 auto; height: 50px; font-size: 16px; }


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

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

/* Hero stagger on load */
.hero-in { animation: rise 720ms var(--ease-out) both; }
.d1 { animation-delay: 40ms; }
.d2 { animation-delay: 140ms; }
.d3 { animation-delay: 240ms; }
.d4 { animation-delay: 340ms; }

/* Form panel rises after the headline */
.panel { animation: rise 640ms var(--ease-out) 260ms both; }

/* Sections rise and fade on scroll. site.js adds .is-pending only when it
   runs, so content stays visible without JavaScript. */
.reveal { transition: opacity 760ms var(--ease-out), transform 760ms var(--ease-out); }
.reveal.is-pending { opacity: 0; transform: translateY(22px); }

/* Arrow nudge and FAQ toggle */
.arrow { transition: transform 220ms var(--ease-snap); }
a:hover .arrow { transform: translateX(5px); }
.chev { transition: transform 200ms var(--ease-snap); }
details[open] .chev { transform: rotate(45deg); }


/* 15 Mobile (max-width 900px) ------------------------------------------ */

@media (max-width: 900px) {
  /* Header: one row, logo left, hamburger right */
  .nav-desktop,
  .hide-m,
  .hdr-apply { display: none; }
  .nav-toggle { display: inline-flex; }
  .hdr-bar { flex-wrap: nowrap; padding: 12px 20px; gap: 12px; }
  .mobile-menu.is-open { display: flex; }

  .cta-bar { display: flex; }

  /* Gutters drop to 20px and vertical rhythm tightens */
  .hero { padding: 0 20px; }
  .hero-inner { padding: 64px 0; }
  .proof { padding: 104px 20px 0; }
  .section { padding: 64px 20px; }
  .section--tail { padding-top: 0; }
  .section--form { padding-top: 56px; }
  .site-footer { padding: 64px 20px 124px; } /* clears the sticky bar */
  .site-footer--no-bar { padding-bottom: 40px; }

  .inquiry { padding: 24px; }
  .inquiry--hero { margin-bottom: -64px; }
  .form-aside--sticky { position: static; }

  /* Type */
  .h1 { font-size: 38px; max-width: none; }
  .h1-52 { font-size: 36px; }
  .h2,
  .h2-md,
  .band-phone { font-size: 30px; }
  .h2-list,
  .h2-row { font-size: 24px; }
  .h2-label { font-size: 23px; }
  .step-num-lg { font-size: 30px; }
  .contact-phone { font-size: 26px; }

  /* Grids collapse to one column */
  .field-row,
  .ruled-grid,
  .row-grid { grid-template-columns: 1fr; gap: 10px; }
  .row-grid--steps,
  .row-grid--split { padding: 32px 0; }
  .row-grid--cases { padding: 28px 0; }
  .case-link { justify-self: start; }
  .step-aside { border-left: 0; padding-left: 0; }
  .region-title { flex-basis: auto; }
}


/* 16 User preferences -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .panel,
  .hero-in { animation: none; }
  .reveal,
  .arrow,
  .rowlink,
  .chev { transition: none; }
  .reveal.is-pending { opacity: 1; transform: none; }
  button:active,
  .btn:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .hdr,
  .cta-bar { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
