@font-face { font-family: Pally; src: url(/fonts/Pally-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Sentient; src: url(/fonts/Sentient-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Sentient; src: url(/fonts/Sentient-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --blue: #0E4DA4;
  --sun: #FFD60A;
  --ink: #14213D;
  --muted: #6B7585;
  --white: #FFFFFF;
  --line: color-mix(in srgb, var(--muted) 30%, var(--white));
  --press: cubic-bezier(.23, 1, .32, 1);
  /* Keeps every zone's content in one centered 42rem column. */
  --gutter: max(1.25rem, calc(50% - 21rem));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blue);
  color: var(--ink);
  font: 400 1.125rem/1.6 Sentient, Georgia, serif;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* A coloured top zone with a white sheet over it, as in the app. No shadows. */
.top { padding: 1.5rem var(--gutter) 2rem; }
.mark img { display: block; width: 9.5rem; height: auto; }
.home-link { min-height: 56px; display: flex; align-items: center; }

.sheet {
  background: var(--white);
  border-radius: 36px 36px 0 0;
  padding: 2.25rem var(--gutter) 2rem;
  flex: 1;
}

h1, h2, h3 { font-family: Pally, "Trebuchet MS", sans-serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.125rem; margin: 0 0 1.25rem; }
h2 { font-size: 1.5rem; margin: 2.25rem 0 .75rem; }
h3 { font-size: 1.1875rem; margin: 1.75rem 0 .5rem; }
p, ul, table { margin-block: 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: .4rem; }
strong { font-weight: 500; }
a { color: var(--blue); text-underline-offset: .15em; }
code { font-family: inherit; }
blockquote { margin: 0 0 1.5rem; padding-left: 1rem; border-left: 3px solid var(--muted); color: var(--muted); }
blockquote p { margin: 0; }

table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: .625rem .75rem .625rem 0; border-bottom: 1px solid var(--line); }
th { font-weight: 500; }

/* The privacy table has four wordy columns: on a phone each row becomes a card. */
@media (max-width: 45rem) {
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table, tbody, tr, td { display: block; }
  tr { padding-block: .75rem; border-bottom: 1px solid var(--line); }
  td { padding: 0 0 .5rem; border: 0; }
  td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .875rem; }
}

/* Landing page */
.intro { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 3rem; color: var(--white); }
.intro + .sheet { flex: none; padding-bottom: 3rem; }
.intro .home-link { margin-bottom: 2rem; }
.intro .mark img { width: 13rem; }
.intro p { font-size: 1.3125rem; line-height: 1.45; margin: 0 0 1rem; }
.intro .soon { font-family: Pally, "Trebuchet MS", sans-serif; font-weight: 700; margin: 0; }
.buttons { display: grid; gap: .75rem; list-style: none; padding: 0; margin-block: 0; }
.buttons li { margin: 0; }
.button {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px; padding: .75rem 1.25rem;
  background: var(--sun); color: var(--ink);
  border-radius: 28px;
  font: 700 1.25rem/1.2 Pally, "Trebuchet MS", sans-serif;
  text-decoration: none;
  transition: transform .14s var(--press);
}
@media (min-width: 40rem) {
  .buttons { grid-template-columns: 1fr 1fr; }
  .intro { text-align: center; }
  .intro .home-link { justify-content: center; }
  .intro .mark img { width: 18rem; }
  .intro p { font-size: 1.5rem; }
}

footer { background: var(--white); padding: 1rem var(--gutter) 2rem; }
footer nav { border-top: 1px solid var(--line); padding-top: .5rem; display: flex; flex-wrap: wrap; column-gap: 1.25rem; }
footer a { display: flex; align-items: center; min-height: 56px; font-size: 1rem; }
footer a[aria-current] { color: var(--muted); }

a:active { transform: scale(.96); }
a:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; box-shadow: 0 0 0 3px var(--ink); border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  a:active { transform: none; }
}
