/* ─────────────────────────────────────────────────────────────────────
   Corbellic Blueprint Builder — design system
   Light-first, warm neutrals, deep navy ink, one brass accent.
   ───────────────────────────────────────────────────────────────────── */
:root {
  --bg: #F6F4EF;
  --bg-2: #EFECE4;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;
  --ink: #14212F;
  --ink-2: #33404E;
  --muted: #6B7684;
  --faint: #9AA4B0;
  --line: #E4DFD4;
  --line-2: #EEEAE2;
  --accent: #B48A3C;
  --accent-ink: #7A5B21;
  --accent-soft: #F6EEDC;
  --accent-soft-2: #FBF7EE;
  --navy: #14212F;
  --navy-2: #1F3247;
  --on-navy: #F4F1EA;
  --success: #2C7A5A;
  --success-soft: #E3F1EA;
  --danger: #B34A33;
  --danger-soft: #F8E7E2;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(20,33,47,.04), 0 8px 24px -12px rgba(20,33,47,.12);
  --shadow-lg: 0 2px 4px rgba(20,33,47,.05), 0 24px 48px -20px rgba(20,33,47,.22);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F171F; --bg-2: #141E29; --surface: #182330; --surface-2: #1D2937;
    --ink: #EEF2F6; --ink-2: #C9D2DC; --muted: #8E9AA8; --faint: #66727F;
    --line: #273443; --line-2: #202B38;
    --accent: #D2A65A; --accent-ink: #E8C784; --accent-soft: #2A2416; --accent-soft-2: #211D14;
    --navy: #0B1219; --navy-2: #131D28; --on-navy: #F4F1EA;
    --success: #5FBF95; --success-soft: #163126; --danger: #E27A62; --danger-soft: #3A1E17;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 48px -20px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--accent-soft); }
[hidden] { display: none !important; }

/* ── Type ───────────────────────────────────────────────────────────── */
.display { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.12; font-variation-settings: "opsz" 72, "SOFT" 30; }
h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 8px; }
h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 6px; }
h3 { font-size: 17px; margin: 0 0 6px; font-weight: 650; letter-spacing: -0.005em; }
.eyebrow { font-size: 11.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow.muted { color: var(--muted); }
.lead { color: var(--ink-2); font-size: 16px; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }

/* ── Shell ──────────────────────────────────────────────────────────── */
.shell { max-width: 1120px; margin: 0 auto; padding: 28px 24px 96px; }
@media (max-width: 720px) { .shell { padding: 18px 16px 88px; } }

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line-2);
}
/* Blur only on desktop: backdrop-filter makes the header the containing block
   for the fixed mobile nav, which would pin the nav to the header instead of the screen. */
