/* WONS BI public site: shell, footer, mobile sheet. Landing and auth sections follow. */
.site { min-height: 100vh; display: flex; flex-direction: column; }
/* The page grows with the window instead of stopping at one fixed width: 1240px up to a 1512px window, then 82% of it, no wider than 1640px.
   Beyond that, lines of text and the tiles would stretch further than they read well. */
.site { --content-max: clamp(1240px, 82vw, 1640px); }
.wrap { width: 100%; max-width: calc(var(--content-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.site-main { flex: 1; }
.site-main > .flashes { padding-top: var(--s-4); }

.site-nav { position: sticky; top: 0; z-index: 50; background: var(--page); view-transition-name: site-nav; }
.site-nav-inner { display: flex; align-items: center; gap: var(--s-6); height: var(--nav-h); padding-inline: var(--stage-pad); }
.site-links { margin-right: auto; }
.site-nav-inner .site-actions { margin-left: auto; }
.site-links + .site-actions { margin-left: 0; }
.site-actions { display: flex; align-items: center; gap: var(--s-2); }
.sheet { position: absolute; left: 0; right: 0; top: 100%; z-index: 49; display: grid; gap: var(--s-6); padding: var(--s-5) var(--gutter) var(--s-6); background: var(--page); border-radius: 0 0 var(--r-tile) var(--r-tile); box-shadow: var(--shadow-float); }
.sheet nav { display: grid; }
.sheet nav a { padding: 14px 4px; font-size: var(--fs-h3); text-decoration: none; border-bottom: 1px solid var(--line); }
.sheet-actions { display: grid; gap: var(--s-2); }

.site-footer { margin-top: var(--s-9); background: var(--charcoal); color: var(--on-charcoal); border-radius: var(--r-tile) var(--r-tile) 0 0; padding-block: var(--s-7) var(--s-5); }
.site-footer .wrap { padding-inline: calc(var(--gutter) + var(--stage-pad)); }
.site-footer-row { display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; padding-bottom: var(--s-6); border-bottom: 1px solid color-mix(in srgb, var(--on-charcoal) 16%, transparent); }
.footer-links { display: flex; gap: var(--s-5); flex-wrap: wrap; color: var(--on-charcoal-2); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--on-charcoal); text-decoration: underline; }
/* The footer is dark in both themes: it takes the dark logo, and a logo with no dark version sits on a light plate so it is never lost. */
.site-footer .logo-img.has-dark { display: none; }
.site-footer .logo-dark { display: block; }
.site-footer .logo-link:has(.logo-light:not(.has-dark)) { padding: 8px 12px; border-radius: 12px; background: var(--page); color: var(--ink); }
.site-footer .credit { color: var(--on-charcoal-2); }
.site-footer .credit b { color: var(--on-charcoal); }
.site-footer .credit:hover b { color: var(--on-charcoal); }
.site-footer-base { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding-top: var(--s-5); color: var(--on-charcoal-2); font-size: var(--fs-small); }
.site-footer .btn-secondary { color: var(--on-charcoal); border-color: color-mix(in srgb, var(--on-charcoal) 45%, transparent); }
.site-footer .btn-secondary:hover { background: var(--on-charcoal); color: var(--charcoal); }

@media (max-width: 900px) {
  .site-links { display: none; }
  .site-nav-inner .site-actions { margin-left: auto; }
  .menu-btn { display: inline-grid; margin-left: var(--s-2); }
  .site-nav-inner { padding-inline: 0; }
  .site-footer .wrap { padding-inline: var(--gutter); }
}

/* ================= display type (public pages only) ================= */
/* Red Hat Display, variable 300 to 900, SIL OFL, self-hosted. The fallback is metric-matched so the swap does not shift the headline. */
@font-face {
  font-family: "Red Hat Display";
  src: url("/fonts/red-hat-display-latin-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Display Fallback";
  src: local("Arial");
  size-adjust: 95%;
  ascent-override: 107%;
  descent-override: 32%;
  line-gap-override: 0%;
}
.site { --font-display: "Red Hat Display", "Red Hat Display Fallback", "Inter", system-ui, sans-serif; }
.site h1, .site h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.03em; }
.site h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; }

/* lime highlighter: a marker behind a key word. The sign-in pages already wrap their key word in .hl. */
.mark, .site .hl { position: relative; z-index: 0; padding: 0 0.12em; margin: 0 -0.12em; color: var(--on-lime); white-space: nowrap; }
.mark::before, .site .hl::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0.1em; bottom: 0.02em;
  background: var(--lime); border-radius: 0.08em 0.22em 0.1em 0.25em; transform: rotate(-1deg); transform-origin: left center;
  clip-path: polygon(0 14%, 1.5% 0, 99% 5%, 100% 88%, 98% 100%, 2% 94%);
}

