/*
 * The hosted pages (account deletion) share alikrik.com's look: its Outfit font, colour tokens,
 * header and footer, with fGBA's dark violet hero band. Tokens are copied from alikrik.com's
 * src/styles/global.css; keep the two in step. Colours follow the device's light or dark setting.
 */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/outfit-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/outfit-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: light-dark(#f5f7fa, #08090d);
  --surface: light-dark(#ffffff, #10131a);
  --border: light-dark(#d9dfe8, #1f2431);
  --border-strong: light-dark(#c4ccd8, #2a3140);
  --text: light-dark(#202a38, #f4f6fa);
  --soft: light-dark(#4a5568, #a3abbd);
  --muted: light-dark(#5a6578, #8a93a6);
  --prose: light-dark(#364152, #c3c9d6);
  --eyebrow: light-dark(#0a5fd6, #09cefa);
  --header: light-dark(rgb(245 247 250 / 0.96), rgb(8 9 13 / 0.96));
  --fgba-ink: light-dark(#6b46e0, #b89dff);
  --link: light-dark(#0a5fd6, #3fd8f0);
  --danger: light-dark(#c8264a, #ff9db0);
  --on-danger: light-dark(#ffffff, #2a0a12);
  --ok: light-dark(#1d7a3a, #b8e068);

  /* Fixed brand colours, the same in both themes. The fGBA hero stays dark in light mode. */
  --color-blue: #0a6ef5;
  --color-cyan: #09cefa;
  --fgba-violet: #a07bff;
  --fgba-violet-soft: #b89dff;
  --fgba-deep: #120a33;
  --fgba-hero: #0d0822;
  --fgba-border: #2a2250;
  --fgba-text: #f4f1ff;
  --fgba-soft: #b3abd9;
  --fgba-eyebrow: #c3abff;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--eyebrow);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.narrow {
  max-width: 784px;
}

/* Header, as on alikrik.com */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.logo {
  display: block;
  height: 28px;
  width: auto;
  color: var(--text);
}

.site-header nav {
  display: flex;
  gap: clamp(16px, 4vw, 32px);
}

.site-header nav a,
.site-footer nav a {
  color: var(--soft);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.site-header nav a:hover,
.site-footer nav a:hover {
  color: var(--text);
}

/* fGBA hero band */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--fgba-hero);
  color: var(--fgba-text);
  border-bottom: 1px solid var(--fgba-border);
  padding-block: clamp(48px, 8vw, 88px) clamp(40px, 6vw, 64px);
}

.hero::before {
  content: '';
  position: absolute;
  top: -260px;
  right: -260px;
  width: 900px;
  height: 900px;
  pointer-events: none;
  background: radial-gradient(circle, rgb(160 123 255 / 0.28), rgb(63 216 240 / 0.06) 42%, transparent 66%);
}

.hero .wrap {
  position: relative;
}

.mark {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  box-shadow: 0 20px 50px -12px rgb(160 123 255 / 0.55);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fgba-eyebrow);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.hero h1 {
  margin: 14px 0 0;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero .lead {
  margin: 18px 0 0;
  max-width: 52ch;
  font-size: 1.125rem;
  color: var(--fgba-soft);
}

.hero .lead a {
  color: var(--fgba-eyebrow);
}

/* Content */

main {
  padding-block: clamp(32px, 6vw, 56px) clamp(56px, 8vw, 96px);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 32px);
  margin: 0 0 20px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.375rem;
}

.card p,
.card li {
  color: var(--prose);
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.card ul {
  padding-left: 1.25em;
}

.card li + li {
  margin-top: 4px;
}

strong {
  color: var(--text);
  font-weight: 600;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text);
}

input[type='email'] {
  font: inherit;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  transition: border-color 0.2s;
}

input[type='email']:focus {
  border-color: var(--fgba-ink);
  outline: none;
  box-shadow: 0 0 0 3px rgb(160 123 255 / 0.25);
}

.actions {
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s, opacity 0.2s;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.btn-fgba {
  background: var(--fgba-violet);
  color: var(--fgba-deep);
}

.btn-fgba:hover:not(:disabled) {
  background: var(--fgba-violet-soft);
}

.btn-danger {
  background: var(--danger);
  color: var(--on-danger);
}

.status {
  margin: 16px 0 0;
  min-height: 1.6em;
  color: var(--soft);
}

.status:empty {
  margin: 0;
  min-height: 0;
}

.status.ok {
  color: var(--ok);
}

.status.error {
  color: var(--danger);
}

.more {
  margin: 28px 0 0;
  color: var(--muted);
}

/* Footer, as on alikrik.com */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 48px;
}

.site-footer .wrap {
  display: grid;
  gap: 24px 48px;
  align-items: center;
}

.site-footer .logo {
  height: 26px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 0.9375rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .site-footer .wrap {
    grid-template-columns: auto 1fr;
  }

  .site-footer nav {
    justify-content: flex-end;
  }

  .site-footer p {
    grid-column: span 2;
  }
}

@media (max-width: 479px) {
  .site-header nav .wide {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
