/* Public pages of quiddy.nl, served by the backend (see backend/src/frontend.rs).
   Also styles the pages backend/src/web.rs renders (wachtwoord vergeten,
   nieuw wachtwoord): keep `body > header .brand`, `nav`, `main`, `footer`,
   `form.card`, `.hint` and `.msg` working. Design: canvas "Quiddy landingspagina". */

@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/poppins-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/poppins-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/poppins-latin-700-normal.woff2) format("woff2"); }

:root {
  --bg: #f6f9fe;
  --surface: #ffffff;
  --ink: #23262f;
  --body: #3a404d;
  --muted: #545b6b;
  --line: #e1e6ef;
  --blue: #0066ff;
  --link: #0055d4;
  --link-hover: #003e9c;
  --orange: #ff9500;
  --page: 1152px;
  --gutter: 24px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* Header and footer: full width, content aligned to the page column. */
body > header, body > footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-inline: max(var(--gutter), (100% - var(--page)) / 2);
}
body > header { padding-block: 24px 0; }
.brand {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font-size: 28px; font-weight: 600; letter-spacing: -0.5px; color: var(--ink); text-decoration: none;
}
.brand::before {
  content: ""; width: 44px; height: 44px; flex: none;
  background: url(/img/quiddy-icon.png) center / contain no-repeat;
}
.brand:hover { color: var(--ink); }
body > header nav, body > footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
body > header nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
}
body > header nav a:not(.btn)[aria-current="page"], body > header nav a:not(.btn):hover { color: var(--link); }
body > footer {
  margin-top: 0; padding-block: 32px 40px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
}
body > footer .brand { font-size: 17px; gap: 10px; }
body > footer .brand::before { width: 28px; height: 28px; }
body > footer a:not(.brand) { display: inline-flex; align-items: center; min-height: 44px; }
body > footer a[aria-current="page"] { font-weight: 600; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.footer-brand .small a { display: inline; min-height: 0; }
/* web.rs pages still have the old "a · b" footer without a nav. */
body > footer:not(:has(nav)) { display: block; }
@media (max-width: 420px) {
  .brand { font-size: 24px; gap: 10px; }
  .brand::before { width: 38px; height: 38px; }
  body > header .btn { padding: 0 16px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none;
}
.btn:hover { color: #fff; background: #0052cc; }

/* Default content page (legal pages, 404, web.rs pages). */
main { max-width: calc(920px + 2 * var(--gutter)); margin: 0 auto; padding: 48px var(--gutter) 88px; }
h1 { font-size: clamp(32px, 4.5vw, 44px); line-height: 1.15; font-weight: 700; letter-spacing: -1px; margin: 0 0 20px; }
h2 { font-size: 20px; line-height: 1.35; font-weight: 600; margin: 36px 0 8px; }
h3 { font-size: 17px; font-weight: 600; margin: 24px 0 6px; }
main p, main li { font-size: 16px; line-height: 1.7; color: var(--body); }
main p { margin: 0 0 14px; }
main ul, main ol { margin: 0 0 14px; padding-left: 22px; }
main:not(.landing) li + li { margin-top: 4px; }
.back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: 8px;
  font-size: 15px; font-weight: 500; text-decoration: none;
}
.back::before { content: "‹"; font-size: 24px; line-height: 1; margin-top: -3px; }
.lead { font-size: 18px; line-height: 1.65; color: var(--body); }
main > .lead { font-size: 18px; margin-bottom: 8px; }
.updated { margin: -12px 0 24px; font-size: 15px; color: var(--muted); }
.small { font-size: 14px; }
/* Legal text: full column width, no card. */
.doc > h2:first-child, .doc > p:first-child { margin-top: 28px; }
.doc h2 { scroll-margin-top: 24px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
td, th { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* Small forms (wachtwoord vergeten / nieuw wachtwoord, from web.rs). */
form.card { max-width: 440px; padding: 28px; border-radius: 24px; background: var(--surface); }
label { display: block; font-size: 15px; font-weight: 600; margin: 16px 0 6px; }
input[type=email], input[type=password] {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink);
  border: 1px solid #b9c2d3; border-radius: 12px; background: #fff;
}
input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
button {
  margin-top: 20px; width: 100%; min-height: 52px; padding: 12px; border: 0; border-radius: 999px;
  background: var(--blue); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
button:disabled { opacity: .6; cursor: default; }
.hint { font-size: 14px; color: var(--muted); }
.msg { margin-top: 16px; }
.msg.err { color: #c0261f; }
.msg.ok { color: #157347; }

/* ---------- Landing page ---------- */
main.landing { max-width: none; padding: 0; }
.wrap { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 56px 72px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); line-height: 1.08; letter-spacing: -1.5px; }
.hero h1 span { color: var(--blue); }
.hero .lead { margin: 0; font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 34ch; }
.notice {
  display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 18px; border-radius: 16px;
  background: #fff4db; color: #6b4a00; font-size: 15px; line-height: 1.5;
}
.notice svg { flex: none; margin-top: 2px; }
.notice strong { font-weight: 600; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.stores a { display: inline-flex; border-radius: 10px; }
.stores img { display: block; height: 56px; width: auto; }

.hero-visual { flex: 0 1 420px; min-width: 280px; position: relative; display: flex; justify-content: center; padding: 24px 0; }
.blob { position: absolute; top: 40px; left: -20px; width: calc(100% + 40px); height: auto; }
.phone {
  position: relative; margin: 0; padding: 10px; border-radius: 46px; background: #fff;
  box-shadow: 0 30px 60px rgba(35, 38, 47, .18);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 36px; }
.hero .phone { width: 300px; max-width: 100%; }

.band { background: var(--surface); }
.features { display: flex; flex-direction: column; gap: 48px; padding-block: 88px; }
.section-title { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; font-weight: 700; letter-spacing: -.8px; }
.feature-grid { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; list-style: none; }
.feature { flex: 1 1 250px; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 24px; background: var(--bg); }
.feature h3 { margin: 0; font-size: 21px; }
.feature p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.icon-blue { background: #ddebff; color: var(--blue); }
.icon-red { background: #fde3e1; color: #d12c25; }
.icon-teal { background: #d9f4f5; color: #13838b; }
.icon-yellow { background: #fff0cc; color: #946200; }
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; padding-top: 16px; }
.shots figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.shots .phone { width: 260px; max-width: 100%; padding: 9px; border-radius: 40px; box-shadow: 0 20px 48px rgba(35, 38, 47, .14); }
.shots .phone img { border-radius: 31px; }
.shots figcaption { font-size: 15px; font-weight: 500; color: var(--muted); }

.about { display: flex; flex-wrap: wrap; gap: 24px 48px; padding-block: 88px; }
.about > h2 { flex: 1 1 320px; min-width: 0; margin: 0; }
.about-body { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-body p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--muted); }
.stoplijn { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 20px; background: var(--surface); }
.stoplijn span { flex: 1 1 240px; }
.stoplijn a { font-weight: 600; font-size: 18px; text-decoration: none; }

.cta-wrap { padding: 0 var(--gutter) 88px; }
.cta {
  max-width: var(--page); margin: 0 auto; padding: 64px 32px; border-radius: 32px; background: var(--blue); color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
}
.cta img.logo { width: 64px; height: auto; }
.cta h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; font-weight: 700; letter-spacing: -.8px; }
.cta p { margin: 0; font-size: 18px; line-height: 1.6; max-width: 40ch; color: #fff; }
.cta .stores { justify-content: center; margin: 0; }
.cta .stores a:focus-visible { outline-color: #fff; }