/* ================= landing ================= */
.landing { --r-stage: 32px; --r-card: 22px; padding-top: var(--s-2); }
.landing .stage { border-radius: var(--r-stage); }
.landing .tile { border-radius: var(--r-card); }
.landing .section { margin-top: clamp(76px, 6vw + 36px, 132px); }
.landing .lead { font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.landing h2 { font-size: clamp(2rem, 0.9rem + 3.9vw, 3.75rem); font-weight: 300; line-height: 1.04; letter-spacing: -0.035em; max-width: 19ch; }
.landing h3 { text-wrap: balance; }
.landing .btn { border-radius: 14px; }
.landing .btn-lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.landing .link-arrow { min-height: 44px; }
.tile-stage { background: var(--stage); color: var(--ink); }
.tile-lime { background: var(--lime); color: var(--on-lime); }
.tile-lime p, .tile-lime .mini-sub { color: var(--on-lime); }
.tile-lime-soft { background: var(--lime-soft); color: var(--ink); }
.tile-lime-soft .chip, .tile-soft .chip { background: var(--tile); }

/* a plain heading row: big light title left, a short lead right. No label above it. */
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-7); align-items: end; margin-bottom: var(--s-8); padding-inline: var(--stage-pad); }
.stage .section-head { padding-inline: 0; }

/* notched tiles: a corner is cut away and carries a small glyph. The notch takes the colour of whatever the tile sits on. */
.nt { position: relative; --nw: 64px; --nh: 56px; --nr: 20px; --notch-bg: var(--stage); --notch-dot: var(--tile); }
.notch { position: absolute; top: 0; right: 0; z-index: 2; display: grid; place-items: center; width: var(--nw); height: var(--nh); background: var(--notch-bg); border-bottom-left-radius: var(--nr); pointer-events: none; }
.notch::before, .notch::after { content: ""; position: absolute; width: var(--nr); height: var(--nr); background: radial-gradient(circle at 0 100%, transparent calc(var(--nr) - 0.5px), var(--notch-bg) var(--nr)); }
.notch::before { right: 100%; top: 0; }
.notch::after { right: 0; top: 100%; }
.notch-page { --notch-bg: var(--page); --notch-dot: var(--stage); }
.notch-dot { display: grid; place-items: center; width: 38px; height: 38px; margin: -2px 0 0 -4px; border-radius: 13px; background: var(--notch-dot); color: var(--ink); }
.notch-dot .i { width: 20px; height: 20px; }
.nt > h3 { padding-right: 56px; }
.nt > .mini > .mini-head, .nt > .mini > .mini-title { padding-right: 52px; }

