/* Citizens' portal concept for Bosnia and Herzegovina — static prototype, powered by Outlearn.
   Fonts: Newsreader (display serif) and the system Helvetica Neue. */

:root {
  --ink: #000c1f;                 /* blue-900, text primary */
  --ink-65: #000c1fa6;            /* text secondary */
  --ink-45: #000c1f73;            /* text tertiary */
  --ink-10: #000c1f1a;
  --ink-5: #000c1f0d;             /* border quaternary */
  --navy: #001489;                /* BiH flag blue (Pantone Reflex Blue), primary buttons */
  --gold: #FFCD00;                /* BiH flag yellow (Pantone 116) */
  --blue: #1b51ff;                /* blue-300 */
  --grey-50: #f7f7f7;
  --grey-200: #e3e4e6;
  --lock: #e6e8ea;
  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 87rem;
  --r-32: 38px; --r-40: 48px;     /* radius × squircle corner-scale 1.194 */
  --shadow-composer: 0 4px 16px 0 #010e2414;
  --shadow-el-1: 0 10px 40px 0 #010e2414;
  --shadow-toast: 0 8px 8px #0000001a, 0 28px 14px #00000017, 0 64px 19px #0000000d, 0 114px 23px #00000005;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.5 var(--sans); letter-spacing: -.03em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 200; background: #fff; border-radius: 40px; padding: 10px 16px; transform: translateY(-300%); }
.skip:focus { transform: none; }
.skip:not(:focus) { pointer-events: none; } /* the landing-out animation overrides its transform, so off-screen isn't guaranteed */
.serif { font-family: var(--serif); font-variation-settings: "opsz" 72; font-feature-settings: "liga" 1, "clig" 1; font-weight: 400; }

/* ---------- page entrance ---------- */
@keyframes site-hero-enter { from { opacity: 0; filter: blur(8px); transform: translateY(8px); } }
@keyframes site-hero-fade { from { opacity: 0; } }
[data-enter] { animation: site-hero-fade .85s ease .06s backwards; }
[data-enter="h"] { animation: site-hero-enter .9s ease backwards; }
[data-enter="1"] { animation-delay: .22s; } [data-enter="2"] { animation-delay: .4s; } [data-enter="3"] { animation-delay: .56s; } [data-enter="4"] { animation-delay: .32s; }

/* ---------- top line ---------- */
.topline { display: flex; justify-content: center; align-items: center; min-height: 40px; padding: 12px 16px; font-size: 12px; line-height: 1; color: var(--ink-65); }
.topline button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; color: inherit; padding: 0; border-radius: 999px; }
.topline button:hover { color: var(--ink); }
.topline svg { width: 16px; height: 16px; color: var(--ink-45); }
.topline-pop { max-width: 600px; margin: -4px auto 12px; padding: 0 16px; font-size: 13px; line-height: 1.5; color: var(--ink-65); text-align: center; display: none; }
.topline-pop.open { display: block; }

