/*
 * Car Handovers, the whole stylesheet for every page on the site.
 *
 * Since 3 November 2026 the site is a holding page in the look of the emails:
 * the tokens, type and card below are the ones in server/src/email/glass.ts.
 * Change them there and here together, or the site and the inbox drift apart.
 */
@font-face{font-family:'ABC Repro';font-weight:400;font-style:normal;font-display:swap;src:url('/assets/fonts/abc-repro-400.woff2') format('woff2')}
@font-face{font-family:'ABC Repro';font-weight:500;font-style:normal;font-display:swap;src:url('/assets/fonts/abc-repro-500.woff2') format('woff2')}

:root{
  /*
   * Ink and the card are glass.ts's. The greys are the app's light-mode
   * textDim and textFaint (src/theme/tokens.ts), because the page sits on the
   * app's backdrop photo and those are solved against it: #45433F clears 4.5:1
   * on the darkest end of BACKDROP_RANGE (#B1B1B1). The emails' lighter greys
   * do not, on this background.
   */
  --ink:#121212; --body:#45433F; --muted:#45433F; --faint:#56544F;
  --rule:rgba(0,0,0,.09); --card:#F3F3F1; --stone:#C4C7C7; --paper:#FFFFFF;
  --wash:#E9E8E4; --foot:#2E2D2A;
  --blue:#121212;
  --gut:clamp(22px,4vw,40px);

  /*
   * ABC Repro under the Web licence (docs/licences/abc-repro.md), Regular and
   * Medium only. Helvetica and Arial behind it, as the emails have. Never
   * -apple-system or BlinkMacSystemFont: those always resolve first on the
   * platforms that have them, so the intended face never renders.
   */
  --font-display:'ABC Repro','Helvetica Neue',Helvetica,Arial,sans-serif;
  --font-body:'ABC Repro','Helvetica Neue',Helvetica,Arial,sans-serif;
  --font-data:'Fira Mono',Menlo,Consolas,monospace;

  --t-legal:12px;
  --t-micro:13px;
  --t-small:14px;
  --t-body:15px;
  --t-lead:16px;
  --t-title:19px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  font-family:var(--font-body);color:var(--ink);font-size:var(--t-body);line-height:1.6;
  /*
   * The app's background: its pre-blurred photo backdrop, copied from
   * assets/glass/backdrop-light.jpg. Stone underneath, so the page is the
   * right grey before the image arrives.
   */
  background:var(--stone) url('/assets/img/backdrop-light.jpg') center/cover no-repeat fixed;
  -webkit-font-smoothing:antialiased;font-feature-settings:"kern" 1;
}
/* iOS Safari paints a fixed background badly; there it scrolls with the page. */
@supports (-webkit-touch-callout:none){body{background-attachment:scroll}}
a{color:inherit}
b,strong{font-weight:500}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:2px}
.wrap{max-width:1180px;margin:0 auto;padding-left:var(--gut);padding-right:var(--gut)}

/* Repro carries 400 and 500 only, so nothing asks for more than 500. */
h1,h2,h3{font-family:var(--font-display);font-weight:500;letter-spacing:-0.02em;line-height:1.2}
h1{font-size:clamp(26px,3.4vw,34px)}
h2,.doc-title h1{font-size:clamp(26px,3.4vw,38px)}
.doc-title h1{max-width:24ch}
.doc-title p{margin-top:14px;color:var(--body);font-size:var(--t-lead);max-width:56ch}
h3{font-size:var(--t-title);letter-spacing:-0.012em;line-height:1.3}
p{text-wrap:pretty}
code{font-family:var(--font-data);font-size:.9em}

.section{padding-top:clamp(28px,5vw,48px);padding-bottom:clamp(48px,7vw,88px)}
.section-head{max-width:56ch}
.section-head p{margin-top:14px;color:var(--body);font-size:var(--t-lead)}
.lead{margin-top:14px;color:var(--body);font-size:var(--t-lead);max-width:56ch}
.notfound-title{margin-top:12px;font-size:clamp(30px,4vw,46px);letter-spacing:-0.025em;line-height:1.1}

