/* NOTEX Praxis SLP Coach — mobile first */
:root {
  --navy: #16224A; --navy-2: #22305f; --ink: #0B0D12; --text: #1d2433; --muted: #667089;
  --sky: #8EC5FF; --sky-2: #5aa6f5; --ice: #EAF1FF; --bg: #f5f7fc; --card: #fff; --line: #e3e8f2;
  --ok: #1f9d6b; --ok-bg: #e6f6ef; --no: #d5483f; --no-bg: #fdecea; --warn: #c98a12; --warn-bg: #fff4dc;
  --r: 18px; --r-sm: 12px; --sh: 0 1px 2px rgba(22,34,74,.05), 0 8px 24px -12px rgba(22,34,74,.18);
  --serif: "Fraunces", Georgia, serif; --sans: "Inter", system-ui, -apple-system, sans-serif;
  --tab-h: 64px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--navy); text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .4em; }
h1 { font: 700 clamp(24px, 5vw, 32px)/1.15 var(--serif); letter-spacing: -.01em; }
h2 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0 0 .8em; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); } .tiny { font-size: 12.5px; } .link { font-weight: 600; font-size: 13.5px; color: var(--sky-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; font-weight: 700; color: var(--sky-2); margin: 0 0 6px; }
.eyebrow a { color: inherit; }

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 20px;
  font: 600 15px var(--sans); cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; text-decoration: none; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px -8px rgba(22,34,74,.6); }
.btn.primary:hover { background: var(--navy-2); }
.btn.soft { background: var(--ice); color: var(--navy); }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.sm { padding: 8px 14px; font-size: 13.5px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.icon-btn { border: 0; background: var(--ice); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--navy); }

