:root {
  --ink: #121a33;
  --muted: #56627c;
  --paper: #f6f8fc;
  --white: #ffffff;
  --navy: #080e22;
  --navy-2: #101936;
  --violet: #6967f3;
  --violet-2: #8c7cff;
  --mint: #21c5b5;
  --coral: #ff6f7d;
  --amber: #ffb84f;
  --border: rgba(19, 28, 54, .1);
  --shadow: 0 24px 70px rgba(15, 23, 56, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.65 "DM Sans", sans-serif; overflow-x: hidden; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand strong { font-family: "Manrope", sans-serif; }
h1, h2 { letter-spacing: -.045em; line-height: 1.04; }
em { color: var(--violet-2); font-style: normal; }

.skip-link { position: fixed; z-index: 1000; left: 1rem; top: -5rem; background: #fff; padding: .75rem 1rem; border-radius: .6rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: absolute; z-index: 50; top: 0; left: 50%; transform: translateX(-50%); width: min(100% - 3rem, 1320px); height: 92px; display: flex; align-items: center; justify-content: space-between; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); transition: .25s ease; }
.site-header.is-scrolled { position: fixed; top: .7rem; height: 72px; padding: 0 1rem; border: 1px solid rgba(255,255,255,.55); border-radius: 1.2rem; color: var(--ink); background: rgba(255,255,255,.85); backdrop-filter: blur(18px); box-shadow: 0 14px 40px rgba(9,16,40,.14); }
.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { font-size: 1rem; }
.brand small { color: #9ba5bc; font-size: .78rem; margin-top: .22rem; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; border-radius: 13px; background: linear-gradient(145deg, #7d72ff, #5559ed); box-shadow: inset 0 1px 1px rgba(255,255,255,.35), 0 8px 24px rgba(94,92,242,.35); }
.brand-mark svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.brand-mark svg circle { fill: rgba(255,255,255,.18); }
.site-header nav { display: flex; align-items: center; gap: 2rem; font-size: .92rem; color: #bac3d7; }
.site-header nav a:hover, .site-header.is-scrolled nav a:hover { color: var(--violet); }
.site-header.is-scrolled nav { color: var(--muted); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 52px; padding: .75rem 1.35rem; border: 0; border-radius: 999px; cursor: pointer; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(135deg, #7770ff, #5a5bea); box-shadow: 0 14px 36px rgba(99,96,241,.32); }
.button-primary:hover { box-shadow: 0 18px 46px rgba(99,96,241,.46); }
.button-small { min-height: 42px; padding: .55rem 1rem; font-size: .88rem; }
.button-ghost { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.07); }
.site-header.is-scrolled .button-ghost { color: #fff; border-color: transparent; background: var(--ink); }
.button-light { color: var(--ink); background: #fff; }
.button-ghost-dark { border: 1px solid var(--border); background: #fff; }
.button.is-disabled { opacity: .62; cursor: default; pointer-events: none; }
.button-orb { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.12); }

.hero { position: relative; min-height: 100vh; padding: 176px max(2rem, calc((100vw - 1320px)/2)) 66px; color: #fff; background: radial-gradient(circle at 70% 48%, #18234c 0, #0c1430 35%, var(--navy) 72%); isolation: isolate; overflow: hidden; }
.hero-grid { position: absolute; z-index: -2; inset: 0; opacity: .15; background-image: linear-gradient(rgba(146,159,214,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(146,159,214,.15) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 80%, transparent); }
.hero-glow { position: absolute; z-index: -1; width: 45vw; aspect-ratio: 1; border-radius: 50%; filter: blur(80px); opacity: .12; }
.hero-glow-one { right: -12%; top: 8%; background: var(--violet); }
.hero-glow-two { left: 30%; bottom: -30%; background: var(--mint); }
.hero-copy { width: min(53%, 680px); position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.3rem; color: #b9c3da; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 2px; background: var(--mint); }
.eyebrow-dark { color: var(--muted); }
.hero h1 { max-width: 760px; margin-bottom: 1.5rem; font-size: clamp(3.5rem, 6.3vw, 6.9rem); font-weight: 700; }
.hero h1 em { background: linear-gradient(90deg, #8e85ff, #c1b8ff); background-clip: text; color: transparent; }
.hero-lead { max-width: 620px; color: #b6bfd3; font-size: clamp(1.08rem, 1.5vw, 1.28rem); }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.text-button { display: inline-flex; align-items: center; gap: .7rem; padding: .6rem 0; color: #dbe1ef; border: 0; background: transparent; cursor: pointer; font-weight: 600; }
.play-mini { display: grid; place-items: center; width: 34px; height: 34px; padding-left: 2px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; font-size: .68rem; }
.microcopy { margin: 1.25rem 0 0; color: #7f8ba7; font-size: .82rem; }

.hero-stage { position: absolute; z-index: 1; top: 164px; left: max(52%, calc(50% + 120px)); width: min(800px, 50vw); overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 1.45rem; background: #111a36; box-shadow: 0 40px 100px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.08); transform: perspective(1500px) rotateY(-5deg) rotateX(2deg); transform-origin: left center; }
.stage-toolbar, .stage-foot { display: flex; align-items: center; gap: 1rem; min-height: 50px; padding: 0 1rem; color: #97a4bf; font-size: .76rem; }
.stage-toolbar { border-bottom: 1px solid rgba(255,255,255,.08); }
.stage-label { color: #e6e9f2; margin-right: auto; }
.stage-label i, .pulse { display: inline-block; width: 7px; height: 7px; margin-right: .45rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(33,197,181,.1); }
.stage-mode { padding: .32rem .7rem; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; }
.video-poster { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: #0d142c; }
.video-poster img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.poster-wash { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,34,.05), rgba(8,14,34,.4)); }
.play-button { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(89,89,235,.82); box-shadow: 0 14px 40px rgba(36,32,98,.5); transform: translate(-50%, -50%); backdrop-filter: blur(9px); }
.play-button i { width: 0; height: 0; margin-left: 5px; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 15px solid #fff; }
.poster-caption { position: absolute; left: 1rem; bottom: 1rem; display: flex; align-items: center; gap: .55rem; padding: .5rem .7rem; color: #d6ddeb; border-radius: .55rem; background: rgba(5,10,25,.72); backdrop-filter: blur(8px); font-size: .78rem; }
.poster-caption strong { color: #fff; }
.stage-foot { justify-content: space-between; border-top: 1px solid rgba(255,255,255,.08); }
.pulse { animation: pulse 1.6s infinite; }
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; width: min(100%, 1320px); margin-top: 96px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-proof div { display: grid; gap: .18rem; }
.hero-proof strong { font-family: "Manrope", sans-serif; font-size: 1rem; }
.hero-proof span { color: #7f8ba6; font-size: .84rem; }

.section { padding: 118px max(2rem, calc((100vw - 1320px)/2)); }
.section-heading { width: min(760px, 100%); margin: 0 auto 3rem; text-align: center; }
.section-heading h2, .demo-intro h2, .feedback h2 { margin-bottom: 1.2rem; font-size: clamp(2.4rem, 4vw, 4.5rem); }
.section-heading p, .demo-intro > p { color: var(--muted); font-size: 1.1rem; }
.section-heading .eyebrow { justify-content: center; }
.section-heading-left { margin-left: 0; text-align: left; color: #fff; }
.section-heading-left .eyebrow { justify-content: flex-start; }
.section-heading-left p { color: #aab4ca; }

.experience { background: #fff; }
.feature-ribbon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { position: relative; min-height: 330px; padding: 2rem; overflow: hidden; border: 1px solid var(--border); border-radius: 1.4rem; background: #f8f9fd; }
.feature-wide { grid-column: span 2; color: #fff; background: var(--navy-2); }
.feature-ai { color: #fff; background: linear-gradient(145deg, #584fe6, #746bf4); }
.feature-kicker { margin-bottom: 3.2rem; color: #56627c; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.feature-wide .feature-kicker, .feature-ai .feature-kicker { color: #adb8d0; }
.feature h3 { margin-bottom: .65rem; font-size: 1.55rem; }
.feature p { max-width: 480px; color: var(--muted); }
.feature-wide p, .feature-ai p { color: #b5bfd5; }
.flow-illustration { position: absolute; right: 4%; bottom: 15%; display: flex; align-items: center; width: 52%; }
.flow-card { position: relative; z-index: 1; padding: .8rem 1rem; border: 1px solid rgba(130,145,194,.28); border-radius: .7rem; background: linear-gradient(180deg, #eef0ff, #cfd3f7); color: #273052; font-size: .72rem; box-shadow: 0 8px 18px rgba(0,0,0,.2); white-space: nowrap; }
.flow-card.hot { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,111,125,.16); }
.flow-node { width: 13px; height: 13px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(33,197,181,.14); }
.flow-line { height: 3px; flex: 1; background: linear-gradient(90deg, var(--mint), var(--violet)); }
.token { position: absolute; z-index: 2; width: 8px; height: 8px; border: 1px solid #fff; border-radius: 50%; background: var(--amber); }
.t1 { left: 16%; }.t2 { left: 43%; background: var(--violet); }.t3 { left: 67%; background: var(--coral); }.t4 { left: 82%; background: var(--mint); }
.lens-stack { display: grid; gap: .55rem; margin-top: 2rem; }
.lens-stack span { padding: .8rem 1rem; border: 1px solid var(--border); border-radius: .7rem; background: #fff; color: #56627c; font-size: .82rem; }
.lens-stack .active { color: #fff; border-color: transparent; background: linear-gradient(90deg, #6967f3, #7c72f5); box-shadow: 0 9px 22px rgba(105,103,243,.25); }
.variant-lines { display: grid; gap: .55rem; margin-top: 2.6rem; }
.variant-lines span { height: 7px; border-radius: 99px; background: #e3e5ef; }
.variant-lines span:nth-child(1) { width: 90%; background: var(--violet); }.variant-lines span:nth-child(2) { width: 72%; background: var(--mint); }.variant-lines span:nth-child(3) { width: 47%; background: var(--amber); }.variant-lines span:nth-child(4) { width: 28%; background: var(--coral); }
.insight-chip { display: flex; gap: .75rem; margin-top: 2rem; padding: 1rem; border: 1px solid rgba(255,255,255,.18); border-radius: .9rem; background: rgba(255,255,255,.12); }
.insight-chip i { color: #fff3a4; font-style: normal; font-size: 1.2rem; }
.insight-chip span { display: grid; }.insight-chip small { color: #d4d8fa; margin-top: .2rem; }

.demo-section { background: #edf0f7; }
.demo-intro { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 4rem; margin-bottom: 2.5rem; }
.dashboard-shell { overflow: hidden; border: 1px solid rgba(29,41,76,.14); border-radius: 1.4rem; background: #fff; box-shadow: var(--shadow); }
.dashboard-bar { display: flex; align-items: center; gap: 1rem; min-height: 58px; padding: 0 1rem; border-bottom: 1px solid var(--border); color: var(--muted); font-size: .84rem; }
.browser-dots { display: flex; gap: .35rem; }.browser-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d7dae4; }.browser-dots i:nth-child(1){background:#ff7b86}.browser-dots i:nth-child(2){background:#ffc45e}.browser-dots i:nth-child(3){background:#46d3bd}
.fullscreen-button { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; padding: .5rem .7rem; color: #59657e; border: 0; border-radius: .5rem; background: transparent; cursor: pointer; }
.fullscreen-button:hover { background: #f0f2f8; }.fullscreen-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dashboard-frame { position: relative; min-height: 720px; background: #f7f8fc; }
.dashboard-frame iframe { display: none; width: 100%; min-height: 720px; border: 0; }
.dashboard-frame.has-embed iframe { display: block; }
.dashboard-frame.has-embed .dashboard-placeholder { display: none; }
.dashboard-placeholder { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; padding: 2rem; text-align: center; background: radial-gradient(circle at 50% 40%, #fff 0, #f7f8fc 60%); }
.dashboard-placeholder h3 { margin: 2rem 0 .5rem; font-size: 1.45rem; }.dashboard-placeholder p { max-width: 520px; color: var(--muted); }
.placeholder-orbit { position: relative; display: grid; place-items: center; width: 110px; height: 110px; border: 1px solid #d5d9f0; border-radius: 50%; }
.placeholder-orbit::before { content: ""; position: absolute; inset: 14px; border: 1px dashed #b5b9ed; border-radius: 50%; animation: spin 9s linear infinite; }
.placeholder-orbit i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); transform: translate(46px, -12px); box-shadow: 0 0 0 6px rgba(33,197,181,.12); }
.placeholder-orbit span { display: grid; place-items: center; width: 52px; height: 52px; color: #fff; border-radius: 16px; background: linear-gradient(135deg,var(--violet),#5559e9); font-family: "Manrope", sans-serif; font-weight: 800; }
.public-data-note { display: flex; align-items: flex-start; gap: .8rem; margin-top: 1rem; padding: 1rem 1.2rem; color: #657089; border-radius: .8rem; background: rgba(255,255,255,.75); font-size: .87rem; }.public-data-note p { margin: 0; }

.test-guide { color: #fff; background: var(--navy); }
.test-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 0; margin: 0; list-style: none; }
.test-steps li { min-height: 320px; padding: 2rem; border: 1px solid rgba(255,255,255,.1); border-radius: 1.3rem; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); }
.step-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 3.5rem; color: #b9b5ff; border-radius: 15px; background: rgba(111,105,246,.16); }
.step-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.test-steps small { color: var(--mint); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.test-steps h3 { margin: .4rem 0 .7rem; font-size: 1.35rem; }.test-steps p { color: #9fa9bf; }

.feedback { background: #fff; }
.feedback-panel { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 520px; overflow: hidden; border-radius: 1.6rem; color: #fff; background: linear-gradient(130deg, #111a3c, #303067); box-shadow: var(--shadow); }
.feedback-copy, .feedback-action { padding: clamp(2.5rem, 5vw, 5rem); }
.feedback-copy ul { display: grid; gap: .7rem; padding: 0; margin: 2rem 0 0; color: #bac3d7; list-style: none; }
.feedback-copy li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .7rem; border-radius: 50%; background: var(--mint); }
.feedback-action { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: linear-gradient(145deg, #7168f4, #5d58e8); }
.feedback-symbol { font-size: 2.4rem; }.feedback-action h3 { margin: 1.3rem 0 .6rem; font-size: 1.7rem; }.feedback-action p { color: #e0e2ff; }.feedback-action .button { margin: 1.4rem 0 1rem; }.feedback-action small { color: #d5d7f8; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.2rem max(2rem, calc((100vw - 1320px)/2)); color: #56627c; background: #fff; border-top: 1px solid var(--border); font-size: .82rem; }
.brand-footer { color: var(--ink); }.brand-footer .brand-mark { width: 36px; height: 36px; border-radius: 11px; }.brand-footer .brand-mark svg { width: 22px; }
footer p { margin: 0; } footer > div { display: flex; align-items: center; gap: 1.4rem; } footer button { padding: 0; color: inherit; border: 0; border-bottom: 1px solid #c6cbd6; background: transparent; cursor: pointer; }

.video-dialog { width: min(1120px, calc(100vw - 2rem)); padding: 0; overflow: visible; border: 0; border-radius: 1.2rem; background: #050816; box-shadow: 0 35px 100px rgba(0,0,0,.55); }
.video-dialog::backdrop { background: rgba(4,8,21,.82); backdrop-filter: blur(10px); }
.video-dialog video { display: block; width: 100%; border-radius: 1.2rem; }
.dialog-close { position: absolute; z-index: 3; right: -14px; top: -14px; display: grid; place-items: center; width: 38px; height: 38px; color: #fff; border: 2px solid #fff; border-radius: 50%; background: var(--ink); cursor: pointer; font-size: 1.5rem; }

.consent-banner { position: fixed; z-index: 100; left: 50%; bottom: 1rem; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: min(940px, calc(100% - 2rem)); padding: 1.1rem 1.2rem; border: 1px solid var(--border); border-radius: 1rem; background: rgba(255,255,255,.96); box-shadow: 0 20px 60px rgba(14,22,50,.22); backdrop-filter: blur(15px); }
.consent-banner[hidden] { display: none; }.consent-banner p { margin: .2rem 0 0; color: var(--muted); font-size: .85rem; }.consent-banner > div:last-child { display: flex; gap: .6rem; flex-shrink: 0; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease var(--delay, 0s), transform .7s cubic-bezier(.22,.8,.22,1) var(--delay, 0s); }
.reveal.in-view { opacity: 1; transform: none; }

@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(33,197,181,0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1080px) {
  .site-header nav { display: none; }
  .hero { padding-top: 150px; }
  .hero-copy { width: 65%; }
  .hero-stage { left: 62%; width: 58vw; opacity: .58; }
  .hero-proof { margin-top: 74px; }
  .feature-ribbon { grid-template-columns: repeat(2, 1fr); }.feature-wide { grid-column: span 2; }
  .dashboard-frame, .dashboard-frame iframe { min-height: 610px; }
}

@media (max-width: 760px) {
  .site-header { width: calc(100% - 1.5rem); height: 78px; }.site-header > .button { display: none; }
  .hero { min-height: auto; padding: 132px 1.25rem 54px; }
  .hero-copy { width: 100%; }.hero h1 { font-size: clamp(3.1rem, 15vw, 5rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .hero-stage { position: relative; inset: auto; width: 100%; margin-top: 3rem; opacity: 1; transform: none; }
  .stage-status { display: none; }
  .hero-proof { grid-template-columns: 1fr; margin-top: 2.5rem; gap: 1rem; }
  .section { padding: 80px 1.25rem; }
  .feature-ribbon, .test-steps, .demo-intro, .feedback-panel { grid-template-columns: 1fr; }
  .feature-wide { grid-column: span 1; min-height: 430px; }.flow-illustration { left: 5%; right: auto; bottom: 12%; width: 90%; transform: scale(.83); transform-origin: left center; }
  .demo-intro { gap: 1rem; }.dashboard-frame, .dashboard-frame iframe { min-height: 520px; }
  .test-steps li { min-height: 280px; }.step-icon { margin-bottom: 2.4rem; }
  footer { align-items: flex-start; flex-direction: column; }
  .consent-banner { align-items: stretch; flex-direction: column; gap: 1rem; }.consent-banner > div:last-child { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Feedback form -------------------------------------------------------- */
.feedback-action { align-items: stretch; }
.feedback-form, .form-success {
  display: grid; gap: 1.05rem; width: 100%; padding: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--ink); background: #fff; border-radius: 1.2rem; box-shadow: 0 18px 50px rgba(10, 16, 44, .28);
}
.feedback-form[hidden], .form-success[hidden] { display: none; }
.feedback-form h3, .form-success h3 { margin: 0; font-size: 1.55rem; color: var(--ink); }
.feedback-form p, .form-success p { margin: 0; color: var(--muted); }
.form-lead { font-size: .95rem; }
.rating { margin: 0; padding: 0; border: 0; }
.rating legend { padding: 0; margin-bottom: .7rem; font-weight: 700; }
.rating .req { margin-left: .4rem; font-size: .78rem; font-weight: 600; color: #4b44c9; }
.rating-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.rating-scale input { position: absolute; opacity: 0; pointer-events: none; }
.rating-scale label {
  display: grid; justify-items: center; gap: .1rem; padding: .7rem .25rem; text-align: center; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: .85rem; background: var(--paper); transition: border-color .15s, background .15s;
}
.rating-scale label span { font: 800 1.25rem "Manrope", sans-serif; }
.rating-scale label small { font-size: .68rem; color: var(--muted); }
.rating-scale label:hover { border-color: #6967f3; }
.rating-scale input:checked + label { color: #fff; border-color: #4b44c9; background: #4b44c9; }
.rating-scale input:checked + label small { color: #e8e8ff; }
.rating-scale input:focus-visible + label { outline: 3px solid #121a33; outline-offset: 3px; }
.field { display: grid; gap: .4rem; font-size: .92rem; font-weight: 700; }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .85rem; font: inherit; font-weight: 400; color: var(--ink);
  border: 1.5px solid #c9d0e0; border-radius: .7rem; background: #fff;
}
.field textarea { min-height: 4.6rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible,
.check input:focus-visible, .feedback-form .button:focus-visible { outline: 3px solid #121a33; outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: .65rem; font-size: .92rem; }
.check input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: #4b44c9; }
.has-error input, .has-error select, .has-error textarea, .rating.has-error .rating-scale label, .check.has-error { border-color: #c0213f; }
.check.has-error { padding: .3rem; border: 1.5px solid #c0213f; border-radius: .6rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 0; }
.form-error { padding: .75rem .9rem; font-weight: 600; color: #8a1230 !important; border-radius: .7rem; background: #ffeef1; }
.form-error[hidden] { display: none; }
.form-note { font-size: .8rem; }
.form-note a, .form-alt a { color: #4b44c9; text-decoration: underline; }
.feedback-form .button[disabled] { opacity: .7; cursor: progress; }
.form-success { justify-items: start; }
.form-success .feedback-symbol { color: #4b44c9; }
.form-success:focus { outline: none; }
.form-unavailable, .form-alt { margin: 1rem 0 0; color: #fff; font-size: .9rem; }
.form-alt a { color: #fff; }

/* ---- Privacy / 404 pages -------------------------------------------------------- */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(6rem, 12vw, 8rem) 1.4rem 5rem; }
.doc h1 { margin-bottom: 1rem; font-size: clamp(2rem, 5vw, 3rem); }
.doc h2 { margin: 2.2rem 0 .6rem; font-size: 1.35rem; }
.doc p, .doc li { color: #3d4966; line-height: 1.7; }
.doc ul { padding-left: 1.3rem; }
.doc a { color: #4b44c9; text-decoration: underline; }
.doc .updated { color: var(--muted); font-size: .9rem; }
.doc table { width: 100%; margin: 1rem 0; border-collapse: collapse; font-size: .92rem; }
.doc th, .doc td { padding: .6rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.doc th { color: var(--ink); }
.doc-header { position: absolute; z-index: 5; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; }
.doc-header .brand { color: var(--ink); }
.page-doc { background: var(--paper); }
footer a { color: inherit; }
@media (max-width: 560px) {
  .rating-scale { grid-template-columns: repeat(5, 1fr); gap: .35rem; }
  .rating-scale label small { display: none; }
}

/* Contrast: small text on light backgrounds must reach 4.5:1 (WCAG AA). */
.site-header.is-scrolled .brand small, .brand-footer small { color: var(--muted); }
.doc-header .brand small { color: var(--muted); }
.doc em { color: inherit; font-style: italic; }

/* Live Power BI embed: shape the frame like Power BI's "1,024 x 612" publish size (a 16:9 report
   canvas plus its 36px footer bar), so the report fills the frame with no empty bars. On narrow
   screens a 16:9 box would be too small to read, so phones keep the tall frame (use Fullscreen). */
@media (min-width: 901px) {
  .dashboard-frame.has-embed { min-height: 0; }
  .dashboard-frame.has-embed iframe { min-height: 0; height: auto; aspect-ratio: 1024 / 612; }
}

/* Large screens: let the preview use more of the window (up to 1600px wide) so Power BI scales the
   report up instead of drawing it at roughly 1:1. The heading above stays at the normal page width. */
@media (min-width: 1360px) {
  .demo-section { padding-inline: max(1.25rem, calc((100vw - 1600px) / 2)); }
  .demo-intro { width: min(1320px, 100%); margin-inline: auto; margin-bottom: 2.5rem; }
}

/* Fullscreen: the panel fills the screen and the report takes all the space under the title bar. */
.dashboard-shell:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; }
.dashboard-shell:fullscreen .dashboard-frame { flex: 1 1 auto; min-height: 0; }
.dashboard-shell:fullscreen .dashboard-frame.has-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; }
.dashboard-shell:fullscreen .embed-hint { display: none; }

.embed-hint { margin: 0; padding: .7rem 1rem; border-top: 1px solid var(--border); color: var(--muted); background: #fff; font-size: .84rem; text-align: center; }
.embed-hint strong { color: var(--ink); }
