/* Site styles. Brand values (colours, fonts, radii, gradient) live in
   brand.config.json and are generated into tokens.css at build time.
   Use only var(--token) here, never raw colour values. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: var(--font-sans);
  font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; position: relative; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Guide lines: thin vertical rules that run behind sections */
.guides { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.guides .wrap { height: 100%; }
.guides span { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--line); }
.guides span:nth-child(1) { left: 1.5rem; }
.guides span:nth-child(2) { left: calc(1.5rem + (100% - 3rem) * .25); }
.guides span:nth-child(3) { left: calc(1.5rem + (100% - 3rem) * .5); }
.guides span:nth-child(4) { left: calc(1.5rem + (100% - 3rem) * .75); }
.guides span:nth-child(5) { right: 1.5rem; }
section { position: relative; }
section > .wrap { z-index: 1; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; font-size: 1.125rem; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .975rem; }
.nav a:hover { color: var(--accent); }
.nav a.btn, .nav a.btn:hover { color: var(--on-dark); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1; padding: .8rem 1.15rem .8rem 1.3rem; border-radius: 999px; transition: background-color .15s, color .15s, box-shadow .15s; border: 0; cursor: pointer; font-family: inherit; }
.btn .arr { width: .7rem; height: .7rem; transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--on-dark); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark { background: var(--dark); color: var(--on-dark); }
.btn-dark:hover { background: var(--dark-raised); }
.btn-ghost { color: var(--accent); padding-left: .4rem; background: none; }
.btn-ghost:hover { color: var(--ink); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: var(--bg-alt); }
.btn-sm { font-size: .925rem; padding: .6rem .95rem .6rem 1.05rem; }
.on-dark .btn-ghost { color: var(--on-dark-accent); }
.on-dark .btn-ghost:hover { color: var(--on-dark); }

/* Eyebrow + section headings */
.eyebrow { display: inline-block; font-weight: 600; font-size: .95rem; color: var(--accent); margin-bottom: 1rem; letter-spacing: 0; }
.on-dark .eyebrow { color: var(--on-dark-accent); }
.section { padding: 6.5rem 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 44rem; margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); line-height: 1.12; }
.section-head p { margin-top: 1.1rem; font-size: 1.1875rem; color: var(--body); }
.two-tone .soft { color: var(--muted); }

/* Hero */
.hero { overflow: hidden; padding: 5rem 0 6rem; }
.hero::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: -40%; height: 78%;
  background: var(--grad); transform: skewY(-9deg); transform-origin: 0 0; opacity: .1; z-index: 0;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 .soft { color: var(--muted); }
.hero .lede { margin-top: 1.75rem; font-size: 1.25rem; max-width: 35rem; color: var(--body); }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 2.25rem; align-items: center; }
.hero-photo { position: relative; }
.hero-photo::before { content: ""; position: absolute; inset: 10% -4% -5% 12%; background: var(--grad); border-radius: var(--radius-lg); transform: rotate(2.5deg); opacity: .45; }
.hero-photo img { position: relative; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 1 / 1; max-height: 32rem; object-fit: cover; width: 100%; }
.page-hero { padding: 4.5rem 0 4.5rem; }
.page-hero h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem); line-height: 1.07; letter-spacing: -0.03em; max-width: 20ch; }
.page-hero .lede { margin-top: 1.4rem; font-size: 1.2rem; max-width: 40rem; }

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 2rem 2rem 2rem 0; }
.stat + .stat { padding-left: 2rem; border-left: 1px solid var(--line); }
.stat .num { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 600; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.stat .num .unit { font-size: .55em; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.stat p { margin-top: .5rem; font-size: .975rem; }
.source { margin-top: 1.25rem; font-size: .875rem; color: var(--muted); max-width: 52rem; }
.source a { color: var(--accent); }

/* Feature cards with icons */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.feature .icon { width: 2.6rem; height: 2.6rem; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 1.1rem; }
.feature .icon svg { width: 1.35rem; height: 1.35rem; }
.feature h3 { font-size: 1.1875rem; margin-bottom: .5rem; }
.feature p { font-size: 1rem; }
.feature { border-left: 1px solid var(--line); padding-left: 1.5rem; position: relative; }
.feature::before { content: ""; position: absolute; left: -1px; top: 0; height: 2.6rem; width: 2px; background: var(--accent); }
.on-dark .feature { border-left-color: color-mix(in srgb, var(--on-dark) 14%, transparent); }
.on-dark .feature .icon { background: color-mix(in srgb, var(--on-dark-accent) 12%, transparent); color: var(--on-dark-accent); }
.on-dark .feature::before { background: var(--on-dark-accent); }

/* Industry tabs */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.25rem; }
.tab { font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1rem; cursor: pointer; }
.tab:hover { border-color: var(--line-strong); }
.tab[aria-selected="true"] { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 1.25rem; }
.panel[hidden] { display: none; }
.panel img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: 100%; min-height: 100%; }
.panel .body { padding: 1rem 1rem 1rem 0; }
.panel h3 { font-size: 1.5rem; }
.panel .body > p { margin-top: .75rem; }
.panel .stays { margin-top: 1.25rem; font-size: .95rem; color: var(--muted); }
.panel .stays strong { color: var(--ink); }

