/* Styles of the public pages (landing, FAQ, Learn), ported from the
   approved prototype in the "Rendity Visualization Catalog". The prototype's colour names (--m-*) are mapped
   to the app's design tokens here, so the page follows the app's theme. */
.lp {
  --m-green: var(--color-primary);
  --m-green-bg: var(--color-primary-subtle-bg);
  --m-ink: var(--color-text);
  --m-mute: var(--color-text-muted);
  --m-line: var(--color-border);
  --m-card: var(--color-surface-card);
  --m-bg: var(--color-surface-page);
  --m-sub: var(--color-surface-subtle);
  --m-neg: #9f1d1d;
  --m-amber-bg: #fef3c7; --m-amber-ink: #92400e;
  --m-put-bg: #dbeafe; --m-put-ink: #1d4ed8;
  --font-display: var(--font-heading, inherit);
  --font-body: inherit;
}
.lp .lp-in { max-width: 1120px; margin: 0 auto; }
.m-h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5.4vw, 52px); line-height: 1.06; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.m-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }
.m-lead { font-size: clamp(16px, 1.8vw, 18.5px); color: var(--m-mute); max-width: 60ch; margin: 16px 0 0; line-height: 1.6; }
.m-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 22px; }
.m-btn { display: inline-block; background: var(--m-green); color: var(--color-primary-foreground); padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.m-link { color: var(--m-green); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; font-size: 15px; }
button.m-link { background: none; border: 0; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; padding: 0; }
.pr-btn2 { font: inherit; font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 8px; border: 1.5px solid var(--m-green); background: var(--m-card); color: var(--m-green); cursor: pointer; }
.m-sec { padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px); border-top: 1px solid var(--m-line); }
.d-p { margin: 0 0 14px; color: var(--m-mute); max-width: 60ch; line-height: 1.6; }
.d-slot { border: 1.5px dashed var(--m-mute); border-radius: 10px; padding: 18px; display: grid; gap: 4px; max-width: 60ch; color: var(--m-mute); }
.d-wrap { overflow-x: auto; border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-card); }
.d-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.d-wrap th, .d-wrap td { padding: 9px 12px; border-bottom: 1px solid var(--m-line); text-align: left; color: var(--m-ink); }
.d-wrap th { color: var(--m-mute); font-weight: 600; font-size: 13px; }
.d-wrap th.r, .d-wrap td.r { text-align: right; font-variant-numeric: tabular-nums; }
.d-wrap .pos { color: var(--m-green); } .d-wrap .neg { color: var(--m-neg); }
.lp .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.pill-call { background: var(--m-amber-bg); color: var(--m-amber-ink); }
.pill-put { background: var(--m-put-bg); color: var(--m-put-ink); }
.pill-free { background: var(--m-green-bg); color: var(--m-green); }
.pill-none { background: var(--m-sub); color: var(--m-mute); }
.m-steps > ol { list-style: none; counter-reset: s; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.m-steps > ol > li { counter-increment: s; display: grid; gap: 6px; border-top: 2px solid var(--m-ink); padding-top: 10px; }
.m-steps > ol > li::before { content: counter(s); font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--m-green); font-variant-numeric: tabular-nums; }
.m-steps > ol > li b { font-size: 16px; }
.m-steps > ol > li span { color: var(--m-mute); font-size: 14.5px; }
.d-calc { margin: 12px clamp(12px, 3vw, 32px) 32px; border: 1px solid var(--m-line); border-radius: 12px; background: var(--m-card); padding: clamp(14px, 2.4vw, 22px); }
@media (max-width: 680px) { .dp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 12px; }
.dp-cards > div { background: var(--m-bg); border: 1px solid var(--m-line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; }
.dp-cards span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--m-mute); }
.dp-cards b { font-size: 18px; font-variant-numeric: tabular-nums; }
.dc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-bottom: 12px; border-bottom: 1px solid var(--m-line); }
.dc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.dc-chip { font: inherit; font-size: 14px; padding: 6px 12px; border: 1px solid var(--m-line); border-radius: 999px; background: var(--m-card); color: var(--m-ink); cursor: pointer; }
.dc-chip[aria-pressed="true"] { background: var(--m-green); border-color: var(--m-green); color: #fff; font-weight: 600; }
.dc-chip:focus-visible { outline: 2px solid var(--m-green); outline-offset: 2px; }
.st-chart .dp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0 0; }
.st-chart .dp-cards > div { padding: 7px 9px; }
.st-chart .dp-cards b { font-size: 15px; }
.st-chart .dp-cards span { font-size: 11px; }
.dp-cards > div.chg { border-color: var(--m-green); box-shadow: 0 0 0 1px var(--m-green); }
.dp-cards b.neg { color: var(--m-neg); }
.st-pos { margin: 8px 0 0; font-size: 13px; color: var(--m-mute); font-variant-numeric: tabular-nums; }
.st-b { transition: opacity .3s ease; }
.st-b .st-dot { fill: #fff; stroke: #6b645c; stroke-width: 1.2; }
.st-b text { font-size: 11px; font-weight: 700; fill: #292524; font-family: var(--font-body); }
.st-b .st-guide, .st-b .st-halo { display: none; }
.st-b.future { opacity: 0; }
.st-b.cur .st-dot { fill: #166534; stroke: #166534; }
.st-b.cur text { fill: #fff; }
.st-b.cur .st-guide { display: block; fill: none; stroke: #166534; stroke-width: 1.5; stroke-dasharray: 2 3; }
.st-b.cur .st-halo { display: block; fill: rgba(22, 101, 52, .14); stroke: #166534; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: stPulse 1.8s cubic-bezier(.16, 1, .3, 1) infinite; }
@keyframes stIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes stPulse { 0% { transform: scale(.7); opacity: 1; } 70%, 100% { transform: scale(1.12); opacity: .25; } }
.st-b .st-dot { r: 7.5px; }
.st-b.cur .st-dot { r: 9.5px; }
.st-b text { font-size: 9.5px; }
.st-b.cur text { font-size: 11px; }
@media (max-width: 560px) {
  .st-chart { padding: 10px; }
  .st-chart .dp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-chart .dp-cards > div { padding: 6px 9px; }
  .st-chart .dp-cards span { overflow-wrap: anywhere; }
  .st-pos { font-size: 12.5px; }
  .st-pick button { min-width: 0; flex: 1 1 100%; }
}
/* ---- landing, value first ---- */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px) clamp(28px, 4vw, 44px); }
.lp-fit { margin: 16px 0 0; font-size: 14px; color: var(--m-mute); }
.lp-vs { margin: 0; display: grid; gap: 10px; background: var(--m-card); border: 1px solid var(--m-line); border-radius: 14px; padding: 16px; }
.lp-vs figcaption { font-size: 13px; font-weight: 600; color: var(--m-mute); }
.lp-box { border: 1px solid var(--m-line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.lp-box.r { border-color: var(--m-green); background: var(--m-green-bg); }
.lp-box span { font-size: 12.5px; color: var(--m-mute); }
.lp-box b { font-family: var(--font-display); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-box.r b { color: var(--m-green); }
.lp-box em { font-style: normal; font-size: 13px; color: var(--m-mute); }
.lp-cap { margin: 0; font-size: 12px; color: var(--m-mute); }
.lp-check { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; max-width: 64ch; }
.lp-check li { position: relative; padding-left: 30px; font-size: 16.5px; }
.lp-check li::before { content: ""; position: absolute; left: 4px; top: .4em; width: 12px; height: 7px; border-left: 2.5px solid var(--m-green); border-bottom: 2.5px solid var(--m-green); transform: rotate(-45deg); }
.lp-check.lp-small li { font-size: 15px; color: var(--m-mute); }
.lp-check.lp-small b { color: var(--m-ink); }
.lp-note { margin: 18px 0 0; color: var(--m-mute); max-width: 62ch; font-size: 14.5px; }
.lp-ben { margin-top: 8px; border-top: 1px solid var(--m-line); }
.lp-ben > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 8px clamp(20px, 4vw, 48px); padding: 22px 0; border-bottom: 1px solid var(--m-line); }
.lp-ben h3 { margin: 0; font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 24px); line-height: 1.2; text-wrap: balance; }
.lp-ben p { margin: 0; color: var(--m-mute); max-width: 56ch; }
/* "How the guide helps": closed, a link with a chevron; open, a panel of its
   own, so it is clear what the click opened. The row that was clicked
   becomes the panel's header. */
.lp-more {
  --lp-more-pad: clamp(16px, 3vw, 28px);
  margin-top: 22px; border: 1px solid transparent; border-radius: 14px;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.lp-more summary { cursor: pointer; font-weight: 600; color: var(--m-green); min-height: 44px; display: flex; align-items: center; gap: 12px; list-style: none; border-radius: 10px; }
.lp-more summary::-webkit-details-marker { display: none; }
.lp-more summary::before {
  content: ""; flex: none; width: 8px; height: 8px; margin: 0 2px 0 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}
.lp-more summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.lp-more summary:focus-visible { outline: 2px solid var(--m-green); outline-offset: 2px; }
.lp-more[open] {
  background: var(--m-card); border-color: var(--m-line);
  box-shadow: 0 10px 30px -18px rgb(41 37 36 / .35), 0 2px 6px -4px rgb(41 37 36 / .12);
  margin-inline: calc(-1 * var(--lp-more-pad)); padding: 6px var(--lp-more-pad) var(--lp-more-pad);
}
.lp-more[open] summary { border-bottom: 1px solid var(--m-line); border-radius: 0; padding-bottom: 6px; margin-bottom: 6px; }
.lp-more[open] summary::before { transform: rotate(45deg); }
.lp-more[open] summary:hover { text-decoration: none; }
.lp-more[open] .lp-more-body { animation: lpMoreIn .45s cubic-bezier(.16, 1, .3, 1); }
/* The guide sample sits in the panel; a tinted ground keeps it from reading
   as a card inside a card. */
.lp-more[open] .lp-guide .guide { background: var(--m-bg); }
@keyframes lpMoreIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .lp-more, .lp-more summary::before { transition: none; }
  .lp-more[open] .lp-more-body { animation: none; }
}
.lp-trust { margin: 18px 0 0; font-size: 14px; color: var(--m-mute); }
.lp-calc { margin-top: -12px; }
#st-block { scroll-margin-top: 56px; }
#st-block { background: #efe8da; border-top: 1px solid var(--m-line); border-bottom: 1px solid var(--m-line); }
#st-block > .m-sec { border-top: 0; background: transparent; }
#st-block .st-box { padding-bottom: clamp(32px, 5vw, 52px); }
#st-block + .m-sec { border-top: 0; }
.lp-tot { display: grid; gap: 2px; }
.lp-tot b { font-family: var(--font-display); font-size: clamp(34px, 4vw, 44px); line-height: 1.05; color: var(--m-green); font-variant-numeric: tabular-nums; }
.lp-tot span { font-size: 14px; color: var(--m-mute); }
.lp-bar { display: flex; gap: 3px; height: 14px; border-radius: 7px; overflow: hidden; }
.lp-bar i { display: block; min-width: 4px; }
.lp-leg { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14.5px; }
.lp-leg li { display: flex; align-items: center; gap: 9px; }
.lp-leg li i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.lp-leg li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.lp-leg li.lp-minus { color: var(--m-mute); padding-top: 7px; border-top: 1px solid var(--m-line); }
.lp-leg li.lp-minus i { background: transparent; }

@media (max-width: 760px) { .lp-hero, .lp-ben > div { grid-template-columns: minmax(0, 1fr); } }
/* ---- worked example: swipe cards, reveal over time ---- */
.st-box { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: start; padding: 0 clamp(16px, 4vw, 40px) clamp(28px, 4vw, 44px); }
.st-box .st-chart { position: static; padding: 10px; }
#st-price { transition: opacity .3s ease; }
#st-price text { font-size: 13px; font-weight: 700; fill: #292524; font-variant-numeric: tabular-nums; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.st-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 10px 2px 0; font-size: 14px; color: var(--m-mute); }
.st-sum b { color: var(--m-ink); font-variant-numeric: tabular-nums; }
.st-sum b.pos { color: var(--m-green); } .st-sum b.neg { color: var(--m-neg); }
.st-nums-btn { font-size: 13.5px !important; margin-left: auto; min-height: 44px; }
#st-nums { margin-top: 2px; }
.st-car { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 12px; }
.st-car::-webkit-scrollbar { display: none; }
.st-car:focus-visible { outline: 2px solid var(--m-green); outline-offset: 2px; }
.st-card { flex: 0 0 100%; scroll-snap-align: start; background: var(--m-card); border: 1px solid var(--m-line); border-radius: 12px; padding: 16px 18px 18px; }
.st-card .cnt { margin: 0 0 6px; font-size: 12.5px; color: var(--m-mute); font-variant-numeric: tabular-nums; }
.st-card h4 { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 24px); line-height: 1.2; text-wrap: balance; }
.st-card p { margin: 8px 0 0; color: var(--m-mute); }
.st-card small { display: block; margin-top: 10px; font-size: 14px; color: var(--m-green); font-weight: 600; font-variant-numeric: tabular-nums; }
.st-nav { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.st-nav button { min-height: 44px; }
.st-prev:disabled { opacity: .4; cursor: default; }
.st-dots { flex: 1; display: flex; justify-content: center; flex-wrap: nowrap; gap: 5px; min-width: 0; }
.st-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--m-line); transition: width .25s ease, background .25s ease; }
.st-dots i.on { width: 18px; background: var(--m-green); }
@media (max-width: 860px) {
  .st-box { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .st-card { flex-basis: 90%; }
  .st-nav { gap: 8px; }
  .st-nav button { padding-inline: 12px; }
  .st-dots { gap: 4px; }
  .st-dots i { width: 6px; height: 6px; }
  .st-dots i.on { width: 14px; }
  .st-car { scroll-padding-left: 0; }
}
@media (max-width: 760px) { .m-steps > ol { grid-template-columns: minmax(0, 1fr); } }
.st-chart { background: var(--m-card); border: 1px solid var(--m-line); border-radius: 12px; padding: 14px; min-width: 0; }
.st-chart svg { width: 100%; height: auto; display: block; }
.st-chart [data-step] { transition: opacity .35s ease; }
.d-calc .chart { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: reduce) {
  #st-price, .st-dots i, .st-chart [data-step] { transition: none !important; }
  .st-b.cur .st-halo { animation: none !important; }
}

.lp-ben h3 { font-weight: 700; }
#st-mount .st-box { padding-bottom: clamp(32px, 5vw, 52px); }
#st-block .m-sec { border-top: 0; background: transparent; }

/* ---- sample pictures (FAQ answers) and the FAQ list ---- */
.chart { width: 100%; height: auto; display: block; }
.cap { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--m-mute); margin-top: 6px; }
.cap u { display: inline-block; vertical-align: middle; margin-right: 6px; text-decoration: none; }
.donut-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.leg { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; flex: 1; min-width: 120px; }
.leg li { display: flex; align-items: center; gap: 8px; }
.leg i { width: 10px; height: 10px; border-radius: 2px; }
.leg b { margin-left: auto; font-variant-numeric: tabular-nums; }
.mini { width: 100%; min-width: 0; font-size: 13px; border-collapse: collapse; }
.mini th { font-size: 11px; padding: 4px 6px; }
.mini td { padding: 6px; border-bottom: 1px solid var(--m-line); font-variant-numeric: tabular-nums; }
.mini tr:last-child td { border-bottom: 0; }
/* Options Planner sample: the dashboard table in miniature (templates/dashboard.html). */
.op { background: var(--m-card); border: 1px solid var(--m-line); border-radius: var(--radius-card, 10px); overflow: hidden; }
.op table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.op th { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--m-mute); background: var(--m-bg); padding: 8px 6px; border-bottom: 1px solid var(--m-line); text-align: right; line-height: 1.25; vertical-align: bottom; }
.op th:first-child { text-align: left; }
.op td { padding: 8px 6px; border-bottom: 1px solid var(--m-line); text-align: right; white-space: nowrap; }
.op tbody tr:last-child td { border-bottom: 0; }
.op .op-t { text-align: left; font-weight: 600; border-left: 3px solid transparent; padding-left: 7px; }
.op .op-up { border-left-color: var(--color-positive); }
.op .op-down { border-left-color: var(--color-negative); }
.op .pos { color: var(--color-positive); font-weight: 500; }
.op .neg { color: var(--color-negative); font-weight: 500; }
/* Secondary digits and empty cells: solid muted colour, no opacity, so they keep 4.5:1. */
.op-rest { color: var(--m-mute); }
.op-none { color: var(--m-mute); }
.op-b { display: inline-block; font-size: 11px; font-weight: 500; padding: 2px 6px; border-radius: 4px; }
.op-c { background: var(--color-badge-option-bg); color: var(--color-badge-option-text); }
.op-x { color: var(--m-mute); font-size: 11px; }
.op .op-d td { text-align: left; background: var(--color-secondary-bg); font-size: 12px; white-space: normal; padding: 8px 10px; }
.op-d span { display: block; color: var(--m-mute); }
.pos { color: var(--m-green); font-weight: 600; }
.neg { color: var(--m-neg); font-weight: 600; }
.amber { color: var(--m-amber); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tiles > div { background: var(--m-bg); border: 1px solid var(--m-line); border-radius: 8px; padding: 10px 8px; text-align: center; }
.tiles b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.tiles span { font-size: 11px; color: var(--m-mute); text-transform: uppercase; letter-spacing: .05em; }
.tiles.big b { font-size: clamp(16px, 2.4vw, 22px); }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.stack { display: flex; height: 30px; border-radius: 6px; overflow: hidden; font-size: 12px; font-weight: 600; color: #fff; }
.stack span { display: flex; align-items: center; padding-inline: 8px; white-space: nowrap; overflow: hidden; }
.stack.big { height: 46px; font-size: 13px; }
.stack-sum { display: flex; justify-content: space-between; margin-top: 10px; font-size: 15px; }
.stack-sum b { font-variant-numeric: tabular-nums; color: var(--m-green); }
.pnl { display: grid; gap: 8px; }
.pnl > div { display: grid; grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1fr) 60px; align-items: center; gap: 6px; font-size: 12.5px; }
.pnl em { font-style: normal; color: var(--m-mute); white-space: nowrap; }
.pnl .pl, .pnl .pr { display: flex; height: 12px; gap: 2px; }
.pnl .pl { flex-direction: row-reverse; border-right: 1px solid var(--m-line); }
.pnl s { display: block; height: 12px; border-radius: 2px; min-width: 2px; }
.pnl b { text-align: right; font-variant-numeric: tabular-nums; }
.heat { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
.heat span { aspect-ratio: 1.5; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; border-radius: 3px; font-variant-numeric: tabular-nums; }
.kap { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--m-line); margin-bottom: 4px; }
.kap i { font-family: var(--font-body); font-style: normal; font-size: 12px; font-weight: 600; background: var(--m-amber-bg); color: var(--m-amber-ink); padding: 2px 10px; border-radius: 999px; }
.kap-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--m-line); font-size: 14.5px; }
.kap-row:last-child { border-bottom: 0; }
.kap-row b { font-variant-numeric: tabular-nums; }
.tg { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--m-sub); color: var(--m-mute); }
.tg.t1 { background: var(--m-amber-bg); color: var(--m-amber-ink); }
.tg.t2 { background: var(--m-put-bg); color: var(--m-put-ink); }
.tg.t3 { background: #ede9fe; color: #4c1d95; }
.tg.ta { background: var(--m-ink); color: #fff; }
.tg.t0 { background: var(--m-green-bg); color: var(--m-green); }
.pr-end { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
/* FAQ. Group headings carry the page; closed questions are a quiet list;
   an open question becomes a panel (as "How the guide helps" on the landing
   page): the question is its header, the answer and its example sit inside. */
.fq-group { margin-top: clamp(40px, 6vw, 64px); }
.fq-head { margin: 0 0 10px; padding-bottom: 12px; border-bottom: 2px solid var(--m-ink); }
.fq-item { --fq-pad: clamp(14px, 2.6vw, 24px); border-bottom: 1px solid var(--m-line); border-radius: 0; transition: background-color .25s ease, box-shadow .25s ease; }
.fq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 0; font-weight: 500; font-size: 17px; color: var(--m-ink); }
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 6px 0 4px; border-right: 2px solid var(--m-mute); border-bottom: 2px solid var(--m-mute); transform: rotate(45deg) translateY(-2px); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
/* The whole row is the target: on hover a soft band spans it, edge to edge. */
.fq-item:not([open]) summary { margin-inline: calc(-1 * var(--fq-pad)); padding-inline: var(--fq-pad); border-radius: 10px; transition: background-color .15s ease; }
.fq-item:not([open]) summary:hover { background: color-mix(in srgb, var(--m-ink) 6%, transparent); }
.fq-item summary:hover::after { border-color: var(--m-ink); }
.fq-item summary:focus-visible { outline: 2px solid var(--m-green); outline-offset: 2px; border-radius: 6px; }
.fq-q { flex: 1; min-width: 0; }
.fq-item[open] {
  margin: 10px calc(-1 * var(--fq-pad)) 14px; padding: 4px var(--fq-pad) var(--fq-pad);
  background: var(--m-card); border: 1px solid var(--m-line); border-radius: 14px;
  box-shadow: 0 10px 30px -18px rgb(41 37 36 / .35), 0 2px 6px -4px rgb(41 37 36 / .12);
}
.fq-item[open] summary { font-weight: 700; font-size: 19px; border-bottom: 1px solid var(--m-line); margin-bottom: 16px; }
.fq-item[open] summary .fq-q { color: var(--m-ink); }
.fq-item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.fq-ans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px clamp(20px, 3vw, 36px); align-items: start; }
.fq-item[open] .fq-ans { animation: lpMoreIn .45s cubic-bezier(.16, 1, .3, 1); }
.fq-ans p { margin: 0 0 12px; color: var(--m-ink); max-width: 48ch; font-size: 16px; line-height: 1.6; }
/* The example sits on a tinted ground inside the panel, not as a card in a card. */
.fq-vis { background: var(--m-bg); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.fq-ans.solo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) { .fq-ans { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .fq-item, .fq-item summary::after { transition: none; } .fq-item[open] .fq-ans { animation: none; } }
.lp .pub-wrap { max-width: 860px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 32px); }

/* ---- Learn ---- */
.lr-tracks { display: grid; gap: 28px; margin-top: 24px; }
.lr-track h4 { margin: 0 0 8px; font-family: var(--font-display); font-size: 22px; }
.lr-track > p { margin: 0 0 10px; color: var(--m-mute); max-width: 62ch; font-size: 14.5px; }
.lr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.lr-card { display: grid; gap: 6px; align-content: start; background: var(--m-card); border: 1px solid var(--m-line); border-radius: 10px; padding: 12px 14px; text-align: left; font: inherit; color: var(--m-ink); cursor: pointer; }
.lr-card:hover { border-color: var(--m-green); }
.lr-card b { font-size: 15.5px; line-height: 1.25; }
.lr-card span { font-size: 13px; color: var(--m-mute); }
.lr-meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12px; color: var(--m-mute); }
.lr-video { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; background: #292524; color: #fff; display: grid; place-items: center; position: relative; margin-top: 16px; }
.lr-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: start; }
.lr-card { text-decoration: none; }
.lr-track h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 22px; }
@media (max-width: 860px) { .lr-two { grid-template-columns: minmax(0, 1fr); } }
/* The lesson's example is its own object: a lifted panel like an opened FAQ answer,
   with a labelled header strip, so it never reads as part of the running text. */
