:root {
  --indigo: #6366f1;
  --indigo-dark: #4f46e5;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f6f6fb;
  --card: #ffffff;
  --radius: 14px;
  /* Indigo for TEXT (labels, links): readable on both themes (contrast >= 4.5:1); --indigo stays for fills/buttons */
  --accent-text: #4f46e5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f4f6;
    --muted: #9ca3af;
    --line: #2a2d3a;
    --bg: #0f1117;
    --bg-alt: #151824;
    --card: #1a1d2b;
    --accent-text: #a5b4fc;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.accent { color: var(--green); }
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }

/* Buttons share the app's gently rounded rectangle. */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn.disabled { opacity: .55; pointer-events: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { padding: 72px 0 40px; background: radial-gradient(1000px 500px at 85% 0%, color-mix(in srgb, var(--indigo) 18%, transparent), transparent); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 8px; background: color-mix(in srgb, var(--indigo) 12%, transparent); color: var(--accent-text); font-weight: 600; font-size: .85rem; margin-bottom: 18px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); }
.hero-points li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* Phone mockup */
.phone { justify-self: center; width: 300px; aspect-ratio: 9 / 19; border-radius: 40px; background: #0b0c12; padding: 12px; box-shadow: 0 30px 60px -20px rgba(79, 70, 229, .45); position: relative; }
.phone-notch { position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 90px; height: 22px; border-radius: 12px; background: #0b0c12; z-index: 2; }
.phone-screen { height: 100%; border-radius: 30px; background: #f8f8fc; padding: 50px 12px 12px; color: #111827; overflow: hidden; font-size: .8rem; position: relative; }
.notif { position: absolute; top: 46px; left: 10px; right: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); display: flex; flex-direction: column; animation: drop 4s ease-in-out infinite; z-index: 1; }
.notif span { color: #6b7280; }
@keyframes drop { 0%, 12% { transform: translateY(-140%); opacity: 0; } 22%, 70% { transform: translateY(0); opacity: 1; } 85%, 100% { transform: translateY(-140%); opacity: 0; } }
.app-title { font-size: 1.25rem; font-weight: 600; margin: 4px 4px 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #c7c8d6; border-radius: 8px; overflow: hidden; margin-bottom: 10px; text-align: center; }
.seg span { padding: 6px 0; font-weight: 500; }
.seg .on { background: #e3e2f8; }
.tile { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 10px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.tile small { display: block; color: #6b7280; font-size: .68rem; }
.tile .px { text-align: right; font-weight: 600; }
.up { color: var(--green) !important; } .down { color: var(--red) !important; }
.badge { width: 62px; text-align: center; border-radius: 8px; background: #e7e7ef; padding: 4px 0; font-weight: 700; }
.badge small { font-weight: 500; font-size: .6rem; color: inherit; }
.badge.red { background: var(--red); color: #fff; } .badge.green { background: var(--green); color: #fff; }

/* Cards & grids */
.grid { display: grid; gap: 20px; margin-top: 36px; }
.features { grid-template-columns: repeat(3, 1fr); }
.signals { grid-template-columns: repeat(2, 1fr); }
.signal.wide { grid-column: 1 / -1; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); margin: 0; }
.icon { font-size: 1.6rem; margin-bottom: 10px; }

/* Signal diagrams */
.diagram { width: 100%; height: 80px; margin-bottom: 14px; }
.band-red { fill: color-mix(in srgb, var(--red) 14%, transparent); }
.band-green { fill: color-mix(in srgb, var(--green) 14%, transparent); }
.line { fill: none; stroke: var(--indigo); stroke-width: 2.5; }
.dot-red { fill: var(--red); } .dot-green { fill: var(--green); } .dot-amber { fill: var(--amber); }
.bars rect { fill: color-mix(in srgb, var(--muted) 35%, transparent); rx: 2; }
.spike { fill: var(--indigo); rx: 2; }
.slow { fill: none; stroke: #a855f7; stroke-width: 2.5; }
.fast { fill: none; stroke: #0ea5e9; stroke-width: 2.5; }
.sig { fill: none; stroke: var(--amber); stroke-width: 2.5; }
.hist-up { fill: color-mix(in srgb, var(--green) 45%, transparent); }
.hist-down { fill: color-mix(in srgb, var(--red) 45%, transparent); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--indigo); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

/* Mission: the story on the left, three principles on the right. */
.mission { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.mission-story p { color: var(--muted); font-size: 1.05rem; }
.kicker, .mission-story .kicker { color: var(--accent-text); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin: 0 0 8px; }
.mission-story .mission-statement { color: var(--ink); font-size: 1.2rem; font-weight: 600; border-left: 3px solid var(--indigo); padding-left: 16px; margin: 28px 0; }
.signature { font-style: italic; }
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.principles h3 { margin: 0 0 6px; font-size: 1.05rem; }
.principles p { color: var(--muted); margin: 0; }

/* Download */
.download { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; align-items: start; }
.download-card { text-align: center; position: sticky; top: 84px; }
.download-card .btn { margin: 12px 0 6px; }
.install ol { padding-left: 1.2em; margin: 0 0 1em; }
.install li { margin-bottom: .7em; color: var(--muted); }
.install li b { color: var(--ink); }
code { background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: "+"; color: var(--accent-text); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-inner > div { max-width: 460px; }
.copyright { margin-top: 24px; }

/* Legal pages */
.legal-body { padding: 48px 0 64px; max-width: 820px; }
.legal-section h2 { font-size: 1.15rem; margin-top: 1.6em; }
.legal-section p { color: var(--muted); }

/* Responsive */
/* Lessons (learn/) */
.lesson-body { padding: 40px 0 64px; max-width: 760px; }
.lesson-body .kicker { margin-bottom: 6px; color: var(--accent-text); font-size: .8rem; }
.lesson-body h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 10px; }
.lesson-body h2 { font-size: 1.3rem; margin: 1.8em 0 .5em; }
.lesson-body p, .lesson-body li { color: var(--ink); font-size: 1.04rem; line-height: 1.7; }
.lesson-body .lesson-meta { color: var(--muted); font-size: .92rem; margin: 0 0 28px; }
.lesson-body figure { margin: 28px 0; }
.lesson-body figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.lesson-body figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.lesson-box { border: 1px solid var(--line); border-left: 4px solid var(--indigo); border-radius: 10px; padding: 16px 20px; margin: 24px 0; background: var(--bg-alt); }
.lesson-box.takeaways { border-left-color: var(--green); }
.lesson-box h3 { margin: 0 0 8px; font-size: 1rem; }
.lesson-box ul { margin: 0; padding-left: 20px; }
.lesson-cta { text-align: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; margin: 36px 0 20px; }
.lesson-cta p { margin: 0 0 14px; }
.lesson-cta .btn { margin: 4px; }
.lesson-disclaimer { color: var(--muted) !important; font-size: .88rem !important; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px; }
.lesson-list { list-style: none; padding: 0; display: grid; gap: 16px; margin: 28px 0; }
.lesson-list a.card { display: block; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.lesson-list a.card:hover { border-color: var(--indigo); }
.lesson-list h2 { font-size: 1.15rem; margin: 0 0 6px; }
.lesson-list .card p { margin: 0; }
.lesson-list .meta { font-size: .85rem; color: var(--accent-text); font-weight: 600; margin-bottom: 6px; }

/* Roadmap */
.rm-lead { max-width: 760px; margin: 12px auto 0; }
.roadmap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; margin-top: 36px; align-items: start; }
.roadmap h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.rm-col { display: grid; gap: 20px; }
.rm-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rm-dot.g { background: var(--green); } .rm-dot.b { background: var(--indigo); }
.rm-dot.a { background: var(--amber); } .rm-dot.m { background: var(--muted); }
.rm-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.rm-timeline li { position: relative; padding: 0 0 16px 4px; color: var(--muted); }
.rm-timeline li:last-child { padding-bottom: 0; }
.rm-timeline li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid var(--card); }
.rm-timeline time { display: block; font-size: .8rem; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.rm-list { margin: 0; padding-left: 18px; color: var(--muted); }
.rm-list li + li { margin-top: 6px; }
.rm-cta { margin-top: 32px; color: var(--muted); }
.rm-cta .btn { margin-left: 10px; }

@media (max-width: 1080px) {
  /* 9 menu items no longer fit on one line: use the ☰ menu (same as on phones) */
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .roadmap { grid-template-columns: 1fr; }
  .hero-inner, .download { grid-template-columns: 1fr; }
  .download-card { position: static; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .mission { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .features, .signals { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .phone { width: 260px; }
}
@media (prefers-reduced-motion: reduce) { .notif { animation: none; } html { scroll-behavior: auto; } }

/* EN / RO switch in the nav. */
.lang-switch { border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-weight: 700; font-size: .8rem; letter-spacing: .04em; color: var(--ink); }
.lang-switch:hover { border-color: var(--accent-text); color: var(--accent-text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
/* Phones: keep the nav on one line (brand + EN/RO + back button). */
.brand, .nav-actions .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 7px 12px; font-size: .88rem; }
}

/* Hero phone: a 5-screen tour of the app (screens fade in turn; see main.js). */
.phone-wrap { justify-self: center; display: grid; justify-items: center; gap: 14px; }
.phone-screen { padding: 46px 10px 0; font-size: .72rem; }
.ph-screens { position: relative; height: calc(100% - 52px); }
.ph-screen { position: absolute; inset: 0; opacity: 0; transform: translateX(18px); transition: opacity .45s ease, transform .45s ease; overflow: hidden; }
.ph-screen.is-active { opacity: 1; transform: none; }
.ph-bar { display: flex; align-items: center; gap: 6px; font-size: .95rem; font-weight: 600; margin: 2px 2px 8px; }
.ph-bar img { border-radius: 5px; }
.ph-bar em { font-style: normal; font-size: .55rem; font-weight: 800; letter-spacing: .06em; background: #e0e7ff; color: #3730a3; border-radius: 4px; padding: 1px 5px; }
.ph-back { color: #6b7280; }
.ph-sub { margin-left: auto; font-size: .72rem; font-weight: 600; }
.ph-card { background: #fff; border-radius: 12px; padding: 9px 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ph-card .muted { color: #6b7280; font-size: .65rem; }
.ph-row-sb { display: flex; justify-content: space-between; align-items: center; }
.ph-scan { display: flex; align-items: center; gap: 9px; margin-top: 8px; }
.ph-scan svg { color: #5b5f97; flex: none; }
.ph-scan div { flex: 1; font-size: .72rem; line-height: 1.3; }
.ph-scan small { display: block; color: #4b5563; font-size: .64rem; }
.ph-chev { font-size: 1rem; font-weight: 700; color: #374151; }
.ph-pill { font-size: .62rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.ph-pill.g { background: #dcfce7; color: #15803d; }
.ph-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin-top: 6px; font-size: .66rem; }
.ph-mini span { display: flex; justify-content: space-between; }
.up { color: var(--green); } .down { color: var(--red); }
.ph-qa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0 2px; }
.ph-qa span { border: 1px solid #d4d4e0; border-radius: 8px; text-align: center; padding: 6px 2px; font-size: .62rem; font-weight: 600; color: #3730a3; background: #fff; }
.ph-h { margin: 9px 2px 5px; font-size: .66rem; font-weight: 700; color: #374151; }
.ph-heat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ph-heat span { border-radius: 7px; background: #e7e7ef; text-align: center; padding: 5px 0; font-size: .62rem; line-height: 1.25; }
.ph-heat b { display: block; font-size: .64rem; }
.ph-heat .r { background: var(--red); color: #fff; } .ph-heat .g { background: var(--green); color: #fff; }
.ph-heat .lr { background: #fecaca; } .ph-heat .lg { background: #bbf7d0; }
.ph-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; background: #fff; border-radius: 10px; padding: 7px 8px; margin-bottom: 5px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ph-row b { display: block; font-size: .66rem; } .ph-row small { color: #6b7280; font-size: .6rem; }
.ph-row time { color: #9ca3af; font-size: .58rem; }
.ph-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .7rem; font-weight: 700; }
.ph-ic.g { background: #dcfce7; color: var(--green); } .ph-ic.r { background: #fee2e2; color: var(--red); }
.ph-ic.a { background: #fef3c7; color: #d97706; } .ph-ic.i { background: #e0e7ff; color: var(--indigo); }
.phone .tile { padding: 8px; margin-bottom: 6px; }
.ph-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }
.ph-chips span { border: 1px solid #d4d4e0; border-radius: 7px; padding: 3px 8px; font-size: .62rem; background: #fff; }
.ph-chips span.on { background: #e0e7ff; border-color: #c7d2fe; color: #3730a3; font-weight: 700; }
.ph-slider { display: grid; grid-template-columns: 1fr 70px auto; gap: 6px; align-items: center; font-size: .62rem; margin: 3px 2px; }
.ph-slider span { font-weight: 600; } .ph-slider.g span, .ph-slider.g b { color: var(--green); } .ph-slider.r span, .ph-slider.r b { color: var(--red); }
.ph-slider i { height: 4px; border-radius: 4px; background: #e5e7eb; position: relative; }
.ph-slider i::after { content: ""; position: absolute; top: -4px; left: calc(var(--v) * 100%); width: 12px; height: 12px; border-radius: 50%; background: currentColor; translate: -50% 0; }
.ph-slider.g i { color: var(--green); } .ph-slider.r i { color: var(--red); }
.ph-sw { display: flex; justify-content: space-between; align-items: center; padding: 5px 2px; font-size: .66rem; border-bottom: 1px solid #eceef5; }
.ph-sw i { width: 26px; height: 15px; border-radius: 999px; background: #d1d5db; position: relative; }
.ph-sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: left .3s; }
.ph-sw i.on { background: var(--indigo); } .ph-sw i.on::after { left: 13px; }
.ph-save { margin-top: 10px; background: var(--indigo); color: #fff; text-align: center; border-radius: 9px; padding: 8px; font-weight: 700; font-size: .7rem; }
.ph-candles { width: 100%; height: 230px; background: #fff; border-radius: 10px; }
.ph-candles .up { fill: #16a34a; } .ph-candles .dn { fill: #dc2626; }
.ph-candles .wick { stroke-width: 1; } .ph-candles .wick.up { stroke: #16a34a; } .ph-candles .wick.dn { stroke: #dc2626; }
.ph-candles .ema { fill: none; stroke: #f59e0b; stroke-width: 1.4; }
.ph-rsi { width: 100%; height: 74px; margin-top: 6px; background: #fff; border-radius: 10px; }
.ph-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.ph-btns span { border: 1px solid #c7d2fe; border-radius: 8px; padding: 7px 4px; text-align: center; font-size: .6rem; font-weight: 700; color: #3730a3; }
.ph-btns span.fill { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.ph-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; background: #f1f1f8; border-top: 1px solid #e5e7f0; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.ph-tab { display: grid; justify-items: center; gap: 2px; font-size: .55rem; color: #6b7280; }
.ph-tab svg { width: 30px; height: 18px; padding: 1px 6px; border-radius: 999px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: background .3s; }
.ph-tab.on { color: #1e1b4b; font-weight: 700; } .ph-tab.on svg { background: #e0e7ff; }
.ph-banner { position: absolute; top: 44px; left: 8px; right: 8px; z-index: 3; background: #fff; border-radius: 12px; padding: 8px 10px; box-shadow: 0 10px 24px rgba(0,0,0,.18); display: grid; font-size: .64rem; transform: translateY(-140%); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.ph-banner span { color: #6b7280; }
.phone.banner .ph-banner { transform: none; opacity: 1; }
.ph-caption { display: grid; justify-items: center; gap: 8px; }
.ph-name { font-weight: 700; font-size: .95rem; color: var(--ink); min-height: 1.4em; }
.ph-dots { display: flex; gap: 8px; }
.ph-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.ph-dots button[aria-current="true"] { width: 24px; border-radius: 6px; background: var(--indigo); }
.ph-dots button:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ph-screen, .ph-banner, .ph-dots button { transition: none; } }

/* Tour screens: guide, feedback, language sheet. */
.ph-intro { display: block; color: #6b7280; font-size: .62rem; margin: -4px 2px 8px; }
.ph-gd { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; background: #fff; border-radius: 10px; padding: 7px 8px; margin-bottom: 5px; box-shadow: 0 1px 2px rgba(0,0,0,.05); font-size: .66rem; }
.ph-gd span { color: #9ca3af; }
.ph-gd-open { background: #fff; border-radius: 10px; margin: -4px 0 5px; padding: 0 8px 8px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ph-gd-open svg { width: 100%; height: 44px; display: block; margin-bottom: 4px; }
.ph-gd-open small { color: #4b5563; font-size: .6rem; line-height: 1.35; display: block; }
.ph-field { background: #fff; border: 1px solid #d4d4e0; border-radius: 9px; padding: 8px; margin-top: 8px; font-size: .66rem; }
.ph-area { min-height: 92px; position: relative; }
.ph-area i { display: inline-block; width: 1px; height: 11px; background: var(--indigo); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.ph-muted { color: #9ca3af; }
@keyframes blink { 50% { opacity: 0; } }
.ph-sheet-screen { background: rgba(17, 24, 39, .4); top: -46px; bottom: -52px; left: -10px; right: -10px; z-index: 4; }
.ph-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 16px 16px 0 0; padding: 8px 14px 10px; display: grid; gap: 1px; }
.ph-sheet b { font-size: .82rem; margin: 2px 0 6px; }
.ph-handle { justify-self: center; width: 34px; height: 4px; border-radius: 4px; background: #d1d5db; margin-bottom: 6px; }
.ph-lang { display: flex; justify-content: space-between; padding: 6px 2px; font-size: .7rem; border-bottom: 1px solid #f0f0f5; }
.ph-lang span { color: #9ca3af; } .ph-lang.on { font-weight: 700; color: #3730a3; } .ph-lang.on span { color: var(--indigo); }
@media (prefers-reduced-motion: reduce) { .ph-area i { animation: none; } }
