/* Blimed website. Same colours and display face as the app (src/lib/theme.ts). */
:root {
  --bg: #f2f4f8;
  --card: #ffffff;
  --ink: #0c1736;
  --muted: #5d6884;
  --line: #dde2ec;
  --blue: #1f4ae0;
  --blue-soft: #e3eaff;
  --ball: #ddf247;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.5;
}
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 1.25rem; }
.brand { font-family: var(--display); font-weight: 700; font-size: 2rem; letter-spacing: 0.01em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--blue); }
.top nav a { margin-left: 1.25rem; font-weight: 600; color: var(--ink); }

h1, h2 { font-family: var(--display); font-weight: 700; line-height: 0.95; margin: 0; }
h1 { font-size: clamp(3.5rem, 11vw, 7.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
p { margin: 0; max-width: 34rem; }
.lede { font-size: 1.3rem; color: var(--muted); }

.hero { display: grid; gap: 2.5rem; padding-block: 2rem 4rem; align-items: center; }
.hero-text { display: grid; gap: 1.25rem; }
@media (min-width: 56rem) { .hero { grid-template-columns: 1.15fr 0.85fr; padding-block: 4rem 6rem; } }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.75rem; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--body);
}
.pill.quiet { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.soon { color: var(--muted); font-size: 1rem; }

/* The session card: the thing the app is about. */
.session {
  background: var(--card); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.1rem;
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; max-width: 26rem; width: 100%; justify-self: center;
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(12, 23, 54, 0.35);
}
.date {
  align-self: start; width: 4.5rem; padding: 0.6rem 0; border-radius: 0.8rem; background: var(--blue-soft);
  text-align: center; font-family: var(--display); font-weight: 600; color: #16329b; transition: background 0.15s, color 0.15s;
}
.date b { display: block; font-size: 2.6rem; line-height: 1; font-weight: 700; color: var(--ink); transition: color 0.15s; }
.session[data-answer='yes'] .date { background: var(--ink); color: var(--ball); }
.session[data-answer='yes'] .date b { color: var(--ball); }
.session > div:last-child { min-width: 0; }
.session h3 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.session .meta { color: var(--muted); font-size: 1rem; }
.answers { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0.35rem; margin-top: 0.8rem; }
.answers button {
  min-height: 2.75rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card);
  font: 800 0.875rem var(--body); color: var(--ink); cursor: pointer; white-space: nowrap; padding: 0 0.3rem; min-width: 0;
}
.answers button[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.answers button[data-a='yes'][aria-pressed='true'] { background: var(--ball); border-color: var(--ball); color: var(--ink); }

.how { background: var(--ink); color: #fff; padding: 4rem 0; }
.how h2 { color: var(--ball); margin-bottom: 2rem; }
.how ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 56rem) { .how ul { grid-template-columns: repeat(3, 1fr); } }
.how li strong { display: block; font-family: var(--display); font-size: 1.75rem; line-height: 1.1; margin-bottom: 0.4rem; }
.how li { color: #c9d1e6; }
.how li strong { color: #fff; }

.plain { padding-block: 3rem 4rem; display: grid; gap: 1rem; }
.plain h1 { font-size: clamp(2.75rem, 8vw, 4.5rem); }
.plain h2 { font-size: 1.9rem; margin-top: 1.5rem; }
.plain p, .plain li { max-width: 40rem; }

.code {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 9vw, 4.5rem); letter-spacing: 0.04em; max-width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: 0.5rem 1.25rem; display: inline-block;
}
#has-code { display: grid; gap: 1rem; justify-items: start; }
.steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.4rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

footer { padding-block: 2rem 3rem; color: var(--muted); font-size: 1rem; }
footer a { color: var(--muted); margin-right: 1.25rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Privacy policy and terms */
.legal h1 { margin-top: 1rem; }
.legal h1 + p { color: var(--muted); }
.legal .plain-inner { display: grid; gap: 1rem; }
.legal .scroll { overflow-x: auto; max-width: 100%; }
.legal table { border-collapse: collapse; width: 100%; max-width: 56rem; font-size: 1rem; background: var(--card); border-radius: 0.75rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); min-width: 9rem; }
.legal th { font-weight: 700; }
.legal tr:last-child td { border-bottom: 0; }
.legal ul { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.4rem; }
.plain > *, .plain-inner > * { min-width: 0; }
.legal h1 { font-size: clamp(2rem, 8.5vw, 4.5rem); overflow-wrap: anywhere; hyphens: auto; }