@media (min-width: 721px) {
  .topbar { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
}
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 18px; }
@media (max-width: 720px) { .topbar-inner { padding: 0 16px; height: 58px; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--navy); color: var(--on-navy); display: grid; place-items: center; font-family: var(--display); font-size: 17px; }
.brand em { font-style: normal; color: var(--accent-ink); }
.brand .brand-sub { font-weight: 500; color: var(--muted); }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 550; font-size: 14px; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a.active { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; border: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.menu { position: relative; }
.menu-panel { position: absolute; right: 0; top: 44px; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 40; }
.menu-panel.open { display: block; }
.menu-panel .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; font-size: 13px; color: var(--muted); word-break: break-all; }
.menu-panel button, .menu-panel a { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; cursor: pointer; font-size: 14px; }
.menu-panel button:hover, .menu-panel a:hover { background: var(--bg-2); }
@media (max-width: 720px) {
  .nav { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; z-index: 30; }
  .nav a { text-align: center; padding: 10px 6px; font-size: 13px; }
  .brand .brand-sub { display: none; }
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--navy); color: var(--on-navy); }
.btn-primary:hover:not(:disabled) { background: var(--navy-2); }
.btn-accent { background: var(--accent); color: #1B1408; }
.btn-accent:hover:not(:disabled) { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { background: var(--surface); border-color: var(--faint); }
.btn-quiet { background: transparent; color: var(--muted); padding: 8px 10px; }
.btn-quiet:hover:not(:disabled) { color: var(--ink); background: var(--bg-2); }
.btn-sm { padding: 8px 13px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn .kbd { font-family: var(--mono); font-size: 11px; opacity: .7; padding: 2px 5px; border-radius: 5px; background: rgba(255,255,255,.14); }

/* ── Cards & layout primitives ─────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
@media (max-width: 720px) { .card-pad { padding: 18px; } }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head .lead { margin: 4px 0 0; font-size: 15px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line-2); margin: 20px 0; }

/* ── Pills / progress ──────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.pill.done { color: var(--success); background: var(--success-soft); border-color: transparent; }
.pill.now { color: var(--accent-ink); background: var(--accent-soft); border-color: transparent; }
.pill.free { color: var(--accent-ink); background: var(--accent-soft); border-color: transparent; }
.bar { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }
.bar.navy > i { background: var(--navy); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.dot.done { background: var(--success); }
.dot.started { background: var(--accent); }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line-2) 0); position: relative; flex: none; }
.ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; font-weight: 700; font-size: 13px; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { background: var(--navy); color: var(--on-navy); border-radius: var(--radius-lg); padding: 32px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(180,138,60,.35), transparent 70%); pointer-events: none; }
.hero .eyebrow { color: #D9B872; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(244,241,234,.78); }
.hero .ring::after { background: var(--navy); }
.hero .ring { background: conic-gradient(#D9B872 calc(var(--p) * 1%), rgba(255,255,255,.14) 0); }
.hero .ring span { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; position: relative; }
.hero-next { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 16px 18px; min-width: 300px; }
.hero-next .eyebrow { margin-bottom: 4px; }
.hero-next .title { font-weight: 650; font-size: 16px; color: #fff; }
.hero-next .sub { color: rgba(244,241,234,.7); font-size: 13px; margin-top: 2px; }
.hero-next .btn { margin-top: 14px; width: 100%; }
@media (max-width: 820px) { .hero { padding: 24px 20px; } .hero-grid { grid-template-columns: 1fr; } .hero-next { min-width: 0; } }

/* ── Lists of things ───────────────────────────────────────────────── */
.list { display: flex; flex-direction: column; gap: 8px; }
.item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .08s ease, box-shadow .15s ease;
}
.item:hover { border-color: var(--faint); box-shadow: var(--shadow); }
.item .num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--bg-2); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.item.done .num { background: var(--success-soft); color: var(--success); }
.item.now .num { background: var(--accent-soft); color: var(--accent-ink); }
.item .t { font-weight: 600; }
.item .s { color: var(--muted); font-size: 13px; margin-top: 1px; }
.item .meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.item .chev { color: var(--faint); }
@media (max-width: 620px) { .item { grid-template-columns: auto 1fr; } .item .meta { grid-column: 2; justify-content: flex-start; } }

.mod-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.mod-card:hover { border-color: var(--faint); box-shadow: var(--shadow-lg); }
.mod-card .top { display: flex; justify-content: space-between; align-items: center; }
.mod-card h3 { font-family: var(--display); font-weight: 500; font-size: 20px; }
.mod-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; flex: 1; }
.mod-card .foot { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.mod-card .bar { flex: 1; }

/* ── Breadcrumbs / page head ───────────────────────────────────────── */
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--faint); }
.page-head { margin-bottom: 22px; }
.page-head .lead { margin-top: 6px; }

