:root {
 --bg: #F7F5F0;
 --surface: #FFFFFF;
 --surface-2: #EFECE4;
 --border: #E1DDD3;
 --text: #1B2326;
 --text-muted: #5B676B;
 --accent: #1E5A46;
 --accent-hover: #174A3A;
 --accent-text: #FFFFFF;
 --success: #2F7D55;
 --warning: #B7791F;
 --danger: #B3402F;
 --info: #2F5D8C;
 --chart-secondary: #C9D8D1;
 --radius: 6px;
 --heading-font: "Source Serif 4", Georgia, serif;
 --body-font: "IBM Plex Sans", system-ui, sans-serif;
 color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--body-font); }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
h1, h2, h3 { font: 600 clamp(24px, 3vw, 38px)/1.16 var(--heading-font); }
h1 { font-size: clamp(34px, 4.25vw, 48px); font-weight: 700; }
h3 { font-size: clamp(21px, 2.1vw, 24px); }
ul { padding: 0; }
a { color: var(--accent); text-underline-offset: 0.19em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#asm-main:focus-visible { outline-offset: -3px; }
.asm-skip {
 position: absolute; z-index: 2; inset-block-start: 8px; inset-inline-start: 8px;
 padding: 12px 16px; border-radius: var(--radius); background: var(--surface);
 transform: translateY(calc(-100% - 16px));
}
.asm-skip:focus { transform: none; }
.home-container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.home-preview { padding: 8px 16px; text-align: center; background: var(--surface-2); }

.home-header { border-bottom: 1px solid var(--border); }
.home-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 72px; }
.home-header-inner > :last-child { justify-self: end; }
.home-brand {
 display: inline-flex; align-items: center; gap: 8px; min-height: 44px; width: fit-content;
 color: var(--text); font: 700 23px/1 var(--heading-font); letter-spacing: .03em; text-decoration: none;
}
.home-brand img { display: block; }
.home-header nav, .home-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.home-header nav a, .home-footer nav a {
 display: inline-flex; align-items: center; min-height: 44px; color: var(--text-muted);
 font-size: 14px; font-weight: 500; text-decoration: none;
}
.home-header nav a:hover, .home-footer nav a:hover { color: var(--accent); text-decoration: underline; }
.home-button, .home-inline-link {
 display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
 font-weight: 600; text-decoration: none;
}
.home-button {
 padding: 10px 16px; border: 1px solid transparent; border-radius: var(--radius);
 transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.home-button svg, .home-inline-link svg { flex: none; }
.home-button-primary { color: var(--accent-text); background: var(--accent); }
.home-button-primary:hover { color: var(--accent-text); background: var(--accent-hover); }
.home-button-secondary { color: var(--text); background: var(--surface); border-color: var(--border); }
.home-button-secondary:hover { color: var(--text); background: var(--surface-2); }
.home-inline-link:hover { text-decoration: underline; }

.home-hero {
 display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
 align-items: center; gap: clamp(40px, 7vw, 104px); padding-block: clamp(48px, 7.8vw, 112px) clamp(40px, 6.1vw, 88px);
}
.home-eyebrow { margin-bottom: 16px; color: var(--text-muted); font-size: 14px; font-weight: 600; }
.home-hero h1 { max-width: 17ch; text-wrap: balance; }
.home-intro { max-width: 48ch; margin-top: 16px; color: var(--text-muted); }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 24px; }

