/* Quiet Quotes: calm, high-contrast, no third-party fonts (nothing loads from outside our domain). */

:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #eef3ef;
  --ink: #15202a;
  --muted: #56626c;
  --line: #e0dbcf;
  --accent: #2c6b59;
  --accent-strong: #22574a;
  --accent-ink: #ffffff;
  --accent-soft: #dcebe4;
  --warn: #8a4b12;
  --error: #a3261f;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(21 32 42 / 6%), 0 8px 28px rgb(21 32 42 / 7%);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1416;
    --surface: #151d20;
    --surface-2: #18231f;
    --ink: #e7ece9;
    --muted: #9ba8a2;
    --line: #26322f;
    --accent: #74c2a8;
    --accent-strong: #8fd3bb;
    --accent-ink: #0d1513;
    --accent-soft: #1d3029;
    --warn: #e0a463;
    --error: #ff8a80;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 28px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100% - 32px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.mark-bg {
  fill: var(--accent);
}

.mark-fg {
  fill: var(--accent-ink);
}

.mark-line {
  stroke: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.nav .button {
  color: var(--accent-ink);
}

@media (max-width: 680px) {
  .nav .hide-sm {
    display: none;
  }
}

/* Buttons and forms */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  padding: 10px 18px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.button:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
}

.button:active {
  transform: translateY(1px);
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.button-lg {
  padding: 14px 22px;
  font-size: 1rem;
  width: 100%;
}

.button-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
}

.button-ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.field {
  margin-bottom: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 12px;
}

@media (max-width: 420px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

input[type="email"],
input[type="text"],
input[type="tel"] {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hint {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 6px;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}

legend {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  padding: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  margin: 0;
  font-weight: 500;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
  background: var(--bg);
}

.chip input:checked + span {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.chip input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-size: 0.95rem;
}

.form-status.is-error {
  color: var(--error);
}

.form-status.is-ok {
  color: var(--accent-strong);
  font-weight: 600;
}

.fine {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 12px 0 0;
}

/* Hero */

.hero {
  padding: clamp(40px, 8vw, 88px) 0 clamp(40px, 6vw, 72px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.lede {
  font-size: clamp(1.08rem, 2.2vw, 1.25rem);
  color: var(--muted);
  max-width: 34em;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}

.hero-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hero-points svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--accent);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 30px);
}

.card h2 {
  font-size: 1.5rem;
}

/* Sections */

.section {
  padding: clamp(48px, 8vw, 88px) 0;
  border-top: 1px solid var(--line);
}

.section-tint {
  background: var(--surface-2);
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

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

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.tile p {
  color: var(--muted);
  margin: 0;
}

.tile-link {
  display: block;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tile-link:hover {
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.tile-link h3 {
  color: var(--accent-strong);
}

.tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 14px;
}

.tile-icon svg {
  width: 22px;
  height: 22px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.steps li {
  counter-increment: step;
  position: relative;
  padding: 22px 22px 22px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  margin-bottom: 14px;
}

.steps p {
  color: var(--muted);
  margin: 0;
}

/* Phone vault demo */

.vault-demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.vault-demo .lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--accent-strong);
}

.vault-demo .lock svg {
  width: 16px;
  height: 16px;
}

.log {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0;
  overflow-x: auto;
  white-space: pre;
  color: var(--muted);
}

.guarantee {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 28px 0;
}

/* FAQ */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  color: var(--muted);
  margin: 10px 0 0;
}

/* Prose pages (privacy, terms) */

.prose {
  padding: clamp(36px, 6vw, 64px) 0 72px;
}

.prose h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.prose h2 {
  font-size: 1.45rem;
  margin-top: 1.8em;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose .meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
}

.callout.facts {
  background: var(--accent-soft);
  border-color: transparent;
}

.callout.facts h2 {
  font-size: 1.2rem;
}

.callout.facts ul {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 650;
  background: var(--surface-2);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 640px) {
  td:first-child {
    white-space: normal;
    min-width: 7.5em;
  }

  th,
  td {
    padding: 9px 10px;
  }
}

.sources {
  font-size: 0.92rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

.trust-box {
  font-size: 0.93rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 0 24px;
  background: var(--surface);
}

.trust-box strong {
  color: var(--ink);
}

/* "Read the fine print" comparison */

.compare-table td:first-child {
  white-space: normal;
}

.compare-table td.yes {
  color: var(--accent-strong);
  font-weight: 650;
}

.compare-table td.no {
  color: var(--muted);
}

.compare-table th:not(:first-child),
.compare-table td:not(:first-child) {
  text-align: center;
}

.prose .eyebrow {
  margin-bottom: 12px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
}

.disclosure {
  max-width: 820px;
  font-size: 0.85rem;
  margin: 0;
}

.center {
  text-align: center;
}

.section-cta {
  margin: 32px 0 0;
}

.mt-0 {
  margin-top: 0;
}

.tile-title {
  font-size: 1.2rem;
  margin-top: 0;
}

.mark-slash {
  stroke: var(--accent-ink);
}

.agree {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.agree strong {
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.metro-pop {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
}

.city-list li {
  margin-bottom: 8px;
}

.city-list .fine {
  display: block;
  margin: 2px 0 0;
}

th[scope="row"] {
  width: 40%;
  background: var(--surface-2);
}

/* Coverage quiz */
.quiz fieldset {
  margin: 0 0 1.25rem;
}

.quiz legend {
  margin-bottom: 0.5rem;
}

.quiz-results {
  margin-top: 1.5rem;
}

.quiz-results h2:focus {
  outline: none;
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
}

.checklist li p {
  margin: 0.35rem 0 0;
}

.checklist .level-law,
.checklist .level-lender {
  border-left-color: var(--accent);
}

.checklist .level-consider {
  border-left-color: var(--warn);
}

.level-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
}