/* Task bars from the Economic Index */
.tasks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.tasks li { display: grid; gap: .4rem; }
.tasks .label { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; color: var(--ink); }
.tasks .label b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }
.bar { height: 6px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad-bar); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .85rem; color: var(--muted); margin-top: 1.25rem; }
.legend span::before { content: ""; display: inline-block; width: .7rem; height: .45rem; border-radius: 9px; margin-right: .4rem; vertical-align: .08em; background: var(--grad-bar); }
.legend span.rest::before { background: var(--track); }

/* Flow: AI prepares -> people approve -> work goes out */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0; }
.flow .step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.flow .step.human { border: 2px solid var(--accent); }
.flow .step .k { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.flow .step.human .k { color: var(--accent); }
.flow .step h3 { font-size: 1.1875rem; margin: .35rem 0 .4rem; }
.flow .step p { font-size: .975rem; }
.flow .link { display: grid; place-items: center; width: 3rem; color: var(--line-strong); }
.flow .link svg { width: 1.6rem; height: 1.6rem; }

/* Fit lists */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.checklist li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .6rem; align-items: start; }
.checklist svg { width: 1.25rem; height: 1.25rem; margin-top: .2rem; }
.checklist.yes svg { color: var(--success); }
.checklist.no svg { color: var(--line-strong); }
.fit-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; }
.fit-card h3 { font-size: 1.25rem; margin-bottom: 1.25rem; }

/* Dark section */
.dark { background: var(--dark); color: var(--on-dark-text); overflow: hidden; }
.dark h2, .dark h3, .dark h4 { color: var(--on-dark); }
.dark .section-head p { color: var(--on-dark-text); }
.dark .guides span { border-left-color: color-mix(in srgb, var(--on-dark) 7%, transparent); }
.dark::after { content: ""; position: absolute; right: -15%; bottom: -35%; width: 60%; height: 70%; background: var(--accent); filter: blur(110px); opacity: .16; pointer-events: none; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid color-mix(in srgb, var(--on-dark) 18%, transparent); padding-top: 1.1rem; position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-weight: 600; color: var(--on-dark-accent); font-size: .9rem; margin-bottom: .6rem; font-variant-numeric: tabular-nums; }
.steps li.gate { border-top: 2px solid var(--highlight); }
.steps h3 { font-size: 1.0625rem; margin-bottom: .35rem; }
.steps p { font-size: .95rem; }
.steps.light li { border-top-color: var(--line); }
.steps.light li::before { color: var(--accent); }
.steps.four { grid-template-columns: repeat(4, 1fr); }

.needs { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; margin-top: 4.5rem; }
.needs img { border-radius: var(--radius-lg); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; box-shadow: 0 30px 60px -20px var(--shadow-dark); }
.needs-card { background: color-mix(in srgb, var(--on-dark) 4%, transparent); border: 1px solid color-mix(in srgb, var(--on-dark) 12%, transparent); border-radius: var(--radius-lg); padding: 2rem; }
.needs-card h3 { font-size: 1.375rem; margin-bottom: 1.25rem; }
.needs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.needs-list li { display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; }
.needs-list svg { width: 1.3rem; height: 1.3rem; color: var(--on-dark-accent); margin-top: .2rem; }
.needs-list strong { color: var(--on-dark); font-weight: 600; display: block; }

/* CTA band */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 3.5rem; background: var(--dark); color: var(--on-dark); display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--grad-deep); opacity: .85; clip-path: polygon(70% 0, 100% 0, 100% 100%, 56% 100%); }
.cta-band > * { position: relative; }
.cta-band > div:first-child { max-width: 32rem; }
.cta-band h2 { color: var(--on-dark); font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.4rem); line-height: 1.15; }
.cta-band p { color: var(--on-dark-text); margin-top: .75rem; font-size: 1.1rem; }
.cta-band .actions { justify-self: end; display: grid; gap: .75rem; justify-items: end; }

/* Generic content */
.prose { max-width: 42rem; }
.prose p + p { margin-top: 1rem; }
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.media-split img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.media-split.reverse > :first-child { order: 2; }

table { border-collapse: collapse; width: 100%; font-size: .975rem; }
th, td { text-align: left; vertical-align: top; padding: .95rem 1.25rem .95rem 0; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--ink); font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; }
td:first-child { color: var(--ink); font-weight: 600; }
tr.gate td { background: var(--highlight-soft); color: var(--ink); font-weight: 600; padding-left: 1rem; border-bottom-color: var(--highlight-line); }
.table-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .5rem 1.75rem 1rem; box-shadow: var(--shadow-sm); overflow-x: auto; }

dl.faq { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3.5rem; }
dl.faq dt { color: var(--ink); font-weight: 600; font-size: 1.0625rem; }
dl.faq dd { margin: .5rem 0 0; }


