/* ==========================================================================
   EvolexAI - Application Funnel
   Palette derived from the brand mark: deep navy field, blue-to-cyan ascent.
   Type: IBM Plex Sans Arabic (single family, weight-driven hierarchy).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
  /* base */
  --ink:        #08101F;
  --surface:    #101A30;
  --surface-2:  #1B2440;
  --paper:      #F1F5FC;
  --paper-2:    #E3EAF7;

  /* brand ascent */
  --blue:       #1D6FF2;
  --cyan:       #14C4F5;
  --ascent:     linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);

  /* text */
  --text:       #E9EEFA;
  --text-2:     #A3B0CC;
  --text-ink:   #0B1426;
  --text-ink-2: #46557A;

  /* lines and states */
  --line:       rgba(126,164,240,.16);
  --line-solid: #24325A;
  --line-paper: #CBD7EC;
  --ok:         #22C08A;

  /* scale */
  --gutter: clamp(20px, 5vw, 64px);
  --s-1: 8px;  --s-2: 14px; --s-3: 22px;
  --s-4: 36px; --s-5: 58px; --s-6: 92px;
  --r-sm: 10px; --r-md: 16px; --r-lg: 26px;

  --shell: 1180px;
  --read: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }

/* [hidden] must beat the display on .btn and friends */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'IBM Plex Sans Arabic', system-ui, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout primitives ---------- */

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

section { padding-block: var(--s-6); }

.band-paper {
  background: var(--paper);
  color: var(--text-ink);
}
.band-surface { background: var(--surface); }

/* ---------- type ---------- */

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  letter-spacing: -0.025em;
}

h3 { font-size: 1.16rem; font-weight: 600; }

p { margin: 0 0 var(--s-2); max-width: var(--read); }

.lede {
  font-size: clamp(1.05rem, 2.1vw, 1.26rem);
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.8;
}
.band-paper .lede { color: var(--text-ink-2); }

.ascent-text {
  background: var(--ascent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* section head: the chevron from the mark, used as a structural marker */
.sec-head { margin-bottom: var(--s-5); }
.sec-head h2 { max-width: 22ch; }
.sec-head p  { margin-top: var(--s-2); }

.chev {
  width: 30px; height: 12px;
  margin-bottom: var(--s-3);
  display: block;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.btn-primary {
  background: var(--ascent);
  color: #051022;
  box-shadow: 0 8px 26px -10px rgba(29,111,242,.85);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(20,196,245,.9); }
/* touch has no hover: press must still give feedback */
.btn-primary:active { transform: scale(.97); box-shadow: 0 4px 16px -8px rgba(29,111,242,.9); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-solid);
}
.btn-ghost:hover { border-color: var(--cyan); background: rgba(20,196,245,.06); }
.btn-ghost:active { transform: scale(.97); background: rgba(20,196,245,.12); }

.band-paper .btn-ghost { color: var(--text-ink); border-color: var(--line-paper); }
.band-paper .btn-ghost:hover { background: #fff; border-color: var(--blue); }

.btn-arrow { width: 16px; height: 16px; flex: none; }

.btn-note {
  margin-top: 12px;
  font-size: .88rem;
  color: var(--text-2);
}
.band-paper .btn-note { color: var(--text-ink-2); }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8,16,31,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: 13px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand img {
  width: 38px; height: 38px;
  border-radius: 9px;
}
.brand small {
  display: block;
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.3;
  letter-spacing: 0;
}
.topbar .btn { padding: 11px 22px; min-height: 44px; font-size: .95rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px) var(--s-6);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset-inline-end: -14%;
  top: -34%;
  width: 780px; height: 780px;
  background: radial-gradient(circle, rgba(29,111,242,.20), transparent 62%);
  pointer-events: none;
}
.hero .shell {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}

.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: var(--s-3); max-width: 46ch; }

.hero-cta { margin-top: var(--s-4); }

.hero-meta {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-4);
}
.hero-meta div { min-width: 0; }
.hero-meta b {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero-meta span { font-size: .85rem; color: var(--text-2); }

/* ---------- the chat: hero demo ---------- */

.thread {
  background: var(--surface);
  border: 1px solid var(--line-solid);
  border-radius: var(--r-lg);
  padding: var(--s-3);
  box-shadow: 0 34px 70px -34px rgba(0,0,0,.85);
}

.thread-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px var(--s-2);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-3);
}
.thread-bar .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}
.thread-bar strong { font-size: .95rem; font-weight: 600; }
.thread-bar span { font-size: .8rem; color: var(--text-2); margin-inline-start: auto; }

