/* NumbersAgree site styles.
   Layout: one working spreadsheet as the hero exhibit, then quiet left-aligned prose,
   with a single tinted band where the form lives. Type is one family (Archivo) used at
   three widths: expanded for headlines, normal for reading, condensed for sheet chrome. */

@font-face {
  font-family: "Archivo NA";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo NA";
  src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"),
       url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --page: #ffffff;
  --cell: #ffffff;
  --head: #f2f4f6;
  --ink: #17212b;
  --ink-2: #4f5d69;
  --rule: #d5dce2;
  --rule-strong: #aeb9c3;
  --accent: #0b6b4f;
  --accent-hover: #075640;
  --accent-ink: #ffffff;
  --accent-tint: #e2f1ea;
  --bad: #a3271c;
  --bad-bg: #fbe4e0;
  --ok: #1a6638;
  --ok-bg: #ddefe3;
  --mark: #fff0a6;
  --mark-ink: #3d3300;
  --font: "Archivo NA", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --code: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --measure: 38rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #11171c;
    --cell: #151c22;
    --head: #1a222a;
    --ink: #e4eaee;
    --ink-2: #a2b0bb;
    --rule: #2c3741;
    --rule-strong: #46545f;
    --accent: #4cbf93;
    --accent-hover: #68d0a8;
    --accent-ink: #062419;
    --accent-tint: #1a3a2f;
    --bad: #ff9d8f;
    --bad-bg: #3d1f1b;
    --ok: #86d8a6;
    --ok-bg: #16352a;
    --mark: #5b4f12;
    --mark-ink: #fff3c4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #11171c;
  --cell: #151c22;
  --head: #1a222a;
  --ink: #e4eaee;
  --ink-2: #a2b0bb;
  --rule: #2c3741;
  --rule-strong: #46545f;
  --accent: #4cbf93;
  --accent-hover: #68d0a8;
  --accent-ink: #062419;
  --accent-tint: #1a3a2f;
  --bad: #ff9d8f;
  --bad-bg: #3d1f1b;
  --ok: #86d8a6;
  --ok-bg: #16352a;
  --mark: #5b4f12;
  --mark-ink: #fff3c4;
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; }
p, ul, ol, dl, dd, figure, h1, h2, h3 { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
strong { font-weight: 650; }

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--page);
  font-size: 0.9375rem;
}
.skip:focus { top: 12px; }

mark.fill {
  background: var(--mark);
  color: var(--mark-ink);
  padding: 0 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Masthead */
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-mark .m-tile { fill: var(--accent); }
.brand-mark .m-eq { fill: var(--accent-ink); }
.brand-name {
  font-size: 1.125rem;
  font-weight: 720;
  font-stretch: 112%;
  letter-spacing: -0.01em;
}
.masthead-link { font-size: 0.9375rem; font-weight: 600; }

/* Type scale */
h1 {
  font-size: clamp(2.25rem, 1.35rem + 3.3vw, 4rem);
  line-height: 1.02;
  font-weight: 760;
  font-stretch: 106%;
  letter-spacing: -0.02em;
}
@media (min-width: 720px) { h1 { font-stretch: 116%; } }
h2 {
  font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.375rem);
  line-height: 1.08;
  font-weight: 720;
  font-stretch: 110%;
  letter-spacing: -0.015em;
}
.lede {
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34rem;
}

