/* InsurWatch public pages: the plain-spoken editorial direction (web.spec.md, Visual Design). */

:root {
  --paper: #f7f7f4;
  --ink: #0d0d0d;
  --muted: #4a4a45;
  --card: #ffffff;
  --inv-bg: #0d0d0d;
  --inv-ink: #f7f7f4;
  --inv-muted: #bdbdb6;
  --inv-line: #3a3a36;
  --lime: #d4ff3a;
  --on-lime: #0d0d0d;
  --shadow: #0d0d0d;
  --hover-bg: #0d0d0d;
  --hover-ink: #f7f7f4;
  --hover-num: #d4ff3a;
  /* Side padding; it widens past 1536px screens so content stays within 1440px while bands stay full width. */
  --gutter: max(clamp(16px, 4vw, 48px), calc((100vw - 1440px) / 2));
  --display: 900 1em/0.92 Archivo, system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0e0e0d;
    --ink: #f2f2ec;
    --muted: #b4b4ac;
    --card: #171716;
    --inv-bg: #1d1d1b;
    --inv-ink: #f2f2ec;
    --inv-muted: #b4b4ac;
    --shadow: #d4ff3a;
    --hover-bg: #d4ff3a;
    --hover-ink: #0d0d0d;
    --hover-num: #0d0d0d;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --paper: #0e0e0d;
  --ink: #f2f2ec;
  --muted: #b4b4ac;
  --card: #171716;
  --inv-bg: #1d1d1b;
  --inv-ink: #f2f2ec;
  --inv-muted: #b4b4ac;
  --shadow: #d4ff3a;
  --hover-bg: #d4ff3a;
  --hover-ink: #0d0d0d;
  --hover-num: #0d0d0d;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, system-ui, sans-serif;
  overflow-x: hidden;
  transition:
    background 300ms ease,
    color 300ms ease;
}