/* ---------- hero ---------- */
.hero-stage { padding: calc(var(--stage-pad) + 10px) var(--stage-pad) var(--stage-pad); }
.landing h1.display { font-size: clamp(2.6rem, 0.6rem + 6.9vw, 5.75rem); font-weight: 300; line-height: 1; letter-spacing: -0.04em; max-width: none; }
.h1-line { display: block; }
.scribbled { position: relative; display: inline-block; }
.scribble { position: absolute; left: -2%; bottom: -0.2em; width: 104%; height: 0.36em; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: var(--lime-text); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.hero-head { margin-bottom: clamp(28px, 3vw, 44px); }
@media (min-width: 1700px) { .landing h1.display { font-size: clamp(5.75rem, 5vw, 7rem); } }
.hero-sub { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6) var(--s-8); flex-wrap: wrap; margin-bottom: clamp(36px, 4.4vw, 64px); }
.hero-sub .lead { max-width: 46ch; }
.hero-actions { display: grid; gap: var(--s-3); justify-items: start; }
.hero-actions .actions { gap: var(--s-4); }
.hero-actions .hint { margin: 0; }
.rise { animation: rise 0.8s var(--ease) both; }
.rise-1 { animation-delay: 0.05s; } .rise-2 { animation-delay: 0.12s; } .rise-3 { animation-delay: 0.18s; } .rise-4 { animation-delay: 0.24s; }
.rise-5 { animation-delay: 0.3s; } .rise-6 { animation-delay: 0.36s; } .rise-7 { animation-delay: 0.42s; } .rise-8 { animation-delay: 0.48s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento > * { min-width: 0; }
.bento > .tile { padding: 24px; display: grid; align-content: start; }
.t-line { grid-column: 1 / span 6; grid-row: 1 / span 2; }
.bento > .t-line, .bento > .t-kpi, .bento > .t-donut { align-content: stretch; grid-template-rows: minmax(0, 1fr); }
.t-kpi { grid-column: 7 / span 3; grid-row: 1; }
.t-builder { grid-column: 10 / span 3; grid-row: 1 / span 2; }
.t-donut { grid-column: 7 / span 3; grid-row: 2; }
.t-table { grid-column: 1 / span 5; }
.t-rank { grid-column: 6 / span 4; }
.t-fact { grid-column: 10 / span 3; align-content: space-between; gap: var(--s-5); }
.t-fact h3 { font-size: 1.625rem; font-weight: 500; line-height: 1.1; }
.t-fact p { font-size: 0.9375rem; line-height: 1.45; }
.flow { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin: 0; font-size: 0.8125rem; font-weight: 700; }
.flow li { position: relative; padding: 5px 0; border-bottom: 2px solid var(--on-lime); }
.flow li + li::before { content: ""; position: absolute; left: -15px; top: 50%; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.stamp { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; margin: var(--s-5) 0 0; max-width: none; }

/* ---------- miniature product UIs (illustrative, aria-hidden) ---------- */
.mini { display: grid; gap: 12px; align-content: start; min-width: 0; position: relative; font-size: 0.875rem; }
.mini-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; }
.mini-head > .mini-sub { flex-basis: 100%; }
.mini-title { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.mini-sub, .mini-label { color: var(--ink-2); font-size: 0.8125rem; line-height: 1.3; }
.tile-charcoal .mini-sub, .tile-charcoal .mini-label { color: var(--on-charcoal-2); }
.mini td { cursor: default; }
.mini tbody tr:hover td { background: none; }
.chip-lime { background: var(--lime); color: var(--on-lime); font-weight: 600; }
.chip-line { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2); }
.chip-line.on { background: var(--ink); border-color: var(--ink); color: var(--page); }
.mini-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* chart frame: HTML axis labels around an SVG plot, so type stays at a real size whatever the tile width */
.mc { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 10px; color: var(--ink-2); font-size: 0.75rem; min-height: 0; }
.mc-y { display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-variant-numeric: tabular-nums; }
.mc-y span { display: block; line-height: 1; margin-block: -0.5em; }
.mc-plot { position: relative; height: 180px; }
.mc-plot > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mc-x { grid-column: 2; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); text-align: center; }
.mc-x span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-line { stroke: var(--line-strong); stroke-dasharray: 2 4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.line-path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.line-area { fill: color-mix(in srgb, var(--accent) 10%, transparent); stroke: none; }
.bar-track { fill: var(--tile-soft); }
.bar-fill { fill: color-mix(in srgb, var(--accent) 42%, var(--tile)); }
.bar-hi { fill: var(--accent); }
.pt { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--accent); }
.pt.on { width: 12px; height: 12px; margin: -6px 0 0 -6px; box-shadow: 0 0 0 3px var(--tile), 0 0 0 4.5px var(--accent); }
.pt-1 { left: 6.25%; top: 14.7%; } .pt-2 { left: 18.75%; top: 33.8%; } .pt-3 { left: 31.25%; top: 7.2%; } .pt-4 { left: 43.75%; top: 34.3%; }
.pt-5 { left: 56.25%; top: 16.7%; } .pt-6 { left: 68.75%; top: 14%; } .pt-7 { left: 81.25%; top: 47.2%; } .pt-8 { left: 93.75%; top: 42%; }
.mc-tip { position: absolute; z-index: 1; display: grid; gap: 1px; padding: 8px 12px; border-radius: 10px; background: var(--tile); color: var(--ink); box-shadow: var(--shadow-float); font-size: 0.75rem; line-height: 1.25; white-space: nowrap; }
.mc-tip small { color: var(--ink-2); font-size: 0.75rem; }
.mc-tip b { font-size: 1.0625rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.mc-tip-line { left: 31.25%; top: 7.2%; transform: translate(18px, -30%); }
.mc-tip-bar { left: 21%; top: 6%; transform: translateX(10px); }
.t-line .mini-line { height: 100%; grid-template-rows: auto minmax(0, 1fr); }
.t-line .mc-plot { height: auto; min-height: 220px; }

.mini-value { font-size: clamp(2.5rem, 2rem + 1.2vw, 3.25rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; }
.mini-delta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.delta-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--pos) 12%, transparent); color: var(--pos); font-size: 0.8125rem; font-weight: 600; }
.spark { width: 100%; height: 44px; margin-top: auto; }
.t-kpi .mini-kpi { height: 100%; display: flex; flex-direction: column; gap: 10px; }
.t-donut .mini-donut { height: 100%; grid-template-rows: auto minmax(0, 1fr); }
.t-donut .donut-wrap { align-self: center; }

