/* ritorai.io: the public site. Colours, fonts, radii and shadows are the staff app's design system
   (components/hallu/tokens.css); only the display sizes are bigger, since this is a marketing page. */
:root {
  color-scheme: light;
  --surface-page: #f5f7fb;
  --surface: #ffffff;
  --surface-sunken: #eef2f8;
  --ink: #111a2e;
  --ink-muted: #535e72;
  --brand-600: #1f56d4;
  --brand-700: #1846b3;
  --brand-050: #eaf0fd;
  --brand-fill: #1f56d4;
  --brand-fill-hover: #1846b3;
  --on-brand: #ffffff;
  --navy: #101b32;
  --sky: #69baff;
  --success-700: #1f7a4d;
  --danger-700: #b42318;
  --wa-fill: #25d366;
  --wa-fill-hover: #1fbd5a;
  --on-wa: #0b141a;
  --chat-bg: #efeae2;
  --chat-in: #ffffff;
  --chat-out: #d9fdd3;
  --field-border: #8a95a8;
  --shadow-card: 0 1px 2px rgba(17, 26, 46, 0.06);
  --shadow-lift: 0 24px 64px rgba(17, 26, 46, 0.14), 0 2px 6px rgba(17, 26, 46, 0.06);
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font-display: "Manrope", "DM Sans", system-ui, sans-serif;
  --font-text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gutter: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --surface-page: #121c30;
    --surface: #0a111e;
    --surface-sunken: #16203a;
    --ink: #e8edf6;
    --ink-muted: #a3adbf;
    --brand-600: #7aa5ff;
    --brand-700: #a3c1ff;
    --brand-050: #16264a;
    --brand-fill: #2f66e0;
    --brand-fill-hover: #3d74ee;
    --navy: #16203a;
    --success-700: #5fcf95;
    --danger-700: #ff8a80;
    --chat-bg: #0b141a;
    --chat-in: #202c33;
    --chat-out: #005c4b;
    --field-border: #5a6680;
    --shadow-lift: 0 24px 64px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.2vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-muted); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); }
.top-in { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 21px/1 "Manrope", sans-serif; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .brand .logo-light { display: none; } .brand .logo-dark { display: block; } }
.menu { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.menu a { color: var(--ink); }
.menu a:hover, .menu a[aria-current="page"] { color: var(--brand-600); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 15px; font-weight: 500; }
.top-actions .plain { color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; padding: 8px 0; }
.top-actions .plain:hover { color: var(--brand-600); }
.menu-btn { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--radius-md);
  background: var(--brand-fill); color: var(--on-brand);
  font: 600 16px/1 var(--font-text); cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:hover { background: var(--brand-fill-hover); color: var(--on-brand); }
.btn:active { transform: scale(0.98); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.wa { background: var(--wa-fill); color: var(--on-wa); }
.btn.wa:hover { background: var(--wa-fill-hover); color: var(--on-wa); }
.btn.soft { background: var(--surface-sunken); color: var(--ink); }
.btn.soft:hover { background: var(--brand-050); color: var(--ink); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding: 104px 0; }
.band { background: var(--surface-page); }
.head { max-width: 760px; margin-bottom: 56px; }
.head p { margin-top: 16px; font-size: 19px; color: var(--ink-muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 72px 0 104px; }
.hero .head { max-width: 980px; margin-bottom: 40px; }
.hero h1 + p { margin-top: 24px; font-size: 20px; color: var(--ink-muted); max-width: 680px; }
.hero.center-hero .head { text-align: center; margin-left: auto; margin-right: auto; }
.hero.center-hero h1 + p { margin-left: auto; margin-right: auto; }
.hero.center-hero .cta { justify-content: center; }
.hero .cta { margin-top: 36px; }
.shot {
  border-radius: var(--radius-xl); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-lift);
}
.hero-shot { max-width: 1040px; margin: 0 auto; position: relative; }
.hero-shot .shot { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.hero-band { background: linear-gradient(var(--surface) 0 45%, var(--surface-page) 45% 100%); padding-bottom: 0; }

/* Split rows: text beside a picture */
.rows { display: grid; gap: 120px; }
.row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: center; }
.row.flip > :first-child { order: 2; }
.row h3 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; }
.row .stage { margin: 0 0 14px; color: var(--brand-600); font: 700 16px/1 var(--font-display); }
.row > div:not(.code) > p { margin-top: 16px; color: var(--ink-muted); font-size: 18px; }
.row > div > ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.row > div > ul > li { display: flex; gap: 12px; align-items: baseline; }
.row > div > ul > li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-600); transform: translateY(-2px); }

