/* =========================================================
   SoloClose draft — one stylesheet, no build step, no deps.
   Palette: warm paper, near-black ink, one green accent.
   ========================================================= */

:root {
  --paper:      #FFFCF6;
  --paper-2:    #F7F1E6;
  --paper-3:    #EFE7D8;
  --ink:        #17140F;
  --ink-2:      #4B443A;
  --ink-3:      #7C7367;
  --line:       #E3DACA;
  --accent:     #0E7A4D;
  --accent-2:   #0A5D3A;
  --accent-pale:#E4F1E9;
  --flag:       #B4441F;
  --flag-pale:  #FBEDE6;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --r: 10px;
  --shadow: 0 1px 2px rgba(23,20,15,.06), 0 8px 24px rgba(23,20,15,.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
/* Product pages are tens of thousands of pixels long — smooth-scrolling a
   contents link across all of it takes seconds and feels broken. */
html.app { scroll-behavior: auto; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2.15rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.18rem; line-height: 1.3; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
/* measure-limited column that still starts at the normal content edge */
.hold { max-width: 760px; }

.eyebrow {
  font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.lede { font-size: clamp(1.05rem, 1.9vw, 1.24rem); color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: .87rem; }

section { padding: 78px 0; }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head h2 { margin-bottom: 16px; }
.sec-head p:last-child { margin-bottom: 0; }

.band-dark { background: var(--ink); color: var(--paper-2); }
.band-dark h2, .band-dark h3 { color: #FFFDF8; }
.band-dark .lede, .band-dark p { color: #C9C1B4; }
.band-dark .eyebrow { color: #7FD3A9; }
.band-soft { background: var(--paper-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: .97rem; font-weight: 600; line-height: 1;
  padding: 15px 26px; border-radius: var(--r); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2C2820; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink-3); background: rgba(23,20,15,.03); }
.band-dark .btn-outline { color: var(--paper-2); border-color: rgba(255,253,248,.28); }
.band-dark .btn-outline:hover { background: rgba(255,253,248,.08); }
.btn-sm { padding: 10px 16px; font-size: .88rem; }
.btn-block { width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,252,246,.92);
  /* WebKit only shipped this unprefixed in Safari 18, so without the prefix the
     blur silently does nothing on every earlier iPhone. The rgba background
     above is the fallback either way. */
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-family: var(--serif); font-size: .95rem; letter-spacing: 0;
}
.brand-name { font-size: 1.06rem; }

.nav { display: flex; gap: 26px; margin-right: auto; }
.nav a { text-decoration: none; font-size: .94rem; color: var(--ink-2); padding: 6px 0; }
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); font-weight: 600; }

.hdr-act { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* locked "Go to the app" */
.applink {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .88rem; font-weight: 600; padding: 10px 15px;
  border-radius: var(--r); border: 1px solid var(--line); text-decoration: none;
  color: var(--ink); background: transparent;
}
.applink:hover { border-color: var(--ink-3); }
.applink[aria-disabled="true"] {
  color: var(--ink-3); background: var(--paper-2); border-color: var(--line);
  cursor: not-allowed; pointer-events: none; opacity: .8;
}
.applink .lock { width: 13px; height: 13px; flex: none; }
.applink[aria-disabled="false"] .lock { display: none; }
.applink[aria-disabled="false"] { color: var(--accent); border-color: rgba(14,122,77,.4); background: var(--accent-pale); }

/* account */
.acct { position: relative; }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 226px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 8px; display: none;
}
.acct.is-open .acct-menu { display: block; }
.acct-who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-who strong { display: block; font-size: .92rem; }
.acct-menu a, .acct-menu button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  font: inherit; font-size: .9rem; padding: 9px 12px; border-radius: 7px;
  color: var(--ink-2); text-decoration: none; cursor: pointer;
}
.acct-menu a:hover, .acct-menu button:hover { background: var(--paper-2); color: var(--ink); }

.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; width: 40px; height: 38px; cursor: pointer; position: relative; }
.burger span, .burger::before, .burger::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 1.6px; background: var(--ink); transition: .18s;
}
.burger span { top: 18px; }
.burger::before { top: 12px; }
.burger::after { top: 24px; }

/* ---------- hero ---------- */
.hero { padding: 74px 0 66px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 28px; }

.trust {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px;
  font-size: .87rem; color: var(--ink-3);
}
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.tick { width: 15px; height: 15px; flex: none; color: var(--accent); }

/* hero savings card */
.savecard {
  background: var(--ink); color: var(--paper-2); border-radius: 14px; padding: 30px;
  box-shadow: 0 18px 44px rgba(23,20,15,.18);
}
.savecard .cap { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: #8E8578; margin-bottom: 6px; }
.savecard .big { font-family: var(--serif); font-size: 3.05rem; line-height: 1; color: #7FD3A9; margin: 0 0 4px; }
.savecard .sub { font-size: .9rem; color: #B7AFA1; margin: 0 0 22px; }
.savecard hr { border: 0; border-top: 1px solid rgba(255,253,248,.14); margin: 20px 0; }
.savecard label { display: block; font-size: .82rem; color: #B7AFA1; margin-bottom: 10px; }
.savecard output { font-weight: 650; color: #FFFDF8; }

input[type="range"] { width: 100%; accent-color: var(--accent); height: 22px; cursor: pointer; }
.savecard input[type="range"] { accent-color: #7FD3A9; }

/* preset price chips above a slider */
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.preset {
  font: inherit; font-size: .84rem; font-weight: 600; line-height: 1;
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.preset:hover { border-color: var(--ink-3); color: var(--ink); }
.preset.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.savecard .preset { border-color: rgba(255,253,248,.24); color: #B7AFA1; }
.savecard .preset:hover { border-color: rgba(255,253,248,.55); color: #FFFDF8; }
.savecard .preset.is-on { background: #7FD3A9; border-color: #7FD3A9; color: #17140F; }

/* "which is a new roof, with money left over" */
.equiv {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; line-height: 1.4; color: var(--ink-2); margin: 0;
}
.savecard .equiv { color: #C9C1B4; font-size: .98rem; margin: 0 0 6px; }
.equiv b { font-style: normal; font-weight: 600; color: var(--ink); }

.stack-row { display: flex; justify-content: space-between; font-size: .92rem; padding: 7px 0; }
.stack-row.total { border-top: 1px solid rgba(255,253,248,.14); margin-top: 6px; padding-top: 13px; font-weight: 650; color: #FFFDF8; }

/* ---------- generic cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.band-dark .card { background: #211D17; border-color: #332D25; }

/* objections */
.obj { border-top: 1px solid var(--line); padding: 24px 0; display: grid; grid-template-columns: 300px 1fr; gap: 32px; }
.obj:last-child { border-bottom: 1px solid var(--line); }
.obj h3 { font-family: var(--serif); font-size: 1.3rem; }
.obj p { margin: 0; color: var(--ink-2); }
.band-dark .obj { border-color: #332D25; }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.step { background: var(--paper); padding: 26px 24px; }
.step .n {
  font-family: var(--serif); font-size: .92rem; color: var(--accent); font-weight: 600;
  display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1.06rem; margin-bottom: 7px; }
.step p { margin: 0; font-size: .93rem; color: var(--ink-2); }

/* scenario bars (FSBO case) */
.scen { padding: 22px 0; border-top: 1px solid var(--line); }
.scen:first-of-type { border-top: 0; padding-top: 0; }
.scen-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 11px; }
.scen-head span { font-weight: 600; }
.scen-head strong { font-family: var(--serif); font-size: 1.6rem; line-height: 1; white-space: nowrap; }
.bar { height: 12px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--flag); transition: width .25s ease; }
.scen p { margin: 10px 0 0; font-size: .9rem; color: var(--ink-3); }
.scen.good .bar i { background: var(--accent); width: 4px; }
.scen.good .scen-head strong { color: var(--accent); }

.tag-flag {
  display: block; font-size: .73rem; font-weight: 650; letter-spacing: .09em;
  text-transform: uppercase; color: var(--flag); margin-bottom: 9px;
}

/* pull quote */
.pull {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 26px; margin: 36px 0 0;
  font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.35;
}
.band-dark .pull { border-color: #7FD3A9; }

/* for / not for */
.fit { border-radius: var(--r); padding: 28px; border: 1px solid var(--line); }
.fit.yes { background: var(--accent-pale); border-color: rgba(14,122,77,.22); }
.fit.no  { background: var(--flag-pale); border-color: rgba(180,68,31,.2); }
.fit h3 { margin-bottom: 14px; }
.fit ul { margin: 0; padding-left: 20px; }
.fit li { margin-bottom: 9px; font-size: .95rem; color: var(--ink-2); }

/* placeholder banner */
.placeholder-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: #FFF4D6; border: 1px dashed #D9A400; color: #6B5100;
  border-radius: var(--r); padding: 12px 16px; font-size: .86rem; margin-bottom: 26px;
}
.placeholder-note strong { letter-spacing: .04em; }

/* quotes */
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.quote blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 1.12rem; line-height: 1.45; }
.quote .who { font-size: .87rem; color: var(--ink-3); }

/* guarantee */
.guarantee { display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; }
.seal { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-pale); color: var(--accent);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }

/* faq */
details.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 1.03rem;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.4rem; color: var(--ink-3); line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 14px 0 0; color: var(--ink-2); max-width: 74ch; }

/* final cta */
.finale { text-align: center; }
.finale h2 { margin-bottom: 16px; }
.finale .lede { margin: 0 auto 28px; max-width: 620px; }
.finale .cta-row { justify-content: center; }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.tier {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 30px 26px 26px; display: flex; flex-direction: column; height: 100%;
}
.tier.featured {
  border: 1.5px solid var(--ink); box-shadow: var(--shadow); position: relative;
}
.tier-flag {
  position: absolute; top: -12px; left: 26px; background: var(--ink); color: var(--paper);
  font-size: .72rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 6px;
}
.tier h3 { font-size: 1.32rem; margin-bottom: 6px; }
.tier .tier-for { font-size: .88rem; color: var(--ink-3); margin-bottom: 20px; min-height: 40px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price .amt { font-family: var(--serif); font-size: 2.7rem; line-height: 1; }
.price .per { font-size: .86rem; color: var(--ink-3); }
.tier .anchor { font-size: .84rem; color: var(--ink-3); margin-bottom: 22px; }
.tier ul { list-style: none; margin: 0 0 26px; padding: 0; }
.tier li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .93rem; padding: 7px 0; color: var(--ink-2); }
.tier li .tick { margin-top: 4px; }
.tier li.inherit { color: var(--ink); font-weight: 600; }
.tier .buy { margin-top: auto; }

/* buy button + its checkout message */
.buy .btn:disabled { opacity: .7; cursor: progress; }
.kit-msg {
  margin: 12px 0 0; font-size: .87rem; line-height: 1.5;
  border-radius: 9px; padding: 11px 13px; border: 1px solid;
}
.kit-msg.is-owned { background: var(--accent-pale); border-color: rgba(14,122,77,.3); color: var(--accent-2); }
.kit-msg.is-error { background: var(--flag-pale); border-color: rgba(180,68,31,.3); color: #8E3417; }
.kit-msg a { color: inherit; }
.band-dark .kit-msg.is-owned { background: rgba(127,211,169,.12); border-color: rgba(127,211,169,.4); color: #A8E3C6; }
.band-dark .kit-msg.is-error { background: rgba(214,110,74,.14); border-color: rgba(214,110,74,.45); color: #F0B49B; }

/* comparison */
.cmp { width: 100%; border-collapse: collapse; font-size: .93rem; }
.cmp th, .cmp td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cmp thead th { font-family: var(--serif); font-size: 1rem; font-weight: 600; border-bottom: 1.5px solid var(--ink); }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align: center; width: 17%; }
.cmp tbody tr:hover { background: var(--paper-2); }
.cmp .yes { color: var(--accent); font-weight: 700; }
.cmp .no { color: #C6BCAB; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; padding: 56px 0 90px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .87rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field select {
  width: 100%; font: inherit; font-size: .96rem; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid rgba(14,122,77,.35); outline-offset: 1px; border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.summary { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 28px; position: sticky; top: 92px; }
.summary h3 { margin-bottom: 18px; }
.sum-line { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: .94rem; color: var(--ink-2); }
.sum-line.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 15px; font-size: 1.12rem; font-weight: 650; color: var(--ink); }
.incl { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.incl li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; font-size: .88rem; color: var(--ink-2); padding: 5px 0; }

.demo-tag {
  display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 650;
  letter-spacing: .05em; text-transform: uppercase; color: #6B5100;
  background: #FFF4D6; border: 1px dashed #D9A400; border-radius: 20px; padding: 5px 12px;
}

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal-veil { position: absolute; inset: 0; background: rgba(23,20,15,.5); }
.modal-box {
  position: relative; background: var(--paper); width: min(420px, calc(100% - 40px));
  margin: 12vh auto 0; border-radius: 14px; padding: 32px; box-shadow: 0 24px 60px rgba(23,20,15,.3);
}
.modal-box h3 { font-size: 1.5rem; margin-bottom: 8px; }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--ink-3); cursor: pointer; }

/* ---------- the map popup ----------

   Built on .modal above, which was written for a dialog that never shipped and
   until now was dead CSS. The overrides here are the ones a form inside a box
   on a PHONE needs, which is what the base rules did not anticipate. */

/* Centring is flex rather than the base rule's `margin: 12vh auto 0`, because a
   fixed top margin on a landscape phone pushes the submit button under the fold
   of the dialog itself — the field is reachable, the button is not. */
.lead-modal { display: none; z-index: 200; }
.lead-modal.is-open { display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.lead-modal[hidden] { display: none; }

.lead-modal .modal-box {
  margin: 0; text-align: center; padding: 30px 24px;
  /* dvh, not vh: on iOS Safari `100vh` is the height WITHOUT the browser
     chrome, so a dialog sized against it is taller than the visible viewport
     and the bottom of the form sits behind the address bar. */
  max-height: 90dvh; overflow-y: auto;
}

/* The close control is 24px of glyph in a 44px target. Below that it is a
   dismissible dialog that cannot reliably be dismissed with a thumb, which is
   worse than having no popup at all. */
.lead-modal .modal-close {
  top: 6px; right: 6px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.lead-modal .modal-close:hover { color: var(--ink); background: var(--paper-2); }
.lead-modal .modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Room for the close button, so a two-line heading never runs under it. */
.lead-modal .lead-h { margin-right: 34px; }
.lead-modal .lead-p { font-size: .95rem; margin-bottom: 20px; }
.lead-modal .lead-fine { font-size: .75rem; }

.lead-modal .modal-veil { position: fixed; }

/* Set while the dialog is open. A fixed overlay does not stop the document
   behind it scrolling under a finger on iOS, and a visitor who drags the page
   away from the dialog has no way to bring it back. */
body.has-modal { overflow: hidden; }

.lead-modal.is-open .modal-box { animation: leadPop .18s ease-out; }
@keyframes leadPop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lead-modal.is-open .modal-box { animation: none; }
}

/* ---------- app gate ---------- */
.gate { max-width: 560px; margin: 0 auto; text-align: center; padding: 90px 0 120px; }
.gate .seal { margin: 0 auto 24px; width: 72px; height: 72px; font-size: 1.7rem; }
.appshell { padding: 48px 0 100px; }
.appgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }

/* ---------- my.soloclose.com — the signed-in product area ----------
   Deliberately has no nav, no marketing and no outbound links. This is
   the thing they paid for, not a page selling it to them.            */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1 0 auto; padding: 60px 0 76px; }

.app-mark { display: flex; align-items: center; gap: 10px; font-weight: 650; margin-bottom: 46px; }
.app-mark .brand-name { font-size: 1.06rem; }

.app-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 30px; }

.kits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kit {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 30px 26px; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.kit:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.kit:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.kit b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.kit svg { flex: none; color: var(--ink-3); transition: color .15s ease, transform .15s ease; }
.kit:hover svg { color: var(--accent); transform: translateX(3px); }

.app-note { margin: 24px 0 0; font-size: .93rem; color: var(--ink-3); }

/* a kit page before it has content: the name, and nothing else */
.kit-page { padding: 76px 0 90px; }

.app-ftr { flex: none; border-top: 1px solid var(--line); padding: 24px 0 32px; }
.app-ftr p { margin: 0; font-size: .8rem; line-height: 1.65; color: var(--ink-3); max-width: 92ch; }

@media (max-width: 860px) { .kits { grid-template-columns: 1fr; } }

/* ---------- the reading experience inside my.soloclose.com ----------
   All prefixed doc- so nothing collides with the marketing site's
   .step / .card / .obj classes.                                     */
.doc { max-width: 760px; }
.doc-back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px;
  font-size: .9rem; font-weight: 600; color: var(--ink-3); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 13px;
  transition: color .15s ease, border-color .15s ease;
}
.doc-back:hover { color: var(--ink); border-color: var(--ink-3); }
.doc-back svg { transition: transform .15s ease; }
.doc-back:hover svg { transform: translateX(-2px); }
.doc h2 { font-size: 1.45rem; margin: 34px 0 12px; }
.doc h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.doc p { margin: 0 0 1.05em; }
.doc ul { margin: 0 0 1.2em; padding-left: 22px; }
.doc li { margin-bottom: .6em; }
.doc a { color: var(--accent-2); text-underline-offset: 2px; }

.doc-lede { font-size: 1.08rem; color: var(--ink-2); margin-bottom: 1.3em; }
.doc-when {
  display: block; background: var(--paper-2); border-left: 3px solid var(--accent);
  padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 0 0 1.4em; font-size: .95rem;
}

/* contents */
.doc-toc { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 26px 28px; margin-bottom: 48px; }
.doc-toc h2 { font-size: 1rem; margin: 0 0 14px; font-family: var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.doc-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 36px; }
.doc-toc li { margin-bottom: .5em; font-size: .93rem; break-inside: avoid; }
.doc-toc a { color: var(--ink-2); text-decoration: none; }
.doc-toc a:hover { color: var(--accent-2); text-decoration: underline; }
.doc-phase { font-size: .74rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* a step */
.doc-step { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 48px; scroll-margin-top: 20px; }
.doc-step:first-of-type { border-top: 0; }
.doc-num { font-family: var(--serif); font-size: .9rem; color: var(--accent); display: block; margin-bottom: 8px; }
.doc-step > h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-family: var(--serif); margin: 0 0 14px; }

/* checklist */
.doc-check { list-style: none; padding: 0; margin: 0 0 1.4em; }
.doc-check li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin-bottom: .7em; }
.doc-check li::before {
  content: ""; width: 15px; height: 15px; margin-top: 5px; border-radius: 4px;
  border: 1.5px solid var(--ink-3);
}

/* state overlay */
.doc-overlay {
  background: var(--accent-pale); border: 1px solid rgba(14,122,77,.25);
  border-radius: 10px; padding: 22px 24px; margin: 26px 0 0;
}
.doc-overlay h3 { margin-top: 0; color: var(--accent-2); }
.doc-overlay p:last-child { margin-bottom: 0; }
.doc-overlay[hidden] { display: none; }

/* things you copy and paste */
.copyblock {
  position: relative; background: var(--ink); color: #E9E4DA;
  border-radius: 10px; padding: 22px 24px; margin: 0 0 1.4em; font-size: .95rem; line-height: 1.65;
}
.copyblock p { margin: 0 0 .9em; }
/* keep the first line clear of the absolutely-positioned Copy button */
.copyblock > p:first-of-type { padding-right: 74px; }
.copyblock p:last-child { margin-bottom: 0; }
.copyblock .fill { background: rgba(127,211,169,.2); color: #A8E3C6; border-radius: 4px; padding: 1px 5px; }
.copybtn {
  position: absolute; top: 12px; right: 12px; font: inherit; font-size: .76rem; font-weight: 650;
  letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
  background: rgba(255,253,248,.1); color: #C9C1B4; border: 1px solid rgba(255,253,248,.2);
  border-radius: 6px; padding: 5px 10px;
}
.copybtn:hover { background: rgba(255,253,248,.18); color: #FFFDF8; }
.copybtn.is-done { background: #7FD3A9; border-color: #7FD3A9; color: #17140F; }
.fill { background: var(--paper-3); border-radius: 4px; padding: 1px 5px; }

/* state picker */
.doc-state { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 44px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.doc-state label { font-weight: 600; font-size: .95rem; }
.doc-state select { font: inherit; font-size: .95rem; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--paper); color: var(--ink); }
.doc-state .small { color: var(--ink-3); }

/* glossary */
.doc-gloss { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 44px; }
.doc-term { border-bottom: 1px solid var(--line); padding: 18px 0; }
.doc-term summary { cursor: pointer; list-style: none; font-weight: 600; }
.doc-term summary::-webkit-details-marker { display: none; }
.doc-term summary::after { content: "+"; float: right; font-family: var(--serif); font-size: 1.3rem; line-height: 1; color: var(--ink-3); }
.doc-term[open] summary::after { content: "\2013"; }
.doc-term p { margin: 12px 0 0; font-size: .95rem; color: var(--ink-2); }

@media (max-width: 760px) { .doc-toc ol { columns: 1; } }

/* ---------- the two Deal Kit tools ---------- */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.tool-form { min-width: 0; }
.tool-form .field textarea {
  width: 100%; font: inherit; font-size: .95rem; padding: 12px 14px; resize: vertical;
  border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink);
}
.tool-form .field textarea:focus { outline: 2px solid rgba(14,122,77,.35); outline-offset: 1px; border-color: var(--accent); }
.tool-form h2 { font-size: 1.15rem; margin: 34px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tool-form h2:first-child { margin-top: 0; }
.field-hint { font-size: .82rem; color: var(--ink-3); margin: 6px 0 0; }
.charcount { font-variant-numeric: tabular-nums; }
.charcount.is-max { color: var(--flag); font-weight: 600; }

/* a contingency: a toggle and an optional day count */
.cgcy { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; }
.cgcy-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cgcy-top label { font-weight: 600; font-size: .95rem; margin: 0; }
.cgcy-days { margin-top: 12px; display: none; align-items: center; gap: 10px; }
.cgcy.is-on .cgcy-days { display: flex; }
.cgcy-days input { width: 90px; }
.cgcy-days span { font-size: .88rem; color: var(--ink-3); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-3); cursor: pointer; }
.switch input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }

/* comps */
.comp { border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 14px; background: var(--paper); }
.comp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.comp-head h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.comp-drop { background: none; border: 0; font: inherit; font-size: .84rem; color: var(--flag); cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.comp-drop:hover { background: var(--flag-pale); }
.comp-drop[disabled] { opacity: .35; cursor: not-allowed; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* the printable document */
.sheet {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 40px 42px; box-shadow: var(--shadow); position: sticky; top: 24px;
}
.sheet h2 { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 4px; }
.sheet .sheet-sub { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 26px; }
.sheet h3 {
  font-family: var(--sans); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.sheet-row { display: grid; grid-template-columns: 42% 1fr; gap: 16px; padding: 7px 0; font-size: .93rem; align-items: baseline; }
.sheet-row dt { color: var(--ink-3); }
.sheet-row dd { margin: 0; color: var(--ink); }
.sheet-row dd.is-empty { color: #B9B1A4; }
.sheet-row dd.is-off { color: var(--ink-3); font-style: italic; }
.sheet-block { padding: 7px 0; font-size: .93rem; }
.sheet-block dt { color: var(--ink-3); margin-bottom: 5px; }
.sheet-block dd { margin: 0; white-space: pre-wrap; }
.sheet dl { margin: 0; }
.sheet-note {
  margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: .78rem; line-height: 1.6; color: var(--ink-3);
}
.sheet-comps { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: 4px; }
.sheet-comps th { text-align: left; font-family: var(--sans); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); padding: 0 10px 8px 0; border-bottom: 1px solid var(--line); font-weight: 650; }
.sheet-comps td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--paper-3); vertical-align: top; }
.sheet-comps .num { white-space: nowrap; }
.sheet-comps .notes { white-space: pre-wrap; color: var(--ink-2); font-size: .85rem; }

@media (max-width: 900px) {
  .tool-grid { grid-template-columns: 1fr; }
  .sheet { position: static; }
}

@media print {
  .app-ftr, .doc-back, .app-mark, .tool-form, .tool-actions, .tool-intro { display: none !important; }
  .app-main { padding: 0 !important; }
  .tool-grid { display: block; }
  .wrap { padding: 0; max-width: none; }
  .sheet { border: 0; box-shadow: none; padding: 0; position: static; }
  body { background: #fff; }
  a[href]::after { content: ""; }
}

/* ---------- the four Full Close sections ---------- */
.cal-anchor { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 26px; }
.cal-empty { color: var(--ink-3); font-size: .93rem; padding: 18px 0; }

.cal-rows { border-top: 1px solid var(--line); }
.cal-row {
  display: grid; grid-template-columns: 1fr 200px 84px; gap: 18px; align-items: center;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.cal-label strong { display: block; font-size: .97rem; }
.cal-name { width: 100%; font: inherit; font-size: .95rem; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.cal-src { display: block; font-size: .82rem; color: var(--ink-3); margin-top: 3px; }
.cal-date input { width: 100%; font: inherit; font-size: .92rem; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.cal-flag { display: block; font-size: .78rem; color: var(--flag); margin-top: 5px; }
.cal-act { display: flex; gap: 10px; justify-content: flex-end; }
.linkbtn { background: none; border: 0; font: inherit; font-size: .84rem; color: var(--accent-2); cursor: pointer; padding: 4px 2px; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.is-drop { color: var(--flag); }

/* checker */
.check-ok, .check-none { font-size: .95rem; color: var(--ink-2); background: var(--accent-pale);
  border: 1px solid rgba(14,122,77,.25); border-radius: 10px; padding: 16px 18px; margin: 0; }
.check-none { background: var(--paper-2); border-color: var(--line); color: var(--ink-3); }
.check-count { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--flag); font-weight: 650; margin: 0 0 12px; }
.check-item {
  font-size: .95rem; line-height: 1.55; margin: 0 0 10px; color: var(--ink);
  background: var(--flag-pale); border-left: 3px solid var(--flag);
  border-radius: 0 9px 9px 0; padding: 14px 16px;
}

/* documents */
.docs { border-top: 1px solid var(--line); }
.doc-row { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--line); }
.doc-name { font-size: .95rem; }
input.doc-name { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.doc-status { display: flex; gap: 16px; }
.doc-status .switch { font-size: .88rem; }

/* disclosures */
.disc-group { margin-top: 26px; }
.disc-group h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.disc-item { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; padding: 11px 0; cursor: pointer; }
.disc-item input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--accent); }
.disc-item strong { display: block; font-size: .95rem; font-weight: 600; }
.disc-item em { display: block; font-style: normal; font-size: .9rem; color: var(--ink-2); margin-top: 4px; line-height: 1.55; }
.disc-pending { background: var(--paper-2); border: 1px dashed var(--line); border-radius: 10px;
  padding: 18px 20px; margin-top: 26px; font-size: .9rem; color: var(--ink-2); line-height: 1.6; }
.disc-missing { margin-top: 26px; background: var(--flag-pale); border-radius: 10px; padding: 18px 20px; }
.disc-missing h3 { border: 0; padding: 0; margin-bottom: 8px; color: var(--flag); }
.disc-missing p { margin: 0; font-size: .93rem; }

@media (max-width: 760px) {
  .cal-anchor, .cal-row, .doc-row { grid-template-columns: 1fr; gap: 10px; }
  .cal-act { justify-content: flex-start; }
}

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: #A79E90; padding: 56px 0 40px; font-size: .9rem; }
.ftr a { color: #C9C1B4; text-decoration: none; }
.ftr a:hover { color: #FFFDF8; }
.ftr-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid #2E2921; }
.ftr h4 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #FFFDF8; margin: 0 0 14px; font-weight: 650; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 9px; }
.ftr .brand-mark { background: var(--paper); color: var(--ink); }
.ftr .brand { color: #FFFDF8; margin-bottom: 14px; }
.disclaimer { padding-top: 26px; font-size: .82rem; line-height: 1.65; color: #8E8578; max-width: 78ch; }
.disclaimer p { margin: 0 0 11px; }
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer .copyright { color: #A79E90; }
.disclaimer a { color: #C9C1B4; text-decoration: underline; text-underline-offset: 2px; }
.disclaimer a:hover { color: #FFFDF8; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps, .g3, .tiers, .appgrid { grid-template-columns: 1fr 1fr; }
  .checkout { grid-template-columns: 1fr; gap: 36px; }
  .summary { position: static; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .burger { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 24px 18px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  /* Kept visible on mobile: it is the only header route back to a purchased
     kit now that the account menu is gone. Shortened so it fits beside the
     burger at 390px. */
  .hdr-act .applink { padding: 9px 12px; font-size: .84rem; }
  .hdr-in { gap: 12px; }
  .obj { grid-template-columns: 1fr; gap: 8px; }
  .steps, .g2, .g3, .tiers, .appgrid { grid-template-columns: 1fr; }
  .guarantee { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .ftr-top { grid-template-columns: 1fr; gap: 28px; }
  .savecard { padding: 24px; }
  .savecard .big { font-size: 2.5rem; }
}

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

/* ---------- legal / company pages ---------- */
.legal h2 { font-family: var(--serif); font-size: 1.3rem; margin: 40px 0 12px; }
.legal ul { margin: 0 0 1.3em; padding-left: 22px; }
.legal li { margin-bottom: .7em; }
.legal code { background: var(--paper-2); border-radius: 4px; padding: 1px 5px; font-size: .88em; }
.legal-updated { font-size: .88rem; color: var(--ink-3); margin: -6px 0 30px; }
.legal-cta {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 1.2em;
}
.legal-cta a { color: var(--accent-2); text-underline-offset: 4px; }
.legal-sig {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 20px 22px; font-size: .93rem; line-height: 1.8; margin: 28px 0 0;
}
.legal-foot {
  margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: .84rem; line-height: 1.65; color: var(--ink-3);
}
.legal-see { font-size: .9rem; color: var(--ink-3); margin: 14px 0 0; }

/* ---------- state disclosures (The Full Close) ---------------------- */

.disc-sec { margin: 30px 0 0; }
.disc-sec:first-of-type { margin-top: 4px; }
.disc-sec h3 {
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.9vw, 1.3rem);
  margin: 0 0 10px;
}
.disc-sec p { margin: 0 0 10px; }

/* The citation is the load-bearing part of this section: a sourced claim
   reads as fact, an unsourced one reads as our opinion. Quiet, but present. */
.disc-cite {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  color: var(--ink-3);
}
.disc-src { min-width: 0; }
/* Long statute URLs must wrap rather than push the page sideways on mobile. */
.disc-src a { color: var(--ink-3); text-decoration: underline; overflow-wrap: anywhere; }
.disc-src a:hover { color: var(--accent); }
.disc-ver { white-space: nowrap; }

#disclosures[aria-busy="true"] { opacity: .55; }

/* ---------- persistent product nav ---------------------------------- */

/* Height is reserved here so nav.js filling this in does not shift the page. */
.appnav {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 56px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.appnav-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.appnav-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: 0 0 auto; }
.appnav-brand .brand-name { font-weight: 600; }

/* Scrolls sideways on narrow screens instead of forcing the page to. */
.appnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.appnav-links::-webkit-scrollbar { display: none; }
.appnav-links a {
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: var(--r);
  font-size: .93rem;
  color: var(--ink-2);
  text-decoration: none;
}
.appnav-links a:hover { background: var(--accent-pale); color: var(--ink); }
.appnav-links a[aria-current="page"] { background: var(--accent-pale); color: var(--ink); font-weight: 600; }

/* Locked items stay visible and clickable — the server decides, not the menu.
   Someone who bought The Process should still know the rest exists. */
.appnav-links a.is-locked { opacity: .45; }
.appnav-links a.is-locked::after { content: " \00b7 locked"; font-size: .8em; }

.appnav-out { flex: 0 0 auto; font-size: .9rem; color: var(--ink-3); text-decoration: none; }
.appnav-out:hover { color: var(--ink); }

@media (max-width: 640px) {
  .appnav-in { gap: 12px; padding: 0 14px; }
  .appnav-brand .brand-name { display: none; }
}

/* =====================================================================
   how-it-works.html + is-it-for-me.html
   Namespaced hiw-/fitq- so nothing here can reach the app pages.
   ===================================================================== */

.hiw-hero{padding:64px 0 44px}
.hiw-hero h1{font-family:var(--serif);font-size:clamp(2rem,4.4vw,3.1rem);line-height:1.08;
  letter-spacing:-.02em;margin:.3em 0 .5em;max-width:26ch}
.hiw-hero .lede{max-width:64ch}

.hiw-list{margin:0 0 14px;padding:0 0 0 20px}
.hiw-list li{margin-bottom:8px}

.hiw-card-flag{border-color:var(--flag);background:var(--flag-pale)}

.hiw-note{margin-top:28px;padding:16px 20px;border-left:3px solid var(--accent);
  background:var(--accent-pale);border-radius:0 var(--r) var(--r) 0;max-width:78ch}

/* ---------- phases ---------- */

.hiw-phases{display:grid;gap:18px;margin-top:8px}
.hiw-phase{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);
  padding:24px clamp(18px,3vw,30px)}
.hiw-phase-hot{border-color:var(--flag);box-shadow:0 0 0 3px var(--flag-pale)}
.hiw-phase-head{display:flex;gap:16px;align-items:baseline;margin-bottom:12px}
.hiw-phase-n{font-family:var(--serif);font-size:1.5rem;color:var(--accent);
  font-variant-numeric:tabular-nums;flex:0 0 auto}
.hiw-phase h3{margin:0;font-size:clamp(1.2rem,2.2vw,1.5rem)}
.hiw-when{margin:2px 0 0;font-size:.85rem;color:var(--ink-3)}
.hiw-phase p{max-width:74ch}
.hiw-warn{font-weight:600;color:var(--flag)}

.hiw-does{display:grid;gap:16px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
@media (min-width:760px){ .hiw-does{grid-template-columns:1fr 1fr;gap:28px} }
.hiw-does h4{margin:0 0 4px;font-size:.78rem;letter-spacing:.09em;text-transform:uppercase;
  color:var(--ink-3)}
.hiw-does p{margin:0;font-size:.95rem}

/* ---------- comparison table ---------- */

.hiw-table{width:100%;border-collapse:collapse;font-size:.95rem;min-width:560px}
.hiw-table th,.hiw-table td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--line);
  vertical-align:top}
.hiw-table th{font-size:.76rem;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);
  border-bottom-width:2px}
.hiw-table td:last-child{white-space:nowrap;color:var(--ink-2)}

.hiw-limits{display:grid;gap:22px}
@media (min-width:760px){ .hiw-limits{grid-template-columns:repeat(3,1fr)} }
.hiw-limits h3{font-size:1.05rem;margin:0 0 6px}
.hiw-limits p{margin:0;font-size:.95rem}

/* ---------- the check ---------- */

.fitq{margin-top:8px}
.fitq-list{list-style:none;counter-reset:fq;margin:0;padding:0;display:grid;gap:14px}
.fitq-item{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);
  padding:20px clamp(16px,2.6vw,26px);counter-increment:fq}
.fitq-item.is-missing{border-color:var(--flag);background:var(--flag-pale)}
.fitq-item fieldset{border:0;margin:0;padding:0}
.fitq-q{font-weight:600;font-size:1.02rem;padding:0;margin:0 0 12px;display:block}
.fitq-q::before{content:counter(fq) ". ";color:var(--accent);font-variant-numeric:tabular-nums}

.fitq-opts{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.fitq-opt{display:flex;gap:10px;align-items:flex-start;padding:9px 12px;border:1px solid var(--line);
  border-radius:8px;cursor:pointer;background:var(--paper);font-size:.95rem;line-height:1.45}
.fitq-opt:hover{border-color:var(--accent);background:var(--accent-pale)}
.fitq-opt input{margin:3px 0 0;flex:0 0 auto;accent-color:var(--accent)}
.fitq-opt:has(input:checked){border-color:var(--accent);background:var(--accent-pale);font-weight:500}
.fitq-opt:focus-within{outline:2px solid var(--accent);outline-offset:2px}

.fitq-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:22px}
.fitq-progress{margin:0;font-size:.88rem;color:var(--ink-3)}

.fitq-result{margin-top:26px;background:var(--paper);border:1px solid var(--line);
  border-radius:var(--r);padding:26px clamp(18px,3vw,32px);scroll-margin-top:20px}
.fitq-result[hidden]{display:none}
.fitq-result h3{margin:10px 0 10px;font-size:clamp(1.25rem,2.4vw,1.6rem)}
.fitq-result p{max-width:70ch}
.fitq-sub{margin:22px 0 8px;font-size:.78rem;letter-spacing:.09em;text-transform:uppercase;
  color:var(--ink-3)}

.fitq-badge{display:inline-block;font-size:.74rem;letter-spacing:.09em;text-transform:uppercase;
  font-weight:700;padding:5px 11px;border-radius:999px}
.fitq-badge.is-yes{background:var(--accent-pale);color:var(--accent-2)}
.fitq-badge.is-maybe{background:var(--paper-3);color:var(--ink-2)}
.fitq-badge.is-no{background:var(--flag-pale);color:var(--flag)}

/* ---------- situation cards ---------- */

.fitq-cases{display:grid;gap:16px}
@media (min-width:720px){ .fitq-cases{grid-template-columns:1fr 1fr} }
@media (min-width:1080px){ .fitq-cases{grid-template-columns:repeat(3,1fr)} }
.fitq-case{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:20px 22px}
.fitq-case h3{margin:8px 0 8px;font-size:1.08rem}
.fitq-case p{margin:0;font-size:.95rem}
.fitq-verdict{display:inline-block;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;
  font-weight:700;padding:4px 10px;border-radius:999px}
.fitq-case.is-good{border-left:3px solid var(--accent)}
.fitq-case.is-good .fitq-verdict{background:var(--accent-pale);color:var(--accent-2)}
.fitq-case.is-ok .fitq-verdict{background:var(--paper-3);color:var(--ink-2)}
.fitq-case.is-bad{border-left:3px solid var(--flag)}
.fitq-case.is-bad .fitq-verdict{background:var(--flag-pale);color:var(--flag)}

/* =========================================================
   iOS Safari
   ========================================================= */

/* ---------- the map request form ----------

   Sits above the footer on every prospect-facing page. Deliberately quiet:
   it is the last thing before the footer, not a competitor to the buy
   buttons, and on the pages that sell it must not read as a cheaper offer
   sitting next to the paid one. */
.lead { padding: 64px 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.lead-box { max-width: 620px; margin: 0 auto; text-align: center; }
.lead-h { font-size: 1.5rem; line-height: 1.25; margin: 0 0 12px; }
.lead-p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; margin: 0 0 24px; }

/* Input and button on one line above 560px, stacked below it. The button is
   full width when stacked because a half-width button under a full-width
   field reads as a secondary action. */
.lead-row { display: flex; gap: 10px; flex-wrap: wrap; }
.lead-input {
  flex: 1 1 240px; min-width: 0; font: inherit; font-size: 16px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--paper); color: var(--ink);
}
.lead-input:focus {
  outline: 2px solid rgba(14,122,77,.35); outline-offset: 1px; border-color: var(--accent);
}
.lead-btn { flex: 0 0 auto; }
@media (max-width: 559px) { .lead-btn { flex: 1 1 100%; } }

.lead-msg {
  margin: 12px 0 0; font-size: .87rem; line-height: 1.5; text-align: left;
  border-radius: 9px; padding: 11px 13px; border: 1px solid;
}
.lead-msg.is-error { background: var(--flag-pale); border-color: rgba(180,68,31,.3); color: #8E3417; }

.lead-fine { font-size: .8rem; color: var(--ink-3); margin: 14px 0 0; line-height: 1.5; }

/* Visually hidden but read aloud. The field is explained by the heading and
   the placeholder, so a visible label would be a third repetition — but the
   input still needs a name for a screen reader. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* THE 16px THRESHOLD. iOS zooms the page in when a control is focused whose
   text is smaller than 16px, and it does not zoom back out afterwards. Every
   control on this site is set in rem below 1 — the offer builder's fields, the
   comps worksheet, the state pickers — so on a phone every single field tap
   shoved the layout sideways and left it there.

   16px exactly is the threshold, not a preference: 15.9px still triggers it.
   Scoped to small screens so the desktop type scale is untouched.

   !important is load-bearing here and not laziness. Every control that actually
   sets a size does it from a class — .cal-name, .field input, .cal-date input —
   so a bare `input` selector loses the cascade to all of them and this rule
   would silently do nothing. It is a floor, not a preference: no component rule
   should be able to reintroduce the zoom, including ones written later. */
@media (max-width: 760px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}
