/* Base layout + brand motifs. Light, flat, white/cool-grey base. */
*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute must always win over component display rules
   (e.g. .slide { display: grid } would otherwise show every slide at once). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--body);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-ink); }
:focus-visible { outline: 3px solid var(--orange-ink); outline-offset: 3px; border-radius: 4px; }
/* On brand planes an orange ring disappears (1.1:1 on blue): use white (3.5:1). */
.plane :focus-visible, .stage :focus-visible, .ask__head :focus-visible { outline-color: var(--white); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
#content { display: block; height: 0; outline: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Topbar ─────────────────────────────────────────────── */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar__inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.topbar__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.topbar__logo img { height: 34px; width: auto; }
.topbar__sub { font-weight: 600; color: var(--muted); font-size: 0.875rem; }
.topbar__spacer { flex: 1; }
.topbar__nav { display: flex; gap: 18px; align-items: center; }
.topbar__nav a { color: var(--body); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.topbar__nav a:hover, .topbar__nav a[aria-current="page"] { color: var(--blue-ink); }
.pill-demo {
  background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 0.6875rem;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
}
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-toggle a { padding: 4px 10px; font-size: 0.8125rem; font-weight: 700; text-decoration: none; color: var(--muted); }
.lang-toggle a[aria-current="true"] { background: var(--blue); color: var(--white); }
@media (max-width: 760px) {
  .topbar__sub, .topbar__nav .nav-link { display: none; }
  .topbar__logo img { height: 28px; }
}

/* ── Footer ─────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); background: var(--grey-cool); font-size: 0.875rem; color: var(--muted); }
.footer__inner { display: flex; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.footer__demo { font-weight: 700; color: var(--ink); }
.footer__logo { height: 22px; width: auto; margin-left: auto; }

/* ── Brand motifs ───────────────────────────────────────── */
.kicker {
  color: var(--orange-ink); font-weight: 800; font-size: var(--fs-kicker);
  letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 10px;
}
.rule { display: block; width: var(--rule-w); height: var(--rule-h); background: var(--blue); border: 0; margin: 0 0 18px; }
.rule--white { background: var(--white); }
.rule--yellow { background: var(--yellow); }
.headline { font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; margin: 0; font-size: var(--fs-h1); }
.headline span { display: block; color: var(--blue); }
.headline span:nth-child(2) { color: var(--blue-60); }
.section-title { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; color: var(--blue); margin: 0 0 16px; }
.lede { font-size: 1.1875rem; color: var(--body); max-width: 62ch; }
.muted { color: var(--muted); }

/* Flat colour planes: white text, yellow accents */
.plane { color: var(--white); }
.plane--blue { background: var(--blue); }
.plane--orange { background: var(--orange); }
.plane--green { background: var(--green); }
.plane .accent { color: var(--yellow); }

/* lowercase "esperto" + rule + statement */
.esperto-stack { text-transform: lowercase; }
.esperto-stack__word { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; margin: 0 0 10px; }
.esperto-stack__statement { font-weight: 800; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.05; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: 0.9375rem;
  padding: 11px 18px; border-radius: 999px; border: 2px solid var(--blue); background: var(--blue); color: var(--white);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.btn--ghost { background: transparent; color: var(--blue-ink); }
.btn--ghost:hover { background: var(--blue-20); color: var(--blue-ink); }
.btn--on-blue { background: var(--white); color: var(--blue-ink); border-color: var(--white); }

/* Synthetic / AI / private markers */
.tag { display: inline-block; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; }
.tag--synthetic { background: var(--grey-10); color: var(--ink); }
.tag--ai { background: var(--blue-20); color: var(--blue-ink); }
.tag--private { background: #fde3d6; color: var(--orange-ink); }

/* ── Login ──────────────────────────────────────────────── */
.login { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 60px); }
.login__plane { display: flex; flex-direction: column; justify-content: flex-end; padding: var(--gutter); }
.login__form { display: flex; flex-direction: column; justify-content: center; padding: var(--gutter); max-width: 440px; }
.login__form img { height: 40px; width: auto; margin-bottom: 40px; }
.login__form input {
  font: inherit; padding: 13px 16px; border-radius: var(--radius); border: 1.5px solid var(--line); margin: 16px 0 12px; width: 100%;
}
.login__form input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-20); }
.error { color: var(--orange-ink); font-weight: 600; }
@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; }
  .login__plane { min-height: 38vh; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pill-demo--pilot { background: var(--orange-ink); color: var(--white); }
