/* EarFret site. One stylesheet, no build step, no external fonts or scripts.
   Accent = the app's AccentColor (light #D9772A, dark #F2984A). Accent text and buttons use a
   darker ink in light mode (#A8520F) so they meet WCAG AA contrast on white. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf8;
  --bg-alt: #f4f1ec;
  --surface: #ffffff;
  --surface-2: #f4f1ec;
  --text: #1d1b19;
  --muted: #5f5952;
  --line: #e6e0d8;
  --accent: #d9772a;         /* decorative: rules, dots, borders */
  --accent-ink: #a8520f;     /* links, accent text */
  --button-bg: #a8520f;
  --button-text: #ffffff;
  --tint: #fff3e6;
  --tint-ink: #8a430c;
  --shadow: 0 1px 2px rgba(40, 25, 10, .06), 0 12px 32px rgba(40, 25, 10, .08);
  --shadow-lg: 0 30px 60px -20px rgba(60, 30, 5, .35), 0 10px 24px -12px rgba(60, 30, 5, .25);
  --glow: rgba(217, 119, 42, .16);
  --header-bg: rgba(251, 250, 248, .78);
  --radius: 20px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e0d;
    --bg-alt: #161513;
    --surface: #1b1a18;
    --surface-2: #24221f;
    --text: #f5f3f0;
    --muted: #aaa39a;
    --line: #2f2c28;
    --accent: #f2984a;
    --accent-ink: #f2984a;
    --button-bg: #f2984a;
    --button-text: #1a1209;
    --tint: #2a1f15;
    --tint-ink: #f6b47a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 10px 24px -12px rgba(0, 0, 0, .6);
    --glow: rgba(242, 152, 74, .14);
    --header-bg: rgba(15, 14, 13, .72);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--accent-ink); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--surface); color: var(--text); padding: .6rem 1rem; z-index: 100; border-radius: 8px; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.site-header nav ul { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }
.site-header .nav-link { display: none; }
@media (min-width: 760px) { .site-header .nav-link { display: list-item; } }
.site-header .doc-nav .nav-link { display: list-item; }
@media (max-width: 420px) { .site-header .doc-nav ul { gap: .9rem; } .site-header .doc-nav a { font-size: .88rem; } }
.site-header nav .button { min-height: 34px; padding: .3rem .95rem; font-size: .88rem; color: var(--button-text); }
.site-header nav .button:hover { color: var(--button-text); }

/* ---------- Type ---------- */
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; font-family: var(--font-display); }
h1 { font-size: clamp(2.6rem, 8vw, 4.8rem); margin: 0 0 1.1rem; letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(2rem, 5.2vw, 3.3rem); margin: 0 0 1rem; letter-spacing: -.03em; font-weight: 750; }
h3 { font-size: 1.2rem; margin: 0 0 .45rem; line-height: 1.25; }
p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.12rem, 2.3vw, 1.35rem); color: var(--muted); max-width: 36em; line-height: 1.5; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .9rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.accent { color: var(--accent-ink); }

section { padding: 72px 0; scroll-margin-top: 56px; }
@media (min-width: 800px) { section { padding: 112px 0; } }
.alt { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; align-items: center; }
.center .actions, .cta .actions { justify-content: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .7rem 1.5rem; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--button-bg); color: var(--button-text); border: 2px solid var(--button-bg);
}
.button:hover { filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button.secondary:hover { border-color: var(--muted); filter: none; }

/* Placeholder for Apple's official badge (see README TODOs). */
.store-badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 50px; padding: .35rem 1.15rem; border-radius: 12px;
  border: 2px dashed var(--line); color: var(--text); text-decoration: none; line-height: 1.25;
}
.store-badge small { color: var(--muted); font-size: .76rem; }
.store-badge strong { font-size: .98rem; }