/* Eligibility check */
.check { max-width: 46rem; }
.check fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem 1.75rem; margin: 0 0 1.25rem; background: var(--bg); }
.check legend { font-weight: 600; color: var(--ink); font-size: 1.0625rem; padding: 0 .4rem; margin-left: -.4rem; }
.check legend .n { color: var(--accent); margin-right: .5rem; font-variant-numeric: tabular-nums; }
.options { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.options label { position: relative; }
.options input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.options span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1rem; font-size: .95rem; color: var(--ink); cursor: pointer; background: var(--bg); transition: border-color .12s, background .12s; }
.options label:hover span { border-color: var(--line-strong); }
.options input:checked + span { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.result { border-radius: var(--radius-lg); padding: 2rem; margin-top: 1.5rem; border: 1px solid var(--line); background: var(--bg-alt); }
.result[hidden] { display: none; }
.result h2 { font-size: 1.6rem; }
.result.good { background: var(--success-soft); border-color: var(--success-line); }
.result.maybe { background: var(--highlight-soft); border-color: var(--highlight-line); }
.result.no { background: var(--bg-alt); }
.result ul { margin: 1rem 0 0; padding-left: 1.2rem; }
.result .actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.note { font-size: .9rem; color: var(--muted); margin-top: 1rem; }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 4rem 0 3rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-size: .875rem; color: var(--ink); margin-bottom: .9rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; color: var(--body); }
.site-footer a:hover { color: var(--accent); }
.site-footer .legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }

