/* My Eyes Phone: hand-written, no build step. All text pairs meet WCAG AAA (7:1) contrast. */

:root {
  --bg: #fdf8ee;
  --card: #ffffff;
  --tint: #fff3dc;
  --ink: #15202e;
  --muted: #3a4452;
  --accent: #7a3d00;
  --link: #0b4f5c;
  --navy: #14213d;
  --on-navy: #fdf8ee;
  --gold: #c98a2b;       /* decorative only, never text on light */
  --gold-text: #f2c27a;  /* text on navy */
  --line: #d9cfbd;
  --focus: #0b4f5c;
  --radius: 1.1rem;
  --measure: 40rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10151f;
    --card: #1a2332;
    --tint: #1f2a3c;
    --ink: #f4efe4;
    --muted: #c9ced8;
    --accent: #f2c27a;
    --link: #8fd3df;
    --navy: #0a0f18;
    --on-navy: #f4efe4;
    --line: #34405a;
    --focus: #8fd3df;
  }
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1875rem;   /* 19px */
  line-height: 1.6;
}

@media (min-width: 48rem) {
  body { font-size: 1.25rem; } /* 20px */
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3em; font-weight: 750; }
p, li { text-wrap: pretty; }
p { margin: 0 0 1em; }

a { color: var(--link); text-decoration-thickness: 0.09em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.16em; }

main:focus { outline: none; }

:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
  border-radius: 0.3rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem; top: -10rem;
  z-index: 10;
  background: var(--navy);
  color: var(--on-navy);
  padding: 0.8rem 1.2rem;
  border-radius: 0.6rem;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.brand svg { width: 2.6rem; height: 2.6rem; flex: none; }
.brand .eyes { color: var(--accent); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  min-height: 2.75rem;
  line-height: 1.85rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.6rem;
}
.site-nav a:hover { background: var(--tint); text-decoration: underline; }

@media (max-width: 47.99rem) {
  .site-nav { width: 100%; }
  .site-nav ul { margin-inline: -0.7rem; }
}

/* ---------- Sections ---------- */

