/* Rvply site
 *
 * The tokens are the application's, so the marketing site and the product read
 * as one thing. Where a value differs from the app it is because this page is
 * read on a phone in daylight by somebody who has never heard of us, and the
 * app is read by somebody who signed in: contrast wins over fidelity, and the
 * two places that happens are marked.
 *
 * The variable names are the ones the previous palette used (--text, --border,
 * --on-accent) rather than the app's (--ink, --line, --onaccent). Renaming them
 * would have meant editing prijzen.html and the legal pages that build.mjs
 * generates, for no visible gain. New names are only added where the design
 * adds a concept, which is the deep green band.
 */

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --sunken: #F6F6F4;
  --border: #ECEBE8;
  --border-strong: #D8D6D1;
  --text: #141416;
  --muted: #63636B;
  /* Decoration only: dots, hairlines, the fake URL in the product shot.
     2.9:1 on --bg. Never text that has to be read; use --muted (5.9:1). */
  --subtle: #9A9AA3;

  --accent: #0A8F73;
  --accent-hover: #07775F;
  --accent-subtle: #DDF5EC;
  --on-accent: #FFFFFF;

  --positive: #12A36B;
  --caution: #C2610A;
  --caution-subtle: #FFF0DC;
  /* The app's #DB3A34 measures 3.9:1 on white, which is fine for a chip in a
     signed-in tool and not fine for a sentence on a public page. Darkened to
     4.9:1. The tint behind it is the app's, unchanged. */
  --negative: #B4302A;
  --negative-subtle: #FFE9E7;
  --star: #FFB020;

  /* The dark green panel. Always dark, in both themes, the same way the app's
     sidebar is: it is the spine the scroll hangs on, and a band that inverts
     with the theme stops being one. */
  --deep: #0B3B30;
  --deep-fg: #F1FBF6;
  --deep-muted: #8CC2B0;
  --deep-accent: #2ED3A5;

  /* The Google preview card imitates Maps, so it carries Google's palette. */
  --g-bg: #FFFFFF;
  --g-ink: #202124;
  --g-muted: #70757A;
  --g-block: #F1F3F4;
  --g-line: #E8EAED;
  --g-star: #FBBC04;

  --sh-card: 0 1px 2px rgba(22, 22, 22, .05);
  --sh-raised: 0 1px 2px rgba(22, 22, 22, .05), 0 8px 24px -14px rgba(22, 22, 22, .18);
  --sh-pop: 0 16px 48px -16px rgba(0, 0, 0, .28);
  --sh-mock: 0 30px 80px -30px rgba(0, 0, 0, .5);

  --maxw: 1120px;
  --gutter: clamp(20px, 4vw, 40px);

  --r-control: 11px;
  --r-card: 14px;
  --r-panel: 20px;
  --r-deep: 24px;

  --t-display: clamp(2.375rem, 1.1rem + 3.8vw, 4rem);
  --t-h2: clamp(1.875rem, 1.3rem + 1.7vw, 2.75rem);
  --t-h3: 1.375rem;
  --t-lede: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --t-body: 1rem;
  --t-small: .875rem;
  --t-micro: .8125rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1B1B1A;
    --sunken: #1F1F1E;
    --border: #2A2A29;
    --border-strong: #3B3B39;
    --text: #F4F3F0;
    --muted: #A4A29C;
    --subtle: #6F6E69;

    --accent: #2ED3A5;
    --accent-hover: #5CE0BA;
    --accent-subtle: #123B30;
    --on-accent: #0B1613;

    --positive: #3ED68F;
    --caution: #FFA53B;
    --caution-subtle: #332413;
    --negative: #FF7A72;
    --negative-subtle: #3A1B19;
    --star: #FFC233;

    /* One shade deeper than the light theme's, so the band still separates
       from a page that is already dark. */
    --deep: #0C1D18;

    --g-bg: #202124;
    --g-ink: #E8EAED;
    --g-muted: #9AA0A6;
    --g-block: #303134;
    --g-line: #3C4043;

    --sh-card: none;
    --sh-raised: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
    --sh-pop: 0 16px 48px -16px rgba(0, 0, 0, .7);
    --sh-mock: 0 30px 80px -30px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: light dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }
