/* Shelf-edge price label: off-white board, one red for the reduction, flush
   left in a grotesque, and a struck-through old price above the new one. The
   page is about reading that card properly, so it is shaped like the card. */

:root {
  --board: #f4f1ea;
  --board-2: #ebe6db;
  --ink: #171614;
  --ink-2: #4f4b44;
  --hair: #cfc8ba;
  --red: #c8102e;
  --green: #1f6b3a;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- head -------------------------------------------------------------- */

.head { padding: 44px 0 30px; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-weight: 800;
}
h1 em { font-style: italic; color: var(--red); }

.tagline {
  margin: 14px 0 0;
  max-width: 34em;
  font-size: 1.04rem;
  color: var(--ink-2);
}

/* ---- the form ---------------------------------------------------------- */

.ask {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--hair);
  padding: 22px 0 24px;
}

.field { margin: 0 0 16px; }
.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field .opt {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.66;
}

select, input[type="text"] {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 11px 13px;
}
select:focus-visible, input:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 1px;
}

/* The three numbers sit in a row on anything wider than a phone, because they
   are read off one card in one glance and splitting them across three lines
   makes them look like three separate questions. */
.prices { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 620px) {
  .prices { grid-template-columns: 1fr 1fr 1fr; }
  .field-claim { grid-column: 3; }
}

.pct-wrap { position: relative; display: block; }
.pct-wrap input { padding-right: 34px; }
.pct {
  position: absolute;
  top: 50%; inset-inline-end: 12px;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--ink-2);
  pointer-events: none;
}

/* ---- the answer -------------------------------------------------------- */

.answer { padding: 26px 0 0; }

.empty {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink-2);
}

.block { margin: 0 0 26px; }
.block:last-child { margin-bottom: 0; }

.headline {
  margin: 0;
  font-size: clamp(1.35rem, 4.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.014em;
}
/* When the tag claims more than the two numbers support, that line is the
   whole point of the page, so it takes the one colour on it. */
.block-sum.caught .headline { color: var(--red); }

.sub { margin: 9px 0 0; color: var(--ink-2); }
.sub:empty { display: none; }

.block-head {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.block-rule, .block-settle {
  border-top: 1px solid var(--hair);
  padding-top: 18px;
}
.block-rule p, .block-settle p { margin: 0 0 9px; }
.block-rule p:last-child, .block-settle p:last-child { margin-bottom: 0; }

.aside { font-size: 0.9rem; color: var(--ink-2); }
.aside:empty { display: none; }

/* ---- the article ------------------------------------------------------- */

.deep { margin: 42px 0 0; border-top: 3px solid var(--ink); padding-top: 22px; }
.deep-intro { margin: 0 0 16px; color: var(--ink-2); font-size: 0.95rem; }

.deep-item { border-bottom: 1px solid var(--hair); }
.deep-item > summary {
  cursor: pointer;
  padding: 13px 0;
  font-weight: 700;
  list-style: none;
}
.deep-item > summary::-webkit-details-marker { display: none; }
.deep-item > summary::after { content: " +"; color: var(--red); font-weight: 800; }
.deep-item[open] > summary::after { content: " –"; }
.deep-item > summary h2 {
  display: inline;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.deep-body { padding: 0 0 16px; }
.deep-body p { margin: 0 0 12px; }
.deep-body a { color: var(--red); }

/* ---- footer ------------------------------------------------------------ */

footer {
  margin: 46px 0 0;
  border-top: 1px solid var(--hair);
  padding: 20px 0 0;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 12px; }
footer a { color: var(--ink); }

/* ---- sharing ----------------------------------------------------------- */

/* Built by /share.js. Each button in its own network's colour, because a share
   button nobody recognises is a share button nobody presses. */
.share { margin: 30px 0 0; }
.share[hidden] { display: none; }
.share-heading {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 7px 15px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: var(--brand, var(--ink));
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.share-btn:hover, .share-btn:focus-visible { transform: translateY(-2px); filter: brightness(1.08); }
.share-copy, .share-more {
  color: currentColor;
  background: transparent;
  box-shadow: inset 0 0 0 2px currentColor;
}
.share-copy.done { color: #fff; background: var(--green); box-shadow: none; }
@media (max-width: 560px) { .share-btn { padding: 6px 13px; font-size: 0.8rem; } }

@media (prefers-reduced-motion: reduce) {
  .share-btn { transition: none; }
}