.donut-wrap { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; }
.donut-fig { position: relative; width: 112px; height: 112px; }
.donut { width: 100%; height: 100%; }
.donut-seg { fill: none; stroke-width: 5.4; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.15; }
.donut-center b { font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.donut-center span { font-size: 0.75rem; color: var(--ink-2); }
.legend { list-style: none; padding: 0; display: grid; gap: 9px; }
.legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 0.8125rem; }
.legend b { font-weight: 600; font-variant-numeric: tabular-nums; }
.seg-d1 { stroke: var(--d1); } .seg-d3 { stroke: var(--d3); } .seg-d4 { stroke: var(--d4); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.seg-d1 { background: var(--d1); } .dot.seg-d3 { background: var(--d3); } .dot.seg-d4 { background: var(--d4); }

.rank { list-style: none; padding: 0; display: grid; gap: 14px; }
.rank li { display: grid; grid-template-columns: minmax(84px, 108px) minmax(0, 1fr) 44px; gap: 12px; align-items: center; }
.rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
progress.rank-bar { appearance: none; -webkit-appearance: none; width: 100%; height: 12px; border: 0; border-radius: 6px; background: var(--tile-soft); overflow: hidden; }
progress.rank-bar::-webkit-progress-bar { background: var(--tile-soft); border-radius: 6px; }
progress.rank-bar::-webkit-progress-value { background: color-mix(in srgb, var(--accent) 42%, var(--tile)); border-radius: 6px; }
progress.rank-bar::-moz-progress-bar { background: color-mix(in srgb, var(--accent) 42%, var(--tile)); border-radius: 6px; }
progress.rank-bar.hi::-webkit-progress-value { background: var(--accent); }
progress.rank-bar.hi::-moz-progress-bar { background: var(--accent); }

.mini-table table { width: 100%; font-size: 0.8125rem; color: var(--on-charcoal); }
.mini-table th { position: static; padding: 4px 8px 8px 0; background: none; color: var(--on-charcoal-2); font-size: 0.75rem; font-weight: 500; text-align: left; }
.mini-table td { height: 38px; padding: 0 8px 0 0; border-top: 1px solid color-mix(in srgb, var(--on-charcoal) 16%, transparent); font-weight: 400; max-width: none; overflow: visible; }
.mini-table td:first-child { font-weight: 400; color: var(--on-charcoal-2); }
.mini-table .num { text-align: right; padding-right: 14px; }
.st { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; }
.st-paid { background: var(--accent-on-dark); }
.st-pending { background: var(--on-charcoal-2); }
.st-refunded { border: 2px solid var(--on-charcoal-2); }

.mini-builder { gap: 14px; }
.mb-field { display: grid; gap: 6px; }
.mb-label { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.mb-select { display: flex; align-items: center; min-height: 40px; padding: 0 36px 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--tile) var(--chevron) no-repeat right 10px center / 16px; box-shadow: var(--shadow-sm); color: var(--ink); font-size: 0.875rem; }
.mb-none { color: var(--ink-2); }
.mini-segs { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--tile-soft); }
.mini-segs i { flex: 1; padding: 6px 8px; border-radius: 6px; color: var(--ink-2); font-size: 0.8125rem; font-style: normal; text-align: center; white-space: nowrap; }
.mini-segs i.on { background: var(--seg-active); box-shadow: var(--shadow-sm); color: var(--ink); font-weight: 600; }

.mini-explore { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
.explore-rail { display: grid; align-content: start; gap: 4px; font-size: 0.875rem; }
.explore-rail b { margin-bottom: 8px; color: var(--ink-2); font-size: 0.8125rem; font-weight: 600; }
.explore-rail span { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 12px; border-radius: 8px; color: var(--ink); }
.explore-rail small { color: var(--ink-2); font-size: 0.75rem; }
.explore-rail span.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.explore-rail span.on small { color: var(--accent-text); font-weight: 400; }
.explore-main { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.explore-main table { width: 100%; font-size: 0.8125rem; }
.explore-main th { position: static; padding: 8px 12px; background: var(--tile-soft); color: var(--ink-2); font-size: 0.75rem; font-weight: 500; }
.explore-main td { height: 40px; padding: 0 12px; }
.explore-main td:first-child { font-weight: 400; }

.dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dash-kpi, .dash-card { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.dash-kpi b { font-size: 1.5rem; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dash-kpi .mini-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-charts { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 10px; }
.dash-card svg { width: 100%; height: 92px; }

.mini-dl { display: grid; margin: 0; }
.mini-dl > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-strong); }
.mini-dl dt { color: var(--ink-2); font-size: 0.8125rem; }
.mini-dl dd { margin: 0; }
.sub-row { display: flex; align-items: flex-start; gap: 12px; }
.sub-row .i { flex: none; margin-top: 2px; color: var(--accent-text); }
.sub-row b { display: block; font-weight: 600; }
.sub-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-access table { width: 100%; font-size: 0.875rem; }
.mini-access th { position: static; padding: 8px 8px 8px 0; background: none; color: var(--ink-2); font-size: 0.75rem; font-weight: 500; }
.mini-access td { height: 48px; padding: 0 8px 0 0; border-top: 1px solid var(--line-strong); max-width: none; overflow: visible; }
.mini-access td:first-child { font-weight: 600; }
.mini-access .mb-select { display: inline-flex; min-width: 124px; min-height: 34px; }
.model-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr); gap: 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line-strong); font-size: 0.875rem; }
.model-row code { justify-self: start; background: var(--tile); }
.model-arrow { color: var(--ink-2); font-size: 0.75rem; }
.model-hidden code { text-decoration: line-through; color: var(--ink-2); }
.model-hidden b { color: var(--ink-2); font-weight: 400; }
.mini-formats { display: flex; gap: 6px; }
.csv { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--charcoal-deep); color: var(--on-charcoal); font: 0.8125rem / 1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow: hidden; }

