/* The marketing page.
 *
 * Loaded AFTER app.css, and it inherits every colour token from it — one source of truth for the
 * palette, so the brand cannot drift between the page that sells the product and the product.
 * What it overrides is scale: app.css is a dense 14px dashboard, and a page somebody reads once
 * needs air, a display size, and a measure.
 *
 * TYPOGRAPHY IS SIZE-SPECIFIC, WHICH IS THE WHOLE DISCIPLINE
 *
 * Tracking tightens as type grows (-0.035em on display, 0 on body): letters read too far apart at
 * large sizes and too close at small ones, so one letter-spacing value is wrong somewhere by
 * definition. Leading moves the other way — 1.03 on display, 1.65 on body. Everything is in rem so
 * it scales with the reader's own text-size setting rather than fighting it.
 *
 * No web font. The system stack ships optical sizing and legibility tuning already, and a font from
 * another host would be the first remote asset anywhere in this product.
 */

:root {
  --lp-max: 1120px;
  --lp-gut: clamp(1.25rem, 4vw, 2.5rem);
  /* A modular rhythm, not arbitrary numbers. Section padding scales with the viewport so the page
     breathes on a desktop without wasting a phone. */
  --lp-section: clamp(4rem, 9vw, 7.5rem);
  --lp-nav: 3.75rem;
}

body {
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.lp { max-width: var(--lp-max); margin: 0 auto; padding-inline: var(--lp-gut); }
.lp-section { padding-block: var(--lp-section); }
.lp-section + .lp-section { border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- type */

.lp h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  font-weight: 700;
  max-width: 17ch;
}
.lp h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -.028em;
  font-weight: 700;
  max-width: 20ch;
}
.lp h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -.012em;
  font-weight: 650;
}
.lp .lede {
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: -.005em;
  color: var(--ink-2);
  max-width: 46ch;
  margin-top: 1.25rem;
}
.lp .say { color: var(--ink-2); max-width: 58ch; margin-top: .75rem; font-size: .9375rem; }
.lp .eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 1rem;
}
.lp .fine { font-size: .8125rem; color: var(--ink-3); line-height: 1.5; }

/* ---------------------------------------------------------------- nav */