/* Hero */
.hero { padding-block: clamp(24px, 4vw, 56px) 0; }
.hero-title { max-width: 60rem; }
.hero-grid {
  display: grid;
  gap: 36px;
  align-items: start;
  margin-top: clamp(22px, 3vw, 40px);
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(40px, 5vw, 80px);
  }
}
.hero-text { display: grid; gap: 26px; min-width: 0; }
.hero-intro { margin-top: clamp(18px, 2.5vw, 30px); }
.hero-actions { display: grid; gap: 12px; justify-items: start; }
.hero-alt { font-size: 0.9375rem; color: var(--ink-2); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 650;
  font-stretch: 104%;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button-outline { background: transparent; color: var(--accent); }
.button-outline:hover { background: var(--accent-tint); border-color: var(--accent); }

/* The sheet */
.sheet {
  min-width: 0;
  border: 1px solid var(--rule-strong);
  background: var(--cell);
  font-size: 0.9375rem;
  line-height: 1.35;
  font-stretch: 94%;
}
.sheet-bar {
  display: flex;
  align-items: stretch;
  min-width: 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.875rem;
}
.sheet-namebox {
  flex: none;
  min-width: 3.5rem;
  padding: 7px 10px;
  border-right: 1px solid var(--rule);
  color: var(--ink-2);
}
.sheet-fx {
  flex: none;
  padding: 7px 10px;
  border-right: 1px solid var(--rule);
  color: var(--ink-2);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}
.sheet-formula {
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet-code { font-family: var(--code); font-size: 0.8125rem; font-stretch: normal; }
.sheet-scroll { overflow-x: auto; }
.grid {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums lining-nums;
}
.grid th, .grid td {
  border: 1px solid var(--rule);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.grid thead th { font-weight: 650; }
.grid tbody th { font-weight: 450; }
.grid .num { text-align: right; white-space: nowrap; }
.grid .grid-cols td, .grid .grid-rn {
  padding: 2px 6px;
  background: var(--head);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-stretch: 85%;
  text-align: center;
  vertical-align: middle;
}
.grid .grid-corner { width: 2.1rem; }
.grid .is-active { background: var(--accent-tint); color: var(--accent); font-weight: 650; }
.grid .cell-bad { background: var(--bad-bg); color: var(--bad); font-weight: 620; }
.grid .cell-ok { background: var(--ok-bg); color: var(--ok); font-weight: 620; }
.grid .is-selected { position: relative; outline: 2px solid var(--accent); outline-offset: -1px; }
.grid .is-selected::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border: 1px solid var(--cell);
}
.grid tr > .is-selected:last-child::after { right: -1px; }
.grid tbody tr:last-child .is-selected::after { bottom: -1px; }
.grid .muted { color: var(--ink-2); }
.grid tr > :first-child { border-left: 0; }
.grid tr > :last-child { border-right: 0; }
.grid thead tr:first-child > * { border-top: 0; }
.grid tbody tr:last-child > * { border-bottom: 0; }

.notes {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px 14px 4px;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 1.5;
  font-stretch: 100%;
}
.notes li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ref {
  display: block;
  border: 1px solid var(--rule-strong);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 650;
  font-stretch: 88%;
  line-height: 1.6;
  text-align: center;
}
.ref-bad { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.ref-ok { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.notes-after { display: none; }
.sheet[data-state="after"] .notes-before { display: none; }
.sheet[data-state="after"] .notes-after { display: grid; }
.sheet-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  padding: 10px 14px 12px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-stretch: 100%;
}
.sheet-toggle {
  appearance: none;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.sheet-toggle:hover { text-decoration-thickness: 2px; }

/* Home index sheet */
.sheet-index { margin-top: clamp(28px, 4vw, 44px); }
.grid-index tbody th { font-weight: 650; }
.grid-index a { font-weight: 650; white-space: nowrap; }
@media (max-width: 719px) {
  .grid-index thead { display: none; }
  .grid-index, .grid-index tbody, .grid-index tr, .grid-index th, .grid-index td { display: block; width: 100%; }
  .grid-index tr { padding: 14px 14px 16px; border-bottom: 1px solid var(--rule); }
  .grid-index tr:last-child { border-bottom: 0; }
  .grid-index th, .grid-index td { border: 0; padding: 2px 0; }
  .grid-index .grid-rn { display: none; }
  .grid-index td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-2); }
  .grid-index td:last-child { padding-top: 8px; }
  .grid-index .is-selected { outline: 0; }
  .grid-index .is-selected::after { display: none; }
}

/* Sections */
.section { padding-top: clamp(64px, 9vw, 112px); }
.section-head { display: grid; gap: 14px; max-width: var(--measure); margin-bottom: clamp(24px, 3vw, 36px); }
.section-head p { color: var(--ink-2); }
.prose { display: grid; gap: 16px; max-width: var(--measure); }
.source-note { margin-top: 26px; max-width: var(--measure); font-size: 0.9375rem; color: var(--ink-2); }

.asks { list-style: none; display: grid; gap: 22px; padding: 0; max-width: var(--measure); }
.asks li { position: relative; display: grid; gap: 4px; padding-left: 30px; }
.asks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 14px;
  height: 14px;
  background: var(--bad-bg);
  border: 1px solid var(--bad);
}
.ask { font-size: 1.1875rem; line-height: 1.45; font-weight: 500; }
.closing { margin-top: 26px; max-width: var(--measure); font-size: 1.125rem; color: var(--ink-2); }

/* The offer stack */
.stack { max-width: 50rem; }
.stack .grid tbody th { font-weight: 450; }
.stack .stack-total th { font-weight: 700; }
.stack-note { margin-top: 14px; font-size: 0.9375rem; color: var(--ink-2); }
.ask-src { font-size: 0.875rem; color: var(--ink-2); }

.steps { display: grid; max-width: 54rem; }
.step { display: grid; gap: 6px; padding-block: 20px; border-top: 1px solid var(--rule); }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step dt { font-weight: 700; font-stretch: 108%; }
.step dd { max-width: var(--measure); }
@media (min-width: 720px) { .step { grid-template-columns: 12rem minmax(0, 1fr); gap: 24px; } }
.after-steps { margin-top: 22px; max-width: var(--measure); color: var(--ink-2); }

.price { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .price { grid-template-columns: 17rem minmax(0, 1fr); gap: 56px; } }
.price-amount { display: grid; gap: 6px; }
.price-figure {
  font-size: clamp(3.25rem, 2.4rem + 3vw, 4.75rem);
  line-height: 0.95;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
}
.price-per { font-size: 1.0625rem; color: var(--ink-2); }
.price-launch { margin-top: 6px; font-size: 0.9375rem; font-weight: 650; color: var(--accent); }
.guarantee {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--accent);
  background: var(--cell);
}
.guarantee::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: 2px solid var(--page);
}
.guarantee-title { font-weight: 700; font-stretch: 106%; }
.compare-wrap { margin-top: clamp(40px, 5vw, 56px); max-width: 60rem; }
.compare-title { margin-bottom: 14px; font-size: 1.25rem; font-weight: 700; font-stretch: 106%; }
.compare-scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.45; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-weight: 400; }
.compare thead th { padding-top: 0; color: var(--ink-2); font-size: 0.8125rem; font-weight: 600; }
.compare tbody th { font-weight: 650; }
.compare .is-us th, .compare .is-us td { background: var(--accent-tint); }
.compare .is-us th { color: var(--accent); font-weight: 750; }
@media (max-width: 639px) {
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: 14px 12px; border-bottom: 1px solid var(--rule); }
  .compare th, .compare td { padding: 2px 0; border: 0; }
  .compare td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-2); }
  .compare .is-us { background: var(--accent-tint); }
}
.price-body { display: grid; gap: 22px; max-width: var(--measure); justify-items: start; }
.price-list { display: grid; gap: 10px; padding-left: 1.1em; }
.price-list li::marker { color: var(--accent); }

