/* ============================================================
   AllEars Landing — compiled design tokens + components + page styles
   Source: Claude Design project "AllEars Mobile App Design" ->
   "AllEars Landing.dc.html" (Earshot design system), compiled to
   plain static CSS for hosting without the dc-runtime/React dependency.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Hanken+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@500;700;800&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

/* ---- Color tokens (light mode) ---- */
:root {
  --brand-sky:   #7A2CF5;
  --brand-aqua:  #C23BEF;
  --brand-lilac: #F2409E;
  --brand-aurora: linear-gradient(120deg, var(--brand-sky) 0%, var(--brand-aqua) 52%, var(--brand-lilac) 100%);
  --brand-night-wash: linear-gradient(180deg, #2A1468 0%, #160C3E 55%, #0D0824 100%);

  --ink-900: #F6F3FE;
  --ink-800: #FFFFFF;
  --ink-700: #FFFFFF;
  --ink-600: #F1ECFE;

  --text-strong: #18112F;
  --text-body:   #3D3558;
  --text-muted:  #6C6588;
  --text-faint:  #A29BBE;
  --text-on-brand: #FFFFFF;

  --line-subtle: rgba(24,17,47,0.05);
  --line:        rgba(24,17,47,0.09);
  --line-strong: rgba(24,17,47,0.15);

  --live:    #19A974;
  --listen:  #6A3CF2;
  --speak:   #C02FB0;

  --tint-sky:   rgba(106,60,242,0.10);
  --tint-aqua:  rgba(25,169,116,0.12);
  --tint-lilac: rgba(106,60,242,0.10);

  --bg-app:        var(--ink-900);
  --bg-deep:       #EFEAFC;
  --surface-raised: var(--ink-800);
  --surface-card:  var(--ink-700);
  --surface-hover: var(--ink-600);
  --surface-overlay: rgba(24,17,47,0.42);

  --border-card: var(--line);
  --text-1: var(--text-strong);
  --text-2: var(--text-body);
  --text-3: var(--text-muted);
  --focus-ring: rgba(122,44,245,0.40);

  --shadow-md: 0 10px 28px rgba(60,30,140,0.10);
  --shadow-lg: 0 20px 50px rgba(60,30,140,0.14);
  --shadow-xl: 0 32px 80px rgba(60,30,140,0.18);
  --sheen-top: inset 0 1px 0 rgba(255,255,255,0.70);
  --glow-brand: 0 14px 34px rgba(150,50,240,0.34);

  --radius-pill: 999px;
  --radius-xl: 28px;

  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, 'SFMono-Regular', monospace;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-body: 1rem;
  --fs-lg: 1.125rem;

  --dur-fast: 140ms;
  --dur-base: 240ms;
  --ease-calm: cubic-bezier(0.22, 0.61, 0.36, 1);

  scroll-behavior: smooth;
  --ls-head: -0.03em; --ls-eyebrow: 0.14em; --eyebrow-font: var(--font-mono); --lh-head: 1.1;
}

html[dir="rtl"] {
  --font-display: "Alexandria", sans-serif;
  --font-body: "IBM Plex Sans Arabic", sans-serif;
  --ls-head: 0; --ls-eyebrow: 0; --eyebrow-font: "IBM Plex Sans Arabic", sans-serif; --lh-head: 1.4;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg-app); color: var(--text-2);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-1); font-weight: var(--fw-bold); margin: 0; }
p { margin: 0; }
a { color: var(--listen); text-decoration: none; }
a:hover { color: var(--speak); }
button { font: inherit; }
img { max-width: 100%; }
::selection { background: rgba(106,60,242,0.22); color: var(--text-1); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

@keyframes ae-breathe { 0%,100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.08); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; } }

/* ============================================================
   Design-system components (ported from Earshot _ds_bundle.js)
   ============================================================ */

/* Button */
.es-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-body); font-weight:var(--fw-semibold);
  border:1px solid transparent; cursor:pointer; white-space:nowrap;
  border-radius:var(--radius-pill); transition:transform var(--dur-fast) var(--ease-calm), filter var(--dur-base) var(--ease-calm);
}
.es-btn:hover{ filter:brightness(1.08); }
.es-btn:active{ transform:scale(0.97); }
.es-btn--sm{ height:36px; padding:0 16px; font-size:var(--fs-sm); }
.es-btn--lg{ height:56px; padding:0 30px; font-size:var(--fs-lg); }
.es-btn--block{ width:100%; }
.es-btn--primary{ background:var(--brand-aurora); color:var(--text-on-brand); box-shadow:var(--glow-brand); font-weight:var(--fw-bold); }
.es-btn--secondary{ background:var(--surface-card); color:var(--text-1); border-color:var(--line-strong); }

