/* SteadyPath — shared styles. Built for people with tremor: big targets, big text, high contrast. */
@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --teal: #0F5257;
  --teal-dark: #0A3A3E;
  --coral: #B4462E;
  --coral-dark: #96391F;
  --sage: #A7C4B5;
  --mint: #E9F1EC;
  --cream: #FAF7F2;
  --ink: #1F2A2C;
  --ink-2: #3D4A4C;
  --muted: #5A6668;
  --line: #E6E0D6;
  --white: #FFFFFF;
  --radius: 14px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img, svg { max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 4px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { color: var(--teal); line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(38px, 6vw, 60px); letter-spacing: -1px; }
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: 24px; }
p { margin: 0 0 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.lead { font-size: 22px; color: var(--ink-2); max-width: 720px; }
.eyebrow { font-size: 16px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.muted { color: var(--muted); }
.small { font-size: 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 12px 16px; z-index: 10; }

/* Buttons: never smaller than 52px tall */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: 20px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); color: var(--white); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: var(--white); }
.btn-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-light:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal); font-size: 26px; font-weight: 700; }
.brand svg { width: 64px; height: 28px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px; text-decoration: none; font-size: 18px; }
.nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.header-actions .btn { min-height: 52px; font-size: 18px; padding: 0 18px; }

/* Hero */
.hero { background: var(--teal); color: var(--white); }
.hero h1 { color: var(--white); }
.hero .lead { color: #E8F1EC; }
.hero .eyebrow { color: #CFE3D8; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 80px 0 88px; }
.hero-copy { flex: 999 1 520px; min-width: 0; }
.hero-card { flex: 1 1 340px; background: var(--cream); color: var(--ink); border-radius: 20px; padding: 30px; }
.hero-card h2 { font-size: 26px; }

.page-hero { background: var(--teal); color: var(--white); padding: 64px 0; }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: #E8F1EC; }

.note { background: var(--mint); }
.note-inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 32px 20px; }
.note p { margin: 0; flex: 1 1 560px; font-size: 21px; color: var(--teal); }

/* Cards and grids */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-2); }
.card .meta { margin-top: auto; font-size: 16px; color: var(--muted); }
a.card { text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--teal); }
.step-num { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--teal); color: var(--white); font-weight: 700; font-size: 20px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 48px); }
.mint-panel { background: var(--mint); border-radius: 24px; padding: clamp(24px, 4vw, 48px); }

.choice { display: block; width: 100%; min-height: 60px; padding: 12px 20px; text-align: left; font: inherit; font-weight: 700; color: var(--teal); background: var(--white); border: 2px solid var(--sage); border-radius: 12px; cursor: pointer; text-decoration: none; }
.choice:hover, .choice[aria-pressed="true"] { border-color: var(--teal); background: var(--mint); }
.choices { display: flex; flex-direction: column; gap: 12px; }

/* Forms */
label { font-weight: 700; display: block; margin-bottom: 8px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 60px; padding: 12px 18px; font: inherit; font-size: 20px;
  border: 2px solid #8A9A9C; border-radius: 12px; background: var(--white); color: var(--ink);
}
textarea { min-height: 160px; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.form-row > div { flex: 1 1 240px; }
.pill { min-height: 48px; padding: 0 18px; font: inherit; font-size: 17px; font-weight: 700; color: var(--teal); background: var(--white); border: 2px solid var(--sage); border-radius: 999px; cursor: pointer; }
.pill[aria-pressed="true"] { color: var(--white); background: var(--teal); border-color: var(--teal); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }

/* Evidence badges */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.ev-strong { background: #D6EAD9; color: #1E5A2B; }
.ev-some { background: #FBEBC8; color: #6B4A00; }
.ev-none { background: #EFE3DF; color: #7A2E1D; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--white); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--mint); color: var(--teal); }

/* Results */
.result { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.result h3 { font-size: 21px; margin: 0 0 4px; }
.results { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.status { padding: 16px 20px; border-radius: 12px; background: var(--mint); color: var(--teal); }

.sources { font-size: 16px; color: var(--muted); }
.sources li { margin-bottom: 6px; }

/* Footer */
.site-footer { background: var(--ink); color: #DCE3E2; margin-top: 72px; }
.site-footer a { color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding: 48px 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }

.call-strip { background: var(--white); border: 2px dashed var(--sage); border-radius: 16px; padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 32px; }

[hidden] { display: none !important; }

/* Header: brand and actions on the first row, menu on its own row below. */
.nav { order: 3; flex-basis: 100%; }
.hero-card .eyebrow { color: var(--muted); }

/* SteadyPath Helper (guided chat) */
.helper-launcher {
  position: fixed; z-index: 50;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 60px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--teal); color: var(--white); font: inherit; font-weight: 700; font-size: 19px;
  border: 3px solid var(--white);
  box-shadow: 0 6px 20px rgba(15, 82, 87, .35); cursor: pointer;
}
.helper-launcher:hover { background: var(--teal-dark); }
.helper-panel {
  position: fixed; z-index: 51;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100vw - 40px)); max-height: min(640px, calc(100vh - 130px));
  display: flex; flex-direction: column;
  background: var(--cream); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 16px 48px rgba(31, 42, 44, .25); overflow: hidden;
}
.helper-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; background: var(--teal); color: var(--white); font-size: 20px; }
.helper-close { width: 48px; height: 48px; border: 0; border-radius: 12px; background: transparent; color: var(--white); font-size: 32px; line-height: 1; cursor: pointer; }
.helper-close:hover { background: rgba(255,255,255,.15); }
.helper-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.helper-msg { padding: 12px 16px; border-radius: 16px; max-width: 92%; font-size: 18px; line-height: 1.5; }
.helper-bot { background: var(--white); border: 1px solid var(--line); align-self: flex-start; }
.helper-me { background: var(--teal); color: var(--white); align-self: flex-end; }
.helper-chips { display: flex; flex-direction: column; gap: 8px; }
.helper-chips .choice { min-height: 52px; font-size: 17px; }
.helper-form { display: flex; gap: 8px; padding: 12px 16px 4px; border-top: 1px solid var(--line); background: var(--white); }
.helper-form input { min-height: 52px; font-size: 18px; }
.helper-form .btn { min-height: 52px; padding: 0 18px; font-size: 18px; }
.helper-note { margin: 0; padding: 4px 16px 12px; font-size: 14px; color: var(--muted); background: var(--white); }
.helper-sr { position: absolute; left: -9999px; }
@media (max-width: 480px) {
  .helper-launcher span { display: none; }
  .helper-launcher { width: 60px; padding: 0; justify-content: center; }
}

/* Sponsored placements: always clearly labeled */
.sponsor-slot { margin-top: 56px; }
.sponsor-heading { font-size: 24px; color: var(--muted); }
.sponsor-card { border: 2px dashed var(--sage); }
.sponsor-card .btn { align-self: flex-start; margin-top: 8px; }
.sponsor-badge { align-self: flex-start; background: #EFE8DA; color: #5C4A1E; }

/* Plans and consent */
.plan { border-width: 2px; }
.plan-featured { border-color: var(--teal); }
.price { font-size: 40px; font-weight: 700; color: var(--teal); line-height: 1; margin: 6px 0 4px; }
.check { display: flex; gap: 14px; align-items: flex-start; font-weight: 400; margin: 0; }
.check input { width: 28px; height: 28px; flex: none; margin-top: 2px; accent-color: var(--teal); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
