/* Debrief — the app's own monochrome system, on the web.
   White canvas or black one, ink or paper on top, and the greys between. */

:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --border: #e4e4e7;
  --ink: #09090b;
  --dim: #52525b;
  --faint: #a1a1aa;
  --accent: #b45309;
  --accent-soft: #fff7ed;
  --max: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #0a0a0b;
    --border: #26262a;
    --ink: #fafafa;
    --dim: #a1a1aa;
    --faint: #71717a;
    --accent: #fbbf24;
    --accent-soft: #1c1408;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0 2.5rem;
  flex-wrap: wrap;
}

.mark {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.9375rem;
}

nav a:hover, nav a[aria-current] { color: var(--ink); }

nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35rem;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent);
  outline-offset: 4px;
  border-radius: 4px;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin: 2.75rem 0 0.75rem;
  font-weight: 650;
}

h3 {
  font-size: 1.0625rem;
  margin: 1.75rem 0 0.5rem;
  font-weight: 650;
}

p, li { color: var(--dim); }

p { margin: 0 0 1rem; }

.lede {
  font-size: 1.125rem;
  color: var(--dim);
  margin-bottom: 2rem;
}

.stamp {
  font-size: 0.8125rem;
  color: var(--faint);
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }

li { margin-bottom: 0.5rem; }

strong { color: var(--ink); font-weight: 650; }

a { color: var(--ink); text-decoration-color: var(--faint); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.375rem;
  margin: 1.5rem 0;
}

.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.policy-summary {
  border-left: 4px solid var(--accent);
}

.steps li {
  padding-left: 0.25rem;
  margin-bottom: 0.875rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.9375rem;
  min-width: 42rem;
}

th, td {
  text-align: left;
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--dim);
}

th { color: var(--ink); font-weight: 650; white-space: nowrap; }

thead th {
  background: var(--surface);
}

tbody tr:last-child td {
  border-bottom: 0;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer a { color: var(--faint); }

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 2rem 0 0; }

.btn {
  display: inline-block;
  padding: 0.8125rem 1.375rem;
  border-radius: 100px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

/* Support */

.support-page {
  --max: 48rem;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(16rem, 1.2fr);
  gap: 1.5rem;
  align-items: start;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 65%),
    var(--surface);
}

.card-label {
  margin-bottom: 0.35rem;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-email {
  margin: 0;
  font-size: clamp(1.05rem, 4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.quick-links {
  display: flex;
  gap: 0.55rem;
  margin: 1.75rem 0 3rem;
}

.quick-links a {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--dim);
  background: var(--bg);
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}

.quick-links a:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.support-section {
  scroll-margin-top: 2rem;
  margin-top: 3rem;
}

.support-section h2 {
  margin-bottom: 1rem;
}

details {
  border-top: 1px solid var(--border);
}

details:last-child {
  border-bottom: 1px solid var(--border);
}

summary {
  position: relative;
  padding: 1.05rem 2.25rem 1.05rem 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  top: 0.95rem;
  right: 0.2rem;
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

details[open] summary::after {
  content: "–";
}

.answer {
  padding: 0 2.25rem 0.9rem 0;
}

.answer p:last-child {
  margin-bottom: 0;
}

.closing-card {
  margin-top: 3.5rem;
}

@media (max-width: 620px) {
  body {
    padding-inline: 1rem;
  }

  header {
    align-items: flex-start;
    padding-bottom: 2rem;
  }

  nav {
    gap: 0.85rem;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .quick-links {
    flex-wrap: nowrap;
    margin-inline: -1rem;
    padding: 0 1rem 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .quick-links a {
    flex: 0 0 auto;
  }
}

@media print {
  body {
    padding: 0;
    font-size: 11pt;
  }

  header,
  footer,
  .quick-links {
    display: none;
  }

  .wrap {
    max-width: none;
  }

  a {
    text-decoration: none;
  }

  details {
    display: block;
  }

  details > .answer {
    display: block;
  }
}