a {
  color: inherit;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.display {
  margin: 0;
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.d-xl {
  font-size: clamp(64px, 12vw, 184px);
  line-height: 0.9;
}
.d-l {
  font-size: clamp(44px, 6vw, 96px);
}
.d-m {
  font-size: clamp(36px, 4vw, 64px);
}
.title {
  font-weight: 800;
  font-stretch: 85%;
}
.lede {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}
.muted {
  color: var(--muted);
}
p {
  line-height: 1.55;
}

/* Layout */
.wrap {
  padding-inline: var(--gutter);
}
.section {
  padding: clamp(80px, 11vw, 168px) var(--gutter) 0;
}
.section.last {
  padding-bottom: clamp(80px, 11vw, 168px);
}
.hero {
  padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.inverse {
  background: var(--inv-bg);
  color: var(--inv-ink);
}
.inverse .muted {
  color: var(--inv-muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.grid > .span {
  grid-column: 1 / -1;
}
.row-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}
.grow {
  flex: 1 1 420px;
  min-width: 0;
}

/* Header and footer */
.site-header {
  padding: 20px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  text-decoration: none;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logo::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 3px;
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}
.site-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-nav .app-link {
  font-weight: 700;
}
/* Phones: logo and actions on one row, the links on a row of their own. */
@media (max-width: 719px) {
  .site-header {
    gap: 12px 8px;
  }
  .site-actions {
    gap: 8px;
  }
  /* Keeps the waitlist button on the logo's row at 375px. */
  .site-actions .pill.small {
    padding: 0 12px;
    font-size: 14px;
  }
  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 14px;
  }
}
@media (max-width: 359px) {
  .logo {
    font-size: 18px;
  }
}
.site-nav a {
  text-decoration: none;
}
.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  font-weight: 700;
}
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.theme-toggle .sun {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .sun {
  display: block;
}
:root[data-theme='dark'] .theme-toggle .moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .sun {
    display: block;
  }
  :root:not([data-theme='light']) .theme-toggle .moon {
    display: none;
  }
}
.site-footer {
  background: var(--inv-bg);
  color: var(--inv-ink);
  padding: 48px var(--gutter) 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: clamp(56px, 8vw, 120px);
}
.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.wordmark {
  font-size: clamp(48px, 18.5vw, 280px);
  line-height: 0.8;
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.wordmark span {
  color: var(--lime);
}

/* Controls */
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform 200ms ease;
}
.pill:hover {
  transform: translateY(-4px);
}
.pill.lime {
  background: var(--lime);
  color: var(--on-lime);
}
.pill.ink {
  background: var(--ink);
  color: var(--paper);
}
.pill.small {
  min-height: 48px;
  padding: 0 18px;
  font-size: 15px;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip[aria-pressed='true'],
.chip[aria-selected='true'] {
  background: var(--lime);
  color: var(--on-lime);
}

/* Blocks */
.card {
  border: 2px solid var(--ink);
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 200ms ease;
}
.card:hover {
  transform: translateY(-4px);
}
.card.lime {
  background: var(--lime);
  color: var(--on-lime);
  border-color: var(--ink);
}
.card.inverse {
  background: var(--inv-bg);
  color: var(--inv-ink);
}
.card .title {
  font-size: 26px;
  line-height: 1.15;
}
.panel {
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: var(--card);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 8px 8px 0 var(--shadow);
}
.rows {
  border-top: 2px solid var(--ink);
  margin: 0;
  padding: 0;
  list-style: none;
}
.inverse .rows {
  border-color: var(--inv-line);
}
.rows > li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  align-items: baseline;
  padding: 24px 12px;
  border-bottom: 2px solid var(--ink);
  transition:
    background 200ms ease,
    color 200ms ease;
}
.inverse .rows > li {
  border-bottom: 1px solid var(--inv-line);
  padding-inline: 0;
}
.rows:not(.static) > li:hover {
  background: var(--hover-bg);
  color: var(--hover-ink);
}
.rows:not(.static) > li:hover .num {
  color: var(--hover-num);
}
.rows .num {
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 900;
  font-stretch: 62%;
  min-width: 1.6em;
}
.inverse .rows .num {
  color: var(--lime);
}
.rows .head {
  flex: 1 1 280px;
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 800;
  font-stretch: 85%;
}
.rows .body {
  flex: 1 1 320px;
  font-size: 18px;
  line-height: 1.5;
}

/* Accordions: <details> keeps full content readable without JavaScript. */
.accordion {
  border-top: 2px solid var(--ink);
}
.accordion details {
  border-bottom: 2px solid var(--ink);
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  font-stretch: 85%;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary::after {
  content: '+';
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 400;
}
.accordion details[open] summary::after {
  content: '−';
  background: var(--lime);
  color: var(--on-lime);
}
.accordion details p {
  margin: 0;
  padding: 0 4px 24px;
  max-width: 62ch;
  font-size: 19px;
}

.ticker {
  background: var(--inv-bg);
  color: var(--inv-ink);
  overflow: hidden;
  border-block: 2px solid var(--ink);
}
.ticker div {
  display: flex;
  width: max-content;
  padding: 16px 0;
  font-size: 22px;
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  white-space: nowrap;
  animation: iwmarquee 32s linear infinite;
}
.ticker span {
  padding: 0 28px;
}
.ticker i {
  color: var(--lime);
  font-style: normal;
}
@keyframes iwmarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* Home: quick start */
.start {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  align-items: end;
}
.start label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.start input,
.start select {
  min-height: 64px;
  padding: 0 18px;
  border-radius: 18px;
  border: 2px solid var(--inv-ink);
  background: transparent;
  color: var(--inv-ink);
  font: inherit;
  font-size: 24px;
  font-weight: 700;
}
.start select option {
  color: #0d0d0d;
}
.start button {
  grid-column: 1 / -1;
  justify-content: center;
  font-size: 18px;
}
/* Waitlist: the email gets the room, and the challenge takes its own row only when shown. */
.start[data-waitlist] {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.start[data-waitlist] input {
  min-width: 0;
  font-size: 20px;
}
.start[data-waitlist] .turnstile,
.start[data-waitlist] [data-waitlist-status] {
  grid-column: 1 / -1;
}
.start[data-waitlist] .turnstile[hidden],
.start[data-waitlist] [data-waitlist-status]:empty {
  display: none;
}
@media (max-width: 560px) {
  .start[data-waitlist] {
    grid-template-columns: minmax(0, 1fr);
  }
}
.bubble {
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: var(--card);
  color: var(--ink);
  padding: 24px;
}
.bubble.ask {
  background: var(--lime);
  color: var(--on-lime);
  border-radius: 22px 22px 6px 22px;
  font-weight: 600;
  align-self: flex-end;
}
.prompt-list button {
  display: block;
  width: 100%;
  min-height: 64px;
  padding: 14px 12px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  font-stretch: 85%;
  cursor: pointer;
}

/* Coverage */
.zip {
  width: 100%;
  max-width: 420px;
  min-height: 88px;
  padding: 0 24px;
  border-radius: 22px;
  border: 2px solid var(--inv-ink);
  background: transparent;
  color: var(--inv-ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 44px;
  letter-spacing: 0.08em;
}
.states {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
}
.states li {
  height: 64px;
  border-radius: 14px;
  border: 2px dashed var(--muted);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
}
.states li.live {
  background: var(--lime);
  color: var(--on-lime);
  border: 2px solid var(--ink);
}
.table {
  overflow-x: auto;
}
.table table {
  min-width: 640px;
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
}
.table th {
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 12px;
  border-bottom: 1px solid var(--ink);
}
.table td {
  padding: 20px 12px;
  border-bottom: 2px solid var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.search {
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
}

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

/* Home: one page, phone first (web.spec.md, Public pages) */
.home-hero {
  gap: 20px;
}
.home-hero .lede {
  border-top-color: var(--inv-ink);
  max-width: 40ch;
}
.home-hero .start {
  max-width: 720px;
}
.fine {
  margin: 0;
  font-size: 14px;
}
.section .fine {
  margin-top: 20px;
}
.answers {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.answers li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 20px 0;
  border-top: 2px solid var(--ink);
  font-size: 18px;
  line-height: 1.45;
}
@media (min-width: 720px) {
  .answers li {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: baseline;
    gap: 32px;
  }
}
.pledge {
  padding: clamp(28px, 5vw, 64px);
  gap: 24px;
}
.pledge ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 12px;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  line-height: 1.4;
}

/* Privacy, terms and security: a plain document in a readable column. */
.doc {
  /* The 72 characters are the text's; the gutters sit outside them. */
  box-sizing: content-box;
  max-width: 72ch;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(56px, 8vw, 120px);
  font-size: 17px;
  line-height: 1.6;
}
.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
}
.doc h3 {
  margin: 32px 0 8px;
  font-size: 20px;
}
.doc ul {
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}
.answers .title {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
}
/* Home page sections (web.spec.md, Public page copy). */
.trio {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 0 32px;
}
@media (min-width: 720px) {
  .trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.trio li {
  border-top: 2px solid var(--ink);
  padding: 20px 0;
  display: grid;
  gap: 10px;
  align-content: start;
}
.trio .head {
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
}
.trio p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}
.split {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}
.split .lede {
  margin: 20px 0 0;
}
.panel p {
  margin: 16px 0 0;
}
.panel .pills {
  margin-top: 16px;
}
.figures {
  margin: 16px 0 0;
}
.figures div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 2px solid var(--ink);
  font-size: 17px;
}
.figures dd {
  margin: 0;
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 28px);
  white-space: nowrap;
}
.figures .gap {
  margin-top: 12px;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: var(--lime);
  color: var(--on-lime);
}
.closing {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 24px;
}
.closing h2 {
  max-width: 18ch;
}
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 56px;
  }
}
.hero-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.home-hero h1 {
  font-size: clamp(40px, 5vw, 76px);
}
/* The comparison sits on the dark hero as a light card. */
.home-hero .panel {
  color: var(--ink);
  border-color: var(--inv-ink);
  box-shadow: 8px 8px 0 var(--lime);
}
.home-hero .panel .muted {
  color: var(--muted);
}
.panel .title {
  margin: 8px 0 0;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
}
.closing .fine {
  margin: 0;
}
.more {
  margin: 20px 0 0;
  font-size: 19px;
  font-weight: 700;
}
.intro {
  margin: 24px 0 48px;
}
/* Two parts on one line, or stacked on phones so neither part breaks. */
.eyebrow span + span::before {
  content: ' · ';
}
@media (max-width: 719px) {
  .eyebrow span {
    display: block;
  }
  .eyebrow span + span::before {
    content: none;
  }
}
/* Phones: the comparison continues the dark hero below a rule instead of a white card. */
@media (max-width: 959px) {
  .home-hero .panel {
    --ink: var(--inv-ink);
    --muted: var(--inv-muted);
    background: transparent;
    border: 0;
    border-top: 2px solid var(--inv-line);
    border-radius: 0;
    box-shadow: none;
    padding: 40px 0 0;
  }
}