/* ---------- benefits ---------- */
.benefit-bento > .tile { padding: 30px; gap: var(--s-4); display: flex; flex-direction: column; align-content: normal; }
.benefit-bento .tile > .mini { margin-top: auto; padding-top: var(--s-3); }
.b-stay { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.b-simple { grid-column: 8 / span 5; }
.b-offline { grid-column: 8 / span 5; }
.b-alerts { grid-column: 1 / span 5; }
.b-model { grid-column: 6 / span 4; }
.b-export { grid-column: 10 / span 3; }
.benefit-bento h3 { font-size: clamp(1.375rem, 1.1rem + 0.7vw, 1.75rem); font-weight: 500; line-height: 1.12; }
.benefit-bento .tile > p { max-width: 42ch; color: var(--ink-2); }
.benefit-bento .tile-charcoal > p { color: var(--on-charcoal-2); }
.benefit-bento .tile-lime > p { color: var(--on-lime); }
.b-stay .route { margin-top: auto; padding-top: var(--s-6); }
.benefit-bento .b-stay > p { max-width: 46ch; font-size: 1.125rem; }
.route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; margin-top: var(--s-5); }
.route-node { display: grid; gap: 4px; align-content: start; justify-items: start; min-height: 168px; padding: 16px; border-radius: 16px; background: var(--tile); }
.route-node .i { width: 26px; height: 26px; margin-bottom: 8px; color: var(--accent-text); }
.route-node b { font-weight: 600; }
.route-node span { color: var(--ink-2); font-size: 0.8125rem; line-height: 1.35; }
.route-app { background: var(--accent); color: var(--accent-ink); }
.route-app .i, .route-app span { color: var(--accent-ink); }
.route-link { position: relative; width: clamp(88px, 9vw, 104px); height: 2px; background: repeating-linear-gradient(90deg, var(--ink-2) 0 6px, transparent 6px 11px); }
.route-link span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 3px 8px; border-radius: 6px; background: var(--lime); color: var(--on-lime); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.recipe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: var(--s-3); }
.recipe span { padding: 9px 14px; border-radius: 10px; background: color-mix(in srgb, var(--on-charcoal) 13%, transparent); color: var(--on-charcoal); font-size: 0.9375rem; font-weight: 500; }
.recipe span:last-child { background: var(--lime); color: var(--on-lime); }
.b-export .csv { margin-top: auto; }
.b-export .mini-head { display: grid; gap: 8px; }
.b-export .mini-formats .chip-line { border-color: color-mix(in srgb, var(--on-lime) 40%, transparent); color: var(--on-lime); }
.b-export .mini-formats .chip-line.on { background: var(--on-lime); border-color: var(--on-lime); color: var(--lime); }
.b-export .mini-title { color: var(--on-lime); }

/* ---------- builder ---------- */
.builder-stage { padding: var(--stage-pad); padding-top: calc(var(--stage-pad) + 14px); }
.builder-canvas { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: stretch; }
.builder-form, .builder-preview { padding: 28px; }
.builder-preview { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 22px; align-content: stretch; }
.builder-preview .mini-bars { height: 100%; grid-template-rows: auto minmax(0, 1fr); }
.builder-preview .mc-plot { height: auto; min-height: 280px; }
.builder-filters { padding-top: 18px; border-top: 1px solid var(--line); }
.live { position: absolute; top: 14px; right: calc(var(--nw) + 14px); display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--lime); color: var(--on-lime); font-size: 0.8125rem; font-weight: 600; z-index: 1; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--on-lime); }
.specs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-6); }
.specs li { padding: 10px 18px; border-radius: var(--r-pill); background: var(--tile); font-size: 0.9375rem; font-weight: 500; }

