/* RentDesk marketing site: shared tokens + components.
   Read BRAND.md before changing anything here. One accent, one display face,
   one signature (the rate tag). Everything else stays quiet. */

/* ---------- 1. Tokens ---------- */
:root {
  /* Neutrals: every grey is tinted toward one cool green hue (~165deg). */
  --canvas: #F3F5F4;        /* page background */
  --panel: #E8EDEB;         /* second neutral: product chrome, closing band, filter rows */
  --raised: #FAFBFA;        /* raised surface: open day panel, quote sheet, photo tile */
  --line: #D3DBD7;          /* hairline separators */
  --line-strong: #7E8F88;   /* input + bordered button outlines (3:1 on canvas) */
  --ink: #12201C;           /* primary text, rate tag, footer ground */
  --ink-2: #384843;         /* secondary text */
  --muted: #56665F;         /* captions, meta (5.2:1 on canvas) */

  /* The one accent: lot-line green. Primary action, current selection, focus. */
  --accent: #0A6B56;
  --accent-hover: #07574A;
  --on-accent: #F3F5F4;
  --accent-soft: #D5EBE2;   /* selection background */

  /* Heat tint for price data (needs a legend every time it is used). */
  --heat-1: #BFE0D3;        /* cheapest band */
  --heat-2: #DAEDE5;        /* middle band */
  --heat-3: #EDF3F0;        /* dearest band */

  /* Rate tag (signature) */
  --tag: #12201C;
  --tag-text: #EEF3F0;
  --tag-muted: #A9BAB3;
  --tag-rule: #33433E;

  /* Footer on ink */
  --on-ink: #E6ECE9;
  --on-ink-muted: #A9BAB3;

  /* Semantic: background / foreground / border */
  --success-bg: #DDEFE7; --success-fg: #0B5A48; --success-line: #8CC3AE;
  --warning-bg: #F6EDD6; --warning-fg: #6E4A05; --warning-line: #D8B66A;
  --danger-bg:  #F7E4E1; --danger-fg:  #9A2A20; --danger-line:  #DB9C93;
  --info-bg:    #E2EBF0; --info-fg:    #234E66; --info-line:    #93B2C4;

  /* Rental brand swatches: data keys only, always next to the brand name. */
  --b-avis: #D4002A;  --b-budget: #F68B1F; --b-payless: #6E2C8C;
  --b-hertz: #FFD100; --b-dollar: #C8102E; --b-thrifty: #0B5FA5;
  --b-sixt: #FF5F00;  --b-enterprise: #169A5A; --b-national: #006341; --b-alamo: #00529B;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-text: "Public Sans", "Segoe UI", sans-serif;
  --fs-1: 13px;                               /* caption, column header, code chip */
  --fs-2: 16px;                               /* body, buttons, table cells */
  --fs-3: 20px;                               /* lead, item title, cell price emphasis */
  --fs-4: clamp(28px, 2.2vw + 16px, 44px);    /* section headline (display) */
  --fs-5: clamp(40px, 4vw + 8px, 68px);     /* page headline (display) */
  --lh-tight: 1.02;
  --lh-body: 1.55;

  /* Space: 4px scale only */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Radius: tighter inside */
  --r-1: 4px;   /* chips, table chrome, swatches */
  --r-2: 6px;   /* buttons, inputs, rate tag body */
  --r-3: 10px;  /* the few raised panels */

  /* The only shadow: reserved for overlays (the open day panel, the mobile menu). */
  --overlay-shadow: 0 18px 40px -18px rgba(18, 32, 28, 0.28);

  --wrap: 1200px;
  --gutter: 16px;
}
@media (min-width: 720px)  { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-2);
  line-height: var(--lh-body);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--accent-soft); color: var(--ink); }

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-5);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-4);
  line-height: 1.06;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h3, .h3 {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--fs-3);
  line-height: 1.3;
}
.lead { font-size: var(--fs-3); line-height: 1.5; color: var(--ink-2); max-width: 38em; }
.small, small { font-size: var(--fs-1); line-height: 1.5; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Links: underlined, never an arrow */
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: currentColor; color: var(--accent); }