::selection { background: var(--accent-subtle); color: var(--text); }

/* ---------- type ---------- */

/* One family throughout, with the tracking tightening as the size grows. That
   ratio is the whole typographic idea: at 64px the default spacing reads as
   loose, at 15px the same negative tracking closes the counters. */
h1, h2, h3 { margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--t-display); line-height: 1.04; letter-spacing: -.04em; }
h2 { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -.035em; }
h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -.02em; margin-bottom: 8px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lede { font-size: var(--t-lede); color: var(--muted); max-width: 34em; line-height: 1.55; }
.small { font-size: var(--t-small); }
.micro { font-size: var(--t-micro); }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.tabular { font-variant-numeric: tabular-nums; }

.eyebrow {
  font-size: var(--t-small); text-transform: uppercase; letter-spacing: .1em;
  font-weight: 700; color: var(--accent); margin: 0 0 14px;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 99px; padding: 7px 14px;
  background: var(--accent-subtle); color: var(--accent);
  font-size: var(--t-small); font-weight: 600;
}

/* ---------- layout ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

section { padding: clamp(72px, 10vw, 128px) 0 0; position: relative; }
section:last-of-type { padding-bottom: clamp(72px, 10vw, 128px); }
.band-sunken { background: var(--sunken); }

.rule { height: 1px; background: var(--border); border: 0; margin: 0; }

.section-head { max-width: 40em; margin: 0 0 clamp(32px, 4vw, 56px); }
.section-head .lede { margin-top: 14px; }

/* Every grid is auto-fit with a min, so nothing needs a breakpoint: the
   columns become rows when the content stops fitting, which is the only moment
   that actually matters. */
.grid { display: grid; gap: 16px; }
.grid-wide { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-mid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.cols-split {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

/* An always-dark panel. */
.deep {
  background: var(--deep); color: var(--deep-fg);
  border-radius: var(--r-deep);
  padding: clamp(28px, 4vw, 48px);
  --text: var(--deep-fg); --muted: var(--deep-muted);
  --border: rgba(255, 255, 255, .12); --accent: var(--deep-accent);
}

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 24px;
  padding-top: 22px; padding-bottom: 22px;
}
.brand {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 2.125rem; font-weight: 700; letter-spacing: -.04em; line-height: 1;
  color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand svg { flex: 0 0 auto; }
.site-head nav { display: flex; gap: 6px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-head nav a:not(.btn) {
  color: var(--muted); font-size: .9375rem; font-weight: 500; text-decoration: none;
  padding: 8px 12px; border-radius: 9px;
}
.site-head nav a:not(.btn):hover { color: var(--text); background: var(--sunken); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 13px 22px;
  font-size: .96875rem; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .14s ease-out, border-color .14s ease-out, color .14s ease-out;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 10px 22px -12px var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 11px 18px; border-radius: var(--r-control); font-size: .9375rem; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */

.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { margin: 20px 0 0; max-width: 15ch; }
.hero .lede { margin-top: 20px; font-size: clamp(1.0625rem, 1rem + .5vw, 1.25rem); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.hero-cta .small { color: var(--muted); }

/* ---------- product mock ---------- */

.mock-frame { padding: clamp(20px, 3vw, 36px); }
.mock {
  background: #FFFFFF; color: #141416;
  border-radius: 16px; box-shadow: var(--sh-mock);
  padding: clamp(20px, 3vw, 32px);
  /* The card is a picture of the product in its light theme, so it keeps
     light values even when the page around it is dark. A screenshot that
     re-themes itself is not a screenshot. */
  --text: #141416; --muted: #63636B; --subtle: #9A9AA3;
  --border: #ECEBE8; --sunken: #F6F6F4; --accent: #0A8F73; --accent-subtle: #DDF5EC;
}
.mock-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.avatar {
  flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 99px; font-weight: 700;
}
.mock-panes {
  display: grid; gap: 20px 40px; margin-top: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.mock-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--muted); margin: 0 0 8px;
}
.mock-read { font-size: 1.0625rem; line-height: 1.5; margin: 0; max-width: 46ch; }
.mock-draft {
  margin-top: 22px; padding: 20px 22px; border-radius: 16px;
  background: var(--accent-subtle);
}
.mock-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
}
.stars { color: var(--star); letter-spacing: .05em; }
.stars .off { color: var(--border-strong); }

/* ---------- cards ---------- */

.card {
  border-radius: var(--r-panel); padding: 30px 28px 32px;
  background: var(--surface); border: 1px solid var(--border);
}
.card-sunken { background: var(--sunken); border-color: transparent; }
.card-accent { background: var(--accent-subtle); border-color: transparent; }
.card-deep {
  background: var(--deep); color: var(--deep-fg); border-color: transparent;
  --text: var(--deep-fg); --muted: var(--deep-muted); --accent: var(--deep-accent);
  --border: rgba(255, 255, 255, .12);
}
.card p { color: var(--muted); }
.card h3 { color: var(--text); }

.card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.numeral {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 99px;
  display: grid; place-items: center;
  background: var(--surface); color: var(--text);
  font-size: .9375rem; font-weight: 700;
}
.card-deep .numeral, .card-accent .numeral { background: rgba(255, 255, 255, .14); color: inherit; }
.tag {
  margin-left: auto; font-size: var(--t-small); font-weight: 600; color: var(--muted);
}
.mini {
  border-radius: var(--r-card); padding: 14px 16px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: var(--t-small); line-height: 1.5;
}
.card-deep .mini { background: rgba(255, 255, 255, .08); border-color: transparent; }

.glyph {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1rem; font-weight: 700; margin-bottom: 18px;
}
.glyph-accent { background: var(--accent-subtle); color: var(--accent); }
.glyph-gray { background: var(--sunken); color: var(--muted); }
.glyph-negative { background: var(--negative-subtle); color: var(--negative); }
.glyph-caution { background: var(--caution-subtle); color: var(--caution); }
.glyph-deep { background: var(--deep); color: var(--deep-accent); }

/* ---------- pricing ---------- */

.segmented {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--sunken); border-radius: 99px;
}
.segmented button {
  border: 0; background: transparent; cursor: pointer;
  border-radius: 99px; padding: 9px 18px;
  font: inherit; font-size: var(--t-small); font-weight: 600; color: var(--muted);
}
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--sh-card); }

