/* The public site's styles (AF-341; design: reference-site/landing, UI-2 DP and FT). Every colour,
   space and radius comes from tokens.css, the same file the service's pages use, copied in at
   build. Dark follows the device. Nothing inline: the site's policy allows no inline style. */

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--af-bg);
  color: var(--af-text);
  font-family: var(--af-font-display);
  font-size: 1.0625rem;
  line-height: 1.55;
}
a {
  color: inherit;
  text-underline-offset: 0.15em;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--af-text);
  outline-offset: 2px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin: 0 0 var(--af-space-4);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  margin: 0 0 var(--af-space-3);
}
h3 {
  font-size: 1.25rem;
  margin: var(--af-space-8) 0 var(--af-space-2);
}
.eyebrow,
.stage-label,
.tag,
.part {
  font-family: var(--af-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--af-label);
}
.lead {
  font-size: 1.25rem;
  color: var(--af-text2);
  max-width: 38rem;
}
.small {
  font-size: 0.9375rem;
  color: var(--af-label);
  max-width: 38rem;
}

/* The header: the mark home, the pages, and the one call to action. */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--af-space-3);
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--af-space-4) var(--af-space-4);
}
.home {
  display: inline-flex;
  align-items: center;
  gap: var(--af-space-2);
  text-decoration: none;
  font-weight: 500;
}
.byline {
  font-family: var(--af-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--af-label);
  font-weight: 400;
}
.skip {
  position: absolute;
  left: -10000px;
}
.skip:focus {
  left: var(--af-space-4);
  top: var(--af-space-2);
  background: var(--af-surface);
  padding: var(--af-space-2) var(--af-space-3);
  z-index: 1;
}
.home b {
  color: var(--af-label);
  font-weight: 500;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--af-space-4);
  font-size: 0.9375rem;
}
.top nav a:not(.cta) {
  text-decoration: none;
}
.top nav a:not(.cta):hover {
  text-decoration: underline;
}

/* The call to action: Heat ground, always dark text on it (contrast; DEVELOPER-REVIEW-2). */
.cta {
  display: inline-block;
  background: var(--af-heat);
  color: var(--af-on-heat);
  border-radius: var(--af-radius-control);
  padding: var(--af-space-2) var(--af-space-4);
  text-decoration: none;
  font-weight: 500;
  min-height: var(--af-target-min);
}
.cta:hover {
  background: var(--af-heat-hover);
}
.cta.big {
  font-size: 1.125rem;
  padding: var(--af-space-3) var(--af-space-6);
}
.actions {
  margin: var(--af-space-6) 0 var(--af-space-3);
}

main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--af-space-4) var(--af-space-12);
}
.hero {
  padding: var(--af-space-12) 0 var(--af-space-10);
  display: grid;
  gap: var(--af-space-8);
}
.hero-text {
  max-width: 44rem;
}
@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
  }
}
/* The moving picture (AF-342): decorative, so hidden from screen readers; its control is not. */
.hero-picture {
  margin: 0;
}
.field {
  display: block;
  width: 100%;
  height: 22rem;
  border-radius: var(--af-radius-card);
  /* The layered picture is always on the mark's dark ground, in both themes (hero.js). */
  background: #17140f;
}
@media (min-width: 60rem) {
  .field {
    height: 30rem;
  }
}
.hero-picture figcaption {
  display: flex;
  align-items: center;
  gap: var(--af-space-3);
  margin-top: var(--af-space-2);
  font-size: 0.875rem;
  color: var(--af-label);
}
.motion {
  font: inherit;
  color: var(--af-text);
  background: none;
  border: 1px solid var(--af-border-strong);
  border-radius: var(--af-radius-control);
  padding: var(--af-space-1) var(--af-space-3);
  min-height: var(--af-target-min);
  cursor: pointer;
}
.motion:focus-visible {
  outline: 2px solid var(--af-text);
  outline-offset: 2px;
}

