/* Lavender Browser site — lavender.ariamax.nl. No scripts anywhere (CSP script-src 'none').
   Bump the ?v= on the stylesheet link in every HTML file after each change (nginx caches css 7 days). */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-soft-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  /* A lavender field at dusk. */
  --mist: #f6f2fc;      /* page */
  --paper: #fffdff;     /* raised surfaces */
  --dusk: #dcd0f5;      /* soft fields, the hero "sun" */
  --lavender: #7c6baf;  /* the app's seed colour */
  --violet: #61539e;    /* links, buttons */
  --ink: #2a1b5e;       /* text */
  --ink-soft: #544a78;  /* secondary text */
  --stem: #5f7f5c;      /* the green of lavender stems: "allowed / on" marks */
  --line: #e4dbf5;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", "Segoe UI", system-ui, sans-serif;

  --measure: 36rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius-lg: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern";
}

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

a { color: var(--violet); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 560; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(72rem, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---- Header ------------------------------------------------------------------------------ */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.wordmark img { width: 38px; height: 38px; }
.top nav { display: flex; gap: clamp(0.9rem, 2.5vw, 1.8rem); font-weight: 700; font-size: 0.98rem; }
.top nav a { color: var(--ink-soft); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* ---- Buttons ----------------------------------------------------------------------------- */
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.4rem 0.8rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
}
.store:hover { background: var(--violet); color: #fff; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-weight: 600; font-size: 0.75rem; opacity: 0.8; }
.store[aria-disabled="true"] { background: var(--lavender); cursor: default; }

/* ---- Hero -------------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
}
.hero h1 { margin-bottom: 0.35em; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 32rem; color: var(--ink-soft); }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.8rem; }
.hero .facts { font-weight: 700; color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* The one bold element: the phone rising in front of a dusk "sun". */
.stage { position: relative; display: grid; place-items: center; padding-block: 1rem; }
.stage::before {
  content: "";
  position: absolute;
  width: min(34rem, 110%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #efe7ff 0%, var(--dusk) 58%, #cbbbef 100%);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: min(19rem, 78%);
  border-radius: 34px;
  padding: 9px;
  background: #1f1640;
  box-shadow: 0 30px 60px -20px rgba(42, 27, 94, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transform: rotate(-3deg);
}
.phone img { border-radius: 26px; width: 100%; }

/* ---- Sections ---------------------------------------------------------------------------- */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { max-width: var(--measure); margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.band { background: var(--paper); border-block: 1px solid var(--line); }

/* The four pillars (wellbeing, privacy, security, easy to use): text beside real screenshots,
   alternating sides. Equal themes, not steps, so nothing is numbered. */
.pillar-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.pillar-grid.flip .pillar-text { order: 2; }
/* Three screenshots need more room than the text beside them. */
.pillar-grid:has(.shots-3) { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); }
.pillar-text { max-width: 34rem; }
.pillar-text h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 0.15em; }
.pillar-lead { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); color: var(--lavender); margin-bottom: 1.4rem; }
.pillar-text ul:not(.promises) { padding-left: 1.2rem; margin: 0 0 1rem; }
.pillar-text ul:not(.promises) li { margin-bottom: 0.7rem; color: var(--ink-soft); }
.pillar-text li strong { color: var(--ink); }

.shots { display: grid; gap: 1.1rem; align-items: start; }
.shots-1 { grid-template-columns: minmax(0, 17rem); justify-content: center; }
.shots-2 { grid-template-columns: repeat(2, minmax(0, 15rem)); justify-content: center; }
.shots-2 .shot:last-child { margin-top: 2.5rem; }
.shots-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shots-3 .shot:nth-child(2) { margin-top: 2.5rem; }

.shot { border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(42, 27, 94, 0.5); border: 1px solid var(--line); background: var(--paper); }

/* Donations: a quiet statement, not a sales block. */
.support-us { text-align: center; }
.support-us h2 { margin-inline: auto; max-width: 22ch; }
.support-us p { max-width: 38rem; margin: 0 auto; color: var(--ink-soft); font-size: 1.1rem; }
.support-us strong { color: var(--ink); }

/* A real browser: a plain two-column list, no cards. */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); margin: 0; }
.features div { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.features dt { font-weight: 800; }
.features dd { margin: 0.2rem 0 0; color: var(--ink-soft); }

/* Privacy: plain statements with a stem-green tick. */
.promises { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.9rem; max-width: 40rem; }
.promises li { position: relative; padding-left: 2.1rem; font-size: 1.05rem; font-weight: 700; }
.promises li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--stem) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.honest { max-width: var(--measure); color: var(--ink-soft); }

/* FAQ with <details>: works without any script. */
.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); padding-block: 1rem; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--lavender); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.75rem 0 0; color: var(--ink-soft); max-width: var(--measure); }

.closing { text-align: center; }
.closing h2 { margin-inline: auto; max-width: 20ch; }
.closing .store { margin-top: 1rem; }

/* ---- Legal and help pages ---------------------------------------------------------------- */
.doc { max-width: 44rem; padding-block: 2rem 4rem; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.doc h2 { font-size: 1.5rem; margin-top: 2.2em; }
.doc .updated { color: var(--ink-soft); font-weight: 700; }
.doc .short { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.3rem; }
.doc .short p:last-child { margin: 0; }
.doc ul { padding-left: 1.3rem; }
.doc li { margin-bottom: 0.4rem; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin-bottom: 1em; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 800; }
.doc a { overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }

/* ---- Footer ------------------------------------------------------------------------------ */
.foot { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: 0.95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem 2rem; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; font-weight: 700; }
.foot nav a { color: var(--ink-soft); }
.foot .fine { width: 100%; color: var(--ink-soft); margin: 0; }

/* ---- Small screens ----------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .stage { order: -1; }
  .stage::before { width: min(26rem, 100%); }
  .phone { width: min(15rem, 62%); }
  .pillar-grid, .pillar-grid:has(.shots-3) { grid-template-columns: 1fr; }
  .pillar-grid.flip .pillar-text { order: 0; }
  .shots-3 { max-width: 30rem; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top { flex-wrap: wrap; }
  .top nav { width: 100%; justify-content: flex-start; }
  .shots-2 .shot:last-child, .shots-3 .shot:nth-child(2) { margin-top: 1.25rem; }
}

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