:root {
  color-scheme: light;
  --ink: #172b36;
  --muted: #4d616b;
  --paper: #f6f8f7;
  --surface: #ffffff;
  --line: #cfdbd7;
  --accent: #086b64;
  --soft: #e7f2ef;
  --focus: #135d96;
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; }
body.warm, .product-card.warm {
  --paper: #f7f3eb;
  --surface: #fffefa;
  --line: #ded2c3;
  --accent: #844020;
  --soft: #f0e4d7;
}
body.blue, .product-card.blue {
  --ink: #172b43;
  --muted: #53667d;
  --paper: #f3f6fb;
  --surface: #ffffff;
  --line: #cbd7e5;
  --accent: #244fa4;
  --soft: #eaf1ff;
}
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible, .table-scroll:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
  border-radius: 4px;
}
.icon { display: inline-block; width: 1.35rem; height: 1.35rem; flex: 0 0 auto; vertical-align: middle; }
.skip-link { position: absolute; z-index: 20; top: -8rem; left: 1rem; padding: .8rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.container, .header-inner, .product-bar-inner, .site-footer { width: min(1180px, calc(100% - 5rem)); margin-inline: auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 1.75rem; }
.site-brand { display: inline-flex; gap: .85rem; align-items: center; color: var(--ink); font-size: 1rem; font-weight: 750; line-height: 1.3; text-decoration: none; }
.brand-mark { display: grid; place-items: center; background: var(--ink); color: #fff; width: 2.75rem; height: 2.75rem; border-radius: .8rem; }
.brand-mark .icon { width: 1.6rem; height: 1.6rem; }
.brand-sub { display: block; margin-top: .25rem; color: var(--muted); font-size: .76rem; font-weight: 500; letter-spacing: .04em; }
.global-nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.75rem; row-gap: .5rem; }
.global-nav a { color: var(--muted); font-size: .87rem; font-weight: 600; padding-block: .65rem; }
.global-nav a[aria-current] { color: var(--accent); text-decoration-thickness: .15em; }
.eyebrow { font-size: .73rem; font-weight: 750; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.55rem, 5.1vw, 4.7rem); font-weight: 740; margin-bottom: 1.65rem; }
h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 1.15rem; }
h3 { font-size: 1.22rem; letter-spacing: -.025em; }
p { margin-bottom: 1.2rem; }
.lede { max-width: 40rem; color: var(--muted); font-size: 1.17rem; line-height: 1.75; }
.home-hero { padding-block: 5.5rem 4.75rem; }
.home-hero h1 { font-size: clamp(3.2rem, 6.7vw, 6rem); line-height: 1.04; }
.home-hero .lede { max-width: 42rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin-top: 2.1rem; color: var(--muted); font-size: .88rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: .55rem; }
.hero-meta .icon { color: var(--accent); width: 1.15rem; }
.section-heading { max-width: 48rem; margin-bottom: 2rem; }
.section-heading p:not(.eyebrow) { max-width: 45rem; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; padding: 2rem; box-shadow: 0 8px 24px #172b3605; }
.product-card.warm { background: var(--paper); }
.product-card.blue { background: var(--paper); color: var(--ink); }
.product-card-head { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.large-mark { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 1rem; background: var(--soft); color: var(--accent); }
.large-mark .icon { width: 2rem; height: 2rem; }
.pill, .status { display: inline-block; width: fit-content; padding: .35rem .7rem; border-radius: 2rem; background: var(--soft); color: var(--accent); font-size: .73rem; font-weight: 650; line-height: 1.45; }
.product-card h3 { font-size: 1.9rem; margin-bottom: .65rem; }
.product-card p { color: var(--muted); }
.product-card .card-lede { color: var(--ink); font-size: 1.05rem; font-weight: 650; }
.feature-list { list-style: none; margin: .2rem 0 2rem; padding: 0; color: var(--ink); font-size: .93rem; }
.feature-list li { padding: .48rem 0 .48rem 1.3rem; position: relative; }
.feature-list li::before { content: ''; position: absolute; left: .1rem; top: 1rem; width: .35rem; height: .35rem; background: var(--accent); border-radius: 50%; }
.button-link { display: inline-flex; align-items: center; justify-content: center; gap: .9rem; width: fit-content; min-height: 48px; padding: .85rem 1.15rem; border-radius: .55rem; background: var(--accent); color: #fff; text-decoration: none; font-size: .89rem; font-weight: 650; line-height: 1.45; }
.button-link:hover { text-decoration: underline; }
.product-card .button-link { margin-top: auto; }
.text-link, .secondary-link { display: inline-flex; align-items: center; gap: .7rem; font-size: .9rem; font-weight: 650; }
.secondary-link { min-height: 48px; }
.approach { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; border-top: 1px solid var(--line); margin-top: 5.5rem; padding-block: 4rem 1rem; }
.approach-copy { color: var(--muted); max-width: 38rem; }
.quiet-note { font-size: .79rem; line-height: 1.6; color: var(--muted); }
.product-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.product-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 64px; }
.product-name { display: inline-flex; align-items: center; gap: .65rem; font-size: .87rem; font-weight: 750; text-decoration: none; }
.product-bar nav { display: flex; flex-wrap: wrap; gap: .25rem 1.35rem; }
.product-bar nav a { color: var(--muted); font-size: .82rem; padding-block: .9rem; text-decoration: none; }
.product-bar nav a[aria-current] { color: var(--accent); box-shadow: inset 0 -3px var(--accent); font-weight: 700; }
.product-bar nav a:hover { text-decoration: underline; }
.product-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 4rem; padding-block: 4.8rem 5.2rem; }
.product-hero h1 { font-size: clamp(2.7rem, 4.7vw, 4.1rem); }
.product-hero .lede { font-size: 1.05rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.3rem; margin-block: 1.8rem 1rem; }
.example-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.75rem; box-shadow: 0 20px 46px #172b3608; }
.example-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; color: var(--muted); font-size: .75rem; margin-bottom: 1.8rem; }
.example-card h2 { font-size: 1.45rem; line-height: 1.35; margin-bottom: 1.5rem; }
.mapping-pair { display: grid; grid-template-columns: minmax(0, 1fr) 1.4rem minmax(0, 1fr); gap: .9rem; align-items: center; }
.field-label { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; margin-bottom: .5rem; }
.code-value { display: block; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 1.5rem; letter-spacing: .04em; margin-bottom: .65rem; }
.mapping-pair p { font-size: .8rem; color: var(--muted); line-height: 1.8; }
.mapping-arrow { color: var(--accent); }
.example-note { color: var(--muted); background: var(--paper); border-top: 1px solid var(--line); padding: 1rem; border-radius: .4rem; font-size: .8rem; line-height: 1.65; margin-top: .5rem; }
.workflow-section { border-top: 1px solid var(--line); padding-block: 3.8rem; }
.workflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.75rem; list-style: none; padding: 0; margin: 0; }
.workflow li { position: relative; min-width: 0; }
.step-number { display: inline-grid; place-items: center; border: 1px solid var(--line); color: var(--accent); background: var(--surface); font-size: .77rem; font-weight: 700; width: 2.5rem; height: 2.5rem; border-radius: 50%; margin-bottom: 1.25rem; }
.workflow h3 { font-size: 1.2rem; }
.workflow p { font-size: .91rem; color: var(--muted); }
.split-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; padding-block: 3.7rem; border-top: 1px solid var(--line); }
.split-section p { color: var(--muted); font-size: .95rem; }
.constraint-card { padding: 1.75rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.constraint-card .pill { margin-bottom: 1.2rem; }
.warning { background: #fff1d4; color: #755000; }
.facts { margin: 0 0 1.35rem; font-size: .87rem; }
.facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 650; }
.interval-example .facts > div { align-items: flex-start; }
.interval-example .facts dt, .interval-example .facts dd { min-width: 0; overflow-wrap: anywhere; }
.interval-example .facts dd { font-variant-numeric: tabular-nums; }
.save-section { display: flex; align-items: flex-start; gap: 2rem; padding: 2.25rem; margin-top: 1.5rem; background: var(--soft); border: 1px solid var(--line); border-radius: 1rem; }
.save-section h2 { font-size: 1.65rem; max-width: 45rem; }
.save-section p { max-width: 49rem; color: var(--muted); }
.section-icon { display: grid; place-items: center; width: 3rem; height: 3rem; flex: 0 0 auto; color: var(--accent); background: var(--surface); border-radius: .7rem; }
.section-icon .icon { width: 1.6rem; height: 1.6rem; }
.resources { padding-block: 4rem 1rem; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.resource-card { border: 1px solid var(--line); border-radius: .85rem; padding: 1.6rem; background: var(--surface); color: var(--ink); text-decoration: none; }
.resource-card:hover { border-color: var(--accent); }
.resource-icon { color: var(--accent); display: inline-block; margin-bottom: 1.15rem; }
.resource-card p { font-size: .87rem; color: var(--muted); }
.resource-card .text-link { color: var(--accent); text-decoration: underline; }
.comparison-section { border-top: 1px solid var(--line); padding-block: 3.7rem; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 44rem; font-size: .85rem; text-align: left; }
caption { text-align: left; font-weight: 600; font-size: .79rem; color: var(--muted); padding: 1rem 1.2rem; background: var(--paper); }
th, td { padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { color: var(--muted); font-weight: 650; font-size: .74rem; line-height: 1.5; white-space: normal; }
tbody tr:last-child > * { border-bottom: 0; }
tbody td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.money { font-weight: 750; color: var(--ink); }
.lowest-row { background: var(--soft); }
.row-note { display: block; font-size: .69rem; color: var(--accent); font-weight: 600; margin-top: .4rem; }
.scroll-hint { font-size: .78rem; color: var(--muted); margin-bottom: .65rem; }
.calculation-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 1.8rem; }
.calculation-detail p { font-size: .87rem; color: var(--muted); }
.calculation-detail strong { color: var(--ink); }
.doc-hero { padding-block: 3.7rem 2.25rem; }
.doc-hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.65rem); margin-bottom: 1rem; }
.doc-summary { color: var(--muted); max-width: 43rem; }
.doc-layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 4.5rem; align-items: start; padding-top: 1rem; }
.doc-sidebar { position: sticky; top: 2rem; font-size: .82rem; }
.doc-sidebar ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.doc-sidebar li { margin-bottom: .25rem; }
.doc-sidebar a { display: block; padding: .5rem .9rem; line-height: 1.5; text-decoration: none; color: var(--muted); }
.doc-sidebar a:hover { color: var(--accent); text-decoration: underline; }
.doc-sidebar .sidebar-overview { display: inline-block; margin-top: 1.5rem; padding-left: 0; color: var(--accent); text-decoration: underline; }
.prose { min-width: 0; max-width: 49rem; font-size: .98rem; }
.prose > p:first-child { font-size: 1.08rem; color: var(--muted); }
.prose h2 { font-size: 1.6rem; margin-top: 3rem; scroll-margin-top: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { overflow-wrap: anywhere; }
.prose strong { font-weight: 700; }
.prose ol, .prose ul { padding-left: 1.55rem; margin-bottom: 1.75rem; }
.prose li { padding-left: .3rem; margin-bottom: .9rem; }
.prose li::marker { color: var(--accent); font-weight: 700; }
code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .86em; background: var(--soft); padding: .13rem .3rem; border-radius: .2rem; overflow-wrap: anywhere; }
.doc-end { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; }
.doc-end p { color: var(--muted); font-size: .85rem; }
.doc-end nav { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.doc-end a { display: inline-flex; align-items: center; gap: .5rem; font-size: .87rem; font-weight: 600; min-height: 44px; }
.site-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-top: 4rem; border-top: 1px solid var(--line); padding-block: 2rem 2.5rem; font-size: .78rem; color: var(--muted); }
.footer-brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.site-footer p { margin-top: .4rem; margin-bottom: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem 1.5rem; }
.site-footer nav a { padding-block: .4rem; }
@media (max-width: 1000px) {
  .container, .header-inner, .product-bar-inner, .site-footer { width: min(1180px, calc(100% - 3rem)); }
  .product-hero { gap: 2rem; }
  .product-hero h1 { font-size: 3rem; }
  .split-section { gap: 2.5rem; }
  .doc-layout { grid-template-columns: 12rem minmax(0, 1fr); gap: 2.5rem; }
  .resource-card { padding: 1.25rem; }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .container, .header-inner, .product-bar-inner, .site-footer { width: calc(100% - 2rem); }
  .header-inner { padding-block: 1rem; flex-wrap: wrap; gap: .8rem; min-height: 0; }
  .global-nav { width: 100%; gap: 1.4rem; }
  .global-nav a { font-size: .78rem; padding-block: .45rem; }
  .product-bar-inner { align-items: flex-start; flex-direction: column; padding-top: .85rem; gap: .3rem; }
  .product-bar nav { gap: 1.4rem; }
  .product-bar nav a { font-size: .77rem; padding-block: .65rem; }
  .home-hero { padding-block: 3rem; }
  .home-hero h1 { font-size: clamp(3rem, 13vw, 4.3rem); }
  .lede { font-size: 1.04rem; }
  .hero-meta { gap: .65rem 1.1rem; font-size: .77rem; }
  .product-grid, .approach, .product-hero, .split-section, .calculation-detail, .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .product-card { padding: 1.5rem; }
  .product-card h3 { font-size: 1.7rem; }
  .product-card-head { margin-bottom: 1.5rem; }
  .product-card .pill { font-size: .68rem; }
  .approach { gap: 1rem; padding-top: 2.5rem; margin-top: 3rem; }
  .product-hero { padding-block: 3rem; gap: 2.2rem; }
  .product-hero h1 { font-size: clamp(2.55rem, 10vw, 3.9rem); }
  .example-card { padding: 1.3rem; }
  .mapping-pair { gap: .7rem; }
  .workflow-section, .comparison-section { padding-block: 2.8rem; }
  .workflow { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; }
  .workflow li { padding-left: 3.8rem; }
  .step-number { position: absolute; left: 0; top: 0; }
  .workflow h3 { margin-top: .4rem; }
  .workflow p { margin-bottom: .5rem; }
  .split-section { padding-block: 2.8rem; gap: 1.5rem; }
  .constraint-card { padding: 1.3rem; }
  .save-section { width: calc(100% - 2rem); padding: 1.5rem; flex-direction: column; gap: 1rem; }
  .resources { padding-block: 2.75rem 0; }
  .resource-grid { grid-template-columns: minmax(0, 1fr); }
  .resource-card { padding: 1.5rem; }
  .resource-icon { margin-bottom: .8rem; }
  .calculation-detail { gap: .75rem; }
  .doc-hero { padding-block: 2.5rem 1rem; }
  .doc-layout { padding-top: 0; gap: 2rem; }
  .doc-sidebar { position: static; border: 1px solid var(--line); padding: 1rem; background: var(--surface); border-radius: .7rem; }
  .doc-sidebar ol { border-left: 0; }
  .doc-sidebar a { padding-left: 0; }
  .doc-sidebar .sidebar-overview { margin-top: .6rem; }
  .doc-sidebar .eyebrow { margin-bottom: .5rem; }
  .prose { font-size: .95rem; }
  .prose h2 { margin-top: 2.2rem; font-size: 1.45rem; }
  .site-footer { flex-direction: column; gap: 1rem; margin-top: 3rem; }
  .site-footer nav { justify-content: flex-start; gap: .5rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 400px) {
  .mapping-pair { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .mapping-arrow { width: fit-content; transform: rotate(90deg); margin-block: -.2rem .7rem; }
}
@media print {
  .site-header, .product-bar, .site-footer, .doc-sidebar, .doc-end, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .container { width: 100%; }
  .doc-layout { display: block; }
  .prose { max-width: none; font-size: 10pt; }
  .prose h2 { break-after: avoid; }
  .table-scroll { overflow: visible; }
  table { min-width: 0; font-size: 8pt; }
  th, td { padding: .35rem; }
}
