:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #647069;
  --line: #d9dfdb;
  --paper: #eff4f0;
  --panel: #ffffff;
  --forest: #0d5a3c;
  --forest-dark: #073d2a;
  --lime: #b8df55;
  --danger: #a64032;
  --danger-dark: #7d2e24;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { color: var(--ink); background: radial-gradient(circle at 10% 10%, #dcebe1 0, transparent 34%), var(--paper); }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.account-topbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  border-bottom: 3px solid var(--lime);
  background: var(--forest-dark);
}

.account-brand { display: inline-flex; align-items: center; gap: 9px; color: white; text-decoration: none; font-size: 1.55rem; font-weight: 850; letter-spacing: -.045em; }
.account-brand-mark { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; }
.account-brand-text { color: white; }
.account-brand-text span { color: var(--lime); }
.back-link { color: #e5f0e9; font-size: .82rem; font-weight: 800; text-decoration: none; }
.back-link:hover { color: var(--lime); }

main { min-height: calc(100vh - 66px); display: grid; align-items: center; padding: 48px 24px; }
.account-shell { width: min(980px, 100%); display: grid; grid-template-columns: 1fr 430px; gap: 54px; align-items: center; margin: 0 auto; }
.account-intro { padding: 24px; }
.account-intro h1 { max-width: 620px; margin: 0 0 18px; color: var(--forest-dark); font-size: clamp(2.2rem, 5vw, 4rem); line-height: .98; letter-spacing: -.055em; }
.account-intro > p:not(.eyebrow) { max-width: 580px; color: var(--muted); font-size: 1.02rem; line-height: 1.65; }
.account-intro ul { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--forest-dark); font-weight: 750; }
.account-intro li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 9px; border-radius: 50%; background: var(--lime); font-size: .76rem; }

.account-card,
.data-card { border: 1px solid rgba(13,90,60,.15); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 24px 70px rgba(7,61,42,.14); }
.account-card { padding: 32px; }
.account-card h2 { margin: 0 0 10px; color: var(--forest-dark); font-size: 1.65rem; }
.card-intro { margin: 0 0 24px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.eyebrow { margin: 0 0 10px; color: var(--forest); font-size: .74rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }

form { display: grid; gap: 10px; }
label { color: var(--forest-dark); font-size: .78rem; font-weight: 850; }
input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; color: var(--ink); background: white; }
input:focus { outline: 3px solid rgba(184,223,85,.45); border-color: var(--forest); }

.primary-button,
.quiet-button,
.text-button { border: 0; border-radius: 9px; font-weight: 850; }
.primary-button { min-height: 48px; padding: 11px 16px; background: var(--forest); color: white; }
.primary-button:hover { background: var(--forest-dark); }
.primary-button:disabled { cursor: wait; background: #9aaba1; }
.quiet-button { min-height: 40px; padding: 8px 13px; background: #eef3ef; color: var(--forest-dark); }
.text-button { justify-self: start; padding: 4px 0; background: transparent; color: var(--forest); }

.requested-email { display: grid; gap: 3px; margin-bottom: 8px; }
.requested-email span { color: var(--muted); font-size: .73rem; }
.requested-email strong { overflow-wrap: anywhere; color: var(--forest-dark); }
.form-message { min-height: 20px; margin: 13px 0 0; color: var(--danger); font-size: .82rem; font-weight: 750; line-height: 1.45; }
.form-message.success { color: var(--forest); }
.privacy-note { margin: 15px 0 0; padding: 11px 12px; border-radius: 8px; background: #f2f5f3; color: var(--muted); font-size: .76rem; line-height: 1.5; }

.data-shell { width: min(760px, 100%); margin: 0 auto; }
.data-card { padding: 34px; }
.data-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.data-heading h1 { margin: 0 0 7px; color: var(--forest-dark); font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -.04em; }
.data-heading p:not(.eyebrow) { margin: 0; overflow-wrap: anywhere; color: var(--muted); }
.copy-summary { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; margin: 28px 0; }
.copy-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--lime); color: var(--forest-dark); font-size: 2rem; font-weight: 900; }
.copy-summary h2 { margin: 3px 0 7px; color: var(--forest-dark); }
.copy-summary p { margin: 0; color: var(--muted); line-height: 1.55; }
.download-button { width: 100%; }

.closure-zone { display: grid; gap: 16px; margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.closure-zone h2 { margin: 0 0 6px; color: var(--danger-dark); font-size: 1.1rem; }
.closure-zone > div > p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.danger-outline-button,
.danger-button { min-height: 44px; border-radius: 9px; padding: 10px 14px; font-weight: 850; }
.danger-outline-button { justify-self: start; border: 1px solid rgba(166,64,50,.42); color: var(--danger-dark); background: white; }
.danger-outline-button:hover { border-color: var(--danger); background: #fff7f5; }
.danger-button { border: 0; color: white; background: var(--danger); }
.danger-button:hover { background: var(--danger-dark); }
.danger-button:disabled { cursor: not-allowed; background: #b9aaa6; }
.closure-panel { padding: 18px; border: 1px solid rgba(166,64,50,.28); border-radius: 12px; background: #fff8f6; }
.closure-panel h3 { margin: 0; color: var(--danger-dark); font-size: 1rem; }
.closure-panel ol { display: grid; gap: 6px; margin: 4px 0 8px; padding-left: 22px; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.confirmation-check { display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: start; margin: 4px 0 8px; line-height: 1.45; }
.confirmation-check input { width: 18px; min-height: 18px; margin: 1px 0 0; }
.closure-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.closure-complete-card { text-align: center; }
.closure-complete-card .copy-icon { margin: 0 auto 18px; }
.closure-complete-card h1 { margin: 0 0 12px; color: var(--forest-dark); font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -.04em; }
.closure-complete-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.request-reference { overflow-wrap: anywhere; font-size: .82rem; }
.primary-link { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; margin-top: 10px; border-radius: 9px; padding: 10px 18px; color: white; background: var(--forest); font-weight: 850; text-decoration: none; }
.primary-link:hover { background: var(--forest-dark); }

@media (max-width: 760px) {
  main { align-items: start; padding: 28px 14px; }
  .account-shell { grid-template-columns: 1fr; gap: 18px; }
  .account-intro { padding: 12px 8px; }
  .account-intro h1 { font-size: 2.45rem; }
  .account-card, .data-card { padding: 24px 20px; }
}

@media (max-width: 440px) {
  .account-topbar { padding: 0 14px; }
  .copy-summary { grid-template-columns: 1fr; }
  .data-heading { display: grid; }
  .quiet-button { justify-self: start; }
}
