/* =====================================================================
   Shalom Hebraico — tema "Jerusalém": azul-marinho, dourado, superfícies claras,
   ícones de linha. Camada aplicada por cima de style.css.
   ===================================================================== */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --ink: #0f2340;
  --ink-soft: #2c3e57;
  --muted: #5f6f84;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  --navy: #11305c;  --navy-dark: #0b2345;  --navy-soft: #e4ebf6;
  --gold: #c9a24a;  --gold-dark: #a8842f;  --gold-soft: #f6efdc;
  --teal: #11305c;  --teal-dark: #0b2345;  --teal-soft: #e4ebf6;   /* unidades "teal" viram marinho */
  --rose: #b45a4e;  --rose-dark: #8e4339;  --rose-soft: #f6e6e3;
  --green: #2f8f5b; --green-dark: #236e45; --green-soft: #e3f3ea;
  --gold-dark-text: #7a5c15;

  --primary: var(--navy);
  --primary-dark: var(--navy-dark);
  --primary-soft: var(--navy-soft);
  --ok: var(--green); --ok-dark: var(--green-dark); --ok-soft: var(--green-soft);
  --bad: #c0392b; --bad-dark: #96281c; --bad-soft: #f9e3e0;

  --shadow: 0 1px 2px rgba(15, 35, 64, 0.05), 0 10px 30px -14px rgba(15, 35, 64, 0.18);
  --radius: 16px;
  --radius-sm: 12px;

  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1a2e; --surface: #122540; --surface-2: #192f4e; --ink: #eef2f8; --ink-soft: #cfd8e6; --muted: #93a3b8; --line: #243a5a; --line-strong: #33507a;
    --navy: #3b6fb6; --navy-dark: #2a5490; --navy-soft: #1a3358; --teal: #3b6fb6; --teal-dark: #2a5490; --teal-soft: #1a3358;
    --gold: #d6b25a; --gold-dark: #b8933e; --gold-soft: #3a3220; --gold-dark-text: #f0d892;
    --rose: #d27a6e; --rose-dark: #b0584c; --rose-soft: #3d2824; --green: #4fb47e; --green-dark: #3a8f62; --green-soft: #1f3a2c;
    --bad: #e2655a; --bad-dark: #b8463c; --bad-soft: #3f2420;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px -14px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1a2e; --surface: #122540; --surface-2: #192f4e; --ink: #eef2f8; --ink-soft: #cfd8e6; --muted: #93a3b8; --line: #243a5a; --line-strong: #33507a;
  --navy: #3b6fb6; --navy-dark: #2a5490; --navy-soft: #1a3358; --teal: #3b6fb6; --teal-dark: #2a5490; --teal-soft: #1a3358;
  --gold: #d6b25a; --gold-dark: #b8933e; --gold-soft: #3a3220; --gold-dark-text: #f0d892;
  --rose: #d27a6e; --rose-dark: #b0584c; --rose-soft: #3d2824; --green: #4fb47e; --green-dark: #3a8f62; --green-soft: #1f3a2c;
  --bad: #e2655a; --bad-dark: #b8463c; --bad-soft: #3f2420;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px -14px rgba(0,0,0,.6);
}

/* ---------- tipografia ---------- */
body { font-weight: 500; letter-spacing: -0.005em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; }
.eyebrow { color: var(--gold-dark); letter-spacing: 0.14em; font-weight: 700; font-size: 0.7rem; }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--gold); margin-right: 8px; vertical-align: middle; }
.muted { font-weight: 500; }