/* The stages: a rail label on the left at desktop width, above the content on a phone. */
.stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--af-space-2);
  padding: var(--af-space-10) 0;
  border-top: 1px solid var(--af-border);
}
.stage > div {
  max-width: 44rem;
}
@media (min-width: 60rem) {
  .stage {
    grid-template-columns: 10rem 1fr;
    gap: var(--af-space-8);
  }
}
.stage-label {
  margin: 0;
  padding-top: 0.4rem;
}
.proof {
  background: var(--af-surface);
  border-radius: var(--af-radius-card);
  padding: var(--af-space-8) var(--af-space-6);
  border-top: none;
}
.steps {
  padding-left: 1.25rem;
  display: grid;
  gap: var(--af-space-3);
}
.files,
.cards,
.facts {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--af-space-3);
}
.files li {
  font-family: var(--af-font-mono);
  font-size: 0.875rem;
  color: var(--af-text2);
}
.cards li {
  background: var(--af-raised);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-card);
  padding: var(--af-space-4);
}
.cards .tag {
  display: block;
  margin-bottom: var(--af-space-1);
}
.facts {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  font-weight: 500;
}
.facts li::before {
  content: "■ " / "";
  color: var(--af-solid);
}
.trust {
  font-size: 0.9375rem;
  color: var(--af-text2);
}
blockquote {
  margin: var(--af-space-4) 0;
  padding-left: var(--af-space-4);
  border-left: 3px solid var(--af-heat);
  font-size: 1.125rem;
}
blockquote span {
  font-size: 0.9375rem;
  color: var(--af-text2);
}

/* Instead of: four options against ours. */
.compare,
.questions,
.closing {
  padding: var(--af-space-10) 0;
  border-top: 1px solid var(--af-border);
}
.compare dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--af-space-4);
  margin: 0;
}
.compare dl > div {
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-card);
  padding: var(--af-space-4);
}
.compare dt {
  font-weight: 500;
  margin-bottom: var(--af-space-1);
}
.compare dd {
  margin: 0;
  color: var(--af-text2);
}
.compare .ours {
  border-color: var(--af-solid);
  border-width: 2px;
}

/* Questions, and every other disclosure: the native element. */
details {
  border-bottom: 1px solid var(--af-border);
  padding: var(--af-space-3) 0;
  max-width: 44rem;
}
summary {
  cursor: pointer;
  font-weight: 500;
  min-height: var(--af-target-min);
  padding: var(--af-space-1) 0;
}

/* Reading pages: How it works, Data and privacy. */
.reading {
  max-width: 44rem;
  padding-top: var(--af-space-8);
}
.reading section {
  margin-bottom: var(--af-space-4);
}
.part-title {
  margin-top: var(--af-space-12);
  padding-top: var(--af-space-6);
  border-top: 1px solid var(--af-border);
}
.with-contents {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--af-space-4);
  display: grid;
  gap: var(--af-space-6);
}
.with-contents .reading {
  padding-left: 0;
  padding-right: 0;
}
.contents {
  padding-top: var(--af-space-8);
  font-size: 0.9375rem;
}
.contents ol {
  padding-left: 1.5rem;
  margin: var(--af-space-1) 0 var(--af-space-4);
}
.contents .part {
  margin: var(--af-space-3) 0 0;
}
@media (min-width: 60rem) {
  .with-contents {
    grid-template-columns: 15rem 1fr;
    gap: var(--af-space-10);
  }
  .contents > details {
    position: sticky;
    top: var(--af-space-4);
    border: none;
  }
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}
caption {
  text-align: left;
  color: var(--af-label);
  padding-bottom: var(--af-space-2);
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: var(--af-space-2) var(--af-space-3) var(--af-space-2) 0;
  border-bottom: 1px solid var(--af-border);
}
thead th {
  font-family: var(--af-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--af-label);
}

/* The footer (FT-01): who offers it, how to reach us, the notices. */
.foot {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--af-space-8) var(--af-space-4);
  border-top: 1px solid var(--af-border);
  color: var(--af-label);
  font-size: 0.875rem;
}
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--af-space-4);
  list-style: none;
  padding: 0;
}
