/* Soft mist greys and blue-greys, matte and low glare. The only warm color
   is the lamplight amber, used for the way forward.
   Sans-serif throughout. Rounded corners on every box. Large readable type. */
:root {
  --paper: #fcf7ee;        /* warm ivory page */
  --paper-2: #e9f2f5;      /* soft seafoam wash */
  --sage-wash: #e6f1ee;    /* gentle aqua wash */
  --head-bg: #c9dde5;      /* header band: flat powder-sky tint from the illustration */
  --head-edge: #aacbd8;    /* header band edge */
  --card: #fffefc;         /* solid, calm surfaces */
  --ink: #26333d;          /* deep sea slate, never pure black */
  --ink-soft: #465862;     /* holds its own over the artwork */
  --line: #cddfe5;
  --focus: #3f5a6a;
  --action: #4a6778;       /* mist blue-grey: checks, labels, panel edges */
  --action-hover: #3f5a6a;
  --action-ink: #fffefc;
  --lamp: #e8a548;         /* lamplight amber: primary buttons and the header pill */
  --lamp-hover: #dc9a3c;
  --lamp-ink: #26333d;     /* dark text on amber, 6.1:1 */
  --lamp-deep: #9a6412;    /* the same amber, deeper: arrows and link underlines, 5:1 on white, 3.5:1 on fog */
  --radius: 22px;
  --radius-sm: 16px;
  --shadow: 0 1px 2px rgba(38, 90, 105, .04), 0 8px 24px -14px rgba(38, 90, 105, .18);

  /* Section bands: for sorting only. Every band also has a text label. */
  --band-early: #46a897;   /* stage 2 to 3: seafoam */
  --band-mid: #4f90d4;     /* stage 4: soft blue */
  --band-later: #cf8f10;   /* stage 5: gold */
  --band-late: #3f96c2;    /* stage 6: pale tide */
  --band-any: #7183d6;     /* any stage: soft periwinkle */
  --band-cards: #3ba392;   /* step cards: soft teal */
  --band-red: #b83a2c;
  --band-amber: #bf8410;
  --band-calm: #46a897;
}

