/* PitchForm website: the stylesheet for the subpages (support, privacy, terms, 404); the home page has home.css.
   Colours and type mirror docs/DESIGN_SYSTEM.md: neutral #121212 ground, three chalk greys, SF Pro, no accent. */

:root {
  color-scheme: dark;
  --ground: #121212;
  --raised: #222222;
  --line: #2E2E2E;
  --chalk: #F5F5F5;
  --chalk-2: #AEAEAE;
  --chalk-3: #8E8E8E;
  --heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --radius: 24px;
  --radius-inset: 16px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

/* Links and actions are chalk and white; colour lives only in the data (DESIGN_SYSTEM §4). */
a { color: var(--chalk); text-decoration-color: var(--chalk-3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--chalk); text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--chalk); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header { border-bottom: 1px solid var(--line); }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--chalk);
  text-decoration: none;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.brand-mark { width: 30px; height: 30px; display: block; }

.site-nav { display: flex; gap: 20px; font-family: var(--heading); font-weight: 500; font-size: 15px; }
.site-nav a { color: var(--chalk-2); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--chalk); }

/* Content */

main { padding: 48px 0 64px; }

h1, h2, h3 { font-family: var(--heading); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

h1 { font-size: 40px; margin: 0 0 8px; }
h2 { font-size: 24px; margin: 48px 0 12px; }
h3 { font-size: 18px; margin: 28px 0 8px; letter-spacing: -0.01em; }

p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
strong { font-weight: 600; }

.updated { color: var(--chalk-3); font-size: 15px; margin-bottom: 32px; }

.lead { font-size: 19px; color: var(--chalk-2); }

.card {
  background: var(--raised);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}

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

.card h2:first-child, .card h3:first-child { margin-top: 0; }

.label {
  display: inline-block;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--chalk-2);
  margin-bottom: 8px;
}

.button {
  display: inline-block;
  background: var(--chalk);
  color: var(--ground);
  font-family: var(--heading);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
}

.button:hover { background: #FFFFFF; }

table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
th { font-family: var(--heading); font-weight: 700; color: var(--chalk-2); font-size: 14px; }
.table-scroll { overflow-x: auto; }

/* FAQ */

details {
  background: var(--raised);
  border-radius: var(--radius-inset);
  margin: 0 0 10px;
  padding: 0 20px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style-position: outside;
}

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

details[open] summary { color: var(--chalk); }
details > p:last-child { padding-bottom: 16px; margin-bottom: 0; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); color: var(--chalk-3); font-size: 15px; }
.site-footer .wrap { padding-top: 24px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--chalk-2); }

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  h2 { font-size: 22px; }
  main { padding: 32px 0 48px; }
  .card { padding: 20px; }
}
