/* EKO - Linear-class design system. Dark default, light via [data-theme="light"]. */
:root {
  --bg: #0a0a0b; --bg-soft: #101013; --panel: #141517; --panel2: #0e0f12;
  --ink: #f7f8f8; --muted: #9ba1ac; --faint: #6b7079;
  --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.14);
  --brand: #4db6c6; --accent: #5e6ad2; --accent2: #7c85e0;
  --ok: #4cc38a; --warn: #e5a13c; --err: #f16a6a;
  --radius: 12px; --glow: 0 0 0 1px rgba(94,106,210,.25), 0 8px 32px rgba(94,106,210,.12);
}
[data-theme="light"] {
  --bg: #ffffff; --bg-soft: #f7f7f9; --panel: #ffffff; --panel2: #fafafb;
  --ink: #181a1f; --muted: #5b6370; --faint: #8a919e;
  --line: #e7e8ee; --line2: #d7d9e2;
  --brand: #006a88; --accent: #5e6ad2; --accent2: #4c56b8;
  --ok: #0e9f6e; --warn: #b45309; --err: #dc2626;
  --glow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
  font: 16px/1.6 "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: hidden; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; opacity: .85; }
main { max-width: 1120px; margin: 0 auto; padding: 24px 24px 96px; }
h1, h2, h3, h4 { letter-spacing: -0.02em; }

/* ---------- header ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 60px;
  display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 18px;
  letter-spacing: 2px; color: var(--ink); }
.brand img { height: 26px; width: auto; display: block; }
.nav nav { display: flex; gap: 2px; flex: 1; }
.nav nav a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 6px 11px;
  border-radius: 8px; white-space: nowrap; }
.nav nav a:hover { color: var(--ink); background: var(--panel); opacity: 1; }
.nav .actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.theme-toggle { background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 8px; width: 34px; height: 34px; padding: 0; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; }
.theme-toggle:hover { color: var(--ink); border-color: var(--line2); box-shadow: none; transform: none; }
.menu-btn { display: none; background: transparent; border: 1px solid var(--line);
  color: var(--muted); border-radius: 8px; width: 34px; height: 34px; padding: 0; }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 8px 24px 16px; }
.mobile-menu a { display: block; padding: 10px 4px; color: var(--muted); font-weight: 500; }
.mobile-menu.open { display: block; }
@media (max-width: 860px) {
  .nav nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav .actions .btn.ghost { display: none; }
}

/* ---------- buttons ---------- */
button, .btn {
  background: var(--accent); color: #fff; border: 1px solid transparent; border-radius: 9px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
  min-height: 44px;
}
button:hover, .btn:hover { transform: translateY(-1px); opacity: 1; }
.btn.ghost, button.ghost { background: transparent; border: 1px solid var(--line2); color: var(--ink); }
.btn.brand { background: var(--brand); }
.btn.small, button.small { padding: 6px 14px; font-size: 13px; min-height: 34px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 28px 16px 36px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -140px 0 0; z-index: -1;
  background:
    radial-gradient(640px 320px at 22% 0%, rgba(94,106,210,.20), transparent 70%),
    radial-gradient(700px 360px at 78% 8%, rgba(77,182,198,.14), transparent 70%);
}
[data-theme="light"] .hero::before {
  background:
    radial-gradient(640px 320px at 22% 0%, rgba(94,106,210,.12), transparent 70%),
    radial-gradient(700px 360px at 78% 8%, rgba(0,106,136,.08), transparent 70%);
}
.pill { display: inline-block; font-size: 12px; font-weight: 650; letter-spacing: .8px;
  color: var(--accent2); background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 5px 13px; border-radius: 999px; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 6.6vw, 64px); line-height: 1.05; margin: 20px 0 14px;
  font-weight: 800; letter-spacing: -0.03em; }
