/* padrino.ai platform site.
   Palette matches the app's .padrino theme (accounting-app apps/accounting/app/
   globals.css): cool lavender-grey neutrals, ink #1d1b2b, indigo primary
   #4f46e5, Geist. Layout after x.ai/bot and muse.ai: big headlines, soft
   panels with product mockups, documentary photography.
   House rules: no pills or tinted capsules around words, no icon tiles, no
   tinted alert boxes. Buttons are squared-off, not capsules. */

:root {
  /* From .padrino in the app's globals.css */
  --bg:        #f7f7fb;
  --panel:     #eeeef5;
  --panel-2:   #e5e4ef;
  --card:      #ffffff;
  --ink:       #1d1b2b;
  --body:      #4a4860;
  --muted:     #6c6a7d;
  --line:      #eaeaf1;
  --accent:    #4f46e5;
  --accent-2:  #4338ca;
  --accent-soft: #ecebfb;
  --live:      #16a34a;
  --dark:      #1d1b2b;
  --dark-2:    #27243a;
  --dark-line: #37344d;

  --sans:  "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono:  "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1200px;
  --gutter: 20px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(29,27,43,.04), 0 12px 40px rgba(29,27,43,.08);
  --shadow-lg: 0 2px 6px rgba(29,27,43,.05), 0 30px 80px rgba(29,27,43,.14);
  --ease: cubic-bezier(.22,.61,.36,1);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font: 400 17px/1.6 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 720px) { body { font-size: 18px; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; margin: 0; }
h2 { font-size: clamp(34px, 5.2vw, 60px); }
h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.025em; line-height: 1.12; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
strong { color: var(--ink); font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; }

/* Buttons: squared-off, never capsules. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r-sm);
  font: 500 16px/1 var(--sans); letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 54px; padding: 0 26px; font-size: 17px; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-soft { background: var(--panel-2); color: var(--ink); }
.btn-soft:hover { background: #dcdbe9; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--panel); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f1f1f7; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.label { font-size: 14px; font-weight: 500; color: var(--accent); letter-spacing: 0; margin-bottom: 16px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--body); margin-top: 20px; max-width: 42em; }
.section { padding-block: 88px; }
@media (min-width: 900px) { .section { padding-block: 128px; } }
.section-head { max-width: 860px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(247,247,251,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a { padding: 8px 12px; border-radius: 10px; font-size: 15px; color: var(--body); transition: color .2s, background .2s; }
.nav > a:hover, .nav > a[aria-current] { color: var(--ink); background: var(--panel); }
.nav-actions { display: flex; gap: 8px; margin-left: 12px; }
.nav-toggle { display: none; }
@media (max-width: 959px) {
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--panel); border: 0; color: var(--ink); cursor: pointer;
  }
  .nav-toggle .icon-close { display: none; }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px rgba(29,27,43,.08);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
  }
  .nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav > a { font-size: 22px; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav > a:hover, .nav > a[aria-current] { background: none; }
  .nav-actions { margin: 20px 0 0; }
  .nav-actions .btn { flex: 1; height: 50px; font-size: 16px; }
}

/* Hero */
.hero { padding-top: 56px; text-align: center; }
@media (min-width: 900px) { .hero { padding-top: 88px; } }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); margin-bottom: 28px; }
.hero-kicker .icon { color: var(--muted); transition: transform .2s var(--ease); }
.hero-kicker:hover .icon { transform: translateX(3px); }
.hero h1 { font-size: clamp(44px, 8.4vw, 104px); letter-spacing: -0.045em; line-height: .98; max-width: 12em; margin: 0 auto; }
.h-photo {
  display: inline-block; width: .82em; height: .82em; border-radius: 50%; overflow: hidden;
  vertical-align: -0.08em; margin: 0 .04em; box-shadow: 0 0 0 3px var(--bg), 0 6px 18px rgba(29,27,43,.18);
}
.h-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-sub { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; color: var(--muted); max-width: 36em; margin: 28px auto 0; }
.hero .btn-row { justify-content: center; margin-top: 36px; }
.hero-proof { font-size: 15px; color: var(--muted); margin-top: 20px; }
@media (max-width: 519px) {
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* Hero stage: the app window over the photograph. Desktop puts the window on
   the photo's empty wall (left) with the baker visible on the right. */
.stage { position: relative; margin-top: 56px; border-radius: var(--r-lg); overflow: hidden; background: var(--panel); text-align: left; }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 40%; }
/* Phone: the photo is its own block and the window overlaps its bottom edge,
   so the person stays visible instead of disappearing under the mockup. */
