/* ═══════════════════════════════════════════════════════════
   KANZ Account Deletion — Stylesheet
   Design tokens shared with kanz-landing, kanz_privacy and
   kanz-terms (colors, type, chrome).
   ═══════════════════════════════════════════════════════════ */

:root {
  --dm-bg: #050505;
  --dm-surface: #111111;
  --dm-surface-high: #1a1a1a;
  --dm-text-pri: #eceff4;
  --dm-text-sec: #b0b8c4;
  --dm-text-mut: #6b7280;
  --dm-border: #1f1f1f;
  --dm-border-lt: #161616;

  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-hover: #1a56d6;

  --danger: #dc2626;
  --danger-hover: #b91c1c;

  --radius: 16px;
  --nav-h: 64px;
  --banner-h: 34px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--dm-bg);
  color: var(--dm-text-pri);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--brand);
  color: #fff;
}

::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--dm-border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #333;
}

a {
  color: var(--dm-text-sec);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--brand);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Environment banner (staging / dev) ── */
.env-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1rem;
  background: rgba(37, 99, 235, 0.14);
  border-bottom: 1px solid rgba(37, 99, 235, 0.35);
  color: #dbeafe;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}
body.has-env {
  padding-top: calc(var(--nav-h) + var(--banner-h));
}
body.has-env .nav {
  top: var(--banner-h);
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--nav-h);
}
.nav-solid {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dm-border);
}
.nav-inner {
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-brand {
  display: flex;
  align-items: center;
}
.nav-logo {
  height: 22px;
  width: auto;
  opacity: 0.9;
}
.nav-sep {
  color: var(--dm-border);
}
.nav-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dm-text-sec);
}
.nav-link {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dm-text-mut);
}
.nav-link:hover {
  color: var(--dm-text-pri);
}

/* ── Page header ── */
.page-header {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 1.5rem;
}
.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.85rem;
}
.page-header h1 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.lede {
  color: var(--dm-text-sec);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 60ch;
}

/* ── Layout ── */
.page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Cards ── */
.card {
  background: var(--dm-surface);
  border: 1px solid var(--dm-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card[hidden] {
  display: none;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.card h2 {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--dm-text-pri);
}
.card-lede {
  color: var(--dm-text-sec);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
}
.step-badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
.step-badge-soft {
  color: var(--dm-text-sec);
  background: var(--dm-surface-high);
  border-color: var(--dm-border);
}

/* ── Form controls ── */
label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dm-text-sec);
  margin-bottom: 0.45rem;
}
label strong {
  color: var(--dm-text-pri);
  font-weight: 700;
  letter-spacing: 0.04em;
}
input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 0.9rem;
  background: var(--dm-bg);
  border: 1px solid var(--dm-border);
  border-radius: 10px;
  color: var(--dm-text-pri);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder {
  color: var(--dm-text-mut);
}
input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
input + button,
input + .hint {
  margin-top: 1rem;
}
#cancel-step {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--dm-border-lt);
}
#cancel-step[hidden] {
  display: none;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, opacity 0.15s ease;
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--brand-hover);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger-hover);
}
.btn-secondary {
  background: transparent;
  border-color: var(--dm-border);
  color: var(--dm-text-pri);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--dm-surface-high);
  border-color: #2e2e2e;
}

/* ── Hints & notes ── */
.hint {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--dm-text-mut);
  margin-top: 0.9rem;
}
.retention-note {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--dm-text-mut);
  padding: 0 0.25rem;
}

/* ── Placeholder page steps ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-left: 1.15rem;
  color: var(--dm-text-sec);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.steps li::marker {
  color: var(--brand);
  font-weight: 700;
}
.steps strong {
  color: var(--dm-text-pri);
  font-weight: 600;
}
.hint a {
  color: var(--dm-text-sec);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hint a:hover {
  color: var(--brand);
}

/* ── Messages ── */
.message {
  border: 1px solid var(--dm-border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--dm-text-pri);
  background: var(--dm-surface);
}
.message[hidden] {
  display: none;
}
.message.success {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.35);
  color: #dbeafe;
}
.message.error {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.35);
  color: #fecaca;
}

/* ── Shop blockers ── */
.card-blockers {
  border-color: rgba(220, 38, 38, 0.35);
}
.card-blockers h2 {
  color: #fecaca;
}
.blocker-intro {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--dm-text-sec);
}
.blocker-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.blocker-list li {
  padding: 0.6rem 0.85rem;
  background: var(--dm-bg);
  border: 1px solid var(--dm-border);
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dm-text-pri);
}

/* ── Footer ── */
.footer {
  margin-top: auto;
  background: var(--dm-bg);
  border-top: 1px solid var(--dm-border);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo {
  height: 20px;
  width: auto;
  opacity: 0.8;
}
.footer-muted,
.footer-links a,
.footer-meta {
  font-size: 0.875rem;
  color: var(--dm-text-mut);
}
.footer-muted:hover,
.footer-links a:hover {
  color: var(--dm-text-sec);
}
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.footer-current {
  font-size: 0.875rem;
  color: var(--dm-text-sec);
}
.footer-sep {
  color: var(--dm-border);
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
  }
  .footer-meta {
    text-align: right;
  }
}

@media (max-width: 640px) {
  .nav-inner,
  .page-header,
  .page,
  .footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .page-header {
    padding-top: 2.5rem;
  }
  .card {
    padding: 1.25rem;
  }
  .nav-link {
    display: none;
  }
  .footer-inner {
    align-items: flex-start;
  }
}

@media (hover: none) and (pointer: coarse) {
  a,
  button {
    min-height: 44px;
    min-width: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