.lp-nav {
  position: sticky; top: 0; z-index: 50; height: var(--lp-nav);
  /* A translucent functional layer with content scrolling underneath, rather than an opaque bar
     that cuts the page in half. */
  background: color-mix(in srgb, var(--page) 72%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
/* A scroll-edge fade where the chrome meets content, not a 1px rule. The divider is only correct
   when something is actually under it, and a gradient says so continuously. */
.lp-nav::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 1.5rem;
  background: linear-gradient(color-mix(in srgb, var(--page) 60%, transparent), transparent);
  pointer-events: none; opacity: 0; transition: opacity 200ms ease-out;
}
.lp-nav.scrolled::after { opacity: 1; }
.lp-nav-in {
  height: 100%; max-width: var(--lp-max); margin: 0 auto; padding-inline: var(--lp-gut);
  display: flex; align-items: center; gap: 1.5rem;
}
.lp-brand {
  display: flex; align-items: center; gap: .55rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; font-size: .9375rem;
}
.lp-brand img { width: 1.5rem; height: 1.5rem; border-radius: .4rem; display: block; }
.lp-nav nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.lp-nav nav a {
  color: var(--ink-2); text-decoration: none; font-size: .875rem; font-weight: 550;
}
.lp-nav nav a:hover { color: var(--ink); }
@media (max-width: 40rem) { .lp-nav .hide-sm { display: none; } }

/* ---------------------------------------------------------------- buttons */

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: inherit; font-size: .9375rem; font-weight: 600; letter-spacing: -.01em;
  padding: .7rem 1.15rem; border-radius: .625rem; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  /* Feedback belongs on press, not on release. */
  transition: transform 100ms ease-out, background-color 140ms ease-out, border-color 140ms ease-out;
}
.lp-btn:active { transform: scale(.97); }
.lp-btn.pri { background: var(--navy); color: #fff; border-color: var(--navy); }
.lp-btn.pri:hover { background: var(--navy-ink); border-color: var(--navy-ink); }
.lp-btn.sec { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.lp-btn.sec:hover { background: var(--sunken); }
.lp-btn.lg { font-size: 1rem; padding: .85rem 1.4rem; }
:root[data-theme='dark'] .lp-btn.pri,
:root[data-theme='dark'] .lp-btn.pri:hover { color: #0d131c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .lp-btn.pri,
  :root:not([data-theme='light']) .lp-btn.pri:hover { color: #0d131c; }
}

/* ---------------------------------------------------------------- hero */

.lp-hero { padding-block: clamp(3.25rem, 7vw, 5.5rem) var(--lp-section); }
.lp-hero-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 62rem) { .lp-hero-grid { grid-template-columns: 1.05fr .95fr; } }
.lp-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; align-items: center; }
.lp-cta-note { margin-top: .9rem; }

/* ---------------------------------------------------------------- the panel mock */

/* A rebuild of the real audit panel in markup, not a screenshot: it stays crisp at any size,
   follows the theme, reflows on a phone, and carries no shop's estimate data. */
.mock {
  border: 1px solid var(--line); border-radius: .875rem; background: var(--card);
  box-shadow: 0 1.5rem 3rem -1rem rgb(16 24 40 / .18), 0 0 0 1px rgb(16 24 40 / .02);
  overflow: hidden; font-size: .8125rem; max-width: 30rem; margin-inline: auto; width: 100%;
}
:root[data-theme='dark'] .mock { box-shadow: 0 1.5rem 3rem -1rem rgb(0 0 0 / .5); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .mock { box-shadow: 0 1.5rem 3rem -1rem rgb(0 0 0 / .5); }
}
.mock-hd {
  display: flex; align-items: center; gap: .5rem; padding: .7rem .85rem;
  background: var(--navy); color: #fff;
}
.mock-hd b { font-size: .8125rem; font-weight: 650; letter-spacing: -.01em; }
.mock-hd .veh { margin-left: auto; font-size: .6875rem; opacity: .8; }
.mock-band { border-bottom: 1px solid var(--line); }
.mock-band-h {
  display: flex; align-items: center; gap: .5rem; padding: .5rem .85rem;
  background: color-mix(in oklab, var(--good) 9%, transparent);
}
.mock-band-h .lbl {
  font-size: .6875rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
  color: var(--good); flex: 1;
}
.mock-band-h .sum { font-size: .8125rem; font-weight: 700; color: var(--good);
                    font-variant-numeric: tabular-nums; }
.mock-row {
  display: flex; align-items: flex-start; gap: .55rem; padding: .5rem .85rem;
  border-top: 1px solid var(--line);
}
.mock-row:first-of-type { border-top: 0; }
.mock-tick {
  flex: 0 0 auto; width: 1rem; height: 1rem; border-radius: .25rem; margin-top: .1rem;
  background: var(--navy); color: #fff; display: grid; place-items: center;
}
/* A drawn tick rather than a ✓ character. The glyph sits on a text baseline and its ink box is not
   its em box, so it rides high or low in the square at every size and no amount of place-items
   fixes it. A path is geometry, and geometry centres. */
.mock-tick svg {
  width: .625rem; height: .625rem; display: block; fill: none; stroke: currentColor;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.mock-row.off .mock-tick svg { visibility: hidden; }
.mock-what { flex: 1; min-width: 0; }
.mock-what .item { display: block; color: var(--ink); font-weight: 550; }
.mock-what .cap { display: block; color: var(--ink-3); font-size: .6875rem; margin-top: .1rem; }
.mock-val { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); }
.mock-ft {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; background: var(--sunken);
}
.mock-ft .btn {
  flex: 1; text-align: center; background: var(--navy); color: #fff; border-radius: .45rem;
  padding: .45rem; font-weight: 650; font-size: .8125rem;
}
:root[data-theme='dark'] .mock-hd, :root[data-theme='dark'] .mock-ft .btn { color: #0d131c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .mock-hd,
  :root:not([data-theme='light']) .mock-ft .btn { color: #0d131c; }
}

/* ---------------------------------------------------------------- steps, layers, cards */

.lp-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); margin-top: 3rem; }
.lp-grid.g3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.lp-grid.g4 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.lp-step .n {
  width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--sunken); color: var(--ink-2); font-size: .8125rem; font-weight: 700;
  border: 1px solid var(--line); margin-bottom: .9rem;
}
.lp-step h3 { margin-bottom: .35rem; }
.lp-step p { font-size: .9375rem; color: var(--ink-2); max-width: 34ch; }

