/* Layout: one calm column; hero is a live "sentence bar" built from Fitzgerald-key coloured symbol tiles, then a grid of what the app does. */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #16263a;
  --muted: #4f6075;
  --line: #d9e1ea;
  --accent: #1f6fb2;
  --accent-ink: #ffffff;
  /* Fitzgerald key: the colour code AAC users already know */
  --k-people: #f7d74a;
  --k-verb: #7cc576;
  --k-desc: #74b3e8;
  --k-noun: #f4a64a;
  --k-social: #f2a0c4;
  --k-ink: #16263a;
  --font-display: "Lexend", "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1722; --surface: #172231; --ink: #e8eef6; --muted: #a6b4c5; --line: #2a3a4f;
    --accent: #6fb2ec; --accent-ink: #0f1722; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1722; --surface: #172231; --ink: #e8eef6; --muted: #a6b4c5; --line: #2a3a4f;
  --accent: #6fb2ec; --accent-ink: #0f1722; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.125rem; line-height: 1.6;
}
.wrap { max-width: 68rem; margin: 0 auto; padding-inline: 1.25rem; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 500; }
p { margin: 0; max-width: 62ch; }

header.top { padding-block: 1.25rem; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 2rem; height: 2rem; flex: none; }
.pill { font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem; }

.hero { padding-block: 2.5rem 3.5rem; display: grid; gap: 2rem; }
.hero .lede { font-size: 1.3rem; color: var(--muted); }

/* the sentence bar, as it looks in the app */
.bar {
  background: var(--surface); border: 2px solid var(--line); border-radius: 18px;
  padding: .75rem; display: flex; align-items: stretch; gap: .6rem; flex-wrap: wrap;
}
.tile {
  --c: var(--k-noun);
  background: var(--c); color: var(--k-ink);
  border-radius: 12px; min-width: 5.5rem; padding: .55rem .7rem .5rem;
  display: grid; justify-items: center; gap: .2rem;
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
  animation: pop .45s ease-out both;
}
.tile svg { width: 2.6rem; height: 2.6rem; }
.tile:nth-child(2) { animation-delay: .25s; }
.tile:nth-child(3) { animation-delay: .5s; }
.tile:nth-child(4) { animation-delay: .75s; }
.t-people { --c: var(--k-people); }
.t-verb { --c: var(--k-verb); }
.t-desc { --c: var(--k-desc); }
.t-social { --c: var(--k-social); }
.speak {
  cursor: pointer;
  margin-left: auto; align-self: center;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 12px;
  font: 700 1.05rem var(--font-display); padding: .9rem 1.3rem; display: flex; align-items: center; gap: .5rem;
}
.speak svg { width: 1.3rem; height: 1.3rem; }
@keyframes pop { from { transform: translateY(6px); opacity: .0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tile { animation: none; } }
.key { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .9rem; color: var(--muted); }
.key span { display: inline-flex; align-items: center; gap: .35rem; }
.key i { width: .8rem; height: .8rem; border-radius: 3px; display: inline-block; }

section { padding-block: 3rem; border-top: 1px solid var(--line); }
section > .wrap { display: grid; gap: 1.75rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem 2rem; }
.feature { display: grid; gap: .4rem; align-content: start; min-width: 0; }
.feature p { color: var(--muted); font-size: 1.02rem; }
.feature .sw { width: 2.2rem; height: .45rem; border-radius: 99px; background: var(--c, var(--accent)); }

.story { display: grid; gap: 1rem; }
.story p { font-size: 1.15rem; }

.soon { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 1.5rem; display: grid; gap: .6rem; }
.soon p { color: var(--muted); }

.contact { display: grid; gap: 1rem; max-width: 38rem; }
.contact label { display: grid; gap: .3rem; font-weight: 700; }
.contact input, .contact textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--surface);
  border: 2px solid var(--line); border-radius: 12px; padding: .7rem .85rem; width: 100%;
}
.contact textarea { min-height: 8rem; resize: vertical; }
.contact input:focus-visible, .contact textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.contact .hp { position: absolute; left: -9999px; }
.contact button {
  justify-self: start; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 12px;
  font: 700 1.05rem var(--font-display); padding: .85rem 1.4rem; cursor: pointer;
}
.contact button[disabled] { opacity: .6; cursor: wait; }
.contact .note { color: var(--muted); font-size: .95rem; }
.contact .status:empty { display: none; }
.contact .status { font-weight: 700; }

footer { padding-block: 2rem 3rem; color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

.top nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.top nav a { font-weight: 700; }
.speak-wrap { margin-left: auto; display: grid; justify-items: end; gap: .2rem; align-self: center; }
.speak-wrap .speak { margin-left: 0; }
.voice-label { font-size: .85rem; color: var(--muted); min-height: 1.3em; }
.speak:active { transform: scale(.97); }
.page { padding-block: 2rem 3rem; }
.page > .wrap { display: grid; gap: 1.25rem; }
.steps { margin: 0; padding-left: 1.3rem; display: grid; gap: .5rem; max-width: 62ch; }
.contact select { font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: .7rem .85rem; width: 100%; }
.contact .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.contact .check input { width: 1.3rem; height: 1.3rem; margin-top: .2rem; flex: none; }
.page .lede { font-size: 1.25rem; color: var(--muted); }
.page h2 { margin-top: 1rem; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.people figure { margin: 0; display: grid; gap: .6rem; }
.people img { width: 100%; height: auto; display: block; border-radius: 18px; }
.people figcaption { color: var(--muted); font-size: 1.02rem; }