/* Badge */
.es-badge{
  display:inline-flex; align-items:center; gap:6px; font-family:var(--font-body);
  font-weight:var(--fw-semibold); font-size:var(--fs-xs); line-height:1;
  padding:5px 10px; border-radius:var(--radius-pill); border:1px solid transparent; white-space:nowrap;
}
.es-badge--live{ background:var(--tint-aqua); color:var(--live); }
.es-badge--listen{ background:var(--tint-lilac); color:var(--brand-lilac); }
.es-badge--speak{ background:var(--tint-sky); color:var(--brand-sky); }
.es-badge__dot{ width:7px; height:7px; border-radius:50%; background:currentColor; }
.es-badge__dot--pulse{ animation:es-badge-pulse 1.8s var(--ease-calm) infinite; }
@keyframes es-badge-pulse{ 0%{ box-shadow:0 0 0 0 rgba(116,224,192,0.5);} 70%{ box-shadow:0 0 0 7px rgba(116,224,192,0);} 100%{ box-shadow:0 0 0 0 rgba(116,224,192,0);} }

/* Card */
.es-card{
  background:var(--surface-card); border:1px solid var(--border-card);
  border-radius:var(--radius-xl); box-shadow:var(--shadow-md), var(--sheen-top);
  padding:24px; color:var(--text-2);
  transition:transform var(--dur-base) var(--ease-calm), box-shadow var(--dur-base) var(--ease-calm);
}
.es-card--interactive{ cursor:pointer; }
.es-card--interactive:hover{ transform:translateY(-3px); box-shadow:var(--shadow-lg), var(--sheen-top); border-color:var(--line-strong); }
.es-card--aurora{ position:relative; overflow:hidden; border-color:transparent; }
.es-card--aurora::before{
  content:''; position:absolute; inset:0; padding:1px; border-radius:inherit;
  background:var(--brand-aurora); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; opacity:0.6; pointer-events:none;
}
.es-card--pad-lg{ padding:32px; }

/* Waveform */
.es-wave{ display:inline-flex; align-items:center; gap:4px; height:var(--_h,40px); }
.es-wave__bar{
  width:4px; border-radius:var(--radius-pill); background:var(--brand-sky);
  transform-origin:center; height:30%;
}
.es-wave--active .es-wave__bar{ animation:es-wave-bounce var(--_dur,900ms) var(--ease-calm) infinite; }
@keyframes es-wave-bounce{ 0%,100%{ height:24%; } 50%{ height:100%; } }

/* ============================================================
   Page layout
   ============================================================ */

.wrap { max-width:1180px; margin:0 auto; padding:0 clamp(20px,5cqw,40px); }
.radial-bg { background:radial-gradient(60% 40% at 12% 0%, rgba(122,44,245,0.12), transparent 60%), radial-gradient(50% 36% at 92% 8%, rgba(242,64,158,0.10), transparent 60%), var(--bg-app); }
.container-sizing { container-type: inline-size; }