/* ---------- Device frames ---------- */
.phone {
  position: relative; width: 100%; max-width: 300px; margin: 0 auto;
  padding: 3.4%; border-radius: 15% / 7%; background: #121110;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #3a3733;
}
.phone img { display: block; width: 100%; height: auto; border-radius: 12% / 5.6%; background: #fff; }
.watch {
  position: relative; width: 100%; max-width: 200px; margin: 0 auto;
  padding: 7%; border-radius: 26% / 22%; background: linear-gradient(160deg, #3b3936, #161514);
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .8), inset 0 0 0 1.5px #55524d;
}
.watch::after { /* digital crown */
  content: ""; position: absolute; right: -6px; top: 26%; width: 8px; height: 16%;
  border-radius: 3px; background: linear-gradient(90deg, #4a4743, #7a7670);
}
.watch img { display: block; width: 100%; height: auto; border-radius: 20% / 17%; background: #000; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 88px 0 104px; } }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.hero h1 .accent { display: block; }
.hero-visual { position: relative; max-width: 340px; margin: 0 auto; width: 100%; }
.hero-visual .phone { max-width: 300px; }
.chip {
  position: absolute; display: flex; align-items: center; gap: .55rem;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: .5rem .95rem .5rem .6rem; font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow); white-space: nowrap;
}
.chip .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-size: .8rem; }
.chip .dot.near { background: #a8520f; }
.chip-1 { left: -6%; top: 60%; }
.chip-2 { right: -4%; top: 7%; }
@media (max-width: 420px) { .chip-1 { left: 0; } .chip-2 { right: 0; } .chip { font-size: .82rem; } }

/* ---------- How it works ---------- */
.steps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; gap: 48px; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { counter-increment: step; text-align: center; }
.steps .phone { max-width: 230px; margin-bottom: 28px; }
.steps h3 { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.35rem; }
.steps h3::before {
  content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--button-bg); color: var(--button-text); font-size: .95rem; font-weight: 700;
}
.steps p { max-width: 22em; margin: 0 auto; }
.privacy-note {
  display: flex; gap: .8rem; align-items: flex-start; max-width: 640px; margin: 3.5rem auto 0;
  background: var(--tint); color: var(--text); border-radius: 16px; padding: 16px 20px; font-size: .97rem;
}
.privacy-note svg { flex: none; color: var(--accent-ink); margin-top: 2px; }

/* Demo video placeholder */
.video-slot {
  margin-top: 3rem; aspect-ratio: 16 / 9; border-radius: var(--radius); border: 2px dashed var(--line);
  display: grid; place-items: center; text-align: center; padding: 16px; color: var(--muted); background: var(--surface);
}
.video-slot video { width: 100%; height: 100%; border-radius: var(--radius); object-fit: cover; }

/* ---------- Feature grid ---------- */
.features { display: grid; gap: 16px; margin-top: 3rem; }
@media (min-width: 620px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--tint); color: var(--accent-ink);
}
.card .icon svg { width: 22px; height: 22px; }
.feature-wide { display: grid; gap: 24px; align-items: center; overflow: hidden; }
@media (min-width: 620px) { .feature-wide { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .feature-wide { grid-column: span 2; } }
.feature-wide .shot { max-width: 220px; margin: 0 auto -90px; }
@media (min-width: 620px) { .feature-wide .shot { margin-bottom: -140px; } }
.feature-wide .phone { box-shadow: var(--shadow); }
/* The last card fills the row's gap (2 columns: whole row; 3 columns: two slots). */
@media (min-width: 620px) { .feature-span { grid-column: 1 / -1; } }
@media (min-width: 980px) { .feature-span { grid-column: span 2; } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 1rem 0 0; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: .25rem .75rem; font-size: .85rem; color: var(--muted); background: var(--surface); }

/* ---------- Apple Watch (always dark, like a product band) ---------- */
.watch-band {
  --w-text: #f5f5f7; --w-muted: #a8a8ad; --w-line: #2c2c2e; --w-accent: #f2984a;
  background: radial-gradient(120% 80% at 50% 0%, #2a1a0d 0%, #0a0a0a 55%), #0a0a0a;
  color: var(--w-text);
}
.watch-band .eyebrow { color: var(--w-accent); }
.watch-band .lede { color: var(--w-muted); }
.watch-band a { color: var(--w-accent); }
.watch-band :focus-visible { outline-color: var(--w-accent); }
.watch-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 36px clamp(14px, 3vw, 32px); margin: 3.5rem auto 0; max-width: 1040px; }
.watch-row figure { margin: 0; flex: 0 1 calc(33.333% - 22px); min-width: 0; text-align: center; }
@media (min-width: 900px) { .watch-row figure { flex-basis: calc(20% - 26px); } }
.watch-row figcaption { margin-top: 1rem; font-size: .9rem; color: var(--w-muted); line-height: 1.35; }
@media (max-width: 520px) { .watch-row figure { flex-basis: calc(50% - 16px); max-width: 160px; } .watch { padding: 6%; } .watch::after { right: -4px; width: 5px; } .watch-row figcaption { font-size: .82rem; } }
.watch-points { display: grid; gap: 28px; margin: 4rem 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .watch-points { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .watch-points { grid-template-columns: repeat(4, 1fr); } }
.watch-points li { border-top: 1px solid var(--w-line); padding-top: 18px; }
.watch-points h3 { color: var(--w-text); font-size: 1.1rem; }
.watch-points p { color: var(--w-muted); margin: 0; font-size: .98rem; }
.flame { color: var(--w-accent); }

/* ---------- Mac + iPad ---------- */
.devices { position: relative; margin: 3.5rem auto 0; max-width: 1000px; padding-bottom: 4%; }
.devices .mac img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .22)); }
.devices .ipad {
  position: absolute; right: -1%; bottom: -6%; width: 30%;
  padding: 1.6%; border-radius: 7% / 5.2%; background: #121110;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #3a3733;
}
.devices .ipad img { display: block; width: 100%; height: auto; border-radius: 5% / 3.8%; }
.split-points { display: grid; gap: 24px; margin-top: 4.5rem; }
@media (min-width: 760px) { .split-points { grid-template-columns: repeat(3, 1fr); } }
.split-points p { color: var(--muted); margin: 0; }