/* --------------------------------------------------------- photo band --
 * The emails' header photograph, full bleed, fading out into the backdrop.
 *
 * The fade is a mask on the photo, not a colour laid over it: the page behind
 * is a photo too, so there is no single colour to fade into. That also ends
 * the hairline a colour overlay left on the band's fractional foot.
 *
 * The file is the email's 1120px export; at wider screens it is upscaled.
 * It is a soft, blurred shot, so that holds, but a larger source would help.
 */
.band{position:relative}
.band::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:url('/assets/img/email-hero.jpg') center top/cover no-repeat;
  -webkit-mask-image:linear-gradient(#000 25%,transparent 85%);mask-image:linear-gradient(#000 25%,transparent 85%)}
.band>*{position:relative;z-index:1}
header.band{padding-bottom:clamp(64px,9vw,120px)}

/* The bar over the photo: the mark in white, and the one way to the app. */
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1180px;margin:0 auto;padding:22px var(--gut)}
.mark{display:flex;align-items:center;gap:9px;white-space:nowrap;font-family:var(--font-display);font-weight:500;font-size:16px;letter-spacing:-0.01em;text-decoration:none;color:var(--ink)}
.mark svg{display:block}
/* "by" and the Loada wordmark after the name, in the mark's own colour. */
.mark-by{display:flex;align-items:center;gap:6px;margin-left:2px;font-size:13px;opacity:.75}
.mark .loada{color:inherit;opacity:1;height:9px}
.band .mark{color:#FFFFFF}
.nav-right{display:flex;align-items:center;gap:24px}
.nav-right a{font-size:var(--t-small);text-decoration:none}
.band .nav-right a{color:#FFFFFF}
.nav-cta{background:#FFFFFF;color:var(--ink)!important;padding:9px 18px;border-radius:999px;font-size:var(--t-small);font-weight:500;text-decoration:none}
/*
 * "Car Handovers by Loada" and the button do not fit across a phone. The name
 * wins: the mark links to the home page, which is where the badges are.
 */
@media(max-width:480px){.nav-cta{display:none}}

/* The ink pill, as the emails' action. */
.btn{display:inline-block;font-family:var(--font-display);padding:12px 22px;border-radius:999px;font-size:var(--t-small);font-weight:500;text-decoration:none;border:1px solid transparent;cursor:pointer;background:none;color:var(--ink)}
.btn-solid{background:var(--ink);color:var(--paper)}
.btn-line{border-color:#D2CFC8}
.btn-line:hover{border-color:var(--ink)}

/*
 * Store badges. The pair sit on one row at every width: wrapped, the second
 * badge reads as an afterthought, and two at 156px fit a phone.
 */
.stores{display:flex;flex-wrap:nowrap;gap:12px;margin-top:30px}
.store{display:block;flex:0 1 168px;min-width:0;text-decoration:none;border-radius:7px;line-height:0}
.store svg{display:block;width:100%;height:auto}

/* ------------------------------------------------------- holding page --
 * One screen, split: the words and the badges on the left on the page
 * colour, the photograph filling the right half to the edge of the window.
 * The photo is portrait, so it is never cropped to a wide band. On a phone
 * it sits on top and the words follow.
 */
.home header{position:absolute;top:0;left:0;right:0;z-index:1}
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:max(620px,100vh)}
/* The copy's left edge lines up with the mark above it. */
.split-copy{display:flex;align-items:center;padding:110px var(--gut) 72px max(var(--gut),calc((100vw - 1180px) / 2 + var(--gut)))}
.split-photo{position:relative;background:#2A2C2E}
.split-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 46%;display:block}
.hold{max-width:560px}
.eyebrow{font-size:12px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.hold h1{margin-top:14px;font-size:clamp(34px,3.9vw,56px);line-height:1.08;letter-spacing:-0.03em;max-width:16ch;text-wrap:balance}
.hold p{margin-top:18px;color:var(--body);font-size:clamp(16px,1.4vw,19px);max-width:40ch}
@media(max-width:860px){
  .split{grid-template-columns:1fr;min-height:0}
  .split-photo{order:-1;height:min(56svh,520px)}
  /* A light wash behind the mark, which sits on the photo here. */
  .split-photo::after{content:"";position:absolute;inset:0 0 auto;height:96px;background:linear-gradient(to bottom,rgba(255,255,255,.5),rgba(255,255,255,0))}
  .split-copy{padding:36px var(--gut) 56px}
  .hold h1{letter-spacing:-0.02em;max-width:16ch}
}
/* prose: the legal pages, help and delete-account */
.prose{max-width:62ch}
.prose p{margin-top:22px;font-size:var(--t-lead);line-height:1.68;color:var(--body)}

/* document pages: help and privacy */

/* Present for keyboard users only. The two document pages are long. */
.skip{position:absolute;left:-9999px;top:0;background:var(--ink);color:var(--paper);padding:10px 16px;border-radius:0 0 4px 0;font-size:var(--t-small);text-decoration:none;z-index:10}
.skip:focus{left:0}

/*
 * The prose block already carries paragraphs. These are the parts a notice or a
 * policy needs and a marketing page does not: sub-headings, lists, and a way to
 * emphasise inside a muted paragraph without it disappearing.
 */
.prose h2{font-size:var(--t-title);margin-top:44px}
.prose h3{font-size:var(--t-body);margin-top:30px;letter-spacing:-0.006em}
.prose h2+p,.prose h3+p{margin-top:10px}
.prose ul{margin:14px 0 0 20px;color:var(--body);font-size:var(--t-lead)}
/*
 * Ordered lists, added 15 September 2026 for the account-deletion page's three
 * steps. Same metrics as `ul` on purpose: the only difference between them here
 * is whether the marker is a number, and a numbered list that indents or sizes
 * differently from a bulleted one reads as a different kind of content.
 *
 * `ul` had been the only list style, so before this an `ol` fell back to the
 * browser default - smaller, differently indented, and in the body colour
 * rather than the muted one.
 */
.prose ol{margin:14px 0 0 20px;color:var(--body);font-size:var(--t-lead)}
.prose li{margin-top:7px}

/* ---------------------------------------------------------------- legal --
 * The two legal documents: /terms/ and /privacy/.
 *
 * Added 15 September 2026, when the reviewed documents replaced the interim
 * page and the placeholder notice. `.prose` alone could not carry them: a
 * twenty-page contract needs a clause number a reader can scan down the left
 * edge, an anchor per clause so a citation resolves, and a contents list.
 *
 * **The two documents are numbered differently and that is deliberate.** The
 * Terms carry clause and sub-clause numbers, reconstructed from a single
 * three-level list and validated against the document's own cross-reference.
 * The Privacy Policy carries none: it uses thirteen independent lists, so a
 * displayed number can only be produced by composing across them, and the
 * reconstruction would publish two sections numbered 1. Duplicate section
 * numbers are worse than none. Its anchors are heading slugs, which also
 * cannot go stale if counsel renumbers.
 *
 * So `.cn` appears on every Terms clause and on no Privacy clause, and the
 * rules below have to look right both ways.
 */

/*
 * The effective-date block, under the h1 and inside `.doc-title`, so it
 * inherits that block's muted lead treatment rather than restating it.
 */
/*
 * Renamed from `.legal-effective` on 15 September 2026 with the wording it
 * styles. The site said "Effective 15 September 2026" while the app's Legal
 * screen said "Last updated" - one date, two words for it, across three
 * surfaces. The class went with the copy rather than being left naming a
 * sentence that no longer exists.
 */
.legal-updated{font-size:var(--t-body)}

/*
 * Contents. A plain list, not a card: it is navigation and the page beneath it
 * is the content, so anything that boxes it competes with the document.
 *
 * `column-count` rather than a grid, because the entries are one line each and
 * their number differs between the two documents - sixteen and eighteen today,
 * and whatever counsel sends next.
 */
.legal-toc{margin-top:40px;padding-top:26px;border-top:1px solid var(--rule)}
.legal-toc h2{font-size:var(--t-body);letter-spacing:0.02em;text-transform:uppercase;color:var(--muted)}
.legal-toc-list{list-style:none;margin:16px 0 0;padding:0;font-size:var(--t-body)}
@media(min-width:760px){.legal-toc-list{column-count:2;column-gap:40px}}
.legal-toc-list li{margin-top:8px;break-inside:avoid}
.legal-toc-list a{color:var(--ink);text-decoration:none;border-bottom:1px solid transparent}
.legal-toc-list a:hover,.legal-toc-list a:focus-visible{border-bottom-color:var(--ink)}
/* The number in the contents list sits inline, not hanging: the entries are
 * short and a hanging column here would pull the eye off the titles. */
.legal-toc-list .cn{color:var(--muted);margin-right:8px;font-variant-numeric:tabular-nums}

/*
 * Clause numbers hang in the left margin, so the numbers form a scannable
 * column and the text keeps a straight left edge. `padding-left` with a
 * negative-indent `.cn` rather than a list marker, because the numbers are
 * reconstructed values in the markup and must be selectable and citable text.
 *
 * `tabular-nums` so 5.8.3 and 12.4.1 occupy the same width and the column does
 * not ripple.
 */
.legal section{margin-top:38px}
.legal h2{margin-top:0}
.legal h2 .cn,.legal p .cn,.legal li .cn{
  display:inline-block;color:var(--muted);font-variant-numeric:tabular-nums;
}
.legal h2{padding-left:var(--cn-w);text-indent:calc(var(--cn-w) * -1)}
.legal h2 .cn{width:var(--cn-w)}
.legal>section>p{padding-left:var(--cn-w);text-indent:calc(var(--cn-w) * -1)}
.legal>section>p .cn{width:var(--cn-w)}
/*
 * Three levels of number need three widths, or "12.4.1" wraps under itself at
 * the narrowest viewport. One custom property, overridden per depth.
 */
.legal{--cn-w:2.9em}
.legal .legal-sub{--cn-w:3.9em}

/*
 * Sub-clauses. `list-style:none` because the number is real text in a `.cn`,
 * not a generated marker - a generated one would not be citable and would not
 * match the reconstruction.
 *
 * The Privacy Policy's lettered lists use the same container and DO carry their
 * marker in `.cn`, because a letter counts within one list and is reliable. Its
 * decimal sub-items carry no `.cn` at all, so the rule has to look right with
 * the span absent: that is why the indent lives on the `li` rather than on the
 * span.
 */
.legal .legal-sub{list-style:none;margin:12px 0 0;padding:0}
.legal .legal-sub li{
  margin-top:9px;padding-left:var(--cn-w);text-indent:calc(var(--cn-w) * -1);
}
.legal .legal-sub li .cn{width:var(--cn-w)}
.legal ul.legal-sub li:not(:has(.cn)){
  padding-left:20px;text-indent:0;list-style:disc;display:list-item;
}
/* A continuation paragraph: text that belongs to the clause above it and
 * carries no number of its own. Aligned with the clause text, not the number. */
.legal .legal-cont{padding-left:var(--cn-w)}

/*
 * The lawful-basis table. Three columns of prose, so it scrolls sideways on a
 * phone rather than crushing to unreadable widths - the alternative is
 * collapsing it to stacked blocks, which loses the row relationship, and in a
 * privacy notice "which lawful basis applies to which data" IS the meaning.
 */
.legal-tablewrap{margin-top:20px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.legal-table{border-collapse:collapse;width:100%;min-width:640px;font-size:var(--t-body)}
.legal-table th,.legal-table td{
  border:1px solid var(--rule);padding:12px 14px;text-align:left;vertical-align:top;
}
.legal-table th{background:var(--wash);font-family:var(--font-display);font-weight:500}
.legal-table td{color:var(--body)}
.legal-table p{margin:0}
.legal-table p+p{margin-top:7px}

/*
 * A clause arrived at by following a citation is highlighted, because landing
 * mid-document with nothing marked leaves a reader hunting for the thing they
 * clicked.
 */
.legal :target{background:var(--wash);outline:2px solid var(--rule);outline-offset:6px;border-radius:2px}
.prose b,.prose strong{color:var(--ink);font-weight:500}
.prose a{color:var(--ink);text-decoration-color:var(--rule);text-underline-offset:3px}
.prose a:hover{text-decoration-color:var(--ink)}

/*
 * A callout, used for the privacy notice's placeholder warning and for the
 * "there is a Send feedback screen in the app" note on help.
 *
 * The tone is carried by a left rule rather than a fill, the same decision as
 * the unfinished-handover card in the app: a filled block is the loudest thing
 * on a page of prose, and neither of these outranks the document it sits in.
 */
.callout{border-left:3px solid var(--rule);padding:2px 0 2px 18px;margin-top:28px;font-size:var(--t-body);color:var(--body);max-width:62ch}
.callout b{color:var(--ink);font-weight:500}
.callout-warn{border-left-color:#A63A2C}

/* help: form beside the standing answers */
/*
 * The contact form's column, 15 September 2026.
 *
 * **This replaced `.split` and `.aside`, which are deleted rather than left
 * dead.** /help/ was the only page using either - checked across all six - so
 * once the "Before you write" aside went there was nothing for them to style.
 *
 * `.split` was a 1fr/.7fr grid and the form sat in the wider column, so the
 * width here is what the form already had rather than a new decision: 640px is
 * about that column at the 1180px breakpoint. Keeping the grid with one child
 * would have left an empty second column beside the form.
 */
.form-only{max-width:640px;margin-top:clamp(32px,4vw,52px)}

/* form */
.form{margin-top:28px;max-width:34rem}
.field{margin-bottom:22px}
.field label,.field legend{display:block;font-family:var(--font-body);font-size:var(--t-small);font-weight:500;margin-bottom:7px}
.hint{color:var(--muted);font-weight:400}
.input,.textarea{
  display:block;width:100%;font-family:var(--font-body);font-size:var(--t-body);color:var(--ink);
  background:var(--paper);border:1px solid #D2CFC8;border-radius:12px;padding:11px 14px;line-height:1.5;
}
.textarea{min-height:150px;resize:vertical}
.input:hover,.textarea:hover{border-color:var(--muted)}
.radios{display:flex;flex-direction:column;gap:9px}
.radios label{display:flex;align-items:center;gap:10px;font-weight:400;margin:0;font-size:var(--t-body)}
.radios input{width:17px;height:17px;accent-color:var(--blue);margin:0;flex:none}
/*
 * The honeypot. Off-screen rather than display:none, because some bots skip
 * anything a stylesheet has hidden outright and this one is meant to be filled.
 */
.trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form button[type="submit"]{
  font-family:var(--font-display);background:var(--ink);color:var(--paper);border:0;cursor:pointer;
  padding:13px 24px;border-radius:999px;font-size:var(--t-small);font-weight:500;
}
.form button[type="submit"]:disabled{opacity:.55;cursor:default}
.form__status{margin-top:14px;font-size:var(--t-small);color:var(--muted);min-height:1.4em}
.form__status[data-state="error"]{color:#A63A2C}
.form__status[data-state="ok"]{color:var(--ink)}

/* ------------------------------------------------------------- footer --
 * Full width under a hairline. The links and the company line are the
 * emails' footer, laid out across the page rather than centred under a card.
 */
footer{border-top:1px solid var(--rule);color:var(--foot)}
footer>*{max-width:1180px;margin-left:auto;margin-right:auto;padding-left:var(--gut);padding-right:var(--gut)}
footer>:first-child{padding-top:28px}
footer>:last-child{padding-bottom:44px}
.foot-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 32px}
.foot-links{display:flex;flex-wrap:wrap;gap:4px 24px;font-size:var(--t-small)}
.foot-by{display:flex;align-items:center;gap:7px;font-size:var(--t-small);color:var(--muted);text-decoration:none;padding:4px 0}
.foot-by:hover .loada{opacity:1}
/* The designer's Loada wordmark, as the app's Sign in byline draws it. Never "Loada" set as text. */
.loada{display:block;height:10px;width:auto;aspect-ratio:819/105;color:var(--ink);opacity:.85}
.foot-links a{text-decoration:none;padding:4px 0}
.foot-links a:hover,.foot-links a[aria-current]{text-decoration:underline;text-underline-offset:3px}
.foot-legal{margin-top:16px;font-size:var(--t-legal);line-height:1.6;letter-spacing:0.005em;color:var(--muted)}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
