/* Quote Nudge site. Colours match the app's logo and splash screen. */
@font-face {
  font-family: "Poppins";
  src: url("/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #FFF7EE;          /* cream */
  --surface: #FFFFFF;
  --text: #3A2A22;        /* dark brown */
  --muted: #7A6155;
  --accent: #E85D2C;      /* logo orange */
  --line: #EADBCD;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E1714;
    --surface: #2A211D;
    --text: #F2E6DC;
    --muted: #C2AEA2;
    --line: #3D302A;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3, .brand { font-family: "Poppins", system-ui, sans-serif; font-weight: 600; line-height: 1.25; }
a { color: var(--accent); }

/* Show only the chosen language. */
html[lang="en"] [data-lang="nl"],
html[lang="nl"] [data-lang="en"] { display: none !important; }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 18px; }
.logo { width: 30px; height: 30px; fill: var(--accent); }
nav { display: flex; align-items: center; gap: 14px; font-size: 15px; }
nav > a { color: var(--text); text-decoration: none; }
nav > a:hover { color: var(--accent); }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langs button {
  font: inherit; font-size: 13px; padding: 4px 10px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted);
}
html[lang="en"] [data-set-lang="en"],
html[lang="nl"] [data-set-lang="nl"] { background: var(--accent); color: #fff; }

/* Hero */
.hero { text-align: center; padding: 56px 16px 24px; max-width: 720px; margin: 0 auto; }
.hero-logo { width: 120px; height: 120px; fill: var(--accent); }
.hero h1 { font-size: clamp(36px, 8vw, 56px); margin: 12px 0 8px; }
.tagline { font-size: clamp(18px, 3.5vw, 22px); color: var(--muted); margin: 0 auto 24px; max-width: 34ch; }
.badge {
  display: inline-block; margin: 0; padding: 10px 18px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px;
}

/* Screenshots: a row you can swipe or scroll sideways */
.shots { padding: 24px 0 8px; }
.strip {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 16px 20px;
}
.strip img {
  flex: 0 0 auto; width: min(64vw, 240px); height: auto;
  border-radius: 18px; scroll-snap-align: center;
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.15);
}
/* Centred when it fits, scrollable from the first image when it doesn't
   (justify-content: center would cut off the start of an overflowing row). */
.strip > :first-child { margin-left: auto; }
.strip > :last-child { margin-right: auto; }

/* Text sections */
.text { max-width: 720px; margin: 0 auto; padding: 32px 16px; }
.text h2 { font-size: 28px; margin: 0 0 12px; }
.text h3 { font-size: 19px; margin: 28px 0 6px; }
.features { padding-left: 1.2em; }
.features li { margin: 6px 0; }
.note {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 8px; padding: 12px 14px;
}
.privacy { border-top: 1px solid var(--line); }
.meta { color: var(--muted); font-size: 15px; margin-top: 0; }

/* Keep section titles visible under the sticky bar when jumping to them */
section[id] { scroll-margin-top: 64px; }

footer { text-align: center; color: var(--muted); font-size: 14px; padding: 32px 16px 48px; border-top: 1px solid var(--line); }

@media (max-width: 480px) {
  .brand span { display: none; }   /* logo only, so the nav fits */
}