header.site-header {
  position:sticky; top:0; z-index:40; background:rgba(246,243,254,0.82);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-bottom:1px solid var(--line-subtle);
}
.nav-inner { max-width:1180px; margin:0 auto; padding:0 clamp(20px,5cqw,40px); height:72px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:flex; align-items:center; gap:10px; }
.brand img.icon { height:40px; width:40px; object-fit:contain; display:block; }
.brand img.wordmark { height:28px; width:auto; display:block; }
.nav-links { display:flex; align-items:center; gap:4px; }
.nav-links a, .drawer-links a { padding:8px 14px; border-radius:999px; font-size:15px; font-weight:600; color:var(--text-2); }
.nav-links a.active, .drawer-links a.active { color:var(--listen); background:var(--tint-lilac); }
.lang-toggle { display:flex; padding:3px; border-radius:999px; background:var(--surface-card); border:1px solid var(--line); }
.lang-toggle button { border:0; cursor:pointer; height:32px; min-width:40px; padding:0 12px; border-radius:999px; font-weight:700; color:var(--text-2); background:transparent; }
.lang-toggle button.active { background:var(--text-1); color:#fff; }
.lang-toggle button[data-lang="en"] { font-family:'Hanken Grotesk',sans-serif; font-size:13px; }
.lang-toggle button[data-lang="ar"] { font-family:'IBM Plex Sans Arabic',sans-serif; font-size:14px; }
.nav-right { display:flex; align-items:center; gap:10px; }
.hamburger { width:44px; height:44px; border-radius:999px; border:1px solid var(--line); background:var(--surface-card); color:var(--text-1); display:flex; align-items:center; justify-content:center; cursor:pointer; }

@media (min-width: 960px) { .mobile-only { display:none !important; } }
@media (max-width: 959.98px) { .desktop-only { display:none !important; } }

.eyebrow { font-family:var(--eyebrow-font); font-size:12px; letter-spacing:var(--ls-eyebrow); text-transform:uppercase; color:var(--listen); font-weight:700; }

/* Hero */
.hero { padding:clamp(48px,8cqw,96px) clamp(20px,5cqw,40px) clamp(64px,9cqw,112px); display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%,440px),1fr)); gap:clamp(40px,6cqw,72px); align-items:center; }
.hero-copy { display:flex; flex-direction:column; align-items:flex-start; gap:24px; }
.hero-copy h1 { font-weight:800; font-size:clamp(44px,7cqw,84px); line-height:var(--lh-head); letter-spacing:var(--ls-head); text-wrap:balance; }
.hero-copy h1 .grad { background:linear-gradient(120deg,#5B2FE6,#9433E0,#D13BB6); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-copy p.sub { max-width:34em; font-size:clamp(17px,1.6cqw,20px); line-height:1.6; color:var(--text-3); }
.hero-ctas { display:flex; flex-wrap:wrap; gap:12px; margin-top:4px; }
.hero-note { font-family:var(--eyebrow-font); font-size:12px; letter-spacing:var(--ls-eyebrow); text-transform:uppercase; color:var(--text-3); }

.hero-visual { position:relative; display:flex; justify-content:center; align-items:center; min-height:460px; }
.hero-visual-glow { position:absolute; width:min(92%,460px); aspect-ratio:1; border-radius:50%; background:radial-gradient(circle, rgba(194,59,239,0.22), rgba(122,44,245,0.08) 55%, transparent 70%); }
.call-card-wrap { position:relative; width:min(100%,360px); }
.call-card-body { display:flex; flex-direction:column; align-items:center; gap:22px; text-align:center; }
.call-card-top { display:flex; width:100%; justify-content:space-between; align-items:center; }
.call-clock { font-family:var(--font-mono); font-size:13px; color:var(--text-3); }
.rings-wrap { position:relative; width:180px; height:180px; display:flex; align-items:center; justify-content:center; }
.ring { position:absolute; border-radius:50%; border:1.5px solid rgba(122,44,245,0.28); animation:ae-breathe 4.2s var(--ease-calm) infinite; }
.ring:nth-child(1){ inset:-18px; }
.ring:nth-child(2){ inset:0px; border-color:rgba(122,44,245,0.21); animation-delay:.6s; }
.ring:nth-child(3){ inset:18px; border-color:rgba(122,44,245,0.14); animation-delay:1.2s; }
.ring-core { position:relative; width:112px; height:112px; border-radius:50%; background:var(--brand-aurora); box-shadow:var(--glow-brand); }
.call-card-title { font-family:var(--font-display); font-weight:700; font-size:20px; color:var(--text-1); }
.call-card-sub { font-size:14px; color:var(--text-3); }

/* About */
.about { padding:clamp(56px,8cqw,104px) clamp(20px,5cqw,40px); }
.about-top { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%,420px),1fr)); gap:clamp(32px,5cqw,72px); align-items:start; }
.about-head { display:flex; flex-direction:column; gap:16px; }
.about-head h2 { font-weight:800; font-size:clamp(32px,4.2cqw,50px); line-height:var(--lh-head); letter-spacing:var(--ls-head); text-wrap:balance; }
.about-body { display:flex; flex-direction:column; gap:20px; font-size:18px; line-height:1.7; color:var(--text-2); }
.about-strip { margin-top:clamp(40px,6cqw,64px); display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%,240px),1fr)); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:28px; overflow:hidden; }
.about-strip > div { background:var(--surface-card); padding:28px; display:flex; flex-direction:column; gap:8px; }
.strip-label { font-family:var(--eyebrow-font); font-size:12px; letter-spacing:var(--ls-eyebrow); text-transform:uppercase; color:var(--text-3); }
.strip-value { font-family:var(--font-display); font-weight:700; font-size:21px; line-height:1.35; color:var(--text-1); }