/* Focus: one ring, accent, everywhere */
:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 2px; border-radius: 2px; }
.site-footer :focus-visible, .rate-tag :focus-visible { outline-color: var(--on-ink); }

.skip {
  position: absolute; left: var(--s-4); top: -60px; z-index: 80;
  background: var(--ink); color: var(--on-ink); padding: var(--s-2) var(--s-4); border-radius: var(--r-2);
}
.skip:focus { top: var(--s-2); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-5);
  border-radius: var(--r-2); border: 1px solid transparent;
  font: 500 var(--fs-2)/1 var(--font-text);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
/* Exactly one per screen. */
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
/* Every other action. */
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); background: var(--raised); }
.btn-quiet { background: transparent; color: var(--ink); padding-inline: var(--s-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.btn-quiet:hover { color: var(--accent); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ---------- 4. Header ---------- */
.site-header { background: var(--canvas); border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
.header-inner { display: flex; align-items: center; gap: var(--s-6); min-height: 72px; }

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: 0;
  color: var(--ink); text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
/* The mark: a key tag. Chamfered end + punched hole, nothing else. */
.mark {
  --tag-ground: var(--canvas);
  position: relative; display: inline-block; width: 14px; height: 22px;
  background: var(--ink);
  clip-path: polygon(0 5px, 5px 0, 100% 0, 100% 100%, 5px 100%, 0 calc(100% - 5px));
  border-radius: 1px;
}
.mark::after {
  content: ""; position: absolute; left: 50%; top: 4px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--tag-ground);
}
.site-footer .mark { --tag-ground: var(--ink); background: var(--on-ink); }

.site-nav { display: flex; align-items: center; flex: 1; gap: var(--s-6); }
.nav-links { display: flex; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.nav-links a, .nav-signin {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink-2); text-decoration: none; font-weight: 500;
}
.nav-links a:hover, .nav-signin:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-actions { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; }
.nav-signin { margin-right: var(--s-2); }

.menu-toggle {
  display: none; margin-left: auto; align-items: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-2);
  background: transparent; color: var(--ink); font: 500 var(--fs-2)/1 var(--font-text); cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .i-close { display: none; }
.site-header.is-open .menu-toggle .i-close { display: block; }
.site-header.is-open .menu-toggle .i-menu { display: none; }

@media (max-width: 959px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--raised);
    padding: var(--s-2) var(--gutter) var(--s-5);
    box-shadow: var(--overlay-shadow);
  }
  .site-header.is-open .site-nav { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a, .nav-signin { min-height: 52px; width: 100%; font-size: var(--fs-3); color: var(--ink); }
  .nav-links a[aria-current="page"] { text-underline-offset: 6px; }
  .nav-actions { flex-direction: column; align-items: stretch; margin: 0; gap: var(--s-3); }
  .nav-signin { margin: 0 0 var(--s-2); border-bottom: 1px solid var(--line); }
  .nav-actions .btn { width: 100%; min-height: 48px; }
}

/* ---------- 5. Sections ---------- */
.section { padding-block: var(--s-8); }
@media (min-width: 960px) { .section { padding-block: var(--s-9); } }
.section + .section { border-top: 1px solid var(--line); }
.section--panel { background: var(--panel); border-top: 0; }
.section--panel + .section { border-top: 0; }
.section-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); max-width: 760px; }
.section-head p { color: var(--ink-2); font-size: var(--fs-3); line-height: 1.5; }

/* Split: statement on one side, a real product fragment on the other */
.split { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 7fr; gap: var(--s-8); }
  .split--flip { grid-template-columns: 5fr 7fr; }
  .split--flip > :first-child { order: 2; }
}
.split .stack { display: grid; gap: var(--s-4); align-content: start; }
.split .stack p { color: var(--ink-2); }