/* struttura app */
.app .main { padding: 20px 16px calc(var(--tab-h) + 28px + env(safe-area-inset-bottom)); max-width: 1120px; margin: 0 auto; }
.side { display: none; }
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: flex; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
.tabbar a.on { color: var(--navy); }
.tabbar a.on .ic { color: var(--sky-2); }
@media (min-width: 900px) {
  .tabbar { display: none; }
  .side { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; width: 240px; background: var(--navy); color: #fff; padding: 22px 14px; z-index: 20; }
  .side .brand { color: #fff; margin: 0 8px 28px; }
  .side .brand small { color: var(--sky); }
  .side nav { display: flex; flex-direction: column; gap: 2px; }
  .side nav a, .side-foot a { display: flex; align-items: center; gap: 12px; color: #c9d3ee; padding: 11px 12px; border-radius: 12px; font-weight: 500; }
  .side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .side nav a.on { background: rgba(142,197,255,.14); color: #fff; }
  .side nav a.on .ic { color: var(--sky); }
  .side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
  .side-foot small { color: #8b97bd; padding: 0 12px; font-size: 12px; }
  .app .main { margin-left: 240px; padding: 34px 40px 60px; max-width: none; }
  .app .main > * { max-width: 1080px; }
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand b { display: block; letter-spacing: .16em; font-size: 14px; }
.brand small { display: block; font-size: 12px; color: var(--muted); margin-top: -2px; }
.logo { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(140deg, var(--sky), var(--sky-2)); color: var(--navy); display: grid; place-items: center; font: 700 19px var(--serif); flex: none; }
.logo.big { width: 54px; height: 54px; font-size: 28px; border-radius: 16px; }
.asadmin { background: var(--warn-bg); color: #6b4a00; text-align: center; padding: 8px 12px; font-size: 13px; position: relative; z-index: 40; }
.asadmin a { font-weight: 700; color: inherit; text-decoration: underline; }
@media (min-width: 900px) { .asadmin { margin-left: 240px; } }

/* testata pagina */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.page-head > div:first-child { min-width: 0; flex: 1 1 320px; }
.page-head p.muted { max-width: 640px; margin: 0; }
.head-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 13.5px; color: var(--text); }
.pill b { color: var(--ink); }
.pill.hot .ic { color: #f0782d; }

/* card */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--sh); margin-bottom: 16px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-h h2 { margin: 0; }
.hero-grid, .two { display: grid; gap: 16px; margin-bottom: 0; }
.hero-grid > .card, .two > .card { margin-bottom: 0; }
.hero-grid, .two { margin-bottom: 16px; }
@media (min-width: 760px) { .two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.25fr 1fr; } }

.note { display: flex; gap: 10px; align-items: flex-start; background: var(--ice); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.note.good { background: var(--ok-bg); } .note.good .ic { color: var(--ok); }
.alert { background: var(--no-bg); color: #8f2a23; border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }

/* punteggio */
.readiness { background: linear-gradient(160deg, #fff 40%, var(--ice)); }
.ready-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ready-txt { flex: 1 1 220px; }
.ready-txt h2 { font: 700 22px/1.2 var(--serif); margin: 8px 0 6px; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--ice); color: var(--navy); }
.st-ready .tag { background: var(--ok-bg); color: var(--ok); }
.st-close .tag { background: var(--warn-bg); color: var(--warn); }
.ring { position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--ice); stroke-width: 8; }
.ring-fg { fill: none; stroke: url(#g) var(--sky-2); stroke: var(--navy); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.st-ready .ring-fg { stroke: var(--ok); }
.ring-mark { stroke: var(--sky-2); stroke-width: 2; }
.ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-in b { font: 700 44px/1 var(--serif); color: var(--ink); }
.ring-in small { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 4px; }
.cats { display: grid; gap: 12px; }
@media (min-width: 600px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cats .cat { min-width: 0; }
.cats.many { gap: 10px 16px; } .cats.many .cat-h { font-size: 12px; } .cats.many small { display: none; }
.cats .cat-h span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.bar { position: relative; height: 8px; background: #edf1f8; border-radius: 99px; overflow: visible; }
.bar span { display: block; height: 100%; border-radius: 99px; background: var(--sky-2); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.bar.ok span { background: var(--ok); }
.bar i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--navy); opacity: .25; border-radius: 2px; }
.bar.thin { height: 5px; } .bar.thin i { display: none; }

/* piano del giorno */
.tasks { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.tasks a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); color: var(--text); transition: border-color .2s, background .2s; }
.tasks a:hover { border-color: var(--sky); background: #fafcff; }
.tasks .tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; }
.tasks .done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.tasks .done b { text-decoration: line-through; color: var(--muted); }
.t-txt { flex: 1; min-width: 0; } .t-txt b { display: block; font-size: 14.5px; } .t-txt small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-num { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tasks a > .ic:last-child { color: var(--muted); }

.focus { display: grid; grid-template-columns: 1fr 90px auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); }
.focus:first-of-type { border-top: 0; }
.focus b { display: block; font-size: 14px; } .focus small { color: var(--muted); font-size: 12.5px; }
.recent { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); }
.card-h + .recent { border-top: 0; }
.recent > span:nth-child(2) { flex: 1; min-width: 0; } .recent b { display: block; font-size: 14px; } .recent small { color: var(--muted); font-size: 12.5px; }
.ic-box { width: 38px; height: 38px; border-radius: 12px; background: var(--ice); color: var(--navy); display: grid; place-items: center; flex: none; }
.ic-box.ic-mock { background: #fff1e6; color: #c76a1d; }
.score { font-weight: 700; font-size: 14px; color: var(--no); } .score.ok { color: var(--ok); }

/* pratica */
.quick { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 700px) { .quick { grid-template-columns: repeat(3, 1fr); } }
.qcard { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--text); box-shadow: var(--sh); transition: transform .2s, box-shadow .2s; }
.qcard:hover { transform: translateY(-2px); }
.qcard .ic { color: var(--sky-2); margin-bottom: 4px; }
.qcard b { font-size: 16px; color: var(--ink); } .qcard small { color: var(--muted); }
.qcard.accent { background: var(--navy); border-color: var(--navy); }
.qcard.accent b { color: #fff; } .qcard.accent small { color: #b9c5e6; } .qcard.accent .ic { color: var(--sky); }
.qcard.off { opacity: .5; pointer-events: none; }
.row3 { display: grid; gap: 12px; } @media (min-width: 700px) { .row3 { grid-template-columns: 1.3fr 1.3fr .6fr; } }
.fld { display: block; margin-bottom: 14px; }
.fld > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
input:not([type=radio]):not([type=checkbox]), select, textarea { width: 100%; font: 15px var(--sans); padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--sky-2); box-shadow: 0 0 0 4px rgba(142,197,255,.25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 500; cursor: pointer; background: #fff; transition: all .15s; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--sky); }
.topics { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .topics { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .topics { grid-template-columns: repeat(3, 1fr); } }
.topic { display: flex; flex-direction: column; gap: 7px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); color: var(--text); transition: border-color .2s; }
.topic:hover { border-color: var(--sky); } .topic b { font-size: 14px; }

/* simulazioni */
.mocks { display: grid; gap: 14px; margin-bottom: 16px; }
@media (min-width: 800px) { .mocks { grid-template-columns: 1.2fr 1fr 1fr; } }
.mock { display: flex; flex-direction: column; align-items: flex-start; margin: 0; }
.mock h2 { margin-top: 12px; } .mock p { flex: 1; font-size: 14px; }
.mock.feature { background: linear-gradient(160deg, var(--navy), #2a3b78); border-color: var(--navy); color: #d9e2fb; }
.mock.feature h2 { color: #fff; } .mock.feature .muted { color: #b9c5e6; } .mock.feature .btn.primary { background: var(--sky); color: var(--navy); }
.how { margin: 0; padding-left: 18px; } .how li { margin-bottom: 6px; }

/* pagina domande */
.quiz-body { background: var(--bg); }
.quiz { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.qbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.qclose { color: var(--muted); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.qclose:hover { background: var(--ice); }
.qtitle { flex: 1; min-width: 0; } .qtitle b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .qtitle small { color: var(--muted); font-size: 12.5px; }
.timer { display: inline-flex; align-items: center; gap: 6px; font: 700 16px var(--sans); font-variant-numeric: tabular-nums; color: var(--navy); background: var(--ice); padding: 6px 12px; border-radius: 999px; }
.timer.low { background: var(--no-bg); color: var(--no); }
.qprog { height: 4px; background: var(--line); } .qprog span { display: block; height: 100%; background: var(--sky-2); transition: width .4s; width: 0; }
.qmain { flex: 1; padding: 22px 16px 110px; width: 100%; max-width: 760px; margin: 0 auto; }
.qmeta { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 30px; margin-bottom: 8px; }
.qmeta #qcat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-2); }
.flag { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: 600 13px var(--sans); color: var(--muted); cursor: pointer; }
.flag.on { background: #fff1e6; border-color: #f0b07a; color: #c76a1d; }
.stem { font-size: 17.5px; line-height: 1.6; color: var(--ink); font-weight: 500; margin-bottom: 20px; white-space: pre-line; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  font: 15.5px/1.5 var(--sans); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
@media (hover: hover) { .choice:hover:not(:disabled) { border-color: var(--sky-2); } }
.choice:active:not(:disabled) { transform: scale(.99); }
.letter { width: 28px; height: 28px; border-radius: 8px; background: var(--ice); color: var(--navy); font-weight: 700; display: grid; place-items: center; flex: none; font-size: 13.5px; }
.ctext { padding-top: 2px; }
.choice.picked { border-color: var(--navy); background: #f3f6ff; } .choice.picked .letter { background: var(--navy); color: #fff; }
.choice.right { border-color: var(--ok); background: var(--ok-bg); } .choice.right .letter { background: var(--ok); color: #fff; }
.choice.wrong { border-color: var(--no); background: var(--no-bg); } .choice.wrong .letter { background: var(--no); color: #fff; }
.choice.dim { opacity: .6; }
.choice:disabled { cursor: default; }
.feedback { margin-top: 20px; padding: 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.fb-h { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.fb-h.ok { color: var(--ok); } .fb-h.no { color: var(--no); }
.feedback details { margin: 6px 0 12px; } .feedback summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--navy); }
.feedback ul { padding-left: 18px; margin: 8px 0 0; font-size: 14.5px; } .feedback li { margin-bottom: 6px; }
.ebook-link { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--ice); color: var(--navy); font-size: 14px; }
.ebook-link b { font-weight: 600; }
.qfoot { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.qfoot .btn.primary { flex: 1; max-width: 340px; margin-left: auto; }
@media (max-width: 520px) { .hide-sm { display: none; } }
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(11,13,18,.45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.sheet-in { background: #fff; width: 100%; max-width: 640px; max-height: 86vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .25s ease; }
.sheet-in.small { max-width: 440px; }
@keyframes up { from { transform: translateY(30px); } }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-in { border-radius: 22px; } }
.grid-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin: 12px 0 18px; }
.grid-nav button { height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: 600 13.5px var(--sans); cursor: pointer; color: var(--muted); position: relative; }
.grid-nav .ans { background: var(--ice); border-color: var(--ice); color: var(--navy); }
.grid-nav .flg::after { content: ""; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: #f0782d; }
.grid-nav .cur { border-color: var(--navy); }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--line); vertical-align: -2px; margin: 0 4px 0 10px; }
.lg.ans { background: var(--ice); border-color: var(--ice); } .lg.flg { background: #f0782d; border-color: #f0782d; border-radius: 50%; width: 9px; height: 9px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.row-btns .btn { flex: 1 1 140px; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; transition: all .3s; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* risultati */
.result-main { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.result-main > div:last-child { flex: 1 1 260px; }
.sub { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cat { margin-bottom: 12px; }
.area-row, .spec-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.area-row b.ok, .spec-row b.ok { color: var(--ok); } .area-row b.no, .spec-row b.no { color: var(--no); }
.seg { display: inline-flex; background: var(--ice); border-radius: 999px; padding: 3px; }
.seg a { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg a.on { background: #fff; color: var(--navy); box-shadow: var(--sh); }
.rev { border-top: 1px solid var(--line); }
.rev summary { list-style: none; display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; }
.rev summary::-webkit-details-marker { display: none; }
.rev .num { width: 28px; height: 28px; border-radius: 8px; background: var(--ice); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; flex: none; }
.rev-stem { flex: 1; font-size: 14.5px; }
.rev .mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.rev.ok .mark { background: var(--ok); } .rev.no .mark { background: var(--no); }
.rev-body { padding: 0 0 16px 40px; font-size: 14.5px; }
.rev-body .stem { font-size: 15.5px; }
.rev-choices { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.rev-choices li { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); }
.rev-choices li.right { background: var(--ok-bg); border-color: var(--ok); } .rev-choices li.wrong { background: var(--no-bg); border-color: var(--no); }
.rev-choices em { color: var(--muted); font-size: 12.5px; }
.why { background: var(--no-bg); padding: 10px 12px; border-radius: 10px; }
@media (max-width: 520px) { .rev-body { padding-left: 0; } }

/* flashcard */
.fc-wrap { max-width: 620px; margin: 0 auto; }
.fc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13px; color: var(--muted); font-weight: 600; }
.fc-top .qprog { flex: 1; border-radius: 99px; overflow: hidden; }
.fc { position: relative; min-height: 380px; perspective: 1400px; cursor: pointer; margin-bottom: 16px; outline: none; }
.fc-face { position: absolute; inset: 0; background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(22,34,74,.35); padding: 26px 22px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .55s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; overflow: auto; }
.fc-face.front { justify-content: center; align-items: center; text-align: center; background: linear-gradient(160deg, #fff, var(--ice)); }
.fc-face.back { transform: rotateY(180deg); }
.fc.flipped .front { transform: rotateY(-180deg); } .fc.flipped .back { transform: rotateY(0); }
.fc-sec { position: absolute; top: 18px; left: 22px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-2); }
.fc-q { font: 600 21px/1.4 var(--serif); color: var(--ink); max-width: 480px; }
.fc-hint { position: absolute; bottom: 18px; font-size: 12.5px; color: var(--muted); }
.fc-a { font-size: 15.5px; } .fc-face.back img { max-width: 100%; max-height: 220px; object-fit: contain; margin: 10px auto; border-radius: 10px; }
.fc-hook, .fc-tip { font-size: 14px; padding: 10px 12px; border-radius: 10px; margin-top: 10px; }
.fc-hook:empty, .fc-tip:empty { display: none; }
.fc-hook { background: var(--ice); } .fc-tip { background: var(--warn-bg); }
.fc-hook b, .fc-tip b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grades[hidden] { display: none; }
.grades button { border: 0; border-radius: 14px; padding: 12px 4px; cursor: pointer; font: 600 14px var(--sans); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.grades small { font-weight: 500; font-size: 11.5px; opacity: .75; }
.g0 { background: var(--no-bg); color: var(--no); } .g1 { background: var(--warn-bg); color: var(--warn); } .g2 { background: var(--ice); color: var(--navy); } .g3 { background: var(--ok-bg); color: var(--ok); }
.empty { text-align: center; padding: 40px 20px; } .empty > .ic { color: var(--ok); margin-bottom: 10px; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; text-align: center; }
.stat3 b { display: block; font: 700 30px var(--serif); color: var(--ink); } .stat3 small { color: var(--muted); font-size: 12.5px; }
.fc-hero .btn { margin-top: 14px; }
.deck { display: grid; gap: 6px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .deck { grid-template-columns: 1fr 1fr; } }
.deck-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); font-size: 14px; }
.deck-item .num { font-weight: 700; color: var(--sky-2); font-size: 12.5px; padding-top: 2px; }

/* ebook */
.chapters { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .chapters { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .chapters { grid-template-columns: repeat(3, 1fr); } }
.chapter { display: flex; flex-direction: column; gap: 6px; color: var(--text); margin: 0; transition: transform .2s; }
.chapter:hover { transform: translateY(-2px); }
.ch-num { font: 700 30px var(--serif); color: var(--sky-2); }
.chapter b { font-size: 15.5px; color: var(--ink); line-height: 1.35; }
.toc-pages { list-style: none; padding: 0; margin: 0; }
.toc-pages a { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 14px; }
.toc-pages .tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; margin-top: 1px; }
.toc-pages .read .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.reader { max-width: 760px; margin: 0 auto; }
.reader h1 { margin-bottom: 10px; }
.praxis-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.praxis-tags span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--ice); color: var(--navy); }
.prose { font-size: 16px; line-height: 1.7; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose ul { padding-left: 20px; } .prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.tbl { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; }
.tbl table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.5; }
.tbl caption { text-align: left; font-weight: 700; padding: 12px 14px 4px; color: var(--ink); }
.tbl th { background: var(--navy); color: #fff; text-align: left; padding: 9px 12px; font-weight: 600; }
.tbl td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tr:nth-child(even) td { background: #fafbfe; }
.callout { border-radius: 14px; padding: 14px 16px; margin: 18px 0; background: var(--ice); border-left: 4px solid var(--sky-2); }
.callout span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-2); }
.callout b { display: block; color: var(--ink); margin: 2px 0 4px; } .callout p { margin: 0; font-size: 15px; }
.callout.exam_alert { background: var(--no-bg); border-color: var(--no); } .callout.exam_alert span { color: var(--no); }
.callout.mnemonic, .callout.memory_trick { background: #f3eefe; border-color: #8a6ae0; } .callout.mnemonic span, .callout.memory_trick span { color: #7150c9; }
.callout.clinical_tip { background: var(--ok-bg); border-color: var(--ok); } .callout.clinical_tip span { color: var(--ok); }
.fig { margin: 20px 0; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.fig img { display: block; max-width: 100%; max-height: 420px; margin: 0 auto; border-radius: 8px; }
.fig figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }
.f-tiles { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.f-tiles div { background: var(--ice); border-radius: 12px; padding: 12px; font-size: 14px; }
.f-tiles b { display: block; color: var(--navy); }
.f-compare { display: grid; gap: 10px; } @media (min-width: 600px) { .f-compare { grid-template-columns: 1fr 1fr; } }
.f-compare > div { background: var(--ice); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.f-compare h4 { margin: 0 0 6px; color: var(--navy); } .f-compare ul { margin: 0; padding-left: 18px; }
.f-flow, .f-timeline, .f-ladder { list-style: none; padding: 0; margin: 0; counter-reset: s; display: flex; flex-direction: column; gap: 8px; }
.f-flow li, .f-timeline li { counter-increment: s; position: relative; padding: 10px 12px 10px 48px; background: var(--ice); border-radius: 12px; font-size: 14px; }
.f-flow li::before, .f-timeline li::before { content: counter(s); position: absolute; left: 12px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.f-flow small, .f-timeline span { display: block; color: var(--muted); font-size: 13px; }
.f-ladder li { padding: 10px 14px; border-radius: 10px; background: var(--ice); font-size: 14px; text-align: center; }
.f-ladder li:last-child { background: var(--navy); color: #fff; } .f-ladder li:last-child strong { color: #fff; }
.f-bars { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.fb-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 54px; gap: 8px; align-items: center; }
.fb-row div { height: 12px; background: var(--ice); border-radius: 99px; overflow: hidden; } .fb-row i { display: block; height: 100%; background: var(--sky-2); border-radius: 99px; }
.fb-row b { text-align: right; font-variant-numeric: tabular-nums; }
.reader-end { margin: 26px 0 10px; }
.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* progressi */
.stat4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (min-width: 800px) { .stat4 { grid-template-columns: repeat(4, 1fr); } }
.stat4 .card { margin: 0; } .stat4 b { display: block; font: 700 28px var(--serif); color: var(--ink); } .stat4 small { color: var(--muted); font-size: 12.5px; }
.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; max-width: 320px; margin-bottom: 10px; }
.heat span { aspect-ratio: 1; border-radius: 5px; background: #edf1f8; }
.heat .l1 { background: #c7defc; } .heat .l2 { background: var(--sky-2); } .heat .l3 { background: var(--navy); }
.spark { position: relative; display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 18px; }
.sp-col { flex: 1; max-width: 56px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.sp-col i { width: 100%; border-radius: 8px 8px 3px 3px; background: var(--sky-2); }
.sp-col i.ok { background: var(--ok); }
.sp-v { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.sp-col small { position: absolute; bottom: -20px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.sp-line { position: absolute; left: 0; right: 0; border-top: 2px dashed rgba(22,34,74,.25); }
.spark { margin-bottom: 26px; }
.spec-row .code { font-weight: 700; color: var(--sky-2); width: 58px; flex: none; font-size: 13px; }
.spec-row span:nth-child(2) { flex: 1; }

/* accesso */
.login { background: var(--bg); }
.login-wrap { min-height: 100vh; min-height: 100dvh; display: grid; }
@media (min-width: 900px) { .login-wrap { grid-template-columns: 1.1fr 1fr; } }
.login-art { display: none; background: radial-gradient(1200px 600px at 20% 10%, #2b3f86, var(--navy)); color: #fff; padding: 60px; }
@media (min-width: 900px) { .login-art { display: flex; align-items: center; } }
.login-art h2 { font: 700 42px/1.1 var(--serif); color: #fff; margin: 26px 0 24px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: #d4ddf6; }
.ticks li { display: flex; gap: 10px; align-items: center; } .ticks .ic { color: var(--sky); }
.login-card { align-self: center; justify-self: center; width: 100%; max-width: 420px; padding: 40px 22px; }
.login-card .brand { margin-bottom: 34px; }
.login-card input[name=code] { font: 600 20px var(--sans); letter-spacing: .08em; text-align: center; text-transform: uppercase; padding: 16px; }
.login-card .btn { margin: 4px 0 16px; padding: 15px; }
.center-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.setup { max-width: 520px; width: 100%; padding: 30px 24px; }
.setup .brand { margin-bottom: 24px; }
.setup .btn { margin-top: 8px; }

/* admin */
.adm { background: var(--bg); }
.adm-top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.adm-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.adm-top .adm-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.adm-top .brand { color: #fff; } .adm-top .brand small { color: var(--sky); }
.adm-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.adm-nav a { color: #c9d3ee; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.adm-nav a.on, .adm-nav a:hover { background: rgba(142,197,255,.15); color: #fff; }
.adm-main { padding-top: 26px; padding-bottom: 60px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-table td { padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.adm-kv { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 14px; }
.adm-kv td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.adm-kv td:first-child { color: var(--muted); width: 38%; padding-right: 10px; }
.adm-kv input { padding: 8px 10px; font-size: 13px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.adm-actions .inline { display: inline-flex; gap: 6px; align-items: center; }
.adm-actions select { width: auto; padding: 7px 10px; }
.btn.danger { color: var(--no); }
.adm-edit { border-top: 1px solid var(--line); padding-top: 14px; }
.st { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--ice); color: var(--navy); }
.st-revoked, .st-email-fallita, .st-rifiutato, .st-errore { background: var(--no-bg); color: var(--no); }
.st-inviato, .st-active { background: var(--ok-bg); color: var(--ok); }
.no { color: var(--no); }
.code-big { font-family: Menlo, Consolas, monospace; font-weight: 700; color: var(--navy); letter-spacing: .06em; }
.big-n { font: 700 34px var(--serif); color: var(--navy); }
.ic-box b { font-size: 13px; }
tr.click { cursor: pointer; } tr.click:hover td { background: #f6f9ff; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters > * { flex: 1 1 200px; }
.fld.chk { display: flex; align-items: center; gap: 8px; padding-top: 26px; } .fld.chk span { margin: 0; font-weight: 500; }
.rev.off { opacity: .45; }
.rev-stem .code { color: var(--sky-2); font-size: 12px; margin-right: 4px; }
.settings .how { margin-bottom: 16px; font-size: 14px; } .settings .how input { margin-top: 6px; padding: 8px 10px; font-size: 13px; }
code { background: var(--ice); padding: 1px 6px; border-radius: 6px; font-size: 13px; }

/* cambio prodotto (studente con più corsi) */
.switcher { display: flex; flex-direction: column; gap: 4px; margin: -12px 0 22px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.06); }
.switcher span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #8b97bd; padding: 0 6px 4px; }
.switcher a { color: #c9d3ee; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.switcher a.on { background: var(--sky); color: var(--navy); }
.switcher.top { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; padding: 0; background: none; }
.switcher.top span { display: none; }
.switcher.top a { color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; }
.switcher.top a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (min-width: 900px) { .switcher.top { display: none; } }
.prod-tabs { margin-bottom: 16px; flex-wrap: wrap; }
.stat3.left { text-align: left; margin: 14px 0 18px; }
.prod-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.prod-chips .st { font-size: 11.5px; }

/* ───────── installazione app ───────── */
.install-link, .install-link-login { display: none !important; }
.can-install .install-link, .can-install .install-link-login { display: flex !important; }
.install-link-login { margin: 0 0 16px !important; }
.install-bar { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 12px 14px; box-shadow: var(--sh); margin-bottom: 18px; animation: rise .4s ease; }
.install-bar img { border-radius: 12px; flex: none; }
.ib-txt { flex: 1; min-width: 0; } .ib-txt b { display: block; font-size: 14.5px; } .ib-txt small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.ib-x { border: 0; background: none; color: var(--muted); padding: 6px; cursor: pointer; align-self: flex-start; }
@media (min-width: 900px) { .install-bar { display: none !important; } }
.guide { position: fixed; inset: 0; z-index: 70; background: rgba(11,13,18,.55); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.guide[hidden] { display: none; }
.guide-in { position: relative; background: #fff; width: 100%; max-width: 460px; border-radius: 24px 24px 0 0; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); text-align: center; animation: up .3s ease; max-height: 88vh; overflow: auto; }
@media (min-width: 700px) { .guide { align-items: center; } .guide-in { border-radius: 24px; } }
.guide-x { position: absolute; top: 14px; right: 14px; }
.guide-app { border-radius: 16px; margin: 0 auto 12px; box-shadow: var(--sh); }
.guide-in h2 { font: 700 22px/1.2 var(--serif); }
.steps-g { list-style: none; padding: 0; margin: 18px 0 20px; text-align: left; display: flex; flex-direction: column; gap: 10px; counter-reset: g; }
.steps-g li { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--bg); }
.steps-g b { display: block; font-size: 15px; } .steps-g small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.45; }
.steps-g small .ic { vertical-align: -2px; }
.g-ic { width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: #0a84ff; flex: none; }
.g-add { font-weight: 700; font-size: 14px; color: #0a84ff; }
.guide .only-other, .guide .only-ipad, .guide .g-ipad, .guide .g-chrome { display: none; }
.guide.is-other .only-ios, .guide.is-other .only-iphone { display: none; }
.guide.is-other .only-other { display: block; } .guide.is-other h2 .only-other { display: inline; }
.guide.is-ipad .only-iphone, .guide.is-ipad .g-safari { display: none; } .guide.is-ipad .only-ipad, .guide.is-ipad .g-ipad { display: inline; }
.guide.is-ipad .g-ipad { display: block; }
.guide.is-chrome .g-safari, .guide.is-chrome .g-ipad { display: none; } .guide.is-chrome .g-chrome { display: block; }
.guide .how { text-align: left; font-size: 14px; margin-bottom: 18px; }
/* freccia verso la barra di Safari, solo su iPhone con Safari */
.guide-arrow { position: fixed; left: 50%; bottom: 10px; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; background: #fff; color: #0a84ff; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.3); transform: rotate(90deg); animation: nudge 1.2s ease-in-out infinite; pointer-events: none; }
.guide-arrow { display: none; }
.guide.is-safari .guide-arrow { display: grid; }
@media (max-width: 699px) { .guide.is-safari .guide-in { margin: 0 10px 64px; border-radius: 24px; } }
@media (min-width: 700px) { .guide-arrow { display: none; } }
@keyframes nudge { 50% { transform: rotate(90deg) translateX(7px); } }
.guide-open { overflow: hidden; }

/* ebook a pagine illustrate (es. Sonography) */
.pageimg { margin: 0 0 16px; } .pageimg img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--sh); background: #fff; }
.pageimg figcaption { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 8px; }
@media (max-width: 700px) { .reader .pageimg { margin-left: -8px; margin-right: -8px; } }

/* ───────── admin: elenco codici largo, come 3D WEB LAB ───────── */
.adm.wide .adm-in { max-width: 1680px; }
.codes-tbl td { vertical-align: middle; }
.codes-tbl .mono { font-family: Menlo, Consolas, monospace; }
.codes-tbl .who b { display: block; } .codes-tbl .who small { display: block; color: var(--muted); }
.codes-tbl .when { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.codes-tbl .ac { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.codes-tbl .ac form { margin: 0; }
.btn.gm-no { background: var(--no-bg); color: var(--no); box-shadow: inset 0 0 0 1.5px var(--no); }
.btn.gm-ok { background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 1.5px var(--ok); }
.st-mail-ok { background: var(--ok-bg); color: var(--ok); }
.st-mail-no { background: var(--no-bg); color: var(--no); }
.st-mail-none { background: var(--warn-bg); color: var(--warn); }
.st-inuso { background: var(--ok-bg); color: var(--ok); }
.soll { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.soll-note { font-size: 13px; color: var(--muted); margin: 6px 0 14px; }

tr.just-done td { background: var(--ok-bg) !important; transition: background 2s; }
.done-tag { display: inline-block; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; color: var(--ok); }

.mailcol .st { margin: 0 4px 4px 0; }
.mlog { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12px; color: var(--muted); line-height: 1.5; white-space: nowrap; }
.mlog b { color: var(--ink); font-weight: 600; }
.camp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.camp-stats .card { padding: 16px 18px; margin: 0; } .camp-stats b { display: block; font: 700 28px var(--serif); color: var(--navy); } .camp-stats span { font-size: 13px; color: var(--muted); }
.note.trial-end { display: block; background: var(--warn-bg); }

/* prova gratuita: barra e popup con l'offerta */
.trial-bar { position: sticky; top: 8px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; background: #d5483f; color: #fff; border-radius: var(--r); padding: 12px 14px 12px 18px; margin-bottom: 18px; font-size: 14px; box-shadow: 0 10px 24px -14px rgba(213,72,63,.8); }
.trial-bar-txt b { display: block; font-size: 15px; } .trial-bar-txt span { opacity: .92; font-size: 13px; }
.trial-bar-btns { display: flex; align-items: center; gap: 10px; }
.trial-how { background: none; border: 0; color: #fff; text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; padding: 6px 2px; }
.trial-buy { background: #fff; color: #b3261e; font-weight: 700; }
.trial-buy:hover { background: #fff3f2; }
@media (max-width: 640px) { .trial-bar { top: 6px; padding: 12px 14px; } .trial-bar-btns { width: 100%; justify-content: space-between; } .trial-buy { flex: 1; text-align: center; } }
.trial-pop { position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.trial-pop[hidden] { display: none; }
.trial-card { position: relative; background: var(--card, #fff); border-radius: 20px; max-width: 460px; width: 100%; max-height: 92vh; overflow: auto; padding: 26px 24px 20px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
.trial-card h2 { font: 700 23px/1.25 var(--serif); color: var(--navy); margin: 4px 0 12px; }
.trial-card p { font-size: 14.5px; line-height: 1.6; margin: 0 0 12px; }
.trial-card .btn.wide { margin-top: 8px; }
.trial-steps { margin: 0 0 14px; padding-left: 20px; font-size: 14px; line-height: 1.55; } .trial-steps li { margin-bottom: 6px; }
.code-chip { font-family: Menlo, Consolas, monospace; background: var(--ice); color: var(--navy); padding: 1px 8px; border-radius: 6px; }
.trial-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }

.inline-n { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.inline-n input { width: 70px; padding: 6px 8px; }
