/* ==========================================================================
   Leftover — marketing site
   One stylesheet, no build step. Mobile first: every rule below is written
   for a 360px phone, and the two media queries widen it from there.
   ========================================================================== */

:root {
  /* The app's own palette, unchanged. */
  --navy: #0b162d;
  --navy-mid: #122648;
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --mint: #34d399;
  --paper: #f2f5fa;
  --ink: #111c2e;
  --muted: #5a6b84;
  --white: #fff;
  --line: #e3e9f2;

  /* Measured contrast against their grounds, all AA or better:
     ink/paper 15.6  ·  muted/paper 4.96  ·  blue/paper 4.73
     white/blue 5.17 ·  light-blue/navy 7.08  ·  mint/navy 9.36 */

  --radius: 16px;
  --radius-lg: 24px;
  --shell: 1120px;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* Smooth scroll is CSS, not JavaScript — and it turns itself off for anyone
   who has asked the system for less motion. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 8vw, 3.6rem);
}
h2 {
  font-size: clamp(1.7rem, 5.5vw, 2.5rem);
}
h3 {
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

/* <picture> is inline by default, so `margin: auto` on the image inside it
   would not centre anything. Making the wrapper a block is what lets the
   hero shot centre on a phone and sit in its grid column on a desktop. */
picture {
  display: block;
}

/* One visible focus ring for everything, so nothing is ever reachable by
   keyboard without showing where you are. */
:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ── header ─────────────────────────────────────────────────────────────── */

.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid rgb(255 255 255 / 0.28);
  color: var(--white);
  font: inherit;
  font-size: 0.95rem;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
}

.site-nav {
  display: none;
  width: 100%;
  padding-bottom: 14px;
}
.site-nav[data-open="true"] {
  display: block;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 10px 4px;
  border-radius: 8px;
}
.site-nav a:hover {
  color: var(--blue-light);
}

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(160deg, #0d1b33 0%, #1e4074 62%, #2f6fd0 100%);
  color: var(--white);
  padding-block: 56px 0;
  overflow: hidden;
}

.hero-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  margin-bottom: 22px;
}

.hero h1 {
  margin-bottom: 16px;
}
.hero .left {
  color: var(--mint);
}

.hero-sub {
  font-size: 1.1rem;
  color: #cfe0fb;
  max-width: 46ch;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
}
.btn:hover {
  background: #e8eefb;
}
.btn small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-note {
  margin-top: 14px;
  font-size: 0.92rem;
  color: #b6cdf3;
}

.hero-shot {
  margin: 40px auto 0;
  display: block;
  width: min(300px, 78%);
  border-radius: 22px 22px 0 0;
}

/* ── generic section rhythm ─────────────────────────────────────────────── */

section {
  padding-block: 64px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 10px;
}

.lede {
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.05rem;
}

/* ── three-up value cards ───────────────────────────────────────────────── */

.value-grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.card h3 {
  margin-bottom: 6px;
}
.card p {
  margin: 0;
  color: var(--muted);
}

/* ── screenshot gallery ─────────────────────────────────────────────────── */

.gallery {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.shots {
  display: grid;
  gap: 28px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.shots figure {
  margin: 0;
}
.shots img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--navy);
}
.shots figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ── feature grid ───────────────────────────────────────────────────────── */

.features {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.feature svg {
  color: var(--blue);
  margin-bottom: 12px;
}
.feature h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── privacy band ───────────────────────────────────────────────────────── */

.privacy-band {
  background: var(--navy-mid);
  color: var(--white);
}
.privacy-band h2 {
  max-width: 18ch;
}
.privacy-band p {
  color: #c6d7f2;
  max-width: 60ch;
}
.privacy-band a {
  color: var(--blue-light);
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

/* <details> rather than a script: it is keyboard operable, announced
   correctly, and works with JavaScript switched off. */
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 27px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transform-origin: center;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  top: 31px;
}
.faq details p {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 66ch;
}

/* ── footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  color: #b6cdf3;
  padding-block: 40px;
  font-size: 0.95rem;
}
.site-footer a {
  color: var(--white);
}
.site-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 16px;
  padding: 0;
}
.site-footer p {
  margin: 0;
}

/* ── the privacy policy page ────────────────────────────────────────────── */

.doc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  margin-block: 32px 64px;
}
.doc h2 {
  font-size: 1.4rem;
  margin-top: 32px;
}
.doc h2:first-of-type {
  margin-top: 8px;
}
.doc h3 {
  margin-top: 24px;
}
.doc ul {
  padding-left: 20px;
  color: var(--muted);
}
.doc li {
  margin-bottom: 8px;
}
.doc p {
  color: var(--muted);
}
.doc > p:first-child {
  color: var(--ink);
}

.page-head {
  background: var(--navy);
  color: var(--white);
  padding-block: 48px 40px;
}
.page-head p {
  color: #b6cdf3;
  margin: 0;
}

/* ── wider screens ──────────────────────────────────────────────────────── */

@media (min-width: 720px) {
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
  .shots {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  section {
    padding-block: 84px;
  }
  .doc {
    padding: 40px 44px;
  }
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    display: block;
    width: auto;
    margin-left: auto;
    padding-bottom: 0;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 26px;
  }
  .site-nav a {
    padding: 6px 2px;
  }

  .hero {
    padding-block: 88px 0;
  }
  .hero .shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: end;
    gap: 40px;
  }
  .hero-copy {
    padding-bottom: 88px;
  }
  .hero picture {
    justify-self: center;
  }
  .hero-shot {
    margin: 0;
    width: min(340px, 100%);
  }

  .shots {
    grid-template-columns: repeat(3, 1fr);
  }
}