.lp-layer { border-left: 2px solid var(--l); padding-left: 1.1rem; }
.lp-layer .tag {
  font-size: .6875rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase;
  color: var(--l); margin-bottom: .5rem; display: block;
}
.lp-layer h3 { margin-bottom: .35rem; }
.lp-layer p { font-size: .9375rem; color: var(--ink-2); max-width: 34ch; }

.lp-card {
  background: var(--card); border: 1px solid var(--line); border-radius: .875rem;
  padding: 1.5rem; box-shadow: var(--shadow);
}

/* ---------------------------------------------------------------- pricing */

.lp-price { display: flex; flex-direction: column; }
.lp-price.hi { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy), var(--shadow); }
.lp-price .amt {
  font-size: 2.25rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: .2rem;
}
.lp-price .amt span { font-size: .875rem; font-weight: 550; color: var(--ink-3);
                      letter-spacing: 0; }
.lp-price ul { list-style: none; margin: 1.1rem 0 0; padding: 0; font-size: .875rem;
               color: var(--ink-2); }
.lp-price li { padding: .3rem 0 .3rem 1.35rem; position: relative; }
.lp-price li::before {
  content: '✓'; position: absolute; left: 0; color: var(--good); font-weight: 700;
  font-size: .75rem;
}

/* ---------------------------------------------------------------- faq + footer */