.hero-grid > *, .panel > *, .needs > *, .media-split > *, .cta-band > *, .grid-2 > *, .grid-3 > * { min-width: 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .panel, .needs, .media-split, .cta-band { grid-template-columns: 1fr; }
  .hero-photo { max-width: 28rem; }
  .steps, .steps.four { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band .actions { justify-self: start; justify-items: start; }
  .cta-band::before { clip-path: polygon(0 75%, 100% 45%, 100% 100%, 0 100%); }
  .media-split.reverse > :first-child { order: 0; }
  .panel .body { padding: .5rem; }
  .guides span:nth-child(2), .guides span:nth-child(4) { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .nav { display: none; position: absolute; top: 4.25rem; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.5rem 1.25rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; justify-content: center; border-bottom: 0; }
  .nav-toggle { display: inline-flex; }
  .section { padding: 4.5rem 0; }
  .hero { padding: 3rem 0 4rem; }
  .hero .lede { font-size: 1.125rem; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 1.5rem 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .grid-3, .grid-2, .steps, .steps.four, dl.faq { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow .link { width: auto; height: 2.5rem; }
  .flow .link svg { transform: rotate(90deg); }
  .cta-band { padding: 2.25rem 1.5rem; }
  .table-card { padding: .25rem 1rem .75rem; }
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--line); padding: .9rem 0; }
  table.stack td { border: 0; padding: .15rem 0; }
  table.stack td::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: .5rem; }
  table.stack td:first-child::before { display: none; }
  table.stack tr.gate { background: var(--highlight-soft); padding: .9rem 1rem; }
  table.stack tr.gate td { padding: 0; }
  .guides { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Industry sub-navigation */
.subnav { position: sticky; top: 4.25rem; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: .4rem; overflow-x: auto; padding-top: .65rem; padding-bottom: .65rem; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; white-space: nowrap; font-weight: 600; font-size: .925rem; color: var(--body); text-decoration: none; padding: .45rem .95rem; border-radius: 999px; }
.subnav a:hover { background: var(--bg-alt); color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--dark); color: var(--on-dark); }
.hero-photo.wide img { aspect-ratio: 4 / 3; }

/* Industry overview cards */
.ind-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ind-card { display: flex; flex-direction: column; text-decoration: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.ind-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ind-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.ind-card > div { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.ind-card h3 { font-size: 1.1875rem; }
.ind-card p { font-size: .975rem; flex: 1; }
.ind-card .more { color: var(--accent); font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: .4rem; margin-top: .5rem; }
.ind-card .more .arr { width: .7rem; height: .7rem; transition: transform .15s; }
.ind-card:hover .more .arr { transform: translateX(3px); }
@media (max-width: 960px) { .ind-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .ind-cards { grid-template-columns: 1fr; }
  .subnav .wrap { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1.5rem, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 1.5rem, #000 calc(100% - 2.5rem), transparent); }
}

/* Small layout utilities used by the templates */
.brand img { width: 1.75rem; height: 1.75rem; }
.brand-name span { font-weight: 500; color: var(--muted); }
.footer-tagline { margin-top: 1rem; max-width: 20rem; }
.stats-section { padding-top: 0; }
.section-note { margin-top: 2.5rem; }
.section-gap { margin-top: 3.5rem; }
.panel-more, .card-more { margin-top: 1.25rem; }
.section-more { margin-top: 1.5rem; }
.needs-flush { margin-top: 0; }
.task-card { padding: 1.75rem; }
.result-text { margin-top: .6rem; }
.site-footer .brand { color: var(--ink); }
.on-dark .steps li.gate { border-top-color: var(--on-dark-accent); }
.cta-band .btn-ghost, .cta-band .btn-ghost:hover { color: var(--on-dark); }

/* Eligibility wizard */
.wizard { max-width: 48rem; }
.wizard-steps { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; font-size: .925rem; color: var(--muted); }
.wizard-steps li { display: flex; align-items: center; gap: .5rem; }
.wizard-steps span { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--line-strong); font-weight: 600; font-size: .8rem; }
.wizard-steps li.current { color: var(--ink); font-weight: 600; }
.wizard-steps li.current span { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.wizard-steps li.done span { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.check fieldset.invalid { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hint { margin: .5rem 0 0; font-size: .9rem; color: var(--muted); }
.options-stack { flex-direction: column; align-items: stretch; }
.options-stack span { display: block; border-radius: var(--radius); }
.evaluation { margin: 0 0 1.5rem; }
.evaluation h3 { font-size: 1.0625rem; margin-top: 1.75rem; }
.evaluation .tasks { margin-top: 1rem; }
.evaluation .tag { font-style: normal; font-size: .75rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: .1rem .5rem; margin-left: .35rem; white-space: nowrap; }
.result.strong { background: var(--success-soft); border-color: var(--success-line); }
.result.promising { background: var(--highlight-soft); border-color: var(--highlight-line); }
.result.notYet { background: var(--bg-alt); }
.contact-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.contact-card h2 { font-size: 1.5rem; }
.contact-card > p { margin-top: .5rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin-top: 1.5rem; }
.field { display: grid; gap: .35rem; font-size: .925rem; font-weight: 600; color: var(--ink); }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea { font: inherit; font-weight: 400; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .7rem .85rem; background: var(--bg); width: 100%; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field input.invalid { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.consent input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
.consent input.invalid { outline: 2px solid var(--accent); outline-offset: 2px; }
.field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; }
@media (max-width: 720px) { .fields { grid-template-columns: 1fr; } .contact-card { padding: 1.5rem; } }
.evaluation .tasks { padding-left: 0; }
.wizard { scroll-margin-top: 6rem; }
.follow-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: 1.5rem; }

/* ==========================================================================
   Lyoko Launch funnel (/launch/*). Same tokens as the rest of the site.
   ========================================================================== */
body.funnel [hidden] { display: none !important; }
.funnel-header .wrap { height: 4rem; }
.funnel-help { font-size: .925rem; color: var(--muted); text-decoration: none; }
.funnel-help:hover { color: var(--accent); }
.funnel-footer { padding: 2.5rem 0 2rem; }
.funnel-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.funnel-footer .legal { margin-top: 1.5rem; }
.lx-center { text-align: center; margin-top: 2rem; }
.lx-h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); line-height: 1.1; margin-bottom: 1rem; }

/* Hero */
.lx-hero h1 { max-width: 16ch; }
.lx-proof { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .95rem; color: var(--ink); font-weight: 500; }
.lx-proof li { display: inline-flex; align-items: center; gap: .4rem; }
.lx-proof svg { width: 1.05rem; height: 1.05rem; color: var(--accent); }
.lx-urgency { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; font-size: .9rem; color: var(--body); }
.lx-urgency > span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; }
.lx-urgency b { color: var(--ink); font-weight: 600; }
.lx-urgency .lx-places { border-color: var(--accent); background: var(--accent-soft); }
.lx-urgency .lx-places b { color: var(--accent); }
.lx-urgency.full .lx-places { border-color: var(--line); background: var(--bg-alt); }
#pricing .lx-urgency { justify-content: center; margin-top: 2rem; }

/* Hero visual: a phone-shaped card with the launch timeline */
.lx-visual { position: relative; display: grid; place-items: center; }
.lx-visual::before { content: ""; position: absolute; inset: 8% 6% -4% 14%; background: var(--grad); border-radius: var(--radius-lg); transform: rotate(3deg); opacity: .4; }
.lx-phone { position: relative; width: min(100%, 22rem); background: var(--bg); border: 1px solid var(--line); border-radius: 2rem; box-shadow: var(--shadow); padding: 1.5rem 1.4rem 1.4rem; }
.lx-app { display: grid; grid-template-columns: 3rem 1fr auto; gap: .8rem; align-items: center; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.lx-app-icon { width: 3rem; height: 3rem; border-radius: .85rem; background: var(--grad-deep); }
.lx-app strong { display: block; color: var(--ink); font-size: 1rem; }
.lx-app div span { font-size: .85rem; color: var(--muted); }
.lx-pill { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .25rem .6rem; background: var(--bg-alt); color: var(--muted); }
.lx-pill.live { background: var(--accent); color: var(--on-dark); }
.lx-phone-title { margin: 1.1rem 0 .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lx-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.lx-timeline li { display: grid; grid-template-columns: 1.6rem 3.6rem 1fr; gap: .5rem; align-items: center; padding: .45rem 0; font-size: .925rem; }
.lx-timeline .dot { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.lx-timeline .dot svg { width: .85rem; height: .85rem; }
.lx-timeline .d { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; }
.lx-timeline .l { color: var(--ink); }
.lx-timeline li.live .dot { background: var(--accent); color: var(--on-dark); }
.lx-timeline li.live .l { font-weight: 700; color: var(--accent); }
.lx-stores { display: flex; gap: .5rem; margin-top: 1rem; }
.lx-stores span { flex: 1; text-align: center; font-size: .8rem; font-weight: 600; color: var(--on-dark); background: var(--dark); border-radius: .6rem; padding: .5rem; }

/* Pain stat */
.lx-stat { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; margin-top: 3.5rem; padding: 1.75rem 2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-alt); }
.lx-stat .num { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.lx-stat p { font-size: 1.05rem; }
.lx-stat a { color: var(--accent); font-size: .9rem; }

.lx-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Value stack table */
.lx-stack tr.bonus td:first-child { color: var(--accent); }
.lx-stack td:last-child, .lx-stack th:last-child { text-align: right; white-space: nowrap; padding-right: 0; }
.lx-stack td:nth-child(2) { color: var(--muted); }
.lx-stack tfoot td { border-bottom: 0; padding-top: 1.1rem; color: var(--ink); font-weight: 600; }
.lx-stack tfoot s { color: var(--muted); font-weight: 500; }
.lx-stack tfoot tr.price td { font-size: 1.35rem; color: var(--accent); padding-top: .25rem; }

/* Guarantees */
.lx-guarantees { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.lx-guarantee { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.lx-guarantee .icon, .lx-model .icon { width: 2.6rem; height: 2.6rem; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 1rem; }
.lx-guarantee .icon svg, .lx-model .icon svg { width: 1.35rem; height: 1.35rem; }
.lx-guarantee h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.lx-guarantee .terms { margin-top: .75rem; font-size: .875rem; color: var(--muted); }
.lx-model h3 { margin-bottom: .5rem; }

/* Pricing */
.lx-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 60rem; margin: 0 auto; align-items: stretch; }
.lx-price { display: flex; flex-direction: column; gap: .85rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.lx-price.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.lx-price h3 { font-size: 1.4rem; }
.lx-price .checklist { gap: .6rem; font-size: .975rem; margin-bottom: .5rem; flex: 1; align-content: start; }
.lx-price .btn { justify-content: center; }
.lx-price .note { margin-top: 0; text-align: center; }
.lx-badge { align-self: flex-start; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: .3rem .7rem; }
.lx-price-line { margin: 0; }
.lx-price-line .amt { font-size: clamp(2.2rem, 1.8rem + 1.4vw, 2.9rem); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.lx-price-sum { font-size: 1rem; }
.lx-downsell { max-width: 60rem; margin: 3rem auto 0; }
.lx-downsell h3 { font-size: 1.1rem; margin-bottom: .9rem; }
.lx-downsell > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.lx-mini { display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; background: var(--bg); font-size: .925rem; transition: border-color .15s, box-shadow .15s; }
.lx-mini:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.lx-mini strong { display: block; color: var(--ink); font-size: 1rem; }
.lx-mini span { color: var(--muted); }
.lx-mini b { color: var(--ink); font-size: 1.05rem; }

/* Founder */
.lx-founder { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: start; max-width: 54rem; }
.lx-avatar { width: 6rem; height: 6rem; border-radius: 50%; background: var(--grad-deep); color: var(--on-dark); display: grid; place-items: center; font-weight: 700; font-size: 1.6rem; letter-spacing: .02em; }
.lx-founder h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); line-height: 1.15; margin-bottom: 1rem; }
.lx-founder .checklist { margin-top: 1.5rem; }

/* Sticky mobile bar and modals */
.lx-sticky { display: none; }
.lx-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.25rem; background: color-mix(in srgb, var(--dark) 55%, transparent); }
.lx-modal[hidden] { display: none; }
.lx-modal-card { position: relative; width: min(100%, 32rem); background: var(--bg); border-radius: var(--radius-lg); padding: 2.25rem 2rem 2rem; box-shadow: var(--shadow); max-height: calc(100vh - 2.5rem); overflow: auto; }
.lx-modal-card h2 { font-size: 1.5rem; line-height: 1.2; padding-right: 2rem; }
.lx-modal-card > p { margin-top: .75rem; }
.lx-modal-card .actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.5rem; align-items: center; }
.lx-close { position: absolute; top: 1rem; right: 1rem; background: none; border: 0; color: var(--muted); cursor: pointer; padding: .3rem; border-radius: 50%; }
.lx-close:hover { color: var(--ink); background: var(--bg-alt); }
.lx-close svg { width: 1.3rem; height: 1.3rem; display: block; }

/* Page hero for inner funnel pages */
.lx-page-hero { padding: 4rem 0 3rem; }

/* Readiness check */
.lx-quiz { max-width: 44rem; margin: 0 auto; scroll-margin-top: 5.5rem; }
.lx-result { scroll-margin-top: 5.5rem; }
.funnel-header .brand-name, .funnel-header .btn { white-space: nowrap; }
.lx-quiz .options-stack { gap: .5rem; }
.lx-quiz .options-stack span { padding: .8rem 1.1rem; font-size: 1rem; }
.lx-progress { margin-bottom: 1.25rem; font-size: .9rem; color: var(--muted); display: grid; gap: .5rem; }
.lx-progress i { transition: width .3s ease; }
.lx-q legend { font-size: 1.25rem; float: left; width: 100%; padding: 0; margin: 0 0 .25rem; line-height: 1.3; }
.lx-q legend + * { clear: both; }
.lx-q { padding-top: 1.5rem; }
.lx-quiz-nav { margin-top: .5rem; }
.lx-result { max-width: 52rem; margin: 0 auto; }
.lx-result[hidden] { display: none; }
.lx-score { display: grid; grid-template-columns: auto 1fr; gap: 1.75rem; align-items: center; padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-alt); }
.lx-score.good { background: var(--success-soft); border-color: var(--success-line); }
.lx-score.mid { background: var(--highlight-soft); border-color: var(--highlight-line); }
.lx-ring { --v: 50; width: 7rem; height: 7rem; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--v) * 1%), var(--track) 0); }
.lx-ring span { width: 5.6rem; height: 5.6rem; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 1.9rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.lx-score small { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lx-score h2 { font-size: 1.5rem; line-height: 1.2; margin: .25rem 0 .5rem; }
.lx-risks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; counter-reset: r; }
.lx-risks li { counter-increment: r; display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.lx-risks li::before { content: counter(r); width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .875rem; display: grid; place-items: center; }
.lx-risks strong { display: block; color: var(--ink); margin-bottom: .2rem; }
.lx-risks .locked { filter: blur(4px); user-select: none; }
.lx-result h3 { font-size: 1.25rem; margin-top: 2.25rem; }
.lx-capture, .lx-offer-inline { margin-top: 1.5rem; }
.lx-inline-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: .75rem; align-items: end; margin-top: 1rem; }
.lx-offer-inline { background: var(--dark); color: var(--on-dark-text); border-radius: var(--radius-lg); padding: 2rem; }
.lx-offer-inline h3 { color: var(--on-dark); margin-top: 0; }
.lx-offer-inline p { margin-top: .5rem; }
.lx-offer-inline .actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.25rem; align-items: center; }
.lx-offer-inline .btn-ghost { color: var(--on-dark-accent); }

/* Rejection explainer */
.lx-rescue { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.5rem; align-items: start; }
.lx-tool textarea { font: inherit; color: var(--ink); width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .8rem .9rem; margin-top: .5rem; resize: vertical; background: var(--bg); }
.lx-tool textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.lx-explain { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.lx-explain[hidden] { display: none; }
.lx-explain h3 { font-size: 1.1rem; margin-bottom: .75rem; }
.lx-explain ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.lx-explain li { padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.lx-explain li b { color: var(--ink); }
.lx-code { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: .1rem .55rem; margin-right: .4rem; }
.lx-offer-card { position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: 1rem; background: var(--bg); border: 2px solid var(--accent); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow); }
.lx-offer-card .btn { justify-content: center; }
.lx-offer-card .note { margin-top: 0; }
.lx-guarantee-line { display: grid; grid-template-columns: 1.25rem 1fr; gap: .6rem; font-size: .925rem; color: var(--ink); margin: 0; }
.lx-guarantee-line svg { width: 1.2rem; height: 1.2rem; color: var(--accent); margin-top: .15rem; }

/* Forms shared by the funnel */
.field select { font: inherit; font-weight: 400; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .7rem .85rem; background: var(--bg); width: 100%; }
.field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field .hint { font-weight: 400; margin-top: 0; }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-status:empty { display: none; }
.form-status { font-size: .95rem; color: var(--ink); background: var(--highlight-soft); border: 1px solid var(--highlight-line); border-radius: var(--radius-sm); padding: .75rem 1rem; }
.form-status.ok { background: var(--success-soft); border-color: var(--success-line); }

/* Checkout */
.lx-steps { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; gap: .5rem 1.75rem; flex-wrap: wrap; font-size: .9rem; color: var(--muted); counter-reset: st; }
.lx-steps li { counter-increment: st; display: flex; align-items: center; gap: .5rem; }
.lx-steps li::before { content: counter(st); width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 600; font-size: .8rem; }
.lx-steps li.current { color: var(--ink); font-weight: 600; }
.lx-steps li.current::before { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.lx-steps li.done::before { content: "✓"; background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
.lx-checkout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: start; }
.lx-co-form h1 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); line-height: 1.12; }
.lx-co-form .fields { margin-top: 1.5rem; }
.lx-co-form > * + * { margin-top: 1.25rem; }
.lx-pay { border: 0; padding: 0; margin: 1.5rem 0 0; }
.lx-pay legend { font-weight: 600; color: var(--ink); padding: 0; margin-bottom: .25rem; }
.lx-pay .options span { display: flex; justify-content: space-between; gap: 1rem; }
.lx-pay .options i { font-style: normal; color: var(--muted); }
.lx-pay .options input:checked + span i { color: var(--on-dark-text); }
.lx-bump { display: grid; grid-template-columns: 1.4rem 1fr; gap: .75rem; padding: 1.15rem 1.25rem; border: 2px dashed var(--accent); border-radius: var(--radius); background: var(--accent-soft); cursor: pointer; }
.lx-bump input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--accent); }
.lx-bump b { display: block; color: var(--ink); }
.lx-bump span span { font-size: .95rem; }
.lx-pay-btn { width: 100%; justify-content: center; padding-top: 1.05rem; padding-bottom: 1.05rem; font-size: 1.075rem; }
.lx-secure { display: flex; gap: .4rem; align-items: center; justify-content: center; }
.lx-secure svg { width: 1rem; height: 1rem; flex: none; }
.lx-summary { position: sticky; top: 5.5rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; display: grid; gap: 1.1rem; }
.lx-summary h2 { font-size: 1.15rem; }
.lx-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .95rem; }
.lx-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.lx-lines li b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.lx-lines li.credit b { color: var(--accent); }
.lx-lines li.sub { color: var(--muted); font-size: .875rem; }
.lx-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line-strong); padding-top: 1rem; color: var(--ink); font-weight: 600; }
.lx-total b { font-size: 1.6rem; letter-spacing: -0.02em; }
.lx-summary .checklist { font-size: .9rem; gap: .5rem; }
.lx-summary .lx-urgency { margin-top: 0; }

