:root,
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #0b0d0c;
  --panel: #161a17;
  --panel-alt: #20251f;
  --lime: #2997ff;
  --lime-dark: #0071e3;
  --paper: #f5f6f8;
  --muted: #86868b;
  --line: rgba(255, 255, 255, .1);
  --text-main: #ffffff;
  --text-body: #b3b9b4;
  --text-subtle: #757c76;
  --header-bg: rgba(11, 13, 12, .9);
  --input-bg: #0d100e;
  --input-border: #353b36;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --toggle-bg: rgba(255, 255, 255, 0.08);
  --toggle-border: rgba(255, 255, 255, 0.18);
  --toggle-color: #f5f5f7;
}

[data-theme="light"] {
  color-scheme: light;
  --ink: #f5f5f7;
  --panel: #ffffff;
  --panel-alt: #f0f3ed;
  --lime: #0071e3;
  --lime-dark: #0071e3;
  --paper: #f5f5f7;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .09);
  --text-main: #1d1d1f;
  --text-body: #48484a;
  --text-subtle: #86868b;
  --header-bg: rgba(255, 255, 255, .9);
  --input-bg: #ffffff;
  --input-border: #d2d2d7;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --toggle-bg: rgba(0, 0, 0, 0.05);
  --toggle-border: rgba(0, 0, 0, 0.15);
  --toggle-color: #1d1d1f;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --ink: #f5f5f7;
    --panel: #ffffff;
    --panel-alt: #f0f3ed;
    --lime: #0071e3;
    --lime-dark: #0071e3;
    --paper: #f5f5f7;
    --muted: #6e6e73;
    --line: rgba(0, 0, 0, .09);
    --text-main: #1d1d1f;
    --text-body: #48484a;
    --text-subtle: #86868b;
    --header-bg: rgba(255, 255, 255, .9);
    --input-bg: #ffffff;
    --input-border: #d2d2d7;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --toggle-bg: rgba(0, 0, 0, 0.05);
    --toggle-border: rgba(0, 0, 0, 0.15);
    --toggle-color: #1d1d1f;
  }
}

:root {
  --display: "Barlow Condensed", -apple-system, BlinkMacSystemFont, Impact, sans-serif;
  --body: "Barlow", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text-main);
  background: var(--ink);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.shell { width: min(940px, calc(100% - 36px)); margin: auto; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background-color .3s, border-color .3s;
}
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px var(--display); letter-spacing: .08em; color: var(--text-main); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--toggle-color);
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  border-radius: 50%;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.theme-toggle:hover {
  transform: scale(1.06);
  border-color: var(--lime);
  color: var(--lime);
}
.theme-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; }
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }

[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }
}

.back {
  padding: 9px 14px;
  color: var(--text-body);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 13px;
  transition: .2s;
}
.back:hover { color: #fff; background: var(--lime-dark); border-color: var(--lime-dark); }

main { min-height: calc(100vh - 150px); padding: 76px 0 100px; }
.eyebrow { display: block; margin-bottom: 15px; color: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.intro { max-width: 710px; margin-bottom: 45px; }
.intro h1 { margin: 0 0 15px; font: 600 clamp(52px, 8vw, 78px)/.9 var(--display); letter-spacing: -.025em; text-transform: uppercase; color: var(--text-main); }
.intro p { margin: 0; color: var(--muted); font-size: 18px; }
.card { padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--card-shadow); color: var(--text-main); }
.legal-copy h2 { margin: 36px 0 8px; font: 600 26px/1 var(--display); text-transform: uppercase; color: var(--text-main); }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p { margin: 0; color: var(--text-body); }
.meta { margin-top: 14px; color: var(--text-subtle); font-size: 13px; }

.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.support-card {
  min-height: 230px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  color: var(--text-main);
  transition: .2s;
}
.support-card:hover { transform: translateY(-3px); border-color: rgba(41, 151, 255, .5); }
.icon { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: var(--lime-dark); border-radius: 11px; font-weight: 800; }
.support-card h2 { margin: 28px 0 7px; font: 600 25px/1 var(--display); text-transform: uppercase; color: var(--text-main); }
.support-card p { margin: 0 0 20px; color: var(--text-body); font-size: 14px; }
.support-card strong { margin-top: auto; color: var(--lime); font-size: 13px; }

.delete-layout { display: grid; grid-template-columns: .7fr 1fr; gap: 30px; }
.delete-note { padding: 26px; background: var(--panel-alt); border: 1px solid var(--line); border-radius: 18px; color: var(--text-main); }
.delete-note h2 { font: 600 27px/1 var(--display); text-transform: uppercase; color: var(--text-main); }
.delete-note p, .delete-note li { color: var(--text-body); }
.delete-note ul { padding-left: 20px; }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--text-main); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--text-main);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  outline: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(41, 151, 255, .2); }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; color: var(--text-body); font-size: 13px; }
.check input { margin-top: 5px; }
.submit { width: 100%; min-height: 50px; color: #fff; background: var(--lime-dark); border: 0; border-radius: 8px; font-weight: 700; cursor: pointer; }
.success { margin-top: 18px; padding: 15px; color: #cce4ff; background: rgba(41, 151, 255, .1); border: 1px solid rgba(41, 151, 255, .28); border-radius: 9px; }

.footer { padding: 22px 0; color: var(--text-subtle); border-top: 1px solid var(--line); font-size: 12px; }
.footer .shell { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 760px) {
  main { padding-top: 52px; }
  support-grid, .delete-layout { grid-template-columns: 1fr; }
  .support-card { min-height: 190px; }
  .footer .shell { flex-direction: column; gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