/* Rows: hairline-separated list, title column + text column (+ optional fragment) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row-item { display: grid; gap: var(--s-3) var(--s-6); padding-block: var(--s-6); border-bottom: 1px solid var(--line); }
.row-item p { color: var(--ink-2); max-width: 36em; }
@media (min-width: 960px) {
  .row-item { grid-template-columns: 3fr 5fr 4fr; align-items: start; }
  .rows--two .row-item { grid-template-columns: 4fr 8fr; }
}
.row-item .row-aside { font-size: var(--fs-1); color: var(--muted); }

/* Audience list: the only place a display face sits in a list */
.audience { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.audience li { display: grid; gap: var(--s-3) var(--s-6); padding-block: var(--s-5) var(--s-6); border-bottom: 1px solid var(--line); }
.audience .audience-name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-4); line-height: 1.05; }
.audience p { color: var(--ink-2); max-width: 40em; }
@media (min-width: 960px) {
  .audience li { grid-template-columns: 5fr 7fr; align-items: baseline; }
}

/* Statement: one large line in the display face, used once per page at most */
.statement { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-4); line-height: 1.08; max-width: 22em; text-wrap: balance; }

/* Closing band */
.closing { background: var(--panel); }
.closing-inner { display: grid; gap: var(--s-5); }
@media (min-width: 960px) { .closing-inner { grid-template-columns: 7fr 5fr; align-items: end; gap: var(--s-8); } }
.closing .note { color: var(--muted); font-size: var(--fs-1); }

/* Prose: legal, about, long reads */
.prose { max-width: 42em; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); font-size: 28px; }
.prose h3 { margin-top: var(--s-6); }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: var(--s-2); }

/* ---------- 6. Data atoms ---------- */
/* Brand = name in text with a small solid square of its colour */
.brand { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.brand::before {
  content: ""; width: 9px; height: 9px; border-radius: 2px; flex: none;
  background: var(--sw, var(--muted)); outline: 1px solid rgba(18, 32, 28, .18); outline-offset: -1px;
}
.brand[data-brand="Avis"] { --sw: var(--b-avis); }
.brand[data-brand="Budget"] { --sw: var(--b-budget); }
.brand[data-brand="Payless"] { --sw: var(--b-payless); }
.brand[data-brand="Hertz"] { --sw: var(--b-hertz); }
.brand[data-brand="Dollar"] { --sw: var(--b-dollar); }
.brand[data-brand="Thrifty"] { --sw: var(--b-thrifty); }
.brand[data-brand="Sixt"] { --sw: var(--b-sixt); }
.brand[data-brand="Enterprise"] { --sw: var(--b-enterprise); }
.brand[data-brand="National"] { --sw: var(--b-national); }
.brand[data-brand="Alamo"] { --sw: var(--b-alamo); }

/* Real codes only: branch, IATA, SIPP. Text face, uppercase, tracked. */
.code {
  display: inline-block; padding: 1px 6px; border-radius: var(--r-1);
  font: 500 var(--fs-1)/1.5 var(--font-text); letter-spacing: .06em; text-transform: uppercase;
  background: var(--panel); color: var(--ink-2); white-space: nowrap;
}

/* Price: amount + quiet unit. One format: $567, $6,237. */
.price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price .unit { font-weight: 400; color: var(--muted); font-size: var(--fs-1); margin-left: 2px; }

/* Chips that look like the product's filters */
.chip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--r-1); background: var(--raised);
  font-size: var(--fs-1); color: var(--ink-2); white-space: nowrap;
}

/* ---------- 7. Signature: the rate tag ---------- */
/* A key tag: chamfered end, punched hole, the price of a month on it.
   Every rate tag carries real information: price per month, brand + branch code,
   location, car, and the contract total for the rental length. */
