/* Colours mirror frontend/lib/theme/tokens.dart so the site and the app read as one product. */
:root {
  --teal: #0d9488;
  --teal-dark: #0b7a70;
  --teal-soft: #e0f2f0;
  --ground: #f7f7f7;
  --surface: #ffffff;
  --rule: #e3e5e8;
  --ink: #111827;
  --ink-soft: #4b5563;
  --muted: #8a9099;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal-soft: #12302d;
    --ground: #0c1015;
    --surface: #151b22;
    --rule: #2a323c;
    --ink: #f3f4f6;
    --ink-soft: #c2c7cf;
    --muted: #8a9099;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 "Roboto Flex", system-ui, sans-serif;
}

a { color: var(--teal); }
h1, h2 { line-height: 1.15; font-weight: 750; letter-spacing: -0.02em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 20px; text-decoration: none; }
.nav-cta { font-weight: 600; text-decoration: none; }

.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding-block: 48px 72px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 20px; }
.eyebrow { font: 500 13px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); margin: 0 0 16px; }
.lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 32px; }

.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; }
.signup input { flex: 1 1 220px; padding: 14px 16px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; }
.signup input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.signup button { padding: 14px 22px; font: 600 16px "Roboto Flex", sans-serif; color: #fff; background: var(--teal); border: 0; border-radius: 10px; cursor: pointer; }
.signup button:hover { background: var(--teal-dark); }
.signup button:disabled { opacity: 0.6; cursor: wait; }
.form-note { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--muted); }

.phone { margin: 0; text-align: center; }
/* Screenshots are cropped below the status bar, so the frame starts at the app's own top margin. */
.phone img {
  display: block; margin: 0 auto; width: 100%; max-width: 300px; aspect-ratio: 864 / 1820;
  object-fit: cover; object-position: top;
  border: 7px solid #0c1015; border-radius: 34px; background: var(--ground);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 30px 60px -30px rgb(17 24 39 / 0.45), 0 12px 24px -16px rgb(13 148 136 / 0.35);
}
.hero .phone { position: relative; }
/* A soft teal glow behind the hero phone so it sits on the page rather than floating on grey. */
.hero .phone::before { content: ""; position: absolute; inset: 8% 10%; z-index: -1; background: radial-gradient(closest-side, rgb(13 148 136 / 0.28), transparent); filter: blur(24px); }
.phone figcaption { margin-top: 16px; font-weight: 600; color: var(--ink-soft); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-block: 24px 72px; }
.features article { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 28px; }
.features h2 { font-size: 21px; margin: 0 0 10px; }
.features p { margin: 0; color: var(--ink-soft); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 24px 72px; }
.gallery img { max-width: 250px; }
.gallery .phone:nth-child(2) { transform: translateY(-24px); }

.story { max-width: 680px; text-align: center; padding-block: 24px 88px; }
.story h2 { font-size: 30px; }
.story p { color: var(--ink-soft); font-size: 19px; }

.prose { max-width: 680px; padding-block: 32px 72px; }
.muted { color: var(--muted); }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 15px; }
.footer nav { display: flex; gap: 20px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 800px) {
  .hero, .features { grid-template-columns: 1fr; }
  .hero { padding-block: 24px 48px; }
  .hero .phone img { max-width: 240px; }
  /* Three full-height phones stacked is a lot of scrolling; swipe through them instead. */
  .gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .gallery .phone { scroll-snap-align: center; }
  .gallery .phone:nth-child(2) { transform: none; }
}
