/* Colours and type follow ios/ScrollCourt/Theme.swift. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/BricolageGrotesque-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #290f42;
  --ink-soft: #5c4570;
  --neutral: #faf7f2;
  --calm: #ccebd9;
  --concerned: #ffe08a;
  --guilty: #ffb5a1;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--neutral);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1, h2, .statement {
  font-family: "Bricolage Grotesque", -apple-system, sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header and footer */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 19px;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; }
.top nav a:hover, .foot a:hover { text-decoration: underline; }

.wrap.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
  padding-top: 36px;
  padding-bottom: 48px;
  font-size: 15px;
  color: var(--ink-soft);
}
.foot nav { display: flex; gap: 22px; }

/* Landing */
.hero { background: var(--calm); }
.hero-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 32px;
  padding: 48px 0 88px;
}
.hero h1 { font-size: clamp(52px, 9vw, 104px); }
.hero p { font-size: 20px; max-width: 30em; margin: 24px 0 32px; }
.hero-body > img { width: 100%; max-width: 340px; justify-self: center; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

section.wrap { padding-top: 80px; }
section.wrap:last-child { padding-bottom: 56px; }
section h2 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 36px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 24px;
}
.steps li::before {
  content: counter(step);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
}
.steps strong { display: block; font-size: 19px; margin: 12px 0 4px; }

.verdicts { list-style: none; margin: 0; padding: 0; }
.verdicts li {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.15;
  padding: 22px 28px;
  background: var(--calm);
}
.verdicts li:first-child { border-radius: 24px 24px 0 0; }
.verdicts li:last-child { border-radius: 0 0 24px 24px; }
.verdicts li:nth-child(2), .verdicts li:nth-child(3) { background: var(--concerned); }
.verdicts li:nth-child(n+4) { background: var(--guilty); }
.after { max-width: 40em; margin: 28px 0 0; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 19px;
}
.facts li { padding: 14px 0; border-top: 2px solid var(--ink); }

/* Privacy and support */
.doc { max-width: 720px; padding-top: 32px; padding-bottom: 40px; }
.doc h1 { font-size: clamp(40px, 7vw, 64px); margin-bottom: 12px; }
.doc h2 { font-size: 26px; line-height: 1.2; margin: 44px 0 10px; }
.doc .meta { color: var(--ink-soft); }
.doc li { margin: 8px 0; }

@media (max-width: 720px) {
  .hero-body { grid-template-columns: 1fr; padding: 24px 0 56px; }
  .hero-body > img { max-width: 200px; order: -1; justify-self: start; }
  .steps, .facts { grid-template-columns: 1fr; }
  section.wrap { padding-top: 56px; }
  .top nav { gap: 16px; }
}
