/* WYSIWYH website. Large type, high contrast and calm motion, because many visitors have low vision. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-next-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0d0d11;
  --surface: #17171e;
  --surface-2: #22222c;
  --text: #f5f5f7;
  --muted: #b9b9c6;
  --line: rgba(255, 255, 255, 0.14);
  --yellow: #ffd60a;
  --amber: #ffaa00;
  --accent-text: #ffd60a;   /* accent used as text color */
  --on-yellow: #0d0d11;
  --paper: #fbf8f0;
  --paper-ink: #1f1f24;
  --glow: rgba(255, 190, 20, 0.16);
  --radius: 28px;
  --wrap: 1180px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fffaf0;
    --surface: #ffffff;
    --surface-2: #f6efdc;
    --text: #121216;
    --muted: #4a4a56;
    --line: rgba(18, 18, 22, 0.14);
    --accent-text: #8a5300;
    --glow: rgba(255, 190, 20, 0.28);
    color-scheme: light;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.25rem;          /* 20px base: comfortable for low vision */
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-text); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }

:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 8px var(--bg);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--yellow); color: var(--on-yellow);
  padding: 12px 20px; border-radius: 12px; font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ── Header ─────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: 0.02em; }
.brand img { border-radius: 10px; }
.site-header nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.site-header nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.05rem; padding: 8px 0; }
.site-header nav a:hover { color: var(--accent-text); text-decoration: underline; }
@media (max-width: 699px) {
  .header-inner { padding-top: 10px; padding-bottom: 10px; }
  .site-header { position: static; }
  .site-header nav { gap: 2px 18px; }
}

/* ── Type ───────────────────────────────────────────── */

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.8rem, 7.5vw, 5.6rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h3 { font-size: 1.55rem; font-weight: 800; }
p { margin: 0 0 1em; }

.eyebrow { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.95rem; color: var(--accent-text); margin-bottom: 14px; }
.lede { font-size: clamp(1.3rem, 2.2vw, 1.55rem); color: var(--muted); max-width: 34em; }
.mark { background: var(--yellow); color: var(--on-yellow); padding: 0 0.12em; border-radius: 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

section { padding: clamp(64px, 10vw, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }

/* ── Hero ───────────────────────────────────────────── */

.hero { padding-top: clamp(40px, 7vw, 88px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }

.hero h1 .see, .hero h1 .hear { display: block; }
.hero h1 .hear { color: var(--accent-text); }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--text); color: var(--bg); text-decoration: none;
  padding: 14px 26px 14px 20px; border-radius: 18px; font-weight: 800; font-size: 1.2rem; line-height: 1.15;
}
.store-badge svg { width: 30px; height: 30px; flex: none; }
.store-badge small { display: block; font-weight: 600; font-size: 0.82rem; opacity: 0.8; }
.store-badge[aria-disabled="true"] { cursor: default; }
.requirements { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 22em; }

/* Phone mockup */
.demo { position: relative; display: flex; justify-content: center; padding: 20px 0 40px; }
@media (min-width: 521px) { .demo { justify-content: flex-start; padding-left: 4%; } }
.phone {
  position: relative; width: min(330px, 82vw); aspect-ratio: 9 / 19.5;
  background: #000; border-radius: 52px; padding: 12px;
  box-shadow: 0 0 0 2px #3a3a44, 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 0 120px -20px var(--glow);
}
.screen {
  position: relative; height: 100%; border-radius: 42px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 30%, #4a4237, #1d1a17 70%);
  display: flex; flex-direction: column; padding: 16px 14px 18px;
}
.island { width: 34%; height: 26px; background: #000; border-radius: 20px; margin: 0 auto 14px; flex: none; }
.screen-top { display: flex; justify-content: space-between; flex: none; }
.screen-top span { width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); }

.letter {
  position: relative; margin: 18px auto 0; width: 82%; flex: 1 1 auto; max-height: 52%;
  background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: 16px 14px;
  transform: rotate(-3deg); box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.6);
  font-size: 0.62rem; line-height: 1.35;
}
.letter strong { display: block; font-size: 0.85rem; margin-bottom: 6px; }
.letter i { display: block; height: 6px; border-radius: 3px; background: #c9c5ba; margin: 6px 0; }
.letter i:nth-child(odd) { width: 92%; } .letter i.short { width: 55%; }
.letter b { display: block; margin: 8px 0 4px; font-size: 0.7rem; }

.viewfinder { position: absolute; inset: 22% 6% 30%; pointer-events: none; }
.viewfinder span { position: absolute; width: 34px; height: 34px; border: 5px solid var(--yellow); }
.viewfinder span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.viewfinder span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.viewfinder span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.viewfinder span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }

.screen-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; flex: none; }
.screen-buttons span {
  display: grid; place-items: center; height: 74px; border-radius: 20px;
  font-weight: 800; font-size: 0.95rem; color: #0d0d11; background: #fff;
}
.screen-buttons span.key { background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 214, 10, 0.35); }

