/* Fonts are served from here (latin subset, SIL Open Font License 1.1, see
   THIRD_PARTY_NOTICES.md): no third-party request holds up the first paint,
   and the file names carry the version so they cache for a year. */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/atkinson-hyperlegible-400-v12-latin.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/static/fonts/atkinson-hyperlegible-700-v12-latin.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/montserrat-variable-v31-latin.woff2) format("woff2"); }
/* Customer pages. Tokens and sizes come from DESIGN.md; do not change a
   colour pairing without measuring its contrast again. */
:root {
  --brand: #000094;
  --brand-ink: #000094;
  --brand-soft: #efefff;
  --accent: #ffca1c;
  --accent-ink: #3a2d00;
  --bg: #fbfdff;
  --surface: #ffffff;
  --fg: #1f2030;
  --muted: #55566b;
  --line: #d7d8e6;
  --ok: #11703a;
  --warn: #8a5a00;
  --bad: #b0200c;
  --ok-soft: #e4f5ea;
  --warn-soft: #fff3d6;
  --bad-soft: #fde8e4;
  /* Public site (DESIGN.md "Public site"). The navy and deep stay in dark mode. */
  --navy: #000094;
  --deep: #05054a;
  --ice: #e6f4ff;
  --frost: #bfe6ff;
  --on-navy: #cfd3ff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3d3dd6;
    --brand-ink: #b9b9ff;
    --brand-soft: #1b1b4a;
    --bg: #0c0d1f;
    --surface: #15172e;
    --fg: #eef0ff;
    --muted: #a9abc6;
    --line: #2e3152;
    --ok: #5fd38f;
    --warn: #ffcf66;
    --bad: #ff8f7a;
    --ok-soft: #12301f;
    --warn-soft: #3a2f10;
    --bad-soft: #3d1a14;
  }
}

