/* Product clarity: readable typography, a continuous git rail, and explanatory visuals. */
:root {
  color-scheme: light;
  --bg: #faf9fc; --fg: #211a30; --card: #fff; --muted: #f0ebf7;
  --mutedfg: #686174; --accent: #6843b5; --accent2: #b74725;
  --accent3: #3e7766; --edge: #ded7e8; --orange: #ffab82;
  --display: 'Space Grotesk', sans-serif; --mono: 'IBM Plex Mono', monospace;
  --header-height: 76px; --chapter-height: 68px;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--chapter-height) + 24px); }
body { margin: 0; color: var(--fg); background: var(--bg); font-family: 'DM Sans', sans-serif; }
::selection { background: #dcc6ff; color: #211a30; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #9c70ed; outline-offset: 5px; }
#top:focus { outline: none; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--fg); color: white; padding: 14px 20px; }
.skip-link:focus { top: 12px; }
body > header { height: var(--header-height); z-index: 50 !important; background: #faf9fcf2 !important; border-bottom: 1px solid var(--edge); }
body > header > div { height: 100%; }
body > header .font-display, footer .font-display { font-size: 22px; text-transform: none; letter-spacing: -.055em; font-weight: 700; }
body > header nav a { text-transform: none; letter-spacing: 0; font-size: 12px; }
.chamfer-sm { border-radius: 7px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 22px; min-height: 52px; padding: 14px 22px; border: 1px solid var(--fg); border-radius: 5px; color: #fff; background: var(--fg); text-decoration: none; font: 500 13px var(--mono); cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.btn > span[aria-hidden] { font: 22px/1 var(--display); }
.btn:hover { background: #493366; transform: translateY(-2px); box-shadow: 0 6px 16px #211a301a; }
body > header .btn { min-height: 44px; padding: 10px 17px; gap: 15px; font-size: 11px; }
.text-link { display: inline-flex; align-items: center; min-height: 48px; gap: 20px; font: 500 12px var(--mono); }
.text-link span { display: inline-block; transition: transform .2s; }
.text-link:hover span { transform: translateY(3px); }
.status-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #3e7766; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 500 11px/1.7 var(--mono); letter-spacing: .05em; color: var(--accent); }
.hero { position: relative; max-width: 1392px; margin: 20px auto 0; padding: 60px 64px 0; border: 1px solid #342745; border-radius: 18px 18px 0 0; color: #faf7ff; background: radial-gradient(ellipse at 96% 95%,#a64d4b65,transparent 45%),radial-gradient(ellipse at 70% 10%,#6f3cb359,transparent 52%),#191321; overflow: clip; }
.hero::before { content: ''; position: absolute; width: 54%; height: 100%; top: 0; right: 0; pointer-events: none; background-image: radial-gradient(#b4a0d126 .8px,transparent .8px); background-size: 15px 15px; mask-image: linear-gradient(90deg,transparent,black); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.14fr 1fr; align-items: center; gap: 52px; }
.hero .eyebrow { color: #dac6ff; }
.hero .status-dot { background: #c5a1ff; box-shadow: 0 0 0 4px #c5a1ff18; }
.hero h1 { font: 500 clamp(48px,4.8vw,68px)/1.07 var(--display); letter-spacing: -.06em; margin: 24px 0; }
.hero h1 > span { color: #ffb88f; }
.hero-description { color: #d0c5da; font-size: 17px; line-height: 1.8; max-width: 480px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 30px; }
.hero .btn { background: #ffb58f; color: #24152c; border-color: #ffb58f; box-shadow: 0 0 0 3px #ffb58f12; }
.hero .btn:hover { background: #ffd2b5; }
.hero .text-link { color: #ede1ff; font-size: 13px; }
.hero-footnote { font-size: 12px; line-height: 1.8; color: #c1b1ce; margin: 22px 0 0; }
.hero-visual { --rail-width: 64px; position: relative; min-width: 0; margin: 0; padding: 20px 10px 0 var(--rail-width); }
.hero-preview-frame { position: relative; width: 100%; max-width: 405px; margin: auto; }
.app-preview { position: relative; display: block; width: 100%; max-width: 405px; margin: auto; padding: 0; border: 1px solid #837193; border-radius: 12px; background: transparent; box-shadow: 0 24px 70px #14092485; cursor: zoom-in; transition: border-color .2s; }
.app-preview:hover { border-color: #ddbdff; }
.app-preview img { display: block; width: 100%; height: auto; border-radius: 11px; }
.branch-canvas { position: absolute; inset: 0; container-type: size; pointer-events: none; }
.git-rail { --rail-inset: 24px; --rail-color: #e79c7c; position: absolute; top: var(--rail-inset); bottom: var(--rail-inset); right: 100%; width: var(--rail-width); border: 2px solid var(--rail-color); border-right: 0; border-radius: 36px 0 0 36px; transform: skewX(3deg); transform-origin: bottom right; }
/* Extend the upper join by height × tan(3deg), keeping both frame connections intact. */
.git-rail::before { content: ''; position: absolute; top: -2px; left: 100%; width: calc((100cqh - var(--rail-inset) * 2) * .0524077793); height: 2px; background: var(--rail-color); }
.rail-feature { --rail-inset: 60px; --rail-color: #9571c9; width: calc(var(--rail-width) * .58); border-radius: 22px 0 0 22px; }
.git-rail i { position: absolute; left: -7px; top: 25%; width: 12px; height: 12px; border: 2px solid #e79c7c; border-radius: 50%; background: #261a31; }
.rail-feature i { border-color: #9571c9; }
.git-rail i:nth-child(2) { top: 54%; }
.git-rail i:nth-child(3) { top: 73%; }
.git-rail::after { content: ''; position: absolute; height: 6px; width: 6px; left: -4px; background: #ffb58f; border-radius: 50%; animation: commit-flow 5s ease-in-out infinite; }
.rail-feature::after { background: #d0adff; animation-delay: -2s; }
@keyframes commit-flow { 0% { top: 22%; opacity: 0; } 15%,80% { opacity: 1; } 100% { top: 73%; opacity: 0; } }
.branch-label { position: absolute; top: -18px; right: 12px; border: 1px solid #8a719e; border-radius: 4px; padding: 6px 11px; background: #392844; color: #e3c8ff; font: 11px var(--mono); transform: rotate(4deg); }
.hero-visual figcaption { position: relative; text-align: center; margin-top: 19px; font: 11px/1.7 var(--mono); color: #ccb9db; }
.hero-bottom { position: relative; display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; padding: 28px 0; margin-top: 45px; border-top: 1px solid #79608966; color: #d0c0dc; }
.hero-bottom > div { display: flex; align-items: flex-start; gap: 16px; }
.journey-nav { position: sticky; top: 0; z-index: 40; background: #faf9fcf7; backdrop-filter: blur(16px); border-bottom: 1px solid var(--edge); }
.journey-nav-inner { display: flex; align-items: center; gap: 30px; max-width: 1232px; height: var(--chapter-height); padding: 0 24px; margin: auto; }
.journey-label { display: flex; align-items: center; gap: 12px; font: 11px var(--mono); letter-spacing: .05em; white-space: nowrap; }
.journey-nav ol { flex: 1; display: flex; align-items: center; justify-content: center; list-style: none; padding: 0; margin: 0; }
.journey-nav li { display: flex; align-items: center; }
.journey-nav li + li::before { content: ''; width: 32px; height: 1px; background: var(--edge); }
.journey-nav li a { min-height: 44px; padding: 10px 14px; display: inline-flex; align-items: center; gap: 9px; color: var(--mutedfg); font: 12px var(--mono); border: 1px solid transparent; border-radius: 4px; transition: background .2s, color .2s; }
.journey-nav li a > span { font-size: 11px; color: #93889e; }
.journey-nav a[aria-current="step"] { background: #eee5fa; color: var(--accent); border-color: #d9c7ef; }
.journey-nav a[aria-current="step"] > span { color: var(--accent); }
.journey-nav li a:hover { background: #f0ebf7; color: var(--accent); }
.journey-download { font: 11px var(--mono); display: flex; align-items: center; gap: 16px; min-height: 44px; white-space: nowrap; }
.journey-progress { position: absolute; bottom: -1px; height: 2px; width: 100%; background: transparent; }
.journey-progress > span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg,#7751bb,#ee9467); transform: scaleX(var(--journey-progress,0)); transform-origin: left; }
.story { position: relative; max-width: 1200px; margin: auto; padding: 0 28px 0 100px; }
.story-line { position: absolute; left: 43px; top: 0; bottom: 0; width: 2px; background: #e0d7eb; pointer-events: none; }
.story-line > span { position: absolute; inset: 0; background: linear-gradient(#9c79d8,#7751bb 60%,#f3a67e); transform: scaleY(var(--story-progress,0)); transform-origin: top; }
.stage { position: relative; padding: 104px 0; }
.stage-node { position: absolute; display: grid; place-items: center; left: -72px; top: 102px; width: 32px; height: 32px; background: var(--bg); border: 1px solid #c8b5df; border-radius: 50%; color: var(--accent); font: 11px var(--mono); box-shadow: 0 0 0 7px var(--bg); transition: background .2s, border-color .2s; }
.stage.is-current .stage-node, .stage.is-past .stage-node { color: #fff; background: var(--accent); border-color: var(--accent); }
.stage.is-current .stage-node { box-shadow: 0 0 0 7px var(--bg),0 0 0 8px #d8c8ed; }
.stage-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: start; }
.stage-copy { min-width: 0; }
.stage h2 { font: 500 clamp(34px,3.4vw,46px)/1.12 var(--display); letter-spacing: -.045em; margin: 16px 0 24px; text-wrap: balance; }
.stage-copy > p:not(.eyebrow):not(.technical-note):not(.small-note) { font-size: 17px; line-height: 1.85; color: var(--mutedfg); }
.stage h3 { font: 600 17px/1.35 var(--display); letter-spacing: -.025em; }
code { font-family: var(--mono); font-size: .88em; }
.setup-list { list-style: none; padding: 0; margin: 28px 0 0; }
.setup-list li { display: flex; gap: 16px; margin: 24px 0; }
.setup-list li > span { flex: 0 0 23px; display: grid; place-items: center; height: 23px; border: 1px solid var(--edge); border-radius: 4px; color: var(--accent); font: 11px var(--mono); margin-top: 1px; }
.setup-list strong { font-size: 16px; font-weight: 500; }
.setup-list p { font-size: 14px; line-height: 1.8; color: var(--mutedfg); margin-top: 5px; }
.setup-list code { color: var(--accent); }
.stage-visual { min-width: 0; margin: 0; border: 1px solid #ded3eb; border-radius: 12px; overflow: hidden; }
.connect-visual { border: 0; overflow: visible; }
.terminal-panel { border: 1px solid #493553; border-radius: 10px; background: #201728; color: #f6f0ff; box-shadow: 0 14px 35px #33214212; overflow: hidden; }
.terminal-heading { display: flex; align-items: center; gap: 15px; padding: 8px 16px; border-bottom: 1px solid #48344f; font: 11px var(--mono); color: #b3a1c0; }
.terminal-dots { display: flex; gap: 5px; }
.terminal-dots i { width: 6px; height: 6px; border-radius: 50%; background: #786086; }
.terminal-dots i:first-child { background: #ffab82; }
.copy-command { margin-left: auto; padding: 8px; min-height: 44px; color: #d8c4e7; font: 11px var(--mono); cursor: pointer; }
.copy-command:hover { color: white; }
.terminal-body { padding: 35px 26px 38px; font: 14px/1.8 var(--mono); }
.terminal-comment { color: #bca6cc; font-size: 12px; margin-bottom: 22px; }
.prompt { color: #ffab82; padding-right: 10px; }
.terminal-body code { font-size: 18px; }
.cursor { color: #ffab82; margin-left: 6px; animation: cursor-blink 1.2s step-end infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }
.terminal-note { margin-top: 35px; color: #d0bedf; font-size: 12px; line-height: 1.9; }
.terminal-note > span:first-child { color: #bd9ce9; }
.terminal-note > span:last-child { color: #ac99b8; padding-left: 16px; }
.terminal-footer { display: flex; align-items: center; gap: 8px; border-top: 1px solid #48344f; padding: 17px 20px; font: 11px/1.7 var(--mono); color: #d0badd; }
.terminal-footer .status-dot { background: #9ac9ab; }
.feature-rows { margin-top: 26px; }
.feature-rows > div { display: flex; align-items: flex-start; gap: 17px; padding: 22px 0; border-bottom: 1px solid var(--edge); }
.feature-rows > div > span { flex: 0 0 24px; color: var(--accent); font: 18px var(--mono); }
.feature-rows h3 { font-size: 18px; }
.feature-rows p { color: var(--mutedfg); font-size: 15px; line-height: 1.8; margin-top: 8px; }
.detail-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 15px; }
.detail-links button { color: var(--accent); display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 11px var(--mono); text-decoration: underline; text-underline-offset: 4px; }
.inbox-visual { background: radial-gradient(ellipse at 0 100%,#edd0c4,transparent 65%),#ece6f4; }
.visual-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; min-height: 65px; border-bottom: 1px solid #c5b5d34d; font: 11px/1.6 var(--mono); color: #684f7b; }
.appearance-toggle { display: flex; gap: 2px; padding: 3px; border: 1px solid #d0c0dd; border-radius: 5px; }
.appearance-toggle button { min-height: 44px; min-width: 48px; padding: 4px 9px; border-radius: 3px; font: 11px var(--mono); color: #695675; }
.appearance-toggle button[aria-pressed="true"] { background: #fff; color: #49335b; box-shadow: 0 1px 4px #29143915; }
.inbox-frame { display: block; width: calc(100% - 40px); max-width: 420px; padding: 6px; margin: 28px auto 22px; border: 1px solid #a897b3; border-radius: 10px; background: #f9f6fc; box-shadow: 0 14px 24px #21102e24; cursor: zoom-in; }
.inbox-frame img { display: block; width: 100%; height: auto; border-radius: 5px; }
.stage-visual figcaption { display: block; text-align: center; padding: 0 20px 24px; color: #684f7b; font-size: 12px; line-height: 1.8; }
.technical-note { border-left: 2px solid #c88160; padding-left: 18px; margin-top: 30px; font-size: 14px; line-height: 1.85; color: var(--mutedfg); }
.technical-note strong { color: var(--fg); font-weight: 500; display: block; margin-bottom: 8px; }
.branch-visual { background: #f0eaf8; }
.example-label { color: #684f7b; font-size: 11px; border: 1px solid #cbb5dd; border-radius: 3px; padding: 3px 6px; }
.branch-tree { padding: 30px 26px 16px 61px; position: relative; }
.branch-tree::before { content: ''; position: absolute; top: 40px; bottom: 65px; width: 2px; left: 35px; background: #9e7dbd; }
.tree-main { position: relative; display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.tree-main code { font-size: 14px; color: var(--accent); }
.tree-main > span:last-child { font: 11px var(--mono); color: #8a739a; }
.tree-dot { position: absolute; top: 5px; left: -29px; width: 11px; height: 11px; border-radius: 50%; background: #f0eaf8; border: 2px solid #9b76bf; }
.branch-card { position: relative; border: 1px solid #c9b7dc; border-radius: 7px; background: #fcfaff; padding: 22px; }
.branch-card > .tree-dot { top: 28px; left: -32px; border-color: #8b66b5; background: #dac7f1; }
.branch-card-meta { display: flex; justify-content: space-between; align-items: center; font: 12px var(--mono); color: #6b587a; }
.branch-card h3 { margin: 14px 0 20px; font-size: 19px; }
.child-branch { margin-left: 22px; border-color: #d5b19a; }
.child-branch > .tree-dot { left: -54px; border-color: #b9714c; background: #ffe0ca; }
.handoff-visual { background: radial-gradient(ellipse at 90% 0,#6f3cb340,transparent 70%),#21182b; border-color: #4e395f; padding: 44px 24px 8px; }
.handoff-visual figcaption { color: #d0bedd; padding-top: 25px; }
.small-note { color: var(--mutedfg); font-size: 13px; line-height: 1.8; margin: 24px 0 12px; }
.faq-stage .stage-grid { align-items: start; }
.faq-list details { border: 0; border-bottom: 1px solid var(--edge); border-radius: 0; background: transparent; }
.faq-list summary { min-height: 70px; padding: 20px 0; align-items: center; }
.faq-list summary > span:last-child { font: 500 17px/1.6 'DM Sans',sans-serif; text-transform: none; letter-spacing: -.015em; }
.faq-list details > div { padding: 0 0 25px 32px; font-size: 15px; line-height: 1.8; color: var(--mutedfg); }
.faq-list details[open] { border-color: #ba9dda; }
.chev { transition: transform .2s; }
details[open] .chev { transform: rotate(90deg); }
summary::-webkit-details-marker { display: none; }
.download-stage { border: 0; padding-top: 65px; padding-bottom: 70px; }
.download-stage .stage-node { top: 105px; background: #ffb58f; color: #36253e; border-color: #ce875e; }
.download-panel { position: relative; display: grid; grid-template-columns: 1.45fr .8fr; gap: 35px; padding: 50px; border: 1px solid #d5bfe6; border-radius: 14px; background: radial-gradient(ellipse at 90% 85%,#fac9b3 0,transparent 56%),linear-gradient(110deg,#eee4fa,#e9d9f5); overflow: hidden; }
.download-panel h2 { font-size: clamp(36px,4vw,51px); }
.download-panel p:not(.eyebrow):not(.download-requirements) { font-size: 16px; line-height: 1.8; color: #624f70; }
.download-panel .btn { margin-top: 25px; }
.download-requirements { color: #665172; font-size: 12px; line-height: 1.9; margin-top: 20px; }
.rule { background: var(--edge); height: 1px; }
footer { background: #f2edf7; }
footer .font-label { letter-spacing: .05em; }
footer a { display: inline-flex; align-items: center; min-height: 32px; }
/* The footer closes the same commit rail and reading axis as the workflow. */
.site-footer { position: relative; background: radial-gradient(ellipse at 90% 0,#57316e38,transparent 55%),#191321; color: #ece3f5; }
.footer-inner { position: relative; max-width: 1200px; margin: auto; padding: 0 28px 24px 100px; }
.footer-inner::before { content: ''; position: absolute; top: 0; left: 43px; height: 65px; width: 2px; background: linear-gradient(#f3a67e,#a884cf); }
.footer-topline { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 42px 0 27px; border-bottom: 1px solid #bfa0d529; font: 11px var(--mono); color: #bba8ca; }
.footer-topline > p { position: relative; display: flex; align-items: center; gap: 10px; }
.footer-topline > p > span:not(.footer-commit) { color: #ffb58f; }
.footer-commit { position: absolute; left: -62px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #ffb58f; background: #191321; box-shadow: 0 0 0 5px #191321; }
.site-footer a { min-height: 44px; transition: color .2s; }
.site-footer a:hover { color: #ffb58f; }
.footer-back { gap: 14px; color: #d4b9eb; font: 11px var(--mono); white-space: nowrap; }
.footer-back > span { font-size: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 50px; padding: 40px 0; }
.footer-wordmark { gap: 10px; font: 600 23px var(--display); letter-spacing: -.05em; }
.footer-wordmark img { border-radius: 7px; }
.footer-wordmark > span > span { color: #d6b4f7; }
.footer-brand h2 { margin-top: 20px; font: 500 22px/1.3 var(--display); letter-spacing: -.045em; color: #f6efff; }
.footer-brand > p { max-width: 32ch; margin: 12px 0; color: #c5b6d1; font-size: 15px; line-height: 1.8; }
.footer-contact { color: #d4b9eb; font: 12px var(--mono); gap: 14px; }
.footer-nav h2 { margin: 14px 0 18px; color: #bca0d0; font: 500 11px/1.6 var(--mono); letter-spacing: .06em; }
.footer-nav ol,.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav a { gap: 13px; font-size: 14px; line-height: 1.6; color: #d7cce2; }
.footer-step { color: #ab88c5; font: 11px var(--mono); }
.footer-platform { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 19px 0; border-top: 1px solid #bfa0d529; border-bottom: 1px solid #bfa0d529; color: #c4afd3; font: 11px/1.8 var(--mono); }
.footer-platform p { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-platform p > span:first-child:not(.footer-divider) { color: #ffb58f; font-size: 16px; margin-right: 4px; }
.footer-divider { color: #816b92; padding: 0 3px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 22px; color: #b19fbe; font: 11px/1.8 var(--mono); }
@media (max-width: 1100px) {
  .footer-inner { padding-right: 35px; padding-left: 85px; }
  .footer-inner::before { left: 32px; }
  .footer-commit { left: -58px; }
  .footer-grid { gap: 28px; grid-template-columns: 1.2fr 1fr 1fr; }
}
@media (max-width: 850px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand > p { max-width: 44ch; }
  .footer-brand h2 { margin-top: 12px; }
}
@media (max-width: 700px) {
  .footer-inner { padding: 0 22px 24px 51px; }
  .footer-inner::before { left: 19px; }
  .footer-commit { left: -37px; }
  .footer-topline { gap: 8px; font-size: 11px; padding-bottom: 20px; }
  .footer-topline > p { gap: 6px; }
  .footer-back { font-size: 11px; gap: 8px; }
  .footer-grid { padding: 28px 0; gap: 20px 16px; }
  .footer-nav h2 { font-size: 11px; margin-bottom: 10px; }
  .footer-nav a { font-size: 11px; gap: 8px; }
  .footer-step { font-size: 11px; }
  .footer-platform { font-size: 11px; }
  .footer-bottom { font-size: 11px; }
}
@media (max-width: 370px) {
  .footer-inner { padding-left: 46px; padding-right: 15px; }
  .footer-inner::before { left: 17px; }
  .footer-commit { left: -34px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav h2 { margin-top: 6px; }
}
.image-lightbox { width: min(92vw,651px); max-width: none; border: 0; padding: 0; background: transparent; }
.image-lightbox-pr-actions,.image-lightbox-repository { width: min(92vw,526px); }
.image-lightbox::backdrop { background: #160d24d9; backdrop-filter: blur(6px); }
.image-lightbox button { min-width: 44px; min-height: 44px; color: #211a30 !important; }
.image-lightbox[open] { animation: lightbox-in 160ms ease-out; }
@keyframes lightbox-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.legal-page > header { position: relative; }
.legal-nav-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--mutedfg); font: 12px var(--mono); }
.legal-nav-link:hover, .legal-nav-link[aria-current="page"] { color: var(--accent); }
.legal-nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.legal-main:focus { outline: none; }
.legal-content { position: relative; max-width: 1200px; margin: auto; padding: 80px 28px 80px 100px; }
.legal-content::before { content: ''; position: absolute; top: 0; bottom: 0; left: 43px; width: 2px; background: linear-gradient(#ded7e8,#a884cf 70%,#f3a67e); }
.legal-intro { max-width: 790px; }
.legal-intro h1 { margin-top: 20px; font: 500 clamp(40px,4.8vw,64px)/1.08 var(--display); letter-spacing: -.055em; }
.legal-effective { margin-top: 24px; color: var(--mutedfg); font: 11px/1.8 var(--mono); }
.legal-sections { max-width: 800px; margin-top: 44px; }
.legal-card { position: relative; padding: 32px 0; }
.legal-node { position: absolute; display: grid; place-items: center; left: -72px; top: 30px; width: 32px; height: 32px; border: 1px solid #c8b5df; border-radius: 50%; background: var(--bg); color: var(--accent); font: 11px var(--mono); box-shadow: 0 0 0 7px var(--bg); }
.legal-card h2 { font: 500 24px/1.35 var(--display); letter-spacing: -.03em; }
.legal-card p,.legal-card li { color: var(--mutedfg); font-size: 16px; line-height: 1.85; }
.legal-card p + p { margin-top: 16px; }
.legal-card strong { color: var(--fg); }
.legal-card a { color: var(--accent); text-decoration: underline; }
.site-footer a[aria-current="page"] { color: #ffb58f; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 1100px) {
  .legal-content { padding-inline: 85px 35px; }
  .legal-content::before { left: 32px; }
  .legal-node { left: -68px; }
}
@media (max-width: 700px) {
  .legal-content { padding: 56px 22px 56px 51px; }
  .legal-content::before { left: 19px; }
  .legal-node { left: -44px; width: 26px; height: 26px; top: 32px; }
}
@media (max-width: 600px) {
  .legal-content { padding-inline: 50px 20px; }
  .legal-content::before { left: 18px; }
  .legal-intro h1 { font-size: 40px; }
  .legal-card h2 { font-size: 22px; }
  .legal-card p,.legal-card li { font-size: 15px; }
  .legal-sections { margin-top: 24px; }
}
@media (max-width: 370px) {
  .legal-content { padding-inline: 44px 14px; }
  .legal-content::before { left: 16px; }
  .legal-node { left: -40px; }
  .legal-intro h1 { font-size: 36px; }
}
.landing-page > header { position: relative; top: auto; }
.hero-footnote a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; margin-left: 6px; text-decoration: underline; text-underline-offset: 4px; color: #e6d4fa; }
.hero-visual figcaption > span { padding: 0 5px; color: #ffb58f; }
.hero-bottom > div > span { font: 12px var(--mono); color: #ffb58f; padding-top: 3px; }
.hero-bottom strong { display: block; color: #f6efff; font: 500 16px var(--display); margin-bottom: 7px; }
.hero-bottom p > span { display: block; font-size: 13px; line-height: 1.6; }
.feature-rows > div > span.feature-number { font-size: 12px; line-height: 24px; }
.detail-links button, .detail-link { color: var(--accent); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.stage-visual figcaption span { font-size: 11px; }
.branch-card dl { display: grid; gap: 10px; }
.branch-card dl > div { display: grid; grid-template-columns: 45px 1fr; align-items: center; gap: 8px; }
.branch-card dt { font-size: 12px; color: #75637e; }
.branch-card dd { margin: 0; min-width: 0; }
.branch-card code { font-size: 12px; overflow-wrap: anywhere; }
.matched-branch { display: inline-block; padding: 3px 8px; background: #fae0cf; color: #763814; border: 1px solid #d39c7b; border-radius: 3px; }
.branch-match { color: #89512f; font: 11px/1.6 var(--mono); padding: 16px 0 16px 10px; }
.branch-match span { padding-right: 6px; }
.handoff-origin { position: relative; display: flex; align-items: center; gap: 16px; margin: auto; max-width: 290px; border: 1px solid #88649e; border-radius: 8px; background: #3b2b49; padding: 20px; color: #f6efff; }
.handoff-origin > span { font: 40px var(--display); color: #ffb58f; }
.handoff-origin strong { display: block; font: 500 18px var(--display); }
.handoff-origin p > span { display: block; font-size: 12px; margin-top: 6px; color: #ccb8dc; }
.handoff-paths { position: relative; height: 90px; margin: auto; width: 52%; }
.handoff-paths::before { content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: 42px; background: #c8a8e8; }
.handoff-paths i { position: absolute; top: 40px; width: 50%; height: 50px; border-top: 2px solid #c8a8e8; }
.handoff-paths i:first-child { left: 0; border-left: 2px solid #c8a8e8; border-top-left-radius: 14px; }
.handoff-paths i:last-child { right: 0; border-right: 2px solid #ffb58f; border-top-color: #ffb58f; border-top-right-radius: 14px; }
.handoff-destinations { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.destination-card { min-width: 0; padding: 24px 14px; border: 1px solid #88649e; border-radius: 8px; background: #2e213a; color: #efe4f9; text-align: center; }
.destination-card:last-child { border-color: #a16b55; }
.destination-icon { display: inline-block; margin-bottom: 18px; color: #d6b6f3; font: 30px var(--mono); }
.destination-card:last-child .destination-icon { color: #ffb58f; }
.destination-type { color: #cebadf; font: 11px/1.6 var(--mono); margin-bottom: 8px; }
.destination-card h3 { font-size: 24px; }
.destination-card > p:last-child { font-size: 14px; line-height: 1.7; margin-top: 12px; color: #d0bedd; }
.download-requirements a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.download-visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.download-icon { position: relative; padding: 26px; border: 1px solid #b398c7; border-radius: 30px; background: #ffffff55; box-shadow: 10px 10px 0 #aa85bf20; z-index: 1; }
.download-visual > span { position: relative; font: 13px var(--mono); color: #755182; margin-top: 32px; padding: 7px 12px; border: 1px solid #b398c7; border-radius: 4px; background: #ebdaf3; }
/* The main rail stays full-height; dots mark the orange branch junctions. */
.download-rail { position: absolute; top: -50px; bottom: -50px; left: calc(50% - 1px); width: 2px; background: #a98bbd; }
.download-rail::before, .download-rail::after { content: ''; position: absolute; left: 50%; width: 10px; height: 10px; border: 2px solid #9473ac; border-radius: 50%; background: #eadcf1; z-index: 1; }
.download-rail::before { top: 36px; transform: translate(-50%, -50%); }
.download-rail::after { bottom: 81px; transform: translate(-50%, 50%); }
.download-branch { position: absolute; top: -15px; bottom: 30px; left: 50%; right: 8%; border: 2px solid #d69c7f; border-left: 0; border-radius: 0 75px 75px 0; }
.preview-dialog-surface { position: relative; background: #21182b; padding: 8px; border: 1px solid #9571c9; border-radius: 10px; }
.preview-dialog-surface > img { display: block; max-height: calc(88vh - 64px); max-width: 100%; width: auto; height: auto; margin: auto; border-radius: 5px; }
.image-lightbox:focus { outline: none; }
@media (max-width: 1430px) {
  .hero { margin-inline: 20px; padding-inline: 45px; }
}
@media (max-width: 1100px) {
  .hero { padding: 48px 32px 0; }
  .hero-grid { gap: 28px; }
  .hero h1 { font-size: 54px; }
  .hero-description { font-size: 16px; }
  .hero-bottom { gap: 18px; }
  .journey-label { display: none; }
  .story { padding-right: 35px; padding-left: 85px; }
  .story-line { left: 32px; }
  .stage-node { left: -68px; }
  .stage-grid { gap: 35px; }
  .stage h2 { font-size: 38px; }
  .stage-copy > p:not(.eyebrow):not(.technical-note):not(.small-note) { font-size: 16px; }
  .branch-tree { padding-left: 49px; padding-right: 18px; }
  .branch-tree::before { left: 23px; }
  .branch-card { padding: 18px; }
  .child-branch { margin-left: 12px; }
  .child-branch > .tree-dot { left: -44px; }
  .handoff-visual { padding: 32px 16px 8px; }
  .handoff-destinations { gap: 12px; }
  .destination-card { padding-inline: 10px; }
  .destination-type { font-size: 11px; letter-spacing: -.03em; }
  .download-panel { padding: 36px; }
  .download-icon { padding: 18px; }
  .download-icon img { width: 86px; height: 86px; }
}
@media (max-width: 850px) {
  .hero h1 { font-size: 46px; }
  .hero { padding: 42px 28px 0; }
  .hero-grid { gap: 24px; grid-template-columns: 1.1fr 1fr; }
  .hero-visual { --rail-width: 44px; padding-inline: var(--rail-width) 0; }
  .hero .eyebrow { font-size: 11px; }
  .hero-actions { gap: 12px 18px; }
  .hero .btn { padding-inline: 16px; font-size: 12px; }
  .hero-bottom { padding: 24px 0; gap: 18px; }
  .hero-bottom > div { gap: 10px; }
  .hero-bottom strong { font-size: 15px; }
  .hero-bottom p > span { font-size: 12px; }
  .journey-nav-inner { padding-inline: 16px; gap: 18px; }
  .journey-nav li + li::before { width: 12px; }
  .journey-nav li a { padding-inline: 10px; }
  .journey-download { gap: 8px; }
  .stage { padding-block: 80px; }
  .stage-node { top: 78px; }
  .stage-grid { grid-template-columns: 1fr; gap: 34px; }
  .stage-copy { max-width: 590px; }
  .stage-visual { width: 100%; max-width: 600px; }
  .stage h2 { font-size: 42px; }
  .inbox-frame { max-width: 430px; }
  .branch-tree { padding-left: 61px; padding-right: 26px; }
  .branch-tree::before { left: 35px; }
  .branch-card { padding: 22px; }
  .child-branch { margin-left: 22px; }
  .child-branch > .tree-dot { left: -54px; }
  .handoff-visual { padding: 40px 26px 8px; }
  .destination-card { padding: 26px 15px; }
  .destination-type { letter-spacing: 0; }
  .faq-stage .stage-grid { gap: 20px; }
  .download-panel { grid-template-columns: 1fr; }
  .download-visual { display: none; }
}
@media (max-width: 600px) {
  :root { --header-height: 68px; --chapter-height: 60px; }
  body > header .font-display { font-size: 20px; }
  .hero { margin: 10px 10px 0; padding: 34px 24px 0; border-radius: 12px 12px 0 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: clamp(42px,9.4vw,56px); margin-block: 22px; }
  .hero-description { font-size: 16px; line-height: 1.75; }
  .hero-actions { gap: 8px 20px; margin-top: 22px; }
  .hero .text-link { font-size: 12px; }
  .hero-footnote { margin-top: 15px; }
  .hero-footnote a { margin-left: 0; }
  .hero-visual { max-width: 370px; width: 100%; margin: auto; padding: 14px 0 0 var(--rail-width); }
  .app-preview { max-width: 335px; }
  .branch-label { top: -15px; }
  .hero-visual figcaption { margin-top: 15px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; padding: 26px 0; }
  .hero-bottom > div { gap: 18px; }
  .hero-bottom strong { margin-bottom: 4px; }
  .hero-bottom p > span { font-size: 13px; }
  .journey-nav-inner { padding-inline: 8px; }
  .journey-nav ol { justify-content: space-between; }
  .journey-nav li a { padding-inline: 9px; font-size: 12px; gap: 0; }
  .journey-nav li a > span { display: none; }
  .journey-nav li + li::before { width: 14px; }
  .journey-download { display: none; }
  .story { padding: 0 20px 0 50px; }
  .story-line { left: 18px; }
  .stage { padding-block: 60px; }
  .stage-node { left: -44px; top: 59px; width: 26px; height: 26px; font-size: 11px; }
  .stage h2 { font-size: 34px; margin-top: 14px; }
  .stage-grid { gap: 28px; }
  .stage-copy > p:not(.eyebrow):not(.technical-note):not(.small-note) { font-size: 16px; }
  .feature-rows p { font-size: 14px; }
  .feature-rows h3 { font-size: 17px; }
  .feature-rows { margin-top: 12px; }
  .feature-rows > div { gap: 10px; }
  .detail-links { gap: 4px 18px; }
  .visual-toolbar { padding: 12px; gap: 8px; }
  .appearance-toggle { gap: 0; padding: 2px; }
  .appearance-toggle button { min-width: 44px; padding-inline: 6px; }
  .inbox-frame { width: calc(100% - 24px); margin-block: 18px; }
  .stage-visual figcaption { padding-inline: 13px; }
  .branch-tree { padding: 26px 13px 15px 34px; }
  .branch-tree::before { left: 16px; }
  .tree-dot { left: -23px; }
  .branch-card { padding: 17px 13px; }
  .branch-card > .tree-dot { left: -24px; }
  .child-branch { margin-left: 8px; }
  .child-branch > .tree-dot { left: -32px; }
  .branch-card h3 { font-size: 17px; }
  .branch-card-meta { font-size: 11px; }
  .branch-card dl > div { grid-template-columns: 33px 1fr; }
  .branch-match { padding-left: 0; font-size: 11px; }
  .technical-note { font-size: 13px; }
  .handoff-visual { padding: 26px 12px 0; }
  .handoff-origin { padding: 17px 12px; gap: 10px; }
  .handoff-origin strong { font-size: 17px; }
  .handoff-origin p > span { font-size: 12px; }
  .handoff-paths { height: 72px; }
  .handoff-paths i { height: 32px; }
  .handoff-destinations { gap: 9px; }
  .destination-card { padding: 19px 8px; }
  .destination-type { font-size: 11px; }
  .destination-card h3 { font-size: 21px; }
  .destination-card > p:last-child { font-size: 13px; }
  .destination-icon { font-size: 25px; margin-bottom: 14px; }
  .terminal-heading { padding-inline: 12px; gap: 10px; }
  .terminal-body { padding: 27px 17px; }
  .terminal-body code { font-size: 16px; }
  .terminal-comment { font-size: 11px; }
  .terminal-note { font-size: 11px; }
  .terminal-note > span:last-child { padding-left: 0; }
  .terminal-footer { padding-inline: 14px; }
  .setup-list p { font-size: 14px; }
  .faq-list summary > span:last-child { font-size: 16px; }
  .faq-list details > div { font-size: 14px; padding-left: 22px; }
  .download-panel { padding: 28px 20px; }
  .download-panel h2 { font-size: 34px; }
  .download-panel p:not(.eyebrow):not(.download-requirements) { font-size: 15px; }
  .download-panel .btn { font-size: 12px; padding-inline: 16px; gap: 18px; }
  .download-stage .stage-node { top: 89px; }
  .footer-inner { padding-left: 50px; padding-right: 20px; }
  .footer-inner::before { left: 18px; }
  .footer-commit { left: -37px; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer-nav a { font-size: 14px; }
  .footer-topline { flex-wrap: wrap; gap: 0; }
  .footer-topline > p { min-height: 44px; }
  .footer-brand > p { font-size: 14px; }
  .footer-platform p { gap: 5px; }
}
@media (max-width: 370px) {
  body > header .font-display { font-size: 18px; }
  body > header .btn { padding-inline: 12px; gap: 8px; }
  body > header > div > a { gap: 8px; }
  .hero { padding-inline: 20px; }
  .hero h1 { font-size: 40px; }
  .hero .btn { padding-inline: 13px; }
  .hero-footnote { font-size: 12px; }
  .journey-nav li + li::before { width: 7px; }
  .journey-nav li a { padding-inline: 8px; }
  .story { padding-right: 14px; padding-left: 44px; }
  .story-line { left: 16px; }
  .stage-node { left: -40px; }
  .stage h2 { font-size: 31px; }
  .eyebrow { letter-spacing: 0; }
  .visual-toolbar { padding-inline: 10px; gap: 6px; }
  .branch-card { padding-inline: 11px; }
  .branch-card h3 { font-size: 16px; }
  .branch-card code { font-size: 11px; }
  .branch-card-meta { font-size: 11px; }
  .branch-match { font-size: 11px; letter-spacing: -.03em; }
  .example-label { padding-inline: 4px; }
  .handoff-visual { padding-inline: 9px; }
  .destination-card { padding-inline: 6px; }
  .destination-card > p:last-child { font-size: 12px; }
  .destination-card h3 { font-size: 20px; }
  .terminal-note { font-size: 11px; }
  .terminal-footer { font-size: 11px; }
  .download-panel { padding-inline: 16px; }
  .download-panel h2 { font-size: 30px; }
  .footer-inner { padding-left: 44px; padding-right: 14px; }
  .footer-inner::before { left: 16px; }
  .footer-commit { left: -33px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .text-link:hover span { transform: none; }
}

.setup-install-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.dialog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: #e0ceed; padding: 0 4px 8px 10px; font: 12px var(--mono); }
.dialog-toolbar button { flex-shrink: 0; border: 1px solid #776687; border-radius: 50%; background: #fff; font-size: 24px; }