.speech {
  position: absolute; right: 0; top: 40%; width: min(290px, 74vw);
  background: var(--surface); color: var(--text); border: 2px solid var(--yellow);
  border-radius: 24px 24px 24px 6px; padding: 16px 18px 14px; font-size: 1.02rem; line-height: 1.45;
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.55);
}
.speech .label { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
.speech p { margin: 0; }
@media (max-width: 520px) {
  .demo { flex-direction: column; align-items: center; }
  .speech { position: relative; right: auto; top: auto; margin: 20px auto 0; border-radius: 6px 24px 24px 24px; }
}

.bars { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.bars i { width: 4px; height: 100%; border-radius: 2px; background: currentColor; animation: talk 1.1s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -0.3s; } .bars i:nth-child(3) { animation-delay: -0.6s; } .bars i:nth-child(4) { animation-delay: -0.15s; }
@keyframes talk { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .bars i { animation: none; transform: scaleY(0.7); } }

/* ── Two buttons ────────────────────────────────────── */

.modes { display: grid; gap: 24px; }
@media (min-width: 860px) { .modes { grid-template-columns: 1fr 1fr; } }
.mode { border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); }
.mode-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 18px;
  font-weight: 800; font-size: 1.15rem; color: var(--on-yellow); margin-bottom: 22px;
}
.mode-pill svg { width: 24px; height: 24px; }
.mode--every .mode-pill { background: #fff; box-shadow: inset 0 0 0 2px #d8d8de; }
.mode--key .mode-pill { background: var(--yellow); }
.mode--key { border: 2px solid var(--yellow); }
.mode p { color: var(--muted); }
.mode .side { font-weight: 700; color: var(--text); }

.examples { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 860px) { .examples { grid-template-columns: repeat(3, 1fr); } }
.example { margin: 0; background: var(--surface-2); border-radius: 22px; padding: 26px 26px 22px; display: flex; flex-direction: column; }
.example h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.example blockquote { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.45; }
.example blockquote::before { content: "“"; color: var(--accent-text); font-weight: 800; }
.example blockquote::after { content: "”"; color: var(--accent-text); font-weight: 800; }

/* ── Steps ──────────────────────────────────────────── */

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; border-top: 4px solid var(--yellow); padding-top: 24px; }
.steps li::before { content: counter(step); display: block; font-size: 3.6rem; font-weight: 800; line-height: 1; margin-bottom: 14px; color: var(--accent-text); }
.steps p { color: var(--muted); }

/* ── Feature grid ───────────────────────────────────── */

.features { display: grid; gap: 20px; }
@media (min-width: 700px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.feature svg { width: 40px; height: 40px; color: var(--accent-text); margin-bottom: 16px; }
.feature h3 { font-size: 1.3rem; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 1.1rem; }

/* ── Split sections ─────────────────────────────────── */

.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 18px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230d0d11' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.voices { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.voices li { padding: 8px 16px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: 1.05rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.panel--accent { border: 2px solid var(--yellow); }
.panel h3 { margin-bottom: 12px; }
.panel p:last-child { margin-bottom: 0; }
.panel + .panel { margin-top: 20px; }

/* ── FAQ / support ──────────────────────────────────── */

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 48px 22px 0; position: relative;
  font-size: 1.3rem; font-weight: 800;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 2rem; font-weight: 400; color: var(--accent-text);
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 24px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

.contact-card {
  margin-top: 56px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between;
  background: var(--yellow); color: var(--on-yellow); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
}
.contact-card h3 { margin: 0 0 6px; }
.contact-card p { margin: 0; font-size: 1.15rem; }
.contact-card a.button {
  display: inline-block; background: var(--on-yellow); color: #fff; text-decoration: none; font-weight: 800;
  padding: 16px 26px; border-radius: 16px; font-size: 1.15rem;
}
.contact-card a.button:focus-visible { outline-color: var(--on-yellow); box-shadow: 0 0 0 8px var(--yellow); }

/* ── Prose (privacy policy) ─────────────────────────── */

.prose { max-width: 760px; padding-top: clamp(40px, 7vw, 80px); padding-bottom: 80px; }
.prose h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose .meta { color: var(--muted); }
.prose .summary { background: var(--surface); border-left: 6px solid var(--yellow); border-radius: 0 18px 18px 0; padding: 20px 24px; font-size: 1.3rem; font-weight: 600; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 72px 0; }

/* ── Footer ─────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 1.05rem; }
.footer-inner { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-inner { grid-template-columns: 1.4fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.2rem; }
.footer-brand img { border-radius: 8px; }
.footer-brand span { font-weight: 400; color: var(--muted); font-size: 1rem; }
.footer-note { color: var(--muted); max-width: 40em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
