:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --background: #f2f2f7; --surface: #fff; --ink: #1c1c1e; --muted: #626269;
  --line: #e5e5ea; --green: #247a3d; --tint: #eaf3ec; --field: #f7f7fa;
  --red: #b52c2c; --red-tint: #fff2f1; --shadow: 0 4px 24px #1c1c1e04;
  color: var(--ink); background: var(--background); line-height: 1.65;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-appearance="light"]) {
    --background: #000; --surface: #1c1c1e; --ink: #f5f5f7; --muted: #aaaab2;
    --line: #38383a; --green: #78df9c; --tint: #183523; --field: #2c2c2e;
    --red: #ff8b84; --red-tint: #351b1d; --shadow: none;
  }
}
:root[data-appearance="dark"] {
  color-scheme: dark;
  --background: #000; --surface: #1c1c1e; --ink: #f5f5f7; --muted: #aaaab2;
  --line: #38383a; --green: #78df9c; --tint: #183523; --field: #2c2c2e;
  --red: #ff8b84; --red-tint: #351b1d; --shadow: none;
}
:root[data-appearance="light"] { color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; }
header, nav, main, footer { width: min(100% - 48px, 880px); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 30px 24px; }
.brand { font-size: 25px; font-weight: 800; letter-spacing: -1.2px; text-decoration: none; color: var(--ink); }
.brand span { color: var(--green); }
select { max-width: 160px; min-height: 44px; border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
nav { display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px; border-radius: 18px; background: var(--line); gap: 4px; }
nav a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 9px 12px; border-radius: 13px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.4; }
nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 5px #0000000a; }
main { padding-top: 24px; padding-bottom: 36px; }
.hero { text-align: center; max-width: 640px; margin: 38px auto 40px; }
.hero > .icon { width: 64px; height: 64px; border-radius: 21px; margin: 0 auto 22px; }
h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -1.8px; line-height: 1.12; margin: 0 0 18px; text-wrap: balance; }
h2 { font-size: 19px; font-weight: 650; letter-spacing: -.4px; line-height: 1.4; margin: 0 0 12px; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
.intro { font-size: 17px; color: var(--muted); line-height: 1.65; text-wrap: pretty; }
.date { font-size: 12px; margin-top: 18px; color: var(--muted); }
article, .card { background: var(--surface); border-radius: 24px; padding: 28px; margin: 14px 0; box-shadow: var(--shadow); overflow-wrap: anywhere; }
article > p, .card > p, details p { color: var(--muted); font-size: 15px; }
.icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 15px; background: var(--tint); color: var(--green); }
.icon svg { width: 25px; height: 25px; }
.hero .icon svg { width: 32px; height: 32px; }
.section-title { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.section-title h2 { margin: 0; }
.section-title .icon { width: 38px; height: 38px; border-radius: 12px; }
.section-title .icon svg { width: 21px; height: 21px; }
a { color: var(--green); text-underline-offset: 4px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.45; cursor: pointer; border: 0; border-radius: 16px; padding: 13px 20px; background: #247a3d; color: #fff; text-decoration: none; text-align: center; }
button:disabled { opacity: .45; cursor: default; }
.secondary { background: var(--tint); color: var(--green); }
.danger { background: #b52c2c; color: #fff; }
label { display: block; font-size: 13px; font-weight: 600; margin: 18px 0 7px; }
input[type="email"], input[type="password"] { width: 100%; min-width: 0; min-height: 52px; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; background: var(--field); color: var(--ink); }
input[type="checkbox"] { width: 21px; height: 21px; accent-color: var(--green); flex-shrink: 0; margin: 3px 0 0; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
form > button { width: 100%; margin-top: 24px; }
form + a { display: block; text-align: center; padding: 16px 0 4px; font-size: 13px; }
.apple { width: 100%; background: var(--ink); color: var(--surface); margin-top: 16px; }
.muted, footer { color: var(--muted); font-size: 13px; }
.status { margin-top: 20px; }
aside { padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: 12px; }
.success { padding: 24px; background: var(--tint); color: var(--green); border-radius: 20px; }
#error { color: var(--red); font-size: 14px; margin-top: 18px; }
#error:empty { display: none; }
:where(button, a, input, select, summary):focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
footer { padding: 24px 0 max(32px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); text-align: center; font-size: 12px; }
dl { margin: 0; }
.fact { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact:first-child { padding-top: 0; }
.fact:last-child { border: 0; padding-bottom: 0; }
dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid .card { margin: 0; display: flex; flex-direction: column; align-items: flex-start; }
.grid .icon { margin-bottom: 24px; }
.grid h2 { font-size: 22px; }
.grid a { margin-top: auto; padding-top: 16px; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; }
.faq { background: var(--surface); border-radius: 24px; padding: 4px 26px; margin-bottom: 20px; }
details { border-bottom: 1px solid var(--line); }
details:last-child { border: 0; }
summary { min-height: 76px; display: flex; align-items: center; gap: 16px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; line-height: 1.5; padding: 18px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 24px; font-weight: 300; margin-left: auto; color: var(--muted); }
details[open] summary::after { content: '−'; }
details p { padding: 0 32px 24px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-grid article { margin: 0; display: flex; flex-direction: column; }
.contact-grid .button { margin-top: auto; }
.contact-grid .email { color: var(--ink); margin-block: 8px 24px; }
.delete-layout { display: grid; grid-template-columns: .95fr 1.05fr; align-items: start; gap: 20px; }
.delete-layout article { margin: 0; }
.delete-layout > .scope { background: transparent; box-shadow: none; padding-left: 4px; }
.scope .icon { color: var(--red); background: var(--red-tint); }
.login-card { border: 1px solid var(--line); }
.help-card .actions a { flex: 1; }
@media (hover: hover) {
  nav a:not([aria-current]):hover { color: var(--ink); background: var(--field); }
  button:not(:disabled):hover, .button:hover { filter: brightness(.94); }
  summary:hover { color: var(--green); }
}
@media (max-width: 600px) {
  header, nav, main, footer { width: calc(100% - 36px); }
  header { padding-block: max(18px, env(safe-area-inset-top)) 20px; }
  nav { grid-template-columns: repeat(2, 1fr); border-radius: 18px; }
  nav a { font-size: 13px; padding-inline: 8px; }
  main { padding-top: 18px; }
  .hero { margin: 28px auto 30px; padding-inline: 6px; }
  h1 { letter-spacing: -1.2px; }
  .intro { font-size: 16px; }
  article, .card { padding: 24px; border-radius: 22px; }
  .grid, .contact-grid, .delete-layout { grid-template-columns: 1fr; }
  .delete-layout > .scope { padding: 8px 6px; }
  .faq { padding-inline: 22px; }
  summary { font-size: 15px; }
  .actions > * { flex: 1 1 100%; }
}
@media (prefers-contrast: more) { :root { --muted: var(--ink); } article, .card, .faq { border: 1px solid var(--muted); } }

@media (max-width: 640px) { nav a:last-child:nth-child(odd) { grid-column: 1 / -1; } }
