:root {
  --bg: #F0F2F5;
  --surface: #FFFFFF;
  --surface-alt: #E5E8EE;
  --ink: #151C27;
  --muted: #5A6474;
  --line: #D5DAE2;
  --primary: #1D2A3B;
  --on-primary: #FFFFFF;
  --a: #2B69B1;
  --a-soft: #DDE8F6;
  --b: #D4622A;
  --b-soft: #F8E3D6;
  --link: #2B69B1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E131A;
    --surface: #171E28;
    --surface-alt: #212A36;
    --ink: #EDF1F6;
    --muted: #9CA7B7;
    --line: #2B3542;
    --primary: #E3E9F2;
    --on-primary: #0E131A;
    --a: #72A6E8;
    --a-soft: #1C2C42;
    --b: #F0955E;
    --b-soft: #3C2719;
    --link: #8DB8EE;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 800px; margin: 0 auto; padding: 28px 20px 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
nav.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
nav.top .links a { color: var(--muted); text-decoration: none; font-weight: 600; margin-left: 16px; font-size: 15px; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(36px, 7vw, 54px); font-weight: 800; margin: 36px 0 16px; }
h2 { font-size: 26px; font-weight: 800; margin: 38px 0 12px; }
h3 { font-size: 19px; font-weight: 700; margin: 22px 0 6px; }
p + p { margin-top: 12px; }
.lead { font-size: 20px; color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 12px;
  background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 700;
}
.store.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.card { background: var(--surface); border-radius: 16px; padding: 22px; border: 1px solid var(--line); margin: 20px 0; }
.features { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 26px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.feature b { display: block; margin-bottom: 4px; font-size: 18px; }
.code { font-weight: 800; font-size: clamp(44px, 12vw, 64px); letter-spacing: 0.12em; margin: 8px 0 4px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin: 14px 0; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 16px; vertical-align: top; }
th { background: var(--surface-alt); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.cta { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--a); border-radius: 16px; padding: 22px; margin: 34px 0; }
.cta .t { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
a { color: var(--link); }
footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); margin-right: 14px; }
ul, ol { padding-left: 1.2em; }
li { margin: 6px 0; }
.hero { display: flex; gap: 18px; align-items: center; margin-top: 30px; }
.hero img { width: 88px; height: 88px; border-radius: 22px; }
/* Two weeks of nights, one square each, in the two homes' colours. */
.weeks { display: grid; grid-template-columns: 64px repeat(7, 1fr); gap: 6px; margin: 16px 0 8px; max-width: 560px; }
.weeks .h { font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }
.weeks .w { font-size: 13px; font-weight: 700; color: var(--muted); align-self: center; }
.weeks .n { height: 44px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 15px; }
.weeks .n.a { background: #2B69B1; }
.weeks .n.b { background: #D4622A; }
.key { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); font-weight: 600; }
.key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.key .a { background: #2B69B1; } .key .b { background: #D4622A; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.fact .v { font-size: 26px; font-weight: 800; }
.fact .l { font-size: 14px; color: var(--muted); }
.list-links { list-style: none; padding: 0; }
.list-links li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
.list-links a { font-weight: 700; text-decoration: none; }
.calc label { font-weight: 700; display: block; margin: 14px 0 6px; }
.calc select, .calc input { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.calc .weeks .n { cursor: pointer; user-select: none; }
.bar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; margin: 12px 0 6px; max-width: 560px; }
.bar .a { background: #2B69B1; } .bar .b { background: #D4622A; }
