/* Calio public website — landing page, sign-in / sign-up, legal pages.
   Same colour language as the dashboard (styles.css): accent blue, calm greys.
   Motion rules and tokens: docs/design/website.md */
:root {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f0f3f7; --line: #e1e6ec; --line-strong: #c9d1db;
  --text: #121821; --text-2: #4f5b6b; --text-3: #636f80;
  --accent: #1b5fb8; --accent-hover: #164f9a; --accent-soft: #e8f0fb; --accent-ink: #0f3f80; --accent-fill: #1b5fb8;
  --green: #17724a; --green-bg: #e6f5ec; --red: #c2334a; --red-bg: #fdeaed;
  --orange: #9a4f08; --orange-bg: #fdf0e1;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .14);
  --r: 14px; --r-sm: 9px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-back: cubic-bezier(.34, 1.4, .64, 1);
  --ck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  color-scheme: light;
  --logo-accent: #1b5fb8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117; --surface: #151a22; --surface-2: #1b212b; --line: #252c37; --line-strong: #37404d;
    --text: #e8ecf2; --text-2: #a3adbb; --text-3: #8591a1;
    --accent: #4f9cf9; --accent-hover: #2a64c2; --accent-soft: #14233a; --accent-ink: #bcd8ff; --accent-fill: #2f6fd0;
    --green: #63d29b; --green-bg: #10241a; --red: #ff8794; --red-bg: #2c1518;
    --orange: #ffb35c; --orange-bg: #2b1d0c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
    color-scheme: dark;
    --logo-accent: #4f9cf9;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font: 16px/1.6 var(--font); background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* line icons: 24-unit grid, 1.5px stroke at the rendered size, rounded caps */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.draw path, .checks .ic path { stroke-dasharray: 1; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 20px; }

@keyframes up { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: 600 15px var(--font); cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .25s var(--ease); }
.btn::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 10px 22px -10px rgba(16, 24, 40, .35); opacity: 0; transition: opacity .25s var(--ease); }
.btn:hover { text-decoration: none; background: var(--surface-2); transform: translateY(-1px); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn.primary { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.btn.primary::after { box-shadow: 0 10px 22px -8px rgba(27, 95, 184, .6); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost::after { display: none; }
.btn.ghost:hover { background: var(--surface-2); transform: none; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.pill.blue { background: var(--accent-soft); color: var(--accent); }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.orange { background: var(--orange-bg); color: var(--orange); }
.demo { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: .2px; }
.ck::before, .ticks li::before, .strip li::before, .included span::before, .auth .brandside li::before {
  content: ""; display: inline-block; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: var(--ck) center / contain no-repeat; mask: var(--ck) center / contain no-repeat; }

.nav { position: sticky; top: 0; z-index: 20; isolation: isolate; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(16, 24, 40, .22);
  opacity: 0; transition: opacity .35s var(--ease); }
.nav.scrolled::before { opacity: 1; }
.nav .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px;
  color: var(--text); letter-spacing: -.3px; }
.logo:hover { text-decoration: none; }
.logo { min-height: 44px; }
.logo { color: var(--text); }
.brand-logo { display: block; width: auto; height: 32px; }
.logo.sm .brand-logo { height: 26px; }
.brand-logo .lg-ink { stroke: currentColor; }
.brand-logo .lg-acc { stroke: var(--logo-accent, #1b5fb8); }
.nav .links { display: flex; gap: 22px; margin-left: 12px; }
.nav .links a { position: relative; color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav .links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; border-radius: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
.nav .links a:hover { color: var(--text); text-decoration: none; }
.nav .links a:hover::after { transform: scaleX(1); }
.nav .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-copy > * { animation: up .7s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .07s; }
.hero-copy > :nth-child(3) { animation-delay: .14s; }
.hero-copy > :nth-child(4) { animation-delay: .21s; }
.hero-copy > :nth-child(5) { animation-delay: .28s; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650;
  color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 5px 12px;
  letter-spacing: .2px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.06; letter-spacing: -1.6px;
  margin: 18px 0 18px; font-weight: 750; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 19px; color: var(--text-2); max-width: 540px; text-wrap: pretty; }
.hero .cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero .fine { margin-top: 14px; font-size: 14px; color: var(--text-3); display: flex; gap: 18px; flex-wrap: wrap; }
.hero .fine span { display: inline-flex; align-items: center; gap: 6px; }
.hero .fine span::before { color: var(--green); }

/* product preview (pure HTML, no screenshots) — one ~7 s sequence on load, replayable on hover/tap */
.preview { position: relative; isolation: isolate; --tilt: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.preview::before { content: ""; position: absolute; inset: -16% -12% -20% -14%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 55% 50%, rgba(27, 95, 184, .15), rgba(27, 95, 184, 0) 72%);
  animation: fade 1.4s var(--ease) .3s both; }
.preview .window { background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden; transform: var(--tilt); animation: win .9s var(--ease) .15s both; }
@keyframes win { from { opacity: 0; transform: var(--tilt) translateY(16px); } }
.bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.bar > i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.preview .body { display: grid; grid-template-columns: 118px 1fr; min-height: 340px; }
.preview .side { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.preview .side b { font-size: 10px; color: var(--text-3); letter-spacing: .6px; margin: 8px 6px 2px; }
.preview .side span { font-size: 12px; color: var(--text-2); padding: 5px 8px; border-radius: 6px; }
.preview .side span.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.preview .main { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.preview .main h4 { font-size: 15px; }
.preview .kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.preview .kpi { border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; min-width: 0; }
.preview .kpi small { display: block; font-size: 9.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; }
.preview .kpi strong { font-size: 17px; letter-spacing: -.3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.preview .kpi.red strong { color: var(--red); } .preview .kpi.green strong { color: var(--green); }
.preview .rows { border: 1px solid var(--line); border-bottom: 0; border-radius: 9px 9px 0 0; overflow: hidden; height: 153px; }
.preview .track { animation: slide .7s var(--ease) 4.3s both; }
@keyframes slide { from { transform: translateY(-38px); } }
.preview .r { position: relative; height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 11px; font-size: 12px; border-bottom: 1px solid var(--line); }
.preview .r > :not(.flash) { position: relative; }
.preview .r .flash { position: absolute; inset: 0; background: var(--accent-soft); opacity: 0; }
.preview .r .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.preview .r .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview .pill { font-size: 10.5px; }
.preview .chip { position: absolute; top: 60px; right: -22px; display: flex; gap: 10px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 8px 14px 8px 8px; font-size: 12.5px; line-height: 1.35; opacity: 0; animation: chip 2.3s var(--ease) .8s both; }
.preview .chip b { display: block; font-weight: 600; }
.preview .chip small { display: block; color: var(--text-3); font-size: 11px; }
.preview .chip .fi { width: 32px; height: 32px; border-radius: 8px; background: var(--red-bg); color: var(--red); display: grid; place-items: center; }
.preview .chip .i { width: 18px; height: 18px; stroke-width: 2; }
@keyframes chip { 0% { opacity: 0; transform: translateX(16px); } 22%, 74% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translate(-16px, 10px) scale(.97); } }
.preview .float { position: absolute; left: -26px; bottom: 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px 14px;
  display: flex; gap: 10px; align-items: center; font-size: 13px; max-width: 250px; }
.preview .float .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--green-bg); color: var(--green); flex: none; }
.preview .float .ic .i { width: 20px; height: 20px; stroke-width: 2.2; }
.preview .float small { display: block; color: var(--text-3); font-size: 11.5px; }

/* one-shot animation primitives. Default state = final state (no JS, reduced motion);
   .play on a container runs them, --d is the delay in seconds */
.play .a { animation: a-up .5s var(--ease) calc(var(--d, 0) * 1s) both; }
.play .pop { animation: a-pop .45s var(--ease-back) calc(var(--d, 0) * 1s) both; }
.play .grow { animation: a-grow .8s var(--ease) calc(var(--d, 0) * 1s) both; }
.play .draw path { animation: a-draw .5s var(--ease) calc(var(--d, 0) * 1s) both; }
.play .flash { animation: a-flash 1.8s ease-in-out calc(var(--d, 0) * 1s) both; }
.play .load { animation: a-load .7s var(--ease) calc(var(--d, 0) * 1s) both; }
.play .ring { animation: a-ring 1.5s var(--ease) calc(var(--d, 0) * 1s) both; }
@keyframes a-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes a-pop { from { opacity: 0; transform: scale(.8); } }
@keyframes a-grow { from { transform: scaleX(0); } }
@keyframes a-draw { 0% { stroke-dashoffset: 1; opacity: 0; } 12% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes a-flash { 0%, 100% { opacity: 0; } 30% { opacity: 1; } }
@keyframes a-load { 0% { opacity: 1; transform: scaleX(0); } 75% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }
@keyframes a-ring { 0% { opacity: 0; transform: scale(1); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1); } }
.flash, .load, .ring { opacity: 0; pointer-events: none; }
.ring { position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 32%, transparent); }

/* reveal on scroll (only with html.rv: JS present and motion allowed) */
[data-rv] { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv [data-rv]:not(.in) { opacity: 0; transform: translateY(14px); }
[data-seq] > * { transition: opacity .6s var(--ease) var(--sd, 0s), transform .6s var(--ease) var(--sd, 0s), translate .3s var(--ease); }
.rv [data-seq]:not(.in) > * { opacity: 0; transform: translateY(12px); }
[data-seq] > :nth-child(2) { --sd: .08s; } [data-seq] > :nth-child(3) { --sd: .16s; }
[data-seq] > :nth-child(4) { --sd: .24s; } [data-seq] > :nth-child(5) { --sd: .32s; }
[data-seq] > :nth-child(6) { --sd: .4s; } [data-seq] > :nth-child(7) { --sd: .48s; }
[data-seq] > :nth-child(8) { --sd: .56s; }
.lift::after, .aud::after, .price-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit;
  box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }

.strip { padding: 22px 0 10px; animation: fade .9s var(--ease) .45s both; }
.strip ul { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 34px;
  color: var(--text-2); font-size: 14.5px; font-weight: 550; }
.strip li { display: inline-flex; align-items: center; gap: 8px; }
.strip li::before { color: var(--accent); }

section.block { padding: 88px 0; }
section.block.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { max-width: 700px; margin-bottom: 44px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .kicker { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -1px; margin: 10px 0 12px; text-wrap: balance; }
.sec-head p { color: var(--text-2); font-size: 17.5px; text-wrap: pretty; }

.tour { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.tour-frame { display: none; }
.tf-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.tf-ic { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; flex: none; }
.tf-ic .i { width: 22px; height: 22px; stroke-width: 1.64; }
.tf h3 { font-size: 18px; letter-spacing: -.2px; margin: 0 0 2px; line-height: 1.35; }
.tf-head p { color: var(--text-2); font-size: 15.5px; }
.scr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.scr > .bar { padding: 10px 14px; }
.scr > .bar > i { width: 8px; height: 8px; }
.rv .tf:not(.play) :is(.a, .pop) { opacity: 0; }
.rv .tf:not(.play) .grow { transform: scaleX(0); }
.rv .tf:not(.play) .draw path { opacity: 0; }

/* desktop: tabs on the left, one product window on the right (built by site.js) */
.tour.tabs { grid-template-columns: minmax(0, 390px) minmax(0, 1fr); gap: 0 40px; }
.tour.tabs .m-list li { padding: 11px 14px; }
.tour.tabs .m-tab :is(th, td) { padding: 10px 14px; }
.tour-tabs { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 2px; align-self: center; }
.tour.tabs .tour-frame { display: block; grid-area: 1 / 2; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.tour.tabs .tf { grid-area: 1 / 2; padding-top: 43px; z-index: 1; border-radius: 16px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s linear .45s; }
.tour.tabs .tf.on { opacity: 1; visibility: visible; transform: none;
  transition: opacity .45s var(--ease) .1s, transform .6s var(--ease) .1s, visibility 0s; }
.tour.tabs .tf:focus-visible { outline-offset: -2px; }
.tour.tabs .tf-head, .tour.tabs .scr > .bar { display: none; }
.tour.tabs .scr { height: 100%; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.tour.tabs .m { height: 100%; padding: 26px 30px 30px; gap: 14px; font-size: 13.5px; }
.tt { position: relative; display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left;
  padding: 8px 14px 10px; border-radius: 12px; border: 1px solid transparent; background: transparent;
  font: inherit; color: var(--text); cursor: pointer; transition: background-color .2s, border-color .2s; }
.tt:hover { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.tt[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.tt .tf-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); transition: background-color .25s, color .25s; }
.tt .tf-ic .i { width: 20px; height: 20px; stroke-width: 1.8; }
.tt[aria-selected="true"] .tf-ic { background: var(--accent-soft); color: var(--accent); }
.tt-txt { min-width: 0; }
.tt b { display: block; font-size: 16px; font-weight: 650; letter-spacing: -.2px; line-height: 1.35; margin-top: 7px; }
/* only the selected tab shows its benefit line, so eight tabs stay short and calm */
.tt small { display: block; font-size: 14px; line-height: 1.45; color: var(--text-2); max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .4s var(--ease), opacity .2s, margin .4s var(--ease); }
.tt[aria-selected="true"] small { max-height: 4.5em; opacity: 1; margin-top: 2px;
  transition: max-height .45s var(--ease), opacity .35s .12s, margin .45s var(--ease); }
.tt-prog { position: absolute; left: 64px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px;
  background: var(--line); overflow: hidden; opacity: 0; transition: opacity .3s; }
.tt-prog i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; }
.tour.auto .tt[aria-selected="true"] .tt-prog { opacity: 1; }
.tour.auto .tt[aria-selected="true"] .tt-prog i { animation: prog 6s linear both; }
.tour[data-paused] .tt-prog i { animation-play-state: paused !important; }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* mini-screens (Beispieldaten) */
.m { padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.45; }
.m small { display: block; font-size: 11.5px; color: var(--text-3); }
.m .btn { pointer-events: none; }
.m-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 24px; }
.m-top b { font-size: 15px; letter-spacing: -.2px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.m-top .pill { flex: none; }
.m-top > span:not(.pill) { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-card { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.m-drop { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--accent);
  border: 1.5px dashed color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.m-drop b { display: block; color: var(--text); font-weight: 600; }
.m-drop small { color: var(--text-2); }
.m-list { list-style: none; overflow: hidden; }
.m-list li { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.m-list li:last-child { border-bottom: 0; }
.m-list li > :not(.flash):not(.load) { position: relative; }
.m-list .load { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent); transform-origin: 0 50%; }
.m-list .flash { position: absolute; inset: 0; background: var(--orange-bg); }
.m-list li.dup, .m-list li.warnrow { background: color-mix(in srgb, var(--orange-bg) 55%, var(--surface)); }
.m-fi { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; flex: none; }
.m-fi .i { width: 17px; height: 17px; stroke-width: 2.1; }
.m-name { flex: 1; min-width: 0; }
.m-name b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-st { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; flex: none; }
.m-st .i { width: 14px; height: 14px; stroke-width: 2.6; }
.m-st.ok { background: var(--green-bg); color: var(--green); }
.m-st.warn { background: var(--orange-bg); color: var(--orange); }
.m-foot { font-size: 12px; color: var(--text-3); }
.m-src { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); min-width: 0; }
.m-src .i { width: 16px; height: 16px; stroke-width: 2.25; color: var(--text-3); }
.m-tab { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.m-tab th { text-align: left; font-size: 11px; font-weight: 600; color: var(--text-3); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.m-tab td { padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-tab :is(th, td):not(:first-child) { width: 25%; text-align: right; font-variant-numeric: tabular-nums; }
/* the name column takes what is left (and shortens); a figure always keeps its full width */
.m-tab :is(th, td):first-child { max-width: 0; }
.m-tab tr:last-child td { border-bottom: 0; }
.m-tab .sum td { font-weight: 650; border-top: 1px solid var(--line-strong); }
.m-tab .sum .m-st { font-weight: 600; }
/* report table: position names wrap in full, figures are never shortened */
.m-rep td:first-child { white-space: normal; }
.m-why { font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border-radius: 9px; padding: 10px 12px; }
.m-btns { display: flex; gap: 8px; align-items: center; }
.m-grid { display: grid; grid-template-columns: 82px repeat(8, minmax(0, 1fr)); gap: 8px 4px; padding: 12px; align-items: center; justify-items: center; }
.m-grid em { font-style: normal; font-size: 11px; color: var(--text-3); }
.m-grid > span { justify-self: start; font-size: 12px; color: var(--text-2); white-space: nowrap; }
.m-grid i { position: relative; display: block; width: 22px; height: 22px; border-radius: 6px; background: var(--green-bg); }
.m-grid i::after { content: ""; position: absolute; inset: 5px; background: var(--green);
  -webkit-mask: var(--ck) center / contain no-repeat; mask: var(--ck) center / contain no-repeat; }
.m-grid i.miss { background: var(--red-bg); box-shadow: inset 0 0 0 1.5px var(--red); }
.m-grid i.miss::after { content: "!"; inset: 0; display: grid; place-items: center; background: none; -webkit-mask: none; mask: none;
  color: var(--red); font: 700 12px/1 var(--font); }
.m-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: var(--text-3); }
.m-legend span { display: inline-flex; align-items: center; gap: 6px; }
.m-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.m-legend .k-ok::before { background: var(--green-bg); box-shadow: inset 0 0 0 1px var(--green); }
.m-legend .k-miss::before { background: var(--red-bg); box-shadow: inset 0 0 0 1px var(--red); }
.m-legend .o::before { background: var(--orange); } .m-legend .r::before { background: var(--red); }
.m-alert { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--red-bg); color: var(--red); }
.m-alert > span:not(.pill) { flex: 1; min-width: 0; }
.m-alert b { display: block; color: var(--text); font-weight: 600; }
.m-alert small { color: var(--text-2); }
.m-aging { display: flex; gap: 3px; height: 10px; border-radius: 99px; overflow: hidden; }
.m-aging i { background: var(--accent); transform-origin: 0 50%; }
.m-aging i.o { background: var(--orange); } .m-aging i.r { background: var(--red); }
.m-due li { gap: 12px; }
.m-amt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.m-lv { min-width: 82px; text-align: center; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.m-lv.o { background: var(--orange-bg); color: var(--orange); } .m-lv.r { background: var(--red-bg); color: var(--red); }
.m-date { width: 42px; flex: none; font-size: 12px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.m-warn-ic { width: 18px; height: 18px; stroke-width: 2; color: var(--orange); }
.m-letter { border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; background: var(--surface);
  box-shadow: 0 12px 26px -16px rgba(16, 24, 40, .3); }
.m-letter-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.m-letter-h b { font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-letter p { font-size: 12.5px; color: var(--text-2); }
.m-bank { display: flex; gap: 10px; padding: 11px 14px; border-radius: 10px; background: var(--orange-bg); color: var(--orange);
  border: 1px solid color-mix(in srgb, var(--orange) 28%, transparent); }
.m-bank > .i { margin-top: 1px; }
.m-bank b { display: block; color: var(--text); font-weight: 650; }
.m-bank small { color: var(--text-2); font-size: 12px; }
.m-iban { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.m-iban span:last-child { color: var(--orange); font-weight: 650; }
.m-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 2px; color: var(--text-2); }
.m-total b { color: var(--text); font-variant-numeric: tabular-nums; }
.m-chat { gap: 10px; }
.m-q { align-self: flex-end; max-width: 80%; background: var(--accent-fill); color: #fff; padding: 8px 13px; border-radius: 14px 14px 4px 14px; }
.m-typing { position: relative; height: 0; }
.m-typing .flash { position: absolute; left: 0; top: 0; display: flex; gap: 4px; padding: 12px 13px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); }
.m-typing b { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.play .m-typing b { animation: dot .45s ease-in-out .8s 4 alternate both; }
.play .m-typing b:nth-child(2) { animation-delay: .95s; } .play .m-typing b:nth-child(3) { animation-delay: 1.1s; }
@keyframes dot { to { transform: translateY(-3px); } }
.m-ans { max-width: 94%; background: var(--surface-2); border-radius: 14px 14px 14px 4px; padding: 10px 13px; display: flex; flex-direction: column; gap: 6px; }
.m-ans ul { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; background: var(--surface); border-radius: 8px; padding: 6px 10px; }
.m-ans li { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.m-ans li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-ans li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.m-input { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 12px; color: var(--text-3); }
.m-input .i { width: 28px; height: 28px; padding: 6px; border-radius: 7px; background: var(--accent-fill); color: #fff; stroke-width: 2.6; }
.tour.tabs .m-grid { gap: 12px 6px; padding: 16px; }
.tour.tabs .m-grid i { width: 28px; height: 28px; border-radius: 7px; }
.tour.tabs .m-grid i::after { inset: 7px; }
/* Belege: phone scan detail */
.m-up { display: flex; gap: 10px; }
.m-up .m-drop { flex: 1; min-width: 0; }
.m-drop > span { min-width: 0; }
.m-phone { position: relative; flex: none; width: 46px; padding: 6px 5px 11px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); }
.m-phone::after { content: ""; position: absolute; left: calc(50% - 2.5px); bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.m-pg { position: relative; display: block; height: 100%; border-radius: 3px; overflow: hidden;
  background: repeating-linear-gradient(var(--line) 0 1.5px, transparent 1.5px 6px) 5px 6px / calc(100% - 10px) calc(100% - 10px) no-repeat, var(--surface-2); }
.m-pg .scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); box-shadow: 0 0 6px var(--accent); opacity: 0; }
.play .m-pg .scan { animation: a-scan 1s ease-in-out calc(var(--d) * 1s) both; }
@keyframes a-scan { 0% { opacity: 0; transform: none; } 15%, 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(40px); } }
.m-phone b { position: absolute; top: -7px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--accent-fill); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--surface); }
/* Zahlungen */
.m-acct { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.m-acct small:first-child { font-size: 10.5px; font-weight: 650; letter-spacing: .5px; text-transform: uppercase; }
.m-acct .m-amt { font-size: 15px; }
.m-acct small { white-space: normal; }
.m-box { width: 18px; height: 18px; flex: none; border-radius: 5px; background: var(--accent-fill); color: #fff; display: grid; place-items: center; }
.m-box .i { width: 14px; height: 14px; stroke-width: 3; }
.m-pay .m-warn-ic { flex: none; }
.m-pay .warnrow small { color: var(--orange); }
.m-run { flex-wrap: wrap; }
.m-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface-2); font-size: 12px; font-weight: 600; }
.m-chip .i { width: 16px; height: 16px; stroke-width: 2.1; color: var(--accent); }
.m-foot b { color: var(--text-2); font-weight: 650; }
/* Berichte */
.m-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--green-bg); color: var(--green); }
.m-check .i { width: 18px; height: 18px; stroke-width: 2.6; }
.m-check b { flex: 1; min-width: 0; color: var(--text); font-weight: 600; }
.m-check span { font-size: 12px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .m-drop { gap: 10px; padding: 10px 12px; }
  .m-drop :is(b, small) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-tab { font-size: 11.5px; }
}

.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps::after { content: ""; position: absolute; top: -1px; left: 41px; z-index: 1; pointer-events: none;
  width: calc((100% - 36px) * 2 / 3 + 36px); height: 2px; border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 45%, var(--line)); transform-origin: 0 50%;
  transition: transform 1.1s var(--ease) .75s; }
.rv .steps:not(.in)::after { transform: scaleX(0); }
.step { position: relative; padding: 28px 26px 26px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 24px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-fill); color: #fff; font-weight: 700;
  display: grid; place-items: center; font-size: 15px; box-shadow: 0 0 0 5px var(--surface);
  transition: opacity .35s var(--ease) var(--nd, .75s), transform .5s var(--ease-back) var(--nd, .75s); }
.step:nth-child(2) { --nd: 1.25s; } .step:nth-child(3) { --nd: 1.75s; }
.rv .steps:not(.in) .step::before { opacity: 0; transform: scale(.5); }
.step h3 { font-size: 18px; margin: 6px 0 6px; }
.step p { color: var(--text-2); font-size: 15.5px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.checks { list-style: none; display: grid; gap: 16px; }
.checks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.checks > :nth-child(2) { --sd: .3s; } .checks > :nth-child(3) { --sd: .6s; } .checks > :nth-child(4) { --sd: .9s; }
.checks li .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--green-bg); color: var(--green);
  display: grid; place-items: center; transition: transform .45s var(--ease-back) calc(var(--sd, 0s) + .15s); }
.checks .ic .i { width: 18px; height: 18px; stroke-width: 2; }
.checks .ic path { transition: stroke-dashoffset .5s var(--ease) calc(var(--sd, 0s) + .3s), opacity .1s linear calc(var(--sd, 0s) + .3s); }
.rv .checks:not(.in) .ic { transform: scale(.6); }
.rv .checks:not(.in) .ic path { stroke-dashoffset: 1; opacity: 0; }
.checks b { display: block; font-size: 16.5px; }
.checks span { color: var(--text-2); font-size: 15px; }
.approve { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 22px; }
.approve .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; margin-bottom: 14px; }
.approve .head b { font-size: 15px; }
.approve .head .pill { font-size: 12px; padding: 3px 10px; }
.approve table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.approve td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.approve td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.approve .why { margin-top: 12px; font-size: 13px; color: var(--text-2); background: var(--surface-2); border-radius: 9px; padding: 10px 12px; }
.approve .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.approve .btn { pointer-events: none; }
.approve .btn.primary::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent); opacity: 0; }
.rv .approve.in .btn.primary::before { animation: a-ring 1.6s var(--ease) 1.6s both; }

.audience { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.aud { position: relative; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px; background: var(--surface); }
.aud:hover { translate: 0 -3px; }
.aud:hover::after, .price-card:hover::after { opacity: 1; }
.aud .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.aud .ic .i { width: 22px; height: 22px; stroke-width: 1.64; }
.aud b { display: block; font-size: 16px; margin: 14px 0 4px; }
.aud > span:last-child { color: var(--text-2); font-size: 14.5px; }
section.alt .aud { background: var(--bg); }

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; transition: border-color .25s; }
section.alt .faq details { background: var(--bg); }
.faq details[open]:not(.closing) { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 16.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; border-radius: 8px; transition: color .2s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.pm { position: relative; width: 20px; height: 20px; flex: none; color: var(--text-3); transition: transform .4s var(--ease), color .25s; }
.pm::before, .pm::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 1.5px; margin-top: -.75px;
  border-radius: 2px; background: currentColor; transition: transform .4s var(--ease); }
.pm::after { transform: rotate(90deg); }
.faq details[open]:not(.closing) .pm { transform: rotate(180deg); color: var(--accent); }
.faq details[open]:not(.closing) .pm::after { transform: rotate(0deg); }
.faq .ans { overflow: hidden; }
.faq .ans p { color: var(--text-2); padding-bottom: 18px; font-size: 15.5px; }

.interval { display: flex; justify-content: center; align-items: center; gap: 10px; margin: -18px 0 30px; flex-wrap: wrap; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong); }
.seg::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px;
  background: var(--accent-fill); box-shadow: 0 4px 12px -4px rgba(27, 95, 184, .55); transition: transform .45s var(--ease); }
.seg[data-on="yearly"]::before { transform: translateX(100%); }
.seg button { position: relative; height: 34px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text-2); font: 600 14px var(--font); cursor: pointer; transition: color .3s; }
.seg button.on { color: #fff; }
.interval .save { font-size: 13px; font-weight: 650; color: var(--green); background: var(--green-bg); border-radius: 999px; padding: 4px 10px; }
.interval .save:empty { display: none; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: stretch; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 22px; display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; box-shadow: var(--shadow); }
.price-card:hover { translate: 0 -3px; }
.price-card.hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.price-card .badge { position: absolute; top: -12px; left: 22px; background: var(--accent-fill); color: #fff; font-size: 12px;
  font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price-card h3 { font-size: 19px; }
.price-card .tag { color: var(--text-2); font-size: 14.5px; min-height: 44px; margin: 4px 0 12px; }
.price-card .amount { font-size: 36px; font-weight: 750; letter-spacing: -1px; line-height: 1.1; }
.price-card .amount small { font-size: 16px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.price-card .amount .per { font-size: 15px; font-weight: 500; color: var(--text-3); letter-spacing: 0; margin-left: 4px; }
.num { display: inline-grid; clip-path: inset(0 -4px); font-variant-numeric: tabular-nums; }
.num > span { grid-area: 1 / 1; }
.price-card .billed { font-size: 13.5px; color: var(--text-3); margin: 4px 0 16px; min-height: 20px; }
.ticks { list-style: none; display: grid; gap: 8px; margin-bottom: 22px; font-size: 14.5px; color: var(--text-2); }
.ticks li { display: flex; gap: 8px; align-items: baseline; }
.ticks li::before { color: var(--green); transform: translateY(2px); }
.price-card .btn { align-self: end; }
.included { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; font-size: 13.5px; color: var(--text-2); }
.included b { font-weight: 600; color: var(--text); margin-right: 4px; }
.included span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.included span::before { width: 12px; height: 12px; color: var(--green); }
.price-note { text-align: center; color: var(--text-3); font-size: 14px; margin-top: 18px; }

.final { padding: 88px 0; }
.final .box { background: var(--accent-fill); color: #fff; border-radius: 22px; padding: 56px 40px; text-align: center;
  position: relative; overflow: hidden; isolation: isolate; }
.final .box::after { content: ""; position: absolute; inset: auto -80px -120px auto; width: 320px; height: 320px; z-index: -1;
  border-radius: 50%; background: rgba(255, 255, 255, .08); }
/* an extremely slow light sweep; paused offscreen and in hidden tabs */
.final .box::before { content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 15%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, 0) 85%);
  animation: sweep 18s cubic-bezier(.45, 0, .3, 1) 2s infinite; }
@keyframes sweep { 0% { transform: translateX(0); } 45%, 100% { transform: translateX(330%); } }
.rv .final:not(.inview) .box::before, .away .final .box::before { animation-play-state: paused; }
.final h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -1px; line-height: 1.15; margin-bottom: 12px; }
.final p { opacity: .9; font-size: 17.5px; margin-bottom: 26px; }
.final .btn { background: #fff; color: #0f3f80; border-color: #fff; margin: 4px; }
.final .btn:hover { background: #f0f5fd; }
.final .btn.outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.final .btn.outline:hover { background: rgba(255, 255, 255, .1); }

footer.site { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--text-3); font-size: 14px; }
footer.site .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--text-2); }
footer.site .copy { margin-top: 6px; }

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth .brandside { background: var(--accent-fill); color: #fff; padding: 44px 56px; display: flex; flex-direction: column;
  justify-content: space-between; position: relative; overflow: hidden; isolation: isolate; }