.rate-tag {
  --tag-ground: var(--raised);
  position: relative; display: grid; grid-template-columns: 36px 1fr; column-gap: var(--s-3);
  padding: var(--s-4) var(--s-5) var(--s-4) var(--s-3);
  background: var(--tag); color: var(--tag-text);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.rate-tag::before {           /* the punched hole */
  content: ""; grid-column: 1; grid-row: 1 / span 4; align-self: center; justify-self: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--tag-ground); border: 3px solid var(--tag-rule);
}
.rate-tag::after {            /* the fold between stub and face */
  content: ""; position: absolute; left: 44px; top: var(--s-3); bottom: var(--s-3);
  border-left: 1px solid var(--tag-rule);
}
.rate-tag > * { grid-column: 2; padding-left: var(--s-3); }
.rate-tag .tag-price { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-4); line-height: 1; letter-spacing: 0; }
.rate-tag .tag-price .unit { font-family: var(--font-text); font-weight: 400; font-size: var(--fs-2); color: var(--tag-muted); margin-left: 4px; }
.rate-tag .tag-where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: var(--s-3); font-weight: 500; }
.rate-tag .tag-where .code { background: var(--tag-rule); color: var(--tag-text); }
.rate-tag .tag-where .brand::before { outline-color: rgba(238, 243, 240, .25); }
.rate-tag .tag-meta { color: var(--tag-muted); font-size: var(--fs-1); margin-top: 2px; }
.rate-tag .tag-term { margin-top: var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--tag-rule); font-size: var(--fs-1); color: var(--tag-text); }

/* ---------- 8. Product fragment: price calendar ---------- */
.product { display: grid; gap: 0; position: relative; }
@media (min-width: 1100px) {
  .product { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; column-gap: var(--s-5); }
  .product .day-panel { margin-top: var(--s-6); }
}
.cal-panel { background: var(--panel); border-radius: var(--r-3); padding: var(--s-3); }
@media (min-width: 720px) { .cal-panel { padding: var(--s-5); } }
.cal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-4); }
.cal-head h3 { font-size: var(--fs-3); }
.cal-filters { display: flex; flex-wrap: wrap; gap: 6px; }

.cal { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.cal th {
  font-size: var(--fs-1); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  text-align: left; padding: 0 6px 4px;
}
.cal td {
  position: relative; vertical-align: top; height: 60px; padding: 4px;
  background: var(--raised); border-radius: var(--r-1); font-size: var(--fs-1); line-height: 1.25;
}
@media (min-width: 720px) { .cal td { height: 84px; padding: 8px; } }
.cal td.is-empty { background: transparent; }
.cal td.no-price { background: transparent; outline: 1px solid var(--line); outline-offset: -1px; }
.cal .d-n { display: block; color: var(--muted); }
.cal .d-p { display: block; margin-top: 4px; font-size: var(--fs-1); font-weight: 600; color: var(--ink); }
.cal .d-b { display: none; margin-top: 2px; color: var(--ink-2); letter-spacing: .04em; }
.cal .d-low { display: none; position: absolute; right: 8px; top: 8px; font-size: var(--fs-1); font-weight: 600; color: var(--ink); }
@media (min-width: 720px) {
  .cal .d-p { font-size: var(--fs-2); }
  .cal .d-b { display: block; }
  .cal .d-low { display: block; }
}
.cal td.heat-a { background: var(--heat-1); }
.cal td.heat-b { background: var(--heat-2); }
.cal td.heat-c { background: var(--heat-3); }
/* Lowest day: tint + corner notch (shape) + the word "Lowest" on wider screens */
.cal td.is-low::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 0;
  border-style: solid; border-width: 0 0 12px 12px; border-color: transparent transparent var(--ink) transparent;
  border-bottom-right-radius: var(--r-1);
}
.cal td.is-selected { outline: 2px solid var(--accent); outline-offset: -2px; }

.legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-4); font-size: var(--fs-1); color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.legend .k1 { background: var(--heat-1); }
.legend .k2 { background: var(--heat-2); }
.legend .k3 { background: var(--heat-3); border: 1px solid var(--line); }
.legend .kn { background: transparent; border: 1px solid var(--line-strong); }
.legend .kl { width: 0; height: 0; border-radius: 0; border-style: solid; border-width: 0 0 12px 12px; border-color: transparent transparent var(--ink) transparent; }

