/* Nirvaga Learn: guides, free tools and the lead popup. Builds on nirvaga.css. */

.crumbs { font-size: 13.5px; color: var(--muted-foreground); padding-top: 28px; }
.crumbs a { color: var(--muted-foreground); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 6px; opacity: .6; }

/* ---- hub ---------------------------------------------------------------- */
.learn-hero { padding: 40px 0 24px; }
.learn-hero h1 { font-size: clamp(34px, 5vw, 54px); max-width: 780px; }
.learn-hero p.sub { margin-top: 16px; color: var(--muted-foreground); font-size: 18px; max-width: 680px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: var(--brand-wash); color: var(--brand-ink); }
.tag.rest { background: #e7f6ec; color: #16743a; }
.tag.free { background: #ece9fd; color: #5137c6; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 22px; }
.lcard { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; transition: border-color .18s var(--ease), transform .18s var(--ease); }
.lcard:hover { border-color: var(--brand); transform: translateY(-2px); }
.lcard h3 { font-size: 19px; line-height: 1.25; }
.lcard p { color: var(--muted-foreground); font-size: 15px; }
.lcard .more { margin-top: auto; font-weight: 600; font-size: 14.5px; color: var(--brand); }
.hub-section { padding: 36px 0; }
.hub-section h2 { font-size: clamp(24px, 3vw, 32px); }

/* ---- article ------------------------------------------------------------ */
.article { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 18px 0 40px; }
@media (min-width: 1000px) { .article { grid-template-columns: minmax(0, 1fr) 300px; } }
.article header h1 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 12px; }
.article .meta { margin-top: 14px; color: var(--muted-foreground); font-size: 14px; }
.article .lede { margin-top: 18px; font-size: 19px; color: #3a3a3e; }
.prose { margin-top: 28px; font-size: 17px; line-height: 1.75; color: #2a2a2e; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; line-height: 1.2; }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose p { margin: 12px 0; }
.prose ul, .prose ol { margin: 12px 0 12px 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--foreground); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--muted); font-weight: 600; }
.callout { margin: 22px 0; padding: 16px 18px; border-radius: var(--radius); background: var(--brand-wash); border: 1px solid #f6cdb8; font-size: 16px; }
.callout.note { background: #f4f4f2; border-color: var(--border); }
.toc { margin-top: 24px; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); font-size: 15px; }
.toc b { display: block; margin-bottom: 6px; }
.toc a { display: block; padding: 3px 0; color: var(--muted-foreground); }
.toc a:hover { color: var(--brand); }
.inline-cta { margin: 34px 0; padding: 24px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.inline-cta p { font-size: 18px; font-family: var(--display); font-weight: 600; max-width: 520px; }
.inline-cta .btn { background: var(--brand-grad); color: #fff; border: 0; }
.faq { margin-top: 44px; }
.faq h2 { font-size: 26px; margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted-foreground); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 8px; color: #3a3a3e; }
.aside { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1000px) { .aside { position: sticky; top: 90px; align-self: start; } }
.aside .box { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; background: var(--card); }
.aside .box h4 { font-size: 16px; margin-bottom: 10px; }
.aside .box a.lk { display: block; padding: 6px 0; font-size: 15px; color: var(--foreground); }
.aside .box a.lk:hover { color: var(--brand); }
.aside .box.dark { background: var(--ink); color: #fff; border: 0; }
.aside .box.dark p { color: #cfcfd4; font-size: 14.5px; margin: 6px 0 14px; }
.aside .box.dark .btn { background: var(--brand-grad); color: #fff; border: 0; width: 100%; }
.disclaimer { margin-top: 28px; font-size: 13.5px; color: var(--muted-foreground); }

/* ---- tools -------------------------------------------------------------- */
.tool { margin-top: 26px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.tool-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .tool-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tool h2 { font-size: 20px; margin-bottom: 12px; }
.fld { display: block; margin: 10px 0; }
.fld span { display: block; font-size: 13px; font-weight: 600; color: #4a4a4f; margin-bottom: 5px; }
.fld input, .fld select, .fld textarea, .row input, .row select { width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 15px; background: #fff; color: var(--foreground); }
.fld textarea { height: auto; padding: 10px 12px; min-height: 64px; }
.fld input:focus, .fld select:focus, .row input:focus, .row select:focus, .fld textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.two { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.rows { margin-top: 8px; }
.row { display: grid; gap: 8px; align-items: center; margin: 8px 0; }
.row .x { width: 36px; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; color: var(--muted-foreground); font-size: 18px; }
.row .x:hover { color: #c62828; border-color: #f3b4b4; }
.addrow { margin-top: 6px; background: none; border: 1px dashed var(--border); border-radius: 10px; height: 40px; width: 100%; cursor: pointer; font: inherit; font-weight: 600; color: var(--brand); }
.addrow:hover { border-color: var(--brand); }
.check { display: flex; gap: 8px; align-items: center; font-size: 15px; margin: 8px 0; }
.result { background: var(--muted); border-radius: var(--radius); padding: 18px; }
.result .big { font-family: var(--display); font-size: 32px; font-weight: 700; }
.result dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; margin-top: 10px; font-size: 15.5px; }
.result dt { color: #4a4a4f; }
.result dd { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.result dd.neg { color: #c62828; }
.result .total { border-top: 1px solid var(--border); padding-top: 8px; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.actions .btn { height: 44px; }
.btn-wa { background: #1faa59; color: #fff; border-color: #1faa59; }
.hint { font-size: 13px; color: var(--muted-foreground); margin-top: 6px; }

/* invoice / price list preview (also what prints) */
.sheet { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; font-size: 14px; color: #1c1c1e; }
.sheet h3 { font-size: 20px; }
.sheet .muted { color: #6b6b70; }
.sheet table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.sheet th, .sheet td { padding: 7px 6px; border-bottom: 1px solid #eee; text-align: left; font-variant-numeric: tabular-nums; }
.sheet th:last-child, .sheet td:last-child, .sheet .r { text-align: right; }
.sheet .tot td { border: 0; padding: 4px 6px; }
.sheet .grand td { font-weight: 700; font-size: 16px; border-top: 2px solid #1c1c1e; }
.pl-head { text-align: center; padding-bottom: 12px; border-bottom: 3px solid var(--plc, #e2481b); }
.pl-head img { max-height: 70px; margin: 0 auto 8px; }
.pl-cat { margin-top: 16px; font-family: var(--display); font-weight: 700; color: var(--plc, #e2481b); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.pl-item { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dotted #ddd; }
.pl-item span:first-child { flex: 1; }

@media print {
  body.printing * { visibility: hidden !important; }
  body.printing .print-me, body.printing .print-me * { visibility: visible !important; }
  body.printing .print-me { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
  .site-header, .nv-pop, .nv-bar { display: none !important; }
  @page { margin: 12mm; }
}

/* ---- popup and bar ------------------------------------------------------ */
.nv-pop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(17,17,19,.45); padding: 0; }
@media (min-width: 640px) { .nv-pop { align-items: center; padding: 20px; } }
.nv-pop .card { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 22px 22px 0 0; padding: 26px 24px 22px; box-shadow: 0 24px 60px rgba(0,0,0,.25); animation: nvUp .28s var(--ease); }
@media (min-width: 640px) { .nv-pop .card { border-radius: 22px; } }
@keyframes nvUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.nv-pop .close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--muted); cursor: pointer; font-size: 18px; color: #4a4a4f; }
.nv-pop h3 { font-size: 22px; line-height: 1.2; padding-right: 30px; }
.nv-pop p.s { margin-top: 8px; color: var(--muted-foreground); font-size: 15px; }
.nv-pop ul { margin: 12px 0 4px 0; list-style: none; font-size: 14.5px; }
.nv-pop ul li { padding: 3px 0; }
.nv-pop ul li::before { content: "✓ "; color: #1faa59; font-weight: 700; }
.nv-pop form { margin-top: 12px; display: grid; gap: 8px; }
.nv-pop input { height: 44px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 15px; }
.nv-pop input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.nv-pop .btn { height: 46px; background: var(--brand-grad); color: #fff; border: 0; }
.nv-pop .fine { font-size: 12.5px; color: var(--muted-foreground); text-align: center; margin-top: 4px; }
.nv-pop .ok { padding: 10px 0; }
.nv-pop .err { color: #c62828; font-size: 13.5px; }
.nv-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; display: flex; gap: 12px; align-items: center; justify-content: center; font-size: 14.5px; transform: translateY(110%); transition: transform .25s var(--ease); }
.nv-bar.show { transform: none; }
.nv-bar .btn { height: 38px; padding: 0 16px; background: var(--brand-grad); color: #fff; border: 0; white-space: nowrap; }
.nv-bar .x { background: none; border: 0; color: #9a9aa0; font-size: 20px; cursor: pointer; padding: 0 4px; }
@media (max-width: 520px) { .nv-bar span.t { font-size: 13.5px; } }

/* small screens: result tables scroll inside their card; the bar never hides content */
.result .sheet { overflow-x: auto; }
.result .sheet table { min-width: 420px; }
body:has(.nv-bar.show) { padding-bottom: 64px; }
@media (max-width: 560px) {
  .tool { padding: 16px; }
  .tool .rows .row { display: flex; flex-wrap: wrap; }
  .tool .rows .row > * { flex: 1 1 0; min-width: 0; }
  .tool .rows .row > :first-child { flex-basis: 100%; }
  .tool .rows .row > .x { flex: 0 0 36px; }
  .tool .rows .row { padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
}
body:has(.nv-pop) .nv-bar { display: none; }
.lcard .tag { align-self: flex-start; }

/* ---- Academy ------------------------------------------------------------ */
.tag.ac { background: #1c1412; color: #f6a36c; }
.ac-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; color: var(--muted-foreground); font-size: 15px; }
.ac-stats b { color: var(--foreground); font-family: var(--display); font-size: 20px; margin-right: 4px; }
.ac-steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 18px; }
.ac-steps div { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; background: var(--card); font-size: 15px; color: #3a3a3e; }
.ac-steps b { display: block; font-family: var(--display); font-size: 17px; color: var(--foreground); margin-bottom: 4px; }
.ac-card .meta { font-size: 13.5px; color: var(--muted-foreground); }
.ac-prog { height: 6px; border-radius: 99px; background: var(--muted); overflow: hidden; margin-top: 4px; }
.ac-prog i { display: block; height: 100%; width: 0; background: var(--brand-grad); transition: width .3s; }
.ac-prog-l { font-size: 12.5px; color: var(--muted-foreground); min-height: 16px; }
.ac-lessons { margin-top: 18px; display: grid; gap: 10px; }
.ac-lessons a { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); color: var(--foreground); }
.ac-lessons a:hover { border-color: var(--brand); }
.ac-lessons .num { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-wash); color: var(--brand-ink); font-weight: 700; font-size: 14px; }
.ac-lessons .t { flex: 1; min-width: 0; }
.ac-lessons .t b { display: block; font-weight: 600; font-size: 16px; }
.ac-lessons .t span { font-size: 13.5px; color: var(--muted-foreground); }
.ac-lessons .free { font-size: 12px; font-weight: 600; color: #16743a; background: #e7f6ec; border-radius: 99px; padding: 2px 9px; white-space: nowrap; }
.ac-lessons a.is-done .num, .ac-outline a.is-done::before { background: #1faa59; color: #fff; }
.ac-lessons a.is-done .num { font-size: 0; }
.ac-lessons a.is-done .num::after { content: "✓"; font-size: 16px; }

.ac-player { position: relative; margin-top: 22px; border-radius: var(--radius-lg); overflow: hidden; background: #1c1412; aspect-ratio: 16 / 9; }
.ac-player video { width: 100%; height: 100%; display: block; background: #1c1412; }
.ac-lock { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; background: linear-gradient(rgba(20,12,10,.35), rgba(20,12,10,.82)); color: #fff; }
.ac-lock h3 { font-size: clamp(18px, 2.6vw, 26px); color: #fff; }
.ac-lock p { margin: 8px auto 16px; max-width: 460px; color: #eadfd8; font-size: 15px; }
.ac-lock .btn { background: var(--brand-grad); color: #fff; border: 0; }
.nv-unlocked .ac-lock { display: none; }
.ac-chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ac-chapters button { border: 1px solid var(--border); background: var(--card); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 13.5px; cursor: pointer; color: #3a3a3e; }
.ac-chapters button:hover { border-color: var(--brand); color: var(--brand); }
.ac-chapters span { color: var(--muted-foreground); margin-right: 6px; font-variant-numeric: tabular-nums; }
.ac-answer { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--brand); font-size: 17px; line-height: 1.65; }
.ac-answer b { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 4px; }
.ac-take { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.ac-take h2 { font-size: 18px; margin-bottom: 6px; }
.ac-take li { margin: 6px 0 6px 20px; }

.gated { position: relative; }
html:not(.nv-unlocked) .gated { max-height: 340px; overflow: hidden; }
html:not(.nv-unlocked) .gated::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; background: linear-gradient(rgba(250,250,248,0), var(--background, #fafaf8) 85%); }
.ac-wall { display: none; margin: 0 0 30px; padding: 26px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; text-align: center; }
html:not(.nv-unlocked) .ac-wall { display: block; }
.ac-wall h3 { color: #fff; font-size: 22px; }
.ac-wall p { color: #cfcfd4; margin: 8px auto 16px; max-width: 520px; }
.ac-wall .btn { background: var(--brand-grad); color: #fff; border: 0; }
.ac-wall ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0 0 16px; font-size: 14.5px; color: #eadfd8; }
.ac-wall li::before { content: "✓ "; color: #6fd39b; }

.ac-check { list-style: none; margin: 10px 0 0; padding: 0; }
.ac-check li { margin: 8px 0; }
.ac-check label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.ac-check input { width: 20px; height: 20px; margin-top: 4px; accent-color: #1faa59; flex: 0 0 20px; }
.ac-check input:checked + span { text-decoration: line-through; color: var(--muted-foreground); }
.ac-quiz { margin-top: 10px; display: grid; gap: 18px; }
.ac-q p.q { font-weight: 600; margin-bottom: 8px; }
.ac-q .opts { display: grid; gap: 8px; }
.ac-q button { text-align: left; border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 15.5px; cursor: pointer; color: var(--foreground); }
.ac-q:not(.done) button:hover { border-color: var(--brand); }
.ac-q button.right { border-color: #1faa59; background: #eaf8f0; }
.ac-q button.wrong { border-color: #c62828; background: #fdecec; }
.ac-q .why { margin-top: 8px; font-size: 15px; color: #3a3a3e; }
.ac-done { margin-top: 24px; padding: 24px; border-radius: var(--radius-lg); background: #eaf8f0; border: 1px solid #bfe6cf; }
.ac-done h3 { font-size: 22px; }
.ac-done .score { font-weight: 600; color: #16743a; }
.ac-done p { margin: 8px 0 14px; color: #2f4f3c; }
.ac-pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.ac-pn a { flex: 1 1 240px; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: var(--card); color: var(--foreground); }
.ac-pn a:hover { border-color: var(--brand); }
.ac-pn a span { display: block; font-size: 12.5px; color: var(--muted-foreground); }
.ac-pn a.nx { text-align: right; }
.ac-outline a { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; font-size: 14.5px; color: var(--foreground); line-height: 1.35; }
.ac-outline a::before { content: attr(data-n); flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; background: var(--muted); color: #4a4a4f; }
.ac-outline a.is-done::before { content: "✓"; }
.ac-outline a[aria-current] { color: var(--brand); font-weight: 600; }
.ac-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: #16743a; color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 120; font-size: 15px; transition: transform .3s var(--ease); max-width: calc(100% - 32px); }
.ac-toast.show { transform: translate(-50%, 0); }
.nv-gate select { height: 44px; border: 1px solid var(--border); border-radius: 10px; padding: 0 10px; font: inherit; font-size: 15px; background: #fff; }
@media (max-width: 560px) {
  .ac-lock p { display: none; }
  .ac-lock h3 { font-size: 18px; margin-bottom: 12px; }
  .ac-lock .btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
}
.tool .sheet { overflow-x: auto; }