/* Payment modal */
.lx-paycard h2 { display: flex; align-items: center; gap: .5rem; }
.lx-paycard h2 svg { width: 1.2rem; height: 1.2rem; color: var(--accent); }
.lx-pay-amount { font-size: 2rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin-top: .5rem; }
.lx-testnote { font-size: .9rem; background: var(--highlight-soft); border: 1px solid var(--highlight-line); border-radius: var(--radius-sm); padding: .8rem 1rem; color: var(--ink); margin-top: 1rem; }
.lx-card-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; }
.lx-card-fields .field:first-child { grid-column: 1 / -1; }
.lx-card-fields input[readonly] { background: var(--bg-alt); color: var(--muted); }
.lx-paycard .stack-actions { display: grid; gap: .6rem; margin-top: 1.25rem; }
.lx-paycard .stack-actions .btn { justify-content: center; }
.lx-paycard .note { margin-top: .25rem; text-align: center; }
.lx-divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; margin: 1.25rem 0 .25rem; }
.lx-divider::before, .lx-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* Upsell */
.lx-upsell { max-width: 46rem; margin: 0 auto; }
.lx-upsell-card { background: var(--bg); border: 2px solid var(--accent); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow); }
.lx-upsell-card h1 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem); line-height: 1.12; margin-bottom: 1rem; }
.lx-upsell-card .checklist { margin: 1.5rem 0; }
.lx-upsell-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem; margin: 1rem 0 1.5rem; }
.lx-upsell-price .amt { font-size: 2.4rem; font-weight: 600; color: var(--ink); letter-spacing: -0.03em; }
.lx-upsell-price s, .lx-upsell-price span { color: var(--muted); }
.lx-upsell-actions { display: grid; gap: .75rem; }
.lx-upsell-actions .btn-primary { justify-content: center; padding-top: 1.05rem; padding-bottom: 1.05rem; font-size: 1.075rem; }
.lx-upsell-actions .btn-ghost { justify-self: center; color: var(--muted); }
.lx-confirmed { display: flex; gap: .6rem; align-items: center; font-weight: 600; color: var(--ink); margin-bottom: 1.25rem; }
.lx-confirmed svg { width: 1.3rem; height: 1.3rem; color: var(--accent); }

