/* NextKnocks home page, draft 5 (the home page with three choices, and the two weekly-report pages): index.html only.
   Loaded after styles.css, which the Terms, Privacy and 404 pages and the link pages (/r, /p, /lookup) share.
   Nothing here changes styles.css. The font, the blue and the neutrals come from it.

   Built for a phone first. The home page: the headline, one line and the three cards fit on the first screen. An
   offer's page: the headline, where it covers and the one button fit on it, and the example record follows; wider
   screens put the record beside the text. Each audience has one accent color, used on the edge of its card, its
   record's top edge and its labels. */

:root {
  --pool: #0e7490;            /* pool service */
  --pool-tint: #e0f2f5;
  --ins: #17603a;             /* insurance agencies */
  --ins-tint: #e3f1e8;
  --rest: #8a4b08;            /* restaurant suppliers */
  --rest-tint: #fbeedd;
  --ground: #f6f7f9;          /* the desk behind the top */
  --cell: #d3d8de;
  --tone: var(--pool);        /* the accent of the offer on show */
  --tone-tint: var(--pool-tint);
}

:root[data-offer="insurance"] { --tone: var(--ins); --tone-tint: var(--ins-tint); }

/* A control reached with the Tab key is scrolled in with room for its focus ring, not flush against the edge. */
html {
  scroll-padding-block: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* What shows ---------------------------------------------------------
   The html element says which page this address opens (the small script in the page head sets it before the
   page is drawn): data-view="home" for the home page, or data-view="offer" with data-offer="pool" or "insurance".
   data-show="home" is on what only the home page has, data-show="offer" on what only an offer's page has, and
   data-for names the offer an element belongs to. Only "hide" is ever set here, so every element keeps its own
   layout when it shows. */
:root[data-view="home"] [data-show="offer"],
:root:not([data-view="home"]) [data-show="home"] {
  display: none;
}

:root[data-offer="pool"] [data-for]:not([data-for~="pool"]),
:root[data-offer="insurance"] [data-for]:not([data-for~="insurance"]) {
  display: none;
}

/* Scripts off: nothing is set on the html element, and the page shows the pool report, as the live site does today.
   "Your business" in the form switches it to the insurance report, where the browser can. */
@supports selector(:has(a)) {
  :root:not([data-view]):not(:has(#f-src-insurance:checked)) [data-for]:not([data-for~="pool"]) {
    display: none;
  }

  :root:not([data-view]):has(#f-src-insurance:checked) [data-for]:not([data-for~="insurance"]) {
    display: none;
  }

  :root:not([data-view]):has(#f-src-insurance:checked) { --tone: var(--ins); --tone-tint: var(--ins-tint); }
}

@supports not selector(:has(a)) {
  :root:not([data-view]) [data-for]:not([data-for~="pool"]) {
    display: none;
  }
}

/* The area check needs scripts. So does the home page's choice: with scripts off "/" is this same page, and a link
   that says "All offers" would lead nowhere new. */
:root:not([data-view]) .cov-check,
:root:not([data-view]) .all-offers {
  display: none;
}

/* Header ------------------------------------------------------------ */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wordmark-mark {
  flex: none;
  width: 2rem;
  height: 2rem;
}

.site-nav {
  display: none;
}

@media (min-width: 62em) {
  .site-nav {
    display: flex;
    gap: 2rem;
  }
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.button--quiet {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.button--quiet:hover {
  background: var(--surface);
  color: var(--ink);
}

@media (max-width: 30em) {
  /* Phones: the name a little smaller, so it and "All offers" share one line with room between. */
  .wordmark {
    gap: 0.45rem;
    font-size: 1.125rem;
  }

  .wordmark-mark {
    width: 1.75rem;
    height: 1.75rem;
  }

  .header-inner {
    gap: 0.5rem;
  }
}

@media (max-width: 25em) {
  /* Phones 400 px wide and under: a notch smaller again. */
  .wordmark {
    gap: 0.375rem;
    font-size: 1.0625rem;
  }

  .wordmark-mark {
    width: 1.625rem;
    height: 1.625rem;
  }

  .header-inner {
    gap: 0.375rem;
  }
}

/* Type -------------------------------------------------------------- */

h1 {
  max-width: 15em;
  font-size: clamp(1.75rem, 1.25rem + 2.3vw, 2.75rem);
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 760;
  line-height: 1.3;
}

.lede {
  max-width: 33em;
  margin-top: 0.6rem;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.1875rem);
  line-height: 1.45;
  color: var(--ink);
}

/* 1. The top -------------------------------------------------------- */

.opening {
  padding-block: clamp(1.1rem, 3.5vw, 3rem) clamp(1.75rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--rule);
  background: var(--ground);
}

.top-grid {
  display: grid;
  gap: 1rem;
}

.top-grid > * {
  min-width: 0;
}

@media (min-width: 62em) {
  /* An offer's page on a wide screen: the words and the button on the left, the example record on the right. */
  :root:not([data-view="home"]) .top-grid {
    grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "copy record"
      "act record";
    column-gap: clamp(2rem, 4vw, 3.5rem);
    row-gap: 1.4rem;
    align-items: start;
  }

  :root:not([data-view="home"]) .top-copy { grid-area: copy; }
  :root:not([data-view="home"]) .top-record { grid-area: record; }
  :root:not([data-view="home"]) .top-act { grid-area: act; }
}

/* "Your business" in the form: two radio buttons drawn as one bar. */
.choice {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice legend {
  margin-bottom: 0.4rem;
  padding: 0;
  font-weight: 650;
  line-height: 1.35;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 24rem;
  border: 1.5px solid var(--ink);
  border-radius: 0.625rem;
  background: var(--paper);
}

.choice-row label {
  position: relative;
  display: flex;
  margin: 0;
  cursor: pointer;
}

.choice-row label + label {
  border-left: 1.5px solid var(--ink);
}

.choice-row input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice-row span {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.35rem 0.5rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.choice-row label:first-child span { border-radius: 0.5rem 0 0 0.5rem; }

.choice-row label:last-child span { border-radius: 0 0.5rem 0.5rem 0; }

.choice-row label:hover span {
  background: var(--surface);
}

.choice-row input:checked + span {
  background: var(--pool);
  color: #fff;
}

.choice-row input[value="insurance"]:checked + span {
  background: var(--ins);
}

.choice-row input:focus-visible + span {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
}

/* One record: the way a home reads in the weekly email, or a row of the file. */
.rec {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--tone);
  border-radius: 0.5rem;
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(27 30 35 / 0.05), 0 16px 32px -24px rgb(27 30 35 / 0.45);
}

.rec-top,
.sheet-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.rec-flag,
.sheet-flag {
  font-weight: 700;
}

.rec-kind,
.sheet-kind {
  font-weight: 650;
  color: var(--tone);
  text-align: right;
}

.rec-body {
  padding: 0.8rem 1rem 0.9rem;
}

.rec-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.chip {
  display: inline-block;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  background: var(--tone-tint);
  color: var(--tone);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
}

.rec-side {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rec-title {
  margin-top: 0.45rem;
  font-size: 1.3125rem;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.rec-place {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.rec-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
}

.rec-facts dt {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink-2);
}

.rec-facts dd {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.rec-wide {
  grid-column: 1 / -1;
}

.rec-why {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.rec-why + .rec-why {
  margin-top: 0.3rem;
}

/* In the record at the top of the page, the town reads as strongly as the street, and the line that says why the
   record matters (the pool, the county's owner entries, what a filing is not) sits on the offer's tint. */
.top-record .rec-place {
  color: var(--ink);
  font-weight: 600;
}

.top-record .rec-why:not(.rec-extra) {
  margin-top: 0.7rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.375rem;
  background: var(--tone-tint);
}

/* A second line that only fits beside the text on a wide screen. */
.rec-extra {
  display: none;
}

@media (min-width: 62em) {
  .top-record .rec-extra {
    display: block;
    margin-top: 0.7rem;
  }
}

@media (min-width: 62em) {
  /* Beside the text on a wide screen the record is the picture, so it is set larger. */
  .top-record .rec-body {
    padding: 1.2rem 1.4rem 1.35rem;
  }

  .top-record .rec-top {
    padding-inline: 1.4rem;
    font-size: 0.875rem;
  }

  .top-record .rec-title { font-size: 1.75rem; }
  .top-record .rec-place { font-size: 1.125rem; }
  .top-record .rec-facts dd { font-size: 1.1875rem; }
  .top-record .rec-facts { gap: 0.6rem 1.5rem; margin-top: 0.9rem; padding-top: 0.9rem; }
  .top-record .rec-why { font-size: 1.0625rem; }
  .top-record .rec-why:not(.rec-extra) { margin-top: 1rem; padding: 0.65rem 0.9rem; }
  .top-record .chip { font-size: 0.875rem; }
}

/* Where it covers, the button, and what the button commits you to. */
.covers {
  font-size: 1.0625rem;
  line-height: 1.45;
}

.act {
  margin-top: 0.8rem;
}

.act .button {
  min-width: 15rem;
}

.agree {
  max-width: 30em;
  margin-top: 0.55rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.see {
  margin-top: 0.35rem;
}

.see a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 650;
}

@media (max-width: 30em) {
  .act .button {
    width: 100%;
  }
}

/* A brief change when someone switches. home.js marks the first switch, so nothing moves as the page opens. */
:root[data-switched] .top-record > .rec,
:root[data-switched] .top-act > .covers {
  animation: nk-swap 180ms ease-out both;
}

@keyframes nk-swap {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root[data-switched] .top-record > .rec,
  :root[data-switched] .top-act > .covers {
    animation: none;
  }
}

/* Sections ---------------------------------------------------------- */

.band-v3 {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}

/* 2. The sample ----------------------------------------------------- */

.sr-lede {
  margin-top: 0.4rem;
  color: var(--ink-2);
}

.sr-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.1rem;
}

.sr-grid > * {
  min-width: 0;
}

@media (min-width: 62em) {
  /* The sample on the left; its notes, then the button, down the right. */
  .sr-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .sr-grid > .sheet {
    grid-row: 1 / span 2;
  }

  .sr-act {
    grid-column: 2;
  }
}

.sr-act .act {
  margin-top: 0;
}

.sheet {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--tone);
  border-radius: 0.5rem;
  background: var(--paper);
}

.mail-line {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  gap: 0.5rem;
  margin: 0.8rem 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.mail-k {
  color: var(--ink-2);
}

.mail-v {
  font-weight: 650;
}

.mail-sec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.8rem 1rem 0;
  font-size: 1.0625rem;
  font-weight: 760;
  line-height: 1.3;
}

.mail-count {
  min-width: 1.7rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
}

.recs > .rec-body + .rec-body {
  border-top: 1px solid var(--rule);
}

/* The notes that sit beside the sample: what each line is, where it comes from and what it can't tell you. */
.notes h3 {
  margin-bottom: 0.3rem;
}

.notes dl > div {
  padding-block: 0.65rem;
  border-top: 1px solid var(--rule);
}

.notes dt {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
}

.notes dd {
  font-size: 1rem;
  line-height: 1.5;
}

/* 3. Where it covers ------------------------------------------------ */

.cov-grid {
  display: grid;
  gap: 1.25rem;
}

/* The map: Florida in a quiet gray with the covered counties in the offer's color. Wider screens only: on a phone
   the county names and the check box do the job. */
.cov-map {
  display: none;
}

@media (min-width: 48em) {
  .cov-grid {
    grid-template-columns: minmax(0, 1fr) 22.875rem;
    column-gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
  }

  .cov-map {
    display: block;
    margin: 0;
  }
}

.cov-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.fl-state {
  fill: var(--state-fill, #e6e9ee);
  stroke: var(--state-edge, var(--field-border));
  stroke-width: 1;
  stroke-linejoin: round;
}

.fl-county {
  fill: var(--tone);
  stroke: var(--paper);
  stroke-width: 0.75;
  stroke-linejoin: round;
}

.fl-lead {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1;
}

.fl-label {
  fill: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
}

.cov-line {
  max-width: 34em;
  margin-top: 0.6rem;
  font-size: 1.1875rem;
  line-height: 1.45;
}

.cov-more {
  margin-top: 0.4rem;
  color: var(--ink-2);
}

.cov-check {
  max-width: 30rem;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  background: var(--ground);
}

.cov-check label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 650;
  line-height: 1.35;
}

.cov-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.cov-row input {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
  line-height: 1.4;
}

.cov-row input:focus-visible {
  border-color: var(--accent-dark);
  outline: 3px solid var(--accent-dark);
  outline-offset: 1px;
}

.cov-row input::placeholder {
  color: #6b7280;
}

.cov-result,
.field-note {
  font-size: 0.9375rem;
  line-height: 1.45;
}

.cov-result:empty,
.field-note:empty {
  display: none;
}

.cov-result {
  margin-top: 0.7rem;
}

.field-note {
  margin-top: 0.4rem;
}

/* The answer is words first. The edge color only repeats it. */
.cov-result,
.field-note {
  padding-left: 0.7rem;
  border-left: 4px solid var(--field-border);
}

[data-cover="yes"] { border-left-color: var(--ins); }
[data-cover="part"] { border-left-color: var(--rest); }
[data-cover="no"] { border-left-color: var(--error); }

.cov-use {
  margin-top: 0.8rem;
}

/* 4. Price and terms ------------------------------------------------ */

.terms {
  max-width: 46rem;
  margin-top: 1rem;
  border-bottom: 1px solid var(--rule);
}

.terms > div {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.7rem;
  border-top: 1px solid var(--rule);
}

.terms dt {
  font-weight: 700;
  line-height: 1.45;
}

.terms dd {
  line-height: 1.5;
}

@media (max-width: 36em) {
  .terms > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }
}

/* 5. The request ---------------------------------------------------- */

.band-form {
  background: var(--proof);
}

.steps-v3 {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  counter-reset: step;
}

.steps-v3 li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.5rem;
  max-width: 30em;
  counter-increment: step;
}

.steps-v3 li::before {
  content: counter(step) ".";
  font-weight: 760;
  color: var(--ink-2);
}

.band-form .form-intro p {
  color: var(--ink);
}

.choice {
  margin-bottom: 1.5rem;
}

.choice[aria-invalid="true"] .choice-row {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

/* "Request received": takes the form's place once the server has stored the request. */
.received:focus {
  outline: none;
}

/* Once the request is in, the confirmation stands alone: the steps beside the form have done their job. */
.form-wrap[data-received] .form-intro {
  display: none;
}

@media (min-width: 64em) {
  .form-wrap[data-received] {
    grid-template-columns: minmax(0, 44rem);
  }
}

.received h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.received h2::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.95rem;
  margin: 0 0.35rem 0.2rem 0.3rem;
  border-right: 3.5px solid var(--ins);
  border-bottom: 3.5px solid var(--ins);
  transform: rotate(45deg);
}

.received dl {
  margin-top: 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.received dl > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.75rem;
  padding-block: 0.55rem;
  border-top: 1px solid var(--rule);
}

.received dt {
  color: var(--ink-2);
}

.received dd {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.received dd small {
  display: block;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink-2);
}

.received .received-note {
  margin-top: 0.9rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

@media (max-width: 30em) {
  .received dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

/* 6. Questions ------------------------------------------------------ */

.faq-v2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 62em) {
  .faq-v2 {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }
}

.faq-list {
  border-top: 1px solid var(--rule);
}

.faq-list details {
  border-bottom: 1px solid var(--rule);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.75rem;
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.35rem;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: translateY(-0.2rem) rotate(45deg);
  transition: transform 150ms ease;
}

.faq-list details[open] summary::after {
  transform: translateY(0.15rem) rotate(-135deg);
}

.faq-list summary:hover {
  color: var(--accent-dark);
}

.faq-list details p {
  max-width: 40em;
  padding-bottom: 1.1rem;
}

#faq {
  border-bottom: 0;
}

/* Footer ------------------------------------------------------------ */

.footer-grid {
  display: grid;
  gap: 1.5rem 3rem;
  padding-block: 2.25rem 2.75rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  }
}

.footer-grid .wordmark {
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.footer-grid p + p {
  margin-top: 0.4rem;
}

.footer-grid address {
  margin-top: 0.2rem;
}

.footer-links {
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

@media (min-width: 48em) {
  .footer-links a {
    min-height: 2rem;
  }
}

/* ==============================================================================================================
   Drafts 4 and 5 (Nov 22, 2026). The top is a navy band. On an offer's page it has one yellow button; below it,
   the button that carries the page's one action is navy, every other link is underlined text, and each offer's
   color stays a small accent. On the home page the band holds the three choices and nothing else.
   ============================================================================================================== */
:root {
  --navy: #132447;
  --navy-2: #1c3160;
  --navy-edge: #8fa0c2;       /* outlines drawn on navy */
  --on-navy-2: #cfdaf1;
  --yellow: #ffce57;
  --yellow-2: #ffdd8a;
  --yellow-ink: #172033;
}

.button:not(.button--quiet) { background: var(--navy); }
.button:not(.button--quiet):hover { background: var(--navy-2); }
.button[disabled]:not(.button--quiet) { background: var(--navy-2); }

.opening { border-bottom: 0; background: var(--navy); color: #fff; }
.opening h1 { color: #fff; }
.opening .rec { color: var(--ink); }          /* the example record is a white card: its text stays dark */
.opening .lede { color: #e6edfa; }
.opening .covers { color: #e6edfa; }
.opening .covers b { color: #fff; }
.opening .agree { color: var(--on-navy-2); }
.opening a:not(.button) { color: #fff; }
.opening a:not(.button):hover { color: var(--yellow-2); }
.opening a:focus-visible { outline-color: #fff; }
.opening .act .button { background: var(--yellow); color: var(--yellow-ink); font-weight: 750; }
.opening .act .button:hover { background: var(--yellow-2); color: var(--yellow-ink); }

/* "Your business" in the form: the chosen one is tinted, with the same bar as at the top, so the navy button under
   it is the form's one filled color. */
.choice-row input:checked + span { background: var(--pool-tint); color: var(--ink); box-shadow: inset 0 -4px 0 var(--pool); }
.choice-row input[value="insurance"]:checked + span { background: var(--ins-tint); box-shadow: inset 0 -4px 0 var(--ins); }

.received-next { max-width: 34em; margin-top: 0.7rem; font-size: 1.125rem; line-height: 1.45; }

/* ---- Draft 5: the header ---------------------------------------------------------------------------------------
   The name is a link back to the home page. An offer's page has one quiet link beside it, "All offers". */
a.wordmark { color: var(--ink); text-decoration: none; min-height: 2.75rem; }
a.wordmark:hover { color: var(--ink); }
.all-offers { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink-2); font-size: 1rem; font-weight: 600; white-space: nowrap; }
.all-offers:hover { color: var(--ink); }

/* ---- Draft 5: the home page ------------------------------------------------------------------------------------
   One headline, one line, and the three choices as equal cards. Each card is a single link. Its offer's color is
   the bar on its leading edge and nothing more. */
:root[data-view="home"] .top-grid { gap: clamp(1.25rem, 3vw, 2rem); }
:root[data-view="home"] .opening { padding-block: clamp(1.25rem, 4.5vw, 4rem) clamp(1.75rem, 5vw, 4.5rem); }
:root[data-view="home"] h1 { max-width: none; font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; }
:root[data-view="home"] .lede { max-width: 36em; font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.3125rem); }

.chooser h2 { color: #fff; font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.005em; line-height: 1.3; }
.chooser { max-width: 44rem; }
/* Equal cards: stacked, every row takes the height of the tallest. */
.offer-cards { display: grid; grid-auto-rows: 1fr; gap: 0.75rem; margin: 0.7rem 0 0; padding: 0; list-style: none; }
.offer-cards > li { display: flex; min-width: 0; }

.offer-card {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  min-height: 5.25rem;
  padding: 0.85rem 1rem 0.85rem 1.25rem;
  border-radius: 0.625rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 5px 0 0 var(--card-tone);
}

/* A card says it is a link by its arrow and its whole shape, so it keeps its dark text on white whatever the
   navy band does to the links around it. */
.opening a.offer-card,
.opening a.offer-card:hover { color: var(--ink); }
.offer-card--pool { --card-tone: var(--pool); }
.offer-card--insurance { --card-tone: var(--ins); }
.offer-card--restaurant { --card-tone: var(--rest); }
.oc-text { display: grid; flex: 1; gap: 0.2rem; min-width: 0; }
.oc-label { font-size: 1.1875rem; font-weight: 760; letter-spacing: -0.01em; line-height: 1.2; }
.oc-line { color: var(--ink-2); font-size: 0.9688rem; line-height: 1.4; text-wrap: pretty; }
.oc-arrow { flex: none; width: 1.375rem; height: 1.375rem; color: var(--ink); }
.offer-card:hover { background: #f1f5fd; }
.offer-card:hover .oc-label { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.offer-card:hover .oc-arrow { transform: translateX(3px); }
.opening a.offer-card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .oc-arrow { transition: transform 120ms ease-out; }
}

@media (max-width: 22.5em) {
  /* 360 px phones and under: a little less padding, so each card's line still fits in two lines at 360. */
  .offer-card { gap: 0.75rem; padding: 0.8rem 0.75rem 0.8rem 1.1rem; }
  .oc-line { font-size: 0.9375rem; }
  .oc-arrow { width: 1.25rem; height: 1.25rem; }
}

@media (min-width: 62em) {
  /* Three across, equal in width and height, the arrow under the words. */
  .chooser { max-width: none; }
  .offer-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 0.9rem; }
  .offer-card { flex-direction: column; align-items: flex-start; gap: 1.1rem; min-height: 0; padding: 1.35rem 1.4rem 1.25rem; box-shadow: inset 0 5px 0 var(--card-tone); }
  .oc-text { flex: 1; align-content: start; gap: 0.4rem; }
  .oc-label { font-size: 1.375rem; }
  .oc-line { font-size: 1.0625rem; }
  .chooser h2 { font-size: 1.3125rem; }
}

/* The home page is short. The navy band takes the room the page has, so the footer sits at the foot of the window. */
:root[data-view="home"] body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
:root[data-view="home"] main { display: flex; flex: 1 0 auto; flex-direction: column; }
:root[data-view="home"] .opening { flex: 1 0 auto; }

@media (min-width: 48em) {
  /* Where the band is taller than its words, they sit a little above its middle. */
  :root[data-view="home"] .opening { display: flex; flex-direction: column; justify-content: center; padding-bottom: calc(clamp(1.75rem, 5vw, 4.5rem) + 5vh); }
}

/* ---- Draft 5: an offer's page ----------------------------------------------------------------------------------
   The button follows the words, so it is on a phone's first screen; the example record comes next. */
.agree--form { max-width: none; margin-top: 0.7rem; }
.faq-more { margin-top: 1.25rem; }

@media (min-width: 62em) {
  .faq-more { grid-column: 2; margin-top: 0.25rem; }
}
