/* =====================================================================
   Sleep Timer – web (alfa1.eu/sleepTimer/), styl uvodni stranky.
   Pravni stranky (privacy_policy, terms, eula, delete_data) maji vlastni
   inline styl jako u Talk Asleep a odkazuji na ne Play Console.

   Barvy = barvy aplikace (SleepTimer app/src/main/res/values/themes.xml):
     bg #0A0E1A, card #131A2C, accent #E9C77B (zlata), text_primary #E8ECF4,
     text_secondary #98A2B6; vybrany chip (Fade out over the last) #474258.
   Vychozi je tmave tema (jako aplikace). Svetle: data-theme="light" na <html>
   (prepinac v liste, ?theme=light v odkazu, ulozi se do localStorage 'st-theme').
   Podpisovy motiv = krivka hlasitosti: rovne, po schodech dolu, ticho,
   kontrola po minute, hlasitost zpet (jako MediaStopper v aplikaci).
   Vzor: tinnitusTone/site.css (17. 11. 2026).
   ===================================================================== */

:root {
  --bg: #0A0E1A;
  --bg-raise: #0E1428;
  --card: #131A2C;
  --card-2: #182036;
  --line: rgba(232, 236, 244, .11);
  --line-strong: rgba(232, 236, 244, .22);
  --ink: #E8ECF4;
  --dim: #98A2B6;
  --head: #F5F7FB;
  --accent: #E9C77B;
  --accent-ink: #0A0E1A;          /* text na tlacitku s accentem */
  --accent-soft: rgba(233, 199, 123, .10);
  --chip-on: #474258;             /* vybrany chip v aplikaci */
  --chip-on-ink: #EDE7FA;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --sans: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1080px;
  --r: 20px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F6F4EF;
  --bg-raise: #EFEBE2;
  --card: #FFFFFF;
  --card-2: #FAF8F4;
  --line: rgba(26, 30, 44, .12);
  --line-strong: rgba(26, 30, 44, .25);
  --ink: #1B2030;
  --dim: #50586A;
  --head: #10131D;
  --accent: #8A6516;              /* tmava zlata: kontrast 5:1 na bile */
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(138, 101, 22, .09);
  --chip-on: #E5E0EE;
  --chip-on-ink: #2A2438;
  --shadow: 0 20px 50px rgba(26, 30, 44, .15);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 22% -140px, rgba(233, 199, 123, .09), transparent 65%),
    linear-gradient(180deg, var(--bg-raise) 0%, var(--bg) 640px);
  background-repeat: no-repeat;
}
:root[data-theme="light"] body {
  background:
    radial-gradient(900px 520px at 22% -140px, rgba(138, 101, 22, .07), transparent 65%),
    linear-gradient(180deg, var(--bg-raise) 0%, var(--bg) 640px);
  background-repeat: no-repeat;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

h1, h2, h3, h4 { color: var(--head); margin: 0; line-height: 1.18; font-weight: 700; letter-spacing: -.018em; }
h1 { font-size: clamp(2.15rem, 5.4vw, 3.55rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
b, strong { color: var(--head); font-weight: 600; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); color: var(--ink); padding: .6rem 1rem; border-radius: 10px; z-index: 20; }
.skip:focus { left: 12px; }

/* ---------- horni lista ---------- */
.topbar { display: flex; align-items: center; gap: .5rem 1.2rem; padding: 18px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--head); text-decoration: none; font-weight: 700; font-size: 1.02rem; margin-right: auto; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.topbar nav { display: flex; gap: 1.3rem; font-size: .95rem; }
.topbar nav a { color: var(--dim); text-decoration: none; font-weight: 500; }
.topbar nav a:hover { color: var(--head); }
@media (max-width: 720px) { .topbar nav { display: none; } }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle svg { width: 18px; height: 18px; stroke: var(--dim); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle:hover svg { stroke: var(--accent); }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: block; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: none; }

/* ---------- tlacitka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 1.06rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 1.02rem 2rem; min-height: 56px; border: 0;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn-main { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px rgba(233, 199, 123, .20); }
:root[data-theme="light"] .btn-main { box-shadow: 0 10px 26px rgba(138, 101, 22, .25); }
.btn-main:hover { transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-line:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.microcopy { font-size: .93rem; color: var(--dim); margin: 1rem 0 0; }
.gp-badge { display: inline-block; margin-top: 1.1rem; }
.gp-badge img { height: 60px; width: auto; display: block; margin-left: -9px; }

/* ---------- sekce ---------- */
section.wrap { padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 680px; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); text-align: center; }
.section-head p { color: var(--dim); margin: .9rem 0 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.divider { border: 0; height: 1px; background: var(--line); margin: 0; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
/* bez JS se nic neschova */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(1.8rem, 5vw, 3.6rem); padding-bottom: clamp(1rem, 3vw, 2rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 500; color: var(--accent);
  border: 1px solid var(--line-strong); background: var(--accent-soft); padding: .38rem .95rem; border-radius: 999px; margin-bottom: 1.3rem;
}
.hero h1 { margin-bottom: 1.15rem; }
.hero .lead { font-size: clamp(1.06rem, 2.1vw, 1.2rem); color: var(--dim); max-width: 34em; margin-bottom: 1.9rem; }
.hero .lead strong { color: var(--ink); }

.phone {
  width: min(300px, 76vw); margin: 0 auto; border-radius: 40px; padding: 11px;
  background: linear-gradient(160deg, #1A2238, #0A0E1A); border: 1px solid rgba(232, 236, 244, .14);
  box-shadow: var(--shadow);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 30px; }
.caption { text-align: center; color: var(--dim); font-size: .9rem; margin: 1rem auto 0; max-width: 30em; }

/* krivka hlasitosti — podpis webu */
.volume-band { margin-top: clamp(2rem, 5vw, 3.2rem); }
.volume-band svg, .fade-card svg { display: block; width: 100%; }
.volume-band svg { height: clamp(70px, 10vw, 110px); }
.vol-base { fill: var(--card); }
.vol-area { fill: var(--accent-soft); }
.vol-line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.vol-back { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 6; opacity: .75; vector-effect: non-scaling-stroke; }
.vol-mark { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.vol-dot { fill: var(--accent); }

/* popisky os jako HTML text pod grafem: SVG s viewBoxem by text na mobilu zmensilo na necitelnych ~5 px */
.ticks { position: relative; height: 1.6em; font-size: .8rem; font-weight: 500; color: var(--dim); margin-top: 6px; }
.ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ticks .l { transform: none; }
.ticks .r { transform: translateX(-100%); }
@media (max-width: 520px) { .volume-band .ticks .opt { display: none; } }

/* ---------- kroky ---------- */
.step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(1.6rem, 4vw, 2.8rem) 0; }
.step.flip .step-visual { order: -1; }
@media (max-width: 780px) { .step { grid-template-columns: 1fr; } .step .step-visual { order: 0 !important; } }
.step-num { display: inline-flex; align-items: center; gap: .8rem; color: var(--accent); font-weight: 600; font-size: .95rem; margin-bottom: .9rem; }
.step-num::after { content: ""; width: 44px; height: 1.5px; background: linear-gradient(90deg, var(--accent), transparent); }
.step h3 { font-size: clamp(1.4rem, 2.8vw, 1.8rem); margin-bottom: .9rem; }
.step p { color: var(--dim); max-width: 36em; }
.step-visual { display: flex; justify-content: center; }
.shot { width: min(280px, 74vw); border-radius: 34px; padding: 10px; background: linear-gradient(160deg, #1A2238, #0A0E1A); border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; border-radius: 25px; }

/* karta ztiseni (jako "Fade out over the last" v aplikaci) */
.fade-card { width: min(430px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.3rem, 3vw, 1.8rem); box-shadow: var(--shadow); }
.fade-card .t { font-weight: 600; color: var(--dim); font-size: .98rem; margin-bottom: .7rem; }
.seg-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--line-strong); border-radius: 999px; overflow: hidden; margin-bottom: 1.3rem; }
.seg-row span { text-align: center; padding: .55rem .2rem; font-size: .95rem; font-weight: 600; border-right: 1.5px solid var(--line-strong); }
.seg-row span:last-child { border-right: 0; }
.seg-row span.on { background: var(--chip-on); color: var(--chip-on-ink); }
.fade-card svg { height: auto; }
.fade-card .ticks { font-size: .78rem; }

/* ranni zprava (jako karta Last stop a oznameni v aplikaci) */
.report { width: min(430px, 100%); display: grid; gap: 14px; }
.report .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.15rem 1.35rem; box-shadow: var(--shadow); }
.report .k { font-size: .92rem; color: var(--dim); margin: 0 0 .35rem; }
.report .v { font-size: 1.08rem; color: var(--head); margin: 0; }
.report .v + .v { margin-top: .35rem; }
.report .notif { display: grid; grid-template-columns: 34px 1fr; gap: .8rem; align-items: start; }
.report .notif .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.report .notif .ic svg { width: 18px; height: 18px; fill: var(--accent); }
.report .notif .v { font-weight: 600; font-size: 1rem; }
.report .notif p { margin: .2rem 0 0; font-size: .93rem; color: var(--dim); }

/* ---------- aplikace, se kterymi to funguje ---------- */
.apps { max-width: 760px; margin: 0 auto; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.chips li { padding: .55rem 1.05rem; border-radius: 12px; border: 1.5px solid var(--line-strong); font-size: .98rem; font-weight: 500; color: var(--ink); }
.chips li.tested { background: var(--chip-on); color: var(--chip-on-ink); border-color: transparent; }
.chips li.tested::before { content: "✓ "; font-weight: 400; }
.apps p { color: var(--dim); }

/* ---------- male veci ---------- */
.quiet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.6rem); }
@media (max-width: 860px) { .quiet-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .quiet-grid { grid-template-columns: 1fr; } }
.quiet-grid .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.quiet-grid .ic svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quiet-grid h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.quiet-grid p { color: var(--dim); margin: 0; font-size: 1rem; }

/* ---------- co umi a neumi ---------- */
.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
@media (max-width: 760px) { .honest { grid-template-columns: 1fr; } }
.honest > div { padding: clamp(1.4rem, 3.5vw, 2.2rem); }
.honest > div + div { border-left: 1px solid var(--line); }
@media (max-width: 760px) { .honest > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.honest h3 { margin-bottom: .9rem; }
.honest ul { margin: 0; padding-left: 1.2rem; color: var(--dim); }
.honest li { margin: .45rem 0; }

/* ---------- cena: zdarma vs. odemknuti ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 860px; margin: 0 auto; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); padding: clamp(1.6rem, 4vw, 2.3rem); display: flex; flex-direction: column; }
.price-card.paid { border-color: var(--line-strong); box-shadow: var(--shadow); }
.price-card .big { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 700; color: var(--head); letter-spacing: -.03em; line-height: 1.1; margin: 0; }
.price-card .big small { display: block; font-size: 1rem; font-weight: 500; color: var(--dim); letter-spacing: 0; margin-top: .45rem; }
.price-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .55rem; }
.price-list li { padding-left: 1.8rem; position: relative; }
.price-list li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.price-note { font-size: .92rem; color: var(--dim); margin: 1.4rem auto 0; text-align: center; max-width: 40em; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: .8rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 3.2rem 1.15rem 1.3rem; font-weight: 600; color: var(--head); position: relative; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 1.3rem 1.25rem; color: var(--dim); }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- zaver ---------- */
.finale { text-align: center; }
.finale h2 { margin-bottom: .9rem; }
.finale p { color: var(--dim); max-width: 34em; margin: 0 auto 1.8rem; }
.finale .gp-badge img { margin: 0 auto; }

/* ---------- paticka ---------- */
footer { border-top: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 3.6rem) 0 calc(2rem + env(safe-area-inset-bottom)); font-size: .97rem; background: var(--bg); }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; } }
footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: .8rem; font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
footer a { color: var(--ink); text-decoration: none; }
footer a:hover { color: var(--accent); text-decoration: underline; }
footer .about { color: var(--dim); font-size: .93rem; margin: 0; }
.footer-bottom { margin: 2.2rem 0 0; color: var(--dim); font-size: .88rem; }

/* ---------- sticky CTA (mobil) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; align-items: center; gap: 1rem; justify-content: space-between;
  padding: .75rem clamp(16px, 4vw, 24px) calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(10, 14, 26, .94); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
  transform: translateY(110%); transition: transform .3s ease;
}
:root[data-theme="light"] .sticky-cta { background: rgba(246, 244, 239, .95); }
.sticky-cta.show { transform: none; }
.sticky-cta .t { font-size: .86rem; color: var(--dim); line-height: 1.35; }
.sticky-cta .t b { display: block; font-size: .98rem; }
.sticky-cta .btn { padding: .7rem 1.3rem; min-height: 48px; font-size: .98rem; white-space: nowrap; }
@media (max-width: 820px) { .sticky-cta { display: flex; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
