@charset "UTF-8";

/* Snores: the app's always-dark night palette (midnight, night, dusk), moonlight text and the
   lamplight gradient (honey, amber, ember), in SF Pro Rounded. Intensity colours mark the timeline:
   quiet (mint), light (periwinkle), loud (amber) and epic (coral). */
:root {
  color-scheme: dark;
  --bg: #0a0e1c;
  --surface: #141a33;
  --surface-soft: #1e2646;
  --text: #eef0f8;
  --muted: #9aa3c2;
  --accent: #ffb547;
  --honey: #ffd98f;
  --ember: #ff8a3d;
  --line: #2a3358;
  --quiet: #4fd1a5;
  --light: #8c9bff;
  --loud: #ffb547;
  --epic: #ff6b57;
  --lamplight: linear-gradient(135deg, #ffd98f 0%, #ffb547 50%, #ff8a3d 100%);
  --radius: 24px;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 7px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--bg); }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; inset-inline-start: 20px; padding: 12px 24px; background: var(--accent); color: var(--bg); font-weight: 700; z-index: 10; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.product-brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.product-brand img { border-radius: 10px; }
/* The wordmark is always lowercase, heavy and rounded. */
.product-brand span { font-size: 1.85rem; font-weight: 800; letter-spacing: -.045em; line-height: .92; }
.site-header nav { display: flex; align-items: center; gap: 34px; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.site-header nav > a:not(.nav-download) { color: var(--muted); }
.nav-sections { display: flex; gap: 26px; }
.nav-sections a { color: var(--muted); }
.nav-sections a[aria-current] { color: var(--text); }
.site-header nav a:hover { color: var(--accent); }
.nav-download { border: 1px solid #3a4572; border-radius: 50px; padding: 10px 22px; }
.nav-download span { margin-inline-start: 16px; }
.language-menu summary { display: flex; align-items: center; gap: 7px; color: var(--muted); cursor: pointer; list-style: none; white-space: nowrap; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after { content: ""; width: 6px; height: 6px; margin-inline-start: 2px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.language-menu summary:hover, .language-menu[open] summary { color: var(--accent); }
.language-menu summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 7px; border-radius: 4px; }
.language-menu ul { position: absolute; top: calc(100% - 12px); inset-inline-end: 0; z-index: 5; width: min(600px, 100%); margin: 0; padding: 10px; columns: 3; column-gap: 4px; list-style: none; white-space: normal; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 18px 40px #00000080; }
.language-menu li { break-inside: avoid; }
.language-menu li a { display: block; padding: 6px 12px; border-radius: 10px; }
.language-menu li a:hover { background: var(--surface-soft); }
.language-menu [aria-current] { color: var(--accent); font-weight: 650; }

/* A quiet starfield fades into midnight behind the top of every page. */
body { background:
    radial-gradient(1.5px 1.5px at 12% 180px, #ffffffb3 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 520px, #ffffff80 50%, transparent 51%),
    radial-gradient(2px 2px at 46% 90px, #ffffffa6 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 400px, #ffffff66 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 71% 140px, #ffffff99 50%, transparent 51%),
    radial-gradient(1px 1px at 84% 330px, #ffffff80 50%, transparent 51%),
    radial-gradient(2px 2px at 93% 80px, #ffffffb3 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 640px, #ffffff59 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 700px, #ffffff59 50%, transparent 51%),
    linear-gradient(180deg, #141a33 0, var(--bg) 860px) no-repeat;
  background-color: var(--bg); }

.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; min-height: 720px; padding-block: 64px 72px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 30px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .13em; line-height: 1.5; }
.mini-line { width: 25px; height: 2px; background: var(--accent); flex-shrink: 0; }
h1 { margin-bottom: 28px; font-size: clamp(3.6rem, 6.6vw, 6rem); font-weight: 800; line-height: 1.02; letter-spacing: -.055em; }
h1 em, h2 em { font-style: normal; background: var(--lamplight); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-description { max-width: 450px; margin-bottom: 30px; color: var(--muted); font-size: 1.125rem; line-height: 1.7; }
.store-button { display: inline-flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 26px; border-radius: 18px; background: var(--lamplight); color: var(--bg); box-shadow: 0 12px 32px #ffb54733; }
.store-button span { display: flex; flex-direction: column; line-height: 1.15; }
.store-button small { font-size: .75rem; font-weight: 600; }
.store-button strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.availability { margin: 14px 0 0; color: var(--muted); font-size: .8125rem; }
.explore-link { display: inline-flex; align-items: center; gap: 25px; margin-top: 46px; font-size: .875rem; font-weight: 600; }
.explore-link span, .explore-link:hover { color: var(--accent); }
.explore-link span { font-size: 1.4rem; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-width: 0; min-height: 520px; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; inset: 2% -6%; z-index: -2; background: radial-gradient(circle at 50% 55%, #ffb5472e 0, #8c9bff1a 38%, transparent 66%); }
.phone-hero { width: min(330px, 76%); height: auto; filter: drop-shadow(0 30px 40px #00000080); }
.logo-float { position: absolute; top: 4%; right: 6%; z-index: 2; width: clamp(72px, 8vw, 96px); border-radius: 22%; box-shadow: 0 14px 30px #00000080; animation: logo-bob 5s ease-in-out infinite; }
@keyframes logo-bob { 0%, 100% { transform: translateY(0) rotate(6deg); } 50% { transform: translateY(-10px) rotate(-3deg); } }

.benefit-strip { border-block: 1px solid var(--line); background: var(--bg); }
.benefit-strip > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 25px; }
.benefit-strip .wrap > span { max-width: 180px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.benefit-strip ul { display: flex; flex: 1; justify-content: space-between; gap: 24px; margin: 0; padding: 0; list-style: none; font-size: 1.05rem; font-weight: 600; }

.features { padding-block: 110px 120px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 66px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -14px; color: var(--accent); }
.section-heading h2, .focus-copy h2, .details h2, .download-section h2, .privacy-copy h2 { margin: 0; font-size: clamp(2.75rem, 4.5vw, 4.2rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.05; }
.section-heading > p:last-child { max-width: 430px; margin: 0 0 6px; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.feature-grid article { min-height: 285px; padding: 38px 34px 40px; border-inline-end: 1px solid var(--line); }
.feature-grid article:first-child { padding-inline-start: 0; }
.feature-grid article:last-child { border-inline-end: 0; padding-inline-end: 0; }
.feature-number { display: block; margin-bottom: 28px; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .13em; }
.feature-grid h3 { margin-bottom: 17px; font-size: 1.5rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.22; }
.feature-grid p { color: var(--muted); }

.focus-section { overflow: hidden; background: linear-gradient(160deg, #1e2646, #141a33 60%, #0f1428); }
.focus-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; min-height: 680px; padding-block: 90px; }
.focus-copy .eyebrow { color: var(--accent); }
.focus-copy > p:not(.eyebrow) { max-width: 480px; margin: 30px 0; color: var(--muted); }
.focus-copy ul { margin: 0 0 34px; padding: 0; list-style: none; }
.focus-copy li { position: relative; padding-block: 13px; padding-inline: 28px 0; border-bottom: 1px solid var(--line); }
.focus-copy li::before { content: "✓"; position: absolute; inset-inline-start: 2px; color: var(--quiet); font-weight: 800; }
.text-link { display: inline-flex; gap: 24px; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-weight: 700; }
.text-link:hover { color: var(--accent); }
.focus-visual { justify-self: center; display: grid; justify-items: center; gap: 30px; width: min(360px, 100%); margin: 0; }
.focus-visual > img { width: 78%; height: auto; filter: drop-shadow(0 24px 30px #00000066); }
/* The four kinds of moment Snores marks on a night's timeline, as a simple legend (not app UI). */
.intensity { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; }
.intensity li { display: grid; justify-items: center; gap: 10px; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.intensity li::before { content: ""; width: 14px; height: var(--h); border-radius: 7px; background: var(--c); }
.intensity li:nth-child(1) { --c: var(--quiet); --h: 14px; }
.intensity li:nth-child(2) { --c: var(--light); --h: 30px; }
.intensity li:nth-child(3) { --c: var(--loud); --h: 46px; }
.intensity li:nth-child(4) { --c: var(--epic); --h: 62px; }
.intensity { align-items: end; }
.focus-visual figcaption { color: var(--muted); font-size: .8rem; text-align: center; }

.health-note { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; margin-block: 100px 0; padding: 30px 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.health-note img { width: 88px; }
.health-note h2 { margin-bottom: 10px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.health-note p { max-width: 860px; margin: 0; color: var(--muted); }
.health-note p + p { margin-top: 10px; }
.health-note strong { color: var(--text); }

.details { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding-block: 115px; }
.details .eyebrow { color: var(--accent); }
.details > div:first-child > img { width: min(280px, 70%); height: auto; margin-top: 46px; filter: drop-shadow(0 20px 26px #00000066); }
.detail-list article { padding: 26px 0; border-bottom: 1px solid var(--line); }
.detail-list article:first-child { padding-top: 0; }
.detail-list h3 { margin-bottom: 8px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.025em; }
.detail-list p { margin-bottom: 0; color: var(--muted); }

.privacy-section { border-block: 1px solid var(--line); background: var(--surface); }
.privacy-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; padding-block: 105px; }
.privacy-copy .eyebrow { color: var(--accent); }
.privacy-copy > p:not(.eyebrow) { max-width: 460px; margin: 28px 0 0; color: var(--muted); }
.privacy-copy .text-link { margin-top: 30px; }
.privacy-list { margin: 0; padding: 0; list-style: none; }
.privacy-list li { position: relative; padding-block: 18px; padding-inline: 34px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.privacy-list li:first-child { padding-top: 0; }
.privacy-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 27px; width: 12px; height: 12px; border-radius: 50%; background: var(--quiet); box-shadow: 0 0 0 5px #4fd1a51f; }
.privacy-list li:first-child::before { top: 9px; }
.privacy-list strong { color: var(--text); }

.download-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; padding-block: 105px; }
.download-section .eyebrow { color: var(--accent); }
.download-section > div > p:last-child { margin: 24px 0 0; color: var(--muted); }
.download-action { justify-self: end; min-width: min(100%, 360px); }
.download-button { display: flex; justify-content: space-between; gap: 40px; padding: 19px 23px; border-radius: 100px; background: var(--lamplight); color: var(--bg); font-weight: 800; box-shadow: 0 12px 28px #ffb54733; }
.download-moon { width: 150px; margin: 0 auto 22px; filter: drop-shadow(0 18px 24px #00000066); }
.download-action p { margin: 12px 0 0; color: var(--muted); font-size: .8rem; text-align: center; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.site-footer .product-brand span { color: var(--text); font-size: 1.2rem; }
.studio-credit { margin: 0; }
.studio-credit a { display: inline-flex; align-items: center; gap: 10px; }
.studio-credit strong { color: var(--text); font-weight: 700; }
.site-footer > div { display: flex; justify-content: flex-end; gap: 24px; }
.site-footer a:hover { color: var(--accent); }
.languages { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.languages [aria-current] { color: var(--text); font-weight: 650; }

.policy-shell { display: grid; grid-template-columns: 280px 1fr; gap: 90px; padding-block: 90px 120px; }
.policy-shell aside { position: sticky; top: 32px; align-self: start; }
.policy-shell aside .eyebrow { color: var(--accent); }
.policy-shell aside h1 { margin-bottom: 22px; font-size: 4rem; }
.policy-shell aside > p:not(.eyebrow) { color: var(--muted); }
.policy-shell aside nav { display: grid; gap: 7px; margin-top: 32px; }
.policy-shell aside nav a { color: var(--muted); }
.policy-shell aside nav a:hover { color: var(--accent); }
.policy-content section { position: relative; padding: 38px 0 42px 64px; border-bottom: 1px solid var(--line); }
.policy-content section:first-child { padding-top: 0; }
.policy-content section > span { position: absolute; top: 43px; left: 0; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.policy-content section:first-child > span { top: 5px; }
.policy-content h2 { margin-bottom: 14px; font-size: 1.65rem; font-weight: 700; letter-spacing: -.035em; }
.policy-content p { margin-bottom: 0; color: var(--muted); }
.policy-content p + p { margin-top: 16px; }
.policy-content strong { color: var(--text); }
.policy-content a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.policy-content a:hover { color: var(--accent); }

/* Other languages (scripts/build.py): hyphenate long words in headings; keep Arabic letters joined and CJK untracked. */
:not(:lang(en)) > :is(h1, h2, h3) { hyphens: auto; overflow-wrap: break-word; }
:is(:lang(ar), :lang(he), :lang(hi), :lang(th), :lang(ja), :lang(ko), :lang(zh)) :is(h1, h2, h3, p, li, span, strong, small, a, figcaption) { letter-spacing: 0; }
:is(:lang(ar), :lang(he), :lang(hi), :lang(th), :lang(ja), :lang(ko), :lang(zh)) .site-header .product-brand span { letter-spacing: -.055em; }
:is(:lang(ar), :lang(he), :lang(ja), :lang(ko), :lang(zh)) :is(h1, h2) { line-height: 1.25; }
:is(:lang(hi), :lang(th)) :is(h1, h2) { line-height: 1.4; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; overflow-wrap: anywhere; }
:lang(ko) :is(h1, h2, h3, p, li) { word-break: keep-all; }

@media (max-width: 1000px) {
  .site-header nav { gap: 22px; }
}


@media (max-width: 900px) {
  .wrap { width: min(100% - 64px, 1280px); }
  .hero { min-height: 640px; }
  .focus-layout, .privacy-layout { gap: 50px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .studio-credit { grid-row: 2; grid-column: 1 / -1; justify-self: center; }
  .policy-shell { grid-template-columns: 220px 1fr; gap: 48px; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { flex-wrap: wrap; padding-block: 20px; }
  .site-header nav { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
  .language-menu ul { width: 100%; columns: 2; }
  .nav-download { padding: 8px 15px; }
  .hero { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding-block: 58px 40px; }
  h1 { font-size: clamp(3.1rem, 14.5vw, 5rem); }
  .hero-visual { min-height: 0; padding-block: 20px; }
  .phone-hero { width: min(260px, 68%); }
  .benefit-strip > .wrap { display: block; }
  .benefit-strip .wrap > span { display: block; max-width: none; margin-bottom: 14px; }
  .benefit-strip ul { flex-wrap: wrap; justify-content: flex-start; gap: 10px 25px; }
  .features { padding-block: 78px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .section-heading .eyebrow { grid-column: auto; margin-bottom: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article, .feature-grid article:first-child, .feature-grid article:last-child { min-height: 0; padding: 34px 0; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .feature-grid article:last-child { border-bottom: 0; }
  .focus-layout { grid-template-columns: 1fr; gap: 60px; padding-block: 72px 85px; }
  .focus-visual { width: min(300px, 100%); }
  .health-note { grid-template-columns: 1fr; gap: 16px; margin-top: 72px; padding: 26px 24px; }
  .health-note img { width: 72px; }
  .details, .privacy-layout, .download-section { grid-template-columns: 1fr; gap: 48px; padding-block: 78px; }
  .details > div:first-child > img { width: min(240px, 66%); margin-top: 32px; }
  .download-action { justify-self: stretch; }
  .site-footer { grid-template-columns: 1fr; justify-items: start; }
  .studio-credit { grid-row: auto; grid-column: auto; justify-self: start; }
  .site-footer > div { justify-content: flex-start; }
  .languages { justify-content: flex-start; }
  .policy-shell { grid-template-columns: 1fr; gap: 45px; padding-block: 60px 85px; }
  .policy-shell aside { position: static; }
  .policy-shell aside nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
  .policy-content section { padding-left: 44px; }
}

@media (max-width: 390px) {
  .product-brand span { font-size: 1.55rem; }
  .site-header nav { font-size: .78rem; }
  .nav-download span { margin-inline-start: 7px; }
  .logo-float { width: 64px; }
}

@media (max-width: 350px) {
  .language-menu ul { padding: 8px; }
  .language-menu li a { padding: 6px 8px; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .logo-float { animation: none; }
}

/* Content pages (scripts/build.py): sections, articles, studies and the free tools. */
.footer-explore { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.learn-section { padding-block: 40px 110px; }
.a-kicker { margin: 0 0 6px; color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.a-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.a-card, .a-tool-link { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 46px 22px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: border-color .2s, transform .2s; }
[dir=rtl] .a-card, [dir=rtl] .a-tool-link { padding: 22px 22px 22px 46px; }
.a-card:hover, .a-tool-link:hover { border-color: #ffb54780; transform: translateY(-2px); }
.a-card strong, .a-tool-link strong { font-size: 1.12rem; line-height: 1.3; letter-spacing: -.02em; }
.a-card > span:not(.a-kicker):not(.a-arrow), .a-tool-link > span:not(.a-kicker):not(.a-arrow) { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.a-arrow { position: absolute; top: 20px; inset-inline-end: 20px; color: var(--accent); }
[dir=rtl] .a-arrow { transform: scaleX(-1); }
.a-tool-link { border-color: #ffb54759; background: var(--surface-soft); }
.home-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px 40px; align-items: center; margin-top: 30px; padding: 26px 28px; border-radius: 22px; background: var(--surface-soft); }
.home-more-text { margin: 0; color: var(--muted); }
.home-more .a-card { background: var(--surface); }
.home-links { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 30px 0 0; padding: 0; list-style: none; font-weight: 700; }
.home-links a:hover { color: var(--accent); }
.home-links span { color: var(--accent); }
[dir=rtl] .home-links span { display: inline-block; transform: scaleX(-1); }
.v-faqs { display: grid; gap: 10px; max-width: 900px; }
.v-faq { padding: 4px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.v-faq summary { padding: 14px 0; font-weight: 650; cursor: pointer; }
.v-faq p { margin: 0 0 16px; color: var(--muted); line-height: 1.7; }
.a-article { padding-block: 44px 30px; }
.a-head { max-width: 900px; margin-bottom: 44px; }
.a-head .eyebrow { margin-bottom: 22px; color: var(--accent); }
.a-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.06; }
.a-sub { color: var(--muted); font-size: 1.2rem; line-height: 1.55; }
.a-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; color: var(--muted); font-size: .88rem; }
.a-breadcrumb a:hover { color: var(--accent); }
.a-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 60px; align-items: start; }
.a-body { max-width: 780px; }
.a-body > * { margin-block: 0 22px; }
.a-p, .a-list li, .a-steps li { color: #d3d8ea; font-size: 1.06rem; line-height: 1.75; }
.a-h { margin-top: 48px; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -.035em; }
.a-link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.a-list { padding-inline-start: 1.2em; }
.a-list li + li { margin-top: 8px; }
.a-list li::marker { color: var(--accent); }
.a-steps, .a-answer, .a-study, .a-app, .a-exercise { padding: 24px 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.a-steps h3, .a-study h3, .a-app h3, .a-exercise h3 { margin-bottom: 10px; font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.a-steps ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.a-steps li { display: flex; gap: 14px; }
.a-num { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lamplight); color: var(--bg); font-size: .9rem; font-weight: 800; }
.a-note { padding: 22px 24px; border-inline-start: 4px solid var(--c); border-radius: 18px; background: var(--surface); }
.a-note .a-kicker { color: var(--c); }
.a-note h3 { margin-bottom: 6px; font-size: 1.12rem; font-weight: 700; }
.a-note p:last-child { margin: 0; color: var(--muted); }
.a-answer { border-color: #ffb54759; background: var(--surface-soft); }
.a-verdict { margin: 0 0 8px; font-size: 1.35rem; font-weight: 750; line-height: 1.3; letter-spacing: -.02em; }
.a-answer p:last-child, .a-study p, .a-app p { margin-bottom: 0; color: #d3d8ea; }
.a-study p + p { margin-top: 0; }
.a-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.a-chips li { padding: 3px 11px; border-radius: 99px; background: var(--surface-soft); color: var(--muted); font-size: .8rem; font-weight: 600; }
.a-cite-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 14px 0 0 !important; padding-top: 12px; border-top: 1px solid var(--line); font-size: .85rem; }
.a-cite-line a:first-child { color: var(--muted); font-weight: 600; }
.a-cite-line a:first-child:hover { color: var(--accent); }
.a-source { color: var(--accent); font-weight: 650; }
.a-exercise ol { display: grid; gap: 6px; margin: 0; padding-inline-start: 1.3em; color: #d3d8ea; }
.a-exercise li::marker { color: var(--accent); font-weight: 700; }
.a-app { display: flex; gap: 18px; border-color: #ffb54759; background: linear-gradient(160deg, #1e2646, #141a33); }
.a-app img { flex: none; align-self: flex-start; border-radius: 13px; }
.a-app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px !important; }
.a-soon { padding: 6px 14px; border-radius: 99px; background: var(--lamplight); color: var(--bg); font-size: .8rem; font-weight: 800; }
.w-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.w-facts div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.w-facts dt { color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.w-facts dd { margin: 4px 0 0; font-weight: 600; line-height: 1.45; }
.pcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pc { padding: 20px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.pc h3 { margin-bottom: 10px; font-size: 1.05rem; font-weight: 700; }
.pc ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pc li { position: relative; padding-inline-start: 26px; color: #d3d8ea; line-height: 1.5; }
.pc-good li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--quiet); font-weight: 800; }
.pc-watch li::before { content: "!"; position: absolute; inset-inline-start: 4px; color: var(--epic); font-weight: 800; }
.a-table { margin: 0 0 22px; }
.a-table figcaption { margin-bottom: 10px; color: var(--muted); font-size: .9rem; }
.a-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.a-table-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.a-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.a-table th, .a-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.a-table td { color: #d3d8ea; }
.a-table tr:last-child > * { border-bottom: 0; }
.a-table thead th { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.cite { font-size: .72em; line-height: 0; }
.cite a { color: var(--accent); }
.a-keys { padding: 22px 26px; border: 2px solid #ffb54759; border-radius: 22px; background: var(--surface); }
.a-keys ul { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.a-keys li { position: relative; padding-inline-start: 28px; color: #d3d8ea; line-height: 1.6; }
.a-keys li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: var(--lamplight); }
.a-myths { display: grid; gap: 12px; }
.a-myth { padding: 18px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.a-myth p { margin: 0; line-height: 1.6; }
.a-myth-q { font-weight: 650; }
.a-myth-a { margin-top: 8px !important; color: #d3d8ea; }
.a-myth span { display: inline-block; margin-inline-end: 6px; padding: 1px 9px; border-radius: 99px; font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.a-myth-q span { background: #ff6b5726; color: #ff9d8f; }
.a-myth-a span { background: #4fd1a526; color: var(--quiet); }
.a-terms { display: grid; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.a-terms div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
.a-terms div:first-child { border-top: 0; }
.a-terms dt { font-weight: 700; }
.a-terms dd { margin: 0; color: #d3d8ea; line-height: 1.55; }
.a-example { padding: 22px 26px; border: 1px dashed #ffb54780; border-radius: 22px; background: var(--surface-soft); }
.a-example h3 { margin-bottom: 8px; font-size: 1.1rem; font-weight: 700; }
.a-example p:last-child { margin: 0; color: #d3d8ea; line-height: 1.7; }
.a-sources { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.a-sources h2 { font-size: 1.3rem; font-weight: 700; }
.a-sources ol { margin: 0; padding-inline-start: 1.4em; color: var(--muted); font-size: .85rem; }
.a-sources li + li { margin-top: 8px; }
.a-sources a { color: var(--accent); overflow-wrap: anywhere; }
.a-side { position: sticky; top: 30px; display: grid; gap: 20px; }
.a-toc h2 { margin-bottom: 10px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.a-toc ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; border-inline-start: 1px solid var(--line); }
.a-toc a { display: block; padding: 4px 14px; color: var(--muted); font-size: .9rem; }
.a-toc a:hover { color: var(--accent); }
.a-side-app { display: grid; justify-items: start; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.a-side-app img { border-radius: 13px; }
.a-side-app p { margin: 0; color: var(--muted); font-size: .92rem; }
.a-band { grid-template-columns: minmax(0, 1fr) 200px; align-items: center; overflow: hidden; margin-top: 70px; padding: 44px 48px 0; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(160deg, #1e2646, #141a33 60%, #0f1428); }
.a-band > div { padding-bottom: 44px; }
.a-band h2 { font-size: clamp(2rem, 4vw, 3rem); }
.a-band .download-button { display: inline-flex; margin-top: 26px; }
.a-band-phone { width: 190px; align-self: end; margin-bottom: -60px; transform: rotate(-4deg); filter: drop-shadow(0 18px 24px #00000080); }
.a-related { margin-top: 70px; }
.a-related h2 { margin-bottom: 20px; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
.a-disclaimer { max-width: 860px; margin: 44px 0 50px; color: var(--muted); font-size: .82rem; }
[dir=rtl] .download-button span, [dir=rtl] .nav-download span { display: inline-block; }

/* The free tools (assets/js/tools.js) */
.t-tool { display: grid; gap: 18px; padding: 28px 30px; border: 1px solid #ffb54759; border-radius: 24px; background: var(--surface); box-shadow: 0 24px 60px #00000040; }
.t-title { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.t-intro, .t-privacy, .c-note { margin: 0; color: var(--muted); }
.t-privacy, .c-note { font-size: .82rem; }
.t-question, .t-group { margin: 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); }
.t-question legend, .t-group legend { display: flex; gap: 12px; align-items: baseline; padding: 0; font-size: 1.08rem; font-weight: 700; }
.t-group legend { float: inline-start; width: 100%; margin-bottom: 12px; font-size: 1rem; }
.t-step { display: inline-grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-soft); color: var(--accent); font-size: .8rem; }
.t-hint { margin: 6px 0 0 38px; color: var(--muted); font-size: .9rem; }
[dir=rtl] .t-hint { margin: 6px 38px 0 0; }
.t-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.t-option { cursor: pointer; }
.t-option input { position: absolute; opacity: 0; pointer-events: none; }
.t-option span { display: inline-block; padding: 9px 16px; border: 1px solid #3a4572; border-radius: 99px; font-weight: 600; transition: background .15s, border-color .15s; }
.t-option:hover span { border-color: var(--accent); }
.t-option input:checked + span { border-color: transparent; background: var(--lamplight); color: var(--bg); }
.t-option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.t-submit { justify-self: start; padding: 15px 28px; border: 0; border-radius: 99px; background: var(--lamplight); color: var(--bg); font: inherit; font-weight: 800; cursor: pointer; }
.t-submit:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.t-out:empty { display: none; }
.t-out { display: grid; gap: 12px; }
.t-out h3 { margin: 8px 0 0; font-size: 1.3rem; font-weight: 800; }
.t-out > p { margin: 0; color: var(--muted); }
.t-result { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.t-result strong { display: block; font-size: 1.1rem; }
.t-result p { margin: 4px 0 8px; color: #d3d8ea; }
.t-result--doctor { border-color: #ff6b5780; }
.t-result--doctor strong { color: #ff9d8f; }
.t-warn { margin: 0; color: #ff9d8f; font-weight: 600; }
.c-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; clear: both; }
.c-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-fields label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.c-fields input { width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid #3a4572; border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.c-fields input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.c-out { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 22px; align-items: center; padding: 22px; border-radius: 20px; background: var(--bg); }
.c-out:empty { display: none; }
.c-ring { grid-row: span 3; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-soft) 0); }
.c-ring span { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--bg); font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.c-band { margin: 0; color: var(--c); font-size: 1.3rem; font-weight: 800; }
.c-band-text, .c-detail { margin: 0; color: var(--muted); }
.c-detail { font-size: .88rem; }

/* 403.html and 404.html */
.error-page { display: flex; align-items: center; min-height: min(64vh, 680px); padding-block: 72px 96px; }
.error-copy { max-width: 680px; }
.error-copy .eyebrow { color: var(--accent); }
.error-page h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.error-lede { max-width: 600px; margin: 0 0 36px; color: var(--muted); font-size: 1.15rem; }
.error-links { max-width: 600px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.error-links a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 2px; border-bottom: 1px solid var(--line); font-weight: 600; }
.error-links a:hover { color: var(--accent); }

@media (max-width: 1080px) {
  .site-header { flex-wrap: wrap; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 10px 20px; }
  .site-header .nav-download { position: absolute; top: 26px; inset-inline-end: 0; }
  .a-layout { grid-template-columns: minmax(0, 1fr); }
  .a-side { display: none; }
  .home-more { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-sections { gap: 14px; flex-wrap: wrap; }
  .site-header .nav-download { top: 22px; }
  .a-head h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .a-steps, .a-answer, .a-study, .a-app, .a-exercise, .a-keys, .a-example, .t-tool { padding: 20px 18px; }
  .a-app { flex-direction: column; }
  .w-facts, .c-three { grid-template-columns: minmax(0, 1fr); }
  .a-terms div { grid-template-columns: 1fr; gap: 4px; }
  .a-band { grid-template-columns: 1fr; padding: 32px 24px 0; }
  .a-band-phone { width: 160px; justify-self: center; margin-bottom: -50px; }
  .c-out { grid-template-columns: 1fr; justify-items: start; }
  .c-ring { grid-row: auto; }
  .t-hint { margin-inline-start: 0; }
  .learn-section { padding-bottom: 78px; }
}
@media (max-width: 390px) {
  .site-header .nav-download { padding: 7px 12px; font-size: .78rem; }
  .site-header .nav-download span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .a-card, .a-tool-link, .t-option span { transition: none; } }