/* ---------- marca ---------- */
.brand-logo { background: var(--navy); border-radius: 10px; color: #fff; position: relative; overflow: hidden; }
.brand-logo::after { content: ""; position: absolute; right: -6px; top: -6px; width: 16px; height: 16px; background: var(--gold); transform: rotate(45deg); }
.brand-name { font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.brand-name .thin, .brand-sub { color: var(--muted); font-weight: 500; }

/* ---------- menus ---------- */
.sidebar { border-right: 1px solid var(--line); gap: 2px; }
.nav-link { border: 0; border-radius: 10px; font-weight: 600; color: var(--ink-soft); padding: 10px 12px; gap: 12px; }
.nav-link .ico { width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: 0; }
.nav-link .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-link:hover { background: var(--surface-2); }
.nav-link.active { background: var(--navy-soft); color: var(--navy); border: 0; }
.bottom-nav { border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -8px 24px -18px rgba(15, 35, 64, .35); }
.bottom-nav .nav-link { font-size: 0.64rem; font-weight: 600; gap: 3px; padding: 6px 2px; border-radius: 10px; }
.bottom-nav .nav-link .ico { width: 26px; height: 26px; }
.bottom-nav .nav-link .ico svg { width: 24px; height: 24px; }
.bottom-nav .nav-link.active { background: transparent; color: var(--navy); }
.bottom-nav .nav-link.active .ico svg { stroke-width: 2.3; }
.stat-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-weight: 700; color: var(--ink-soft); box-shadow: none; }

/* ---------- cartões, botões, campos ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.btn {
  border: 1px solid var(--line-strong); border-bottom-width: 1px; border-radius: 12px; padding: 12px 20px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem; letter-spacing: 0; background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 35, 64, .06); transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); border-bottom-width: 1px; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 6px 16px -8px rgba(17, 48, 92, .6); }
.btn-primary:hover { background: var(--navy-dark); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1a1407; box-shadow: 0 6px 16px -8px rgba(201, 162, 74, .7); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-ok { background: var(--green); border-color: var(--green); color: #fff; }
.btn-ok:hover { background: var(--green-dark); }
.btn-bad { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-bad:hover { background: var(--bad-dark); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn-speak { background: var(--navy-soft); border-color: transparent; color: var(--navy); box-shadow: none; }
.btn-sm { padding: 8px 14px; font-size: 0.88rem; border-radius: 10px; }
.btn.pulse { animation-name: btn-pulse-navy; }
@keyframes btn-pulse-navy { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(17, 48, 92, .35); } 50% { transform: scale(1.025); box-shadow: 0 0 0 10px rgba(17, 48, 92, 0); } }
.btn.btn-ok.pulse { animation-name: btn-pulse; }
input, select, textarea { font-family: var(--font-body); }
.field input, .field select, .field textarea, input[type="text"], input[type="email"], input[type="password"], input[type="search"] { border: 1px solid var(--line-strong); border-radius: 10px; }
.field input:focus, input:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.chip { border: 1px solid var(--line); font-weight: 600; }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.progress { height: 10px; background: var(--surface-2); }
.progress > i { background: var(--navy); }
.banner { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.banner .txt { font-weight: 500; }
.tips .tip, .tip { border-left: 3px solid var(--gold); background: var(--surface); border-radius: 10px; }
.section-head h2 { font-size: 1.15rem; }
.seg { border: 1px solid var(--line-strong); border-radius: 10px; }
.seg button.active { background: var(--navy); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(100deg, #0b2345 0%, #12305c 55%, #1b3f72 100%);
  border-radius: var(--radius); padding: 26px 22px 24px; overflow: hidden; position: relative; isolation: isolate;
  box-shadow: 0 18px 40px -22px rgba(11, 35, 69, .7);
}
.hero::before { content: ""; position: absolute; inset: 0; background: url("img/jerusalem-walls.jpg") center bottom / cover no-repeat; opacity: .28; z-index: -1; mix-blend-mode: luminosity; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 35, 69, .96) 0%, rgba(11, 35, 69, .72) 55%, rgba(11, 35, 69, .35) 100%); z-index: -1; }
.hero .he-big { font-family: var(--font-he); font-size: 2.2rem; color: var(--gold); font-weight: 700; }
.hero h1 { font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.02em; }
.hero p { color: rgba(255, 255, 255, .84); font-weight: 500; }
.hero .btn-gold { align-self: start; }
.hero .btn:not(.btn-gold) { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.hero-deco { opacity: .12; color: var(--gold); }

/* ---------- cabeçalho da unidade ---------- */
.duo-head { background: linear-gradient(100deg, #0b2345, #12305c); border-radius: var(--radius); box-shadow: 0 14px 30px -18px rgba(11, 35, 69, .7); border: 0; position: relative; overflow: hidden; }
.duo-head::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 46%; background: url("img/jerusalem-dome.jpg") center / cover no-repeat; opacity: .35; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
.duo-head .duo-eyebrow { color: var(--gold); letter-spacing: .14em; font-weight: 700; font-size: .68rem; }
.duo-head .duo-title { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.duo-head .duo-goal { opacity: .8; }
.duo-head .duo-list { background: rgba(255, 255, 255, .14); border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; }

/* ---------- unidades e lições ---------- */
.unit-tile { border: 1px solid var(--line); border-bottom-width: 1px; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
.unit-tile:active { transform: none; border-bottom-width: 1px; }
.unit-tile .unit-em { background: var(--surface-2); border-radius: 12px; font-size: 1.5rem; width: 52px; height: 52px; display: grid; place-items: center; }
.unit-tile h3 { font-size: 1rem; }
.unit-tile .ring { background: conic-gradient(var(--navy) calc(var(--p) * 1%), var(--surface-2) 0); }
.unit-tile .ring span { font-weight: 700; font-size: .8rem; color: var(--navy); }
.unit-tile.done .ring { background: var(--navy); } .unit-tile.done .ring span { background: var(--navy); color: var(--gold); }
.unit-tile.here { outline: 2px solid var(--gold); }
.here-pill { background: var(--gold); color: #1a1407; font-weight: 700; }
.unit-head { background: linear-gradient(100deg, #0b2345, #12305c); color: #fff; border-radius: var(--radius); border: 0; }
.unit-head .eyebrow { color: var(--gold); }
.unit-head .unit-em { background: rgba(255, 255, 255, .12); border-radius: 14px; width: 64px; height: 64px; display: grid; place-items: center; font-size: 2rem; }
.unit-head .muted { color: rgba(255, 255, 255, .78); }
.unit-head h1 { color: #fff; }
.lesson-row { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.lesson-row .node { background: var(--surface-2); border: 0; color: var(--muted); font-weight: 700; }
.lesson-row.done .node { background: var(--navy); color: var(--gold); }
.lesson-row.next .node { background: var(--navy); color: #fff; box-shadow: 0 0 0 4px var(--navy-soft); }
.lesson-row .lt { font-weight: 700; }
.word-card { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.word-card .em { font-size: 1.5rem; }
.word-card .tr { color: var(--navy); font-weight: 600; }
.level-details > summary, .group-details > summary { border-radius: 12px; }
.ex-card { border-radius: 14px; }
.ex-card > span { width: 44px; height: 44px; display: grid; place-items: center; background: var(--navy-soft); border-radius: 12px; font-size: 1.3rem; }
.practice-card .big-em { background: var(--navy-soft); border-radius: 14px; width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.7rem; }

/* ---------- lição ---------- */
.lesson-shell { background: var(--bg); }
.lesson-top .progress { height: 8px; }
.prompt-label { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ink); }
.prompt-card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.prompt-card .he { font-size: 2.3rem; }
.prompt-card .tr { color: var(--navy); font-weight: 600; }
.prompt-card .note, .note { background: var(--gold-soft); border-radius: 10px; color: var(--gold-dark-text); border: 0; }
.info-card { border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); }
.choice { border: 1px solid var(--line); border-bottom-width: 1px; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow); }
.choice:hover { background: var(--surface-2); }
.choice.sel { border-color: var(--navy); background: var(--navy-soft); color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.choice .k { border: 1px solid var(--line-strong); border-radius: 7px; font-size: .75rem; }
.choice.sel .k { border-color: var(--navy); color: var(--navy); }
.choice.ok { border-color: var(--green); background: var(--green-soft); }
.choice.bad { border-color: var(--bad); background: var(--bad-soft); }
.token { border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 600; box-shadow: 0 1px 2px rgba(15,35,64,.06); }
.token:hover { border-color: var(--navy); }
.lesson-foot { border-top: 1px solid var(--line); background: var(--surface); }
.feedback { border-top: 1px solid var(--line); }
.feedback.ok { background: var(--green-soft); } .feedback.bad { background: var(--bad-soft); }
.feedback .fb-title { font-weight: 800; }
.mic-btn { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(17, 48, 92, .7); border: 0; }
.mic-btn.listening { background: var(--gold); color: #1a1407; }
.result .big { font-size: 3.2rem; }
.result-stats .card .n { color: var(--navy); font-weight: 800; }
.result-stats .card .l { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .66rem; }

/* ---------- página de entrada ---------- */
.lp-top { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.lp-hero { min-height: 360px; padding: 34px 24px; }
.lp-hero::before { opacity: .55; mix-blend-mode: normal; background-image: url("img/jerusalem-dome.jpg"); background-position: right center; }
.lp-hero::after { background: linear-gradient(90deg, rgba(11, 35, 69, .97) 0%, rgba(11, 35, 69, .85) 45%, rgba(11, 35, 69, .25) 100%); }
.lp-hero h1 { font-size: 2.1rem; max-width: 18ch; }
.lp-hero .he-big { font-size: 1.4rem; letter-spacing: .02em; }
.lp-cta .lp-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.lp-feat { border-radius: 14px; }
.lp-feat .lp-em { width: 56px; height: 56px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.lp-feat:nth-child(2n) .lp-em { background: var(--gold); color: #1a1407; }
.lp-how .card .lp-n { background: var(--navy); color: #fff; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.lp-final { background: linear-gradient(100deg, #0b2345, #12305c); color: #fff; border: 0; }
.lp-final .muted, .lp-final .muted a { color: rgba(255, 255, 255, .8); }
.lp-final .he { color: var(--gold); }
.faq details { border: 1px solid var(--line); border-radius: 12px; }
.faq summary { font-weight: 600; }
.about h2, .about h3 { color: var(--ink); }

/* ---------- certificado, ranking, perfil ---------- */
.certificate { border: 1px solid var(--gold); background: linear-gradient(180deg, #fffdf6, #fff); }
.cert-title { color: var(--navy); }
.cert-mini.on { border-color: var(--gold); }
.setting .lbl { font-weight: 700; }
.toggle.on { background: var(--navy); }
.modal-box { border-radius: var(--radius); border: 1px solid var(--line); }
.toast { background: var(--ink); color: #fff; border-radius: 12px; font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); }

/* ---------- celular ---------- */
@media (max-width: 560px) {
  .hero { padding: 22px 18px; }
  .hero h1 { font-size: 1.5rem; }
  .duo-node { width: 62px; height: 62px; }
}
.stat-chip .sc-ic { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; }
.stat-chip .sc-ic.fire { color: #d9542b; } .stat-chip .sc-ic.gold { color: var(--gold-dark); } .stat-chip .sc-ic.navy { color: var(--navy); }

/* ---------- refinamentos: emojis em cartelas, logo, computador ---------- */
.prompt-card .em, .word-card .em, .choice .em, .intro .em, .fb-body .em { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--surface-2); font-size: 1.7rem; line-height: 1; }
.choice .em { width: 44px; height: 44px; border-radius: 12px; font-size: 1.45rem; flex: none; }
.word-card .em { width: 48px; height: 48px; font-size: 1.5rem; margin: 0 auto 6px; }
.prompt-card .em { width: 64px; height: 64px; font-size: 2rem; margin: 0 auto 8px; }
.result .big { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 10px; border-radius: 50%; background: var(--gold-soft); font-size: 2.6rem; }
.lp-feat .lp-em { font-size: 1.4rem; }
.badge .bem, .cert-mini .bem { font-size: 1.6rem; }

/* logo: letra א em marinho com faixa dourada */
.brand-logo { background: linear-gradient(135deg, #0b2345, #16407a); font-family: var(--font-he); font-weight: 700; font-size: 1.35rem; }
.brand-logo::after { width: 22px; height: 22px; right: -9px; top: -9px; border-radius: 4px; background: var(--gold); }

/* computador: menu lateral em marinho, página mais larga */
@media (min-width: 900px) {
  .sidebar { background: linear-gradient(180deg, #0b2345, #12305c); border-right: 0; color: #fff; padding: 22px 14px; }
  .sidebar .brand-name { color: #fff; }
  .sidebar .brand-sub { color: rgba(255, 255, 255, .6); }
  .sidebar .brand-logo { background: #fff; color: #0b2345; }
  .sidebar .nav-link { color: rgba(255, 255, 255, .78); }
  .sidebar .nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .sidebar .nav-link.active { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
  .sidebar .stat-chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); color: #fff; }
  .sidebar .stat-chip .sc-ic.navy { color: var(--gold); }
  .main { max-width: 860px; }
  .landing-page { max-width: 1040px; margin: 0 auto; }
  .lp-hero { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 440px; padding: 44px 40px; }
  .lp-hero::before { background-position: right center; background-size: cover; opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 62%); mask-image: linear-gradient(90deg, transparent 38%, #000 62%); }
  .lp-hero::after { background: linear-gradient(90deg, rgba(11, 35, 69, 1) 0%, rgba(11, 35, 69, .96) 42%, rgba(11, 35, 69, .1) 70%, rgba(11, 35, 69, 0) 100%); }
  .lp-hero h1 { font-size: 2.6rem; }
  .lp-hero > * { grid-column: 1; }
  .lp-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-how { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .duo-head::after { width: 40%; }
}
.lesson-row .node svg, .unit-tile .ring span svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lesson-row .node { display: grid; place-items: center; }
.unit-tile .ring span { display: grid; place-items: center; }

/* ---------- lições lado a lado, numeradas, com anel de progresso ---------- */
.steps-card { margin-top: 12px; display: grid; gap: 16px; padding: 18px; }
.steps-top { display: flex; align-items: center; gap: 16px; }
.steps-info { display: grid; gap: 2px; min-width: 0; }
.steps-info b { font-size: 1.05rem; }
.ring-big { --p: 0; width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--navy) calc(var(--p) * 1%), var(--surface-2) 0); position: relative; transition: background .4s ease; }
.ring-big::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.ring-big span { position: relative; font-weight: 800; font-size: 1.05rem; color: var(--navy); display: grid; place-items: center; }
.ring-big span svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.step { --p: 0; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; position: relative;
  background: var(--surface); border: 2px solid var(--line-strong); color: var(--ink-soft); font-weight: 800; font-size: 1rem; transition: transform .1s ease; }
.step:active { transform: scale(.95); }
.step svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.step .n { line-height: 1; }
.step.done { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.step.off, .step.lock { border-style: dashed; color: var(--muted); }
.step.cur { border-color: transparent; color: var(--navy); background: var(--surface); box-shadow: inset 0 0 0 2px var(--surface); }
.step.cur::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; z-index: -1;
  background: conic-gradient(var(--navy) calc(var(--p) * 1%), var(--line-strong) 0); animation: step-pulse 1.8s ease-in-out infinite; }
.step.cur::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--surface); z-index: -1; }
.step.cur .n { color: var(--navy); }
@keyframes step-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(17, 48, 92, .35); } 50% { box-shadow: 0 0 0 8px rgba(17, 48, 92, 0); } }
.step.story.done { background: var(--gold); border-color: var(--gold); color: #1a1407; }
.step.story.cur { color: var(--gold-dark); }
.steps-card .duo-go { margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .step.cur::before { animation: none; } }
.step { isolation: isolate; }
.step.done svg { stroke: var(--gold); }
.step.story.done svg { stroke: #1a1407; }
.step.cur { border: 2px solid var(--surface); }
.step.cur::before { inset: -5px; }
.step.cur::after { inset: -1px; }

/* ---------- ajustes da revisão visual ---------- */
.topbar .stats-row { gap: 6px; overflow-x: auto; scrollbar-width: none; }
.topbar .stat-chip { padding: 4px 9px; font-size: .82rem; white-space: nowrap; }
.sidebar .stats-row { flex-wrap: wrap; }
.hero-deco { display: none; }
.hero::before { opacity: .5; mix-blend-mode: normal; }
.hero::after { background: linear-gradient(90deg, rgba(11, 35, 69, .97) 0%, rgba(11, 35, 69, .8) 50%, rgba(11, 35, 69, .2) 100%); }
.ex-card > div, .ex-card b, .practice-card h3 { overflow-wrap: normal; hyphens: auto; }
.ex-card b { font-size: .95rem; }
.letter-card { border: 1px solid var(--line); border-bottom-width: 1px; box-shadow: var(--shadow); border-radius: 12px; }
.ph .tr, .page-head .tr, .unit-head .tr { color: rgba(255, 255, 255, .78); }
.seg a.active, .seg button.active { background: var(--navy); color: #fff; }
.adm-tabs { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cert-title, .cert-name, .me-rank { font-family: var(--font-display); }
.xp, .eyebrow { color: var(--gold-dark-text); }
.hero .eyebrow, .duo-head .duo-eyebrow, .unit-head .eyebrow, .lp-final .eyebrow { color: var(--gold); }
.btn[disabled], .btn:disabled { opacity: 1; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); box-shadow: none; }
#dict-q { text-overflow: ellipsis; }
.here-pill { right: 12px; top: -10px; }
.duo .btn-ghost, .duo-head .btn-ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); color: #fff; }
.toast { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 14px); }
.actions, .verb-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 480px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .daily, .tour-card { flex-wrap: wrap; }
  .daily > div, .tour-card > div { flex: 1 1 180px; }
  .result-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph { flex-direction: column; align-items: flex-start; }
  .ph .em, .unit-head .unit-em { width: 48px; height: 48px; font-size: 1.5rem; }
}
/* modo escuro: transliteração e botões de áudio legíveis */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --navy-dark: #8fb3e6; --primary-dark: #8fb3e6; --teal-dark: #8fb3e6; --gold-dark-text: #f0d892; }
  :root:not([data-theme="light"]) .tr, :root:not([data-theme="light"]) .verse-tr, :root:not([data-theme="light"]) .snd, :root:not([data-theme="light"]) .guide .k { color: #9dbdea; }
  :root:not([data-theme="light"]) .btn-speak { color: #cfe0f8; }
  :root:not([data-theme="light"]) .btn-primary, :root:not([data-theme="light"]) .duo-pop .duo-go, :root:not([data-theme="light"]) .step.done { background: #2a5490; border-color: #2a5490; }
}
:root[data-theme="dark"] { --navy-dark: #8fb3e6; --primary-dark: #8fb3e6; --teal-dark: #8fb3e6; --gold-dark-text: #f0d892; }
:root[data-theme="dark"] .tr, :root[data-theme="dark"] .verse-tr, :root[data-theme="dark"] .snd, :root[data-theme="dark"] .guide .k { color: #9dbdea; }
:root[data-theme="dark"] .btn-speak { color: #cfe0f8; }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .step.done { background: #2a5490; border-color: #2a5490; }
@media (max-width: 480px) {
  .topbar .brand-logo { width: 34px; height: 34px; font-size: 1.1rem; }
  .topbar .brand-name { font-size: 1rem; }
  .topbar .brand-sub { display: none; }
  .topbar .stats-row { gap: 4px; }
  .topbar .stat-chip { padding: 3px 7px; font-size: .74rem; gap: 3px; }
  .topbar .stat-chip .sc-ic { width: 16px; height: 16px; }
  .topbar .stat-chip .sc-ic svg { width: 14px; height: 14px; }
}

/* ---------- indique um amigo ---------- */
.ref-card { display: grid; gap: 14px; }
.ref-link { display: flex; gap: 8px; }
.ref-link input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); color: var(--ink); font-size: .9rem; }
.ref-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ref-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ref-stats > div { background: var(--surface-2); border-radius: 12px; padding: 10px 6px; text-align: center; display: grid; gap: 2px; }
.ref-stats b { font-size: 1.3rem; color: var(--navy); }
.ref-stats span { font-size: .72rem; color: var(--muted); font-weight: 600; }
.ref-badge { width: 68px; height: 68px; margin: 0 auto; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark-text); display: grid; place-items: center; }
.upsell-modal .ref-link, .upsell-modal .ref-actions { margin-top: 4px; }
.upsell-modal p { font-weight: 500; }

/* passos numerados sempre numa linha só (no celular os círculos encolhem em vez de quebrar) */
.step-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; justify-items: center; align-items: center; }
.step { width: 100%; max-width: 50px; height: auto; aspect-ratio: 1; font-size: clamp(.8rem, 3.4vw, 1rem); }
.step svg { width: 46%; height: 46%; }
@media (max-width: 400px) { .step-row { gap: 6px; } .step.cur::before { inset: -4px; } .steps-card { padding: 16px 14px; } }
.hero .btn-gold { white-space: normal; text-align: center; }

/* ---------- tocador (orações e histórias) ---------- */
.player { margin-top: 12px; padding: 14px 16px; display: grid; gap: 12px; border: 1px solid var(--line); }
.player-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.player-row .eyebrow { margin-right: auto; }
.player-ctl { gap: 8px; flex-wrap: nowrap; }
.pl-btn, .pl-main { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 12px; height: 46px; font-weight: 700; }
.pl-btn { width: 46px; flex: none; }
.pl-btn:disabled { opacity: .35; }
.pl-main { flex: 1; min-width: 0; padding: 0 14px; background: var(--navy); border-color: var(--navy); color: #fff; }
.pl-main.on { background: var(--gold); border-color: var(--gold); color: #1a1407; }
.pl-main span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-btn svg, .pl-main svg, .moment-acts svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pl-main svg { fill: currentColor; stroke-width: 1.2; }
.player-status { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.player-status .progress { flex: 1; height: 6px; }
.player-status .progress > i { background: var(--gold); }
.player-now { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 2px; }
.player-now .he { font-size: 1.5rem; line-height: 1.5; direction: rtl; text-align: right; }
.player-hint { font-size: .82rem; }
.verse.playing { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
/* ---------- orações por ocasião ---------- */
.moment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 8px; }
.moment-card { display: flex; gap: 12px; align-items: center; padding: 14px; text-decoration: none; color: inherit; border: 1px solid var(--line); }
.moment-card:hover { border-color: var(--gold); }
.moment-em { width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: var(--navy-soft); border-radius: 12px; font-size: 1.4rem; }
.moment-card b { display: block; }
.moment-card .muted { font-size: .88rem; }
.moment-n { font-size: .78rem; color: var(--gold-dark-text); font-weight: 700; margin-top: 2px; }
.moment-list { display: grid; gap: 8px; margin-top: 8px; }
.moment-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); }
.moment-row.playing { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.moment-num { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: .9rem; }
.moment-num svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.moment-body { flex: 1; min-width: 0; }
.moment-body .lt { font-weight: 700; }
.moment-body .ls { color: var(--muted); font-size: .86rem; }
.moment-acts { display: flex; gap: 6px; flex: none; }
.moment-acts .btn { display: inline-flex; align-items: center; gap: 6px; }
.player > * { min-width: 0; }
.player .seg button { white-space: nowrap; }
.player-status span { white-space: nowrap; flex: none; }
@media (max-width: 560px) {
  .moment-row { flex-wrap: wrap; }
  .moment-acts { width: 100%; padding-left: 46px; }
  .moment-acts .btn { flex: 1; justify-content: center; }
  .player-row .eyebrow { display: none; }
  .player-row .seg { flex: 1 1 100%; display: flex; } .player-row .seg button { flex: 1; }
  .player-ctl { flex-wrap: wrap; }
  .pl-main { order: -1; flex: 1 1 100%; height: 50px; }
  .pl-btn { flex: 1; width: auto; }
}

/* ---------- página da unidade: próximo passo ---------- */
.unit-next { margin-top: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid var(--gold); background: var(--gold-soft); }
.unit-next > div { flex: 1 1 220px; min-width: 0; }
.unit-next .btn { flex: none; }
@media (max-width: 560px) { .unit-next .btn { flex: 1 1 100%; text-align: center; } }

/* ---------- painel: aviso de conta duplicada ---------- */
.dup-note { grid-column: 1 / -1; margin-top: 2px; padding: 10px 12px; border: 1px solid var(--gold); background: var(--gold-soft); border-radius: 10px; font-size: .9rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dup-note .btn { flex: none; }

/* lição: botão de voltar um passo e aviso de revisão */
.lesson-top #prev[disabled] { opacity: .35; }
.peek-note { background: rgba(17, 48, 92, .08); color: var(--navy, #11305c); border-radius: 10px; padding: 8px 12px; font-size: .9rem; margin-bottom: 12px; text-align: center; }

/* pop-up de assinatura na entrada */
.pop-sub { max-width: 420px; }
.pop-price { text-align: center; background: rgba(201, 162, 74, .12); border: 1px solid rgba(201, 162, 74, .5); border-radius: 12px; padding: 12px; }
.pop-price .pop-main { font-size: 2rem; font-weight: 800; color: var(--navy, #11305c); line-height: 1.1; }
.pop-price .pop-main small { font-size: 1rem; font-weight: 600; color: var(--muted, #556); margin-left: 4px; }
.pop-price .pop-alt { margin-top: 4px; font-size: .95rem; }

/* cartão de planos na página principal */
.plan-card { margin-top: 14px; border-color: rgba(201, 162, 74, .6); }
.plan-card .plan-prices { margin: 4px 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.plan-tag { display: inline-block; background: rgba(201, 162, 74, .18); color: var(--gold-dark, #8a6a1e); border-radius: 999px; padding: 2px 10px; font-size: .82rem; font-weight: 700; }

/* valor do curso: faixa no alto (aluno sem Premium) e planos na página de entrada */
.price-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: rgba(201, 162, 74, .14); border: 1px solid rgba(201, 162, 74, .55); color: var(--ink); text-decoration: none; font-size: .95rem; cursor: pointer; }
.price-strip .price-go { color: var(--gold-dark, #8a6a1e); white-space: nowrap; }
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.lp-plan { text-decoration: none; color: inherit; cursor: pointer; display: grid; gap: 4px; }
.lp-plan-best { border-color: var(--gold, #c9a24a); box-shadow: 0 0 0 1px var(--gold, #c9a24a) inset; }
.lp-plan-v { font-size: 1.9rem; font-weight: 800; color: var(--navy, #11305c); line-height: 1.15; }
.lp-plan-v small { font-size: 1rem; font-weight: 600; color: var(--muted, #556); margin-left: 3px; }
@media (max-width: 420px) { .bottom-nav .nav-link { font-size: .62rem; padding: 6px 1px; } }

/* leituras: texto inteiro e chamada para a aula por partes */
.full-text { margin-top: 10px; }
.full-text .he { font-size: 1.55rem; line-height: 1.9; }
.full-text .he p { margin: 0 0 6px; }
.lesson-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; border-color: rgba(201, 162, 74, .6); }
.lesson-cta > div { flex: 1 1 240px; }

/* texto pré-montado da página inicial (lido pelo Google sem JavaScript; o app substitui ao abrir) */
.prerender { max-width: 820px; margin: 0 auto; padding: 24px 16px 40px; line-height: 1.65; }
.prerender h1 { font-size: 1.9rem; line-height: 1.2; }
.prerender h2 { margin-top: 28px; }
.prerender ul { padding-left: 20px; display: grid; gap: 6px; }
.has-session .prerender { display: none; }
