/* Burn Book marketing site.
   Colours are taken from the app's asset catalog so the site and the app match.
   Light and dark both supported via prefers-color-scheme. */

:root {
  --bg: #faf6f3;
  --bg-top: #fffdfb;
  --surface: #ffffff;
  --text: #1a1210;
  --text-secondary: #7a6a5c;
  --text-tertiary: #736759;
  --primary: #a0301f;
  --secondary: #9a5f2a;
  --border: #e6ddd6;
  --max-width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1210;
    --bg-top: #241a16;
    --surface: #2a1f1a;
    --text: #f2e8e0;
    --text-secondary: #9a8a7c;
    --text-tertiary: #8a8078;
    --primary: #d85b49;
    --secondary: #dba068;
    --border: #3a2c25;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 340px);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

/* ---------- Header ---------- */

header.site {
  padding: 28px 0 8px;
}

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

.wordmark {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.2px;
  color: var(--text);
  text-decoration: none;
}

.wordmark span {
  color: var(--primary);
}

nav.site a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  margin-left: 18px;
}

nav.site a:hover {
  color: var(--primary);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  text-align: center;
  padding: 40px 0 40px;
  /* The glow is wider than a phone screen; clip it sideways only. */
  overflow-x: clip;
}

.hero .wrap {
  position: relative;
}

/* Soft ember behind the app icon. Decorative only. */
.hero .glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(620px, 120vw);
  aspect-ratio: 1;
  transform: translate(-50%, -32%);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--primary) 20%, transparent) 0%,
    transparent 62%
  );
  filter: blur(28px);
  pointer-events: none;
}

.hero .app-icon {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 26px;
  /* Roughly the corner shape iOS gives app icons. */
  border-radius: 25px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.store-badge {
  display: inline-block;
}

.store-badge img {
  display: block;
  width: auto;
  height: 54px;
}

.hero .fine {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--text-tertiary);
}

.hero h1 {
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0 0 16px;
}

.hero p.lede {
  font-size: clamp(17px, 2.6vw, 20px);
  color: var(--text-secondary);
  max-width: 30em;
  margin: 0 auto 28px;
}

.badge {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
}

.badge:hover {
  opacity: 0.9;
}

.badge.disabled {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: default;
}

/* ---------- Feature cards ---------- */

.features {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 24px 0 48px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15.5px;
}

/* ---------- Stance block ---------- */

.stance {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 14px;
  padding: 24px;
  margin: 0 0 16px;
}

.stance h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.stance p {
  margin: 0;
  color: var(--text-secondary);
}

.stance a {
  color: var(--primary);
}

/* ---------- Support ---------- */

.support {
  text-align: center;
  padding: 40px 0 16px;
  scroll-margin-top: 16px;
}

.support h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.support p {
  margin: 0;
  color: var(--text-secondary);
}

.support a {
  color: var(--primary);
}

/* ---------- Legal pages ---------- */

/* Top and bottom only: the shorthand used to zero the side padding that
   .wrap provides, so on a phone the text ran into the screen edges. */
.legal {
  padding-top: 24px;
  padding-bottom: 40px;
}

.legal h1 {
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}

.legal .effective {
  color: var(--text-tertiary);
  font-size: 15px;
  margin: 0 0 32px;
}

.legal h2 {
  font-size: 19px;
  margin: 34px 0 10px;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.legal p {
  color: var(--text-secondary);
}

.legal a {
  color: var(--primary);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding: 28px 0 48px;
  color: var(--text-tertiary);
  font-size: 14.5px;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
}

footer.site a {
  color: var(--text-secondary);
  text-decoration: none;
}

footer.site a:hover {
  color: var(--primary);
}
