/* Public pages until the site iteration (0.10.0). Living Forest tokens (docs/05b_Design_System.md §7.B). */
:root {
  --bg: #F4F8F2; --surface: #FFFFFF; --text: #14261B; --muted: #4D6455; --border: #D3E3D0;
  --accent: #0F7A4B; --accent-fg: #FFFFFF;
  --tree-trunk: #7A4E2D; --tree-leaf: #2E8B57; --tree-leaf2: #1F6E43; --ground: #B9D8A8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1A13; --surface: #14241A; --text: #E4F0E6; --muted: #A3BBA9; --border: #24402F;
    --accent: #4FD18B; --accent-fg: #062012;
    --tree-trunk: #A0714B; --tree-leaf: #4FB97A; --tree-leaf2: #3A9A62; --ground: #2B4A33;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.hero { min-height: 100vh; display: grid; place-items: center; padding: 48px max(16px, env(safe-area-inset-left)); }
.wrap { max-width: 640px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.brand { font-weight: 800; letter-spacing: .02em; margin: 0; font-size: 20px; }
.brand span { font-weight: 500; color: var(--muted); font-size: 15px; }
.tree { width: 120px; height: 120px; }
.tree .trunk { fill: var(--tree-trunk); }
.tree .leaf { fill: var(--tree-leaf); }
.tree .leaf2 { fill: var(--tree-leaf2); }
.tree .ground { stroke: var(--ground); stroke-width: 4; stroke-linecap: round; }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0; text-wrap: balance; }
.lead { color: var(--muted); margin: 0; max-width: 60ch; }
.soon { margin: 6px 0 0; padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 600; }
.switch { color: var(--accent); font-weight: 600; }
.features { text-align: left; width: 100%; margin-top: 18px; }
.features h2 { font-size: 20px; margin: 0 0 8px; }
.features ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
code { background: var(--surface); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }

/* Access pages (login, password, invitations) */
.muted { color: var(--muted); }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px max(16px, env(safe-area-inset-left)); }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; display: grid; gap: 14px; box-shadow: 0 10px 30px rgb(20 38 27 / .07); }
.auth-card h1 { font-size: 24px; text-align: left; }
.auth-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; }
.auth-brand svg { width: 28px; height: 28px; }
.auth-brand .trunk { fill: var(--tree-trunk); } .auth-brand .leaf { fill: var(--tree-leaf); } .auth-brand .leaf2 { fill: var(--tree-leaf2); }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
.form input, .form textarea { font: inherit; padding: 10px 12px; border: 1px solid #6E8A6B; border-radius: 10px; background: var(--bg); color: var(--text); }
.form input:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form input[readonly] { opacity: .75; }
.form .check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.hint { color: var(--muted); font-size: 13px; margin-top: -6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 700; padding: 11px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-oauth svg { width: 18px; height: 18px; }
.oauth { display: grid; gap: 8px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.alert { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.alert-ok { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.alert-bad { background: color-mix(in srgb, #BD2539 14%, var(--surface)); color: var(--text); border: 1px solid #BD2539; }
.alert-warn { background: color-mix(in srgb, #8F5200 12%, var(--surface)); border: 1px solid #8F5200; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; font-size: 15px; }
.auth-links a { color: var(--accent); font-weight: 600; }

/* Digital business card (0.4.3, D59) */
.card-page { align-items: start; }
.card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px 20px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.card-photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.card-initials { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-fg); font: 800 34px/1 ui-monospace, monospace; letter-spacing: .08em; }
.card h1 { font-size: 28px; }
.card-meta { margin: 0; color: var(--muted); font-size: 15px; }
.card-bio { margin: 4px 0; max-width: 36ch; }
.card-actions { display: grid; gap: 8px; width: 100%; margin-top: 8px; }
.btn { display: block; padding: 12px 16px; border-radius: 12px; background: var(--accent); color: var(--accent-fg); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 600; }
.card-links { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.card-links a { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.card-qr { margin: 10px 0 0; display: grid; gap: 4px; justify-items: center; }
.card-qr svg { width: 160px; height: 160px; background: #fff; padding: 8px; border-radius: 8px; }
.card-qr figcaption, .card-foot { color: var(--muted); font-size: 13px; margin: 0; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 16px; font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
