/* Public pages (landing, privacy, terms, sign in): the layout of the "Service book" look. The palette, the Archivo font and
   the base type live in app.css; everything here is scoped to body.landing. */
body.landing { background: var(--paper); color: var(--ink); }

/* Type: headings wide and heavy, sentence case; body at normal width. */
.landing h1, .landing h2, .landing h3, .landing .brand { font-stretch: var(--wide); color: var(--ink); text-transform: none;
  letter-spacing: -.015em; display: block; }
.landing h1 { font-size: clamp(2.2rem, 7vw, 3.1rem); line-height: 1.04; font-weight: 800; margin: 0 0 1rem; }
.landing h2 { font-size: 1.25rem; line-height: 1.2; font-weight: 750; margin: 0 0 .75rem; }
.landing h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; margin: 0 0 .5rem; }
.landing p { max-width: 70ch; }
.landing a { color: var(--stamp); }
.landing :is(a, button, summary):focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; border-radius: 2px; }
.landing .muted { color: var(--ink-2); }

/* The logo: a touch bigger in the public pages' header, smaller in the footer. */
.landing .brand { text-decoration: none; }
.l-top .brand .logo { height: 1.85rem; }
.l-foot .brand .logo { height: 1.35rem; }

/* Buttons: solid stamp blue, small corners, no shadow. */
.landing .btn { border-radius: 6px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); box-shadow: none;
  font-weight: 650; }
.landing .btn:hover { border-color: var(--stamp); color: var(--stamp); }
.landing .btn.primary { background: var(--stamp); border-color: var(--stamp); color: var(--stamp-text); }
.landing .btn.primary:hover { color: var(--stamp-text); filter: brightness(1.12); }
.landing .l-cta { min-height: 52px; padding: .75rem 1.5rem; font-size: 1.05rem; }

/* Layout */
.l-top, .l-hero, .l-section, .l-final, .l-foot { max-width: 68rem; margin-left: auto; margin-right: auto;
  padding-left: 1rem; padding-right: 1rem; }
.l-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .9rem; padding-bottom: .9rem; }
.l-top-right { display: flex; align-items: center; gap: .5rem; }
/* Ruled lines span the content width only (a border would run into the side padding). */
.l-section, .l-final, .l-foot { background: linear-gradient(var(--rule), var(--rule)) top center / calc(100% - 2rem) 1px no-repeat; }
.l-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.l-narrow > * { max-width: 44rem; }
.landing .l-h2 { font-size: clamp(1.55rem, 4.5vw, 1.95rem); line-height: 1.15; font-weight: 800; margin: 0 0 2rem; }

/* Hero: text, then the ledger (beside it from 860px). */
.l-hero { display: grid; gap: 2.5rem; padding-top: 2rem; padding-bottom: 4rem; align-items: center; }
.l-lead { font-size: 1.15rem; line-height: 1.5; color: var(--ink-2); margin: 0 0 1.5rem; max-width: 34rem; }
.l-note { color: var(--ink-2); font-size: .9rem; margin: .5rem 0 0; }
@media (min-width: 860px) {
  .l-hero { grid-template-columns: 1.15fr .85fr; gap: 4rem; padding-top: 3.5rem; padding-bottom: 5rem; }
}

/* The ledger: a page of the car's service book. The one bold thing on the page. */
.l-ledger { position: relative; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px;
  padding: 1.6rem 1.25rem 1.1rem; max-width: 26rem; width: 100%; justify-self: center; }
.landing .l-ledger h2 { font-size: 1.05rem; font-weight: 700; margin: 0 5.5rem .9rem 0; }
.l-ledger dl { margin: 0; }
.l-ledger dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.l-ledger dt { color: var(--ink); }
.l-ledger dd { margin: 0; white-space: nowrap; }
.l-ledger .l-total { border-bottom: 2px solid var(--ink); padding: .8rem 0 .7rem; align-items: baseline; }
.l-ledger .l-total dt { font-weight: 650; }
.l-ledger .l-total dd { font-stretch: 125%; font-weight: 800; font-size: 2.1rem; line-height: 1; letter-spacing: -.02em; }
.l-ledger .l-planned { border-bottom: 0; color: var(--ink-2); }
.l-ledger .l-planned dt { color: var(--ink-2); }
.l-ledger > p { margin: .4rem 0 0; color: var(--ink-2); font-size: .85rem; }
.l-stamp { position: absolute; top: -.8rem; right: 1rem; transform: rotate(-6deg); background: var(--sheet);
  border: 2px solid var(--stamp); color: var(--stamp); border-radius: 3px; padding: .1rem .6rem;
  font-weight: 750; font-size: .85rem; font-stretch: var(--wide); }

/* Steps: a real sequence, numbered by CSS, separated by ruled lines. */
.l-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.l-steps > li { counter-increment: step; display: grid; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--rule); }
.l-steps > li:first-child { border-top: 0; padding-top: 0; }
.l-step-text { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-content: start; }
.l-step-text::before { content: counter(step); grid-row: span 2; font-stretch: 125%; font-weight: 800; font-size: 2.4rem;
  line-height: 1; color: var(--stamp); min-width: 2.2rem; }
.l-step-text p { margin: 0; color: var(--ink-2); line-height: 1.55; }
@media (min-width: 860px) {
  /* a fixed phone column: an auto column with a percentage-width phone collapses the text column */
  .l-steps > li { grid-template-columns: minmax(0, 34rem) 260px; justify-content: space-between; gap: 4rem;
    align-items: center; padding: 2.5rem 0; }
}

