/* EchoMull site: no external fonts, scripts or trackers. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f1efe9;
  --text: #16181d;
  --text-2: #4a4f59;
  --border: #dcd8ce;
  --accent: #0b5cad;
  --accent-text: #ffffff;
  --focus: #b3470b;
  --speaker-1: #0b5cad;
  --speaker-2: #9a3c00;
  --speaker-3: #1d6b3a;
  --radius: 18px;
  --max: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #1a1d23;
    --surface-2: #23272f;
    --text: #f2f3f5;
    --text-2: #b9bfca;
    --border: #353a44;
    --accent: #7fb6ff;
    --accent-text: #0b1522;
    --focus: #ffb27a;
    --speaker-1: #7fb6ff;
    --speaker-2: #ffae70;
    --speaker-3: #7fd49b;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1875rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.6rem;
  color: var(--text-2);
  text-decoration: none;
  font-size: 1rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
}

.hero h1 {
  margin: 1.25rem 0 0.25rem;
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.slogan {
  margin: 0.75rem auto 0;
  max-width: 30rem;
  font-size: clamp(1.4rem, 4.2vw, 1.85rem);
  line-height: 1.3;
  font-weight: 600;
}

.lede {
  margin: 1.25rem auto 0;
  max-width: 34rem;
  color: var(--text-2);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.badges li {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.95rem;
}

.status-note {
  margin: 1.5rem auto 0;
  color: var(--text-2);
  font-size: 1rem;
}

/* Sample conversation (decorative illustration of the app) */
.sample {
  margin: 0 auto 1rem;
  padding: 1.25rem;
  max-width: 30rem;
  background: var(--surface-2);
  border-radius: var(--radius);
}

.bubble {
  margin: 0 0 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 2px solid var(--speaker, var(--border));
  border-left-width: 8px;
  border-radius: 14px;
  font-size: 1.3rem;
  line-height: 1.35;
}

.bubble:last-child {
  margin-bottom: 0;
}

.bubble .who {
  display: block;
  color: var(--speaker, var(--text-2));
  font-size: 0.95rem;
  font-weight: 700;
}

.bubble.s1 { --speaker: var(--speaker-1); }
.bubble.s2 { --speaker: var(--speaker-2); }
.bubble.s3 { --speaker: var(--speaker-3); }

.sample-caption {
  margin: 0.5rem 0 0;
  color: var(--text-2);
  font-size: 0.95rem;
  text-align: center;
}

/* Sections */
main section {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

main section:first-of-type {
  border-top: 0;
}

.hero-title {
  margin: 0.5rem 0 0.5rem;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

caption {
  padding: 0 0 0.5rem;
  text-align: left;
  font-size: 0.95rem;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.7rem;
  line-height: 1.25;
}

h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

p,
ul,
ol,
table {
  margin: 0 0 1rem;
}

li + li {
  margin-top: 0.35rem;
}

.features {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  margin: 0;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.features strong {
  display: block;
  font-size: 1.2rem;
}

.callout {
  padding: 1rem 1.15rem;
  background: var(--surface-2);
  border-left: 6px solid var(--focus);
  border-radius: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  text-decoration: underline;
}

/* Tables collapse to stacked rows on narrow screens so the page never scrolls sideways. */
.table-wrap {
  margin: 0 0 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

th,
td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--surface-2);
}

@media (max-width: 40rem) {
  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  tr {
    margin: 0 0 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
  }

  th,
  td {
    border: 0;
    border-top: 1px solid var(--border);
  }

  tr > :first-child {
    border-top: 0;
    background: var(--surface-2);
  }

  td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--text-2);
    font-size: 0.85rem;
    font-weight: 700;
  }
}

.updated {
  color: var(--text-2);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 1rem;
}

.site-footer p {
  margin: 0 0 0.4rem;
}

.site-footer a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}

.not-found {
  padding: 4rem 0;
  text-align: center;
}

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

@media print {
  .site-nav,
  .skip-link {
    display: none;
  }
}

/* The App Store button under the hero badges. */
.store-link {
  margin-top: 1.5rem;
}