/* ---------- features: pill tabs ---------- */
.features-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; margin-bottom: var(--s-6); padding-inline: var(--stage-pad); }
.features-head h2 { max-width: 14ch; }
.landing .seg { padding: 6px; border-radius: var(--r-pill); background: var(--stage); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.landing .seg::-webkit-scrollbar { display: none; }
.landing .seg .seg-btn { flex: none; min-height: 44px; padding: 0 20px; border-radius: var(--r-pill); font-size: 1rem; white-space: nowrap; }
.landing .seg .seg-btn:hover { background: var(--tile); color: var(--ink); }
.landing .seg .seg-btn[aria-selected="true"], .landing .seg .seg-btn[aria-selected="true"]:hover { background: var(--ink); color: var(--page); }
.pane { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s-8); align-items: center; min-height: 440px; padding: var(--stage-pad); }
.pane-mock { position: relative; display: grid; padding-bottom: 84px; }
.pane-mock > .tile { padding: 24px; }
.pane-float { position: absolute; right: -8px; bottom: 0; width: min(56%, 340px); padding: 18px; }
.pane-float .mini-value { font-size: 2.25rem; }
.pane-float .spark { display: none; }
.pane-copy { display: grid; gap: var(--s-4); align-content: center; max-width: 38ch; }
.pane-copy h3 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 300; line-height: 1.08; letter-spacing: -0.03em; }
.pane-copy p { color: var(--ink-2); font-size: 1.0625rem; }
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: var(--s-2); }
.ticks li { position: relative; padding-left: 38px; min-height: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); }
.ticks li::after { content: ""; position: absolute; left: 13px; top: 12px; width: 6px; height: 11px; border: solid var(--on-lime); border-width: 0 2.25px 2.25px 0; transform: translate(-50%, -55%) rotate(45deg); }

/* ---------- how it works ---------- */
.how { padding: clamp(28px, 5.4vw, 76px); border-radius: var(--r-stage); }
.how h2 { color: var(--on-charcoal); margin-bottom: clamp(44px, 7vw, 96px); }
.how-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); }
.how-steps li { position: relative; display: grid; gap: var(--s-3); align-content: start; padding-top: var(--s-6); border-top: 1px solid color-mix(in srgb, var(--on-charcoal) 24%, transparent); }
.how-steps li::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--lime); }
.how-num { font-family: var(--font-display); font-size: clamp(4.5rem, 2.8rem + 6vw, 8rem); font-weight: 300; line-height: 0.85; letter-spacing: -0.05em; color: var(--on-charcoal); }
.how h3 { margin-top: var(--s-4); color: var(--on-charcoal); font-size: clamp(1.375rem, 1.1rem + 0.7vw, 1.75rem); font-weight: 500; }
.how p { color: var(--on-charcoal-2); max-width: 34ch; }

