/* ninoprodan.com: one theme, one component kit (spec docs/ninoprodan-ui.md sections 4-5). */

/* ---------- Font: Inter variable, self-hosted (latin + latin-ext) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  /* colors (live stylesheet values) */
  --bg: #273035;
  --surface-2: #364349;
  --fg: #f8fafc;
  --primary: #00bdd6;
  --primary-hover: rgb(0 189 214 / 0.9);
  --primary-soft: rgb(0 189 214 / 0.8);
  --on-primary: #0f1923;
  --border: #415058;
  --danger: #7f1d1d;
  --danger-text: #f87171;
  --on-danger: #fafafa;
  --surface-0: #111827;
  --surface-1: #1f2937;
  --surface-3: #374151;
  --line: #4b5563;
  --text-1: #e5e7eb;
  --text-2: #d1d5db;
  --text-3: #9ca3af;
  --white: #ffffff;
  --scrim-hero: rgb(0 0 0 / 0.6);
  --header-scrolled: rgb(17 24 39 / 0.8);

  /* type */
  --font: "Inter", "Inter Fallback", system-ui, sans-serif;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-30: 1.875rem;
  --fs-36: 2.25rem;
  --fs-60: 3.75rem;

  /* spacing scale */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-48: 48px;
  --sp-64: 64px;
  --section-y: var(--sp-64);
  --header-h: 72px;

  /* layout */
  --container: 1280px;
  --gutter: 24px;
  --measure-narrow: 768px;
  --measure-wide: 896px;

  /* shape and effects */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-bubble: 16px;
  --radius-pill: 9999px;
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-glow: 0 10px 15px -3px rgb(0 189 214 / 0.2), 0 4px 6px -4px rgb(0 189 214 / 0.2);
  --ease: 300ms ease;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-16);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }
h1, h2, h3, p, blockquote, ul, ol, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--sp-16); top: -100px; z-index: 200;
  background: var(--primary); color: var(--on-primary); padding: var(--sp-8) var(--sp-16);
  border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: var(--sp-16); }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }

/* ---------- Icons ---------- */
.icon { flex: none; width: 24px; height: 24px; }
.icon--20 { width: 20px; height: 20px; }
.icon--24 { width: 24px; height: 24px; }
.icon--32 { width: 32px; height: 32px; }
.icon--40 { width: 40px; height: 40px; }
.icon--64 { width: 64px; height: 64px; }

/* ---------- Layout: one container, one measure ---------- */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.measure { margin-inline: auto; }
.measure--narrow { max-width: var(--measure-narrow); }
.measure--wide { max-width: var(--measure-wide); }
.section { padding-block: var(--section-y); scroll-margin-top: 80px; }
.section--bg { background: var(--bg); }
.section--surface { background: var(--surface-2); }
.page { padding-top: calc(var(--header-h) + var(--sp-32)); padding-bottom: var(--sp-48); }
.page-404 .page { display: flex; flex-direction: column; justify-content: center; }
.page-pillar .page { display: flex; flex-direction: column; }
.page-pillar .page > .container { flex: 1 0 auto; display: flex; flex-direction: column; }
.page-pillar .pillar-layout { flex: 1 0 auto; align-items: stretch; }
.page-pillar .pillar-aside { align-self: start; }
.page-pillar .pillar-main { display: flex; flex-direction: column; }
.page-pillar .pillar-result { flex: 1 0 auto; }