/* Module cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; gap: 14px; padding: 32px;
  border-radius: var(--radius-lg); background: var(--surface-page); box-shadow: var(--shadow-card);
  color: var(--ink); transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
a.card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card p { color: var(--ink-muted); }
.card .go { margin-top: auto; padding-top: 8px; color: var(--brand-600); font-weight: 600; }
.status { font-weight: 600; font-size: 15px; }
.status.live { color: var(--success-700); }
.status.early { color: var(--brand-600); }
.status.soon { color: var(--ink-muted); }
.icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--brand-050); color: var(--brand-600); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.feat { display: grid; gap: 12px; align-content: start; }
.feat h3 { font-size: 20px; }
.feat p { color: var(--ink-muted); }

/* Start to finish: one customer's steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 820px; }
.steps li { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 28px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.steps .when { font: 700 16px/1.5 var(--font-display); color: var(--brand-600); }

/* WhatsApp chat mock-up */
.chat { max-width: 440px; width: 100%; margin: 0 auto; border-radius: var(--radius-xl); overflow: hidden; background: var(--chat-bg); box-shadow: var(--shadow-lift); font-size: 15px; line-height: 1.45; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface); }
.chat-head img { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-fill); padding: 7px; }
.chat-head b { display: block; font-size: 15px; }
.chat-head span { font-size: 13px; color: var(--ink-muted); }
.chat-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 16px 24px; }
.msg { max-width: 82%; padding: 8px 12px 6px; border-radius: 12px; background: var(--chat-in); box-shadow: 0 1px 1px rgba(11, 20, 26, 0.08); }
.msg.out { align-self: flex-end; background: var(--chat-out); }
.msg time { display: block; text-align: right; font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.msg .by { display: block; font-size: 12px; font-weight: 600; color: #0b6e66; }
@media (prefers-color-scheme: dark) { .msg .by { color: #5fd3c4; } }
.msg .tap { display: block; margin: 8px -12px -6px; padding: 10px; text-align: center; color: #027eb5; font-weight: 600; background: var(--chat-in); border-radius: 0 0 12px 12px; box-shadow: 0 -1px 0 rgba(11, 20, 26, 0.08); }
@media (prefers-color-scheme: dark) { .msg .tap { color: #53bdeb; } }

/* Trust */
.dark { background: var(--navy); color: #e8edf6; }
.dark h2, .dark h3 { color: #ffffff; }
.dark .head p, .dark .feat p { color: #b8c2d6; }
.dark .icon { background: rgba(105, 186, 255, 0.14); color: var(--sky); }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 28px; font: 700 18px/1.4 var(--font-display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 28px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted); transform: translateY(-70%) rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 28px 24px; color: var(--ink-muted); }

/* Demo form */
.demo { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.demo .head { margin-bottom: 0; }
.demo .cta { margin-top: 32px; }
form.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 36px; border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-lift); }
form.lead label { display: grid; gap: 8px; font-size: 15px; font-weight: 600; }
form.lead .full { grid-column: 1 / -1; }
form.lead input, form.lead select, form.lead textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--radius-md);
  border: 1px solid var(--field-border); background: var(--surface); color: var(--ink);
  font: 400 16px/1.4 var(--font-text);
}
form.lead textarea { height: 104px; padding: 12px 14px; resize: vertical; }
form.lead input:focus, form.lead select:focus, form.lead textarea:focus { outline: 2px solid var(--brand-600); outline-offset: 0; border-color: transparent; }
form.lead .invalid { border-color: var(--danger-700); }
form.lead .btn { width: 100%; }
form.lead .trap { position: absolute; left: -9999px; }
.form-status { min-height: 24px; font-size: 15px; }
.form-status.ok { color: var(--success-700); }
.form-status.err { color: var(--danger-700); }

/* Other modules (module pages) */
.others { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
footer { padding: 64px 0 48px; background: var(--surface-page); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot h3 { font-size: 15px; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--ink-muted); }
.foot a:hover { color: var(--brand-600); }
.foot .brand { margin-bottom: 16px; color: var(--ink); }
.copy { margin-top: 48px; color: var(--ink-muted); }

/* Up to 1023 px: the menu folds away */
@media (max-width: 1023px) {
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-md); background: var(--surface-sunken); color: var(--ink); cursor: pointer; }
  .menu-btn svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: var(--surface); box-shadow: 0 16px 32px rgba(17, 26, 46, 0.12); }
  .menu a { padding: 14px 0; font-size: 17px; }
  .top.open .menu { display: flex; }
  .top-actions .signin { display: none; }
  .row, .demo { grid-template-columns: 1fr; gap: 40px; }
  .row.flip > :first-child { order: 0; }
  .cards, .grid { grid-template-columns: 1fr 1fr; }
  .grid.four { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
/* Phone */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .hero { padding-top: 40px; }
  .hero h1 + p { font-size: 18px; }
  .head { margin-bottom: 40px; }
  .head p { font-size: 17px; }
  .top-in { gap: 12px; height: 64px; }
  .menu { top: 64px; }
  .top-actions { gap: 12px; }
  .top-actions .btn.small { padding: 0 14px; }
  .cta .btn { flex: 1 1 100%; }
  .rows { gap: 80px; }
  .cards, .grid, .grid.two, .grid.four { grid-template-columns: 1fr; }
  .grid { gap: 32px; }
  .steps li { grid-template-columns: 1fr; gap: 4px; padding: 18px 20px; }
  form.lead { grid-template-columns: 1fr; padding: 24px 20px; }
  .faq summary { padding: 18px 52px 18px 20px; font-size: 17px; }
  .faq summary::after { right: 22px; }
  .faq details p { padding: 0 20px 20px; }
  .foot { grid-template-columns: 1fr; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.menu .narrow { display: none; }
@media (max-width: 1023px) { .menu .narrow { display: block; } }

/* Product mock-ups: the staff app's screens, drawn in HTML with neutral English data */
.app { border-radius: var(--radius-xl); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lift); font-size: 14px; line-height: 1.4; text-align: left; color: var(--ink); }
.app p { margin: 0; }
.app .sub { color: var(--ink-muted); font-weight: 400; }
.app .pane { min-width: 0; }
.app .list { background: var(--surface); padding: 18px 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
.app .search { height: 40px; border-radius: 999px; background: var(--surface-sunken); color: var(--ink-muted); padding: 0 16px; display: flex; align-items: center; }
.app .alert { border-radius: 10px; padding: 9px 12px; background: #fdecea; color: #b42318; font-size: 13px; }
.app .filters { display: flex; flex-wrap: wrap; gap: 6px; }
.app .filters span { padding: 5px 11px; border-radius: 999px; background: var(--surface-sunken); font-size: 13px; color: var(--ink-muted); }
.app .filters .sel { background: var(--brand-050); color: var(--brand-600); font-weight: 600; }
.app .filters em { font-style: normal; font-weight: 700; margin-left: 4px; }
.app ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.app li { display: flex; gap: 12px; padding: 12px 10px; border-radius: 12px; align-items: flex-start; }
.app li.on { background: var(--brand-050); }
.app li > div { flex: 1; min-width: 0; }
.app .l1 { display: flex; gap: 4px; align-items: baseline; white-space: nowrap; }
.app .l1 b { font-weight: 600; }
.app .l1 .sub { overflow: hidden; text-overflow: ellipsis; }
.app .l2 { color: var(--ink-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.app .when { margin-left: auto; font-size: 12px; color: var(--brand-600); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.app .when i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-600); }
.app .late { margin-left: auto; font-size: 12px; font-weight: 700; color: #fff; background: #b42318; border-radius: 999px; padding: 1px 8px; }
.app .av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-sunken); color: var(--ink-muted); font-weight: 600; font-size: 13px; }
.app .chips { display: flex; gap: 6px; margin-top: 6px; }
.chip { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.chip.ai { background: #e3f6f4; color: #0b6e66; }
.chip.warn { background: #fbefe2; color: #9a5212; }
.chip.bad { background: #fdecea; color: #b42318; }

.app-inbox { display: grid; grid-template-columns: 37% 1fr; min-height: 460px; }
.app .chat-pane { background: var(--chat-bg); display: flex; flex-direction: column; }
.app .chat-top { display: flex; gap: 12px; align-items: center; padding: 14px 18px; background: var(--surface-page); }
.app .chat-top > span:last-child { display: grid; }
.app .chat-top .sub { font-size: 13px; }
.app .thread { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.app .day { align-self: center; font-size: 12px; background: var(--surface); padding: 3px 10px; border-radius: 8px; color: var(--ink-muted); }
.app .thread .msg { font-size: 14px; }
.msg .by.staff { color: var(--brand-600); }

.app-calls { display: grid; grid-template-columns: 40% 1fr; gap: 0; background: var(--surface-page); }
.app-calls .list { background: var(--surface); }
.app .due { font-size: 13px; font-weight: 600; white-space: nowrap; align-self: center; }
.app-calls > .pane:last-child { padding: 18px; display: grid; gap: 14px; align-content: start; }
.app .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface-sunken); }
.app .stats span { display: block; font-size: 12px; color: var(--ink-muted); }
.app .stats b { font: 800 22px/1.2 var(--font-display); }
.app .callcard { background: var(--surface); border-radius: 14px; padding: 18px; display: grid; gap: 10px; box-shadow: var(--shadow-card); }
.app .who b { font: 700 18px/1.3 var(--font-display); }
.app .sub { font-size: 13px; }
.app .duebar { background: var(--surface-sunken); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.app .big { border-radius: 10px; padding: 11px; text-align: center; font-weight: 600; }
.app .big.blue { background: var(--brand-fill); color: #fff; }
.app .big.green { background: var(--wa-fill); color: var(--on-wa); }
.app .after { font-size: 12px; font-weight: 600; color: var(--ink-muted); margin-top: 4px; }
.app .outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app .outcomes span { text-align: center; padding: 9px; border-radius: 10px; background: var(--surface-sunken); font-size: 13px; font-weight: 600; }
.app .outcomes .ok { color: var(--success-700); }
.app .outcomes .no { color: var(--danger-700); }

.app-results { padding: 24px; display: grid; gap: 18px; background: var(--surface-page); }
.app .title { font: 800 20px/1.2 var(--font-display); }
.app .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.app .kpis p { background: var(--surface); border-radius: 14px; padding: 16px; display: grid; gap: 4px; box-shadow: var(--shadow-card); }
.app .kpis span { font-size: 13px; color: var(--ink-muted); }
.app .kpis b { font: 800 28px/1.1 var(--font-display); }
.app .kpis small { font-size: 12px; color: var(--ink-muted); }
.app .kpis .up { color: var(--success-700); font-weight: 600; }
.app .chart { background: var(--surface); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-card); }
.app .ctitle { font-weight: 700; margin-bottom: 14px !important; }
.app .bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; height: 150px; align-items: end; }
.app .bar { position: relative; height: 100%; display: flex; gap: 4px; align-items: flex-end; justify-content: center; padding-bottom: 20px; }
.app .bar span { width: 40%; border-radius: 6px 6px 0 0; }
.app .bar .b1, .app .legend .k1::before { background: var(--brand-fill); }
.app .bar .b2, .app .legend .k2::before { background: var(--ink-muted); }
.app .bar small { position: absolute; bottom: 0; font-size: 12px; color: var(--ink-muted); }
.app .legend { display: flex; gap: 18px; font-size: 12px; color: var(--ink-muted); margin-top: 10px !important; }
.app .legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

@media (max-width: 760px) {
  .app-inbox { grid-template-columns: 1fr; min-height: 0; }
  .app-inbox .list { display: none; }
  .app-calls { grid-template-columns: 1fr; }
  .app-calls .list { display: none; }
  .app .stats { grid-template-columns: 1fr 1fr; }
  .app .kpis { grid-template-columns: 1fr; }
  .app-results { padding: 16px; }
}
@media (prefers-color-scheme: dark) {
  .app .alert { background: #3a1714; color: #ff8a80; }
  .chip.ai { background: #0f3330; color: #5fd3c4; }
  .chip.warn { background: #3a2610; color: #f0b06a; }
  .chip.bad { background: #3a1714; color: #ff8a80; }
}

/* Code samples (always dark, as in an editor) */
.code { --code-bg: #0b1220; --code-ink: #dbe4f3; --code-muted: #8e9ab0; background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius-xl); box-shadow: var(--shadow-lift); padding: 8px 0 18px; min-width: 0; }
.code-tabs { display: flex; gap: 4px; padding: 8px 14px 4px; }
.code-tabs button { background: none; border: 0; color: var(--code-muted); font: 600 14px/1 var(--font-text); padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.code-tabs button[aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, 0.08); }
.code-tabs button:focus-visible { outline: 2px solid var(--sky); outline-offset: 0; }
.code pre { margin: 0; padding: 12px 24px; overflow-x: auto; font: 13.5px/1.65 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.code pre[hidden] { display: none; }
.code-label { padding: 12px 24px 0; font-size: 13px; font-weight: 600; color: var(--code-muted); }
code { font: 0.92em ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.feat code, .tools code { color: var(--brand-600); }
.code-pair { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; margin-top: 64px; }
.code-pair h3 { margin-bottom: 12px; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tools > div { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--radius-lg); background: var(--surface-page); }
.tools code { font-size: 16px; font-weight: 600; }
.tools p { color: var(--ink-muted); }
.kind { font-size: 14px; font-weight: 600; color: var(--success-700); }
.kind.write { color: var(--brand-600); }
.connects { list-style: none; margin: 24px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; font-weight: 500; }
.connects li { padding: 12px 16px; border-radius: var(--radius-md); background: var(--surface-page); }
.connects .next { color: var(--ink-muted); background: none; }
.feat .status { margin-top: 4px; }
@media (max-width: 1023px) { .code-pair { grid-template-columns: 1fr; gap: 24px; } .tools { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .tools, .connects { grid-template-columns: 1fr; } .code pre { padding: 12px 18px; font-size: 12.5px; } }
@media (prefers-color-scheme: dark) {
  .msg.out time { color: rgba(255, 255, 255, 0.75); }
  .msg.out .by { color: #a6eadf; }
  .msg.out .by.staff { color: #c3d5ff; }
}

