/* Kit explainer (index.html). For you, not your visitors. Kumbh Sans, #0070ff, bg #f5f8fd, ink #17202e. */
:root {
  --blue: #0070ff; --blue-hover: #005fe6; --blue-soft: #e8f1ff;
  --bg: #f5f8fd; --panel: #fff; --panel-alt: #f6f9fe;
  --ink: #17202e; --muted: #5b6b7c; --line: #e6ecf3;
  --green: #15803d; --amber: #b45309; --red: #b42318;
  --radius: 14px; --radius-sm: 10px; --shadow: 0 10px 30px rgba(2, 32, 71, .06);
  --font: 'Kumbh Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -120px; z-index: 100; background: #fff; color: var(--blue); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--blue-soft); color: #0b4fb3; padding: 1px 5px; border-radius: 5px; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.logo-slot { display: inline-flex; align-items: center; justify-content: center; width: 140px; height: 36px; border: 2px dashed #b9c6d8; border-radius: 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6b7a8c; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--panel-alt); border: 1px solid var(--line); padding: 4px 10px; border-radius: 99px; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e0a100; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 18px; border-radius: 8px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background-color .15s ease; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { background: var(--panel-alt); }

.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 40px 0 36px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.hero h1 { font-size: clamp(28px, 5.2vw, 46px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; max-width: 860px; margin-top: 10px; }
.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 760px; margin-top: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.section { padding: 44px 0; }
.section--alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.2; letter-spacing: -.01em; font-weight: 800; }
.section-lead { color: var(--muted); max-width: 760px; margin-top: 8px; }

/* ---------- flow diagram ---------- */
.flow {
  margin-top: 26px; display: grid; gap: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "ad" "a1" "pre" "branch" "a2" "shf";
}
.f-ad { grid-area: ad; } .a1 { grid-area: a1; } .f-pre { grid-area: pre; } .a2 { grid-area: a2; } .f-shf { grid-area: shf; } .flow-branch { grid-area: branch; }
.flow-box { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 18px 60px; }
.flow-box h3 { font-size: 18px; line-height: 1.25; font-weight: 700; }
.flow-box p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.flow-num { position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 15px; }
.flow-box.is-partner { border: 2px solid var(--blue); }
.flow-box.is-partner .flow-num, .flow-box.is-shf .flow-num { background: var(--blue); color: #fff; }
.flow-box.is-shf { background: linear-gradient(180deg, #fff 0%, var(--panel-alt) 100%); }
.flow-where { font-size: 12px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue) !important; }
.flow-steps { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 6px; }
.flow-steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.flow-steps li::before { content: counter(s, upper-alpha); width: 22px; height: 22px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.flow-arrow { display: grid; place-items: center; color: #9fb3cc; padding: 6px 0; }
.flow-arrow svg { width: 40px; height: 22px; transform: rotate(90deg); }

.flow-branch { position: relative; margin: 0 0 0 28px; padding: 16px 0 6px 22px; border-left: 2px dashed #e6b989; }
.branch-line { display: none; }
.branch-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.branch-exits { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.branch-exits li { font-size: 14px; font-weight: 600; color: #7a3d06; background: #fff7e6; border: 1px solid #f3d7a8; padding: 6px 12px; border-radius: 99px; }
.branch-down { color: #e0b27a; padding: 6px 0 4px 14px; }
.branch-down svg { width: 18px; height: 26px; }
.branch-alt { border: 2px dashed #c3d3ea; background: var(--panel-alt); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.branch-alt strong { font-size: 15px; }
.branch-alt span { font-size: 14px; color: var(--muted); }

@media (min-width: 900px) {
  .flow {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.25fr) 56px minmax(0, 1fr);
    grid-template-areas: "ad a1 pre a2 shf" ". branch branch branch .";
    align-items: stretch;
  }
  .flow-arrow svg { transform: none; width: 44px; }
  .flow-branch { margin: 0; padding: 0; border-left: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .branch-line { display: block; width: 0; height: 30px; border-left: 2px dashed #e6b989; }
  .branch-label { margin-top: 8px; }
  .branch-exits { justify-content: center; }
  .branch-down { padding: 6px 0 4px; }
  .branch-alt { width: min(100%, 460px); }
}

/* ---------- concept cards ---------- */
.cards { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: #bcd4f7; box-shadow: 0 16px 36px rgba(2, 32, 71, .1); }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.card h3 { font-size: 20px; font-weight: 800; line-height: 1.2; }
.card p { color: var(--muted); font-size: 15px; }
.card-link { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--blue); }

.thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #cfe3f6; }
.thumb .house-scene { position: absolute; inset: 0; }
.thumb .house-scene svg { width: 100%; height: 100%; max-width: none; }
.thumb .house-scene .house-sample { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.thumb-ui { position: absolute; display: flex; flex-direction: column; gap: 7px; }
.thumb-ui i { display: block; border-radius: 4px; background: #dbe3ee; }
.thumb-a .thumb-house { right: 50%; }
.thumb-a .thumb-ui { top: 0; right: 0; bottom: 0; width: 50%; background: #fff; padding: 18% 9% 0; }
.thumb-b .thumb-house { left: 50%; }
.thumb-b .thumb-ui { top: 0; left: 0; bottom: 0; width: 50%; background: #fff; padding: 12% 8% 0; }
.thumb-c .thumb-ui { left: 8%; bottom: 10%; width: 44%; background: #fff; border-radius: 10px; padding: 10px; box-shadow: 0 10px 24px rgba(2, 32, 71, .2); gap: 6px; }
.t-pill { width: 34%; height: 8px; background: #e8f1ff !important; }
.t-h { height: 10px; width: 88%; background: #2b3442 !important; opacity: .85; }
.t-h.short { width: 60%; }
.t-input { height: 18px; border: 1px solid #d5dde8; background: #fff !important; }
.t-btn { height: 18px; background: #0956bb !important; }
.t-bar { height: 5px; background: #e9eef5 !important; } .t-bar b { display: block; width: 66%; height: 100%; background: #0956bb; border-radius: 4px; }
.t-choice { height: 20px; background: #f3f5f8 !important; border: 1px solid #d5dde8; }
.t-check { width: 30%; height: 9px; background: #e9f7ee !important; }
.t-stats { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 4px; background: none !important; } .t-stats b { height: 18px; background: #f3f5f8; border: 1px solid #e3e8ef; border-radius: 4px; }

/* ---------- hand-off ---------- */
.handoff-box { margin-top: 18px; background: var(--panel-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.example-tag { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--amber); background: #fff7e6; border: 1px solid #f3d7a8; padding: 4px 10px; border-radius: 99px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.6; background: #0f1b2d; color: #dbe7f7; padding: 14px 16px; border-radius: var(--radius-sm); overflow-wrap: anywhere; word-break: break-all; }
.code b { color: #7db4ff; font-weight: 700; }
.code--soft { background: #1b2a40; color: #c3d2e6; }
.small { font-size: 14px; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.params { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.params th, .params td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.params th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--panel-alt); }
.params tr:last-child td { border-bottom: 0; }

.golive { margin: 18px 0 0; padding: 0 0 0 20px; display: grid; gap: 8px; color: var(--muted); max-width: 820px; }
.golive strong { color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 22px 0 30px; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
