* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--white); font: var(--body)/var(--body-line) var(--font); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--dark); text-wrap: balance; }
h1 { font-size: var(--h1); line-height: 1.16; }
h2 { font-size: var(--h2); line-height: 1.25; }
h3 { font-size: var(--h3); line-height: 1.4; }
p + p { margin-top: var(--space-12); }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[id] { scroll-margin-top: var(--space-24); }
.wrap { width: min(var(--max-width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.measure { max-width: var(--measure); }
.skip { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 8px 16px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.top { border-bottom: 1px solid var(--line); }
.top-inner, .brand, .nav, .actions { display: flex; align-items: center; }
.top-inner { justify-content: space-between; gap: var(--space-16); }
.brand { gap: 8px; min-height: 72px; flex: none; }
.brand img { display: block; }
.nav { gap: clamp(4px, .6vw, 10px); flex-wrap: wrap; }
.nav a { min-height: var(--touch); display: grid; place-items: center; padding-inline: 9px; border-radius: var(--radius); font-size: var(--nav); font-weight: 600; }
.nav a:is(:hover, :active, [aria-current]) { background: var(--canvas); color: var(--brand-blue); }
.actions { gap: 12px; flex-wrap: wrap; margin-top: var(--space-24); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 16px; border-radius: var(--radius); border: 1px solid var(--brand-blue); background: var(--brand-blue); color: white; text-decoration: none; font: 600 var(--nav)/1.45 var(--font); cursor: pointer; gap: 6px; }
.btn:is(:hover, :active) { background: var(--blue-hover); color: white; }
.btn.secondary { background: var(--white); color: var(--brand-blue); }
.btn.secondary:is(:hover, :active) { background: var(--canvas); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); }
.related-link { display: flex; flex-direction: column; gap: 8px; }
.related-link strong { display: flex; justify-content: space-between; gap: 8px; }
.related-link span:not([aria-hidden]) { color: var(--muted); font-size: var(--small); }
.related-link:is(:hover, :active) { background: var(--canvas); border-color: var(--control-line); }
.footer { border-top: 1px solid var(--line); font-size: var(--small); padding-block: 32px; background: var(--dark); color: white; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); }
.footer-group strong { display: block; margin-bottom: 8px; }
.footer a:not(.btn) { display: flex; align-items: center; width: fit-content; min-height: var(--touch); color: white; }
.footer a:not(.btn):is(:hover, :active) { background: var(--brand-blue); }
.footer .btn { margin-top: 16px; gap: 6px; }
.hero { position: relative; overflow: hidden; background: var(--canvas); }
.hero-background { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(245, 247, 252, .96) 0%, rgba(245, 247, 252, .9) 39%, rgba(245, 247, 252, 0) 65%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; align-items: center; min-height: clamp(470px, 36vw, 660px); padding-block: clamp(48px, 6vw, 86px); }
.hero-copy { max-width: min(51%, 620px); }
.hero-copy h1 { text-wrap: wrap; }
.hero-copy .lead + p { margin-top: var(--space-12); }
.stripe { width: 40px; height: 4px; background: var(--brand-green); margin-bottom: var(--space-24); }
.title-term { white-space: nowrap; }
.lead { font-size: var(--lead); line-height: 1.65; margin-top: var(--space-24); }
.line-icon { display: inline-grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 1px solid #d4dcf2; border-radius: 9px; background: var(--canvas); color: var(--brand-blue); }
.line-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.panel > .line-icon { margin-bottom: 12px; }
.migration-flow strong { color: var(--dark); }
.migration-flow p, .route-inputs span { color: var(--muted); font-size: var(--small); }
.section { padding-block: var(--section-gap); }
.section-intro { margin-bottom: var(--space-24); }
.section h2 + p, .section h3 + p, .panel p + p { margin-top: var(--space-12); }
.band { background: var(--canvas); }
.panel { padding: clamp(16px, 2.5vw, 28px); border: 1px solid var(--line); border-radius: var(--panel-radius); background: white; }
.two-grid { display: grid; gap: var(--space-24); }
.migration-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sample { border: 1px solid var(--line); border-radius: var(--panel-radius); background: white; padding: clamp(18px, 3.5vw, 44px); }
.sample-label { font-size: var(--small); color: var(--green-text); font-weight: 650; margin-bottom: 8px; }
.route-map, .migration-figure { background: var(--canvas); padding: clamp(14px, 2.5vw, 24px); border: 1px solid var(--line); border-radius: var(--radius); }
.route-map figcaption, .migration-figure figcaption { color: var(--dark); font-weight: 700; margin-bottom: 12px; }
.route-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.route-inputs > div, .route-result { text-align: center; padding: 10px 8px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.route-inputs strong { display: block; color: var(--brand-blue); }
.route-inputs span { display: block; margin-top: 4px; }
.route-merge { position: relative; width: 50%; height: 16px; margin: auto auto 12px; border: 1px solid var(--control-line); border-top: 0; border-radius: 0 0 6px 6px; }
.route-merge::after { content: ""; position: absolute; top: 100%; left: 50%; height: 12px; border-left: 1px solid var(--control-line); }
.route-result { width: fit-content; margin-inline: auto; padding-inline: 16px; color: var(--green-text); background: var(--green-tint); border-color: #cadfc5; }
.migration-figure { margin-bottom: var(--space-16); }
.migration-flow { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.migration-flow li { display: flex; align-items: center; gap: 12px; background: white; padding: 12px; border-radius: var(--radius); }
.decision-grid .panel { display: flex; align-items: flex-start; flex-direction: column; }
.decision-grid .btn { margin-top: auto; }
.decision-grid .panel p:last-of-type { margin-bottom: 18px; }
.feature-intro, .sample-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); align-items: center; gap: clamp(16px, 3vw, 40px); }
.feature-intro { align-items: stretch; }
.prompt-box { border-left: 3px solid var(--brand-green); border-radius: 0 var(--radius) var(--radius) 0; background: white; padding: clamp(14px, 2vw, 24px); }
.prompt-box strong { color: var(--dark); }
.prompt-box p { margin-top: 6px; }
.prompt-box .btn { margin-top: 12px; }
.sample-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
.sample-story p + p { margin-top: var(--space-12); }
.consult-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; margin-top: var(--space-24); padding: clamp(14px, 2.5vw, 24px); border: 1px solid #cadfc5; background: var(--green-tint); border-radius: var(--radius); }
.consult-bar h3 { color: var(--green-text); }
.consult-bar h3 + p { margin-top: 6px; }
.consult-bar .btn { flex: none; }
.example-detail { margin-top: var(--space-16); padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.example-detail summary { min-height: 44px; padding: 10px 4px; color: var(--brand-blue); font-weight: 650; cursor: pointer; }
.example-detail summary:hover { color: var(--blue-hover); }
.example-detail[open] { padding-bottom: 12px; }
.example-detail p { max-width: var(--measure); padding: 4px; }
.section-detail-link { margin-top: var(--space-16); }
.section-detail { margin-top: var(--space-24); }
.inline-link { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; margin-top: var(--space-12); font-weight: 650; border-radius: 4px; }
.inline-link:is(:hover, :active) { background: var(--canvas); }
.table-wrap { border-radius: var(--panel-radius); border: 1px solid var(--line); overflow: hidden; background: white; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
table caption { padding: 12px 16px; font-weight: 700; text-align: left; color: var(--dark); }
th, td { text-align: left; vertical-align: top; overflow-wrap: anywhere; padding: 12px 16px; border-top: 1px solid var(--line); }
th { background: var(--canvas); color: var(--dark); }
th:first-child { width: 26%; }
code { font-size: .85em; color: var(--brand-blue); }
.closing { background: var(--dark); color: white; border-radius: var(--panel-radius); padding: clamp(20px, 4vw, 48px); }
.closing h2 { color: white; }
.closing .btn { margin-top: var(--space-16); }
.related-grid { margin-top: var(--space-24); }
@media (max-width: 880px) {
  .top-inner { flex-wrap: wrap; row-gap: 0; }
  .nav { width: 100%; padding-bottom: 12px; gap: 4px; justify-content: center; }
  .feature-intro, .sample-grid { grid-template-columns: 1fr; }
  .hero-inner { min-height: 0; padding-block: 52px clamp(180px, 31vw, 244px); }
  .hero-copy { max-width: 560px; }
  .hero-background { top: auto; height: clamp(230px, 47vw, 365px); object-position: 82% 56%; mask-image: linear-gradient(to bottom, transparent 0%, #000 34%); }
  .hero::after { display: none; }
}
@media (max-width: 640px) {
  .two-grid, .migration-flow, .related-grid { grid-template-columns: 1fr; gap: var(--space-16); }
  .consult-bar { align-items: flex-start; flex-direction: column; }
  th, td { padding: 8px; font-size: var(--small); }
  th:first-child { width: 27%; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); }
  .footer-brand { grid-column: 1 / -1; }
}