.hero h1 .grad { background: linear-gradient(90deg, var(--brand), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { max-width: 620px; margin: 0 auto 30px; color: var(--muted); font-size: 18px; }
.cta-row { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-fine { margin-top: 16px; color: var(--faint); font-size: 13.5px; }

/* ---------- sections & cards ---------- */
section { margin: 72px 0; }
section.alt { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 20px;
  padding: 48px 36px; margin-left: -12px; margin-right: -12px; }
.eyebrow { color: var(--accent2); font-size: 12.5px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; margin-bottom: 8px; }
.sec { font-size: clamp(26px, 4vw, 34px); margin: 0 0 8px; font-weight: 750; }
.sec-sub { color: var(--muted); max-width: 620px; margin-bottom: 26px; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin: 10px 0; transition: border-color .15s ease, box-shadow .15s ease; }
.card:hover { border-color: var(--line2); box-shadow: var(--glow); }
.card h3 { margin: 0 0 8px; font-size: 16.5px; }
.card p { color: var(--muted); font-size: 16px; margin: 6px 0; }
.steps { counter-reset: s; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0;
  border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step::before { counter-increment: s; content: counter(s); flex: none; width: 30px; height: 30px;
  border-radius: 8px; background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent2); font-weight: 700; display: flex; align-items: center;
  justify-content: center; font-size: 14px; }
.step h3 { margin: 2px 0 4px; font-size: 16px; }
.step p { color: var(--muted); font-size: 16px; margin: 0; }

/* product visual: browser-frame mock */
.frame { border: 1px solid var(--line2); border-radius: 14px; background: var(--panel2);
  overflow: hidden; box-shadow: var(--glow); }
.frame-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: var(--panel); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.frame-body { padding: 22px; }
.badge-ok { color: var(--ok); font-weight: 700; }
.dimmed { color: var(--faint); }

/* pricing */
.price { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0; }
.avail { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .6px;
  color: var(--faint); }

/* ---------- forms ---------- */
input, textarea, select {
  background: var(--panel2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 9px; padding: 12px 14px; font-size: 15px; width: 100%; min-height: 44px;
}
/* Choice-list icon replaces the platform's down chevron; select stays native. */
select { appearance:none; -webkit-appearance:none; padding-right:44px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%236b7280' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M8 5h8M8 10h8M8 15h8M4 5h.01M4 10h.01M4 15h.01'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; background-size:20px 20px; }
select[multiple], select[size]:not([size="1"]) { background-image:none; padding-right:14px; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-color: var(--accent); }
label { display: flex; flex-direction: column; gap: 6px; color: var(--muted);
  font-size: 13.5px; font-weight: 550; }
.consent-row { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start;
  gap: 10px; font-size: 12px; font-weight: 400; line-height: 1.6; cursor: pointer; }
.consent-row input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px;
  min-height: 18px; padding: 0; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent-row span { min-width: 0; }
.consent-row a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.form-narrow { max-width: 480px; }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; cursor: pointer; background: var(--panel);
  flex-direction: row; color: var(--ink); font-size: 14.5px; }
.radio-card:hover { border-color: var(--line2); }
.radio-card input { width: auto; min-height: 0; margin-top: 3px; }
.radio-card:has(input:checked) { border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.radio-card b { display: block; }
.radio-card span { color: var(--muted); font-size: 13.5px; font-weight: 400; }

/* ---------- tables / misc ---------- */
.tbl { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line);
  vertical-align: top; }
.tbl th { color: var(--faint); font-weight: 600; font-size: 12px; text-transform: uppercase;
  letter-spacing: .6px; }
.material, .feedback { background: var(--panel2); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px; white-space: pre-wrap; color: var(--muted); font-size: 13.5px; }
.notice { background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--ink); border-radius: 12px; padding: 14px 18px; }
.notice.big h1 { margin: 0 0 6px; }
.error { color: var(--err); }
.ok { color: var(--ok); } .warn { color: var(--warn); }
.fine { color: var(--faint); font-size: 13px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px;
  word-break: break-all; }
.box { background: var(--panel2); border: 1px solid var(--line); padding: 10px 12px;
  border-radius: 8px; }
.narrow { max-width: 700px; margin: 0 auto; }
.wide { max-width: 1120px; margin: 0 auto; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } section.alt { padding: 32px 20px; } }
.result { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.tagline2 { font-size: 21px; color: var(--brand); font-weight: 700; }
.foot { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 96px; }
.foot-inner { max-width: 1120px; margin: 0 auto; padding: 52px 24px 30px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.foot h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--faint);
  margin: 0 0 12px; }
.foot a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.foot a:hover { color: var(--ink); }
.foot .tag { color: var(--faint); font-size: 14px; max-width: 280px; margin-top: 10px; }
.foot-bottom { max-width: 1120px; margin: 0 auto; padding: 16px 24px 26px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; color: var(--faint); font-size: 13px; }
@media (max-width: 820px) { .foot-inner { grid-template-columns: 1fr 1fr; } }

/* ---------- vibrancy layer (landing) ---------- */

/* terminal */
.term-frame { box-shadow: 0 0 0 1px rgba(94,106,210,.18), 0 12px 44px rgba(77,182,198,.10); }
.term-title { margin-left: auto; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px; color: var(--faint); }
.term { background: #0b0c10; color: #c9d1d9; font-family: ui-monospace, "SF Mono", Menlo,
  Consolas, monospace; font-size: 15.5px; line-height: 1.85; min-height: 178px;
  border-radius: 0 0 14px 14px; }
.t-line { white-space: pre-wrap; word-break: break-word; }
.t-cmd { color: #7fd4e0; }
.t-ok { color: #4cc38a; font-weight: 700; }
.t-line.t-ok { color: #a7f3d0; }
.t-line.t-ok .t-ok, .t-ok { color: #4cc38a; }
.t-line.t-in { color: #e5c07b; }
.t-in { color: #e5a13c; font-weight: 700; }
.t-pop { animation: tpop .28s ease-out; }
@keyframes tpop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.t-caret { display: inline-block; width: 8px; height: 16px; background: #4db6c6;
  vertical-align: -2px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ticker */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 13px 0; white-space: nowrap; position: relative; }
.ticker-inner { display: inline-flex; gap: 34px; padding-right: 34px; font-size: 14px;
  color: var(--muted); }
.ticker-run .ticker-inner { animation: tickscroll 26s linear infinite; }
.ticker-inner b { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700; background: linear-gradient(90deg, var(--brand), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.tick-sep { color: var(--faint); }
@keyframes tickscroll { to { transform: translateX(-50%); } }
.ticker:hover .ticker-inner { animation-play-state: paused; }

/* loop steps: check chips */
.chip-ok { display: inline-flex; align-items: center; margin-left: 10px; font-size: 11.5px;
  font-weight: 700; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 32%, transparent);
  padding: 2.5px 9px; border-radius: 999px; vertical-align: 2px; white-space: nowrap; }
.loop-steps .step h3 { display: flex; align-items: center; flex-wrap: wrap; }

/* feature cards */
.feat-grid { gap: 16px; }
.card.feat { position: relative; overflow: hidden; }
.card.feat::after { content: ""; position: absolute; inset: auto -30% -55% -30%; height: 70%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent),
  transparent); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.card.feat:hover::after { opacity: 1; }
.card.feat:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-2px); }
.card.feat { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.feat-emoji { font-size: 24px; line-height: 1; margin-bottom: 10px; }
.feat-tag { display: inline-block; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--brand);
  margin: -2px 0 6px; }

/* final CTA */
.cta-final { text-align: center; padding: 44px 24px;
  background:
    radial-gradient(420px 160px at 50% -20%, color-mix(in srgb, var(--accent) 22%, transparent),
    transparent), var(--panel); }

/* reveal on scroll - animates in, never hides content (safe for crawlers/no-JS) */
.reveal.revealed { animation: rise .55s ease both; }
@keyframes rise { from { opacity: .35; transform: translateY(12px); }
  to { opacity: 1; transform: none; } }

/* stronger hero glow */
.hero h1 { text-wrap: balance; }

@media (prefers-reduced-motion: reduce) {
  .ticker-run .ticker-inner { animation: none; }
  .reveal.revealed { animation: none; }
  .t-caret { animation: none; }
}

/* terminal: colorful emoji lines + emoji-safe font stack */
.term, .feat-emoji { font-family: ui-monospace, "SF Mono", Menlo, Consolas,
  "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", monospace; }
.feat-emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
  "Inter", sans-serif; }
.t-line.t-l1 { color: #7fd4e0; }
.t-line.t-l2 { color: #b3a1f7; }
.t-line.t-l3 { color: #e5c07b; }
.t-line.t-l4 { color: #7ee2a8; }
.t-line.t-l5 { color: #4db6c6; }
.tick-sep { margin: 0 2px; }

/* ---------- statband (replaces ticker) ---------- */
.statband { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 24px 8px; margin-bottom: 8px; }
.stat { text-align: center; }
.stat .v { display: block; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 27px; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--brand), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { display: block; margin-top: 5px; color: var(--faint); font-size: 13px; }
@media (max-width: 760px) { .statband { grid-template-columns: repeat(3, 1fr); row-gap: 20px; } }

/* ---------- playground ---------- */
.pg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .pg-grid { grid-template-columns: 1fr; } }
.pg-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; }
.pg-head { font-weight: 700; font-size: 15.5px; display: flex; align-items: center; gap: 9px;
  margin-bottom: 12px; }
.pg-badge { font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--accent2); background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 2px 8px; border-radius: 999px; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow-y: auto;
  padding: 4px 2px; }
.bbl { padding: 10px 14px; border-radius: 14px; font-size: 15.5px; line-height: 1.5; max-width: 94%; }
.bbl.engine { background: var(--panel2); border: 1px solid var(--line);
  align-self: flex-start; border-bottom-left-radius: 4px; }
.bbl.user { background: color-mix(in srgb, var(--accent) 18%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  align-self: flex-end; border-bottom-right-radius: 4px; }
.bbl.typing { display: inline-flex; gap: 5px; padding: 12px 16px; }
.bbl.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint);
  animation: tp 1s infinite; }
.bbl.typing i:nth-child(2) { animation-delay: .15s; }
.bbl.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tp { 0%,100% { opacity: .3; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }
.pg-controls { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.opt-btn { text-align: left; background: var(--panel2); border: 1px solid var(--line);
  color: var(--ink); border-radius: 10px; padding: 11px 14px; font-size: 15px;
  min-height: 44px; font-weight: 500; display: block; }
.opt-btn:hover { border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--panel)); transform: none; }
.score-chip { display: inline-flex; align-items: center; font-weight: 800; font-size: 12.5px;
  padding: 2px 10px; border-radius: 999px; margin-right: 6px; }
.score-chip.good { color: #0e9f6e; background: color-mix(in srgb, #0e9f6e 14%, transparent);
  border: 1px solid color-mix(in srgb, #0e9f6e 35%, transparent); }
.score-chip.mid { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.score-chip.low { color: var(--err); background: color-mix(in srgb, var(--err) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--err) 30%, transparent); }
.remember { margin-top: 9px; background: color-mix(in srgb, var(--brand) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
  border-radius: 10px; padding: 9px 12px; font-size: 14.5px; }
.remember ul { margin: 5px 0 0; padding-left: 18px; }
.pg-note { margin-top: 12px; }
.vcred { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  background: var(--panel2); margin-bottom: 12px; }
.vcred-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0;
  font-size: 15px; }
.vcred-row span { color: var(--faint); }
.vsteps { display: flex; flex-direction: column; gap: 7px; margin: 4px 0 8px; font-size: 15px; }
.vstep-line { color: var(--muted); }
.vstamp { display: none; margin: 10px 0 4px; font-size: 19px; font-weight: 800; color: var(--ok); }
.vstamp.show { display: block; animation: stampin .35s ease-out; }
@keyframes stampin { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }

/* ---------- topic tabs (engine sessions) ---------- */
.ttabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 16px; }
.ttab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px;
  font-size: 14.5px; font-weight: 700; color: var(--ink); cursor: pointer;
  background: var(--panel); border: 1.5px solid var(--line2); border-radius: 999px;
  min-height: 44px; transition: transform .12s ease, border-color .15s ease,
  background .15s ease, box-shadow .15s ease; }
.ttab:hover { transform: translateY(-2px); border-color: var(--accent);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 25%, transparent); }
.ttab.active { background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent),
  0 6px 22px color-mix(in srgb, var(--accent) 45%, transparent); }
.ttab.attn:not(.active) { animation: ttabpulse 1.6s ease-in-out 2; }
@keyframes ttabpulse {
  0%, 100% { border-color: var(--line2); box-shadow: none; }
  50% { border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
}
.t-dim, .t-line.t-dim { color: #8a8fa3; font-size: 14px; }
.sec-sub b { color: var(--ink); }

/* Creator pilot: a narrow writing column with an independent project checklist. */
.studio-hero { padding-bottom: 36px; }
.studio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.studio-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 28px; align-items: start; }
.studio-layout section, .studio-layout .card { margin-top: 0; margin-bottom: 0; }
.studio-aside { display: grid; gap: 20px; }
.studio-heading { padding-bottom: 20px; }
.studio-layout h2 { margin: 0; }
.studio-layout .eyebrow { margin-bottom: 0; }
.studio-save { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 0; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding: 8px 0; }
.checklist li span { color: var(--brand); }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.project-link { color: var(--ink); display: block; }
.studio-grid .card { margin: 0; }
/* Native disclosure behavior, with a consistent plus/minus instead of a triangle. */
summary { cursor:pointer; color:var(--brand); padding:8px 30px 8px 0; position:relative; display:block; list-style:none; }
summary::-webkit-details-marker { display:none; }
summary::marker { content:''; }
summary::before, summary::after { content:''; position:absolute; right:5px; top:50%; width:12px; height:2px; background:currentColor; border-radius:1px; }
summary::before { transform:rotate(90deg); }
details[open] > summary::before { display:none; }
textarea, input, select { max-width: 100%; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (max-width: 760px) {
  .studio-layout { grid-template-columns: minmax(0, 1fr); }
  .studio-aside { grid-row: auto; }
  main { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Creator pilot: outcome-led editorial layout, shared EKO palette. */
.eko-home { --home-space: clamp(48px, 7vw, 88px); }
.eko-home section { margin: 0; }
.home-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; padding: 32px 0 48px; position: relative; }
.home-hero::before { content: ''; position: absolute; inset: -24px -24px 0; z-index: -1; background: radial-gradient(ellipse at 25% 12%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 60%), radial-gradient(ellipse at 85% 60%, color-mix(in srgb, var(--brand) 11%, transparent), transparent 55%); }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 6px; vertical-align: 2px; }
.home-intro h1 { font-size: clamp(44px, 5.6vw, 67px); line-height: 1.04; letter-spacing: -.055em; margin: 25px 0 24px; }
.home-intro .grad { background: linear-gradient(105deg, var(--brand), var(--accent2)); background-clip: text; -webkit-background-clip: text; color: transparent; }
.home-lead { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 520px; margin: 0 0 24px; }
.home-actions { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; margin-top: 12px; }
.home-actions .btn, .home-finish .btn { min-height: 48px; padding: 12px 20px; box-shadow: 0 6px 25px color-mix(in srgb, var(--accent) 20%, transparent); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 600; min-height: 44px; }
.home-reassurance { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.home-facts { display: flex; gap: 25px; border-top: 1px solid var(--line); padding-top: 23px; }
.home-facts div { display: flex; flex-direction: column; gap: 3px; }
.home-facts strong { font-size: 16px; font-weight: 600; }
.home-facts span { color: var(--muted); font-size: 12px; }
.eko-home .home-section { padding: var(--home-space) 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 28px; }
.section-heading h2, .sharing-feature h2, .home-faq h2, .home-finish h2 { font-size: clamp(27px, 3.6vw, 38px); line-height: 1.15; margin: 0; letter-spacing: -.04em; }
.section-heading > p { max-width: 310px; color: var(--muted); font-size: 14px; margin: 0; }
.journey-grid, .practice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.journey-card { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, var(--panel), var(--panel2)); }
.step-number { font-size: 12px; color: var(--brand); border: 1px solid var(--line2); padding: 6px 9px; border-radius: 8px; display: inline-block; }
.journey-card h3 { font-size: 19px; margin: 26px 0 12px; }
.journey-card p { font-size: 14px; color: var(--muted); margin: 0 0 25px; }
.journey-result { font-size: 11px; color: var(--ink); border-top: 1px solid var(--line); display: block; padding-top: 14px; }
.practice-tile { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; padding: 23px; color: var(--ink); background: var(--panel); transition: border-color .2s, transform .2s; }
.practice-tile:hover { opacity: 1; border-color: var(--brand); transform: translateY(-3px); }
.practice-tile.featured { background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 20%, var(--panel)), color-mix(in srgb, var(--brand) 9%, var(--panel))); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tile-kicker { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); letter-spacing: 1px; }
.tile-symbol { font-size: 45px; line-height: 1; color: var(--brand); margin: 25px 0; }
.practice-tile h3 { font-size: 19px; margin: 0 0 9px; }
.practice-tile p { color: var(--muted); font-size: 14px; margin: 0 0 25px; }
.tile-bottom { font-size: 11px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.practice-section > .fine { margin-top: 18px; max-width: 680px; }
.sharing-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.sharing-feature > div > p:not(.eyebrow) { color: var(--muted); font-size: 15px; max-width: 420px; margin: 20px 0 15px; }
.remix-diagram { background: radial-gradient(ellipse, color-mix(in srgb,var(--accent) 13%,transparent),transparent 70%); padding: 20px; }
.remix-note { max-width: 280px; display: flex; flex-direction: column; gap: 9px; padding: 23px; background: var(--panel); border: 1px solid var(--line2); border-radius: 13px; box-shadow: 0 15px 35px #0001; transform: rotate(-3deg); }
.remix-note > span { font-size: 9px; letter-spacing: 1.5px; color: var(--brand); }
.remix-note strong { font-size: 17px; font-weight: 600; }
.remix-note small { font-size: 12px; color: var(--muted); }
.remix-child { margin-left: auto; transform: rotate(3deg); border-color: color-mix(in srgb,var(--accent) 50%,var(--line)); }
.remix-connection { display:flex; align-items:center; gap:12px; margin:18px 10px; color:var(--brand); }
.remix-connection::before, .remix-connection::after { content:''; flex:1; border-top:1px dashed currentColor; opacity:.4; }
.remix-connection > span { display:inline-flex; align-items:center; gap:7px; padding:7px 11px; border:1px solid var(--line2); border-radius:999px; background:var(--panel2); font-size:11px; font-weight:600; white-space:nowrap; }
.remix-connection svg { flex-shrink:0; }
.remix-diagram > .fine { text-align: center; margin-bottom: 0; }
.home-faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; }
.home-faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.home-faq details:first-child { padding-top: 0; }
.home-faq summary { cursor: pointer; color: var(--ink); font-size: 15px; font-weight: 550; }
.home-faq details p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.eko-home .home-finish { text-align: center; padding: 55px 20px; border: 1px solid var(--line2); border-radius: 20px; background: radial-gradient(ellipse at 50% 0, color-mix(in srgb,var(--accent) 18%,var(--panel)),var(--panel2) 80%); }
.home-finish .btn { margin-top: 26px; }
.home-finish .fine { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--panel); color: var(--ink); transform: translateY(-150%); border: 1px solid var(--brand); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
@media (max-width: 860px) {
  .home-hero { gap: 26px; padding-top: 28px; }
  .home-intro h1 { font-size: 46px; }
  .home-lead { font-size: 16px; }
  .home-facts { gap: 16px; }
  .home-actions { gap: 8px 20px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; max-width: 540px; }
  .journey-card, .practice-tile { padding: 18px; }
  .sharing-feature { gap: 28px; }
}
@media (max-width: 640px) {
  .home-hero { grid-template-columns: 1fr; padding: 26px 0 45px; gap: 30px; }
  .home-intro h1 { font-size: clamp(39px, 10.5vw, 56px); }
  .home-lead { max-width: 480px; }
  .home-facts { justify-content: space-between; gap: 8px; }
  .journey-grid, .practice-grid, .sharing-feature, .home-faq { grid-template-columns: 1fr; }
  .journey-card { padding: 24px; }
  .journey-card h3 { margin-top: 16px; }
  .journey-card p { margin-bottom: 18px; }
  .practice-tile { padding: 24px; }
  .tile-symbol { margin: 20px 0; }
  .sharing-feature, .home-faq { gap: 28px; }
  .remix-diagram { padding: 15px 8px; }
  .remix-note { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* Product walkthrough and audience navigation. */
.home-terminal { min-width: 0; border: 1px solid var(--line2); border-radius: 15px; overflow: hidden; background: var(--panel2); box-shadow: 0 25px 85px #0003, 0 0 55px color-mix(in srgb,var(--accent) 9%,transparent); }
.terminal-bar { display: flex; align-items: center; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--line); font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--muted); }
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--line2); }
.terminal-dots i:first-child { background: #ed8b83; }.terminal-dots i:nth-child(2) { background: #d9bd7c; }.terminal-dots i:nth-child(3) { background: #7dbaa6; }
.terminal-label { margin-left: auto; font-size: 8px; letter-spacing: 1px; border: 1px solid var(--line2); border-radius: 4px; padding: 3px 5px; }
.workflow-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; padding: 12px; border-bottom: 1px solid var(--line); }
.workflow-tabs button { min-width: 0; min-height: 40px; font-size: 11px; padding: 7px 4px; border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 6px; }
.workflow-tabs button:hover { transform: none; background: var(--panel); color: var(--ink); }
.workflow-tabs button[aria-selected="true"] { color: var(--brand); background: color-mix(in srgb,var(--brand) 9%,transparent); border-color: color-mix(in srgb,var(--brand) 25%,var(--line)); }
.terminal-screen { padding: 24px; min-height: 340px; font: 12px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; }
.terminal-screen [hidden] { display: none; }
.terminal-screen p { display: flex; align-items: start; gap: 12px; margin: 0 0 17px; color: var(--muted); overflow-wrap: anywhere; }
.terminal-screen .terminal-command { color: var(--ink); margin-bottom: 5px; }
.terminal-command > span { color: var(--brand); }
.terminal-screen .terminal-muted { font-size: 10px; margin-bottom: 26px; }
.terminal-marker { color: var(--brand); font-size: 10px; flex: none; padding-top: 2px; }
.terminal-screen b { color: var(--accent2); font-size: 10px; font-weight: 600; display: inline-block; margin-right: 5px; }
.terminal-result { display: flex; gap: 12px; align-items: center; border-top: 1px dashed var(--line2); margin-top: 23px; padding-top: 20px; }
.terminal-result > span { color: var(--brand); font-size: 24px; }
.terminal-result strong { display: block; color: var(--brand); font-size: 10px; font-weight: 500; }
.terminal-result div > span { color: var(--ink); font-size: 12px; }
.terminal-caption { margin: 0; padding: 12px 19px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; background: var(--panel); }
.terminal-noscript { padding: 12px; }
.product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.product-grid .practice-tile { padding: 27px; }
.product-grid .tile-symbol { margin: 20px 0; font-size: 35px; }
.tile-bottom > span { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: var(--panel2); }
.audience-grid article { padding: 34px; }
.audience-grid article + article { border-left: 1px solid var(--line); background: color-mix(in srgb,var(--accent) 5%,var(--panel2)); }
.audience-label { font-size: 10px; letter-spacing: 1.5px; color: var(--brand); }
.audience-grid h3 { font-size: 24px; margin: 18px 0 13px; }
.audience-grid p { color: var(--muted); font-size: 15px; }
.sharing-feature .community-note { border-left: 2px solid var(--accent); padding-left: 13px; font-size: 11px; line-height: 1.8; }
.home-finish .cta-row { margin-top: 25px; }.home-finish .cta-row .btn { margin-top: 0; }
@media (max-width: 860px) { .home-hero { grid-template-columns: 1fr; }.home-intro { max-width: 680px; }.home-intro h1 { font-size: clamp(44px,7vw,66px); }.home-lead { max-width: 550px; }.home-terminal { max-width: 680px; }.terminal-screen { min-height: 320px; } }
@media (max-width: 640px) { .product-grid, .audience-grid { grid-template-columns: 1fr; }.audience-grid article { padding: 24px; }.audience-grid article + article { border-left: 0; border-top: 1px solid var(--line); }.terminal-bar { padding: 12px; gap: 7px; font-size: 9px; }.terminal-label { font-size: 7px; }.terminal-dots { gap: 3px; }.terminal-dots i { width: 5px; height: 5px; }.terminal-screen { padding: 20px 16px; font-size: 11px; }.terminal-result div > span { font-size: 11px; }.product-grid .practice-tile { padding: 24px; }.home-intro h1 { font-size: clamp(38px,10vw,56px); } }

/* Shared premium surfaces, with motion only when the user permits it. */
.home-hero { isolation: isolate; }
.home-hero::after { content: ''; position: absolute; inset: -24px -24px 0; pointer-events: none; z-index: -1; opacity: .22; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.home-terminal { border-top-color: color-mix(in srgb,var(--brand) 45%,var(--line2)); }
.trust-strip { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px 0; color: var(--muted); font-size: 12px; }
.trust-strip span::before { content: '◇'; color: var(--brand); margin-right: 9px; }
.trust-strip a { color: var(--muted); }
.workspace-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 0; }
.workspace-hero h1 { font-size: clamp(32px,4vw,48px); line-height: 1.1; margin: 10px 0; }
.workspace-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 36px; }
.workspace-grid a { display: block; background: linear-gradient(145deg,var(--panel),var(--panel2)); border: 1px solid var(--line2); border-radius: 14px; padding: 24px; color: var(--ink); }
.workspace-grid strong { display: block; font-size: 18px; margin-bottom: 8px; }
.workspace-grid span { color: var(--muted); font-size: 13px; }
.workspace-section { margin-top: 40px; }
.workspace-section > h2 { font-size: 24px; }
.workspace-section .card { border-radius: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .home-terminal { animation: surface-reveal .7s ease-out both; }
  .practice-tile, .workspace-grid a { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
  .practice-tile:hover, .workspace-grid a:hover { transform: translateY(-4px); border-color: color-mix(in srgb,var(--brand) 55%,var(--line)); box-shadow: var(--glow); opacity: 1; }
  @keyframes surface-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 860px) { .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) { .product-grid, .workspace-grid { grid-template-columns: 1fr; }.workspace-hero { display: block; }.trust-strip { gap: 10px; flex-direction: column; } }

.interview-finish { margin-top: 16px; }
@media (max-width: 640px) { .home-hero::before, .home-hero::after { left: -16px; right: -16px; } }

/* Line-by-line terminal playback finishes once; replay and tabs restart it. */
.terminal-line-pending { opacity: 0; }
.terminal-line-active::after { content: '▍'; color: var(--brand); animation: terminal-cursor .55s step-end infinite; }
.terminal-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.terminal-replay { flex: none; min-height: 32px; padding: 4px 8px; font: inherit; color: var(--brand); background: transparent; border: 1px solid var(--line2); }
.terminal-replay[hidden] { display: none; }
@keyframes terminal-cursor { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .terminal-line-pending { opacity: 1; }
  .terminal-line-active::after { content: none; }
}

@media (max-width: 640px) { .workflow-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }.workspace-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .nav-inner { padding: 0 16px; gap: 10px; }.nav .actions { gap: 6px; }.nav .actions .btn { white-space: nowrap; padding: 6px 10px; } }

/* Subject-first learning: focused cards, lively accents, readable on small screens. */
.learning-space { padding-top: 38px; padding-bottom: 64px; }
.quest-hero { display:flex; align-items:center; justify-content:space-between; gap:32px; margin-bottom:28px; }
.quest-hero h1 { font-size:clamp(32px,4.8vw,60px); line-height:1.07; letter-spacing:-.035em; margin:14px 0; }
.quest-orbit { flex-shrink:0; display:grid; place-items:center; width:180px; height:180px; border-radius:40px; border:1px solid var(--line2); background:linear-gradient(135deg,var(--panel2),var(--panel)); color:var(--accent); font-size:80px; transform:rotate(-6deg); }
.quest-orbit span { font-size:9px; letter-spacing:.1em; margin-top:-25px; }
.learn-entry { background:var(--panel); border:1px solid var(--line2); border-radius:16px; padding:22px; margin:20px 0; gap:14px; }
.learn-entry > p { margin:0; }
.home-intro .learn-entry { margin:0; }
.home-hero > .home-terminal { margin-top:56px; }
@media(max-width:860px) { .home-hero > .home-terminal { margin-top:0; width:100%; }.home-intro { width:100%; } }
.learn-entry > label:first-of-type { font-size:20px; font-weight:700; }
.learn-input-row { display:flex; gap:12px; }.learn-input-row input { flex:1; min-width:0; }.learn-input-row button { white-space:nowrap; }
.learn-entry .consent { display:grid; grid-template-columns:18px minmax(0,1fr); align-items:start; gap:10px; font-size:12px; font-weight:400; line-height:1.6; cursor:pointer; }
.learn-entry .consent input[type=checkbox] { width:18px; height:18px; min-width:18px; min-height:18px; padding:0; margin:1px 0 0; accent-color:var(--accent); cursor:pointer; }
.learn-entry .consent span { min-width:0; }
.learn-entry .consent a { text-decoration:underline; text-underline-offset:3px; white-space:nowrap; }
.quest-links,.quest-top { display:flex; flex-wrap:wrap; align-items:center; gap:22px; margin:24px 0; }.quest-top { justify-content:space-between; }
.quest-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; }.quest-heading h1 { font-size:clamp(27px,3vw,42px); overflow-wrap:anywhere; }
.xp-chip { display:grid; gap:5px; flex-shrink:0; padding:18px 24px; border-radius:18px; border:1px solid var(--line2); background:var(--panel2); }.xp-chip strong { font-size:26px; }.xp-chip span { font-size:12px; color:var(--muted); }
.learning-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(240px,1fr); gap:24px; align-items:start; margin-top:24px; }.learning-layout > * { min-width:0; }
.learning-layout .card { margin-bottom:18px; }.lesson-card { padding:28px; }.lesson-text { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.75; }
.worked-example { background:var(--panel2); border-left:3px solid var(--accent); border-radius:10px; padding:20px; margin:22px 0; }
.feedback-card { border:1px solid var(--line2); background:var(--panel2); border-radius:14px; padding:22px; margin:22px 0; animation:learning-arrive .3s ease-out; }
.your-attempt { padding:18px 0; }.next-quest { display:flex; flex-wrap:wrap; gap:10px; margin:22px 0; }.next-quest .learning-wait { flex-basis:100%; }
.learning-detail { padding:18px 0; border-bottom:1px solid var(--line2); }.learning-space summary { cursor:pointer; font-weight:600; }.learning-space details[open] summary { margin-bottom:18px; }
.skill-path { padding-left:22px; }.skill-path li { padding:8px 0; }.skill-path span { display:block; margin-top:5px; }
.challenge-number { font:700 32px monospace; color:var(--accent); }.challenge-tile { display:flex; flex-direction:column; }.challenge-tile .btn { margin-top:auto; align-self:flex-start; }.challenge-tile h2 { font-size:22px; }
.journey-card { color:var(--ink); text-decoration:none; transition:transform .15s; }.journey-card:hover { transform:translateY(-3px); }.learning-space .card { overflow-wrap:anywhere; }
.table-scroll { overflow-x:auto; }.learning-space input[type=checkbox] { width:auto; }
@keyframes learning-arrive { from { opacity:.5; transform:translateY(7px); } to { opacity:1; transform:none; } }
@media(max-width:760px) { .learning-layout { grid-template-columns:1fr; }.quest-orbit { display:none; }.learn-input-row { flex-direction:column; }.quest-heading { align-items:flex-start; }.xp-chip { padding:12px; }.xp-chip strong { font-size:20px; }.lesson-card { padding:20px; }.quest-hero { gap:12px; } }
@media(max-width:400px) { .quest-heading { flex-direction:column; }.learn-entry { padding:18px; }.next-quest button { width:100%; } }
@media(prefers-reduced-motion:reduce) { .feedback-card { animation:none; }.journey-card { transition:none; }.journey-card:hover { transform:none; } }
.learning-space .grid.two { grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); }

/* Private team snapshots and invitations remain readable on narrow screens. */
.squad-copy{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}
.squad-member{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:1rem 0}
.squad-member form{margin:0}

/* Two equally weighted artifact versions; stack in reading order on phones. */
.comparison-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-top:24px; }
.comparison-grid > * { min-width:0; overflow-wrap:anywhere; }
@media(max-width:760px) { .comparison-grid { grid-template-columns:1fr; } }