/* The open day: an overlay sheet (owns the one shadow on the page) */
.day-panel {
  background: var(--raised); border-radius: var(--r-3); padding: var(--s-4);
  box-shadow: var(--overlay-shadow);
  margin-top: var(--s-4); position: relative; z-index: 2;
}
@media (min-width: 720px) { .day-panel { padding: var(--s-5); } }
.day-panel .day-title { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-4); }
.day-panel .day-title h3 { font-size: var(--fs-3); }
.day-feature { display: grid; grid-template-columns: 1fr; gap: var(--s-3); margin-bottom: var(--s-4); }
@media (min-width: 520px) { .day-feature { grid-template-columns: 2fr 3fr; align-items: stretch; } }
.day-feature .photo { border-radius: var(--r-2); overflow: hidden; min-height: 120px; }
.day-feature .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; }

/* ---------- 9. Tables (rate sheets, branch lists) ---------- */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-2); }
.table th {
  text-align: left; font-size: var(--fs-1); font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 0 var(--s-3) var(--s-2); border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.table th[aria-sort]::after, .table th.sortable::after {
  content: ""; display: inline-block; margin-left: 6px; vertical-align: 2px;
  border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0;
}
.table td { padding: 10px var(--s-3); vertical-align: middle; height: 44px; }
.table tbody tr + tr td { border-top: 1px solid var(--line); }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table .r { text-align: right; }
.table .sub { display: block; font-size: var(--fs-1); color: var(--muted); }
.table--compact td { padding-block: 8px; height: 40px; font-size: var(--fs-1); }
.table--compact td .price { font-size: var(--fs-2); }

/* Dot plot (price by pickup day) */
.dotplot { list-style: none; margin: 0; padding: 0; }
.dotplot li { display: grid; grid-template-columns: 92px 1fr 96px; align-items: center; gap: var(--s-3); min-height: 32px; font-size: var(--fs-1); }
.dotplot .track { position: relative; height: 20px; border-left: 1px solid var(--line-strong); }
.dotplot .track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.dotplot .dot {
  position: absolute; top: 50%; left: calc(var(--x) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--ink-2);
}
.dotplot .is-low .dot { background: var(--ink); width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.dotplot .is-low .lab { font-weight: 600; }
.dotplot .day { color: var(--ink-2); }
.dotplot .val { text-align: right; font-weight: 500; color: var(--ink); }
.dotplot-axis { display: grid; grid-template-columns: 92px 1fr 96px; gap: var(--s-3); font-size: var(--fs-1); color: var(--muted); margin-top: var(--s-2); }
.dotplot-axis .ticks { display: flex; justify-content: space-between; }

/* Map price pins (as the map shows them) */
.pins { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pin {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; margin-bottom: 6px;
  background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-1); font-size: var(--fs-1);
}
.pin::after {
  content: ""; position: absolute; left: 12px; bottom: -6px; width: 9px; height: 9px;
  background: var(--raised); border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  transform: rotate(45deg); transform-origin: center; margin-bottom: 1px;
}
.pin .price { font-size: var(--fs-1); }

/* Email line fragment (new-finds email) */
.mail { border-top: 1px solid var(--line-strong); font-size: var(--fs-1); }
.mail p { padding-block: 6px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.mail .subject { color: var(--ink); font-weight: 600; font-size: var(--fs-2); }

/* Brand list */
.brands { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); list-style: none; margin: 0; padding: 0; font-size: var(--fs-1); color: var(--ink-2); }

/* ---------- 10. Quote sheet (business fragment) ---------- */
.quote-sheet { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; max-width: 520px; }
.quote-sheet .q-band { background: var(--ink); color: var(--on-ink); padding: var(--s-3) var(--s-5); display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); font-size: var(--fs-1); }
.quote-sheet .q-band strong { font-weight: 600; font-size: var(--fs-2); }
.quote-sheet .q-bar { height: 4px; background: var(--b-avis); }
.quote-sheet .q-body { padding: var(--s-5); display: grid; gap: var(--s-4); }
.quote-sheet .q-car { display: grid; grid-template-columns: 1fr; gap: var(--s-3); align-items: center; }
@media (min-width: 520px) { .quote-sheet .q-car { grid-template-columns: 200px 1fr; } }
.photo-tile { background: var(--raised); border-radius: var(--r-2); display: grid; place-items: center; padding: var(--s-2); }
.quote-sheet .q-price { font-size: var(--fs-3); font-weight: 600; }
.quote-sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s-4); font-size: var(--fs-1); }
.quote-sheet dt { color: var(--muted); }
.quote-sheet dd { color: var(--ink); text-align: right; }
.quote-sheet .q-foot { border-top: 1px solid var(--line); padding: var(--s-3) var(--s-5); font-size: var(--fs-1); color: var(--muted); }

