/* Tokens mirror the app theme (app/dependencies/ff_theme/lib/flutter_flow/flutter_flow_theme.dart). */
:root {
  --bg-dark: #0B0B0C;
  --bg-light: #F4F3EF;
  --fg-dark: #F5F5F5;
  --fg-light: #101518;
  --muted-dark: rgba(245, 245, 245, 0.62);
  --muted-light: #57636C;
  --app-bg: #F5F5F5;
  --app-surface: #FFFFFF;
  --app-border: #E8E8E8;
  --app-text: #101518;
  --app-text-2: #57636C;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1120px;
  --nav-fg: #101518;
  --nav-inv: #F4F3EF;
  --land: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; } /* keeps a focused or targeted element clear of the fixed nav */
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--fg-dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.dark { --line: rgba(255, 255, 255, .14); --muted: var(--muted-dark); background: var(--bg-dark); color: var(--fg-dark); }
.light { --line: rgba(16, 21, 24, .14); --muted: var(--muted-light); background: var(--bg-light); color: var(--fg-light); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 999px; border: 0;
  background: #F5F5F5; color: #0B0B0C; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 255, 255, .18); }
/* currentColor is the button's own text colour, which can match the page behind it: use a two-tone ring that shows on any background. */
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 0; box-shadow: 0 0 0 4px #0B0B0C; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 54px; padding: 0 32px; font-size: 17px; }
.link {
  background: none; border: 0; padding: 0; font-weight: 600; font-size: 16px;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 var(--gutter);
  color: var(--nav-fg); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
.nav.glassy {
  background: rgba(11, 11, 12, .55); color: var(--fg-dark);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.02em; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 29%; background: #0B0B0C;
  display: grid; place-items: center; border: 1px solid rgba(128, 128, 128, .35);
  opacity: calc(1 - var(--land)); transition: opacity .2s;
}
.brand-mark i { width: 30%; aspect-ratio: 1; border-radius: 50%; background: #F5F5F5; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; text-decoration: none; opacity: .75; cursor: pointer; }
.nav-login:hover { opacity: 1; }
.lang {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 40px;
  border: 1px solid currentColor; border-radius: 999px; text-decoration: none; line-height: 1;
  height: 28px; padding: 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; opacity: .7;
}
.nav.glassy.on-light {
  background: rgba(244, 243, 239, .6); color: var(--fg-light); border-bottom-color: rgba(16, 21, 24, .08);
}
.nav.glassy.on-light .btn { background: #101518; color: #fff; }
.nav .btn { background: var(--nav-fg); color: var(--nav-inv); }
.nav.glassy .btn { background: #F5F5F5; color: #0B0B0C; }

/* ---------- hero ---------- */
.hero { position: relative; height: 275vh; background: var(--bg-light); }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-copy {
  position: absolute; left: 0; right: 0; top: 17%; text-align: center; padding: 0 var(--gutter);
  color: var(--hero-fg, #101518); will-change: opacity;
}
.hero-copy h1 { font-size: clamp(34px, 6.2vw, 76px); max-width: 14ch; margin: 0 auto; }
.hero-copy p { margin-top: 18px; font-size: clamp(16px, 1.6vw, 20px); opacity: .62; }
.hero-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hero-fg, #101518); opacity: 0; transition: opacity .6s; pointer-events: none;
}
.hero-cue.on { opacity: .6; }
.hero-cue i { width: 1px; height: 28px; background: currentColor; animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero-end {
  position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%);
  width: min(92vw, 560px); display: flex; flex-direction: column; align-items: center; gap: 22px;
  text-align: center; color: var(--hero-fg, #101518); opacity: 0; pointer-events: none;
  visibility: hidden; transition: opacity .3s, visibility 0s .3s; /* not focusable while it is not shown */
}
.hero-end.on { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .5s; }
.hero-end .btn:hover { transform: translateY(-1px); }
.hero-end p { font-size: 14px; opacity: .72; text-wrap: balance; }

/* ---------- shared section type ---------- */
section:not(.hero) { padding: clamp(80px, 12vw, 160px) 0; }
.eyebrow { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; margin-bottom: 22px; }
h2 { font-size: clamp(34px, 5.4vw, 68px); max-width: 16ch; }
.lede { margin-top: 20px; font-size: clamp(17px, 1.7vw, 21px); opacity: .65; max-width: 40ch; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- one layer ---------- */
.layers { list-style: none; margin: clamp(40px, 6vw, 80px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .5em; font-size: clamp(26px, 4.6vw, 60px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.15; }
.layers li:not(:last-child)::after { content: "·"; margin-left: .5em; color: var(--muted-dark); }
.topic { margin-top: clamp(32px, 5vw, 56px); border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; background: rgba(255, 255, 255, .03); padding: clamp(18px, 2.4vw, 28px); }
.sectors { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; }
.sector { font: inherit; font-size: 14px; font-weight: 500; color: inherit; background: transparent; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 6px 16px; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.sector:hover { border-color: rgba(255, 255, 255, .6); }
.sector[aria-selected="true"] { background: var(--fg-dark); color: var(--bg-dark); border-color: var(--fg-dark); }
.sector:focus-visible { outline: 2px solid var(--fg-dark); outline-offset: 3px; }
.topic-h { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.topic-h span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); }
.topic-h b { font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.03em; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl-i { position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 18px 0 18px 28px; transition-delay: calc(var(--i) * 90ms); }
/* One thread through the entries: a dot per record, a line down to the next. */
.tl-i::before { content: ""; position: absolute; left: 0; top: 24px; width: 9px; height: 9px; border-radius: 50%; background: var(--fg-dark); }
.tl-i::after { content: ""; position: absolute; left: 4px; top: 38px; bottom: -22px; width: 1px; background: rgba(255, 255, 255, .28); }
.tl-i:last-child::after { display: none; }
.tl-i:last-child { padding-bottom: 0; }
.tl-i > time { font-size: 14px; color: var(--muted-dark); font-variant-numeric: tabular-nums; }
.tl-i div { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.tl-l { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 2px 9px; margin-bottom: 4px; }
.tl-m { font-size: 13px; color: var(--muted-dark); }
.tl-i b { font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.tl-s { font-size: 13px; color: var(--muted-dark); }
.note-src { margin-top: 16px; font-size: 13px; color: var(--muted-dark); }

/* ---------- works for you ---------- */
.works-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.steps { list-style: none; margin: 40px 0; padding: 0; display: grid; gap: 22px; }
.steps li { display: grid; gap: 2px; padding-left: 20px; border-left: 2px solid var(--fg-light); }
.steps b { font-size: 22px; letter-spacing: -0.02em; }
.steps span { color: var(--muted-light); }

/* The window mirrors the app's dashboard: same tokens, radii and type. */
.app-window {
  display: flex; background: var(--app-bg); color: var(--app-text); border-radius: 20px; overflow: hidden;
  border: 1px solid var(--app-border); box-shadow: 0 40px 80px rgba(16, 21, 24, .18); font-size: 12px; line-height: 1.35;
  aspect-ratio: 800 / 560;
}
.app-rail { width: 9%; min-width: 44px; background: var(--app-bg); border-right: 1px solid var(--app-border); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 0; }
.app-logo { width: 28px; height: 28px; border-radius: 29%; background: #000; display: grid; place-items: center; margin-bottom: 8px; }
.app-logo i { width: 30%; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.rail-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.rail-ico.on { background: #E8E8E8; }
.rail-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--app-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail-sep { width: 22px; height: 1px; background: var(--app-border); }
.app-main { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.app-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { display: flex; gap: 8px; align-items: center; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 12px; padding: 10px; min-width: 0; }
.stat-ico { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--app-border); display: grid; place-items: center; }
.stat-ico svg { width: 15px; height: 15px; fill: none; stroke: var(--app-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stat div { min-width: 0; }
.stat small { display: block; font-size: 9px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat em { display: block; font-style: normal; font-size: 8.5px; color: var(--app-text-2); }
.app-card { flex: 1; min-height: 0; overflow: hidden; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.app-card-h { display: flex; justify-content: space-between; align-items: center; font-size: 18px; margin-bottom: 4px; }
.seg { display: flex; gap: 5px; }
.seg i { font-style: normal; font-size: 9px; border: 1px solid var(--app-text); border-radius: 7px; padding: 3px 8px; background: #fff; }
.ev { background: var(--app-bg); border: 1px solid var(--app-border); border-radius: 10px; padding: 8px 10px; }
.ev-d { font-size: 10.5px; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--app-border); }
.ev-t { font-size: 11.5px; font-weight: 500; }
.ev-m { font-size: 11px; color: var(--app-text-2); margin-top: 2px; }

/* ---------- ask (hidden until real recorded answers exist) ---------- */
.ask-card { margin-top: 48px; max-width: 760px; display: grid; gap: 20px; }
.ask-card small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .5; margin-bottom: 6px; }
.ask-q span { font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.ask-a { font-size: 18px; color: rgba(245, 245, 245, .85); min-height: 3em; }
.ask-s span { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.ask-s a, .ask-s i { font-style: normal; font-size: 13px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 4px 12px; text-decoration: none; }

/* ---------- europe ---------- */
.europe { height: 260vh; padding: 0; position: relative; }
.eu-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#eu-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.eu-copy {
  position: absolute; left: var(--gutter); top: clamp(96px, 17vh, 180px); bottom: clamp(32px, 7vh, 80px);
  width: min(44%, 520px); display: flex; flex-direction: column; justify-content: space-between; pointer-events: none;
}
.eu-copy h2 { max-width: 9ch; font-size: clamp(36px, 4.6vw, 72px); }
.eu-to { opacity: 0; transition: opacity .5s; }
.eu-to.on { opacity: 1; }
.eu-end { opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s; max-width: 46ch; }
.eu-end.on { opacity: 1; transform: none; }
.eu-close { font-size: clamp(18px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
.eu-sub { margin-top: 8px; color: var(--muted-dark); }

/* ---------- who it is for ---------- */
.who { padding-top: 0; }
.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: clamp(24px, 3.5vw, 48px); margin-top: clamp(40px, 6vw, 80px); }
.screen { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-row: span 2; grid-template-rows: subgrid; row-gap: 20px; min-width: 0; } /* subgrid keeps both panes level */
.screen figcaption { display: grid; gap: 8px; padding-top: 24px; border-top: 2px solid var(--fg-light); }
.screen h3 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.screen .roles { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-light); }
.screen figcaption p { font-size: clamp(15px, 1.4vw, 17px); color: var(--muted-light); }
.who .note-src { color: var(--muted-light); }

/* App list screens (page_deputados / page_iniciativas, deputado_list_item / iniciativa_list_item widgets). */
.app-pane { background: var(--app-bg); color: var(--app-text); border: 1px solid var(--app-border); border-radius: 16px; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; font-size: 12px; line-height: 1.35; box-shadow: 0 24px 56px rgba(16, 21, 24, .12); }
.pane-bar { display: flex; gap: 8px; }
.pane-search { flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; padding: 0 12px; background: #fff; border: 1px solid var(--app-border); border-radius: 8px; font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pane-search em { font-style: normal; color: var(--app-text-2); }
.pane-btn { flex: none; height: 40px; display: flex; align-items: center; padding: 0 12px; background: var(--app-text); color: #fff; border-radius: 8px; white-space: nowrap; }
.li-list { display: grid; gap: 8px; }
.li { position: relative; display: flex; align-items: center; gap: 12px; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 10px; padding: 10px 12px 10px 16px; overflow: hidden; }
.li-bar { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--p); }
.li-ph { flex: none; width: 40px; height: 50px; border-radius: 6px; background: var(--app-bg); border: 1px solid var(--app-border); display: grid; place-items: center; font-weight: 500; color: var(--app-text-2); }
.li-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.li-t b { font-size: 14px; font-weight: 500; }
.li-t b.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.li-t span { font-weight: 300; }
.li-star { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--app-text-2); stroke-width: 1.6; stroke-linejoin: round; }
.li-e { flex: none; width: 128px; display: grid; gap: 4px; }
.li-e b { font-size: 12px; font-weight: 500; }
.li-e time { font-weight: 300; }
.strip { display: flex; gap: 3px; }
.strip i { width: 14px; height: 4px; border-radius: 2px; background: var(--app-border); }
/* Party colours from cores_partido.dart. */
/* Deputado profile: mirrors the app's subpage (header chips, facts, stat tiles, activity tabs and rows). */
.dep-in { display: grid; gap: 12px; }
.dep-head { display: flex; gap: 14px; align-items: center; }
.dep-av { flex: none; width: 64px; height: 64px; border-radius: 16px; background: rgba(0, 118, 181, .12); color: #005F92; display: grid; place-items: center; font-size: 20px; font-weight: 600; }
.dep-id { display: grid; gap: 6px; min-width: 0; }
.dep-id b { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.dep-id small { font-size: 12px; color: var(--app-text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 8px; background: var(--app-border); color: var(--app-text-2); font-size: 12px; font-weight: 600; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.c-party { background: rgba(0, 118, 181, .12); color: #005F92; }
.chip.c-ok { background: #E4F5F1; color: #0F6B5F; }
.chip.c-ok i { background: #2FAE73; }
.dep-facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 12px; padding: 10px 12px; }
.dep-facts dt { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--app-text-2); }
.dep-facts dd { margin: 2px 0 0; font-weight: 500; }
.dep-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dep-stats div { background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 12px; padding: 10px; display: grid; gap: 2px; }
.dep-stats b { font-size: 20px; font-weight: 700; line-height: 1.1; }
.dep-stats span { color: var(--app-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 11px; background: var(--app-border); justify-self: start; max-width: 100%; }
.seg span { padding: 6px 8px; border-radius: 8px; color: var(--app-text-2); font-weight: 500; white-space: nowrap; }
.seg .on { background: var(--app-surface); color: var(--app-text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.dep-rows { background: var(--app-surface); border: 1px solid var(--app-border); border-radius: 12px; padding: 0 12px; }
.dep-r { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.dep-r + .dep-r { border-top: 1px solid var(--app-border); }
.dep-r > span { flex: none; width: 36px; color: var(--app-text-2); }
.dep-r > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dep-r b { font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dep-r > div span { color: var(--app-text-2); font-weight: 300; }
.dep-chev { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--app-text-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.p-l { --p: #5C711B; } .p-cdspp { --p: #0076B5; } .p-ch { --p: #004A6E; } .p-pan { --p: #D1E47C; }

/* ---------- security ---------- */
.security { padding-bottom: clamp(56px, 8vw, 96px); }
.pillars { list-style: none; margin: clamp(48px, 7vw, 96px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.pillars li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: clamp(16px, 2vw, 26px) 0; border-bottom: 1px solid var(--line);
}
.pillars b { font-size: clamp(22px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.pillars span { font-size: clamp(14px, 1.4vw, 18px); color: var(--muted); text-align: right; max-width: 34ch; }

/* ---------- how it starts ---------- */
.start { padding-bottom: 0; }
.start-steps { list-style: none; margin: clamp(48px, 7vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.start-steps li { position: relative; display: grid; gap: 10px; align-content: start; padding-top: 32px; transition-delay: calc(var(--i) * 120ms); }
.start-steps li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.1s ease calc(var(--i) * 250ms); }
.start-steps li.in::after { transform: none; }
.start-steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.step-n { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.start-steps b { font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.start-steps li > span:last-child { font-size: clamp(15px, 1.4vw, 17px); color: var(--muted); max-width: 34ch; }

/* ---------- FAQ ---------- */
.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq h2 { font-size: clamp(30px, 4vw, 52px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: clamp(17px, 1.7vw, 21px); font-weight: 500; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 300; opacity: .6; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 26px 0; max-width: 58ch; color: var(--muted); }

/* ---------- close ---------- */
.close { text-align: center; }
.close h2, .close .lede { margin-left: auto; margin-right: auto; }
.close .btn { margin-top: 36px; }

/* ---------- footer ---------- */
.foot { padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: var(--muted-dark); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-in > span:first-child { max-width: 72ch; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { text-decoration: none; cursor: pointer; }
.foot-links a:hover { color: var(--fg-dark); }

/* ---------- forms (HubSpot, see js/forms.js): dark sections by default, the glass popup overrides the tokens ---------- */
.form { --f-fg: var(--fg-dark); --f-muted: var(--muted-dark); --f-line: rgba(255, 255, 255, .32); display: grid; gap: 14px; }
.form[hidden] { display: none; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--f-muted); }
.form input, .form textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; font-size: 15px; color: var(--f-fg);
  background: transparent; border: 1px solid var(--f-line); border-radius: 10px;
}
.form textarea { resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--f-fg); outline-offset: 2px; }
.form .btn { justify-self: start; }
.form .btn:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.form-note, .form-msg { font-size: 12.5px; color: var(--f-muted); }
.form-note a { text-decoration: underline; cursor: pointer; }
.form-msg { color: var(--f-fg); font-size: 14px; }
.form-msg:empty { display: none; }
.form.sent > :not(.form-msg) { display: none; }

.foot-news { display: flex; justify-content: space-between; align-items: start; gap: 32px 56px; flex-wrap: wrap; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot-news > div { max-width: 38ch; }
.foot-news b { display: block; margin-bottom: 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg-dark); }
.foot-news .form { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(560px, 100%); align-items: end; }
.foot-news .form .btn { grid-column: 1 / -1; }
.foot-news .form-note, .foot-news .form-msg { grid-column: 1 / -1; }

.glass .form { --f-fg: var(--g-text); --f-muted: var(--g-text-2); --f-line: color-mix(in srgb, var(--g-text) 30%, transparent); padding: 12px 24px 4px; }
.glass .form p { padding: 0; }
.demo-alt { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.demo-alt > span { display: none; font-size: 14px; color: var(--g-text-2); }
.glass:has(.form:not([hidden])) .demo-alt { padding-top: 8px; }
.glass:has(.form:not([hidden])) .demo-alt > span { display: inline; }
.glass:has(.form:not([hidden])) .demo-alt .btn { height: auto; padding: 0; background: none; color: var(--g-text); text-decoration: underline; font-weight: 500; }
.glass:has(.form:not([hidden])) .demo-alt .btn:hover { transform: none; box-shadow: none; }

/* Glass notifications land on the dashboard as the visitor scrolls (main.js sets .in). Web only: they would crowd the dashboard on tablet and phone. */
.app-stage { position: relative; container-type: inline-size; }
.note.glass { position: absolute; width: min(300px, 62%); display: grid; gap: 2px; padding: 14px 16px; font-size: 13px; line-height: 1.35;
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .5s ease, transform .5s ease; animation: none; pointer-events: none; }
.note.in { opacity: 1; transform: none; }
.note-tag { justify-self: start; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: #000; color: #fff; border-radius: 999px; padding: 2px 8px; margin-bottom: 6px; }
.note b { font-weight: 600; font-size: 14px; }
.note span:last-child { color: var(--app-text-2); }
.note[data-step="0"] { top: -6%; right: -4%; }
.note[data-step="1"] { top: 38%; left: -8%; }
.note[data-step="2"] { bottom: -7%; right: -2%; }

/* ---------- glass popup: the app's PlenarioGlassSurface + PlenarioPopup (plenario_side_panel.dart, plenario_popup.dart) ----------
   Light values are the app's light theme, [data-theme="dark"] its dark theme. */
.glass-barrier { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: transparent; }
.glass-barrier[hidden] { display: none; }
.glass {
  --g-surface: 255, 255, 255; --g-text: #212529; --g-text-2: #57636C;
  --g-sheen: .30; --g-edge: rgba(255, 255, 255, .55); --g-shadow: rgba(0, 0, 0, .16);
  width: min(480px, 100%); color: var(--g-text); border-radius: 20px; padding: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, var(--g-sheen)), rgba(255, 255, 255, 0)), rgba(var(--g-surface), .95);
  border: 1px solid var(--g-edge);
  box-shadow: 0 16px 40px var(--g-shadow);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  animation: glass-in .16s ease-out;
}
.glass[data-theme="dark"] {
  --g-surface: 30, 30, 30; --g-text: #F5F5F5; --g-text-2: #9CA3AA;
  --g-sheen: .08; --g-edge: rgba(255, 255, 255, .14); --g-shadow: rgba(0, 0, 0, .5);
}
@keyframes glass-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.glass:focus { outline: none; }
.glass-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 14px 8px 24px; }
.glass h2 { font-size: 18px; font-weight: 500; letter-spacing: 0; max-width: none; }
.glass p { color: var(--g-text-2); font-size: 15px; padding: 0 24px; }
.glass-foot { padding: 24px 24px 20px; }
.glass .btn { background: var(--g-text); color: rgb(var(--g-surface)); }
.glass .btn:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.icon-btn { width: 32px; height: 32px; border: 0; border-radius: 10px; background: none; display: grid; place-items: center; transition: background .12s; }
.icon-btn:hover { background: color-mix(in srgb, var(--g-text) 8%, transparent); }
.icon-btn:focus-visible { outline: 2px solid var(--g-text); outline-offset: 0; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--g-text); stroke-width: 2; stroke-linecap: round; }
@media (prefers-contrast: more) {
  .glass { background: rgb(var(--g-surface)); border-color: color-mix(in srgb, var(--g-text) 60%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .note.glass { display: none; }
}

@media (max-width: 820px) {
  .start-steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .foot-news .form { grid-template-columns: minmax(0, 1fr); }
  .works-grid { grid-template-columns: 1fr; }
  .nav-login { display: none; }
  .pillars li { flex-direction: column; gap: 6px; }
  .tl-i { grid-template-columns: 1fr; gap: 6px; }
  .sectors { gap: 6px; }
  .li { flex-wrap: wrap; }
  .li-e { width: 100%; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; }
  .dep-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dep-facts { grid-template-columns: 1fr 1fr; }
  .pillars span { text-align: left; }
  .screens, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .screens { row-gap: 48px; }
  .screen { grid-row: auto; grid-template-rows: none; }
  .faq details p { padding-right: 0; }
  .eu-copy { width: auto; right: var(--gutter); top: auto; gap: 24px; }
  .eu-copy h2 { max-width: none; }
}

/* The window follows its own width, not the viewport's: the two-column layouts leave it narrow well above 820px. */
@container (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .app-window { aspect-ratio: auto; min-height: 420px; }
  .app-rail { display: none; }
}

/* ---------- reduced motion: static end frames ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .start-steps li::after { transform: none; transition: none; }
  .hero, .europe { height: auto; }
  .hero-stage, .eu-stage { position: relative; height: 100vh; height: 100svh; }
  .hero-cue { display: none; }
  .glass { animation: none; }
  .note.glass { opacity: 1; transform: none; transition: none; }
}
