/* Palette, type and radii come from design/tokens.json so the site and the
   app read as one product. */
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --canvas: #f4f6f5;
  --surface: #ffffff;
  --ink: #173c50;
  --ink-soft: #50636c;
  --saffron: #f1cc72;
  --divider: #d7e0e1;
  --teal: #9ab8b5;
  --exploring: #dce7ef;
  --making: #f2e5d9;
  --food: #f5ecd3;
  --culture: #e8e2f1;
  --outdoors: #ddebdf;
  --learning: #f2e3e0;
  --radius-card: 18px;
  --radius-button: 12px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* The tilted hero panel extends past the viewport on phones. */
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  width: min(var(--max), 100% - 40px);
  margin-inline: auto;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
}

.site-header .wordmark {
  height: 30px;
  width: auto;
}

.site-header nav {
  display: flex;
  gap: 26px;
  font-weight: 600;
  font-size: 15px;
}

.site-header nav a {
  text-decoration: none;
  white-space: nowrap;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}

.site-header nav a:hover {
  border-color: var(--saffron);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-block: 48px 88px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 4px rgba(241, 204, 114, 0.35);
}

h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

h1 .dot {
  color: var(--saffron);
}

.lede {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-button);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.primary:hover {
  background: #0f2c3c;
}

.button.quiet {
  color: var(--ink);
  border: 1.5px solid var(--divider);
  background: var(--surface);
}

.button.quiet:hover {
  border-color: var(--ink);
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(360px, 100%);
}

.hero-visual .backdrop {
  position: absolute;
  inset: 8% -18% 10% -18%;
  border-radius: 32px;
  background: var(--exploring);
  border: 1.5px solid var(--divider);
  transform: rotate(-5deg);
}

/* Phone frame around real screenshots */
.phone {
  position: relative;
  border: 10px solid var(--ink);
  border-radius: 38px;
  overflow: hidden;
  background: var(--canvas);
  box-shadow: 0 30px 60px -30px rgba(23, 60, 80, 0.45);
}

.phone img {
  width: 100%;
  height: auto;
}

/* Sections */
section {
  padding-block: 80px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

h2 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.muted {
  color: var(--ink-soft);
}

/* Version picker demo */
.versions {
  background: var(--surface);
  border-block: 1px solid var(--divider);
}

.versions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.demo {
  border: 1.5px solid var(--divider);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--canvas);
}

.demo-banner {
  background: var(--exploring);
}

.demo-body {
  padding: 22px 24px 26px;
}

.demo .category {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 0 0 4px;
}

.toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px;
  margin: 18px 0 20px;
  background: var(--surface);
}

.toggle button {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  background: transparent;
  cursor: pointer;
}

.toggle button[aria-pressed="true"] {
  background: var(--saffron);
}

.toggle button:focus-visible,
.button:focus-visible,
.site-header nav a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--saffron);
  font-weight: 800;
  font-size: 14px;
}

/* How it works: alternating rows with real screenshots */
.flow-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: center;
  padding-block: 36px;
  border-top: 1px solid var(--divider);
}

.flow-row:nth-child(even) {
  grid-template-columns: 300px 1fr;
}

.flow-row:nth-child(even) .flow-text {
  order: 2;
}

.flow-row .num {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.flow-text p {
  max-width: 46ch;
}

.flow-row .phone {
  border-width: 8px;
  border-radius: 30px;
}

/* Categories */
.categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.category-tile {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--divider);
  background: var(--surface);
}

.category-tile p {
  margin: 0;
  padding: 10px 12px 12px;
  font-weight: 700;
  font-size: 15px;
}

/* Leaves out */
.leaves-out {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaves-out li {
  padding: 22px 0;
  border-top: 1px solid var(--divider);
}

.leaves-out strong {
  display: block;
  font-size: 19px;
  margin-bottom: 4px;
}

/* Built with */
.built {
  background: var(--ink);
  color: #e9f0f2;
}

.built h2,
.built h3 {
  color: #fff;
}

.built .eyebrow,
.built .muted {
  color: #a9bec6;
}

.stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
}

.stack div {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.stack p {
  margin: 0;
}

/* Footer */
.site-footer {
  padding-block: 40px 56px;
  font-size: 15px;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav {
  display: flex;
  gap: 22px;
}

/* Privacy page */
.prose {
  max-width: 720px;
  padding-block: 32px 80px;
}

.prose h1 {
  font-size: clamp(36px, 5vw, 52px);
}

.prose h2 {
  font-size: 24px;
  margin-top: 40px;
}

.prose li {
  margin-bottom: 8px;
}

.note {
  background: var(--food);
  border-radius: var(--radius-button);
  padding: 14px 18px;
  font-size: 15px;
}

@media (max-width: 880px) {
  .hero,
  .versions-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero {
    padding-block: 24px 64px;
  }

  .hero-visual {
    width: min(300px, 80%);
  }

  .flow-row,
  .flow-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .flow-row:nth-child(even) .flow-text {
    order: 0;
  }

  .flow-row .phone {
    width: min(280px, 80%);
    justify-self: center;
  }

  .categories {
    grid-template-columns: repeat(3, 1fr);
  }

  .leaves-out,
  .stack {
    grid-template-columns: 1fr;
  }

  section {
    padding-block: 60px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .wide-only {
    display: none;
  }

  .site-header nav {
    gap: 16px;
  }

  .categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .lede {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

/* SVG banners carry a 360px intrinsic width; stretch them to their box. */
.demo-banner img,
.category-tile img {
  width: 100%;
  height: auto;
}