.msgs { display: flex; flex-direction: column; gap: 10px; min-height: 342px; }

.msg {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: .96rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(8px);
}
.msg.in {
  opacity: 1;
  transform: none;
  transition: opacity .34s ease, transform .34s ease;
}
.msg-them {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-end-start-radius: 5px;
}
.msg-us {
  align-self: flex-end;
  background: var(--ascent);
  color: #05101F;
  font-weight: 500;
  border-end-end-radius: 5px;
}
.msg time {
  display: block;
  margin-top: 4px;
  font-size: .71rem;
  opacity: .62;
}

.typing { display: inline-flex; gap: 4px; padding-block: 5px; }
.typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
  animation: blip 1.25s infinite;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blip {
  0%, 60%, 100% { opacity: .28; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* block, not flex: flex was shredding the Arabic line into odd fragments */
.thread-foot {
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
  font-size: .85rem;
  line-height: 1.7;
  color: var(--text-2);
  max-width: none;
  margin-bottom: 0;
}
.thread-foot svg {
  display: inline-block;
  vertical-align: -2px;
  margin-inline-end: 7px;
}
.thread-foot b { color: var(--cyan); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- the leak: cost ledger ---------- */

.ledger {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line-solid);
  border: 1px solid var(--line-solid);
  border-radius: var(--r-md);
  overflow: hidden;
}
.ledger div { background: var(--ink); padding: var(--s-3) var(--s-3) var(--s-4); }
.ledger b {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ledger b.hot { color: #FF7A7A; }
.ledger span { font-size: .92rem; color: var(--text-2); display: block; margin-top: 6px; }

.ledger-note {
  margin-top: var(--s-3);
  font-size: .87rem;
  color: var(--text-2);
  max-width: 68ch;
}

/* ---------- systems ---------- */

.systems { display: grid; gap: var(--s-3); grid-template-columns: repeat(3, 1fr); }

.system {
  background: var(--paper-2);
  border-radius: var(--r-md);
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
}
.system-mark {
  width: 34px; height: 34px;
  margin-bottom: var(--s-3);
  color: var(--blue);
}
.system h3 { margin-bottom: 8px; }
.system p { color: var(--text-ink-2); font-size: .97rem; margin-bottom: var(--s-3); }
.system ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-paper);
  padding-top: var(--s-2);
  font-size: .92rem;
}
.system li { padding-block: 3px; color: var(--text-ink-2); }
.system li::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  margin-inline-end: 9px;
  border-inline-start: 2px solid var(--blue);
  border-block-start: 2px solid var(--blue);
  transform: rotate(45deg);
  vertical-align: 1px;
}

/* ---------- fit / not fit ---------- */

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }

.fit-col {
  border: 1px solid var(--line-solid);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-3) var(--s-4);
}
.fit-col.yes { border-color: rgba(34,192,138,.42); background: rgba(34,192,138,.05); }
.fit-col h3 { margin-bottom: var(--s-2); }
.fit-col ul { margin: 0; padding: 0; list-style: none; }
.fit-col li {
  position: relative;
  padding-inline-start: 28px;
  padding-block: 7px;
  font-size: .98rem;
  color: var(--text-2);
}
.fit-col li svg {
  position: absolute;
  inset-inline-start: 0;
  top: 13px;
  width: 15px; height: 15px;
}
.fit-col.yes li svg { color: var(--ok); }
.fit-col.no  li svg { color: #7C8AAC; }

/* ---------- process ---------- */

.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); }
.step {
  background: var(--ink);
  display: grid;
  grid-template-columns: 76px 1fr 200px;
  gap: var(--s-3);
  align-items: baseline;
  padding-block: var(--s-3);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: 5px; }
.step p { color: var(--text-2); font-size: .97rem; margin: 0; }
.step-when {
  font-size: .87rem;
  color: var(--text-2);
  border-inline-start: 1px solid var(--line-solid);
  padding-inline-start: var(--s-3);
  align-self: stretch;
  padding-block: 2px;
}

/* ---------- demo proof ---------- */

.proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.proof-card {
  background: var(--surface);
  border: 1px solid var(--line-solid);
  border-radius: var(--r-md);
  padding: var(--s-3);
}
.proof-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px var(--s-2);
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
  font-size: .96rem;
}
.proof-row:last-child { border-bottom: 0; }
.proof-row span { color: var(--text-2); }
.proof-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--line-solid);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--text-2);
  margin-bottom: var(--s-3);
}

/* ---------- offer ---------- */

.offer {
  border: 1px solid var(--line-paper);
  border-radius: var(--r-lg);
  background: #fff;
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}
.stack { margin: 0; padding: 0; list-style: none; }
.stack li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 3px var(--s-2);
  padding-block: 12px;
  border-bottom: 1px dashed var(--line-paper);
  font-size: .99rem;
}
.stack li:last-child { border-bottom: 0; }
.stack li i {
  font-style: normal;
  color: var(--text-ink-2);
  font-size: .88rem;
  white-space: nowrap;
}
.offer-side {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: var(--s-3);
  align-self: start;
}
.price {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.price small { display: block; font-size: .95rem; font-weight: 400; color: var(--text-ink-2); letter-spacing: 0; margin-top: 6px; }
.offer-side .btn { width: 100%; justify-content: center; margin-top: var(--s-3); }

/* ---------- faq ---------- */

.faq { max-width: 860px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: 4px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding-block: 18px;
  padding-inline-end: 34px;
  position: relative;
  font-weight: 500;
  font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  inset-inline-end: 6px;
  top: 25px;
  width: 8px; height: 8px;
  border-inline-end: 2px solid var(--cyan);
  border-block-end: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); top: 28px; }
.faq p { color: var(--text-2); padding-bottom: 18px; font-size: .99rem; }

/* ---------- final cta ---------- */

.final {
  text-align: center;
  background:
    radial-gradient(70% 130% at 50% 0%, rgba(29,111,242,.22), transparent 66%),
    var(--surface);
  border-top: 1px solid var(--line);
}
.final h2 { margin-inline: auto; max-width: 20ch; }
.final .lede { margin: var(--s-2) auto 0; }
.final .btn { margin-top: var(--s-4); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s-4);
  font-size: .89rem;
  color: var(--text-2);
}
footer .shell { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: var(--s-1); flex-wrap: wrap; }
footer nav a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: var(--r-sm);
}
footer nav a:hover { color: var(--cyan); background: rgba(20,196,245,.07); }
footer nav a:active { background: rgba(20,196,245,.14); }

/* ---------- sticky CTA, phones only ---------- */

.mobile-cta {
  display: none;
  position: fixed;
  inset-inline: 12px;
  bottom: 12px;
  z-index: 60;
  justify-content: center;
  text-align: center;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 10px 34px -8px rgba(0,0,0,.7), 0 6px 24px -10px rgba(29,111,242,.9);
  transform: translateY(140%);
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.mobile-cta.up { transform: translateY(0); }

/* ==========================================================================
   Application form (apply.html)
   ========================================================================== */

.apply-wrap { padding-block: var(--s-5) var(--s-6); }
.apply-grid { display: grid; grid-template-columns: 1fr 330px; gap: clamp(28px, 4vw, 60px); align-items: start; }

.progress {
  display: flex;
  gap: 6px;
  margin-bottom: var(--s-4);
}
.progress i {
  height: 3px;
  flex: 1;
  background: var(--line-solid);
  border-radius: 2px;
  transition: background-color .3s ease;
}
.progress i.done { background: var(--blue); }

.step-count { font-size: .86rem; color: var(--text-2); margin-bottom: 10px; }

fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; }

.q { display: none; }
.q.active { display: block; animation: qin .3s ease both; }
@keyframes qin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.q h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); max-width: 24ch; }
.q > p { color: var(--text-2); margin-top: 10px; font-size: .97rem; }

.choices { display: grid; gap: 10px; margin-top: var(--s-3); }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  min-height: 56px;
  border: 1px solid var(--line-solid);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.choice:hover { border-color: var(--cyan); background: rgba(20,196,245,.05); }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice .box {
  width: 20px; height: 20px;
  flex: none;
  border: 1px solid var(--line-solid);
  border-radius: 50%;
  position: relative;
}
.choice input:checked ~ .box { border-color: var(--cyan); }
.choice input:checked ~ .box::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--ascent);
}
.choice:has(input:checked) { border-color: var(--cyan); background: rgba(20,196,245,.07); }
.choice input:focus-visible ~ .box { outline: 2px solid var(--cyan); outline-offset: 3px; }
.choice .label { font-size: 1rem; }
.choice .hint { color: var(--text-2); font-size: .85rem; display: block; }