.promises { list-style: none; display: grid; gap: 16px; padding: 0; max-width: var(--measure); }
.promises li { position: relative; padding-left: 30px; }
.promises li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 14px;
  height: 14px;
  background: var(--ok-bg);
  border: 1px solid var(--ok);
}

.faq { max-width: 50rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  list-style: none;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 650;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--ink-2); font-size: 1.3rem; font-weight: 500; line-height: 1.1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { display: grid; gap: 12px; max-width: var(--measure); padding-bottom: 22px; }

/* Form band */
.band {
  margin-top: clamp(64px, 9vw, 112px);
  padding-block: clamp(48px, 7vw, 88px);
  background: var(--head);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 8px;
}
.form-layout { display: grid; gap: 32px; }
@media (min-width: 960px) { .form-layout { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 64px; } }
.form-intro { display: grid; gap: 14px; align-content: start; max-width: 28rem; }
.form-intro p { color: var(--ink-2); }
.lead-form {
  display: grid;
  gap: 22px;
  min-width: 0;
  padding: clamp(18px, 3vw, 32px);
  background: var(--cell);
  border: 1px solid var(--rule);
}
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field label, .choices legend { font-size: 0.9375rem; font-weight: 650; }
.opt { font-weight: 400; color: var(--ink-2); }
.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: var(--cell);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.input::placeholder { color: var(--ink-2); opacity: 0.75; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea.input { min-height: 104px; resize: vertical; }
.choices { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.choices legend { padding: 0; margin-bottom: 10px; }
.choice-list { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: var(--cell);
  font-size: 0.9375rem;
  line-height: 1.3;
  cursor: pointer;
}
.choice input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.choice:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.choices.interest { padding: 16px; border: 1px solid var(--rule); background: var(--head); }
.choices.interest legend { float: left; width: 100%; margin-bottom: 12px; }
.choices.interest .choice-list { clear: both; flex-direction: column; align-items: stretch; }
.hint { font-size: 0.8125rem; color: var(--ink-2); }
.form-actions { display: grid; gap: 12px; justify-items: start; }
.form-status { font-size: 0.9375rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--bad); font-weight: 600; }
.form-status.is-note { padding: 10px 12px; background: var(--mark); color: var(--mark-ink); }
.form-small { font-size: 0.8125rem; color: var(--ink-2); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
  padding-block: 32px 48px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.footer-who { display: grid; gap: 4px; }
.footer-who strong { color: var(--ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: start; }
.page-plain .footer { border-top: 1px solid var(--rule); margin-top: clamp(64px, 9vw, 112px); }

/* Small pages */
.narrow { max-width: 46rem; }
.plain-page { padding-block: clamp(24px, 4vw, 56px) 0; }
.plain-page .prose h2 { margin-top: 18px; font-size: 1.375rem; font-stretch: 106%; }
.plain-page ul { padding-left: 1.2em; display: grid; gap: 8px; }
.thanks-book { display: grid; gap: 14px; justify-items: start; margin-top: 32px; padding: 22px; border: 1px solid var(--rule); background: var(--head); max-width: 36rem; }
.err-cell {
  display: inline-block;
  margin-bottom: 22px;
  padding: 4px 14px;
  border: 2px solid var(--bad);
  background: var(--bad-bg);
  color: var(--bad);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 760;
  font-stretch: 110%;
  font-variant-numeric: tabular-nums;
}
.link-list { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 20px; }

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