.lr-vis { margin-top: 16px; background: var(--m-card); border: 1px solid var(--m-line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 30px -18px rgb(41 37 36 / .35), 0 2px 6px -4px rgb(41 37 36 / .12); }
.lr-vis-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; background: var(--m-sub); border-bottom: 1px solid var(--m-line); }
.lr-vis-head h2 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--m-ink); }
.lr-vis-head span { font-size: 12px; color: var(--m-mute); }
.lr-vis-body { padding: 18px 16px 20px; }
/* Stick below the sticky site header (68px plus its 1px rule, site.css), with the same 24px of air. */
@media (min-width: 861px) { .lr-vis { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 69px + 24px); } }
/* Next lesson. Quiet while the lesson is still being watched: a plain outlined row
   that is there when you look for it. Once the video has played to the end it
   becomes the page's one green call to action (.is-watched, set in lesson.html). */
.lr-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; margin-top: 32px; padding: 12px 16px;
  background: transparent; color: var(--m-ink); border: 1px solid var(--m-line); border-radius: 12px; text-decoration: none; max-width: 560px;
  transition: background-color .5s ease, border-color .5s ease, color .5s ease, padding .5s cubic-bezier(.16, 1, .3, 1); }
.lr-next:hover { border-color: var(--m-green); background: var(--m-card); }
.lr-next:focus-visible { outline: 2px solid var(--m-green); outline-offset: 3px; }
.lr-next-k { grid-column: 1; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--m-mute); transition: color .5s ease; }
.lr-next-t { grid-column: 1; font-size: 15.5px; font-weight: 600; line-height: 1.3; transition: font-size .5s cubic-bezier(.16, 1, .3, 1); }
.lr-next-a { grid-column: 2; grid-row: 1 / span 2; font-size: 20px; color: var(--m-green); transition: transform .2s cubic-bezier(.16, 1, .3, 1), color .5s ease; }
.lr-next:hover .lr-next-a { transform: translateX(4px); }
.lr-next.is-watched { padding: 16px 20px; background: var(--m-green); border-color: var(--m-green); color: var(--color-primary-foreground); }
.lr-next.is-watched:hover { background: var(--m-green); filter: brightness(1.08); }
.lr-next.is-watched .lr-next-k { color: inherit; opacity: .8; }
.lr-next.is-watched .lr-next-t { font-size: 18px; font-weight: 700; }
.lr-next.is-watched .lr-next-a { color: inherit; font-size: 24px; }
@media (prefers-reduced-motion: reduce) { .lr-next, .lr-next-k, .lr-next-t, .lr-next-a { transition: none; } }