/* ---------- hero (the large inset card) ---------- */
.hero-wrap { position: relative; margin: 0 32px; }
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: var(--r-40); padding: 160px 32px 40px; min-height: calc(100svh - 56px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: var(--r-40); background: var(--grey-50); }
.hero-bg .wash { position: absolute; top: -16%; left: -12%; width: 124%; height: 132%; opacity: .1; background-size: cover; background-position: center; filter: blur(60px) saturate(.6); }
.site-head { position: absolute; top: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 24px; }
.home-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); width: max-content; border-radius: 8px; }
.home-link .flag { width: 36px; height: 18px; border-radius: 2px; box-shadow: 0 0 0 1px var(--ink-5); }
.home-link .word { font-family: var(--serif); font-variation-settings: "opsz" 72; font-size: 23px; line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.head-r { display: flex; align-items: center; gap: 12px; }
.lang-sw { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: #000c1f0d; }
.lang-sw button { height: 38px; min-width: 42px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font-size: 14px; font-weight: 500; color: var(--ink-65); cursor: pointer; transition: background-color .2s var(--ease), color .2s; }
.lang-sw button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #0000001f; }
html[lang="bs"] .en, html[lang="en"] .bs { display: none !important; }
.topline .flag { width: 20px; height: 10px; border-radius: 1px; margin-right: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font-weight: 500; transition: background-color .2s var(--ease), transform .2s var(--ease), color .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #000e5c; }
.btn-menu { height: 44px; padding: 0 20px 2px; border-radius: 999px; font-size: 16px; letter-spacing: -.03em; position: relative; }
.btn-menu.menu-src { background: transparent; color: transparent; transition: none; }
.btn-soft { background: #000c1f0f; color: var(--ink); height: 48px; padding: 0 20px; border-radius: 999px; font-size: 16px; }
.btn-soft:hover { background: #000c1f1a; }

.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 62px; width: min(100%, 687.5px); }
.hero-heading { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 0 32px; }
.hero h1 { font-size: clamp(3rem, 8.384vw, 6rem); line-height: 1; letter-spacing: -.05em; }
.hero .supporting { font-size: 1.5rem; line-height: 1.5; letter-spacing: -.01em; color: var(--ink-65); text-wrap: pretty; }
.stage { position: relative; width: 100%; }
.media { position: relative; border-radius: var(--r-32); overflow: hidden; aspect-ratio: 3 / 2; background: #dfe1e4; box-shadow: 0 30px 80px -30px #010e2440; }
.media .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .55s cubic-bezier(.4, 0, .2, 1); }
.media .slide.on { opacity: 1; }
.media .slide:not(.on) { pointer-events: none; }
.media:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.media .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: 1.04; transition: scale 7s linear; }
.media .slide.on .photo { scale: 1; }
.composer { position: absolute; left: 16px; right: 16px; top: 16px; z-index: 5; }
.composer form, .composer-inline form, .dock form { display: flex; align-items: center; gap: 0; background: #fff; border: 1px solid transparent; border-radius: 999px; cursor: text; transition: box-shadow .5s var(--ease), background-color .4s var(--ease); }
.composer form, .composer-inline form { min-height: 96px; padding: 23px 23px 23px 40px; box-shadow: 0 0 0 1px var(--ink-45), var(--shadow-composer); flex-direction: column; align-items: stretch; justify-content: center; border-radius: var(--r-40); }
.composer .row, .composer-inline .row { position: relative; display: flex; align-items: center; min-height: 48px; }
.ph { position: absolute; left: 0; right: 152px; top: 50%; translate: 0 -50%; pointer-events: none; overflow-x: clip; overflow-y: visible; white-space: nowrap; color: var(--ink-65); font: 400 1.3125rem/1.5 var(--sans); letter-spacing: -.03em; }
.ph .g { display: block; } .ph .g.old { position: absolute; inset: 0; }
.ph .g span { display: inline-block; white-space: pre; will-change: transform, opacity, filter; }
form.has-text .ph { visibility: hidden; }
.sugg { display: grid; grid-template-rows: 0fr; opacity: 0; margin: 0 -10px 0 -27px; transition: grid-template-rows .3s var(--ease), margin .3s var(--ease), opacity .2s cubic-bezier(.4, 0, .2, 1); }
form.sugg-open .sugg { grid-template-rows: 1fr; opacity: 1; margin-bottom: -11px; }
.sugg > div { overflow: hidden; min-height: 0; }
.sugg ul { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ink-10); }
.sugg li { height: 52px; padding: 14px 28px; border-radius: 999px; font-size: 16px; line-height: 24px; color: var(--ink-65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.sugg li[aria-selected="true"] { background: #0014890d; }
.sugg li:hover { background: #0014890d; }
.sugg .hl { color: var(--ink); }
.composer form:focus-within, .composer-inline form:focus-within { box-shadow: 0 0 0 1px var(--ink), var(--shadow-composer); }
.composer input, .composer-inline input, .dock input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 1.3125rem/1.5 var(--sans); letter-spacing: -.03em; color: var(--ink); padding: 0 8px 0 0; }
.dock input { font-size: 16px; }
.composer input:focus-visible, .composer-inline input:focus-visible, .dock input:focus-visible { box-shadow: none; }
.composer input::placeholder, .composer-inline input::placeholder, .dock input::placeholder { color: var(--ink-65); }
.icon-btn { width: 48px; height: 48px; flex: none; border-radius: 999px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--ink); transition: background-color .2s var(--ease); }
.icon-btn:hover { background: var(--ink-5); }
.icon-btn svg { width: 20px; height: 20px; }
.send { width: 48px; height: 48px; flex: none; border-radius: 999px; border: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), scale .2s var(--ease); }
.send:active { scale: .94; }
.send svg { width: 20px; height: 20px; }
.dock .icon-btn, .dock .send { width: 36px; height: 36px; }
.controls { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.controls button { width: 36px; height: 36px; border-radius: 999px; border: 0; background: #000c1f0f; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background-color .2s; }
.controls button:hover { background: #000c1f1f; }
.controls svg { width: 16px; height: 16px; }

/* ---------- manifesto (word-by-word reveal) ---------- */
.section { margin-top: 9rem; }
.container { width: min(calc(100% - 96px), var(--container)); margin-inline: auto; }
.manifesto-wrap { container-type: inline-size; display: flex; justify-content: center; padding: 2rem 0; }
.manifesto { --measure: calc(1034 / 96); width: calc(var(--measure) * 1em); max-width: 100%; font-size: min(6rem, calc(100cqw / var(--measure))); line-height: 1; letter-spacing: -.06em; text-align: center; }
.manifesto .w { transition: color .5s var(--ease), filter .5s var(--ease); color: var(--ink); }
.manifesto .w.dim { color: #000c1f38; filter: blur(.05em); }
.manifesto .chip { display: inline-grid; vertical-align: middle; place-items: center; width: max(2.75rem, .82em); height: max(2.75rem, .82em); margin: 0 .06em; border-radius: 999px; position: relative; top: -.08em; transition: opacity .5s, filter .5s; }
.manifesto .chip.dim { opacity: .35; filter: blur(.05em); }
.manifesto .chip.arrow { background: var(--gold); color: var(--navy); box-shadow: 0 8px 24px #ffcd0066; }
.manifesto .chip.arrow svg { width: 42%; height: 42%; }
.manifesto .chip.logo { background: #fff; box-shadow: 0 8px 24px rgb(1 14 36 / 12%); }
.manifesto .chip.logo img { width: 64%; height: auto; border-radius: .04em; }

/* ---------- feature rows ---------- */
.features { display: grid; gap: 9rem; }
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.feature .media-tile { grid-column: 3 / span 4; aspect-ratio: 1; border-radius: var(--r-40); overflow: hidden; position: relative; }
.feature .copy { grid-column: 8 / span 4; display: flex; flex-direction: column; gap: 32px; }
.feature .copy-inner { display: flex; flex-direction: column; gap: 24px; max-width: 308px; }
.feature h2 { font-family: var(--sans); font-weight: 500; font-size: 2.5rem; line-height: 1.05; letter-spacing: -.02em; }
.feature p { font-size: 1.125rem; line-height: 1.5; letter-spacing: -.03em; color: var(--ink-65); }
.text-link { font-weight: 500; font-size: 1rem; text-decoration: none; letter-spacing: -.03em; width: max-content; border-radius: 8px; text-decoration-thickness: max(1.5px, .03em); text-underline-offset: max(4px, .12em); background: none; border: 0; padding: 0; cursor: pointer; }
.text-link:hover { text-decoration: underline; }

/* tile 1: source mosaic */
.tile-mosaic { background: #000; }
.tile-mosaic .field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tile-mosaic .track { display: none; }
.tile-mosaic .pause { position: absolute; right: 24px; bottom: 24px; z-index: 2; width: 44px; height: 44px; border-radius: 999px; border: 0; background: #0000008c; color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.tile-mosaic .pause svg { width: 18px; height: 18px; }
/* tile 2: night + lock */
.tile-night { background: linear-gradient(180deg, #02060f 0%, #061637 55%, #13306f 100%); display: grid; place-items: center; }
.tile-night .stars { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 12% 18%, #ffffffb0, transparent), radial-gradient(1px 1px at 72% 12%, #ffffff90, transparent), radial-gradient(1px 1px at 38% 42%, #ffffff70, transparent), radial-gradient(1.2px 1.2px at 84% 56%, #ffffffa0, transparent), radial-gradient(1px 1px at 22% 74%, #ffffff60, transparent), radial-gradient(1px 1px at 58% 86%, #ffffff80, transparent), radial-gradient(1px 1px at 92% 28%, #ffffff60, transparent), radial-gradient(1px 1px at 6% 48%, #ffffff70, transparent), radial-gradient(1px 1px at 46% 8%, #ffffff60, transparent), radial-gradient(1px 1px at 66% 36%, #ffffff50, transparent); }
.lock { position: relative; width: 130px; height: 130px; border-radius: 999px; background: var(--lock); display: grid; place-items: center; box-shadow: var(--shadow-toast); color: #000; }
.lock svg { width: 30px; height: 34px; overflow: visible; }
.lock .shackle { transform-origin: 7px 7px; transform-box: view-box; transition: transform .7s var(--ease); transform: translateY(-2px) rotate(-18deg); }
.lock.closed .shackle { transform: none; }
/* tile 3: source logos in circles */
.tile-seals { background: var(--grey-50); }
.tile-seals .grid { position: absolute; left: 50%; top: 50%; width: 140%; translate: -50% -50%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8%; }
.tile-seals .seal { aspect-ratio: 1; border-radius: 999px; background: #fff; box-shadow: 0 8px 24px rgb(1 14 36 / 12%); display: grid; place-items: center; }
.tile-seals .seal img, .tile-seals .seal svg { width: 44%; height: 44%; object-fit: contain; }
.tile-seals .seal img { width: 62%; height: 62%; object-fit: contain; }
.tile-seals .seal.full img { width: 92%; height: 92%; }
.tile-seals .seal.wide img { width: 80%; }
/* tile 4: channels row */
.tile-apps { background: linear-gradient(180deg, #fcfcfc, #ebebeb); }
.tile-apps .shelf { position: absolute; left: 12%; right: -30%; top: 50%; translate: 0 -50%; padding: 24px; border-radius: var(--r-40) 0 0 var(--r-40); background: #ffffffd0; box-shadow: var(--shadow-el-1); display: flex; gap: 24px; }
.tile-apps .app { width: 120px; height: 120px; flex: none; border-radius: var(--r-32); border: 1px solid var(--ink-5); background: #fff; box-shadow: var(--shadow-el-1); display: grid; place-items: center; }
.tile-apps .app img, .tile-apps .app svg { width: 60px; height: 60px; }
.tile-apps .app img[src*="browsers/"] { border-radius: 50%; }

/* ---------- roadmap ("More coming") ---------- */
.roadmap { position: relative; overflow-x: clip; }
.roadmap .head { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; max-width: 688px; margin: 0 auto; padding: 0 32px; }
.roadmap .head .t { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.roadmap h2 { font-size: 96px; line-height: 1; letter-spacing: -.06em; }
.roadmap .head p { max-width: 512px; font-size: 1.125rem; color: #000c1fb3; }
.art { position: relative; width: max(950px, 100%); max-width: 1728px; aspect-ratio: 1728 / 1100; left: 50%; transform: translateX(-50%); margin-top: 44px; container-type: inline-size; }
.art .card { position: absolute; background: #fff; border-radius: 1.6cqw; box-shadow: 0 1.2cqw 3.2cqw #010e241f, 0 0 0 1px #000c1f08; padding: 1.1cqw; font-size: .82cqw; line-height: 1.35; letter-spacing: -.02em; color: var(--ink); }
.art .card b { font-weight: 600; }
.art .t { font-weight: 600; font-size: .86cqw; margin-bottom: .9cqw; }
.art .pill-btn { display: inline-block; background: var(--navy); color: #fff; border-radius: 999px; padding: .6cqw 1.05cqw; font-size: .72cqw; font-weight: 500; }
.art .right { display: flex; justify-content: flex-end; margin-top: .9cqw; }
.art .row { display: flex; align-items: center; gap: .7cqw; padding: .75cqw .5cqw; border-top: 1px solid var(--ink-5); }
.art .rows { border: 1px solid var(--ink-5); border-radius: 1cqw; padding: 0 .5cqw; }
.art .rows .row:first-child { border-top: 0; }
.art .row img { width: 1.5cqw; height: 1.5cqw; object-fit: contain; }
.art .muted { color: var(--ink-45); }
.art .check { margin-left: auto; width: 1.1cqw; height: 1.1cqw; border-radius: .25cqw; background: var(--navy); display: grid; place-items: center; color: #fff; font-size: .7cqw; }
.art .tog { margin-left: auto; width: 1.9cqw; height: 1.1cqw; border-radius: 999px; background: #21392f; position: relative; }
.art .tog::after { content: ""; position: absolute; right: .15cqw; top: .15cqw; width: .8cqw; height: .8cqw; border-radius: 999px; background: #fff; }
.art .seg { display: flex; gap: .3cqw; background: var(--grey-50); border-radius: 999px; padding: .25cqw; }
.art .seg span { flex: 1; text-align: center; padding: .45cqw .6cqw; border-radius: 999px; font-size: .72cqw; color: var(--ink-65); }
.art .seg span.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #0000001a; font-weight: 500; }
.art .lbl { display: grid; grid-template-columns: 4cqw 1fr; align-items: center; gap: .6cqw; margin-top: .7cqw; font-size: .72cqw; color: var(--ink-65); }
.art .shot { border-radius: 1cqw; overflow: hidden; border: 1px solid var(--ink-5); }
.art .shot img { width: 100%; display: block; }
.art .bubble { background: var(--grey-50); border-radius: .9cqw; padding: .7cqw .9cqw; }
.art .bubble.me { background: var(--navy); color: #fff; margin-left: 22%; margin-bottom: .6cqw; }
.art .src { display: inline-flex; gap: .35cqw; align-items: center; font-size: .66cqw; color: var(--ink-65); border: 1px solid var(--ink-10); border-radius: 999px; padding: .25cqw .6cqw; margin-top: .6cqw; margin-right: .3cqw; }
.art .progress { display: flex; gap: .4cqw; margin-top: .9cqw; }
.art .progress i { flex: 1; height: .22cqw; border-radius: 9px; background: var(--grey-200); }
.art .progress i.on { background: var(--navy); }
.art .progress i.half { background: #0014898a; }
.art .steps { display: flex; justify-content: space-between; font-size: .66cqw; color: var(--ink-65); margin-top: .5cqw; }
.art .drop { position: absolute; border: 2px dashed #1b51ff80; background: #1b51ff0a; border-radius: 1.6cqw; display: grid; place-items: center; color: var(--blue); font-weight: 500; font-size: .82cqw; }
.art .file { position: absolute; display: flex; align-items: center; gap: .3cqw; }
.art .file .pdf { background: #e5252a; color: #fff; font-size: .55cqw; font-weight: 700; padding: .25cqw .3cqw; border-radius: .2cqw; }
.art .file .name { background: var(--blue); color: #fff; font-size: .66cqw; border-radius: .3cqw; padding: .15cqw .4cqw; }
.art .cursor { position: absolute; width: 1.3cqw; }
.art .float { position: absolute; display: flex; align-items: center; gap: .6cqw; background: #fff; border-radius: 999px; padding: .75cqw 1.15cqw; box-shadow: 0 1.2cqw 3.2cqw #010e241f, 0 0 0 1px #000c1f08; font-size: .82cqw; font-weight: 500; }
.art .float img { width: 1.4cqw; height: 1.4cqw; }
.art .slots { display: grid; grid-template-columns: 1fr 1fr; gap: .4cqw; }
.art .slots span { text-align: center; padding: .45cqw 0; border-radius: 999px; border: 1px solid var(--ink-10); font-size: .72cqw; }
.art .slots span.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.art .avatar { width: 1.9cqw; height: 1.9cqw; flex: none; border-radius: 999px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .5cqw; font-weight: 700; }
.art .stat { font-family: var(--serif); font-variation-settings: "opsz" 72; font-size: 2.4cqw; letter-spacing: -.05em; line-height: 1; }
.art .bar { display: flex; align-items: end; gap: .35cqw; height: 4cqw; margin-top: .8cqw; }
.art .bar i { flex: 1; background: #00148922; border-radius: .2cqw .2cqw 0 0; }
.art .bar i.on { background: var(--navy); }

/* ---------- footer ---------- */
.foot { margin-top: 9rem; padding-bottom: 130px; }
.foot nav { text-align: center; }
.foot nav ul { display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--serif); font-variation-settings: "opsz" 72; font-size: clamp(2.5rem, 5.59vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.foot nav a { text-decoration: none; display: block; padding: 0 8px; border-radius: 8px; text-decoration-thickness: max(1.5px, .03em); text-underline-offset: max(4px, .12em); }
.foot nav a:hover { text-decoration: underline; }
.wordmark { width: calc(100% - 96px); margin: 72px auto 24px; color: var(--ink); display: flex; justify-content: center; overflow: hidden; }
.wordmark span { display: block; white-space: nowrap; line-height: 1.05; letter-spacing: -.055em; font-weight: 500; font-size: 10vw; padding-bottom: .08em; }
@media (min-width: 1440px) { .wordmark { width: calc(100% - 192px); } }
.credits { display: grid; grid-template-columns: minmax(0, max-content) auto minmax(0, max-content); justify-content: center; align-items: center; gap: 24px 48px; padding: 16px 32px 24px; font-size: 1rem; }
.credits > p { display: flex; align-items: center; gap: 16px; }
.credits .mark { width: 40px; height: 40px; border-radius: 999px; }
.credits .flag { width: 40px; height: 20px; border-radius: 2px; box-shadow: 0 0 0 1px var(--ink-5); }
.laurel { display: flex; align-items: center; gap: 24px; }
.laurel svg { width: 30px; height: 82px; flex: none; }
.laurel p { max-width: 314px; text-align: center; font-weight: 500; }
.legal { display: flex; justify-content: center; gap: 4px 8px; flex-wrap: wrap; font-size: 1rem; margin-top: 8px; }
.legal a, .legal button { text-decoration: none; padding: 4px 8px; border-radius: 8px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.legal a:hover, .legal button:hover { text-decoration: underline; }
.legal svg { width: 14px; height: 14px; }
.dock { position: fixed; left: 50%; bottom: 20px; translate: -50% 0; z-index: 115; width: min(676px, calc(100% - 32px)); transition: opacity .3s var(--ease), translate .3s var(--ease); }
.dock.hide { opacity: 0; translate: -50% 16px; pointer-events: none; }
.dock form { min-height: 82px; padding: 22px 24px 22px 32px; border-radius: var(--r-40); box-shadow: 0 0 0 1px var(--ink-45), var(--shadow-el-1); }
.dock form:focus-within { box-shadow: 0 0 0 1px var(--ink), var(--shadow-el-1); }
.dock .send { background: #000c1f0d; color: #000c1f40; }
.dock form.has-text .send, .dock form.busy .send { background: var(--navy); color: #fff; }
.chat-on .dock { opacity: 1; translate: -50% 0; pointer-events: auto; }

/* ---------- menu: the Menu pill grows into a card; the page behind dims 20% and blurs ---------- */
html.menu-lock { overflow: hidden; }
.menu-backdrop { position: fixed; inset: 0; z-index: 125; background: rgb(0 0 0 / .2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .35s cubic-bezier(.25, .1, .25, 1); }
.menu-backdrop.open { opacity: 1; pointer-events: auto; }
.menu { position: fixed; top: 44px; right: 33px; z-index: 126; width: min(435px, calc(100vw - 24px)); max-height: calc(100svh - 88px); visibility: hidden; display: flex; }
.menu.open, .menu.closing { visibility: visible; }
.menu.closing .inner { opacity: 0; transition: opacity 80ms linear; }
.menu-surface { position: fixed; z-index: 125; border-radius: var(--r-40); background: #fff; box-shadow: 0 0 0 1px var(--ink-5), 2px 11px 24px #0000001a, 8px 42px 43px #00000017, 18px 95px 58px #0000000d; pointer-events: none; visibility: hidden; }
.menu.open + .menu-surface, .menu.closing + .menu-surface { visibility: visible; }
.menu .inner { position: relative; z-index: 1; flex: 1; padding: 40px; display: flex; flex-direction: column; gap: clamp(1rem, 3dvh, 2rem); overflow-y: auto; overscroll-behavior: contain; }
.menu .x-row { display: flex; justify-content: flex-end; }
.menu .x-row button { width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--ink-5); display: grid; place-items: center; cursor: pointer; transition: background-color .2s; }
.menu .x-row button:hover { background: var(--ink-10); }
.menu .x-row svg { width: 18px; height: 18px; }
.menu nav ul { display: flex; flex-direction: column; align-items: center; gap: clamp(.25rem, 1dvh, .5rem); text-align: center; }
.menu nav a { display: inline-block; font-size: clamp(1.5rem, 4.5dvh, 2rem); line-height: 1.25; font-weight: 500; letter-spacing: -.02em; text-decoration: none; padding: 0 8px; border-radius: 8px; text-decoration-thickness: max(1.5px, .03em); text-underline-offset: .14em; }
.menu nav a:hover, .menu nav a[aria-current="page"] { text-decoration: underline; }
.menu nav li.sec a { font-size: 1.3125rem; line-height: 1.5; font-weight: 400; color: var(--ink-65); }
.menu .m-foot { margin-top: clamp(.5rem, 2dvh, 1rem); background: var(--grey-50); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-65); text-align: center; }
.menu .m-foot img { width: 32px; height: 16px; border-radius: 2px; }

/* ---------- guided demo (opens from product screenshots; same steps as the Helpjuice walkthrough deck) ---------- */
.demo { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / .2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .35s cubic-bezier(.25, .1, .25, 1); }
.demo.open { opacity: 1; pointer-events: auto; }
.demo-card { width: min(1240px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; background: #fff; border-radius: var(--r-40); box-shadow: 0 0 0 1px var(--ink-5), 2px 11px 24px #0000001a, 8px 42px 43px #00000017, 18px 95px 58px #0000000d; padding: 24px; display: flex; flex-direction: column; gap: 18px; scale: .97; transition: scale .45s var(--ease); }
.demo.open .demo-card { scale: 1; }
.demo-head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 4px 4px 0 12px; }
.demo-head small { display: block; font-size: 14px; color: var(--ink-65); margin-bottom: 2px; }
.demo-head h2 { font-size: 1.5rem; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
.demo-x { width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--ink-5); display: grid; place-items: center; cursor: pointer; }
.demo-x svg { width: 18px; height: 18px; }
.demo-view { position: relative; }
.demo-stage { position: relative; aspect-ratio: 1440 / 727; border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 1px var(--ink-10); background: var(--grey-50); }
.demo-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.demo-spot { position: absolute; border-radius: 10px; box-shadow: 0 0 0 2px var(--blue), 0 0 0 4px #1b51ff33, 0 0 0 9999px #000c1f40; pointer-events: none; transition: left .55s var(--ease), top .55s var(--ease), width .55s var(--ease), height .55s var(--ease); }
.demo-tip { position: absolute; z-index: 2; display: flex; gap: 12px; align-items: flex-start; width: max-content; max-width: 320px; background: #fff; border-radius: 20px; padding: 14px 18px 14px 14px; box-shadow: 0 0 0 1px var(--ink-5), var(--shadow-el-1); font-size: 15px; line-height: 1.4; transition: left .55s var(--ease), top .55s var(--ease); }
.demo-tip .n { flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.demo-tip b { display: block; font-weight: 500; }
.demo-tip small { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-65); }
.demo-foot { display: flex; align-items: center; gap: 16px; padding: 0 4px 0 12px; }
.demo-prog { flex: 1; display: flex; gap: 4px; }
.demo-prog button { flex: 1; height: 16px; border: 0; padding: 6px 0; background: none; cursor: pointer; }
.demo-prog button::before { content: ""; display: block; height: 4px; border-radius: 9px; background: var(--grey-200); transition: background-color .3s; }
.demo-prog button.on::before { background: var(--navy); }
.demo-foot .count { font-size: 14px; color: var(--ink-65); white-space: nowrap; }
.demo-foot .btn { height: 44px; padding: 0 20px 2px; border-radius: 999px; font-size: 16px; }
.demo-foot .btn[disabled] { opacity: .4; pointer-events: none; }
[data-demo] { cursor: zoom-in; }

/* ---------- chat: the landing dissolves out, the chat surface fades in, answers stream word by word ---------- */
@keyframes landing-out { to { opacity: 0; transform: scale(.985); } }
@keyframes landing-in { from { opacity: 0; transform: scale(.985); } }
@keyframes surface-in { from { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pill-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes shimmer { from { background-position: 100% 50%; } to { background-position: 0% 50%; } }
@keyframes pulse { 50% { opacity: 1; } 0%, 100% { opacity: .6; } }
body.chat-leaving > :not(.chat):not(.dock):not(.menu):not(.lightbox):not(.src-modal):not(.call):not(.call-surface) { animation: landing-out .26s linear forwards; transform-origin: 50% 30vh; }
body.chat-back > :not(.chat):not(.dock):not(.menu):not(.lightbox):not(.src-modal):not(.call):not(.call-surface) { animation: landing-in .26s linear .1s both; transform-origin: 50% 30vh; }
.chat { position: fixed; inset: 0; z-index: 110; background: #fff; overflow-y: auto; display: none; overscroll-behavior: contain; }
.chat.open { display: block; animation: surface-in .26s linear .14s both; }
.chat.closing { display: block; animation: landing-out .2s linear forwards; }
.chat-head { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 24px 48px; background: linear-gradient(#fff 70%, #fff0); }
.thread { width: min(664px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 220px; display: flex; flex-direction: column; }
.turn { display: flex; flex-direction: column; }
.turn + .turn { margin-top: 48px; }
.turn.last { min-height: calc(100svh - 300px); }
.msg-me { align-self: flex-end; max-width: 80%; background: #0014890d; border-radius: var(--r-32); padding: 16px 20px; font-size: 16px; line-height: 1.5; animation: fade-in .24s var(--ease) both; overflow-wrap: anywhere; }
.msg-ai { margin-top: 32px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.msg-ai p + p, .msg-ai p + ul, .msg-ai p + ol, .msg-ai ul + p, .msg-ai ol + p { margin-top: 16px; }
.msg-ai ul, .msg-ai ol { margin-top: 12px; padding-left: 24px; }
.msg-ai ul { list-style: disc; }
.msg-ai li { margin-top: 8px; padding-left: 2px; }
.msg-ai li::marker { color: var(--ink); }
.msg-ai b, .msg-ai strong { font-weight: 500; }
.msg-ai p.sub { margin-top: 18px; }
.msg-ai a { color: #0066c5; text-decoration: none; }
.msg-ai a:hover { text-decoration: underline; text-underline-offset: 3px; }
.msg-ai .w { animation: fade-in .5s linear both; }
.thinking { display: flex; align-items: center; gap: 10px; animation: fade-in .24s var(--ease) both; }
.thinking .stack { animation: pulse 2s linear infinite; }
.shimmer { color: transparent; background: linear-gradient(90deg, var(--ink-45) 0%, var(--ink-45) 40%, var(--ink) 50%, var(--ink-45) 60%, var(--ink-45) 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: shimmer 1.6s linear infinite; }
.stack { display: inline-flex; align-items: center; }
.ini { width: 24px; height: 24px; flex: none; border-radius: 999px; background: var(--navy); color: #fff; display: inline-grid; place-items: center; font-size: 8.5px; font-weight: 700; letter-spacing: 0; box-shadow: 0 0 0 2px #fff; }
.stack .ini + .ini { margin-left: -8px; }
.src-grp > button .ini { width: 40px; height: 40px; font-size: 12px; box-shadow: inset 0 0 0 2px var(--gold); }
.stack img { width: 24px; height: 24px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink-5); object-fit: contain; padding: 3px; }
.stack img + img { margin-left: -8px; }
.msg-actions { display: flex; align-items: center; gap: 4px; margin-top: 24px; }
.msg-actions > * { animation: fade-in .6s linear both; }
.msg-actions > :nth-child(2) { animation-delay: .08s; } .msg-actions > :nth-child(3) { animation-delay: .16s; } .msg-actions > :nth-child(4) { animation-delay: .24s; } .msg-actions > :nth-child(5) { animation-delay: .32s; }
.src-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 6px 12px 6px 6px; border: 0; border-radius: 999px; background: #0014890d; color: var(--ink-65); font-size: 12px; font-weight: 500; line-height: 1; cursor: pointer; transition: background-color .2s var(--ease); }
.src-pill:hover { background: #0014891a; color: var(--ink); }
.src-pill .stack img { width: 24px; height: 24px; }
.act { width: 32px; height: 32px; border-radius: 999px; border: 0; background: none; display: grid; place-items: center; color: var(--ink-65); cursor: pointer; transition: background-color .2s var(--ease), color .2s; }
.act:hover { background: var(--ink-5); color: var(--ink); }
.act.on { color: var(--navy); background: #0014890d; }
.act svg { width: 16px; height: 16px; }
.follow { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 24px; }
.follow button { min-height: 56px; padding: 7px 20px 9px; border: 1px solid var(--ink-10); border-radius: var(--r-40); background: #fff; color: var(--ink-65); font-size: 16px; line-height: 22px; text-align: left; cursor: pointer; animation: pill-in .28s var(--ease) both; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s; }
.follow button:hover { background: var(--grey-50); color: var(--ink); border-color: var(--ink-10); }
.follow button:nth-child(1) { animation-delay: .32s; } .follow button:nth-child(2) { animation-delay: .4s; } .follow button:nth-child(3) { animation-delay: .48s; }
.follow.gone { opacity: 0; transition: opacity .18s; pointer-events: none; }

/* sources dialog: blurred page behind, rounded card, sources grouped by site */
.src-modal { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 16px; background: #e9eaec99; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.src-modal.open { opacity: 1; pointer-events: auto; }
.src-card { width: min(432px, 100%); max-height: min(680px, calc(100svh - 32px)); overflow-y: auto; background: #fff; border-radius: var(--r-40); box-shadow: var(--shadow-el-1); padding: 0 16px 8px; scale: .96; transition: scale .35s var(--ease); }
.src-modal.open .src-card { scale: 1; }
.src-card header { position: sticky; top: 0; background: #fff; display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; padding: 16px 0 8px; text-align: center; font-weight: 500; font-size: 16px; z-index: 1; }
.src-card header button { grid-column: 3; width: 32px; height: 32px; border: 0; border-radius: 999px; background: var(--ink-5); display: grid; place-items: center; cursor: pointer; }
.src-card header button svg { width: 16px; height: 16px; }
.src-grp + .src-grp { border-top: 1px solid var(--ink-10); }
.src-grp > button { width: 100%; display: grid; grid-template-columns: 40px 1fr 20px; gap: 14px; align-items: center; padding: 14px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.src-grp > button img { width: 40px; height: 40px; border-radius: 999px; box-shadow: 0 0 0 1px var(--ink-10); object-fit: contain; padding: 7px; background: #fff; }
.src-grp > button b { display: block; font-weight: 400; font-size: 15px; }
.src-grp > button span span { color: var(--ink-65); font-size: 14px; }
.src-grp > button svg { width: 18px; height: 18px; transition: rotate .3s var(--ease); }
.src-grp.open > button svg { rotate: 180deg; }
.src-list { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s cubic-bezier(.32, .72, 0, 1); }
.src-grp.open .src-list { grid-template-rows: 1fr; }
.src-list > div { overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.src-grp.open .src-list > div { padding-bottom: 16px; }
.src-list a { color: #0066c5; font-size: 15px; text-decoration: underline dotted; text-underline-offset: 4px; width: max-content; max-width: 100%; }

/* image viewer (opens any landing-page image) */
[data-zoom] { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 150; background: #000c1fe6; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox .lb-img { position: fixed; left: 0; top: 0; transform-origin: 0 0; border-radius: 24px; object-fit: contain; background: #000; box-shadow: 0 30px 80px -20px #000a; will-change: transform; }
.lightbox .lb-bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px 24px 28px; color: #ffffffd9; font-size: 15px; text-align: center; opacity: 0; transition: opacity .3s var(--ease) .15s; }
.lightbox.open .lb-bar, .lightbox.open .lb-x { opacity: 1; }
.lightbox .lb-bar p { max-width: 640px; }
.lightbox button { width: 44px; height: 44px; flex: none; border-radius: 999px; border: 0; background: #ffffff1f; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s; }
.lightbox button:hover { background: #ffffff38; }
.lightbox button svg { width: 20px; height: 20px; }
.lightbox .lb-x { position: fixed; top: 20px; right: 20px; opacity: 0; transition: opacity .3s var(--ease) .15s; }
.lightbox [hidden] { display: none; }

/* ---------- inner pages (knowledge base hub + article) ---------- */
.page-head-wrap { position: relative; margin: 0 32px; }
.page-head { position: relative; border-radius: var(--r-40); background: var(--grey-50); padding: 150px 32px 72px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.page-head h1 { font-size: clamp(3rem, 8.384vw, 6rem); line-height: 1; letter-spacing: -.05em; max-width: 13ch; }
.page-head .supporting { font-size: 1.5rem; line-height: 1.4; letter-spacing: -.01em; color: var(--ink-65); max-width: 34ch; }
.crumbs { font-size: 14px; color: var(--ink-65); display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.composer-inline { width: min(688px, 100%); margin-top: 16px; }
.composer-inline form { box-shadow: var(--shadow-composer); }
.cats { width: min(calc(100% - 96px), 1120px); margin: 9rem auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 80px 96px; }
.cat h2 { font-family: var(--sans); font-weight: 500; font-size: 2.5rem; line-height: 1.05; letter-spacing: -.02em; }
.cat p.lede { margin-top: 14px; font-size: 1.125rem; color: var(--ink-65); max-width: 30em; }
.cat ul { margin-top: 24px; border-top: 1px solid var(--ink-10); }
.cat li button { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--ink-10); padding: 15px 0; display: flex; justify-content: space-between; gap: 16px; text-align: left; font-size: 1.0625rem; cursor: pointer; }
.cat li button:hover > span:first-child, .cat li button:hover > span:nth-child(2) { text-decoration: underline; text-underline-offset: 4px; }
.cat li button .tag { color: var(--ink-45); flex: none; }
.cat li a { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--ink-10); text-decoration: none; font-size: 1.0625rem; }
.cat li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cat li a span { color: var(--ink-45); flex: none; }
.art-page { width: min(calc(100% - 48px), 760px); margin: 7rem auto 0; }
.art-page .meta { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 14px; color: var(--ink-65); padding-bottom: 28px; border-bottom: 1px solid var(--ink-10); }
.art-page h2 { font-family: var(--sans); font-weight: 500; font-size: 2rem; line-height: 1.1; letter-spacing: -.02em; margin-top: 72px; }
.art-page p, .art-page li { font-size: 1.125rem; line-height: 1.6; letter-spacing: -.02em; color: #000c1fcc; }
.art-page p { margin-top: 16px; }
.art-page ol.steps { counter-reset: s; margin-top: 28px; padding: 0; list-style: none; display: grid; gap: 48px; }
.art-page ol.steps > li { counter-increment: s; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; }
.art-page ol.steps > li::before { content: counter(s); font-family: var(--serif); font-variation-settings: "opsz" 72; font-size: 40px; line-height: 1; letter-spacing: -.05em; color: var(--ink); }
.art-page ol.steps b { font-weight: 500; color: var(--ink); }
.art-page figure { margin: 18px 0 0; }
.art-page figure .frame { border-radius: var(--r-32); overflow: hidden; box-shadow: var(--shadow-el-1); border: 1px solid var(--ink-5); }
.art-page figcaption { font-size: 14px; color: var(--ink-45); margin-top: 10px; }
.art-page .callout { margin-top: 28px; background: var(--grey-50); border-radius: 24px; padding: 20px 24px; font-size: 1rem; line-height: 1.55; color: var(--ink-65); }
.art-page .callout b { color: var(--ink); font-weight: 500; }
.ui { font-weight: 500; color: var(--ink); }
.helpful { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--ink-10); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 500; }
.helpful .btn-soft { height: 40px; }
.related { margin-top: 56px; }
.related h3 { font-size: 14px; font-weight: 500; color: var(--ink-65); margin-bottom: 4px; }
.related a { display: block; padding: 15px 0; border-bottom: 1px solid var(--ink-10); text-decoration: none; font-size: 1.0625rem; }
.related a:hover { text-decoration: underline; text-underline-offset: 4px; }
.notes-page table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 15px; }
.notes-page th, .notes-page td { text-align: left; vertical-align: top; padding: 12px 8px; border-top: 1px solid var(--ink-10); color: #000c1fcc; line-height: 1.5; }
.notes-page th { font-weight: 500; color: var(--ink-45); border-top: 0; font-size: 13px; }
.notes-page td:first-child { color: var(--ink); font-weight: 500; width: 32%; }
.notes-page ul.dots-list { list-style: disc; padding-left: 22px; margin-top: 16px; }
.notes-page ul.dots-list li { margin-bottom: 8px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------- responsive (breakpoints: desktop ≥1440, tablet, mobile <768) ---------- */
@media (min-width: 1440px) {
  .hero h1, .page-head h1 { font-size: clamp(96px, 5.714vw + 13.714px, 144px); letter-spacing: -.06em; }
  .hero .supporting { font-size: clamp(24px, 1.071vw + 8.571px, 28px); }
  .hero-inner { width: min(47.743vw, 1200px); }
  .site-head { padding: 40px 48px; }
}
@media (max-width: 1100px) {
  .feature .media-tile { grid-column: 1 / span 6; }
  .feature .copy { grid-column: 8 / span 5; }
  .cats { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .hero-wrap, .page-head-wrap { margin: 0 12px; }
  .hero { padding: 112px 16px 32px; min-height: auto; }
  .hero h1, .page-head h1 { font-size: clamp(36px, 12vw, 48px); }
  .hero .supporting, .page-head .supporting { font-size: 1.125rem; }
  .hero-inner { gap: 40px; }
  .hero-heading { padding: 0; }
  .media { aspect-ratio: 4 / 5; }
  .site-head { padding: 16px; }
  .container { width: calc(100% - 48px); }
  .section { margin-top: 6rem; }
  .features { gap: 6rem; }
  .feature { grid-template-columns: 1fr; row-gap: 32px; }
  .feature .media-tile, .feature .copy { grid-column: 1; }
  .feature .copy { padding: 0 8px; }
  .feature h2 { font-size: 1.75rem; line-height: 1.15; }
  .roadmap h2 { font-size: 48px; }
  .art { width: 950px; }
  .credits { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .credits > p { flex-direction: column; }
  .bar-top { padding: 16px; }
  .cats { width: calc(100% - 48px); margin-top: 6rem; gap: 56px; }
  .cat h2 { font-size: 1.75rem; }
  .art-page { margin-top: 4.5rem; }
  .art-page ol.steps > li { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
  .art-page ol.steps > li::before { font-size: 30px; }
  .page-head { padding: 104px 16px 44px; }
  .icon-btn.opt { display: none; }
  .composer form, .composer-inline form { min-height: 72px; padding: 11px 11px 11px 24px; }
  .ph { font-size: 17px; right: 56px; }
  .composer .row:has(.call-btn) .ph { right: 104px; } /* the call button stays on phones next to send */
  .sugg { margin: 0 -2px 0 -15px; }
  .sugg li { padding: 14px 16px; }
  .menu { top: 12px; right: 12px; }
  .menu .inner { padding: 28px; }
  .demo-card { padding: 16px; border-radius: 32px; }
  .demo-tip { position: static; max-width: none; width: auto; margin-top: 12px; box-shadow: 0 0 0 1px var(--ink-10); }
  .demo-foot { flex-wrap: wrap; padding: 0; }
  .demo-foot .count { order: -1; width: 100%; }
  .composer input, .composer-inline input { font-size: 17px; }
  .chat-head { padding: 16px; }
  .home-link .word { font-size: 17px; }
  .home-link .flag { width: 28px; height: 14px; }
  .home-link { gap: 8px; }
  .lang-sw button { height: 32px; min-width: 34px; padding: 0 8px; font-size: 13px; }
  .head-r { gap: 6px; }
  .btn-menu { height: 40px; padding: 0 14px 2px; font-size: 14px; }
  .dock form { min-height: 64px; padding: 13px 14px 13px 22px; }
  .msg-me { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: 0 0; }
  .manifesto .w.dim { color: var(--ink); filter: none; }
  .manifesto .chip.dim { opacity: 1; filter: none; }
}

/* ---------- life events: one answer per step, as an accordion ---------- */
.ev { display: grid; gap: 8px; margin-top: 20px; }
.ev-step { border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--ink-10); animation: fade-in .4s var(--ease) both; }
.ev-step:nth-child(2) { animation-delay: .08s; } .ev-step:nth-child(3) { animation-delay: .16s; } .ev-step:nth-child(4) { animation-delay: .24s; }
.ev-step summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; }
.ev-step summary::-webkit-details-marker { display: none; }
.ev-step summary > svg { width: 20px; height: 20px; flex: none; color: var(--ink-65); transition: transform .3s var(--ease); }
.ev-step[open] summary > svg { transform: rotate(180deg); }
.ev-n { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 999px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 500; }
.ev-h { flex: 1; min-width: 0; display: grid; }
.ev-h b { font-weight: 500; }
.ev-h small { color: var(--ink-65); font-size: 13px; }
.ev-body { padding: 0 18px 18px 64px; }
@media (max-width: 767px) { .ev-body { padding-left: 18px; } }

@media (prefers-reduced-motion: reduce) { .ev-step { animation: none; } }