/* ── Lesson workspace ──────────────────────────────────────────────── */
.workspace { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .workspace { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field textarea, .field input[type=text] {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px;
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 14.5px; line-height: 1.5;
  resize: vertical; min-height: 72px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea:focus, .field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.field textarea::placeholder { color: var(--faint); }
.field .hint { font-size: 12px; color: var(--faint); margin-top: 4px; }
.form-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.autosave { font-size: 12px; color: var(--faint); }
.autosave.saved { color: var(--success); }
.produces { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft-2); border: 1px solid var(--accent-soft); font-size: 13.5px; color: var(--ink-2); margin-bottom: 18px; }
.produces b { color: var(--accent-ink); }

.coach { min-height: 320px; position: relative; }
.coach-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.coach-head .who { font-weight: 650; }
.coach-head .state { color: var(--muted); font-size: 13px; }
.coach-body { padding: 8px 24px 24px; }
.coach-empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.coach-empty .display { color: var(--ink); font-size: 22px; margin-bottom: 6px; }
.thinking { display: inline-flex; gap: 4px; align-items: center; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: think 1.2s infinite ease-in-out; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes think { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.cursor::after { content: "▍"; color: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.coach-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 24px 20px; }

/* Markdown output */
.md { font-size: 15px; line-height: 1.7; color: var(--ink); overflow-wrap: anywhere; }
.md h1, .md h2, .md h3, .md h4 { font-family: var(--font); letter-spacing: -0.01em; line-height: 1.3; margin: 26px 0 8px; }
.md h1 { font-size: 21px; } .md h2 { font-size: 19px; font-weight: 700; } .md h3 { font-size: 16px; font-weight: 650; } .md h4 { font-size: 15px; font-weight: 650; color: var(--ink-2); }
.md h2:first-child, .md h3:first-child, .md p:first-child { margin-top: 8px; }
.md p { margin: 0 0 12px; }
.md ul, .md ol { margin: 0 0 14px; padding-left: 22px; }
.md li { margin: 4px 0; }
.md li > ul, .md li > ol { margin: 4px 0 0; }
.md strong { font-weight: 650; }
.md blockquote { margin: 12px 0; padding: 10px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft-2); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.md code { font-family: var(--mono); font-size: 13px; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }
.md pre { background: var(--bg-2); padding: 14px; border-radius: 10px; overflow: auto; }
.md pre code { background: none; padding: 0; }
.md hr { border: 0; border-top: 1px solid var(--line-2); margin: 18px 0; }
.md table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14px; }
.md th, .md td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.md th { background: var(--bg-2); }

/* Blueprint Notes card */
.notes { margin: 8px 24px 20px; border-radius: var(--radius); border: 1px solid var(--accent-soft); background: var(--accent-soft-2); padding: 18px 20px; }
.notes-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.notes-head .eyebrow { flex: 1; }
.notes .md { font-size: 14.5px; }
.notes .md p { margin: 0 0 8px; }
.notes textarea { width: 100%; min-height: 160px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; font-size: 14px; background: var(--surface); color: var(--ink); resize: vertical; }
.saved-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--success); }
.saved-flag::before { content: "✓"; }

.lesson-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }

/* ── My Blueprint ──────────────────────────────────────────────────── */
.bp-module { margin-top: 28px; }
.bp-module h2 { display: flex; align-items: baseline; gap: 12px; }
.bp-module h2 .n { font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent-ink); }
.bp-entry { padding: 18px 20px; margin-top: 10px; }
.bp-entry .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.bp-entry .head a { font-size: 13px; color: var(--muted); text-decoration: none; }
.bp-entry .head a:hover { color: var(--ink); }
.bp-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }

/* ── Auth wall / states ────────────────────────────────────────────── */
.wall { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 24px; }
.wall-card { max-width: 440px; width: 100%; text-align: center; padding: 36px 32px; }
.wall-card .brand-mark { width: 48px; height: 48px; font-size: 26px; border-radius: 14px; margin: 0 auto 16px; }
.wall-card .actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: var(--on-navy); padding: 11px 16px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; transition: all .2s ease; z-index: 50; pointer-events: none; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 720px) { .toast { bottom: 84px; } }
.error-box { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }

/* Free banner */
.free-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 22px; }
.free-banner .txt { flex: 1; min-width: 220px; font-size: 14px; color: var(--ink-2); }
.upgrade { margin-top: 36px; padding: 28px; border-radius: var(--radius-lg); background: var(--navy); color: var(--on-navy); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.upgrade h2 { color: #fff; }
.upgrade p { margin: 0; color: rgba(244,241,234,.78); max-width: 60ch; }
@media (max-width: 720px) { .upgrade { grid-template-columns: 1fr; } }

/* ── Admin table ───────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.table th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.table tr:hover td { background: var(--surface-2); }
.table .bar { width: 120px; }
.table-wrap { overflow-x: auto; }
.stat { padding: 18px 20px; }
.stat .v { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12.5px; color: var(--muted); }

/* ── Print (My Blueprint) ──────────────────────────────────────────── */
@media print {
  body { background: #fff; color: #000; }
  .topbar, .nav, .no-print, .toast { display: none !important; }
  .shell { padding: 0; max-width: none; }
  .card { box-shadow: none; border-color: #ddd; break-inside: avoid; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.fade-in { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