.price {
  font-size: 2.75rem; font-weight: 700; letter-spacing: -.045em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.plan-list li { display: flex; gap: 10px; font-size: .9375rem; line-height: 1.5; }
.plan-list li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.card-deep .plan-list li::before { color: var(--deep-accent); }

/* ---------- never-list ---------- */

.never { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.never li {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255, 255, 255, .06); border-radius: var(--r-card); padding: 14px 16px;
  line-height: 1.5;
}
.never .badge {
  flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; border-radius: 99px;
  display: grid; place-items: center;
  border: 1px solid var(--deep-accent); color: var(--deep-accent);
  font-size: 12px; font-weight: 800;
}

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; gap: 16px; align-items: baseline; cursor: pointer;
  padding: 22px 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; color: var(--subtle);
  font-size: 1.25rem; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > p { margin: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* ---------- footer ---------- */

.site-foot {
  background: var(--deep); color: var(--deep-fg);
  padding: clamp(48px, 6vw, 72px) 0 40px; margin-top: clamp(72px, 10vw, 128px);
}
.site-foot a { color: var(--deep-fg); text-decoration: none; }
.site-foot a:hover { color: var(--deep-accent); }
.site-foot .brand { color: var(--deep-fg); font-size: 1.5rem; }
.foot-cols {
  display: grid; gap: 32px 40px; margin-top: 36px;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
}
.foot-cols h4 {
  margin: 0 0 14px; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--deep-accent);
}
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-cols li { font-size: .90625rem; }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--t-small); color: var(--deep-muted);
}

/* ---------- legal pages, generated by build.mjs ---------- */

.doc { max-width: 720px; }
.notice {
  background: var(--sunken); border-radius: var(--r-card);
  padding: 14px 18px; font-size: var(--t-small); color: var(--muted);
  margin: 0 0 2em;
}
.doc h2 { font-size: 1.5rem; margin-top: 2em; }
.doc h3 { font-size: 1.125rem; margin-top: 1.6em; }
.doc table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: var(--t-small); }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { font-weight: 700; color: var(--muted); }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc li { margin-bottom: .4em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