/* Features */
.features-section { background:var(--bg-deep); border-block:1px solid var(--line-subtle); }
.section-pad { padding:clamp(64px,9cqw,112px) clamp(20px,5cqw,40px); }
.section-head { display:flex; flex-direction:column; gap:14px; max-width:640px; margin-bottom:clamp(36px,5cqw,56px); }
.section-head h2 { font-weight:800; font-size:clamp(32px,4.2cqw,50px); line-height:var(--lh-head); letter-spacing:var(--ls-head); }
.section-head p { font-size:18px; line-height:1.65; color:var(--text-3); }
.features-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%,320px),1fr)); gap:20px; }
.feature-card { display:flex; flex-direction:column; gap:14px; }
.feature-icon { width:48px; height:48px; border-radius:16px; background:var(--tint-lilac); color:var(--listen); display:flex; align-items:center; justify-content:center; }
.feature-card h3 { font-weight:700; font-size:21px; }
.feature-card p { font-size:16px; line-height:1.6; color:var(--text-3); }

/* How it works */
.steps-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%,240px),1fr)); gap:clamp(24px,3cqw,36px); }
.step { display:flex; flex-direction:column; gap:14px; padding-top:22px; border-top:2px solid var(--line); }
.step-n { font-family:var(--font-display); font-weight:800; font-size:44px; line-height:1; background:linear-gradient(120deg,#5B2FE6,#9433E0,#D13BB6); -webkit-background-clip:text; background-clip:text; color:transparent; align-self:flex-start; }
.step h3 { font-weight:700; font-size:21px; }
.step p { font-size:16px; line-height:1.6; color:var(--text-3); }

/* Safety */
.safety-section { background:var(--bg-deep); border-block:1px solid var(--line-subtle); }
.safety-inner { display:flex; flex-direction:column; gap:clamp(48px,7cqw,88px); }
.roles-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%,300px),1fr)); gap:20px; }
.role-card { display:flex; flex-direction:column; gap:14px; }
.role-card h3 { font-weight:700; font-size:22px; }
.role-card p { font-size:16px; line-height:1.6; color:var(--text-3); }
.priv-faq-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%,420px),1fr)); gap:clamp(32px,5cqw,64px); align-items:start; }
.priv-col, .faq-col { display:flex; flex-direction:column; gap:18px; }
.priv-col h2, .faq-col h2 { font-weight:800; font-size:clamp(28px,3.4cqw,40px); line-height:var(--lh-head); letter-spacing:var(--ls-head); }
.facts-list { display:flex; flex-direction:column; gap:0; margin-top:6px; }
.fact-row { display:flex; gap:14px; align-items:flex-start; padding:16px 0; border-bottom:1px solid var(--line); }
.fact-check { flex:none; width:26px; height:26px; border-radius:50%; background:var(--tint-aqua); color:var(--live); display:flex; align-items:center; justify-content:center; margin-top:1px; }
.fact-text { font-size:16px; line-height:1.6; color:var(--text-2); }
.faq-list { display:flex; flex-direction:column; gap:10px; }
.faq-item { background:var(--surface-card); border:1px solid var(--line); border-radius:20px; overflow:hidden; }
.faq-item button { width:100%; min-height:60px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; border:0; background:transparent; cursor:pointer; text-align:start; font-family:var(--font-body); font-weight:700; font-size:16px; color:var(--text-1); }
.faq-item svg.chev { flex:none; color:var(--text-3); transition:transform 300ms; }
.faq-item.open svg.chev { transform:rotate(180deg); }
.faq-answer { padding:0 20px 18px; font-size:15px; line-height:1.65; color:var(--text-3); display:none; }
.faq-item.open .faq-answer { display:block; }