/* Welcome */
.lx-welcome { max-width: 58rem; margin: 0 auto; }
.lx-welcome-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.08; margin: .5rem 0 1rem; }
.lx-welcome-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; margin-top: 2.5rem; align-items: start; }
.lx-welcome .contact-card + .contact-card { margin-top: 1.5rem; }
.lx-welcome .steps { margin-top: 1.25rem; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.lx-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .5rem; margin-top: 1rem; }
.lx-slots label { position: relative; }
.lx-slots input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.lx-slots span { display: block; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .5rem; font-size: .875rem; color: var(--ink); background: var(--bg); cursor: pointer; }
.lx-slots input:checked + span { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.lx-slots input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.lx-check-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .75rem; }
.lx-check-list label { display: grid; grid-template-columns: 1.25rem 1fr; gap: .6rem; align-items: start; cursor: pointer; }
.lx-check-list input { margin-top: .3rem; accent-color: var(--accent); }

/* Orders viewer */
.lx-orders { margin-top: 2rem; display: grid; gap: 1rem; }
.lx-orders pre { white-space: pre-wrap; word-break: break-word; font-size: .8rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; margin: .75rem 0 0; max-height: 18rem; overflow: auto; }
.lx-orders h3 { font-size: 1.05rem; }

/* Terms */
.lx-terms h2 { font-size: 1.3rem; margin: 2.25rem 0 .75rem; }
.lx-terms h2:first-child { margin-top: 0; }
.lx-terms a { color: var(--accent); }

