/* HearYe website (specs/010). One stylesheet for every page: no inline
   styles, so the Content-Security-Policy needs no 'unsafe-inline'. */

:root {
  color-scheme: light;
  --coral: #C43A1A;
  --coral-dark: #7A2412;
  --coral-tint: #FFF1EC;
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --ink: #1C1C1E;
  --ink-2: #3A3A3C;
  --ink-3: #636366;
  --line: #E2E2E8;
  --font-display: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; }
a { color: var(--coral); }
a:hover { color: var(--coral-dark); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; }

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

/* Header */
.site-header { background: rgba(242, 242, 247, 0.95); border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-family: var(--font-display); font-weight: 900; font-size: 22px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--ink-2); text-decoration: none; display: inline-block; padding: 10px 0; }
.nav-links a:hover { color: var(--coral); }
.nav-links a.btn-primary { color: #FFFFFF; padding: 10px 18px; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  background: var(--coral); color: #FFFFFF; text-decoration: none; padding: 10px 20px;
  border-radius: 999px; font-weight: 600;
}
.btn-primary:hover { background: var(--coral-dark); color: #FFFFFF; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 88px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { margin: 0; align-self: flex-start; background: var(--coral-tint); color: var(--coral-dark); font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.display { font-weight: 900; font-size: clamp(42px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.5px; }
.display em { font-style: normal; color: var(--coral); }
.lead { margin: 0; font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.btn-store {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; min-width: 200px;
  padding: 0 20px; background: var(--ink); color: #FFFFFF; border-radius: 12px; text-decoration: none;
  font-weight: 600; font-size: 15px;
}
.btn-store:hover { color: #FFFFFF; background: #000000; }
/* Beta: a label in the button's place, not a link (replace with Apple's badge at launch). */
.btn-store--static { margin: 0; cursor: default; }
.btn-store--static:hover { background: var(--ink); }
.placeholder { outline: 2px dashed #8E8E93; outline-offset: 3px; }
.text-link { font-weight: 600; font-size: 16px; text-decoration: none; }
.fine { margin: 0; font-size: 14px; color: var(--ink-3); }

/* Phone picture (decorative; described for screen readers in the page) */
.phone-wrap { flex: 0 1 320px; max-width: 100%; display: flex; justify-content: center; margin: 0 auto; }
.phone { width: min(300px, 100%); height: 620px; background: var(--ink); border-radius: 48px; padding: 12px; box-shadow: 0 30px 60px rgba(60, 20, 10, 0.18); }
.screen { width: 100%; height: 100%; background: var(--bg); border-radius: 37px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 44px 16px 18px; }
.screen-bar { display: flex; align-items: center; justify-content: space-between; }
.screen-bar .cancel { font-size: 14px; color: var(--coral); font-weight: 500; }
.screen-bar .title { font-family: var(--font-display); font-weight: 900; font-size: 17px; }
.screen-bar .spacer { width: 44px; }
.message { background: var(--card); border-radius: 16px; padding: 12px; display: flex; gap: 12px; align-items: center; }
.score { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; width: 82px; flex: 0 0 82px; }
.score span { height: 14px; border-radius: 3px; background: #D1D1D6; }
.score .y { background: #E7C547; }
.score .g { background: #6AAA64; }
.message-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.message-text .t { font-weight: 600; font-size: 13px; }
.message-text .s { font-size: 12px; color: var(--ink-3); }
.screen-label { font-size: 11px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.4px; padding-left: 4px; }
.groups { display: flex; flex-direction: column; gap: 8px; }
.group { background: var(--card); border-radius: 14px; padding: 10px; display: flex; align-items: center; gap: 10px; border: 2px solid transparent; }
.group.on { border-color: var(--coral); }
.group .tile { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.tile.red { background: #E5484D; }
.tile.green { background: #2F8F6B; }
.tile.blue { background: #3B6FD8; }
.group .name { flex: 1; font-weight: 600; font-size: 14px; }
.group .tick { width: 22px; height: 22px; border-radius: 11px; border: 2px solid #C7C7CC; display: flex; align-items: center; justify-content: center; }
.group.on .tick { background: var(--coral); border-color: var(--coral); }
.screen-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.screen-send { width: 100%; height: 48px; border-radius: 14px; background: var(--coral); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.screen-note { font-size: 11px; color: var(--ink-3); }

/* Sections */
.section { padding-top: 88px; padding-bottom: 88px; }
.section--white { background: var(--card); }
.section--tint { background: var(--coral-tint); }
.stack { display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.h2 { font-weight: 900; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
.section-lead { margin: 0; font-size: 18px; color: var(--ink-2); }

.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.step { background: var(--bg); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.icon-tile { width: 52px; height: 52px; border-radius: 15px; background: var(--coral); display: flex; align-items: center; justify-content: center; }
.step-num { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.h3 { font-weight: 800; font-size: 22px; }
.step p, .card p { margin: 0; color: var(--ink-2); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > * { flex: 1 1 380px; min-width: 0; }
.privacy-head { display: flex; flex-direction: column; gap: 14px; color: var(--coral-dark); }
.privacy-head p { margin: 0; font-size: 18px; }
.privacy-head a { color: var(--coral-dark); font-weight: 600; }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checklist li { background: var(--card); border-radius: 16px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.checklist svg { flex: 0 0 22px; margin-top: 2px; }

.faq { max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; list-style-position: outside; min-height: 44px; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }

/* Text pages: privacy policy, support, not found */
.page { padding-top: 56px; padding-bottom: 88px; }
.prose { max-width: 720px; }
.prose h1 { font-weight: 900; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; margin-bottom: 12px; }
.prose h2 { font-weight: 800; font-size: 24px; margin-top: 40px; margin-bottom: 10px; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; }
.prose ul { padding-left: 22px; }
.prose .updated { color: var(--ink-3); font-size: 15px; margin-top: 0; }
.prose .callout { background: var(--card); border-radius: 16px; padding: 20px 22px; margin: 24px 0; }
.prose .callout p { margin: 0; color: var(--ink); }

/* Footer */
.site-footer { background: var(--ink); color: #EBEBF0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand .name { font-family: var(--font-display); font-weight: 900; font-size: 20px; color: #FFFFFF; display: block; }
.footer-brand .tag { font-size: 14px; color: #C7C7CC; display: block; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.footer-links a { color: #EBEBF0; display: inline-block; padding: 10px 0; }
.footer-links a:hover { color: #FFFFFF; }
.footer-links .copy { color: #C7C7CC; }
