:root {
    color-scheme: light dark;
    --paper: #f5f5f1;
    --surface: #ebebe5;
    --ink: #1c1d1b;
    --muted: #6d706b;
    --line: #d6d7d0;
    --accent: #386b58;
    --accent-dark: #285141;
    --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--accent); }
.shell { width: min(calc(100% - 48px), var(--max-width)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 8px 12px; transform: translateY(-160%); background: var(--ink); color: var(--paper); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-mark { display: inline-flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: -.02em; text-decoration: none; }
.mark-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.nav-list { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav-list a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--ink); }
.hero { min-height: calc(100vh - 213px); padding-block: clamp(90px, 15vw, 190px); }
.kicker { margin: 0 0 24px; color: var(--accent); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .72rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; }
h1 { max-width: 900px; margin-bottom: 36px; font-size: clamp(3rem, 8vw, 6.8rem); font-weight: 580; }
.muted { color: var(--muted); font-weight: 430; }
.hero-copy { max-width: 600px; margin-bottom: 34px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 10px 18px; border: 0; border-radius: 0; background: var(--ink); color: var(--paper); font: inherit; font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--accent-dark); }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.text-link { font-size: .9rem; font-weight: 600; }
.page-intro { padding-block: clamp(80px, 12vw, 150px) 90px; border-bottom: 1px solid var(--line); }
.apps-intro { border-bottom: 0; }
.page-intro h1 { margin-bottom: 28px; font-size: clamp(3rem, 7vw, 6rem); }
.page-intro > p:not(.kicker):not(.meta) { max-width: 720px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.meta { margin: 32px 0 0; color: var(--muted); font-family: ui-monospace, monospace; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.content-section, .legal { padding-block: 90px; }
.content-section h2, .legal h2, .contact-band h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 540; }
.content-section > p, .legal p, .contact-band p { color: var(--muted); }
.steps { margin: 45px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.steps li { display: grid; grid-template-columns: 72px 1fr; padding: 24px 0; border-bottom: 1px solid var(--line); }
.steps span { color: var(--accent); font-family: ui-monospace, monospace; font-size: .75rem; }
.steps p { margin: 0; }
.legal section + section { margin-top: 60px; }
.legal h2 { margin-bottom: 18px; }
.legal p { margin-bottom: 0; }
.legal p + p { margin-top: 18px; }
.apps-section { padding-block: 90px 110px; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.app-item { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 24px; min-width: 0; padding: 32px 28px 32px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.app-item:nth-child(even) { padding-right: 0; padding-left: 28px; border-left: 1px solid var(--line); }
.app-item img { width: 88px; height: 88px; border-radius: 21%; background: var(--surface); }
.app-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.app-copy strong { overflow: hidden; font-size: 1.05rem; font-weight: 620; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.app-copy span { color: var(--muted); font-size: .82rem; }
.app-arrow { color: var(--muted); transition: transform .15s ease; }
.app-item:hover .app-arrow { color: var(--accent); transform: translate(2px, -2px); }
.contact-band { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 110px; padding: 56px; background: var(--surface); }
.contact-band > div { max-width: 670px; }
.contact-band h2 { margin-bottom: 18px; }
.contact-band p:last-child { margin-bottom: 0; }
.contact-primary { margin-top: 90px; }
.contact-primary h2 a { text-decoration-thickness: 1px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 130px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .78rem; }
.footer-inner p { margin: 0; }

@media (max-width: 720px) {
    .shell { width: min(calc(100% - 32px), var(--max-width)); }
    .header-inner { min-height: 72px; align-items: flex-start; flex-direction: column; gap: 16px; padding-block: 18px; }
    .nav-list { width: 100%; gap: 20px; overflow-x: auto; }
    .hero { padding-block: 80px 110px; }
    .hero h1 { letter-spacing: -.055em; }
    .app-grid { grid-template-columns: 1fr; }
    .app-item, .app-item:nth-child(even) { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 18px; padding: 24px 0; border-left: 0; }
    .app-item img { width: 72px; height: 72px; }
    .contact-band { align-items: flex-start; flex-direction: column; margin-bottom: 72px; padding: 32px 24px; }
    .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-color-scheme: dark) {
    :root { --paper: #181a18; --surface: #222521; --ink: #eeeee8; --muted: #a7aaa3; --line: #383c37; --accent: #7fb59d; --accent-dark: #376b55; }
}
