/* Quayside website. The apps' fonts, with a warmer seaside palette for the
   marketing pages (deep sea blue and sand); the apps themselves stay black on
   white (plan section 14). */
@font-face {
  font-family: 'Archivo';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Archivo_400Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Archivo';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Archivo_700Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Archivo';
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Archivo_800ExtraBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/AtkinsonHyperlegible_400Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/AtkinsonHyperlegible_700Bold.ttf') format('truetype');
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --sea: #0c2f3d;
  --sea-2: #164a5c;
  --sand: #f7efe1;
  --foam: #e4efed;
  --ink: #0b1a20;
  --muted: #4f5d63;
  --line: #dfe3e2;
  --surface2: #f1f1f1;
  --good: #06753a;
  --warn: #7a4300;
  --warn-soft: #fff1de;
  --heading: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 20px;
  --page: 1120px;
  --text: 720px;
}

* {
  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: 18px;
  line-height: 1.55;
}

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

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: 20px;
}
.narrow {
  max-width: var(--text);
}
.band > .wrap.narrow {
  max-width: var(--page);
}
.band > .wrap.narrow > * {
  max-width: var(--text);
}

/* Header */
.top {
  background: var(--sand);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-block: 14px;
}
.brand {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
  color: var(--sea);
  text-decoration: none;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}
.nav a {
  color: var(--sea);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.4;
  padding-block: 10px;
}
.nav a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.nav a.pill {
  background: var(--sea);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
}

/* Type */
h1,
h2,
h3 {
  font-family: var(--heading);
  margin: 0;
  color: inherit;
}
h1 {
  font-weight: 800;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
h2 {
  font-weight: 800;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h3 {
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
}
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding-left: 1.3em;
}
li + li {
  margin-top: 6px;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
.num {
  font-family: var(--heading);
}
.muted {
  color: var(--muted);
}
.lead {
  font-size: 21px;
  line-height: 1.5;
}
.kicker {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Page bands */
main {
  display: block;
}
.band {
  padding-block: 72px;
}
.band > .wrap {
  display: grid;
  gap: 28px;
}
.sand {
  background: var(--sand);
}
.foam {
  background: var(--foam);
}
.sea {
  background: var(--sea);
  color: #fff;
}
.sea .muted {
  color: #c9d9de;
}

/* Hero: words and app buttons beside a big photo */
.hero {
  background: var(--sand);
  padding-block: 32px 72px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text {
  display: grid;
  gap: 22px;
  color: var(--sea);
}
.hero-text .lead {
  color: var(--ink);
}
.photo {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--foam);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo.tall {
  aspect-ratio: 4 / 5;
}

/* App store buttons (badges come once the apps are in the stores) */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: grid;
  gap: 0;
  min-width: 190px;
  background: var(--sea);
  color: #fff;
  border-radius: 14px;
  padding: 10px 20px 12px;
  text-decoration: none;
}
.store small {
  font-size: 13px;
  line-height: 1.3;
  opacity: 0.8;
}
.store strong {
  font-family: var(--heading);
  font-size: 20px;
  line-height: 1.2;
}
.sea .store {
  background: #fff;
  color: var(--sea);
}
.soon {
  font-size: 15px;
  line-height: 1.4;
}

/* Virtues: short reasons in a grid */
.virtues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.virtue {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.virtue .big {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.15;
  color: var(--sea);
}
.sea .virtue {
  background: var(--sea-2);
}
.sea .virtue .big {
  color: #fff;
}

/* Two columns: photo and words */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split .words {
  display: grid;
  gap: 18px;
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 18px;
  counter-reset: step;
}
.steps li {
  margin: 0;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 2px 16px;
  align-items: start;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sea);
  color: #fff;
  font-family: var(--heading);
  font-weight: 800;
  font-size: 22px;
  line-height: 48px;
  text-align: center;
}

.button {
  display: inline-block;
  justify-self: start;
  background: var(--sea);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.3;
  border-radius: 999px;
  padding: 14px 24px;
}
.sea .button {
  background: #fff;
  color: var(--sea);
}

.credit {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

/* Plain pages: support, privacy, terms */
.page {
  padding-block: 48px 72px;
  display: grid;
  gap: 40px;
}
.page section {
  display: grid;
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 8px;
}
.note {
  background: var(--foam);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.draft {
  background: var(--warn-soft);
  color: var(--warn);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-weight: 700;
}
.fee {
  color: var(--good);
  font-weight: 700;
}
.sea .fee {
  color: #9fe0b8;
}
.faq h3 {
  font-size: 19px;
}
.legal {
  display: grid;
  gap: 14px;
}
.legal h2 {
  font-size: 24px;
  margin-top: 18px;
}
.todo {
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 700;
  border-radius: 4px;
  padding-inline: 3px;
}
p.todo {
  padding: 12px 14px;
  border-radius: var(--radius);
}

/* Footer */
.foot {
  background: var(--sea);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #c9d9de;
  font-size: 15px;
  line-height: 1.5;
}
.foot .wrap {
  padding-block: 36px 44px;
  display: grid;
  gap: 14px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.foot a {
  color: #fff;
  line-height: 1.4;
  padding-block: 8px;
}
.foot .credit {
  color: #c9d9de;
}
.foot .company {
  font-size: 13px;
  color: #c9d9de;
  max-width: 60ch;
}
.foot .brand {
  color: #fff;
}

@media (max-width: 860px) {
  .hero .wrap,
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .split .photo {
    order: -1;
  }
  h1 {
    font-size: 42px;
  }
  h2 {
    font-size: 30px;
  }
  .band {
    padding-block: 52px;
  }
}
@media (max-width: 520px) {
  body {
    font-size: 17px;
  }
  h1 {
    font-size: 36px;
  }
  .lead {
    font-size: 19px;
  }
  .store {
    min-width: 0;
    flex: 1 1 150px;
  }
}