section { padding-block: clamp(3rem, 8vw, 5.5rem); }
section + section { border-top: 1px solid var(--line); }
section > .wrap > p,
.lead { max-width: var(--measure); }
.lead { font-size: 1.15em; color: var(--muted); }

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero .wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 60rem) {
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}
.status-pill::before {
  content: "";
  width: 0.65rem; height: 0.65rem;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1 { max-width: 20ch; }
.hero .lead { color: var(--ink); }
.hero .sub { color: var(--muted); max-width: var(--measure); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.75rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.7rem 1.4rem;
  border-radius: 0.8rem;
  border: 2px solid var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.button.primary { background: var(--navy); color: var(--on-navy); }
.button.secondary { background: transparent; color: var(--ink); }
.button:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) {
  .button { border-color: var(--ink); }
  .button.primary { background: var(--ink); color: var(--bg); }
}

/* Conversation figure */
.chat {
  margin: 0;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--navy);
  color: var(--on-navy);
  border-radius: calc(var(--radius) * 1.4);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.chat-head svg { width: 3.5rem; height: 3.5rem; flex: none; }
.chat-head p { margin: 0; font-weight: 700; line-height: 1.3; }
.chat-head p span { display: block; font-weight: 500; font-size: 0.9em; color: var(--gold-text); }

.chat ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.chat li {
  max-width: 88%;
  padding: 0.75rem 1rem;
  border-radius: 1.1rem;
  line-height: 1.45;
}
.chat .who {
  display: block;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.chat .me {
  justify-self: end;
  background: #fdf8ee;
  color: #15202e;
  border-bottom-right-radius: 0.3rem;
}
.chat .me .who { color: #7a3d00; }
.chat .it {
  justify-self: start;
  background: #24345a;
  color: #fdf8ee;
  border-bottom-left-radius: 0.3rem;
}
.chat .it .who { color: #f2c27a; }
.chat figcaption {
  margin-top: 1.25rem;
  font-size: 0.9em;
  color: #d8dce5;
}
@media (prefers-color-scheme: dark) {
  .chat { border: 1px solid var(--line); }
}

/* Gentle "listening" pulse on the hero mark. Off for reduced motion. */
.wave { opacity: 0.9; }
@media (prefers-reduced-motion: no-preference) {
  .wave { animation: listen 2.8s ease-in-out infinite; transform-origin: center; }
  .wave.w2 { animation-delay: 0.35s; }
}
@keyframes listen {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* ---------- How it works ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.steps li { counter-increment: step; position: relative; }
.steps .icon {
  display: grid;
  place-items: center;
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  background: var(--tint);
  color: var(--accent);
  margin-bottom: 1rem;
}
.steps .icon svg { width: 2rem; height: 2rem; }
.steps .step-n { color: var(--accent); }
.steps p { margin: 0; }
.steps p + p { margin-top: 0.75rem; }

.say {
  font-weight: 650;
  color: var(--ink);
}

.also { margin-top: 3rem; }
.also ul {
  margin: 0; padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem 2rem;
}
@media (min-width: 48rem) { .also ul { grid-template-columns: repeat(2, 1fr); } }
.also li {
  padding-left: 1.6rem;
  position: relative;
}
.also li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 0.65rem; height: 0.65rem;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Comparison table ---------- */

.table-wrap { margin-top: 2rem; }
table.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 1rem;
}
.compare caption {
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0 0 0.75rem;
}
.compare th, .compare td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  background: var(--tint);
  font-size: 0.95rem;
  line-height: 1.3;
}
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody th { font-weight: 700; }
.compare tbody th small { display: block; font-weight: 500; color: var(--muted); font-size: 0.9em; }
.compare .ours > * { background: var(--tint); }
.compare .ours th { color: var(--ink); }

.mark { display: inline-flex; align-items: baseline; gap: 0.35rem; white-space: nowrap; }
.mark::before {
  font-weight: 800;
  display: inline-block;
  width: 1.1rem;
}
.mark.yes::before { content: "\2713"; content: "\2713" / ""; color: var(--accent); }
.mark.no::before { content: "\2013"; content: "\2013" / ""; color: var(--muted); }
.mark.part::before { content: "~"; content: "~" / ""; color: var(--muted); }
.mark.no { color: var(--muted); }
.cell-label { display: none; }

/* On narrow screens each row becomes a card. Explicit ARIA roles in the markup
   keep the table semantics for screen readers when display changes. */
@media (max-width: 47.99rem) {
  table.compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  table.compare { background: none; border: 0; border-radius: 0; }
  .compare caption { display: block; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody tr {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 0.9rem;
    overflow: hidden;
  }
  .compare tbody th { font-size: 1.1rem; padding: 0.9rem 1rem 0.4rem; border: 0; }
  .compare td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border: 0;
    border-top: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .compare .ours > * { background: var(--tint); }
  .cell-label { display: inline; color: var(--muted); }
  .mark { white-space: normal; text-align: right; }
}

.firsts {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 48rem) { .firsts { grid-template-columns: repeat(2, 1fr); } }
.firsts h3 { margin-bottom: 0.4em; }
.firsts p { margin: 0; }

.honest {
  margin-top: 3rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-left: 0.45rem solid var(--gold);
  background: var(--tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 52rem;
}
.honest h3 { margin-bottom: 0.5em; }
.honest p:last-child { margin-bottom: 0; }

/* ---------- Safety ---------- */

.promises {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 48rem) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .promises { grid-template-columns: repeat(3, 1fr); } }
.promises h3 { font-size: 1.15em; margin-bottom: 0.4em; }
.promises p { margin: 0; }

.data {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 60rem) { .data { grid-template-columns: 1.25fr 1fr; align-items: start; } }

.data dl { margin: 0; }
.data dl div {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}
.data dl div:first-child { border-top: 0; padding-top: 0; }
.data dt { font-weight: 700; }
.data dd { margin: 0.2rem 0 0; color: var(--muted); }

.not {
  background: var(--navy);
  color: var(--on-navy);
}
.not h3 { color: var(--gold-text); }
.not ul { margin: 0; padding-left: 1.2rem; }
.not li + li { margin-top: 0.7rem; }
.not strong { color: var(--on-navy); }
@media (prefers-color-scheme: dark) { .not { border-color: var(--line); } }

.note { margin-top: 2rem; max-width: var(--measure); color: var(--muted); }

/* ---------- Status ---------- */

.timeline {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  max-width: 52rem;
}
.timeline li {
  position: relative;
  padding: 0 0 1.75rem 2.6rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0.45rem; top: 0.45rem;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  border: 3px solid var(--muted);
  background: var(--bg);
  z-index: 1;
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 0.95rem; top: 1.4rem; bottom: -0.3rem;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--accent); border-color: var(--accent); }
.timeline li.now::before { background: var(--gold); border-color: var(--accent); }
.timeline .when {
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.timeline h3 { font-size: 1.15em; margin: 0.1em 0 0.3em; }
.timeline p { margin: 0; color: var(--muted); }

.cost {
  margin-top: 1.5rem;
  max-width: 52rem;
}
.cost ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.cost li + li { margin-top: 0.4rem; }
.cost p:last-child { margin-bottom: 0; }

/* ---------- Get involved ---------- */

.involve .wrap { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .involve .wrap { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.involve ul { padding-left: 1.2rem; margin: 0; }
.involve li + li { margin-top: 0.75rem; }
.bar {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--accent);
  margin: 1.5rem 0 0;
  max-width: var(--measure);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--on-navy);
  padding-block: 2.5rem;
  font-size: 1rem;
}
.site-footer .wrap { display: grid; gap: 1rem; }
.site-footer .brand { color: var(--on-navy); }
.site-footer .brand .eyes { color: var(--gold-text); }
.site-footer p { margin: 0; color: #d8dce5; }
.site-footer a { color: var(--gold-text); }

/* ---------- Windows High Contrast / forced colours ---------- */

@media (forced-colors: active) {
  .card, .honest, .chat, .chat li, table.compare, .compare tbody tr, .status-pill, .button { border: 1px solid CanvasText; }
  .status-pill::before, .also li::before, .timeline li::before { forced-color-adjust: none; background: CanvasText; }
}

@media print {
  .site-nav, .actions, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .chat, .not, .site-footer { background: #fff; color: #000; border: 1px solid #000; }
}

h4 { font-size: 1.2em; font-weight: 750; line-height: 1.25; margin: 0 0 0.4em; }
.firsts-title { margin: 3rem 0 0; }
.firsts { margin-top: 1.25rem; }

.side .note { margin-top: 1.5rem; }
.status-grid { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 60rem) {
  .status-grid { grid-template-columns: 1.35fr 1fr; gap: 3rem; }
  .status-grid .cost { margin-top: 2.25rem; }
}
@media (max-width: 47.99rem) {
  .card { padding: 1.25rem; }
  .compare td { padding-block: 0.4rem; }
}

.choose { margin-top: 3rem; }
.choose > p { max-width: 52rem; }
.choose .note { margin-top: 1rem; }
.today { margin-top: 3rem; }
.today > p { max-width: 52rem; }
.today-list { max-width: 52rem; padding-left: 1.2rem; }
.today-list li { margin-bottom: 0.6rem; }
#help h4 { margin: 1.25rem 0 0.35rem; font-size: 1.05em; }
#help h4:first-of-type { margin-top: 0.75rem; }
@media (max-width: 47.99rem) {
  .choose .compare td { display: grid; grid-template-columns: 6.5rem 1fr; justify-content: initial; }
}
#help ul + p { margin-top: 0.75rem; }