@media (max-width: 960px) {
  .lx-grid-4 { grid-template-columns: 1fr 1fr; }
  .lx-checkout, .lx-rescue, .lx-welcome-grid { grid-template-columns: 1fr; }
  .lx-summary, .lx-offer-card { position: static; }
  .lx-checkout .lx-summary { order: -1; }
  .lx-checkout .lx-summary .checklist, .lx-checkout .lx-summary [data-co-urgency] { display: none; }
  .lx-downsell > div { grid-template-columns: 1fr; }
  .lx-visual { max-width: 24rem; }
}
@media (max-width: 720px) {
  .lx-grid-4, .lx-guarantees, .lx-prices { grid-template-columns: 1fr; }
  .lx-stat { grid-template-columns: 1fr; gap: .75rem; padding: 1.5rem; }
  .lx-founder { grid-template-columns: 1fr; gap: 1.25rem; }
  .lx-avatar { width: 4.5rem; height: 4.5rem; font-size: 1.25rem; }
  .lx-score { grid-template-columns: 1fr; justify-items: start; padding: 1.5rem; }
  .lx-inline-form { grid-template-columns: 1fr; }
  .lx-upsell-card { padding: 1.75rem 1.4rem; }
  .lx-card-fields { grid-template-columns: 1fr 1fr; }
  .lx-stack td:last-child { text-align: left; }
  .lx-stack tfoot tr { display: flex; justify-content: space-between; }
  .lx-stack tfoot td::before { display: none; }
  body.funnel.has-sticky { padding-bottom: 4.5rem; }
  .lx-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: .95rem; transform: translateY(110%); transition: transform .25s ease; }
  .lx-sticky.show { transform: none; }
  .lx-sticky .btn { padding: .7rem 1rem; font-size: .95rem; white-space: nowrap; flex: none; }
  .lx-sticky > span { line-height: 1.3; }
  .lx-urgency { font-size: .85rem; gap: .4rem; }
  .lx-urgency > span { padding: .3rem .7rem; }
  .funnel-header .btn { font-size: .85rem; padding: .55rem .8rem .55rem .95rem; }
}
@media (prefers-reduced-motion: reduce) { .lx-sticky, .lx-progress i { transition: none; } }

