/* Public account deletion page. Control geometry copies the app's
   components in apps/mobile/components/ui/ (Button, Input, ErrorCard) and
   the theme in apps/mobile/lib/theme.ts, not the landing-page styles. */
:root {
  --forest: #2D6A4F;
  --bg: #FFFFFF;
  --surface: #F7F6F2;
  --text: #1A1A18;
  --text-secondary: #5A5A55;
  --text-muted: #888880;
  --text-disabled: #BBBBB5;
  --border: #E2E0D8;
  --error: #C0392B;
  --error-bg: #FEF2F2;
  --error-border: #FECACA;
  --error-dark: #7F1D1D;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

.top {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 24px 48px;
}

.kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* typography.screenTitle: system font, 24px bold. */
h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1:focus { outline: none; }

.body {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.45;
  color: #3D3D3A;
}

/* typography.label */
.label {
  display: block;
  margin: 8px 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Input: 1.5px border, 12px radius, 14px/16px padding, 16px text. */
.input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.input::placeholder { color: var(--text-disabled); }

.input:focus {
  border-color: var(--forest);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.input[aria-invalid="true"] { border-color: var(--error); }

.phone-row {
  display: flex;
  gap: 8px;
}

.country {
  flex: none;
  width: auto;
  padding-right: 12px;
}

.code {
  font-size: 20px;
  letter-spacing: 6px;
}

/* ErrorCard */
.error-slot:empty { display: none; }

.error-slot { margin-top: 12px; }

.error-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: 12px;
}

.error-card .bang {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 10px;
  background: var(--error);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.error-card p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--error-dark);
}

/* Button: full width, 16px padding, 14px radius, 17px/600 label. */
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--bg);
  cursor: pointer;
}

.button.primary { background: var(--forest); }
.button.danger { background: var(--error); }

.button:disabled {
  opacity: 0.4;
  cursor: default;
}

.button:focus-visible,
.text-button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(45, 106, 79, 0.45);
  outline-offset: 2px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.text-button {
  padding: 8px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--forest);
  cursor: pointer;
}

.text-button:disabled { color: var(--text-muted); cursor: default; }

.fine {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.help {
  margin: 40px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

a { color: var(--forest); }

@media (min-width: 761px) {
  .page {
    margin-top: 48px;
    margin-bottom: 48px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 16px;
  }
  body { background: var(--surface); }
  .page { background: var(--bg); }
  .top { background: var(--bg); }
}

@media (prefers-reduced-motion: reduce) {
  .input { transition: none; }
}