.lp-faq { display: grid; gap: 1.75rem; margin-top: 2.5rem;
          grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.lp-faq h3 { margin-bottom: .3rem; }
.lp-faq p { font-size: .9375rem; color: var(--ink-2); max-width: 42ch; }

.lp-foot {
  border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: .875rem;
  color: var(--ink-3);
}
.lp-foot a { color: var(--ink-2); }
.lp-foot-in { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- motion */

/* Reveals animate transform and opacity only — the two the compositor can carry without touching
 * layout — on a critically damped curve. Nothing here is dragged, so nothing overshoots: bounce on
 * a panel that faded in reads as decoration rather than physics.
 *
 * THE `.js` GATE IS NOT DECORATION, IT IS THE PAGE EXISTING
 *
 * Hiding everything by default and revealing it from script means any script failure — a blocked
 * module, an IntersectionObserver that never fires, an old browser — renders a completely blank
 * page. On the one page in this product written for strangers, that is the worst failure there is.
 *
 * It is not hypothetical: during development a browser whose observer never fired showed a hero
 * and four thousand pixels of nothing, and every automated check still passed, because the markup
 * and the module were both fine.
 *
 * So the content is visible by default, and only hides once a script has run far enough to promise
 * it will bring it back. */
.js .rise { opacity: 0; transform: translate3d(0, 1.25rem, 0); }
.js .rise.in {
  opacity: 1; transform: none;
  transition: opacity 500ms cubic-bezier(.22, .61, .36, 1),
              transform 500ms cubic-bezier(.22, .61, .36, 1);
}
.js .mock-row.rise { transform: translate3d(0, .5rem, 0); }

@media (prefers-reduced-motion: reduce) {
  /* Gentler, not absent. Opacity still explains that something arrived; the travel is what causes
     trouble, so only that goes. */
  .rise { transform: none; }
  .rise.in { transition: opacity 220ms ease; }
  .lp-btn { transition: background-color 140ms ease-out; }
  .lp-btn:active { transform: none; }
  .lp-nav::after { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .lp-nav { background: var(--page); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .lp-nav::after { background: none; border-bottom: 1px solid var(--line); }
}

@media (prefers-contrast: more) {
  .lp-nav { background: var(--page); backdrop-filter: none; -webkit-backdrop-filter: none;
            border-bottom: 1px solid var(--line-strong); }
  .lp-card, .mock, .lp-price { border-color: var(--line-strong); }
  .lp .say, .lp .lede, .lp-step p, .lp-layer p, .lp-faq p, .lp-price ul { color: var(--ink); }
}

/* ================================================================= second pass
 *
 * WHAT THE FIRST VERSION GOT WRONG
 *
 * Every section had the same visual weight — text, grid, text, grid — so nothing was obviously the
 * most important thing on the page and the whole thing read as dense. Hierarchy is order, spacing
 * and contrast, not just type size, and a page where everything is emphasised emphasises nothing.
 *
 * And the product was a picture. A demo somebody can touch is worth more than any number of static
 * mockups, so the panel is now real: tick a line and the money moves.
 */

/* ---------------------------------------------------------------- the live demo */

.mock-row { cursor: pointer; transition: background-color 120ms ease-out; }
.mock-row:hover { background: var(--sunken); }
/* Feedback on press, not on release — the row is the control, so the row responds. */
.mock-row:active { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.mock-row.off .mock-what .item,
.mock-row.off .mock-val { color: var(--ink-3); }
.mock-row.off .mock-val { text-decoration: line-through; }
.mock-tick {
  border: 1.5px solid var(--navy); transition: background-color 120ms ease-out;
}
.mock-row.off .mock-tick { background: transparent; color: transparent; border-color: var(--line-strong); }
/* Tabular figures so the total does not jitter horizontally as it counts. */
.mock-band-h .sum, .mock-val { font-variant-numeric: tabular-nums; }
.mock-hint {
  font-size: .8125rem; color: var(--ink-3); text-align: center; margin-top: .9rem;
}
.mock-why {
  border: 0; background: none; padding: 0; margin-top: .2rem; cursor: pointer;
  font: inherit; font-size: .6875rem; color: var(--navy); font-weight: 600;
}
.mock-note {
  display: none; margin: .45rem 0 0; padding: .5rem .6rem; background: var(--sunken);
  border-radius: .4rem; font-size: .6875rem; line-height: 1.5; color: var(--ink-2);
}
.mock-row.open .mock-note { display: block; }

/* ---------------------------------------------------------------- the money band */

/* The one section that gets a different ground. Contrast is hierarchy: this is the argument the
   page exists to make, so it does not look like the sections either side of it. */
.roi { background: var(--sunken); border-block: 1px solid var(--line); }
.roi-grid {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 56rem) { .roi-grid { grid-template-columns: 1fr 1.1fr; } }
.roi-bars { display: grid; gap: 1.1rem; }
.roi-bar .lab {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: .875rem; color: var(--ink-2); margin-bottom: .4rem;
}
.roi-bar .lab b { font-size: 1.125rem; color: var(--ink); letter-spacing: -.02em;
                  font-variant-numeric: tabular-nums; }
.roi-bar .track { height: 2.25rem; border-radius: .5rem; background: var(--card);
                  border: 1px solid var(--line); overflow: hidden; }
.roi-bar .fill { height: 100%; border-radius: .45rem; }
.roi-bar.found .fill { background: var(--good); }
.roi-bar.cost  .fill { background: var(--ink-3); }
.roi-note { margin-top: 1.5rem; }

/* ---------------------------------------------------------------- steps as figures */

/* A number in a circle is not a picture. Each step gets a small true-to-life fragment of the
   product instead, so the row reads as a sequence of things that happen on a screen. */
.fig {
  border: 1px solid var(--line); border-radius: .625rem; background: var(--card);
  padding: .7rem .8rem; margin-bottom: 1rem; font-size: .75rem;
  /* Tall enough for the fullest of the three, so all three headings sit on one line. Measured:
     the figures were 79, 102 and 105px and the headings staggered by 25px, which reads as
     carelessness long before anybody can say what is wrong with it. */
  min-height: 6.75rem;
  display: flex; flex-direction: column; justify-content: center; gap: .35rem;
  box-shadow: var(--shadow);
}
.fig .chip {
  display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start;
  background: var(--navy); color: #fff; border-radius: .35rem; padding: .3rem .6rem;
  font-weight: 650; font-size: .75rem;
}
:root[data-theme='dark'] .fig .chip { color: #0d131c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .fig .chip { color: #0d131c; }
}
.fig .line { display: flex; justify-content: space-between; gap: .6rem; color: var(--ink-3); }
.fig .line b { color: var(--ink); font-weight: 550; }
.fig .rulebar { height: .3rem; border-radius: .2rem; background: var(--line); overflow: hidden; }
.fig .rulebar span { display: block; height: 100%; background: var(--shop); }

/* ---------------------------------------------------------------- faq as disclosure */

/* Six answers open at once is a wall. Closed, it is six questions somebody can scan in a second —
   the common path first, the detail one level down. */
.faq { max-width: 46rem; margin-top: 2.5rem; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2rem 1.05rem 0; position: relative;
  font-size: 1rem; font-weight: 600; letter-spacing: -.012em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: .4rem; top: 50%; width: .5rem; height: .5rem;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); transition: transform 200ms ease-out;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq summary:hover { color: var(--navy); }
.faq .a { padding: 0 2rem 1.15rem 0; font-size: .9375rem; color: var(--ink-2); max-width: 58ch; }

@media (prefers-reduced-motion: reduce) {
  .faq summary::after, .mock-row, .mock-tick { transition: none; }
}

/* ---------------------------------------------------------------- the two kinds of finding */

.kinds { display: grid; gap: 1.5rem; margin-top: 2rem;
         grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.kind { border-top: 2px solid var(--k); padding-top: .9rem; }
.kind h3 { font-size: .9375rem; margin-bottom: .3rem; }
.kind p { font-size: .875rem; color: var(--ink-2); max-width: 34ch; }

/* ---------------------------------------------------------------- the value ladder
 *
 * Replaces two proportional bars. The bars answered "is it worth more than it costs", which was
 * never really in doubt — what a shop needs to see is that the figure is PER REPAIR, and that the
 * first audit of the month has already paid for the month.
 *
 * Hierarchy carries that: the per-repair figure is the largest number on the page, the monthly
 * total supports it, and the price is deliberately the smallest thing here. Weight, size and
 * leading as a set, rather than three rows of the same treatment.
 */
.ladder { display: grid; gap: 0; }
.rung { padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.rung:last-child { border-bottom: 0; }
.rung .lab { display: block; font-size: .8125rem; color: var(--ink-3); font-weight: 600;
             letter-spacing: .04em; text-transform: uppercase; }
.rung .num {
  display: block; margin-top: .25rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.05;
  font-variant-numeric: tabular-nums; color: var(--ink);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}
.rung.hero .num { font-size: clamp(2.5rem, 5.6vw, 4rem); color: var(--good); }
.rung.cost .num { font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--ink-2); }
.rung .num small { font-size: .5em; font-weight: 550; letter-spacing: 0; color: var(--ink-3); }
.rung .note { display: block; margin-top: .35rem; font-size: .8125rem; color: var(--ink-3); }
.paidfor {
  margin-top: 1.5rem; padding: .9rem 1.1rem; border-radius: .625rem;
  background: color-mix(in oklab, var(--good) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--good) 22%, transparent);
  font-size: .9375rem; color: var(--ink); font-weight: 550;
}