.auth .brandside::after { content: ""; position: absolute; right: -140px; bottom: -140px; width: 420px; height: 420px; z-index: -1;
  border-radius: 50%; background: rgba(255, 255, 255, .07); animation: fade 1.6s var(--ease) .2s both; }
.auth .brandside .logo { color: #fff; }
.auth .brandside .logo { --logo-accent: #bcd8ff; }
.auth .brandside h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.8px; margin-bottom: 18px; max-width: 460px; }
.auth .brandside ul { list-style: none; display: grid; gap: 12px; max-width: 460px; }
.auth .brandside li { display: flex; gap: 10px; align-items: baseline; opacity: .95; }
.auth .brandside li::before { width: 16px; height: 16px; transform: translateY(3px); }
.auth .brandside small { opacity: .75; }
.auth .brandside .pitch > * { animation: up .7s var(--ease) both; }
.auth .brandside li { animation: up .6s var(--ease) both; }
.auth .brandside li:nth-child(1) { animation-delay: .15s; } .auth .brandside li:nth-child(2) { animation-delay: .22s; }
.auth .brandside li:nth-child(3) { animation-delay: .29s; } .auth .brandside li:nth-child(4) { animation-delay: .36s; }
.auth .formside { display: grid; place-items: center; padding: 40px 20px; background: var(--surface); }
.auth form, .auth .panel { width: 100%; max-width: 420px; animation: up .6s var(--ease) .05s both; }
.auth h1 { font-size: 30px; letter-spacing: -.8px; line-height: 1.2; }
.auth .sub { color: var(--text-2); margin: 6px 0 26px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input { width: 100%; height: 46px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: 16px var(--font); padding: 0 14px;
  transition: border-color .15s, box-shadow .2s var(--ease); }
.field input:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line-strong)); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-bg); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pw { position: relative; }
.pw input { padding-right: 96px; }
.pw button { position: absolute; right: 5px; top: 5px; height: 36px; padding: 0 12px; border: 0; background: transparent;
  color: var(--accent); font: 600 13px var(--font); cursor: pointer; border-radius: 7px; transition: background-color .15s; }