/* ---------- Type ---------- */
.h2 {
  font-size: var(--fs-30); line-height: 2.25rem; font-weight: 700; color: var(--white);
  margin-bottom: var(--sp-24);
}
.lead-body { font-size: var(--fs-18); line-height: 1.75rem; color: var(--text-2); }
.lead-body + .lead-body { margin-top: var(--sp-16); }
@media (min-width: 768px) {
  .h2 { font-size: var(--fs-36); line-height: 2.5rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-8);
  border: 0; background: none; padding: 0; text-align: center;
  transition: background-color var(--ease), color var(--ease), transform var(--ease), opacity var(--ease);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--pill-primary {
  background: var(--primary); color: var(--on-primary); font-weight: 700;
  padding: var(--sp-12) var(--sp-32); border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
  min-height: 48px;
}
.btn--pill-primary:hover:not(:disabled) { background: var(--primary-hover); transform: scale(1.05); }
.btn--primary {
  background: var(--primary); color: var(--on-primary); font-weight: 500; font-size: var(--fs-14);
  height: 40px; padding: 0 var(--sp-16); border-radius: var(--radius-sm);
}
.btn--primary:hover { background: var(--primary-hover); }
.btn--text { color: var(--primary); font-weight: 600; min-height: 32px; }
.btn--text:hover { color: var(--primary-soft); }
.btn--icon { width: 44px; height: 44px; color: var(--text-1); border-radius: var(--radius); }
.btn--icon:hover { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-block: var(--sp-16);
  background: transparent;
  transition: background-color var(--ease), box-shadow var(--ease), backdrop-filter var(--ease);
}
.site-header.is-scrolled, .site-header.is-solid, .site-header.is-open {
  background: var(--header-scrolled);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.wordmark { font-size: var(--fs-24); line-height: 2rem; font-weight: 700; color: var(--white); transition: color var(--ease); }
.wordmark:hover { color: var(--primary); }
.nav { display: none; align-items: center; gap: var(--sp-32); }
.nav-link {
  font-weight: 500; color: var(--text-1); transition: color var(--ease);
  border-bottom: 2px solid transparent; padding-block: 2px;
}
.nav-link:hover { color: var(--primary); }
.nav-link[aria-current="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.nav-toggle { margin-right: -10px; }
.nav-toggle .nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.nav-panel {
  margin-top: var(--sp-16); background: var(--surface-1); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.nav-panel__link {
  display: block; padding: var(--sp-12) var(--sp-16); text-align: center; color: var(--white);
  transition: background-color var(--ease); border-radius: var(--radius);
}
.nav-panel__link:hover { background: var(--surface-3); }
@media (min-width: 768px) {
  .nav { display: flex; }
  .nav-toggle, .nav-panel { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 80vh; min-height: 520px; max-height: 760px;
  overflow: hidden; background: var(--surface-0);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero__overlay {
  position: relative; z-index: 1; height: 100%; background: var(--scrim-hero);
  display: flex; align-items: center; justify-content: center;
  padding-top: var(--header-h);
}
.hero__content { text-align: center; color: var(--white); display: flex; flex-direction: column; align-items: center; }
.hero__title {
  max-width: var(--measure-narrow);
  font-size: var(--fs-36); line-height: 1.25; font-weight: 700; margin-bottom: var(--sp-16);
  text-shadow: 2px 2px 8px rgb(0 0 0 / 0.7);
}
.hero__subtitle {
  max-width: var(--measure-narrow);
  font-size: var(--fs-18); line-height: 1.75rem; color: var(--text-1); margin-bottom: var(--sp-32);
  text-shadow: 1px 1px 4px rgb(0 0 0 / 0.7);
}
@media (min-width: 768px) {
  .hero__title { font-size: var(--fs-60); line-height: 1; }
  .hero__subtitle { font-size: var(--fs-20); line-height: 1.75rem; }
}

/* ---------- Cards and pillars ---------- */
.card { background: var(--surface-0); border-radius: var(--radius); padding: var(--sp-32); box-shadow: var(--shadow-lg); }
.section__title { margin-bottom: var(--sp-48); }
.pillar-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-32); }
@media (min-width: 768px) { .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-40); } }
@media (min-width: 1024px) { .pillar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card--pillar { display: flex; flex-direction: column; text-align: left; transition: box-shadow var(--ease); }
.card--pillar:hover, .card--pillar:focus-within { box-shadow: var(--shadow-glow); }
.card__head { display: flex; align-items: center; gap: var(--sp-16); margin-bottom: var(--sp-24); }
.card__title { font-size: var(--fs-24); line-height: 2rem; font-weight: 700; color: var(--white); }
.card__body { color: var(--text-3); flex-grow: 1; }
.card--pillar .btn--text { margin-top: var(--sp-24); align-self: flex-start; }
@media (max-width: 767px) { .card { padding: var(--sp-24); } }

/* ---------- Community ---------- */
.community__icon { margin: 0 auto var(--sp-24); }
.community__title { margin-bottom: var(--sp-32); }
.quote {
  font-size: var(--fs-24); line-height: 2rem; font-style: italic; color: var(--text-2);
  border-left: 4px solid var(--primary); padding-left: var(--sp-24); margin: 0;
}
.quote__by { margin-top: var(--sp-24); font-size: var(--fs-20); line-height: 1.75rem; font-weight: 600; color: var(--white); }
@media (max-width: 767px) { .quote { font-size: var(--fs-20); line-height: 1.75rem; } }

/* ---------- Contact form ---------- */
.contact__title { margin-bottom: var(--sp-16); }
.contact__lead { color: var(--text-3); margin-bottom: var(--sp-40); }
.field + .field { margin-top: var(--sp-24); }
.field__label { display: block; margin-bottom: var(--sp-8); font-size: var(--fs-14); line-height: 1.25rem; font-weight: 500; color: var(--text-2); }
.field__input {
  display: block; width: 100%; background: var(--surface-1); color: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; font-size: var(--fs-14); line-height: 1.25rem;
}
textarea.field__input { resize: vertical; min-height: 104px; }
.field__input::placeholder { color: var(--text-3); }
.field__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.field__input[aria-invalid="true"] { border-color: var(--danger-text); }
.field__error { margin-top: var(--sp-4); font-size: var(--fs-14); line-height: 1.25rem; color: var(--danger-text); }
.card--form .text-center { margin-top: var(--sp-24); }
.status { margin-top: var(--sp-16); color: var(--primary); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-0); color: var(--text-3); padding-block: var(--sp-32); }
.site-footer__inner { text-align: center; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-8) var(--sp-24); margin-bottom: var(--sp-16); }
.site-footer__links a { transition: color var(--ease); padding-block: var(--sp-4); }
.site-footer__links a:hover { color: var(--white); }
.site-footer__tagline { font-size: var(--fs-14); line-height: 1.25rem; margin-top: var(--sp-8); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { margin-bottom: var(--sp-32); font-size: var(--fs-14); line-height: 1.25rem; color: var(--text-3); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.breadcrumbs li { display: flex; align-items: center; gap: var(--sp-8); }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--text-2); transition: color var(--ease); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current="page"] { color: var(--white); font-weight: 500; }

/* ---------- Pillar page ---------- */
.pillar-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-48); align-items: start; }
@media (min-width: 1024px) { .pillar-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-64); } }
.pillar-head { display: flex; align-items: center; gap: var(--sp-16); margin-bottom: var(--sp-24); }
.pillar-head__title { font-size: var(--fs-30); line-height: 2.25rem; font-weight: 700; color: var(--primary); }
@media (min-width: 768px) { .pillar-head__title { font-size: var(--fs-36); line-height: 2.5rem; } }
.pillar-desc { font-size: var(--fs-18); line-height: 1.75rem; color: var(--text-2); margin-bottom: var(--sp-32); max-width: var(--measure-narrow); }
.pillar-result { background: var(--surface-1); min-height: 240px; }
.pillar-result__blocks { color: var(--text-2); }
.result-block + .result-block { margin-top: var(--sp-24); }
.result-block__title { font-size: var(--fs-18); line-height: 1.75rem; font-weight: 600; color: var(--primary); margin-bottom: var(--sp-8); }
.result-block__question { font-style: italic; }
.pillar-result__actions { margin-top: var(--sp-24); }
.spinner-wrap { display: flex; align-items: center; justify-content: center; height: 192px; }
.spinner {
  width: 64px; height: 64px; border-radius: 50%;
  border-top: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  border-left: 2px solid transparent; border-right: 2px solid transparent;
  animation: spin 1s linear infinite;
}
.pillar-aside__title { font-size: var(--fs-20); line-height: 1.75rem; font-weight: 600; color: var(--white); margin-bottom: var(--sp-16); }
.pillar-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-12); }
.pillar-link {
  display: flex; align-items: center; gap: var(--sp-12); min-height: 56px;
  padding: var(--sp-12) var(--sp-16); background: var(--surface-0); border-radius: var(--radius);
  color: var(--text-1); font-weight: 500; transition: box-shadow var(--ease), color var(--ease);
}
.pillar-link:hover { color: var(--white); box-shadow: var(--shadow-glow); }
@media (min-width: 640px) and (max-width: 1023px) { .pillar-aside .pillar-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pillar-links--grid { margin-top: var(--sp-48); grid-template-columns: 1fr; }
@media (min-width: 640px) { .pillar-links--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pillar-links--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 404 ---------- */
.notfound__code { font-size: var(--fs-60); line-height: 1; font-weight: 700; color: var(--primary); margin-bottom: var(--sp-16); }
.notfound .lead-body { margin-bottom: var(--sp-32); }
.pillar-link--card { flex-direction: column; align-items: flex-start; gap: var(--sp-8); height: 100%; padding: var(--sp-16) var(--sp-24); }
.pillar-link__row { display: flex; align-items: center; gap: var(--sp-12); font-weight: 600; color: var(--white); }
.pillar-link__desc { font-size: var(--fs-14); line-height: 1.25rem; color: var(--text-3); font-weight: 400; }

/* ---------- Privacy ---------- */
.privacy__title { font-size: var(--fs-36); line-height: 2.5rem; font-weight: 700; color: var(--primary); margin-bottom: var(--sp-32); }
@media (max-width: 767px) { .privacy__title { font-size: var(--fs-30); line-height: 2.25rem; } }
.prose { color: var(--text-2); line-height: 1.75; }
.prose > * + * { margin-top: var(--sp-24); }
.prose .privacy__date { font-weight: 600; }
.prose h2 { font-size: var(--fs-24); line-height: 2rem; font-weight: 600; color: var(--white); margin-bottom: var(--sp-12); }
.prose h3 { font-size: var(--fs-20); line-height: 1.75rem; font-weight: 600; color: var(--white); margin: var(--sp-16) 0 var(--sp-8); }
.prose p + p { margin-top: var(--sp-12); }
.prose ul { padding-left: 1.5em; margin-top: var(--sp-12); list-style: disc; }
.prose li + li { margin-top: var(--sp-8); }
.prose li::marker { color: var(--text-3); }
.prose strong { color: var(--white); font-weight: 600; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.prose a:hover { color: var(--primary-soft); }
.privacy__back { margin-top: var(--sp-48); text-align: center; }

/* ---------- Chat ---------- */
.chat { position: fixed; right: var(--chat-edge, 32px); bottom: var(--chat-edge, 32px); z-index: 60; }
.chat__launcher {
  width: 64px; height: 64px; border-radius: var(--radius-pill); border: 0;
  background: var(--primary); color: var(--white); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  transition: background-color var(--ease), transform var(--ease);
}
.chat__launcher:hover { background: var(--primary-hover); transform: scale(1.1); }
.chat__launcher .chat__icon-close { display: none; }
.chat__launcher[aria-expanded="true"] .chat__icon-open { display: none; }
.chat__launcher[aria-expanded="true"] .chat__icon-close { display: block; }
.chat__panel {
  position: fixed; right: var(--chat-edge, 32px); bottom: calc(var(--chat-edge, 32px) + 64px + var(--sp-16));
  width: min(24rem, 100vw - 2 * var(--chat-edge, 32px)); height: 60vh; max-height: calc(100vh - 96px - var(--chat-edge, 32px) - var(--sp-16));
  display: flex; flex-direction: column;
  background: var(--surface-0); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-2xl); overflow: hidden;
  animation: pop-in 150ms ease-out;
}
.chat__title { flex: none; padding: var(--sp-16); background: var(--surface-1); font-size: var(--fs-18); line-height: 1.75rem; font-weight: 700; color: var(--white); text-align: center; }
.chat__log { flex: 1 1 auto; overflow-y: auto; padding: var(--sp-16); display: flex; flex-direction: column; gap: var(--sp-16); overscroll-behavior: contain; }
.bubble { max-width: 20rem; padding: var(--sp-8) var(--sp-16); border-radius: var(--radius-bubble); overflow-wrap: anywhere; white-space: pre-wrap; }
.bubble--bot { align-self: flex-start; background: var(--surface-3); color: var(--text-1); }
.bubble--user { align-self: flex-end; background: var(--primary); color: var(--on-primary); }
@media (min-width: 1024px) { .bubble { max-width: 28rem; } }
.typing { display: flex; gap: var(--sp-4); align-items: center; height: 24px; }
.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.typing span:nth-child(2) { animation-delay: 150ms; }
.typing span:nth-child(3) { animation-delay: 300ms; }
.chat__form { flex: none; display: flex; padding: var(--sp-16); background: var(--surface-1); border-top: 1px solid var(--border); }
.chat__input {
  flex: 1 1 auto; min-width: 0; height: 44px; padding: var(--sp-8);
  background: var(--surface-3); border: 1px solid var(--line); border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius); color: var(--white);
}
.chat__input::placeholder { color: var(--text-3); }
.chat__input:focus { outline: none; border-color: var(--primary); }
.chat__send {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center;
  transition: background-color var(--ease);
}
.chat__send:hover:not(:disabled) { background: var(--primary-hover); }
.chat__send:disabled, .chat__input:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 639px) { .chat { --chat-edge: 16px; } }