* { box-sizing: border-box; }
html { font-size: 20px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}
h1, h2, h3, .brand, .btn.big { font-family: "Montserrat", system-ui, sans-serif; }
h1 { font-size: 1.5rem; font-weight: 800; line-height: 1.25; margin: 1rem 0; } /* 30px */
h2 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 1.25rem 0 .5rem; }
a { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

[hidden] { display: none !important; }
/* The customer shell: navy header, deep footer. Gold is only ever on navy here. */
/* Same header as the homepage: white mark tile, gold first word, gold phone pill. */
.top { background: linear-gradient(180deg, var(--navy), var(--deep)); color: #fff; }
.top-in {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between;
  max-width: 64rem; margin: 0 auto; padding: .6rem 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .5rem; min-height: 3rem; font-weight: 800; color: #fff; text-decoration: none; }
.brand .mark {
  width: 2.2rem; height: 2.2rem; flex: none; display: grid; place-items: center; border-radius: .6rem;
  background: #fff; color: var(--navy); font-size: 1.1rem;
}
.brand-name { font-size: .95rem; white-space: nowrap; }
.gold { color: var(--accent); }
.top .call {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 3rem; padding: 0 1.1rem; border-radius: 999px;
  background: var(--accent); color: var(--navy); font-weight: 800; font-size: .9rem; text-decoration: none; font-family: "Montserrat", system-ui, sans-serif;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
@media (max-width: 30rem) { .call-words { display: none; } }
.shell { max-width: 64rem; margin: 0 auto; }
main { max-width: 40rem; margin: 0 auto; padding: 1rem; }
.foot { margin: 2rem 0 0; padding: 1.5rem 1rem 3rem; background: var(--deep); color: var(--on-navy); }
.foot > * { max-width: 38rem; margin-left: auto; margin-right: auto; }
.foot p { margin: .25rem auto; }
.foot a { color: var(--accent); }
.foot-name { font-family: "Montserrat", system-ui, sans-serif; font-weight: 800; color: #fff; }

.step { margin: 0 0 .25rem; font-weight: 700; }
.bar { height: .6rem; background: var(--line); border-radius: .3rem; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--brand); }
.legal ul { padding-left: 1.25rem; }
.legal li { margin: .4rem 0; }
.lead { font-size: 1.1rem; font-weight: 700; margin: .5rem 0; }
.hint { color: var(--muted); margin: .25rem 0 .5rem; }
.rates { font-size: 1.3rem; font-weight: 700; margin: .5rem 0 .25rem; overflow-wrap: anywhere; }
.rates-note { overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

label { display: block; font-weight: 700; margin: 1rem 0 .25rem; }
select, input[type=text], input[type=email], input[type=tel], input:not([type]) {
  width: 100%; min-height: 3.5rem; padding: .5rem .75rem; font: inherit; font-size: 1.1rem; /* 22px */
  background: var(--surface); color: var(--fg); border: 2px solid var(--line); border-radius: .5rem;
}

.btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; min-height: 3.5rem; margin: .5rem 0; padding: .5rem 1rem;
  font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
  border: 2px solid var(--brand); border-radius: .5rem;
  background: var(--brand); color: #fff;
}
.btn small { font-family: "Atkinson Hyperlegible", system-ui, sans-serif; font-weight: 400; font-size: .85rem; }
.btn.ghost { background: transparent; color: var(--brand-ink); border-color: var(--line); }
.btn.secondary { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand); }
.btn.big { background: var(--surface); color: var(--brand-ink); border-color: var(--brand); min-height: 4.5rem; font-size: 1.2rem; }
.btn.back { width: auto; display: inline-flex; margin: 1rem 0 0; }
.btn.primary { box-shadow: 0 6px 16px rgba(0, 0, 148, .22); }
.btn[disabled] { cursor: not-allowed; opacity: .6; }
.stack { display: grid; gap: .5rem; border: 0; padding: 0; margin: .5rem 0; }

.choice, .check {
  display: flex; gap: .75rem; align-items: center; min-height: 3.5rem; margin: .5rem 0; padding: .5rem .75rem;
  background: var(--surface); border: 2px solid var(--line); border-radius: .5rem; font-weight: 400; cursor: pointer;
}
.choice:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); }
.choice small { display: block; color: var(--muted); }
.choice span { font-weight: 700; }
.choice .body { flex: 1; }
.shot { display: block; width: 7rem; font-weight: 400; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .4rem; background: var(--brand-soft); }
.shot .dot { display: block; width: 1.5rem; height: 1.5rem; margin: .25rem 0; border-radius: 50%; background: var(--dot, #cfd8ea); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--muted); }
.check span { font-weight: 400; }
input[type=radio], input[type=checkbox] { width: 1.6rem; height: 1.6rem; flex: none; accent-color: var(--brand); }

.note, .error {
  margin: 1rem 0; padding: .75rem 1rem; border-radius: .5rem; border: 2px solid; font-size: 1rem;
}
.note { background: var(--warn-soft); border-color: var(--warn); }
.error { background: var(--bad-soft); border-color: var(--bad); }

.cal { margin: .5rem 0; }
.cal-nav { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: .25rem; }
.cal-nav h2 { margin: 0; text-align: center; font-size: 1.1rem; }
.cal-nav .btn { margin: 0; }
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 4px; }
.cal-head span { text-align: center; font-weight: 700; color: var(--muted); font-size: .85rem; }
.day {
  min-height: 3.75rem; padding: 0; font: inherit; font-size: 1.1rem; font-weight: 700; cursor: pointer;
  background: var(--surface); color: var(--brand-ink); border: 2px solid var(--brand); border-radius: .5rem;
}
.day:disabled { color: var(--muted); border-color: var(--line); text-decoration: line-through; cursor: not-allowed; }
/* Days already gone are faded, not struck: the line means "taken". */
.day.before { text-decoration: none; border-color: transparent; background: transparent; opacity: .55; }
.day.blank { border: 0; background: transparent; }
.day.range { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-ink); text-decoration: none; opacity: 1; }
.day.start, .day.end { background: var(--brand); border-color: var(--brand); color: #fff; text-decoration: none; opacity: 1; }

/* "Your booking": beside the question on wide screens, folded above it on phones. */
.sum { background: var(--surface); border: 2px solid var(--line); border-radius: .75rem; }
.sum-side { display: none; }
.sum-phone { margin: 1rem 0 0; }
.sum-phone summary {
  display: flex; flex-wrap: wrap; gap: 0 .5rem; align-items: center; min-height: 3.5rem; padding: .5rem .9rem;
  font-weight: 700; cursor: pointer; list-style: none;
}
.sum-phone summary::-webkit-details-marker { display: none; }
.sum-phone summary::after { content: "Show"; margin-left: auto; color: var(--brand-ink); text-decoration: underline; }
.sum-phone[open] summary::after { content: "Hide"; }
.sum-peek { font-weight: 400; color: var(--muted); }
.sum-phone > :not(summary) { margin-left: .9rem; margin-right: .9rem; }
.sum-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .5rem; background: var(--ice); }
.sum-phone > .sum-photo { width: calc(100% - 1.8rem); } /* the side margins above would push a 100% photo past the card */
.sum-list, .sum-totals { margin: .5rem 0; }
.sum-list div, .sum-totals div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.sum-list dt { color: var(--muted); }
.sum-list dd, .sum-totals dd { margin: 0; text-align: right; font-weight: 700; }
.sum-len { font-weight: 400; color: var(--muted); }
.sum-totals div { border-bottom: 0; }
.sum-totals div:first-child dd { font-size: 1.2rem; color: var(--brand-ink); }
.sum-later { margin: .5rem 0 .9rem; color: var(--muted); font-size: .85rem; }
@media (min-width: 64rem) {
  .shell.with-sum { display: grid; grid-template-columns: minmax(0, 40rem) 20rem; gap: 2.5rem; justify-content: center; padding: 0 1rem; }
  .shell.with-sum main { margin: 0; padding-left: 0; padding-right: 0; }
  .sum-phone { display: none; }
  .sum-side { display: block; align-self: start; position: sticky; top: 1rem; margin-top: 1rem; padding: 1rem 1.25rem; box-shadow: 0 10px 30px rgba(5, 5, 74, .08); }
  .sum-side h2 { margin: 0 0 .75rem; font-size: 1.1rem; }
}

/* Cart step: photo cards, two across when there is room. */
.carts { display: grid; gap: 1rem; border: 0; padding: 0; margin: .5rem 0 1rem; }
.cart-card {
  position: relative; flex-direction: column; align-items: stretch; gap: .5rem; margin: 0; padding: .6rem;
  border-radius: .75rem; overflow: hidden;
}
.cart-card input[type=radio] { position: absolute; top: 1.1rem; left: 1.1rem; z-index: 1; background: #fff; border-radius: 50%; box-shadow: 0 0 0 4px #fff; }
.cart-card .shot { width: 100%; }
.cart-card .shot img { border-radius: .5rem; background: var(--ice); }
.cart-card .shot .dot { width: 100%; height: auto; aspect-ratio: 4 / 3; margin: 0; border-radius: .5rem; box-shadow: none; }
.cart-card .body { padding: 0 .25rem; font-size: 1.05rem; }
.cart-card .picked { display: none; padding: 0 .25rem .25rem; color: var(--brand-ink); }
.cart-card:has(input:checked) { box-shadow: 0 0 0 2px var(--brand); }
.cart-card:has(input:checked) .picked { display: block; }
.cart-card.any { flex-direction: row; align-items: center; padding: .9rem 1rem; }
.cart-card.any input[type=radio] { position: static; box-shadow: none; }
.cart-card.any .picked { margin-left: auto; padding: 0; }
@media (min-width: 36rem) {
  .carts { grid-template-columns: 1fr 1fr; }
  .cart-card.any { grid-column: 1 / -1; }
}
/* Continue stays in reach on a phone while the renter scrolls the carts. */
.go-bar { position: sticky; bottom: 0; z-index: 2; margin: 0 -1rem; padding: .5rem 1rem; background: var(--bg); border-top: 1px solid var(--line); }
.go-bar .btn { margin: 0; }
@media (min-width: 64rem) { .go-bar { position: static; margin: 0; padding: 0; border: 0; background: none; } }

.summary { margin: 1rem 0; }
.summary div { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.summary dt { font-weight: 700; color: var(--muted); }
.summary dd { margin: 0; }
.price { margin: 1.5rem 0; padding: 1rem; background: var(--surface); border: 2px solid var(--line); border-radius: .5rem; }
.price table { width: 100%; border-collapse: collapse; }
.price th { text-align: left; font-weight: 400; padding: .25rem 0; }
.price td { text-align: right; padding: .25rem 0; }
.price .total th, .price .total td { font-weight: 700; border-top: 2px solid var(--line); }
.saving { background: var(--ok-soft); color: var(--ok); padding: .5rem .75rem; border-radius: .5rem; border: 2px solid var(--ok); }
.next-step { margin: 1.5rem 0; padding-top: 1rem; border-top: 2px dashed var(--line); }
.row { display: flex; gap: .75rem; align-items: center; justify-content: space-between; }
.row .btn { width: auto; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .day, .choice { transition: background-color .15s, box-shadow .15s; }
}

/* Signing: the papers read at 20px, in a box that scrolls. */
.doc { max-height: 60vh; overflow: auto; margin: 1rem 0; padding: 0 1rem; background: var(--surface); border: 2px solid var(--line); border-radius: .5rem; }
.doc h2 { margin-top: 1rem; }
.doc ul { padding-left: 1.25rem; }
.doc li, .doc p { margin: .5rem 0; }
.initial { display: inline-flex; align-items: center; gap: .4rem; margin-left: .4rem; vertical-align: middle; }
.initial label { display: inline; margin: 0; font-size: .85rem; color: var(--muted); }
.initial input[type=text] { width: 6rem; min-height: 2.75rem; text-align: center; }
.draw canvas { display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 3 / 1; background: #fff; border: 2px solid var(--line); border-radius: .5rem; touch-action: none; cursor: crosshair; }
.draw .btn { width: auto; margin-top: .5rem; }

/* Rental page (/r/<token>) */
.receipts { width: 100%; border-collapse: collapse; }
.receipts th, .receipts td { text-align: left; padding: .5rem .25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.receipts .num { text-align: right; white-space: nowrap; }
.docs { padding-left: 1.25rem; }
.docs li { margin: .75rem 0; }
.save-link { margin: 1.5rem 0; padding: 1rem; background: var(--warn-soft); border: 2px solid var(--warn); border-radius: .5rem; }
.linkbox { word-break: break-all; font-weight: 700; margin: .5rem 0 0; }

/* One house rule per screen: the rule in the 30px question size, one big box. */
.rule-text { margin: .5rem 0 1rem; padding: 1rem; font-size: 1.5rem; font-weight: 700; line-height: 1.35; background: var(--surface); border-left: .4rem solid var(--brand); border-radius: .5rem; }
.check.big { min-height: 4.5rem; font-size: 1.2rem; }
.check.big input[type=checkbox] { width: 2.4rem; height: 2.4rem; }
.check.big span { font-weight: 700; }
.btn.big-go { min-height: 4.5rem; font-size: 1.2rem; }

/* The license photo: a big file button for a phone camera. */
input[type=file] { display: block; width: 100%; min-height: 3.75rem; padding: .75rem; font: inherit; font-size: 1.1rem; color: var(--fg); background: var(--surface); border: 2px dashed var(--brand); border-radius: .5rem; }
.photo-ask { margin: 1rem 0; }
/* A time with no cart free is struck through, like a taken day. */
.btn.big:disabled { text-decoration: line-through; cursor: not-allowed; }