/* ---------- Split sections (text + phone) ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split.flip > :first-child { order: 2; } }
.split .phone { max-width: 280px; }
.phone-pair { display: flex; justify-content: center; gap: 4%; }
.phone-pair .phone { max-width: 250px; flex: 1 1 0; min-width: 0; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.checks li { position: relative; padding-left: 1.9rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23c26418' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(16px, 3vw, 40px); margin-top: 2rem; }
.stats strong { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 4.5vw, 2.2rem); line-height: 1.1; letter-spacing: -.03em; color: var(--accent-ink); }
.stats span { color: var(--muted); font-size: .92rem; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 20px; margin: 3rem auto 0; max-width: 900px; text-align: left; }
@media (min-width: 720px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
.price-grid .card { padding: 32px; }
.price-grid h3 { font-size: 1.5rem; }
.card.pro { border: 2px solid var(--accent); position: relative; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--tint); color: var(--tint-ink); border-radius: 999px; padding: .2rem .65rem; margin-bottom: .8rem; }
.price-grid .checks { margin-top: 1.2rem; }
.price-grid .checks li { color: var(--text); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 2.5rem auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-weight: 650; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 300; color: var(--accent-ink); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-right: 2.5rem; margin-bottom: 1.3rem; }

/* ---------- CTA / waitlist ---------- */
.cta { text-align: center; }
.cta-card {
  max-width: 820px; margin: 0 auto; padding: 56px 24px; border-radius: 32px;
  background: linear-gradient(160deg, #a8520f, #7a390a); color: #fff;
}
@media (min-width: 700px) { .cta-card { padding: 72px 56px; } }
.cta-card img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 10px 24px rgba(80, 30, 0, .35); margin: 0 auto 1.5rem; display: block; }
.cta-card h2 { color: #fff; }
.cta-card p { color: #fff7ef; }
.cta-card .button { background: #fff; color: #8a430c; border-color: #fff; }
.cta-card .button.secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta-card :focus-visible { outline-color: #fff; }
.cta-card a:not(.button) { color: #fff; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.5rem auto 0; max-width: 480px; }
.form-row input[type="email"] {
  flex: 1 1 220px; min-width: 0; min-height: 50px; padding: .6rem 1.1rem; font: inherit;
  border-radius: 999px; border: 2px solid transparent; background: #fff; color: #1d1b19;
}
.form-row input[type="email"]::placeholder { color: #6b635a; }
.form-row input[type="email"]:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.form-row .button { flex: 0 0 auto; }
@media (max-width: 420px) { .form-row .button { flex: 1 1 100%; } }
.form-note { margin: 1rem auto 0; max-width: 480px; background: rgba(0, 0, 0, .22); border-radius: 12px; padding: 12px 14px; font-size: .95rem; color: #fff; }
.form-note[hidden] { display: none; }
.cta-divider { display: flex; align-items: center; gap: 1rem; max-width: 480px; margin: 2rem auto 0; color: #fff7ef; font-size: .9rem; }
.cta-divider::before, .cta-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .4); }

/* ---------- Long-form pages (privacy, terms, press) ---------- */
.doc { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.doc h2 { font-size: 1.45rem; margin-top: 2.6rem; letter-spacing: -.015em; }
.doc h3 { margin-top: 1.6rem; }
.doc ul { padding-left: 1.3rem; }
.doc li { margin-bottom: .4rem; }
.summary-box {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 14px; padding: 18px 20px; margin: 1.5rem 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.summary-box ul { margin: 0; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, 1fr); } }
table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .97rem; }
th, td { text-align: left; vertical-align: top; padding: .65rem .75rem; border-bottom: 1px solid var(--line); }
th { width: 34%; color: var(--muted); font-weight: 600; }
@media (max-width: 520px) {
  .facts th, .facts td { display: block; width: 100%; padding-left: 0; padding-right: 0; }
  .facts th { border-bottom: 0; padding-bottom: 0; }
}
.placeholder { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; color: var(--muted); background: var(--surface); text-decoration: none; }
a.placeholder:hover { border-color: var(--accent); }
.asset { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 20px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; }
.asset:hover { border-color: var(--accent); }
.asset-preview { display: flex; align-items: center; justify-content: center; height: 132px; margin-bottom: 10px; }
.asset-preview img { display: block; max-height: 132px; width: auto; }
.asset span:last-child { color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 52px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.site-footer p { margin: 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .card, .store-badge { transition: filter .2s, border-color .2s, transform .2s; }
  .features .card:hover { transform: translateY(-2px); }
  .hero-visual .chip { animation: float 6s ease-in-out infinite; }
  .hero-visual .chip-2 { animation-delay: -3s; }
  @keyframes float { 50% { transform: translateY(-6px); } }
}

.faq-support { margin-top: 1.5rem; text-align: center; }