.stage-img { position: relative; aspect-ratio: 5 / 4; height: auto; object-position: 72% 35%; }
.stage-inner { position: relative; padding: 0 10px 10px; margin-top: -64px; }
@media (min-width: 900px) {
  .stage { margin-top: 72px; }
  .stage-img { position: absolute; aspect-ratio: auto; height: 100%; object-position: center 40%; }
  .stage-inner { padding: 64px 52% 64px 56px; margin-top: 0; }
}

/* App window mockup */
.app-window { background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: 15px; line-height: 1.5; color: var(--ink); }
@media (min-width: 900px) { .stage .app-window { width: 560px; max-width: none; } }
.app-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #e5e4ef; }
.dots i:nth-child(1) { background: #ec6a5e; } .dots i:nth-child(2) { background: #f4bf4f; } .dots i:nth-child(3) { background: #61c554; }
.app-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 519px) { .app-window { font-size: 14px; } .app-status-long { display: none; } .dots { display: none; } }
.app-status { margin-left: auto; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--live); display: inline-block; }
.app-body { display: grid; grid-template-columns: 60px 1fr; }
.app-side { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0; border-right: 1px solid var(--line); background: #fbfbfd; }
.app-side-add { width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); }
.app-thread { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (min-width: 520px) { .app-body { grid-template-columns: 72px 1fr; } .app-thread { padding: 20px 22px 16px; } }
.thread-meta { font-size: 13px; color: var(--muted); }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg-me { justify-content: flex-end; }
.bubble { background: var(--panel); border-radius: 16px; padding: 10px 14px; max-width: 88%; }
.bubble-me { background: var(--ink); color: #fff; }
.bubble-who { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.bubble-who span { font-weight: 400; color: var(--muted); }
.thread-event { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding-left: 42px; }
.thread-event .icon { color: var(--live); }
.thread-event span { color: var(--ink); margin-left: auto; font-weight: 500; }
.composer { display: flex; align-items: center; gap: 10px; margin-top: 6px; border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; color: var(--muted); }
.composer-plus { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--panel); color: var(--ink); }

/* Avatars: genuine circles, allowed. */
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 600 12px/1 var(--sans); color: #fff; letter-spacing: 0; }
.av-sm { width: 32px; height: 32px; font-size: 11px; }
.av-xs { width: 24px; height: 24px; font-size: 9px; }
.av-padrino { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.av-padrino img { width: 58%; height: 58%; }
.av-clay { background: #c96a43; } .av-sage { background: #3f8a70; } .av-sky { background: #3b74d8; } .av-ink { background: #1d1b2b; }
.app-side .is-active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }

/* Agent strip */
.agent-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding-block: 36px 0; font-size: 17px; color: var(--muted); }
.agent-strip a, .agent-strip span:not(.agent-strip-lead) { color: var(--ink); font-weight: 500; }
.agent-strip a:hover { color: var(--accent); }
.agent-strip-lead { flex-basis: 100%; text-align: center; font-size: 14px; }
@media (min-width: 720px) { .agent-strip-lead { flex-basis: auto; } }

/* Panels */
.panel { background: var(--panel); border-radius: var(--r-lg); padding: 28px 22px; }
@media (min-width: 720px) { .panel { padding: 56px; } }
.photo { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--panel-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Problem */
.problem-stage { position: relative; margin-top: 56px; border-radius: var(--r-lg); overflow: hidden; }
.problem-stage > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .problem-stage > img { aspect-ratio: 21 / 9; } }
.wall-card { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 22px 24px; margin: -48px 14px 0; position: relative; font-size: 15px; }
@media (min-width: 900px) { .wall-card { position: absolute; right: 40px; bottom: 40px; width: 380px; margin: 0; } }
.wall-title { color: var(--ink); font-weight: 600; margin-bottom: 12px; }
.wall-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wall-card li { display: flex; gap: 10px; align-items: center; color: var(--body); }
.box { width: 16px; height: 16px; border: 1.5px solid #c9c7d8; border-radius: 4px; flex: none; }
.problem-body { display: grid; gap: 20px; margin-top: 40px; font-size: 19px; }
@media (min-width: 900px) { .problem-body { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* Connection diagram */
.conn { display: grid; gap: 12px; align-items: center; margin-top: 48px; }
.conn-col { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 959px) {
  .conn-agents, .conn-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .conn-agents .conn-label, .conn-modules .conn-label { grid-column: 1 / -1; }
  .conn-item { padding: 10px 12px; font-size: 15px; }
}
.conn-label { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.conn-item { background: var(--card); border-radius: 12px; padding: 12px 16px; color: var(--ink); font-weight: 500; font-size: 16px; box-shadow: 0 1px 2px rgba(29,27,43,.05); }
a.conn-item:hover { color: var(--accent); }
.conn-link { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.conn-line { width: 2px; height: 28px; background: repeating-linear-gradient(var(--ink) 0 6px, transparent 6px 10px); opacity: .35; }
.conn-key { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 var(--mono); color: var(--ink); background: var(--card); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.conn-hub { align-items: center; text-align: center; background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 28px 20px; }
.conn-hub img { background: #fff; border-radius: 12px; padding: 6px; width: 48px; height: 48px; }
.conn-hub-name { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin-top: 10px; }
.conn-hub-sub { font-size: 14px; color: #b3b1c6; max-width: 16em; }
.conn-link-fan .conn-line { height: 28px; }
@media (min-width: 960px) {
  .conn { grid-template-columns: 1fr auto 1.1fr 60px 1fr; gap: 0; }
  .conn-link { flex-direction: row; padding-inline: 12px; }
  .conn-line { width: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px); }
  .conn-link-fan .conn-line { width: 100%; height: 2px; }
  .conn-hub { padding: 44px 24px; }
}

.steps { display: grid; gap: 28px; margin-top: 56px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.step { border-top: 1px solid var(--ink); padding-top: 18px; }
.step-n { font: 500 14px/1 var(--mono); color: var(--muted); }
.step h3 { font-size: 22px; margin: 14px 0 8px; }
.step p { font-size: 16px; }

/* Module rows */
.modules { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 720px) { .modules { gap: 24px; } }
.module { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) {
  .module { grid-template-columns: 1fr 1.15fr; gap: 64px; }
  .module:nth-child(even) .module-copy { order: 2; }
}
.module-kind { font-size: 14px; color: var(--muted); }
.module-name { font-size: 15px; font-weight: 600; color: var(--accent); margin-top: 18px; }
.module h3 { margin-top: 8px; }
.module-copy p.module-body { margin-top: 16px; }
.module-media { position: relative; }
.module-media .photo { aspect-ratio: 4 / 3; }
.activity { background: rgba(255,255,255,.96); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px 16px; font-size: 14px; line-height: 1.5; color: var(--ink); margin: -40px 12px 0; position: relative; }
@media (min-width: 900px) { .activity { position: absolute; left: -32px; bottom: 28px; width: 340px; margin: 0; } .module:nth-child(even) .activity { left: auto; right: -32px; } }
.activity-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.activity-who { font-weight: 600; }
.activity-state { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }

/* Books spotlight (dark) */
.dark { background: var(--dark); color: #c9c7d8; border-radius: var(--r-lg); padding: 36px 22px; margin-inline: auto; }
@media (min-width: 720px) { .dark { padding: 72px 64px; } }
.dark h2, .dark h3, .dark strong { color: #fff; }
.dark h2 { font-size: clamp(32px, 3.8vw, 50px); }
.dark .label { color: #a5b4fc; }
.dark-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .dark-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.dark .lede { color: #b3b1c6; }
.dark-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.dark-points li { display: flex; gap: 10px; }
.dark-points .icon { color: #86efac; margin-top: 4px; }

.ledger, .intake { background: var(--card); color: var(--ink); border-radius: 20px; padding: 22px; font-size: 15px; box-shadow: var(--shadow-lg); }
@media (min-width: 720px) { .ledger, .intake { padding: 28px; } }
.ledger-head { display: flex; justify-content: space-between; font-weight: 600; }
.ledger-state { font-weight: 500; font-size: 13px; color: #b45309; }
.ledger-memo { color: var(--muted); font-size: 14px; margin-top: 4px; }
.ledger table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.ledger th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ledger td { padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ledger th:not(:first-child), .ledger td:not(:first-child) { text-align: right; }
.ledger-evidence { margin-top: 14px; display: grid; gap: 6px; font-size: 13px; color: var(--body); }
.ledger-evidence p, .intake li { display: flex; gap: 8px; align-items: flex-start; }
.ledger-evidence .icon, .intake li .icon { color: var(--live); margin-top: 3px; }
.ledger-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ledger-by { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* Choice */
.choice-grid { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 900px) { .choice-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.choice-grid .panel h3 { margin-bottom: 14px; }
.choice-list { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.choice-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--ink); font-weight: 500; }
.choice-list li span { color: var(--muted); font-weight: 400; text-align: right; }
.pull { font-size: clamp(30px, 4.2vw, 52px); color: var(--ink); letter-spacing: -0.035em; line-height: 1.08; text-align: center; max-width: 18em; margin: 80px auto 0; font-weight: 500; }
.wide-photo { margin-top: 48px; border-radius: var(--r-lg); overflow: hidden; }
.wide-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .wide-photo img { aspect-ratio: 21 / 9; } }

/* Split: copy + mockup/photo */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split.flip > :first-child { order: 2; } }
.split-media { position: relative; }
.split-media .photo { aspect-ratio: 4 / 5; }
.split-media .overlay { margin: -120px 12px 0; position: relative; }
@media (min-width: 960px) { .split-media .overlay { position: absolute; left: -48px; right: auto; bottom: 36px; margin: 0; width: 420px; } .split.flip .split-media .overlay { left: auto; right: -48px; } }
.intake-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.intake-text { background: var(--panel); border-radius: 14px; padding: 12px 14px; margin: 8px 0 18px; line-height: 1.5; }
.intake ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; font-size: 14px; }
.intake strong { margin-right: 4px; }

/* Approval sequence */
.seq { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.seq li { list-style: none; display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.seq-n { font: 500 14px/1.9 var(--mono); color: var(--muted); }
.seq strong { display: block; font-weight: 600; }
.seq span { font-size: 16px; }
.seq { padding: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 28px 16px 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .stat { border-bottom: 0; border-right: 1px solid var(--line); padding: 36px 24px 12px; } .stat:first-child { padding-left: 0; } .stat:last-child { border-right: 0; } }
.stat-n { font-size: clamp(40px, 5vw, 64px); color: var(--ink); letter-spacing: -0.04em; line-height: 1; font-weight: 500; }
.stat-l { font-size: 15px; color: var(--muted); margin-top: 10px; }

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 48px; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; }
.cmp th { text-align: left; font-size: 14px; font-weight: 500; color: var(--muted); padding: 0 16px 14px 0; border-bottom: 1px solid var(--ink); }
.cmp td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp td:first-child { color: var(--ink); font-weight: 500; width: 24%; }
.cmp td:last-child { color: var(--ink); }

/* Code window */
.code { background: #16142a; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); color: #e9e4da; }
.code-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #2b2940; flex-wrap: wrap; }
.code .dots i { background: #3a3752 !important; }
.code-tabs { display: flex; gap: 4px; }
.code-tabs button { font: 500 13px/1 var(--sans); color: #9b98b3; background: none; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.code-tabs button[aria-selected="true"] { color: #fff; background: #2b2940; }
.code pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; font: 400 13.5px/1.7 var(--mono); }
@media (min-width: 720px) { .code pre { font-size: 14.5px; } }
.c-muted { color: #7d7a95; } .c-str { color: #c4b5fd; } .c-key { color: #a5b4fc; }
.code-frame { background: linear-gradient(135deg, #e0e7ff, #c7d2fe 40%, #ede9fe); border-radius: var(--r-lg); padding: 16px; }
@media (min-width: 720px) { .code-frame { padding: 48px; } }

/* Agent sections on /ai-agents */
.agent-sec { scroll-margin-top: 90px; }
.agent-sec + .agent-sec { margin-top: 16px; }
.agent-maker { font-size: 14px; color: var(--muted); }
.agent-sec h2 { font-size: clamp(32px, 4.4vw, 52px); margin-top: 10px; }
.agent-sec .lede { font-size: 18px; }
.agent-does { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.agent-does li { display: flex; gap: 10px; }
.agent-does .icon { color: var(--live); margin-top: 5px; }
.chat { background: var(--card); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink); box-shadow: var(--shadow); }
.agent-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .agent-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.agent-media { display: grid; gap: 14px; }
.agent-media .photo { aspect-ratio: 3 / 2; }

/* Use cases */
.cases { display: grid; gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .cases { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.case { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; }
.case h3 { font-size: 20px; margin-bottom: 6px; }
.case p { font-size: 16px; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); margin-top: 8px; }
.faq .label { font-size: clamp(34px, 5vw, 56px); color: var(--ink); letter-spacing: -0.035em; font-weight: 500; line-height: 1.05; margin-bottom: 36px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; color: var(--ink); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { transition: transform .25s var(--ease); color: var(--muted); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { padding: 0 40px 24px 0; max-width: 46em; }

/* Final CTA */
.final-cta { position: relative; overflow: hidden; color: #fff; min-height: 560px; display: flex; align-items: flex-end; margin-top: 40px; }
.final-cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final-cta-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,27,43,0) 20%, rgba(29,27,43,.74) 100%); }
.final-cta-inner { position: relative; width: 100%; padding-block: 64px; }
.final-cta h2 { color: #fff; font-size: clamp(40px, 6.4vw, 84px); max-width: 11em; }
.final-cta p { font-size: 19px; color: rgba(255,255,255,.86); margin: 18px 0 30px; max-width: 30em; }
@media (min-width: 900px) { .final-cta { min-height: 720px; } .final-cta-inner { padding-block: 96px; } }

/* Footer */
.site-footer { background: var(--bg); padding: 72px 0 40px; font-size: 15px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr repeat(5, 1fr); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 960px) { .footer-brand { grid-column: auto; } }
.footer-brand img { height: 28px; width: auto; }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 18em; }
.footer-head { color: var(--ink); font-weight: 500; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer li a { color: var(--body); }
.site-footer li a:hover { color: var(--ink); }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; color: var(--muted); font-size: 13px; }
.footer-legal { max-width: 60em; }

/* Reveal on scroll. Content is visible without JS; site.js adds .js first. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

.page-404 { text-align: center; padding-block: 140px; }
.page-404 h1 { font-size: clamp(44px, 7vw, 88px); }
.page-404 p { margin: 20px auto 32px; color: var(--muted); }
.page-404 .btn-row { justify-content: center; }

.cmp-dark th { color: #9b98b3; border-bottom-color: #c9c7d8; }
.cmp-dark td { border-bottom-color: var(--dark-line); color: #c9c7d8; }
.cmp-dark td:first-child, .cmp-dark td:last-child { color: #fff; }

/* Guides */
.guide-hero { text-align: left; }
.guide-hero h1 { font-size: clamp(40px, 6.4vw, 80px); max-width: 13em; margin: 0; }
.guide-hero .hero-sub { margin-left: 0; text-align: left; }
.guide-hero .btn-row { justify-content: flex-start; }
.guide-sec { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .guide-sec { grid-template-columns: 1fr 1fr; gap: 64px; } }
.guide-sec + .guide-sec { margin-top: 16px; }
.guide-body p + p { margin-top: 16px; }
.guide-body h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 20px; }
.inline-link { color: var(--accent); font-weight: 500; }
.inline-link:hover { color: var(--accent-2); }
.related { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 28px; }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.related a:hover { color: var(--accent); }
.module-more { margin-top: 18px; display: inline-flex; gap: 6px; align-items: center; }
@media (min-width: 960px) { .guide-sec.no-mock { grid-template-columns: 1fr; } .guide-sec.no-mock .guide-body { max-width: 46em; } }
a.module-link { color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
a.module-link:hover { box-shadow: var(--shadow); }
a.module-link:hover .module-more { color: var(--accent-2); }
.related-why { display: block; font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.label a { color: inherit; }
.label a:hover { text-decoration: underline; }

.also { margin-top: 32px; font-size: 18px; color: var(--muted); text-align: center; line-height: 1.8; }
.also a { color: var(--ink); font-weight: 500; }
.also a:hover { color: var(--accent); }
.also .inline-link { display: inline-flex; gap: 6px; align-items: center; margin-left: 12px; color: var(--accent); }
.conn-more { color: var(--accent) !important; background: transparent !important; box-shadow: inset 0 0 0 1px var(--line) !important; }
