/* Hearing Words — site styles.
   Plain CSS, system fonts only, nothing loaded from anywhere else.
   Light and warm on purpose, like the store screenshots: dark pages read as cold to older readers.
   Every text colour below meets WCAG AAA (7:1) against its background. */

:root {
  color-scheme: light;
  --bg: #F6F1E9;          /* warm paper, as in the store screenshots */
  --panel: #FFFDF9;
  --line: #DDD3C4;
  --fg: #16181D;          /* 16.5:1 on --bg */
  --muted: #474C57;       /* 8.0:1 on --bg */
  --link: #0B4AA8;        /* 7.4:1 on --bg */
  --name: #6B3F05;
  --focus: #0B4AA8;
  --btn-bg: #16181D;
  --btn-fg: #FFFDF9;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-size: 125%;                 /* 20px base when the browser default is 16px */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 0.5rem 1rem; border-radius: 8px; font-weight: 700; z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap.wide { max-width: 64rem; }

/* ---- header ---- */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.1rem;
}
.brand img { width: 2rem; height: 2rem; border-radius: 0.45rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav a { color: var(--fg); text-decoration: none; padding: 0.35rem 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }

/* ---- type ---- */
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 4.5vw, 2rem); margin-top: 3rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-top: 2rem; margin-bottom: 0.4rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.5rem; }
li:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); }
strong { font-weight: 700; }

main { padding: 2.5rem 0 4rem; }
main.page h1 { margin-bottom: 0.5rem; }
.date { color: var(--muted); margin-bottom: 2rem; }

/* ---- hero ---- */
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { max-width: 32rem; }
@media (min-width: 52rem) {
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
}

.store-slot {
  display: inline-block; margin-top: 0.5rem;
  border: 2px dashed var(--line); border-radius: 12px;
  padding: 0.7rem 1.2rem; color: var(--muted); font-weight: 600;
}

/* Hero picture. The <object> shows assets/hero.png; if that file is missing,
   the browser shows the phone drawn in HTML below instead. */
.hero-art { margin: 0; display: flex; justify-content: center; }
/* Sized for a portrait framed phone (about 1:2). The 38vh cap keeps it
   within roughly 80% of the screen height. */
.hero-art object { display: block; width: min(100%, 24rem, 38vh); min-width: 14rem; height: auto; }

.phone {
  width: 100%; max-width: 20rem;
  background: #1D222C; border: 2px solid #3A3F4A;
  border-radius: 2.6rem; padding: 0.6rem;
}
.phone .screen {
  background: #000; color: #fff; border-radius: 2.1rem;
  padding: 2.4rem 1.1rem 1.1rem; min-height: 26rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  font-size: 1.25rem; line-height: 1.5;
}
.phone .turn { margin: 0 0 0.9rem; }
.phone .dot { font-weight: 700; }
.phone .dot.a { color: #779E37; }
.phone .dot.b { color: #379E86; }
.phone .name { font-weight: 700; color: #F2B96B; }
.phone .partial { opacity: 0.78; }
.phone .bar { display: flex; gap: 0.5rem; }
.phone .bar span {
  border-radius: 0.8rem; padding: 0.55rem 0.9rem; font-size: 0.9rem; font-weight: 600;
  background: rgba(255,255,255,0.12); color: #fff;
}
.phone .bar .stop { flex: 1; text-align: center; background: #FF453A; }

/* ---- promises ---- */
.promises {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; gap: 1rem;
}
@media (min-width: 40rem) { .promises { grid-template-columns: 1fr 1fr; } }
.promises li {
  margin: 0; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.4rem 1.4rem 1.2rem;
}
.promises h3 { margin: 0 0 0.4rem; font-size: 1.35rem; }
.promises p { margin: 0; color: var(--muted); }

/* ---- pricing ---- */
.plans { display: grid; gap: 1rem; margin: 1.5rem 0 1rem; }
@media (min-width: 40rem) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.4rem;
}
.plan h3 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.plan .price { font-size: 2.2rem; font-weight: 700; line-height: 1.15; margin: 0 0 0.4rem; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.plan p:last-child { margin-bottom: 0; }
.free {
  font-size: 1.35rem; font-weight: 700; margin: 0 0 0.5rem;
}

/* ---- FAQ / long pages ---- */
.faq h3 { margin-top: 1.75rem; }
.box {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.25rem 1.4rem; margin: 1.5rem 0;
}
.box h2 { margin-top: 0; }
.box p:last-child, .box ul:last-child, .box ol:last-child { margin-bottom: 0; }
.path { font-weight: 700; }
.email { font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); }
.site-foot ul { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-foot li { margin: 0; }
.site-foot a { color: var(--fg); }
.site-foot p { margin: 0; }

@media (max-width: 22rem) {
  .wrap { padding: 0 1rem; }
  .plan, .promises li, .box { padding: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