/* ---------- access ---------- */
.access-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: stretch; }
.access-matrix { padding: 30px 30px 18px; }
.access-matrix h3 { margin-bottom: var(--s-4); font-size: clamp(1.375rem, 1.1rem + 0.7vw, 1.75rem); font-weight: 500; line-height: 1.12; }
.access-matrix table { width: 100%; font-size: 1rem; }
.access-matrix th, .access-matrix td { position: static; height: auto; max-width: none; padding: 14px 8px; background: none; overflow: visible; white-space: normal; border-top: 1px solid var(--line-strong); }
.access-matrix thead th { padding-top: 0; border-top: 0; color: var(--ink-2); font-size: 0.875rem; font-weight: 600; text-align: left; }
.access-matrix tbody th { color: var(--ink); font-size: 1rem; font-weight: 500; text-align: left; }
.access-matrix tbody tr:hover td { background: none; }
.access-matrix .yn { width: 112px; text-align: center; }
.hd-short { display: none; }
.access-matrix thead .yn { text-align: center; }
.ok-mark, .no-mark { position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.ok-mark { background: var(--lime); }
.ok-mark::after { content: ""; position: absolute; left: 50%; top: 48%; width: 6px; height: 11px; border: solid var(--on-lime); border-width: 0 2.25px 2.25px 0; transform: translate(-50%, -55%) rotate(45deg); }
.no-mark { color: var(--ink-2); }
.no-mark .i { width: 18px; height: 18px; }
.access-side { display: grid; }
.access-folders { display: flex; flex-direction: column; gap: var(--s-4); padding: 30px; }
.access-folders > .mini { margin-top: auto; padding-top: var(--s-3); }
.access-folders h3 { font-size: clamp(1.375rem, 1.1rem + 0.7vw, 1.75rem); font-weight: 500; line-height: 1.12; }
.access-folders > p { color: var(--ink-2); }
.access-note { max-width: none; margin-top: var(--s-2); padding-top: var(--s-4); border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); color: var(--ink-2); font-size: 0.875rem; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: stretch; }
.price-quote { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); padding: clamp(28px, 3.4vw, 48px); }
.price-quote h3 { padding-right: 64px; font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); font-weight: 300; line-height: 1.04; letter-spacing: -0.03em; }
.price-quote > p { max-width: 46ch; font-size: 1.0625rem; line-height: 1.5; }
.price-quote p a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.made-by { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 4px var(--s-4); margin-top: auto; padding-top: var(--s-5); border-top: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; }
.made-by-label { align-self: center; color: var(--ink-2); font-size: 0.875rem; }
.made-by-word { font-family: var(--font-display); font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); font-weight: 300; line-height: 0.9; letter-spacing: 0.06em; }
.made-by-link { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 6px; font-size: 0.9375rem; font-weight: 600; }
.made-by-link .i { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.made-by:hover .made-by-link .i { transform: translateX(3px); }
.made-by:hover .made-by-word { color: var(--accent-text); }
.ask-list { list-style: none; counter-reset: ask; display: grid; gap: 10px; width: min(100%, 600px); padding: 0; margin: var(--s-2) 0 var(--s-3); }
.ask-list li { counter-increment: ask; display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-radius: 16px; background: color-mix(in srgb, var(--on-lime) 9%, transparent); font-weight: 500; }
.ask-list li::before { content: counter(ask); display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--on-lime); color: var(--lime); font-size: 0.8125rem; font-weight: 700; }
.price-actions { display: flex; align-items: center; gap: var(--s-3) var(--s-5); flex-wrap: wrap; }
.price-actions .hint { margin: 0; color: var(--on-lime); opacity: 0.8; }
.price-incl { display: flex; flex-direction: column; gap: var(--s-5); padding: clamp(28px, 3vw, 40px); }
.price-incl h3 { font-size: clamp(1.375rem, 1.1rem + 0.7vw, 1.75rem); font-weight: 500; line-height: 1.12; }
.price-incl .ticks { gap: 16px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; padding-inline: var(--stage-pad); }
.faq-intro { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: var(--s-4); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding: 24px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.5rem); line-height: 1.25; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat, var(--stage); transition: background-color var(--t-fast) var(--ease); }
.faq[open] summary::after { background: linear-gradient(var(--on-lime), var(--on-lime)) center / 14px 1.5px no-repeat, var(--lime); }
.faq summary:hover::after { background-color: var(--line-strong); }
.faq[open] summary:hover::after { background-color: var(--lime); }
.faq-a { padding: 0 var(--s-8) 28px 0; }
.faq-a p { max-width: 62ch; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.55; }

/* ---------- closing call to action ---------- */
.cta-stage { display: grid; justify-items: center; padding: clamp(64px, 9vw, 128px) var(--stage-pad); text-align: center; overflow: hidden; }
.cta-body { position: relative; z-index: 1; display: grid; justify-items: center; gap: var(--s-5); max-width: 720px; }
.cta-body h2 { max-width: 12ch; font-size: clamp(2.5rem, 1rem + 5.6vw, 5.25rem); font-weight: 300; line-height: 1; }
.cta-body .lead { text-align: center; }
.cta-body .actions { justify-content: center; }
.cta-float { position: absolute; width: 264px; }
.cta-float-l { left: 4%; top: 14%; transform: rotate(-4deg); }
.cta-float-r { right: 4%; bottom: 12%; transform: rotate(3deg); }
.framed { position: relative; padding: 20px; }