/* The setup-guide sample in "How to get started" */
.lp-guide { margin: 18px 0 0; display: grid; gap: 8px; max-width: 460px; }
.lp-guide figcaption { font-size: 14px; color: var(--m-mute); }
.lp-guide .guide { margin-inline: 0; }
.lp-more-body { display: grid; gap: 8px 32px; }
@media (min-width: 900px) {
  .lp-more-body { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: start; }
  .lp-more-body .lp-guide { margin-top: 12px; }
}
.fq-plans { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px !important; font-size: 13px !important; color: var(--m-mute) !important; }
.fq-plans span { margin-right: 2px; }

/* Anlage KAP sample, drawn like the cover of the PDF tax report */
.kapf { --kapf-ink: #1f2421; --kapf-tint: #eef3ef; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.kapf-head { display: flex; justify-content: space-between; gap: 10px; background: var(--kapf-ink); color: #fff; padding: 6px 9px; font-size: 12px; }
.kapf-head span { font-weight: 500; opacity: .85; }
.kapf-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 72px 30px; align-items: stretch; min-height: 40px; }
.kapf-z { display: grid; place-items: center; background: var(--kapf-ink); color: #fff; font-weight: 700; font-size: 14px; }
.kapf-l { display: block; align-self: stretch; background: var(--kapf-tint); padding: 6px 9px; font-size: 11.5px; line-height: 1.3; color: var(--kapf-ink); margin-right: 4px; min-width: 0; hyphens: auto; overflow-wrap: anywhere; }
.kapf-eur, .kapf-ct { display: flex; align-items: center; background: #fff; border: 1.2px solid var(--kapf-ink); font-weight: 700; font-size: 14px; color: var(--kapf-ink); }
.kapf-eur { justify-content: flex-end; padding: 0 6px; border-right: 0; }
.kapf-ct { justify-content: center; border-left: 1.2px dotted var(--kapf-ink); }
.kapf-unit { display: grid; grid-template-columns: 72px 30px; justify-content: end; font-size: 11px; color: var(--m-mute); }
.kapf-unit span:first-child { text-align: right; padding-right: 6px; }
.kapf-unit span:last-child { text-align: center; }
@media (max-width: 420px) { .kapf-row { grid-template-columns: 30px minmax(0, 1fr) 60px 26px; } .kapf-unit { grid-template-columns: 60px 26px; } .kapf-eur, .kapf-ct { font-size: 13px; } }
.fq-path { color: var(--m-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Cash cards sample, drawn like the dashboard's (templates/dashboard.html) */
.dash-cards { display: grid; gap: 8px; }
.dash-card { background: var(--color-surface-card); border: 1px solid var(--color-border); border-radius: var(--radius-card, 8px); padding: 12px 14px; }
.dash-card > span { display: block; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--color-text-muted); }
.dash-card b { display: block; margin-top: 4px; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--color-text); }
.dash-card b small { font-size: 12px; font-weight: 400; color: var(--color-text-muted); }
.dash-card b.dash-pos { color: var(--color-positive); }
.dash-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dash-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1px solid var(--color-border); border-radius: 10px; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--color-surface-card); color: var(--color-text); }
.dash-chip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dash-chip em { font-style: normal; font-size: 9px; opacity: .6; }

