/* OneEar website. Two speaker colors from the app: indigo (left ear) and coral (right ear). */
:root {
  --paper: #f5f5fa;
  --surface: #ffffff;
  --ink: #1a1830;
  --muted: #625f78;
  --line: #e2e1ee;
  --mist: #ebeaf5;
  --indigo: #4c47d6;
  --indigo-deep: #2f2b9e;
  --coral: #e8735f;
  --coral-deep: #c4513e;
  --band: #1d1a3a;
  --band-text: #f1f0fa;
  --band-muted: #b5b2d6;
  --radius-lg: 28px;
  --radius: 18px;
  --display: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121120;
    --surface: #1b1a2d;
    --ink: #f1f0f8;
    --muted: #a6a3bd;
    --line: #2c2a42;
    --mist: #232139;
    --indigo: #8f8bf5;
    --indigo-deep: #4c47d6;
    --coral: #f28c78;
    --coral-deep: #d9604b;
    --band: #1f1c44;
  }
}
html:lang(zh-Hans) { --text: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html:lang(zh-Hant) { --text: system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
html:lang(ja) { --text: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif; }
html:lang(ko) { --text: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
html:lang(ar) { --display: "SF Arabic Rounded", "SF Arabic", "Geeza Pro", "Noto Sans Arabic", system-ui, sans-serif; --text: "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", system-ui, sans-serif; }
html:lang(hi) { --text: "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", system-ui, sans-serif; --display: var(--text); }
html:lang(th) { --text: "Thonburi", "Leelawadee UI", "Noto Sans Thai", system-ui, sans-serif; --display: var(--text); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 16px; }
h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2,
:lang(ar) h1, :lang(ar) h2, :lang(th) h1, :lang(th) h2, :lang(hi) h1, :lang(hi) h2 { letter-spacing: 0; }
:lang(th) body, :lang(hi) body { line-height: 1.75; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.note, .req { color: var(--muted); font-size: .92rem; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; inset-inline-start: 16px; top: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 10px; }

/* Layout */
main > section, .top, .foot { width: min(1160px, 100% - 32px); margin-inline: auto; }
main > section { padding-block: clamp(64px, 10vw, 120px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 650;
  padding: 15px 26px; border-radius: 999px; font-size: 1.02rem; line-height: 1.2;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--indigo-deep); color: #fff; }
.btn:active { transform: scale(.98); }
.btn.small { padding: 9px 16px; font-size: .92rem; }
.btn.light { background: #fff; color: #1a1830; }
.btn.light:hover { background: #f1f0fa; color: #1a1830; }
.text-link { font-weight: 600; }

/* Header */
.top { display: flex; align-items: center; gap: 20px; padding-block: 18px; position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.2rem/1 var(--display); letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.links { display: flex; gap: 26px; margin-inline-start: auto; }
.links a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 550; }
.links a:hover { color: var(--ink); }
.langs { position: relative; }
.top .langs { margin-inline-start: 6px; }
.langs summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: .92rem; font-weight: 550;
  border: 1px solid var(--line);
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { color: var(--ink); background: var(--surface); }
.langs svg, .facts svg, .use-list svg, .feature-grid svg, .plans svg, .privacy svg {
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.langs summary svg { width: 18px; height: 18px; }
.langs ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 50px -18px rgba(26, 24, 48, .35);
  display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 2px; width: max-content; max-width: calc(100vw - 32px);
}
.langs li a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.langs li a:hover { background: var(--mist); }
.langs li a[aria-current] { color: var(--indigo); font-weight: 650; }

/* Hero */
.hero { padding-top: clamp(32px, 6vw, 72px) !important; padding-bottom: clamp(48px, 7vw, 88px) !important; }
.hero-copy { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px 56px; align-items: end; }
h1 {
  font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 850; margin: 0;
}
h1 span { display: block; }
h1 .l1 { color: var(--indigo); }
h1 .l2 { color: var(--coral); }
:lang(ja) h1, :lang(zh-Hans) h1, :lang(zh-Hant) h1, :lang(ko) h1 { line-height: 1.15; font-size: clamp(2.4rem, 6vw, 4.8rem); }
:lang(ar) h1, :lang(th) h1, :lang(hi) h1 { line-height: 1.3; }
.hero-side { display: grid; gap: 20px; justify-items: start; padding-bottom: 8px; }
.hero-side .lead { font-size: 1.12rem; }

/* The stage: one screen split between two ears */
.stage {
  margin: clamp(40px, 6vw, 64px) 0 0; position: relative;
  display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(260px, 30vw, 340px);
  border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  box-shadow: 0 40px 80px -40px rgba(47, 43, 158, .55), 0 30px 70px -45px rgba(196, 81, 62, .5);
}
.half { position: relative; padding: clamp(22px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.half.left { background: linear-gradient(160deg, #5a55e4, #3c37c2); padding-inline-end: clamp(52px, 6vw, 84px); }
.half.right { background: linear-gradient(200deg, #f08571, #dc5e49); padding-inline-start: clamp(52px, 6vw, 84px); }
.ear { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; }
.ear-label { opacity: .8; }
.tag { background: rgba(255, 255, 255, .18); padding: 3px 11px; border-radius: 999px; font-weight: 650; }
.line {
  font: 750 clamp(1.35rem, 2.7vw, 2.15rem)/1.22 var(--display); letter-spacing: -0.015em;
  margin-top: auto; min-height: 2.5em; transition: opacity .35s ease, transform .35s ease;
}
.half.hearing .line { opacity: .92; }
.line .w { opacity: 0; transition: opacity .22s ease; }
.line .w.on { opacity: 1; }
.line.out { opacity: 0; transform: translateY(6px); }
.wave { display: flex; gap: 4px; align-items: center; height: 22px; opacity: 0; transition: opacity .3s; }
.wave i { width: 4px; height: 6px; border-radius: 2px; background: rgba(255, 255, 255, .85); }
.half.speaking .wave { opacity: 1; }
.half.speaking .wave i { animation: bar 0.9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.2s !important; }
.wave i:nth-child(3) { animation-delay: -.45s !important; }
.wave i:nth-child(4) { animation-delay: -.1s !important; }
.wave i:nth-child(5) { animation-delay: -.6s !important; }
@keyframes bar { 0%, 100% { height: 6px; } 50% { height: 20px; } }

.seam { position: absolute; inset-block: 0; left: 50%; width: 0; display: grid; place-items: center; z-index: 2; }
.pod {
  position: absolute; display: flex; gap: 8px; align-items: center; justify-content: center;
  width: clamp(76px, 8vw, 100px); height: clamp(76px, 8vw, 100px); transform: translateX(-50%); left: 0;
  background: #fff; border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .18), 0 14px 30px -10px rgba(26, 24, 48, .45);
}
.bud { width: 24%; fill: #4c47d6; transform: rotate(-14deg); }
.bud rect { fill: #fff; opacity: .9; }
.bud.flip { fill: #e8735f; transform: scaleX(-1) rotate(-14deg); }
.pulse { position: absolute; left: 0; top: calc(50% + clamp(54px, 5.6vw, 66px)); transform: translateX(-50%); display: flex; gap: 6px; }
.pulse i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .0; }
.stage.to-right .pulse i { animation: hop 0.9s ease-in-out; }
.stage.to-left .pulse i { animation: hop 0.9s ease-in-out; }
.stage.to-right .pulse i:nth-child(2), .stage.to-left .pulse i:nth-child(2) { animation-delay: .12s; }
.stage.to-right .pulse i:nth-child(3), .stage.to-left .pulse i:nth-child(3) { animation-delay: .24s; }
.stage.to-left .pulse { flex-direction: row-reverse; }
@keyframes hop { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } 100% { opacity: 0; transform: translateY(0); } }

.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-weight: 550; font-size: .97rem; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { width: 19px; height: 19px; color: var(--indigo); }

/* How it works: a real sequence */
.how h2 { margin-bottom: 40px; }
.how-more { margin-top: 24px; text-align: center; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); }
.steps .num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 22px;
  font: 800 1.15rem/1 var(--display); color: #fff; background: var(--indigo);
}
.steps li:nth-child(2) .num { background: linear-gradient(90deg, var(--indigo) 50%, var(--coral) 50%); }
.steps li:nth-child(3) .num { background: var(--coral); }
.steps p { color: var(--muted); }

/* Uses */
.uses { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px 72px; align-items: start; }
.uses-intro { position: sticky; top: 32px; }
.uses-intro p { color: var(--muted); font-size: 1.1rem; }
.use-list { list-style: none; margin: 0; padding: 0; }
.use-list li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.use-list li:last-child { border-bottom: 1px solid var(--line); }
.use-list svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--mist); color: var(--indigo); }
.use-list li:nth-child(even) svg { color: var(--coral-deep); }
@media (prefers-color-scheme: dark) { .use-list li:nth-child(even) svg { color: var(--coral); } }
.use-list p { color: var(--muted); }

/* Features */
.feature-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 40px; }
.feature-grid svg { width: 28px; height: 28px; color: var(--indigo); margin-bottom: 14px; }
.feature-grid li:nth-child(even) svg { color: var(--coral); }
.feature-grid p { color: var(--muted); font-size: .98rem; }

/* Privacy band */
.privacy { width: 100% !important; max-width: none; background: var(--band); color: var(--band-text); }
.privacy-inner { width: min(1160px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 72px; align-items: start; }
.privacy h2 { color: #fff; grid-column: 1; font-size: clamp(2rem, 4.6vw, 3.4rem); }
.privacy .lead { color: var(--band-muted); grid-column: 1; }
.privacy ul { grid-column: 2; grid-row: 1 / span 3; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.privacy li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 18px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.privacy li svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #fff; color: var(--band); stroke-width: 2.4; }
.privacy .text-link { color: #fff; grid-column: 1; justify-self: start; }

/* Languages */
.languages { text-align: center; }
.languages .lead, .languages .note { margin-inline: auto; }
.hellos { list-style: none; padding: 0; margin: 48px 0 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 36px; }
.hellos li { display: grid; gap: 4px; justify-items: center; }
.hello { font: 800 clamp(1.6rem, 3.6vw, 2.6rem)/1.15 var(--display); letter-spacing: -0.02em; color: var(--indigo); }
.hellos li:nth-child(even) .hello { color: var(--coral); }
.hellos .name { color: var(--muted); font-size: .92rem; }
.languages .note { max-width: 34em; }

/* Pricing */
.pricing .lead { margin-bottom: 40px; }
.plans { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--indigo); box-shadow: 0 30px 60px -36px rgba(76, 71, 214, .55); }
.plan h3 { font-size: 1.05rem; color: var(--muted); }
.plan.featured h3 { color: var(--indigo); }
.price { font: 800 clamp(1.7rem, 2.8vw, 2.2rem)/1.15 var(--display); letter-spacing: -0.02em; margin-top: 8px; }
.alt { color: var(--muted); font-size: .93rem; margin-top: 4px; }
.plan ul { list-style: none; padding: 20px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .97rem; }
.plan li svg { width: 20px; height: 20px; color: var(--indigo); margin-top: 3px; stroke-width: 2.2; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px 72px; align-items: start; }
.faq-intro { display: grid; gap: 8px; justify-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 650; display: flex; justify-content: space-between; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 500 1.4rem/1 var(--display); color: var(--indigo); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 22px 20px; color: var(--muted); }

/* Closing band: the split again */
.cta {
  text-align: center; color: #fff; border-radius: var(--radius-lg); margin-block: 0 clamp(64px, 9vw, 100px);
  padding: clamp(48px, 8vw, 88px) 24px !important;
  background: linear-gradient(100deg, #4c47d6 0%, #4c47d6 49.9%, #e8735f 50.1%, #e8735f 100%);
}
.cta h2 { color: #fff; }
.cta p { opacity: .9; margin: 0 auto 28px; max-width: 30em; font-size: 1.1rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 36px 48px; display: grid; gap: 24px; }
.foot-main { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.foot-main nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.foot a:hover { color: var(--ink); }
.foot .brand { color: var(--ink); font-size: 1.05rem; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-langs a[aria-current] { color: var(--ink); font-weight: 650; }
.fine { color: var(--muted); font-size: .85rem; }

/* Support page */
.support-main { width: min(820px, 100% - 32px); margin-inline: auto; padding-block: 40px 80px; }
.support-main h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: -0.03em; color: var(--indigo); margin-bottom: 24px; }
.support-main h2 { font-size: 1.6rem; margin-top: 48px; }
.contact { display: grid; gap: 16px; justify-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.contact p:first-child { font-size: 1.1rem; }
.support-guide { margin-top: 20px; color: var(--muted); }

/* Guide page */
.guide-main { width: min(820px, 100% - 32px); margin-inline: auto; padding-block: 40px 80px; }
.guide-main h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: -0.03em; color: var(--indigo); margin-bottom: 16px; }
.guide-main > .lead { color: var(--muted); font-size: 1.15rem; margin-bottom: 8px; }
.guide-main .ui-note { color: var(--muted); font-size: .9rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 28px; margin: 28px 0 8px; }
.toc h2 { font-size: 1rem; margin: 0 0 10px; color: var(--muted); }
.toc ol { margin: 0; padding-inline-start: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { text-decoration: none; font-weight: 600; }
main > .guide-section { scroll-margin-top: 90px; margin-top: 52px; padding-block: 0; }
.guide-section h2 { font-size: 1.6rem; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.guide-section h2 .num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--indigo); color: #fff; font: 700 1rem/1 var(--display); }
.guide-section:nth-of-type(even) h2 .num { background: var(--coral); }
.guide-section ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.guide-section li { position: relative; padding-inline-start: 26px; }
.guide-section li::before { content: ""; position: absolute; inset-inline-start: 6px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--indigo); opacity: .55; }
.guide-section .faq-list { margin-top: 4px; }
.guide-end { margin-top: 56px; }

/* Responsive */
@media (max-width: 960px) {
  .links { display: none; }
  .top .langs { margin-inline-start: auto; }
  .hero-copy, .uses, .faq, .privacy-inner { grid-template-columns: 1fr; }
  .uses-intro { position: static; }
  .privacy ul, .privacy h2, .privacy .lead, .privacy .text-link { grid-column: 1; grid-row: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .plans { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { gap: 10px; }
  .top .btn.small { display: none; }
  .stage { grid-template-columns: 1fr; min-height: 0; }
  .half.left, .half.right { padding: 24px 22px; }
  .half.left { padding-bottom: 52px; }
  .half.right { padding-top: 52px; }
  .line { min-height: 2.6em; }
  .seam { inset: 50% 0 auto 0; width: auto; height: 0; left: 0; }
  .pod { left: 50%; top: 0; transform: translate(-50%, -50%); width: 72px; height: 72px; }
  .pulse { display: none; }
  .feature-grid { grid-template-columns: 1fr; gap: 28px; }
  .langs ul { grid-template-columns: 1fr 1fr; }
  .cta { width: calc(100% - 32px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .half.speaking .wave i, .pulse i { animation: none !important; }
  .line, .line .w { transition: none; }
}