/* CTA */
.cta-section { padding:clamp(64px,9cqw,112px) clamp(20px,5cqw,40px); }
.cta-band { position:relative; overflow:hidden; border-radius:36px; background:var(--brand-night-wash); padding:clamp(40px,7cqw,88px) clamp(24px,6cqw,72px); display:flex; flex-direction:column; align-items:center; text-align:center; gap:22px; box-shadow:var(--shadow-xl); }
.cta-glow { position:absolute; inset:auto -10% -55% -10%; height:120%; background:radial-gradient(50% 50% at 50% 50%, rgba(194,59,239,0.45), transparent 70%); pointer-events:none; }
.cta-band img.icon { position:relative; width:clamp(72px,9cqw,104px); height:auto; filter:drop-shadow(0 12px 32px rgba(194,59,239,0.45)); }
.cta-band img.wordmark { position:relative; height:clamp(36px,5cqw,52px); width:auto; object-fit:contain; }
.cta-band h2 { position:relative; font-weight:800; font-size:clamp(32px,4.6cqw,56px); line-height:var(--lh-head); letter-spacing:var(--ls-head); color:#F4F1FF; max-width:16em; text-wrap:balance; }
.cta-band p { position:relative; max-width:36em; font-size:18px; line-height:1.6; color:#D9D2F5; }
.store-row { position:relative; display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:8px; }
.store-btn { display:flex; align-items:center; gap:12px; height:60px; padding:0 24px; border-radius:999px; background:#FFFFFF; color:#18112F; }
.store-btn .store-cap { font-size:12px; color:#6C6588; }
.store-btn .store-name { font-weight:700; font-size:17px; }
.cta-note { position:relative; font-family:var(--eyebrow-font); font-size:12px; letter-spacing:var(--ls-eyebrow); text-transform:uppercase; color:#B8AEE0; }

/* Footer */
footer.site-footer { border-top:1px solid var(--line); }
.footer-inner { padding:clamp(48px,6cqw,72px) clamp(20px,5cqw,40px) 32px; }
.footer-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%,200px),1fr)); gap:36px; }
.footer-brand { display:flex; flex-direction:column; gap:14px; }
.footer-brand .brand { align-self:flex-start; }
.footer-brand p { font-size:15px; line-height:1.6; color:var(--text-3); max-width:22em; }
.footer-col { display:flex; flex-direction:column; gap:12px; }
.footer-col a { font-size:15px; color:var(--text-2); }
.footer-col a.mail { align-self:flex-start; }
.social-row { display:flex; gap:8px; margin-top:4px; }
.social-row a { width:44px; height:44px; border-radius:50%; border:1px solid var(--line); background:var(--surface-card); color:var(--text-2); display:flex; align-items:center; justify-content:center; transition:color .2s ease, border-color .2s ease, background .2s ease; }
.social-row a:hover { color:var(--text-1); border-color:var(--text-3); }
.footer-bottom { margin-top:48px; padding-top:22px; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; font-size:13px; color:var(--text-3); }

/* Mobile drawer */
.drawer-backdrop { position:fixed; inset:0; z-index:60; background:var(--surface-overlay); backdrop-filter:blur(4px); display:none; }
.drawer { position:fixed; top:0; bottom:0; inset-inline-end:0; z-index:61; width:min(86%,340px); background:var(--bg-app); box-shadow:var(--shadow-xl); display:flex; flex-direction:column; padding:20px 22px 28px; box-sizing:border-box; transform:translateX(100%); transition:transform var(--dur-base) var(--ease-calm); }
html[dir="rtl"] .drawer { transform:translateX(-100%); }
body.drawer-open .drawer-backdrop { display:block; }
body.drawer-open .drawer { transform:translateX(0); }
.drawer-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
.drawer-close { width:44px; height:44px; border-radius:999px; border:1px solid var(--line); background:var(--surface-card); color:var(--text-1); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.drawer-links { display:flex; flex-direction:column; gap:4px; }
.drawer-links a { min-height:52px; display:flex; align-items:center; font-family:var(--font-display); font-weight:700; font-size:20px; padding:0 16px; border-radius:16px; }
.drawer-cta { margin-top:auto; }

/* Legal pages (Terms / Privacy) */
.legal-main { padding:clamp(40px,6cqw,72px) clamp(20px,5cqw,40px) clamp(64px,8cqw,96px); }
.legal-article { max-width:720px; margin:0 auto; display:flex; flex-direction:column; gap:16px; }
.legal-article h1 { font-weight:800; font-size:clamp(32px,4.2cqw,48px); line-height:var(--lh-head); letter-spacing:var(--ls-head); margin-top:8px; }
.legal-article h2 { font-weight:700; font-size:clamp(20px,2.2cqw,24px); margin-top:20px; color:var(--text-1); }
.legal-article p { font-size:16px; line-height:1.7; color:var(--text-2); }
.legal-article ul { margin:0; padding-inline-start:1.25em; display:flex; flex-direction:column; gap:8px; }
.legal-article li { font-size:16px; line-height:1.65; color:var(--text-2); }
.legal-muted { color:var(--text-3) !important; font-size:15px !important; }
.legal-rule { border:0; border-top:1px solid var(--line); margin:12px 0 4px; width:100%; }
