:root {
  color-scheme: light;
  --ink: #17221d;
  --muted: #647069;
  --line: #dce5df;
  --paper: #fbfcfa;
  --card: #ffffff;
  --green: #0a6c4e;
  --green-dark: #064936;
  --mint: #dff4e9;
  --red: #a13c3c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 20% 0%, #edf8f1 0, transparent 32rem), var(--paper); }
a { color: var(--green-dark); text-underline-offset: .2em; }
header { display: flex; align-items: center; justify-content: space-between; min-height: 74px; max-width: 1120px; margin: 0 auto; padding: 0 24px; border-bottom: 1px solid rgba(220,229,223,.8); }
nav { display: flex; align-items: center; gap: 20px; }
nav a { text-decoration: none; font-weight: 650; }
.brand { color: var(--ink); font-size: 1.25rem; font-weight: 850; letter-spacing: -.04em; text-decoration: none; }
main { width: min(100% - 36px, 1040px); margin: 0 auto; padding: 64px 0 80px; }
footer { padding: 30px 20px 42px; color: var(--muted); text-align: center; font-size: .9rem; }
.hero { max-width: 760px; padding: 68px 0 86px; }
.hero h1, .account-head h1 { margin: 8px 0 18px; max-width: 720px; font-size: clamp(2.7rem, 7vw, 5.7rem); line-height: .95; letter-spacing: -.065em; }
.hero p { max-width: 650px; margin: 0 0 30px; color: var(--muted); font-size: 1.22rem; line-height: 1.65; }
.eyebrow { color: var(--green); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px; border: 1px solid var(--green); border-radius: 999px; color: white; background: var(--green); font: inherit; font-weight: 760; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--green-dark); }
.button.secondary { color: var(--green-dark); background: transparent; }
.button.small { min-height: 36px; padding: 7px 14px; font-size: .9rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features article, .card { border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: 0 20px 60px rgba(30,65,50,.06); }
.features article { padding: 26px; }
.features h2, .card h2 { margin: 0 0 8px; font-size: 1.1rem; }
.features p, .card p { color: var(--muted); line-height: 1.6; }
.card { padding: clamp(24px, 5vw, 42px); }
.card.narrow { max-width: 560px; margin: 0 auto; }
.card h1 { margin: 8px 0 12px; font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.045em; }
form { display: grid; gap: 18px; margin-top: 28px; }
label { display: grid; gap: 7px; font-weight: 720; }
input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #b9c8bf; border-radius: 12px; color: var(--ink); background: white; font: inherit; }
input:focus { outline: 3px solid rgba(10,108,78,.16); border-color: var(--green); }
.hint { color: var(--muted); font-size: .8rem; font-weight: 450; }
.below { margin: 22px 0 0; text-align: center; }
.alert { max-width: 760px; margin: 0 auto 22px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.alert.success { border-color: #a9d7be; background: #edf9f2; }
.alert.error { border-color: #e0b2b2; background: #fff2f2; color: #752929; }
.alert.notice { border-color: #e5d69c; background: #fffbed; }
.nav-form, .connection form { display: block; margin: 0; }
.link-button { padding: 0; border: 0; color: var(--green-dark); background: none; font: inherit; font-weight: 650; cursor: pointer; }
.link-button.danger { color: var(--red); }
.account-head { margin-bottom: 38px; }
.account-head h1 { font-size: clamp(2.5rem, 6vw, 4.7rem); }
.account-head p { color: var(--muted); }
.section-title { display: flex; align-items: center; justify-content: space-between; }
.connections { display: grid; gap: 0; margin-top: 20px; }
.connection { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.connection strong { margin-right: 10px; }
.status { display: inline-block; padding: 4px 8px; border-radius: 999px; color: var(--muted); background: #eef1ef; font-size: .75rem; font-weight: 750; }
.status.active { color: var(--green-dark); background: var(--mint); }
.muted { color: var(--muted); }

@media (max-width: 720px) {
  header { padding: 0 18px; }
  main { padding-top: 38px; }
  .hero { padding: 40px 0 60px; }
  .features { grid-template-columns: 1fr; }
  nav { gap: 12px; }
  .connection { align-items: flex-start; flex-direction: column; }
}