.field { margin-top: var(--s-3); }
.field label {
  display: block;
  font-size: .93rem;
  font-weight: 500;
  margin-bottom: 7px;
}
.field .help { color: var(--text-2); font-weight: 400; font-size: .85rem; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  min-height: 52px;
  background: var(--surface);
  border: 1px solid var(--line-solid);
  border-radius: var(--r-sm);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color .18s ease;
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #6B7A9E; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--cyan); outline: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #FF7A7A; }

.err {
  display: none;
  margin-top: 7px;
  font-size: .87rem;
  color: #FF9B9B;
}
.err.show { display: block; }

.nav-row {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.nav-row .btn-ghost { padding-inline: 22px; }

.aside {
  background: var(--surface);
  border: 1px solid var(--line-solid);
  border-radius: var(--r-md);
  padding: var(--s-3);
  position: sticky;
  top: 90px;
}
.aside h3 { font-size: 1rem; margin-bottom: var(--s-2); }
.aside ul { margin: 0; padding: 0; list-style: none; font-size: .92rem; color: var(--text-2); }
.aside li { padding-block: 7px; border-bottom: 1px solid var(--line); }
.aside li:last-child { border-bottom: 0; }

/* ==========================================================================
   Confirmation (thanks.html)
   ========================================================================== */

.done-wrap { padding-block: var(--s-6); text-align: center; }
.seal {
  width: 62px; height: 62px;
  margin: 0 auto var(--s-3);
  border-radius: 50%;
  background: var(--ascent);
  display: grid;
  place-items: center;
  color: #05101F;
}
.done-wrap h1 { margin-inline: auto; max-width: 18ch; }
.done-wrap .lede { margin: var(--s-3) auto 0; }

.next {
  margin-top: var(--s-5);
  text-align: start;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.next div { background: var(--surface); padding: var(--s-3); }
.next h3 { margin-bottom: 6px; font-size: 1.03rem; }
.next p { color: var(--text-2); font-size: .95rem; margin: 0; }
.next-when { font-size: .82rem; color: var(--cyan); display: block; margin-bottom: 8px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero .shell,
  .systems,
  .proof,
  .offer,
  .apply-grid { grid-template-columns: 1fr; }
  .fit { grid-template-columns: 1fr; }
  .step { grid-template-columns: 54px 1fr; }
  .step-when {
    grid-column: 2;
    border-inline-start: 0;
    padding-inline-start: 0;
    border-top: 1px solid var(--line-solid);
    padding-top: 9px;
    margin-top: 4px;
  }
  .aside { position: static; }

  /* The chat used to sit above the headline here, so a phone visitor landed
     on a conversation with no idea whose it was. Text leads, demo follows. */
  .hero .shell { gap: var(--s-4); }
  .hero { padding-block: var(--s-4) var(--s-5); }
  .hero h1 { max-width: 18ch; }
  .hero .lede { max-width: none; }
}

@media (max-width: 700px) {
  /* one visible action at all times, once the hero has scrolled away */
  .mobile-cta { display: inline-flex; }
  body { padding-bottom: 84px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding-block: var(--s-5); }
  .topbar .brand small { display: none; }
  .topbar .btn { padding: 11px 18px; }

  .msg { max-width: 90%; font-size: .93rem; }
  .msgs { min-height: 300px; }
  .thread { padding: var(--s-2); border-radius: var(--r-md); }

  .hero-meta { gap: var(--s-3) var(--s-2); }
  .hero-meta div { flex: 1 1 calc(33% - var(--s-2)); min-width: 88px; }
  .hero-meta b { font-size: 1.12rem; }
  .hero-meta span { font-size: .78rem; line-height: 1.45; display: block; }

  .hero-cta .btn,
  .final .btn { width: 100%; justify-content: center; }

  .ledger div { padding: var(--s-3) var(--s-2) var(--s-3); }
  .offer { padding: var(--s-3) var(--s-2); }
  .fit-col, .system { padding: var(--s-2); }

  .nav-row { position: sticky; bottom: 0; background: var(--ink); padding-bottom: var(--s-2); }
  .nav-row .btn { flex: 1; justify-content: center; }

  footer .shell { flex-direction: column; align-items: flex-start; }
  footer nav { margin-inline-start: -12px; }
}

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