/* ---------- FAQ and Learn additions from website mockup 99 ---------- */
.fq-note { margin: -6px 0 12px !important; font-size: 13px !important; color: var(--m-mute) !important; }
.fq-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 !important; }
.fq-more { margin: 18px 0 0; font-size: 14.5px; color: var(--m-mute); }
.fq-more a, .lr-note a { color: var(--m-green); font-weight: 600; text-underline-offset: 3px; }
.lr-note { margin: 12px 0 0; font-size: 14.5px; color: var(--m-mute); }
.lr-kp { margin: 2px 0 4px; padding-left: 16px; display: grid; gap: 3px; font-size: 13px; color: var(--m-ink); list-style: disc; }
.lr-adv { font-style: normal; font-weight: 600; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--m-sub); color: var(--m-mute); white-space: nowrap; vertical-align: 2px; }
.lr-h { font-size: 20px; margin: 22px 0 6px; }
.lr-points { margin: 0; padding-left: 22px; display: grid; gap: 8px; list-style: decimal; }
.lr-points b { font-weight: 600; }
.lr-example p { margin: 0 0 10px; max-width: 62ch; line-height: 1.6; }
.lr-terms { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; }
.lr-terms a { color: var(--m-green); font-weight: 600; text-underline-offset: 3px; }
.lr-fine-inline { color: var(--m-mute); font-size: 14px; }
.m-fine { margin-top: 24px; font-size: 13px; color: var(--m-mute); }