/* ---------- Toast ---------- */
.toast-region {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0;
  display: flex; flex-direction: column; padding: var(--sp-16); pointer-events: none;
}
@media (min-width: 640px) {
  .toast-region { top: auto; left: auto; bottom: 0; right: 0; width: 420px; max-width: 100vw; }
}
.toast {
  pointer-events: auto; position: relative; display: grid; gap: var(--sp-4);
  padding: var(--sp-16) var(--sp-48) var(--sp-16) var(--sp-24);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--fg); box-shadow: var(--shadow-lg);
  font-size: var(--fs-14); line-height: 1.25rem; animation: pop-in 150ms ease-out;
}
.toast--danger { background: var(--danger); border-color: var(--danger); color: var(--on-danger); }
.toast__title { font-weight: 600; }
.toast__close {
  position: absolute; top: var(--sp-8); right: var(--sp-8); width: 32px; height: 32px;
  border: 0; background: none; color: inherit; opacity: 0.7; display: flex; align-items: center; justify-content: center;
}
.toast__close:hover { opacity: 1; }

/* ---------- Motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.5; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .btn--pill-primary:hover:not(:disabled), .chat__launcher:hover { transform: none; }
}

/* ---------- Phone tap targets (>= 44px) ---------- */
@media (max-width: 767px) {
  .wordmark, .site-footer__links a, .breadcrumbs a, .btn--text { display: inline-flex; align-items: center; min-height: 44px; }
  .breadcrumbs li { min-height: 44px; }
  .breadcrumbs { margin-bottom: var(--sp-16); }
  .prose a { display: inline-block; padding-block: 12px; margin-block: -12px; }
}