.home-ledger { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.home-ledger figcaption {
 display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
 padding: 16px 24px; border-bottom: 1px solid var(--border);
}
.home-ledger figcaption strong { font: 700 20px/1.25 var(--heading-font); }
.home-ledger figcaption span { color: var(--text-muted); font-size: 14px; }
.home-ledger table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.home-ledger :is(th,td) { padding: 12px 16px; }
.home-ledger tr > :first-child { padding-inline-start: 24px; }
.home-ledger tr > :last-child { padding-inline-end: 24px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.home-ledger thead { background: var(--surface-2); color: var(--text-muted); }
.home-ledger tbody th { font-weight: 500; }
.home-ledger tbody td:nth-child(2) { color: var(--text-muted); }
.home-ledger tbody tr + tr, .home-ledger tfoot { border-top: 1px solid var(--border); }
.home-ledger tfoot { background: var(--surface-2); font-weight: 600; }
.home-ledger tfoot td { font-weight: 600; }

.home-trust {
 display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-block: 1px solid var(--border);
 list-style: none; color: var(--text); font-size: 14px; font-weight: 500;
}
.home-trust li { padding: 16px 20px; text-align: center; }
.home-trust li + li { border-inline-start: 1px solid var(--border); }
.home-problem { padding-block: clamp(48px, 7vw, 96px); }
.home-problem h2, .home-problem p { max-width: 720px; }
.home-problem p { margin-top: 16px; color: var(--text-muted); }

.home-section { padding-bottom: clamp(48px, 6.5vw, 88px); }
.home-section > h2 { margin-bottom: 24px; }
.home-feature-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.home-feature {
 min-width: 0; padding: clamp(20px, 2.7vw, 32px);
 border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.home-feature-expenses { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.home-feature p, .home-team p, .home-steps p { margin-top: 8px; color: var(--text-muted); }
.home-shares { margin-top: 32px; }
.home-shares figcaption { margin-bottom: 8px; color: var(--text-muted); font-size: 14px; }
.home-share-bar {
 display: flex; gap: 2px; height: 20px; overflow: hidden; border: 1px solid var(--text-muted);
 border-radius: var(--radius); background: var(--text-muted);
}
.home-share-bar span { flex-basis: 0; background: var(--chart-secondary); }
.home-share-bar span:nth-child(2) { background: var(--surface-2); }
.home-share-bar span:nth-child(3) { background: var(--border); }
.home-shares ul { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 8px; list-style: none; }
.home-shares li { display: grid; gap: 2px; font-size: 14px; color: var(--text-muted); }
.home-shares strong { color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }
.home-file-list { margin-top: 16px; list-style: none; }
.home-file-list li, .home-stock {
 display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
 padding-block: 8px; border-top: 1px solid var(--border); font-size: 14px;
}
.home-file-list li > :last-child { color: var(--text-muted); font-weight: 500; }
.home-stock { margin-top: 16px; }
.home-stock strong { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.home-stock strong::before {
 content: ''; display: inline-block; flex: none; width: 8px; height: 8px;
 border-radius: var(--radius); background: var(--warning);
}
.home-team {
 display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-top: 16px;
 padding: 16px 24px; border-radius: var(--radius); background: var(--surface-2);
}
.home-team h3 { font-size: 20px; }
.home-team p { margin-top: 0; }
.home-more-features { margin-top: 16px; border-top: 1px solid var(--border); }
.home-more-features > div { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.home-more-features dt { font-weight: 600; }
.home-more-features dd { color: var(--text-muted); }

.home-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 2px solid var(--accent); list-style: none; }
.home-steps li { padding: 24px; }
.home-steps li:first-child { padding-inline-start: 0; }
.home-steps li + li { border-inline-start: 1px solid var(--border); }
.home-steps p { max-width: 34ch; }

.home-free-wrap { padding-bottom: clamp(48px, 6.5vw, 88px); }
.home-free {
 display: flex; justify-content: space-between; align-items: center; gap: 24px;
 padding: clamp(24px, 5vw, 56px); border-radius: var(--radius); background: var(--accent); color: var(--accent-text);
}
.home-free p { margin-top: 8px; }
.home-button-light { flex: none; color: var(--accent); background: var(--surface); }
.home-button-light:hover { color: var(--accent-hover); background: var(--surface-2); }
.home-button-light:focus-visible { outline-color: var(--accent-text); }

.home-footer { border-top: 1px solid var(--border); }
.home-footer-inner { display: flex; justify-content: space-between; gap: 24px; padding-block: 24px 32px; }
.home-footer p { color: var(--text-muted); font-size: 14px; }
.home-footer p a { display: inline-flex; align-items: center; min-height: 44px; }
.home-version { display: inline-block; margin-inline-start: 12px; font-variant-numeric: tabular-nums; }
.home-footer nav { gap: 0 16px; }

@media (max-width: 950px) {
 .home-header-inner { gap: 16px; }
 .home-header nav { gap: 8px 16px; }
 .home-hero { gap: 32px; }
 .home-ledger figcaption { flex-direction: column; }
}
@media (max-width: 760px) {
 .home-container { width: calc(100% - 40px); }
 .home-header-inner { grid-template-columns: 1fr auto; gap: 0 16px; padding-block: 8px; }
 .home-header nav { grid-column: 1/-1; grid-row: 2; justify-content: space-between; gap: 0 8px; }
 .home-hero { grid-template-columns: 1fr; padding-block: 40px; }
 .home-hero h1 { text-wrap: initial; }
 .home-ledger figcaption { flex-direction: row; padding-inline: 12px; }
 .home-ledger :is(th,td) { padding-inline: 8px; }
 .home-ledger tr > :first-child { padding-inline-start: 12px; }
 .home-ledger tr > :last-child { padding-inline-end: 12px; }
 .home-trust, .home-feature-grid, .home-steps { grid-template-columns: 1fr; }
 .home-trust li { padding: 8px 0; text-align: left; }
 .home-trust li + li, .home-steps li + li { border-inline-start: 0; border-top: 1px solid var(--border); }
 .home-feature-expenses { grid-row: auto; }
 .home-shares { margin-top: 16px; }
 .home-more-features > div { grid-template-columns: 1fr; gap: 4px; }
 .home-steps li { padding: 16px 0; }
 .home-free, .home-footer-inner { align-items: flex-start; flex-direction: column; }
 .home-footer-inner { gap: 8px; }
}
@media (max-width: 390px) {
 .home-container { width: calc(100% - 32px); }
 .home-ledger figcaption { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { transition: none !important; }
}

.asm-home #asm-test-environment {
 position: static !important; padding: 6px 16px !important; border-radius: 0 !important;
 background: var(--surface-2) !important; color: var(--text-muted) !important;
 font: 400 13px/1.5 var(--body-font) !important; text-align: center; max-width: none !important;
}
.home-hero-centered { grid-template-columns: minmax(0, 720px); justify-content: center; text-align: center; }
.home-hero-centered :is(h1,.home-intro) { margin-inline: auto; }
.home-hero-centered .home-actions { justify-content: center; }

.home-gallery-wrap { margin-block: -24px clamp(32px, 5vw, 64px); }
.home-gallery { border-block: 1px solid var(--border); }
.home-gallery summary {
 display: list-item; min-height: 44px; padding-block: 12px;
 color: var(--text); font-weight: 600; cursor: pointer;
}
.home-gallery p { margin-block: 4px 16px; color: var(--text-muted); }
.home-gallery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.home-gallery-grid img {
 display: block; width: 100%; height: auto; border: 1px solid var(--border);
 border-radius: var(--radius); background: var(--surface);
}
.home-gallery-grid figcaption { margin-top: 4px; color: var(--text-muted); font-size: 14px; }
.home-gallery-wrap .pilot-quote { margin: 16px 0 0; }
@media (max-width: 760px) {
 .home-gallery-grid { grid-template-columns: 1fr; }
}
