:root {
    color: #1b2620;
    background: #f5f6f0;
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
    --muted: #53615a;
    --border: #dbe1d8;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
button, input { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 3px solid #367d5b; outline-offset: 4px; }
.wrap { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; }
.brand small { display: block; color: var(--muted); font-size: .75rem; font-weight: 500; margin-top: 4px; }
.brand-icon, .wallet-icon, .card-icon { display: grid; place-items: center; flex: none; border-radius: 12px; width: 44px; height: 44px; }
.brand-icon, .button { background: var(--brand); color: var(--on-brand); }
.brand-icon svg, .wallet-icon svg, .card-icon svg { width: 26px; height: 26px; }
.quiet { border: 1px solid var(--border); border-radius: 9px; background: #fff; color: #27382e; padding: 8px 13px; font-weight: 650; text-decoration: none; font-size: .82rem; text-align: center; }
.quiet span { margin-left: 4px; }
.quiet:hover { background: #f0f3ed; }
main { flex: 1; }
.entry-grid { margin: 58px 0 48px; display: grid; grid-template-columns: 1.16fr 1fr; gap: 20px; }
.hero, .membership { background: var(--brand); color: var(--on-brand); position: relative; overflow: hidden; isolation: isolate; }
.hero { min-height: 478px; padding: clamp(30px, 4.5vw, 54px); display: flex; flex-direction: column; align-items: flex-start; gap: 32px; border-radius: 24px; }
.card-art { position: absolute; z-index: -1; pointer-events: none; bottom: -28px; right: -70px; width: 82%; height: auto; stroke: var(--accent); stroke-width: 1.15; opacity: .43; }
.hero h1 { font-size: clamp(2.65rem, 4.4vw, 4.65rem); line-height: .99; letter-spacing: -.064em; max-width: 9ch; margin: 22px 0 17px; }
.hero p { max-width: 34ch; margin: 0; opacity: .88; }
.hero-tag { font-size: .7rem; font-weight: 780; letter-spacing: .14em; display: inline-flex; gap: 8px; align-items: center; }
.hero-tag span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-card { width: min(236px, 100%); padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; border-radius: 13px; background: var(--accent); color: var(--on-accent); transform: rotate(-4deg); box-shadow: 0 12px 30px #0003; }
.hero-card div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 750; overflow-wrap: anywhere; }
.hero-card svg { flex: none; width: 24px; }
.hero-card small { font-size: .63rem; letter-spacing: .12em; font-weight: 800; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 24px; }
.entry { padding: clamp(24px, 4vw, 50px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.wallet-icon { background: #edf2e9; color: #254639; margin-bottom: 16px; }
.eyebrow { color: #466556; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; margin: 0 0 9px; }
h1, h2, p { overflow-wrap: anywhere; }
h2 { margin: 0; font-size: clamp(1.4rem, 2.5vw, 1.9rem); letter-spacing: -.045em; line-height: 1.14; }
.muted, .support-text { color: var(--muted); }
.entry .muted { margin: 12px 0 24px; max-width: 37ch; }
.entry form, .wide { width: 100%; }
label { display: block; font-weight: 650; font-size: .89rem; min-width: 0; }
input { display: block; width: 100%; min-width: 0; min-height: 48px; margin-top: 7px; padding: 10px 12px; border: 1px solid #c6d1c9; border-radius: 9px; background: #fdfefa; color: #1b2620; }
input::placeholder { color: #5f6b63; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 15px; min-height: 47px; border: 1px solid transparent; border-radius: 9px; font-weight: 740; text-decoration: none; font-size: .92rem; }
.button:hover { filter: brightness(.9); }
.entry .button { margin-top: 14px; }
.text-link { display: inline-block; color: #315e49; font-size: .86rem; margin-top: 20px; text-underline-offset: 3px; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding: 22px 0 24px; color: var(--muted); font-size: .8rem; }
.page-intro { margin: 42px 0 26px; }
.page-intro h1 { font-size: clamp(2.35rem, 5vw, 3.8rem); letter-spacing: -.064em; line-height: 1.05; margin: 0; }
.page-intro .muted { margin: 9px 0 0; }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.membership, .wallet { border-radius: 22px; padding: 26px; min-width: 0; }
.membership { display: grid; gap: 21px; min-height: 260px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 1.1rem; font-weight: 750; overflow-wrap: anywhere; }
.card-icon { background: var(--accent); color: var(--on-accent); }
.card-label { margin: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; }
.balance { display: block; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.1; letter-spacing: -.06em; }
.card-number { margin: 5px 0 0; font: 600 .92rem/1.3 ui-monospace, monospace; overflow-wrap: anywhere; }
.wallet { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.wallet p { margin: 9px 0 16px; }
.wallet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; border-radius: 100px; background: #eaf1e8; color: #2e5040; padding: 5px 11px; white-space: nowrap; font-weight: 700; font-size: .75rem; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 18px 0; }
.metrics div { min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.metrics dt { color: var(--muted); font-size: .82rem; }
.metrics dd { margin: 5px 0 0; font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.1; font-weight: 780; overflow-wrap: anywhere; }
.history { margin-bottom: 38px; overflow: hidden; }
.section-heading { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 625px; border-collapse: collapse; text-align: left; font-size: .88rem; }
th, td { border-top: 1px solid var(--border); padding: 13px 15px; overflow-wrap: anywhere; }
thead th { background: #f3f6f0; color: #40574b; font-size: .78rem; }
tr > :first-child { padding-left: 24px; }
.empty { text-align: center; padding: 24px; border-top: 1px solid var(--border); }
.empty p { margin: 4px 0 0; color: var(--muted); }
.pagination { padding: 14px 24px; display: flex; justify-content: center; gap: 16px; border-top: 1px solid var(--border); }
.intake { max-width: 820px; padding: clamp(20px, 4vw, 32px); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 20px; margin-top: 22px; }
.form-actions { grid-column: 1 / -1; }
.support-text { margin: 15px 0 36px; font-size: .87rem; }
.notice { background: #edf5ea; color: #23573d; border-radius: 8px; padding: 10px 13px; font-size: .87rem; margin: 12px 0 14px; }
.notice.error { background: #fbebeb; color: #882a2a; }
.scan-screen { padding: 18px; justify-content: flex-start; align-items: center; }
.scan-panel { width: min(100%, 400px); flex: none; padding: 24px; border-radius: 18px; }
.scan-panel h1 { font-size: 1.55rem; letter-spacing: -.045em; margin: 22px 0 14px; line-height: 1.15; }
.scan-panel .muted { font-size: .88rem; }
.scan-input-row { display: flex; gap: 8px; margin-top: 7px; }
.scan-input-row input { flex: 1; margin-top: 0; }
.scan-input-row .button { flex: 0 0 48px; justify-content: center; padding: 0; font-size: 1.25rem; }
.scan-result { padding: 20px; margin: 16px 0; border-radius: 12px; background: var(--brand); color: var(--on-brand); }
.scan-result .balance { margin: 6px 0; }
@media (max-width: 740px) {
    .wrap { width: calc(100% - 32px); }
    .entry-grid, .dashboard-grid { grid-template-columns: 1fr; }
    .entry-grid { margin-top: 24px; gap: 14px; }
    .hero { min-height: auto; }
    .hero h1 { max-width: 13ch; }
    .hero .card-art { width: min(67%, 330px); }
    .page-intro { margin-top: 28px; }
}
@media (max-width: 460px) {
    .field-grid { grid-template-columns: 1fr; }
    .metrics { gap: 6px; }
    .metrics div { padding: 12px 8px; }
    .metrics dt { font-size: .76rem; }
    .brand small { display: none; }
    .quiet { flex-shrink: 0; }
    .hero-card { width: min(200px, 100%); }
}
.card-list { margin-bottom: 32px; }
.card-list .membership { text-decoration: none; }
.card-list .membership:hover .card-top { text-decoration: underline; }
