/* The app's colour tokens, copied as values: the site loads nothing from the app. */
:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --bg-raised: #ffffff;
  --fg: #1d1c19;
  --muted: #5f5d55;
  --line: #e3e0d8;
  --accent: #2f5d50;
  --accent-soft: #e6eee9;
  --gutter: 16px;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181b;
    --bg-raised: #1f2126;
    --fg: #e8e7e2;
    --muted: #9a988f;
    --line: #2e3035;
    --accent: #8fc9b4;
    --accent-soft: #24322d;
  }
}

@media (min-width: 45rem) {
  :root {
    --gutter: 32px;
  }
}

* {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

h1 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.375rem;
}

h3 {
  font-size: 1.0625rem;
}

@media (min-width: 45rem) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  h3 {
    font-size: 1.125rem;
  }
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose {
  max-width: 40rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
}

@media (min-width: 45rem) {
  .lead {
    font-size: 1.25rem;
  }
}

.muted,
.quiet-line {
  color: var(--muted);
}

.quiet-line {
  font-size: 0.9375rem;
}

.address {
  overflow-wrap: anywhere;
  user-select: all;
}

/* Header: two rows below 54rem, one row from there. */

.skip {
  position: absolute;
  left: var(--gutter);
  top: -10rem;
  z-index: 1;
  padding: 0.5rem 1rem;
  background: var(--bg-raised);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.skip:focus {
  top: 0.5rem;
}

.site-header {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  max-width: 64rem;
  margin-inline: auto;
  padding: 0.5rem var(--gutter);
}

.brand {
  order: 1;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--fg);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 28px;
}

.bar > .button {
  order: 2;
}

.site-nav {
  order: 3;
  flex: 0 0 calc(100% + 1rem);
  margin-inline: -0.5rem;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.5rem;
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav a[aria-current='page'] {
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

.site-nav .quiet {
  margin-left: auto;
  color: var(--muted);
  font-weight: 400;
}

@media (min-width: 54rem) {
  .bar {
    flex-wrap: nowrap;
  }

  .site-nav {
    order: 2;
    flex: 0 1 auto;
    margin-inline: 0;
  }

  .bar > .button {
    order: 3;
  }

  .site-nav .quiet {
    margin-left: 0.75rem;
  }
}

/* Buttons and links that act as buttons. */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg-raised);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  text-decoration: underline;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--line);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1.25rem 0 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* Sections. */

.hero {
  padding-block: 3rem 2.5rem;
}

@media (min-width: 45rem) {
  .hero {
    padding-block: 4.5rem 3.5rem;
  }
}

.hero h1 {
  max-width: 20ch;
}

.page-head {
  padding-block: 2.5rem 1.5rem;
}

@media (min-width: 45rem) {
  .page-head {
    padding-block: 3.5rem 2rem;
  }
}

.section {
  padding-block: 2.25rem;
  border-top: 1px solid var(--line);
}

.section > :last-child,
.card > :last-child,
.panel > :last-child,
.box > :last-child,
.cta > :last-child {
  margin-bottom: 0;
}

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

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

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

.card,
.panel,
.box {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

@media (min-width: 45rem) {
  .card,
  .panel,
  .box {
    padding: 1.5rem;
  }
}

.panel {
  border-left: 4px solid var(--accent);
}

.card ul,
.panel ul,
.box ul,
.prose ul {
  padding-left: 1.25rem;
}

.card li + li,
.panel li + li,
.box li + li,
.prose li + li {
  margin-top: 0.25rem;
}

.tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.needs {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Numbered steps. */

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  counter-reset: step;
  max-width: 40rem;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  padding-bottom: 1.25rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-raised);
  font-weight: 700;
}

.steps h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin: 0.25rem 0 0.25rem;
}

.steps h3 .tag {
  margin: 0;
}

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

.plain-steps {
  padding-left: 1.25rem;
}

.plain-steps li + li {
  margin-top: 0.5rem;
}

/* The call-to-action band. */

.cta {
  margin-block: 2.25rem 3rem;
  padding: 2rem 1.25rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  text-align: center;
}

.cta h2 {
  margin-bottom: 0.5rem;
}

.cta .actions {
  justify-content: center;
}

/* Pricing: a table from 45rem, stacked rows below, never sideways scroll. */

.plan {
  max-width: 28rem;
}

.plan .price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.costs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.costs caption {
  text-align: left;
  color: var(--muted);
  padding-bottom: 0.5rem;
}

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

.costs thead th {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

@media (max-width: 44.99rem) {
  .costs,
  .costs tbody,
  .costs tr,
  .costs th,
  .costs td {
    display: block;
  }

  .costs thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .costs tr {
    padding-block: 0.75rem;
    border-bottom: 1px solid var(--line);
  }

  .costs th,
  .costs td {
    padding: 0;
    border: 0;
  }

  .costs tbody th {
    font-size: 1.0625rem;
    margin-bottom: 0.25rem;
  }

  .costs td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.8125rem;
  }
}

/* Request an invite: the box sits beside the text from 45rem and stays in view. */

.request-layout {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 45rem) {
  .request-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
    align-items: start;
  }
}

@media (min-width: 45rem) and (min-height: 40rem) {
  .request-box {
    position: sticky;
    top: 1rem;
  }
}

.request-layout .section:first-child {
  border-top: 0;
  padding-top: 0;
}

.request-box h2 {
  font-size: 1.25rem;
}

.request-box .button {
  width: 100%;
  margin-bottom: 1rem;
}

/* Security and privacy: one prose column. */

.prose-page {
  padding-bottom: 3rem;
}

.prose-page .section {
  max-width: 40rem;
}

/* Footer. */

.site-footer {
  margin-top: 1rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.25rem;
  margin-inline: -0.5rem;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.5rem;
  color: var(--muted);
}

.site-footer .address {
  margin: 0.5rem 0 0;
}

.not-found {
  max-width: 34rem;
  padding-block: 3.5rem 3rem;
}

.not-found .quiet-line {
  margin-top: 1.5rem;
}