/* Phone frame around a screenshot: an ink bezel, no glow. */
.phone { width: min(260px, 100%); border-radius: 34px; padding: 8px; background: #1c2321; justify-self: center; }
/* Dark mode: the bezel is about the paper colour, so a lighter rim keeps the frame visible. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone { outline: 1.5px solid #4d5a57; } }
:root[data-theme="dark"] .phone { outline: 1.5px solid #4d5a57; }
.phone img { display: block; width: 100%; height: auto; border-radius: 27px; background: var(--paper); }

/* Who it is for: three short entries. */
.l-who { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.l-who li { border-top: 2px solid var(--ink); padding-top: .9rem; }
.landing .l-who h3 { font-size: 1.1rem; }
.l-who p { margin: 0; color: var(--ink-2); }
@media (min-width: 760px) { .l-who { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* Header text link (Pricing): ink, centred with the theme button and Sign in. */
.landing .l-top-link { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 .5rem; color: var(--ink);
  font-weight: 650; text-decoration: none; }
.landing .l-top-link:hover { color: var(--stamp); }

/* Pricing: two plan cards on sheets, like the ledger. Pro has the stamp border; buttons line up at the bottom. */
.landing .l-eyebrow { margin: 0 0 .6rem; color: var(--stamp); font-weight: 750; font-size: .85rem; font-stretch: var(--wide);
  letter-spacing: .08em; text-transform: uppercase; }
.l-plans { display: grid; gap: 2rem; max-width: 52rem; }
.l-plan { position: relative; display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule);
  border-radius: 4px; padding: 1.6rem 1.4rem 1.4rem; }
.l-plan-pro { border: 2px solid var(--stamp); }
.landing .l-plan h3 { font-size: 1.1rem; margin: 0; }
.landing .l-plan p { margin: 0; }
.landing .l-plan .l-price { font-size: 2.6rem; font-weight: 850; font-stretch: 125%; letter-spacing: -.02em; line-height: 1.1;
  margin: .6rem 0 .2rem; }
.landing .l-plan .l-per { font-size: 1rem; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--ink-2); }
.landing .l-plan .l-plan-for { color: var(--ink-2); }
.l-checks { list-style: none; margin: 1.25rem 0 1.5rem; padding: 1rem 0 0; border-top: 1px solid var(--rule); display: grid; gap: .6rem; }
.l-checks li { position: relative; padding-left: 1.6rem; }
/* The tick is drawn with borders: a glyph would fall back to another font. */
.l-checks li::before { content: ""; position: absolute; left: .3rem; top: .2em; width: .35rem; height: .7rem;
  border: solid var(--stamp); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.landing .l-plan-btn { margin-top: auto; width: 100%; min-height: 48px; }
.landing .l-plan .l-plan-soon { margin-top: .75rem; color: var(--ink-2); font-size: .9rem; }
.l-plan-note { margin: 1.5rem 0 0; color: var(--ink-2); }
@media (min-width: 760px) { .l-plans { grid-template-columns: 1fr 1fr; } }

/* Questions */
.l-faq { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.l-faq:first-of-type { border-top: 1px solid var(--rule); }
.l-faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: "+"; color: var(--stamp); font-size: 1.4rem; line-height: 1; }
.l-faq[open] summary::after { content: "\2212"; }
.l-faq p { margin: .75rem 0 0; color: var(--ink-2); line-height: 1.55; }

/* Closing call and footer */
.l-final { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.landing .l-final h2 { font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 800; margin: 0 0 .5rem; }
.l-final p { margin: 0 0 1.25rem; color: var(--ink-2); }
.l-foot { display: flex; align-items: center; gap: 1rem; justify-content: space-between; flex-wrap: wrap;
  padding-top: 1.5rem; padding-bottom: 2.5rem; }

/* Sign in and confirm: one sheet in the middle of the page. */
.l-auth { max-width: 68rem; margin: 0 auto; padding: 2.5rem 1rem 4rem; display: grid; justify-items: center; }
.l-sheet { width: 100%; max-width: 26rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px;
  padding: 1.75rem 1.5rem 1.6rem; }
.landing .l-sheet h1 { font-size: clamp(1.8rem, 6vw, 2.2rem); margin: 0 0 .75rem; }
.l-sheet p { margin: 0 0 1rem; }
.l-form { display: grid; gap: .5rem; margin-top: 1.25rem; }
.l-form label { font-weight: 650; }
.l-form input { font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: 4px;
  min-height: 48px; padding: .6rem .8rem; width: 100%; }
.l-form input::placeholder { color: var(--ink-2); opacity: 1; }
.l-form input:focus { outline: 2px solid var(--stamp); outline-offset: 1px; border-color: var(--stamp); }
.l-form .btn { width: 100%; min-height: 50px; margin-top: .5rem; font-size: 1.05rem; }
.l-error { background: var(--err-bg); color: var(--err-ink); border-left: 4px solid var(--err-ink); border-radius: 4px;
  padding: .7rem .9rem; }

/* Privacy and terms */
.legal h1 { margin-bottom: .25rem; }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
.legal p, .legal li { line-height: 1.65; max-width: 62ch; }
.legal ul { padding-left: 1.2rem; }
.legal .updated { margin-bottom: 1.5rem; color: var(--ink-2); }