.pw button:hover { background: var(--accent-soft); }
.meter { height: 5px; border-radius: 3px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s var(--ease), background .2s; }
.hint { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); margin: 4px 0 18px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -4px 0 18px; }
.between .check { margin: 0; }
.auth .btn.primary { width: 100%; height: 48px; font-size: 16px; }
.alt-link { text-align: center; margin-top: 22px; color: var(--text-2); font-size: 15px; }
.msg { border-radius: var(--r-sm); padding: 11px 14px; font-size: 14.5px; margin-bottom: 16px; display: none; }
.msg.on { display: block; animation: up .35s var(--ease) both; }
.msg.error { background: var(--red-bg); color: var(--red); }
.msg.info { background: var(--accent-soft); color: var(--accent-ink); }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 26px; font-size: 14px; color: var(--text-2); }
.back .i { width: 16px; height: 16px; stroke-width: 2.25; transition: transform .25s var(--ease); }
.back:hover { color: var(--text); text-decoration: none; }
.back:hover .i { transform: translateX(-3px); }

.legal { padding: 64px 0 80px; }
.legal .container { max-width: 760px; }
.legal .container > * { animation: up .6s var(--ease) both; }
.legal .container > :nth-child(2) { animation-delay: .06s; } .legal .container > :nth-child(3) { animation-delay: .12s; }
.legal h1 { font-size: 36px; letter-spacing: -1px; margin-bottom: 12px; }
.legal .note { background: var(--orange-bg); color: var(--orange); border-radius: var(--r-sm); padding: 14px 16px; margin: 20px 0; }
.legal p { color: var(--text-2); margin-bottom: 12px; }
.legal-body h2 { font-size: 20px; letter-spacing: -.3px; margin: 30px 0 10px; color: var(--text); }
.legal-body ul { margin: 0 0 14px 22px; color: var(--text-2); }
.legal-body li { margin-bottom: 6px; }
.legal-body b { color: var(--text); }
.legal-body mark.gap { background: var(--orange-bg); color: var(--orange); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.legal-body .stand { margin-top: 30px; font-size: 14px; color: var(--text-3); }

@media (min-width: 700px) {
  .tour:not(.tabs) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
}
@media (max-width: 1100px) { .strip ul { gap: 10px 20px; font-size: 13.5px; } }
@media (min-width: 641px) and (max-width: 1000px) { .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .hero .container, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .preview { --tilt: perspective(1400px) rotateY(0deg) rotateX(0deg); }
  .preview .float { left: 12px; bottom: -20px; }
  .preview .chip { right: 12px; }
  .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav .links { display: none; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth .brandside { display: none; }
}
@media (max-width: 640px) {
  .nav .actions .btn.ghost { display: none; }
  .nav .actions .btn { height: 44px; padding: 0 16px; font-size: 14px; }
  .hero { padding-top: 36px; }
  .steps, .audience { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 30px; }
  .steps::after { display: none; }
  section.block { padding: 64px 0; }
  .preview .body { grid-template-columns: minmax(0, 1fr); }
  .preview .side { display: none; }
  .preview .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview .kpis .kpi:last-child { display: none; }
  .preview .chip { top: 52px; right: 8px; }
  .row2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .final .box { padding: 40px 22px; }
  .final .btn { width: 100%; max-width: 320px; }
  .seg button { height: 44px; }
  .m-grid { grid-template-columns: 74px repeat(8, minmax(0, 1fr)); gap: 8px 2px; padding: 10px; }
  .m-grid > span { font-size: 11px; }
  .m-grid em { font-size: 10px; }
  .m-grid i { width: 20px; height: 20px; border-radius: 5px; }
  .m-grid i::after { inset: 4px; }
  .m-lv { min-width: 0; }
  .m-tab :is(th, td) { padding: 7px 8px; }
  .m-tab :is(th, td):not(:first-child) { width: 28%; }
  .m-due .m-name small { display: none; }
  footer.site nav { gap: 0 4px; margin-left: -10px; }
  footer.site nav a { display: inline-block; padding: 11px 10px; }
  .pw input { height: 48px; }
  .pw button { top: 2px; right: 2px; height: 44px; }
  .back, .between a { display: inline-flex; align-items: center; min-height: 44px; }
  .back { margin-bottom: 14px; }
}
/* narrow phones: each report row stacks, name on top, both figures aligned below */
@media (max-width: 420px) {
  .m-rep, .m-rep :is(thead, tbody) { display: block; }
  .m-rep tr { display: grid; grid-template-columns: minmax(0, 1fr) 7.6em 7.6em; border-bottom: 1px solid var(--line); }
  .m-rep tbody tr:last-child { border-bottom: 0; }
  .m-tab.m-rep :is(th, td) { width: auto; max-width: none; border: 0; }
  .m-rep .sum { border-top: 1px solid var(--line-strong); }
  .m-rep td:first-child { grid-column: 1 / -1; padding-bottom: 0; }
  .m-rep td:nth-child(2) { grid-column: 2; }
  .m-rep td:nth-child(3) { grid-column: 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
