/* Pool's brand: always night, with flat bands of tile, deep water and Naples, like the pages of a
   printed type specimen. Colours are the app's own (apps/mobile/src/theme/palette.ts). */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono.woff2') format('woff2');
  font-weight: 400 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #0b1e2d;
  --surface: #0f2638;
  --surface-raised: #12293b;
  --tile: #f4efe6;
  --ink: #0b1e2d;
  --ink-muted: #3e5163;
  --deep-water: #1766b0;
  --ripple: #5ec8e5;
  --naples: #f2d27a;
  --over: #ff6b57;
  --foam: #c9d6e0;
  --mist: #9fb3c4;
  --grout: #1b3347;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--tile);
  font:
    400 1.0625rem/1.5rem 'Bricolage Grotesque',
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--ripple);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 1.5rem;
  }
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
}

/* Header, with the lockup: the mark, half its width of clear space, then the name. */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--tile);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
}

.site-header nav a {
  color: var(--mist);
  text-decoration: none;
  font-weight: 600;
}

.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  color: var(--tile);
}

.site-footer {
  border-top: 1px solid var(--grout);
  color: var(--mist);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer p {
  margin: 0;
}

/* Type */
h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.75rem, 8vw, 5rem);
}

h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--foam);
  max-width: 32em;
}

.number {
  margin: 0;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--naples);
}

/* Bands */
.band {
  padding: 5rem 0;
}

.band-tile {
  background: var(--tile);
  color: var(--ink);
}

.band-tile .label,
.band-tile .muted {
  color: var(--ink-muted);
}

.band-water {
  background: var(--deep-water);
  color: var(--white);
}

.band-water .label {
  color: var(--white);
}

.band-naples {
  background: var(--naples);
  color: var(--ink);
}

.band-naples .label {
  color: var(--ink-muted);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin-bottom: 1rem;
}

.section-head p {
  margin: 0;
}

.muted {
  color: var(--mist);
}

/* Home */
.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: 1fr 1.1fr;
    padding-top: 3rem;
  }
}

.hero-art {
  width: 100%;
  height: auto;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  background: var(--naples);
  color: var(--ink);
  font-weight: 700;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
}

.band-naples .button {
  background: var(--ink);
  color: var(--tile);
}

.sum {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 56rem) {
  .sum {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.ledger {
  background: var(--night);
  color: var(--tile);
  border-radius: 1.5rem;
  padding: 1.5rem;
  margin: 0;
}

.ledger div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--grout);
}

.ledger dt {
  color: var(--foam);
}

.ledger dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ledger .total {
  display: block;
  border-bottom: 0;
  padding-bottom: 0;
}

.ledger .total dt {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0.75rem 0;
}

.ledger .total dd {
  font-weight: 800;
}

.ledger .per-day {
  display: block;
  margin-top: 0.75rem;
  border-bottom: 0;
  color: var(--foam);
}

.steps {
  display: grid;
  gap: 2rem;
  counter-reset: step;
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}

.steps li::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.steps h3 {
  margin-bottom: 0.5rem;
}

.steps p {
  margin: 0;
  color: var(--ink-muted);
}

/* The onboarding's afford slide: the question as a message, then the pool's answer. */
.answers {
  display: grid;
  gap: 0.75rem;
  max-width: 26rem;
}

.answer {
  display: grid;
  gap: 0.5rem;
}

.ask-bubble {
  justify-self: end;
  margin: 0;
  background: var(--surface-raised);
  border-radius: 1.375rem 1.375rem 0.5rem 1.375rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
}

.answer-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border-radius: 1.75rem;
  padding: 0.75rem;
}

.answer-card p {
  margin: 0;
}

.vessel {
  flex: none;
  width: 7rem;
  height: auto;
}

.vessel-still {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  video.vessel {
    display: none;
  }

  .vessel-still {
    display: block;
  }
}

.verdict {
  margin-bottom: 0.25rem;
}

.answer-yes .verdict {
  font-size: 2.5rem;
  line-height: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.0625rem;
  color: var(--naples);
}

.answer-no .verdict {
  font-size: 1.375rem;
  line-height: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.0125rem;
  color: var(--over);
}

.caption {
  font-size: 0.9375rem;
  line-height: 1.3125rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--foam);
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.shot {
  border-radius: 1.5rem;
}

.drawing {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.drawing img {
  width: 100%;
}

.promise ul {
  display: grid;
  gap: 1.25rem 2.5rem;
  margin: 0 0 2rem;
  padding-left: 1.2rem;
}

@media (min-width: 48rem) {
  .promise ul {
    grid-template-columns: 1fr 1fr;
  }
}

.closing h2 {
  margin-bottom: 1rem;
}

.closing p {
  margin: 0;
  max-width: 34em;
}

/* Text pages: about, the legal pages and support */
.page > * {
  max-width: 44rem;
}

.page {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

.page h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: 1.25rem;
}

.page h2 {
  font-size: 1.6rem;
  margin: 3rem 0 0.75rem;
}

.page h3 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.5rem;
}

.page ul {
  padding-left: 1.2rem;
}

.page li + li {
  margin-top: 0.4rem;
}

.page .drawing {
  margin: 2.5rem 0;
}

.updated {
  color: var(--mist);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--grout);
  margin-bottom: 2rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.375rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid var(--grout);
}

th {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.maker {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.initial {
  flex: none;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--tile);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
}

.maker p {
  margin-top: 0;
}

details {
  border-bottom: 1px solid var(--grout);
  padding: 1rem 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.125rem;
}

details p {
  margin: 0.75rem 0 0;
  color: var(--foam);
}

.page .contact-list {
  list-style: none;
  padding: 0;
}