* { box-sizing: border-box; }
html { font-size: 131.25%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "Manrope", "Liberation Sans", Arial, system-ui, sans-serif;
  font-weight: 450;
  line-height: 1.65;
  letter-spacing: .005em;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
/* The illustration lives on its own fixed layer, so a warm color shift
   never touches the words. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, .68) 0%, rgba(255, 255, 255, .54) 45%, rgba(255, 255, 255, .14) 72%, rgba(255, 255, 255, 0) 85%),
    url("./bg-fog-lamp.jpg");
  background-size: auto, cover;
  background-position: 0 0, 79.5% center;
  background-repeat: repeat, no-repeat;
}
main, .site-head, .site-foot { max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; }
main { padding-top: 1.5rem; padding-bottom: 4rem; outline: none; }
main:focus, main:focus-visible { outline: none; }
.cols3 + .note { margin-top: 1.5rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: .6rem 1.1rem; border-radius: var(--radius-sm); z-index: 10; box-shadow: var(--shadow); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .75rem 1.5rem;
  max-width: none; margin: 0;
  padding: 1.05rem max(1.5rem, calc((100% - 44rem) / 2 + 1.5rem));
  background: var(--head-bg);
  border-bottom: 1.5px solid var(--head-edge);
  box-shadow: none;
}
.brand {
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.05rem;
  letter-spacing: -.01em; display: inline-flex; align-items: center;
  padding-left: 1.85rem;
  background: url("logo.png") left center/1.35rem 1.35rem no-repeat;
}
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; font-size: .85rem; }
.site-nav a { color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; padding: .1rem 0; line-height: 1.25; font-weight: 600; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--action); }

/* Family header: icon and name left, plain links centered, one amber pill right. */
.site-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.site-head .brand { justify-self: start; white-space: nowrap; }
@media (min-width: 60rem) { .site-head { padding-left: max(1.5rem, calc((100% - 57rem) / 2 + 1.5rem)); padding-right: max(1.5rem, calc((100% - 57rem) / 2 + 1.5rem)); } }
.site-head .site-nav { justify-self: center; }
.head-pill {
  justify-self: end; display: inline-flex; align-items: center; white-space: nowrap;
  background: var(--lamp); color: var(--lamp-ink); border: 1.5px solid var(--lamp);
  border-radius: 999px; padding: .45rem 1.1rem; font-size: .82rem; font-weight: 700;
  text-decoration: none; line-height: 1.2;
}
.head-pill:hover { background: var(--lamp-hover); border-color: var(--lamp-hover); color: var(--lamp-ink); }
@media (max-width: 55rem) {
  .site-head { grid-template-columns: 1fr auto; }
  .site-head .site-nav { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
}

/* Type */
h1 { font-size: 2rem; line-height: 1.2; margin: 1.25rem 0 1rem; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.25rem; line-height: 1.35; margin: 2.5rem 0 1rem; font-weight: 700; letter-spacing: -.01em; }
h3 { font-weight: 700; }
p { margin: 0 0 1.15rem; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 36rem; }
.step {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .68rem; font-weight: 800; color: var(--action);
  margin: 2rem 0 0;
}
.note, .group-note, .small { color: var(--ink-soft); font-size: .88rem; }
.q { margin-top: 2.5rem; }

a { color: var(--ink); text-decoration-color: var(--lamp-deep); text-underline-offset: .22em; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }

/* Gate choices */
.choices { display: grid; grid-auto-rows: 1fr; gap: 1.1rem; margin: 1.25rem 0 2rem; }
.choice {
  display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch;
  width: 100%; height: 100%; text-align: left; cursor: pointer;
  background: var(--card); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.75rem; font: inherit; box-shadow: var(--shadow);
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.choice:hover { border-color: var(--band-mid); background: #f5fafc; transform: translateY(-1px); }
.choice-title { display: block; font-size: 1.15rem; font-weight: 700; margin-bottom: .35rem; }
.choice-title::after { content: "  →"; color: var(--lamp-deep); font-weight: 700; }
.choice-sub { display: block; color: var(--ink-soft); font-size: .92rem; max-width: 30ch; }
@media (min-width: 52rem) { .choices { grid-template-columns: 1fr 1fr; } }

/* Tick rows */
fieldset.ticks { border: 0; padding: 0; margin: 1.5rem 0; display: grid; gap: .8rem; }
.tick {
  display: flex; gap: 1rem; align-items: flex-start; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; transition: border-color .2s ease, background-color .2s ease;
  font-size: 1.06rem; line-height: 1.5;
}
.tick:hover { border-color: var(--band-late); }
.tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick .box {
  flex: 0 0 auto; width: 1.5rem; height: 1.5rem; margin-top: .1rem;
  border: 2px solid #7fa3af; border-radius: 8px; background: var(--paper);
  display: grid; place-items: center; transition: background-color .15s ease;
}
.tick input:checked + .box { background: var(--action); border-color: var(--action); }
.tick input:checked + .box::after {
  content: ""; width: .45rem; height: .8rem; margin-top: -.15rem;
  border: solid var(--action-ink); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.tick:has(input:checked) { border-color: var(--action); background: #f1f8fa; }
.tick:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.tick:has(input:disabled) { opacity: .5; cursor: default; }

.devices { margin: -.2rem 0 .4rem 1.75rem; padding: 1rem; background: var(--sage-wash); border-radius: var(--radius-sm); display: grid; gap: .6rem; }
.devices-q { margin: 0 0 .25rem; font-size: .92rem; }
.devices .tick { padding: .7rem 1rem; font-size: .92rem; }

.count { font-size: .92rem; color: var(--ink-soft); }

/* Large track */
.view.large { font-size: 1.15rem; }
.view.large .tick { padding: 1.2rem 1.35rem; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin: 2rem 0; }
.actions.top { margin-top: .75rem; }
.btn {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 999px;
  padding: .8rem 1.6rem; min-height: 3.1rem;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--line);
  transition: background-color .2s ease, border-color .2s ease;
}
.btn:hover { border-color: var(--band-late); }
.btn.primary { background: var(--lamp); color: var(--lamp-ink); border-color: var(--lamp); font-weight: 700; box-shadow: 0 6px 18px -10px rgba(120, 80, 20, .45); }
.btn.primary:hover { background: var(--lamp-hover); border-color: var(--lamp-hover); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-soft); text-decoration: underline; text-underline-offset: .2em; box-shadow: none; }
.btn.ghost:hover { color: var(--ink); }
.status { font-size: .92rem; min-height: 1.5em; color: var(--ink-soft); }

/* Panels */
.panel { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem; margin: 2rem 0; box-shadow: var(--shadow); }
.panel h2 { margin-top: .25rem; }
.panel ul { margin: 0; padding-left: 1.2rem; }
.panel li { margin-bottom: .5rem; }
.panel.facility { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); margin-top: 3rem; }
.alert { background: #f9e6e0; border: 1.5px solid var(--band-red); border-radius: var(--radius); padding: 1.25rem 1.75rem; margin: 2rem 0; }
.alert h1 { margin: .25rem 0; }
.cols3 { display: grid; gap: 1.1rem; }
.cols3 .panel { margin: 0; border-left-width: 10px; }
.band-red { border-left-color: var(--band-red); }
.band-amber { border-left-color: var(--band-amber); }
.band-calm { border-left-color: var(--band-calm); }
@media (min-width: 60rem) { .cols3 { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } main { max-width: 57rem; } }

/* Sheet list */
ul.sheets { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.sheet {
  display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; row-gap: .15rem;
  background: var(--card); border: 1.5px solid var(--line); border-left-width: 12px;
  border-radius: var(--radius-sm); padding: 1rem 1.25rem;
}
.sheet-num { grid-row: span 2; font-weight: 800; white-space: nowrap; min-width: 5.5rem; color: var(--ink-soft); }
.sheet-title { font-weight: 700; }
.sheet-meta { color: var(--ink-soft); font-size: .84rem; }

.site-foot {
  max-width: none; margin: 0;
  padding: 1.6rem max(1.5rem, calc((100% - 44rem) / 2 + 1.5rem)) 2.4rem;
  background: var(--head-bg);
  border-top: 1.5px solid var(--head-edge);
  color: var(--ink-soft); font-size: .74rem; line-height: 1.6;
}
.site-foot p { margin-bottom: .6rem; }
.site-foot .small { font-size: .68rem; }

/* sets */
.set-list { display: grid; gap: 1.25rem; margin: 2rem 0; }
.set { background: var(--card); border: 1.5px solid var(--line); border-left-width: 12px; border-radius: var(--radius); padding: 1.5rem 1.75rem; box-shadow: var(--shadow); }
.set h2 { margin: .25rem 0 .5rem; }
.set-when { margin: 0 0 .6rem; }
.set-count, .set-note { color: var(--ink-soft); font-size: .88rem; margin: 0 0 .75rem; }
.set .actions { margin: 1.25rem 0 .25rem; }
details { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .65rem 1.1rem; background: var(--paper); }
details summary { cursor: pointer; font-weight: 700; padding: .25rem 0; }
details[open] summary { margin-bottom: .25rem; }
details h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
ul.inside { margin: 0; padding-left: 1.2rem; columns: 2 16rem; column-gap: 1.75rem; font-size: .88rem; }
ul.inside li { break-inside: avoid; margin-bottom: .35rem; }
.recommend { border-left: 12px solid var(--action); background: #f1f8fa; }
.offer { border-left: 12px solid var(--action); background: #f1f8fa; }
.free { border-left: 12px solid var(--action); background: #f2f8f4; }
.soon { color: var(--ink-soft); font-size: .95rem; align-self: center; }
.offer h2 { margin-bottom: .3rem; }
.price { font-size: .78em; font-weight: 800; color: var(--action); white-space: nowrap; }
.price-line { font-size: 1.05rem; font-weight: 800; color: var(--action); margin: .35rem 0 0; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
a.btn.primary { color: var(--lamp-ink); }
.view[data-view="facilities"] .cols3 { margin: 2rem 0; }

@media (max-width: 30rem) {
  html { font-size: 118.75%; }
  main, .site-head, .site-foot { padding: 0 1.1rem; }
  .site-foot { padding: 1.25rem 1.1rem 1.9rem; }
  .site-head { padding: .8rem 1.1rem; margin-top: 0; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; gap: .5rem 1rem; }
  .site-nav { display: grid; grid-template-columns: auto auto; justify-content: space-between; flex: 1 1 100%; gap: .4rem .6rem; font-size: .7rem; }
  h1 { font-size: 1.7rem; }
  .sheet { grid-template-columns: 1fr; }
  .sheet-num { grid-row: auto; }
  .choice, .panel, .set { padding: 1.25rem 1.3rem; }
}

/* When the links drop below the brand, let them fill the row evenly. */
@media (min-width: 31rem) and (max-width: 55rem) {
  .site-nav { flex: 1 1 100%; justify-content: space-between; gap: .25rem .8rem; }
}

@media (min-width: 30rem) {
  body::before { background-position: 0 0, center; }
}

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

/* Print: the list itself, in black ink */
@media print {
  body { background: #fff; font-size: 12pt; color: #000; } body::before { display: none; }
  .site-head, .actions, .status, .panel, .skip, .step, .site-nav, .recommend { display: none !important; }
  .view:not([data-view="results"]) { display: none !important; }
  .sheet { border: 1px solid #000; border-left: 6px solid #000; break-inside: avoid; box-shadow: none; }
  .site-foot { border-top: 1px solid #000; }
}

[hidden] { display: none !important; }
@media (min-width: 60rem) { .site-foot { max-width: none; padding-left: max(1.5rem, calc((100% - 57rem) / 2 + 1.5rem)); padding-right: max(1.5rem, calc((100% - 57rem) / 2 + 1.5rem)); } }


/* Stage colours: declared last so every surface keeps its own band. */
.band-early { border-left-color: var(--band-early); }
.band-mid { border-left-color: var(--band-mid); }
.band-later { border-left-color: var(--band-later); }
.band-late { border-left-color: var(--band-late); }
.band-any { border-left-color: var(--band-any); }
.band-cards { border-left-color: var(--band-cards); }

/* FAQ */
.faq-list { display: grid; gap: .7rem; margin: 1.5rem 0 1rem; }
.faq details {
  background: var(--card); box-shadow: var(--shadow);
  padding: .85rem 1.4rem;
}
.faq details[open] { padding-bottom: 1.05rem; }
.faq summary { font-size: 1.02rem; line-height: 1.45; }
.faq details p { margin: .55rem 0 0; color: var(--ink); }

/* "None of the above" keeps the same rhythm as the other rows */
.none-sep { margin-top: 0; padding-top: 0; border-top: 0; }
.pick-msg:empty { display: none; }
.pick-msg { color: var(--ink-soft); font-weight: 600; }

/* Smallest phones: a little less card padding so both door notes wrap alike. */
@media (max-width: 22rem) { .choice { padding: 1.1rem .9rem; } .choice-sub { font-size: .86rem; } }

/* Narrow screens show only a slice of the art. Show the bridge and the mist
   there, so the lamp never sits behind the words. */
@media (max-width: 52rem) {
  body::before {
    background-image: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .55)), url("./bg-fog-lamp.jpg");
    background-position: 0 0, 34% center;
  }
}

/* Phones: the name, then a full-width amber pill, then the other three links
   spread evenly. The plain Find my sheets link hides here, since the pill says it. */
@media (max-width: 30rem) {
  .site-head { grid-template-columns: 1fr; row-gap: .6rem; }
  .site-head .brand { grid-row: 1; }
  .head-pill { grid-row: 2; justify-self: stretch; justify-content: center; font-size: .8rem; padding: .55rem 1rem; }
  .site-head .site-nav { grid-row: 3; display: flex; justify-content: space-between; gap: .4rem; font-size: .72rem; }
  .site-head .site-nav a[data-go="gate"] { display: none; }
}

/* Disclaimer page: the full text on a solid card, headings kept small and calm. */
.panel.legal h2 { font-size: 1.02rem; margin: 1.6rem 0 .4rem; }
.panel.legal p { font-size: .95rem; }

/* Header: no hard edge. The band thins into the fog below it. */
.site-head { position: relative; z-index: 1; background: rgba(201, 221, 229, .86); border-bottom: 0; }
.site-head::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 2.75rem; pointer-events: none;
  background: linear-gradient(rgba(201, 221, 229, .86), rgba(201, 221, 229, 0));
}

/* Wide screens: anchor the art to its left edge, so the lamp stands as far
   right as the painting allows, beside the cards rather than behind them. */
@media (min-width: 52.01rem) { body::before { background-position: 0 0, 0% center; } }
