/* Resonate: Speech for Aphasia website. One stylesheet, no framework.
   Design: the approved Claude Design canvas (spec docs/superpowers/specs/2026-11-09-resonate-website-design.md). */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/fraunces-600-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-next-latin.woff2') format('woff2');
}

:root {
  --ground: #FFF8F0;
  --surface: #FFFFFF;
  --band: #F6EBDD;
  --ink: #1E1B18;
  --body: #4A423B;
  --text: #2E2924;
  --muted: #6B5F55;
  --line: #E8DCCD;
  --on-dark: #FFF8F0;
  --on-dark-body: #E9DED2;
  --accent: #1F56C7;
  --accent-hover: #163F94;
  --green: #1E7A52;
  --amber: #8A5300;
  --amber-bright: #F2A33A;
  --rose: #9B3F70;
  --tint-amber: #FDEBD2;
  --tint-green: #DCEFE5;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 30px 60px -28px rgba(30, 27, 24, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

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

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.brand span { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 16px; }
.site-nav a { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; line-height: 1.2;
  overflow-wrap: anywhere; text-align: center;
}
.btn--primary { background: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn--outline { background: var(--surface); color: var(--ink); border: 2px solid var(--ink); }
.btn--outline:hover { color: var(--ink); background: var(--band); }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { color: var(--ink); background: #FFFFFF; }
.btn--text { color: var(--accent); padding-left: 6px; padding-right: 6px; }
.site-nav .btn--primary { color: #FFFFFF; min-height: 44px; padding: 10px 18px; }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 56px; padding: 8px 20px; border-radius: 14px;
  background: var(--ink); color: #FFFFFF; text-decoration: none; line-height: 1.15;
}
.store small { font-size: 12px; opacity: 0.85; }
.store strong { font-size: 19px; }
.store--soon { background: var(--surface); color: var(--ink); border: 2px dashed var(--muted); }
.store--soon small { opacity: 1; color: var(--muted); }

/* Type */
.eyebrow { font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow--green { color: var(--green); }
.eyebrow--amber { color: var(--amber-bright); }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; font-size: clamp(38px, 5.4vw, 66px); }
.h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; font-size: clamp(28px, 3.4vw, 42px); }
.lede { font-size: 21px; color: var(--body); max-width: 600px; margin-top: 22px; }
.sub { font-size: 19px; color: var(--body); margin-top: 8px; }
.note { font-size: 15px; color: var(--muted); margin-top: 16px; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__arcs { position: absolute; right: -160px; top: -40px; width: 760px; height: 760px; opacity: 0.22; pointer-events: none; }
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero__copy { flex: 1 1 460px; min-width: 0; }
.hero__copy .stores { margin-top: 32px; }
.hero__art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.devices { position: relative; width: 430px; max-width: 100%; aspect-ratio: 430 / 600; }
.device { background: var(--ink); border-radius: 30px; padding: 12px; box-shadow: var(--shadow); }
.device img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.devices .device { position: absolute; right: 0; top: 0; width: 93%; aspect-ratio: 3 / 4; }
.devices .device--phone { left: 0; right: auto; top: auto; bottom: 0; width: 39%; aspect-ratio: 1290 / 2796; border-radius: 28px; padding: 8px; }
.devices .device--phone img { border-radius: 21px; }
.hero--short .wrap { display: block; padding-bottom: 64px; }
.hero--short .display { max-width: 820px; font-size: clamp(36px, 5vw, 60px); }

/* Sections */
.section { padding-top: 76px; padding-bottom: 76px; }
.band { background: var(--band); }
.band--dark { background: var(--ink); color: var(--on-dark); }
.band--dark .h2 { color: var(--on-dark); }
.section-head { margin-bottom: 36px; }

/* Two doors */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.door { background: var(--surface); border-radius: 24px; padding: 34px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 1px 0 var(--line); }
.door__head { display: flex; align-items: center; gap: 14px; }
.door h3 { font-family: var(--display); font-weight: 600; font-size: 27px; line-height: 1.15; }
.door ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.door__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 6px; }
.icon-tile { flex: none; width: 54px; height: 54px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; }
.icon-tile--amber { background: var(--tint-amber); color: var(--amber); }
.icon-tile--green { background: var(--tint-green); color: var(--green); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 21px; font-weight: 700; }
.card p { color: var(--body); font-size: 17px; }
.ic-blue { color: var(--accent); }
.ic-green { color: var(--green); }
.ic-amber { color: var(--amber); }
.ic-rose { color: var(--rose); }
.also { margin-top: 22px; color: var(--muted); font-size: 16px; }

/* Split (map, sharing) */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split__art { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.split__art .device { width: 380px; max-width: 100%; aspect-ratio: 3 / 4; }
.split__copy { flex: 1 1 460px; min-width: 0; }
.split__copy p + p { margin-top: 14px; }
.split__copy .h2 { margin-bottom: 16px; }
.split__copy p { color: var(--body); font-size: 19px; }

/* Features on dark */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 30px 36px; }
.features h3 { font-size: 20px; font-weight: 700; color: var(--amber-bright); margin-bottom: 6px; }
.features p { color: var(--on-dark-body); font-size: 17px; }

/* Panels */
.panel { background: var(--surface); border-radius: 24px; padding: 30px; box-shadow: 0 1px 0 var(--line); }
.panel h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.panel p { color: var(--body); font-size: 17px; }
.panel--dark {
  background: var(--ink); color: var(--on-dark); border-radius: 28px; padding: clamp(28px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.panel--dark .h2 { color: var(--on-dark); margin-bottom: 14px; }
.panel--dark p { color: var(--on-dark-body); font-size: 19px; }
.panel--dark > div { flex: 1 1 520px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px; align-items: start; }
.list { margin: 18px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--text); }

/* Call to action row */
.cta-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-row > div { flex: 1 1 480px; min-width: 0; }

/* Prose pages: privacy, terms, delete, help, 404 */
.prose { max-width: 720px; padding-top: 56px; padding-bottom: 72px; }
.prose h1 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 12px; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.2; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--text); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 24px; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.prose .updated { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.prose .draft { background: var(--tint-amber); color: var(--ink); border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; font-weight: 700; }
.prose .callout { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-top: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--band); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.site-footer .brand img { width: 36px; height: 36px; border-radius: 10px; }
.site-footer .brand span { font-size: 18px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 16px; }
.legal-nav a { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.disclaimer { font-size: 15px; color: var(--body); max-width: 860px; }
.copyright { font-size: 14px; color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .hero .wrap { padding-top: 44px; padding-bottom: 56px; gap: 40px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .door { padding: 24px; }
  .lede { font-size: 19px; }
  .hero__arcs { width: 520px; height: 520px; right: -330px; opacity: 0.16; }
}

.section--flush-top { padding-top: 0; }