/* ---------- motion: all of it behind prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .mark::before, .site .hl::before { animation: mark-in 0.8s var(--ease) 0.5s both; }
  @keyframes mark-in { from { transform: rotate(-1deg) scaleX(0); } }
  .scribble path { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: scribble-in 1.1s var(--ease) 1s forwards; }
  @keyframes scribble-in { to { stroke-dashoffset: 0; } }
  .reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .reveal.pre { opacity: 0; transform: translateY(20px); }
  .how-steps li:nth-child(2) { transition-delay: 0.08s; } .how-steps li:nth-child(3) { transition-delay: 0.16s; }
  .pane:not([hidden]) { animation: pane-in 0.45s var(--ease) both; }
  @keyframes pane-in { from { opacity: 0; transform: translateY(10px); } }
  .live i { animation: live 2s ease-in-out infinite; }
  @keyframes live { 50% { opacity: 0.25; } }
  .faq[open] .faq-a { animation: pane-in 0.3s var(--ease) both; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-bento, .benefit-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-bento > *, .benefit-bento > * { grid-column: auto; grid-row: auto; }
  .t-line, .t-table, .t-rank { grid-column: 1 / -1; }
  .t-line { order: 1; } .t-kpi { order: 2; } .t-donut { order: 3; } .t-table { order: 4; } .t-fact { order: 5; grid-column: 1 / -1; } .t-rank { order: 6; }
  .bento > .t-builder { display: none; }
  .b-stay, .b-alerts { grid-column: 1 / -1; }
  .t-line .mc-plot { min-height: 240px; }
  .cta-float { display: none; }
  .access-grid, .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .landing .section { margin-top: var(--s-9); }
  .section-head { grid-template-columns: 1fr; gap: var(--s-4); align-items: start; margin-bottom: var(--s-7); }
  .hero-sub { align-items: flex-start; flex-direction: column; }
  .builder-canvas, .pane, .faq-grid { grid-template-columns: 1fr; }
  .pane { min-height: 0; gap: var(--s-6); }
  .pane-copy { max-width: none; }
  .pane-float { position: static; width: auto; margin-top: var(--s-3); }
  .pane-mock { padding-bottom: 0; }
  .faq-intro { position: static; }
  .faq-a { padding-right: 0; }
  .how-steps { grid-template-columns: 1fr; gap: var(--s-7); }
  .how-num { font-size: 4.5rem; }
  .how p { max-width: 46ch; }
  .features-head { align-items: flex-start; }
  .mini-explore { grid-template-columns: 1fr; gap: var(--s-3); }
  .explore-rail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .explore-rail b { margin: 0 var(--s-2) 0 0; }
}
@media (max-width: 700px) {
  .hero-bento, .benefit-bento { grid-template-columns: 1fr; }
  .hero-bento > *, .benefit-bento > * { grid-column: 1 / -1; }
  .bento > .t-rank { display: none; }
  .bento > .tile, .benefit-bento > .tile { padding: 20px; }
  .benefit-bento > .tile { padding: 24px; }
  .route { grid-template-columns: 1fr; justify-items: stretch; }
  .route-link { width: 2px; height: 44px; justify-self: center; background: repeating-linear-gradient(180deg, var(--ink-2) 0 6px, transparent 6px 11px); }
  .route-node { min-height: 0; }
  .col-opt { display: none; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-kpis .dash-kpi:last-child { display: none; }
  .access-matrix { padding: 22px 18px 12px; }
  .access-matrix th, .access-matrix td { padding-inline: 4px; }
  .access-matrix tbody th { font-size: 0.9375rem; }
  .access-matrix .yn { width: 62px; }
  .access-matrix thead .yn { font-size: 0.75rem; }
  .hd-full { display: none; }
  .hd-short { display: inline; }
  .access-folders { padding: 24px; }
  .specs li { font-size: 0.875rem; padding: 8px 14px; }
  .live { right: auto; left: 20px; top: 14px; }
  .builder-preview .mini-bars { margin-top: 28px; }
  .landing .btn-lg { width: 100%; }
  .hero-actions, .hero-actions .actions { width: 100%; }
  .hero-actions .link-arrow { margin-inline: auto; }
  .mc-tip-bar { left: 18%; }
}
@media (max-width: 600px) {
  .site-actions .btn-secondary { display: none; }
}
@media (max-width: 520px) {
  .landing .seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-radius: 28px; overflow: visible; }
  .landing .seg .seg-btn { justify-content: center; padding: 0 12px; }
  .donut-wrap { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .donut-fig { width: 96px; height: 96px; }
}

/* ================= auth pages ================= */
.auth-wrap { padding-top: var(--s-2); }
.auth-stage { border-radius: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: var(--s-8); align-items: center; min-height: min(600px, 70vh); }
.auth-intro { display: grid; gap: var(--s-5); align-content: center; }
.auth-intro h1 { max-width: 12ch; font-size: clamp(2.5rem, 1rem + 5vw, 4.5rem); font-weight: 300; line-height: 1.02; letter-spacing: -0.04em; }
.auth-intro .lead { font-size: var(--fs-lead); max-width: 30ch; }
.auth-card { padding: 30px; border-radius: 22px; }
.auth-card .field:last-of-type { margin-bottom: var(--s-6); }
.auth-alt { margin-top: var(--s-5); text-align: center; color: var(--ink-2); font-size: var(--fs-small); }
.auth-alt a { color: var(--ink); font-weight: 600; }
.auth-closed { display: grid; gap: var(--s-4); justify-items: start; }
.auth-closed h2 { font-size: 1.5rem; }
.auth-closed .actions { margin-top: var(--s-2); }
@media (max-width: 900px) {
  .auth-stage { grid-template-columns: 1fr; gap: var(--s-6); min-height: 0; }
  .auth-intro h1, .auth-intro .lead { max-width: none; }
  .auth-card { padding: 28px 24px; }
}