/* ---------- 11. Forms ---------- */
.form { display: grid; gap: var(--s-4); max-width: 520px; }
.form-row { display: grid; gap: var(--s-4); align-items: start; }
@media (min-width: 720px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 500; font-size: var(--fs-2); }
.field .hint { font-size: var(--fs-1); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  background: var(--raised); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-2);
  font: 400 var(--fs-2)/1.4 var(--font-text);
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); border-radius: var(--r-2); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea, [aria-invalid="true"] { border-color: var(--danger-fg); }
.field-error { font-size: var(--fs-1); color: var(--danger-fg); }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot */

/* Notices: background + text + 1px border, never a thick side stripe */
.notice { padding: var(--s-3) var(--s-4); border-radius: var(--r-2); border: 1px solid; font-size: var(--fs-2); }
.notice--success { background: var(--success-bg); color: var(--success-fg); border-color: var(--success-line); }
.notice--warning { background: var(--warning-bg); color: var(--warning-fg); border-color: var(--warning-line); }
.notice--danger  { background: var(--danger-bg);  color: var(--danger-fg);  border-color: var(--danger-line); }
.notice--info    { background: var(--info-bg);    color: var(--info-fg);    border-color: var(--info-line); }

/* ---------- 12. Hero ---------- */
.hero { padding-block: var(--s-7) var(--s-8); }
@media (min-width: 960px) { .hero { padding-block: var(--s-7) var(--s-8); } }
.hero-top { display: grid; gap: var(--s-5); margin-bottom: var(--s-7); }
@media (min-width: 960px) {
  .hero-top { grid-template-columns: 7fr 5fr; align-items: start; gap: var(--s-8); margin-bottom: var(--s-7); }
}
.hero-top h1 { max-width: 12em; }
.hero-copy { display: grid; gap: var(--s-5); }
.hero-copy p { color: var(--ink-2); font-size: var(--fs-3); line-height: 1.5; }
.hero-copy .small { font-size: var(--fs-1); color: var(--muted); }

/* ---------- 13. Plans teaser ---------- */
.plans-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-4); margin-top: var(--s-5); color: var(--ink-2); }
.plan-name { font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); padding-block: var(--s-8) var(--s-6); }
.site-footer a { color: var(--on-ink); text-decoration-color: rgba(230, 236, 233, .35); }
.site-footer a:hover { color: var(--on-ink); text-decoration-color: var(--on-ink); }
.footer-grid { display: grid; gap: var(--s-6); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 5fr 2fr 2fr 3fr; } }
.footer-grid .wordmark { color: var(--on-ink); }
.footer-grid p { color: var(--on-ink-muted); margin-top: var(--s-3); max-width: 26em; }
.footer-grid h2 { font-family: var(--font-text); font-size: var(--fs-2); font-weight: 600; letter-spacing: 0; margin-bottom: var(--s-3); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.footer-grid li a { display: inline-flex; min-height: 32px; align-items: center; }
.footer-legal { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--tag-rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-1); color: var(--on-ink-muted); }

/* ---------- 15. Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- 16. Phone refinements ---------- */
@media (max-width: 519px) {
  .day-panel .day-title { flex-direction: column; gap: 2px; }
  .day-feature .photo { aspect-ratio: 16 / 9; min-height: 0; }
  .hide-sm { display: none; }
  .split { gap: var(--s-5); }
}
.nowrap { white-space: nowrap; }