/* ==========================================================================
   Touch devices and small screens (all pages)
   ========================================================================== */
/* iOS Safari zooms the page when a focused field's text is under 16px.
   Text fields stay at 16px or more everywhere. Pinch-zoom stays enabled. */
input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: max(1rem, 16px); }
input[type=text], input[type=email], input[type=tel], input[type=url], input:not([type]), textarea { -webkit-appearance: none; appearance: none; }
/* No double-tap zoom or tap delay on controls; focused fields clear the sticky header. */
a, button, label, input, select, textarea, summary { touch-action: manipulation; }
input, select, textarea { scroll-margin: 6rem 0 2rem; }
.options label, .lx-slots label, .lx-bump, .lx-mini { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .lx-mini:hover { box-shadow: none; border-color: var(--line); }
  .ind-card:hover { transform: none; }
}

.field select, .field textarea, .lx-tool textarea, .check textarea, .contact-card textarea { font-size: max(1rem, 16px); }

/* Tap targets: 44px minimum on touch screens (phones in either orientation, tablets) */
@media (pointer: coarse), (max-width: 720px) {
  .btn { min-height: 2.75rem; }
  .brand { min-height: 2.75rem; }
  .consent { min-height: 2.75rem; align-items: center; }
  .consent input { margin-top: 0; }
  .funnel-help { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .funnel-links { gap: 0 1.25rem; }
  .funnel-links a, .funnel-footer .legal a, .site-footer ul a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .site-footer ul { gap: 0; }
  .nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .subnav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .lx-check-list label { min-height: 2.75rem; align-items: center; }
  .lx-check-list input { margin-top: 0; }
  .legal a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* Funnel tap targets */
.lx-close { width: 2.75rem; height: 2.75rem; top: .6rem; right: .6rem; display: grid; place-items: center; padding: 0; }
.lx-modal-card { max-height: calc(100vh - 2.5rem); max-height: calc(100dvh - 2.5rem); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (max-width: 720px) {
  .lx-modal { padding: .75rem; align-items: end; }
  .lx-modal-card { padding: 1.75rem 1.25rem 1.5rem; border-radius: var(--radius-lg); max-height: calc(100dvh - 1.5rem); }
  .lx-pay-amount { font-size: 1.75rem; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .section { padding: 3rem 0; }
  .lx-page-hero { padding: 2.5rem 0 2rem; }
}
@media (max-width: 960px) { .lx-visual { margin: 0 auto; } }
@media (max-width: 400px) {
  .funnel-header .btn { font-size: .85rem; padding: .5rem .75rem .5rem .85rem; }
  .lx-steps { gap: .5rem 1rem; }
}
@media (max-width: 360px) {
  .funnel-header .btn { display: none; }
  .funnel-header .brand-name { font-size: 1rem; }
  .funnel-help { font-size: .825rem; }
  .lx-card-fields { grid-template-columns: 1fr; }
  .lx-sticky > span { font-size: .875rem; }
}