/* ---------- Lesson video player (static/public/lesson-video.js) ----------
   Slides size their text with container units so they scale with the box.
   Colours follow the recording plan's title and closing slides. */
.lr-player { overflow: hidden; container-type: inline-size; display: block; background: #fbf9f4; box-shadow: 0 0 0 1px #d6cdbd; }
/* The slides share the page's parchment, so the 1px ring is what marks the edge of the video. */
.lr-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #292524; border-radius: inherit; }
.lr-slide {
  position: absolute; inset: 0; z-index: 1; display: none; flex-direction: column; justify-content: space-between;
  padding: 5.5cqw 6.5cqw; width: 100%; border: 0; border-radius: inherit; text-align: left; cursor: pointer;
  background: #fbf9f4; color: #292524; font: inherit; --color-primary: #166534; --color-primary-foreground: #fff;
}
.lr-slide.is-on { display: flex; }
.lr-slide:focus-visible { outline: 3px solid var(--m-green); outline-offset: -3px; }
.lr-slide-logo { display: block; width: 18cqw; }
.lr-slide-logo svg { width: 100%; height: auto; }
.lr-slide-k { display: block; font-size: 1.7cqw; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #166534; margin-bottom: 1.8cqw; }
.lr-slide-q { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 4.4cqw; line-height: 1.18; letter-spacing: -.02em; max-width: 68%; text-wrap: balance; }
.lr-slide-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 11cqw; height: 11cqw; border-radius: 50%; background: #166534; display: grid; place-items: center; transition: filter .15s ease; }
.lr-slide-play::after { content: ""; margin-left: 1cqw; border-left: 3.6cqw solid #fff; border-top: 2.4cqw solid transparent; border-bottom: 2.4cqw solid transparent; }
.lr-slide:hover .lr-slide-play { filter: brightness(1.12); }
.lr-slide-len { position: absolute; right: 6.5cqw; top: 5.5cqw; font-size: 1.8cqw; color: #57534e; }
.lr-slide-close { background: #dcfce7; color: #14532d; }
.lr-slide-close .lr-slide-q { font-size: 3.6cqw; }
.lr-slide-sign { display: block; max-width: 68%; margin-top: 2.2cqw; padding-top: 1.6cqw; border-top: 2px solid #bbf7d0; font-size: 2.2cqw; }
.lr-slide-again { position: absolute; right: 6.5cqw; bottom: 5.5cqw; padding: 1.3cqw 2.6cqw; border-radius: 999px; background: #166534; color: #fff; font-weight: 700; font-size: 2.1cqw; }
.lr-spinner { position: absolute; inset: 0; z-index: 2; display: none; place-items: center; background: rgb(251 249 244 / .72); border-radius: inherit; pointer-events: none; }
.lr-spinner.is-on { display: grid; }
.lr-spinner.is-over-video { background: rgb(41 37 36 / .35); }
.lr-spinner i { width: 7cqw; height: 7cqw; border-radius: 50%; border: .9cqw solid #bbf7d0; border-top-color: #166534; animation: lrSpin .9s linear infinite; }
@keyframes lrSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lr-spinner i { animation-duration: 3s; } }
.lr-video-error { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; margin: 0; padding: 10px 16px; background: #292524; color: #fff; font-size: 14px; line-height: 1.4; }
.lr-player[data-state="error"] .lr-slide-play { display: none; }
.lr-player[data-state="error"] .lr-slide { cursor: default; padding-bottom: calc(5.5cqw + 48px); }
/* A lesson whose video is not recorded yet: the title slide drawn as a dashed
   outline, a draft of the frame, with nothing to press. */
.lr-soon {
  container-type: inline-size; display: flex; flex-direction: column; justify-content: space-between; place-items: stretch;
  padding: 5.5cqw 6.5cqw; background: #f5f1e8; color: #57534e;
  box-shadow: none; outline: 1.5px dashed #b8ad99; outline-offset: -1.5px; cursor: default;
}
.lr-soon .lr-slide-logo { opacity: .45; }
.lr-soon .lr-slide-q { margin: 0; color: #57534e; }
.lr-soon-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.lr-soon > .lr-soon-tag {
  align-self: flex-start; padding: 1.1cqw 2.2cqw; border-radius: 999px; border: 1px dashed #a8a29e;
  font-size: max(13px, 1.9cqw); font-weight: 600; color: #57534e; background: #fbf9f4;
}
.lr-soon > .lr-soon-tag .lr-soon-icon { width: max(14px, 2cqw); height: auto; }
.lr-meta .lr-soon-tag { font-size: 12px; font-weight: 600; color: var(--m-mute); padding: 1px 8px 1px 6px; border: 1px dashed var(--color-border-strong); border-radius: 999px; }
.lr-meta .lr-soon-icon { width: 12px; height: 12px; }
@media (max-width: 520px) {
  .lr-slide-q { font-size: 5.6cqw; max-width: 80%; }
  .lr-slide-k { font-size: 2.6cqw; }
  .lr-slide-len, .lr-slide-sign { font-size: 3cqw; }
  .lr-slide-again { font-size: 3.2cqw; }
  .lr-video-error { font-size: 12.5px; padding: 8px 12px; }
  .lr-player[data-state="error"] .lr-slide-q { font-size: 4.6cqw; }
  .lr-soon .lr-slide-q { font-size: 5cqw; max-width: 90%; }
  /* The question wraps taller here, so the play button sits in the gap between logo and question. */
  .lr-slide-play { position: static; transform: none; align-self: center; order: 1; width: 10cqw; height: 10cqw; }
  .lr-slide[data-slide="title"] > span:nth-child(2) { order: 2; }
}
