/* Match&Match public site — legal pages, account deletion and support.
   Same tokens as the app (src/theme/tokens.ts). Fonts are self-hosted. */

@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/Barlow_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/Barlow_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/Barlow_700Bold.ttf') format('truetype'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: normal; font-display: swap; src: url('fonts/BarlowCondensed_800ExtraBold.ttf') format('truetype'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: italic; font-display: swap; src: url('fonts/BarlowCondensed_800ExtraBold_Italic.ttf') format('truetype'); }

:root {
  --navy: #0b1a33;
  --navy-2: #13284a;
  --chalk: #f3f5f8;
  --surface: #ffffff;
  --line: #d8dee8;
  --line-strong: #b9c3d3;
  --text: #0b1a33;
  --text-2: #4a5a73;
  --lime: #c8fa3c;
  --lime-pressed: #b2e52a;
  --blue: #2b59ff;
  --danger: #c62f3d;
  --danger-soft: #fde8ea;
  --warning: #8f5400;
  --warning-soft: #fff3dc;
  --success: #16804b;
  --success-soft: #e3f6ec;
  --radius-panel: 20px;
  --radius-input: 14px;
  --body: 'Barlow', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', 'Barlow', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
}

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* Header -------------------------------------------------------------- */
header.site {
  background: var(--navy);
  padding: 14px 16px;
}
header.site .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font: italic 800 26px/1 var(--display);
  letter-spacing: 0.2px;
}
header.site .ball {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, var(--navy) 1.6px, transparent 2px) 0 0 / 7px 7px,
    var(--lime);
}

/* Document pages ------------------------------------------------------ */
main.doc, main.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 56px;
}
main h1 {
  font: 800 44px/1.05 var(--display);
  margin: 8px 0 20px;
  letter-spacing: -0.2px;
}
main h2 {
  font: 700 24px/1.25 var(--body);
  margin: 36px 0 10px;
}
main h3 { font: 700 19px/1.3 var(--body); margin: 24px 0 8px; }
main p, main li { color: var(--text); }
main ul, main ol { padding-left: 22px; }
main li { margin: 6px 0; }
main code { background: #e7ebf2; padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
.lede { font-size: 19px; color: var(--text-2); margin-top: -8px; }

aside.draft, .notice {
  border-radius: var(--radius-input);
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 15px;
  line-height: 1.5;
}
aside.draft, .notice.warning { background: var(--warning-soft); color: #5c3700; border: 1px solid #f1d49a; }
.notice.info { background: #e6edff; color: #1d3a99; border: 1px solid #c8d6ff; }
.notice.error { background: var(--danger-soft); color: #8a1e29; border: 1px solid #f4bcc2; }
.notice.success { background: var(--success-soft); color: #0e5a34; border: 1px solid #b6e3c9; }

/* Panels and forms ---------------------------------------------------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 24px 20px;
  margin: 20px 0;
}
.panel > :first-child { margin-top: 0; }
label { display: block; font-weight: 600; margin: 18px 0 6px; }
.hint { display: block; font-size: 14px; color: var(--text-2); margin-top: 6px; }
input[type='email'], input[type='text'] {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: 400 18px/1.3 var(--body);
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-input);
}
input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(43, 89, 255, 0.18); }
input.code { letter-spacing: 6px; font: 700 26px/1 var(--display); text-align: center; max-width: 240px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
button {
  appearance: none;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 700 17px/1 var(--body);
  cursor: pointer;
}
button.primary { background: var(--lime); color: var(--navy); border-color: var(--navy); }
button.primary:hover { background: var(--lime-pressed); }
button.danger { background: var(--danger); color: #fff; }
button.danger:hover { background: #a82633; }
button.ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

.steps { list-style: none; padding: 0; display: flex; gap: 8px; margin: 0 0 8px; }
.steps li {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}
.steps li.done { background: var(--navy); }

.facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 16px 0; }
.facts .panel { margin: 0; }

[hidden] { display: none !important; }

/* Footer -------------------------------------------------------------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 24px 16px 40px;
  font-size: 15px;
}
footer.site nav {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
footer.site a { color: var(--text-2); }

@media (max-width: 480px) {
  main h1 { font-size: 36px; }
  button { width: 100%; }
}

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