/* Qwitz landing page. Look borrowed from arvalo.be: Geist Serif, airbrushed sky hero, liquid glass header (main.js). */
@font-face {
  font-family: 'Geist Serif';
  src: url('fonts/GeistSerif-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
/* Poppins SemiBold (SIL OFL, fonts/OFL-Poppins.txt), basic Latin only: just for the "Qwitz" wordmark. */
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-SemiBold-subset.woff') format('woff');
  font-weight: 600; font-style: normal; font-display: swap;
}
/* Georgia scaled to Geist Serif's metrics, so text does not shift when the font arrives. */
@font-face {
  font-family: 'Geist Serif Fallback';
  src: local('Georgia');
  font-weight: 100 900; font-style: normal;
  size-adjust: 102.64%; ascent-override: 98.4%; descent-override: 28.3%; line-gap-override: 0%;
}

:root {
  --ink: #0b1a2c;
  --ink-2: #26384f;
  --muted: #56677f;
  --bg: #f3f8fc;
  --accent: #68b0e0;      /* from the logo */
  --accent-ink: #2f86c6;
  --shell: 1200px;
  --pad: clamp(18px, 4vw, 40px);
  --ease-s: cubic-bezier(.65, 0, .35, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: 'Geist Serif', 'Geist Serif Fallback', Georgia, serif;
  --glass-tint: .5;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); font-synthesis: none; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s var(--ease-s); }
.skip:focus { top: 12px; }

/* ——— Glass ——— frosted surface; the header becomes liquid glass in Chromium (main.js adds .lg-on). */
.glass {
  position: relative; isolation: isolate;
  background: rgba(255, 255, 255, .34);
  -webkit-backdrop-filter: blur(4px) saturate(1.6); backdrop-filter: blur(4px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 1px 2px rgba(11, 26, 44, .05), 0 18px 40px -18px rgba(20, 60, 110, .3);
}
.glass.lg-on { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, var(--glass-tint)); border-color: transparent; }
.glass > .lg-inner { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }
.glass > .lg-clone { display: none; }
/* Before main.js runs, the header already wears the liquid tint and blur, so only the edge refraction appears later. */
.topbar__inner.glass:not(.lg-on) { background: rgba(255, 255, 255, var(--glass-tint)); border-color: transparent; -webkit-backdrop-filter: blur(8px) saturate(1.4) brightness(1.05); backdrop-filter: blur(8px) saturate(1.4) brightness(1.05); }
.liquid-ok .topbar__inner.glass:not(.lg-on) { -webkit-backdrop-filter: blur(.8px) saturate(1.75); backdrop-filter: blur(.8px) saturate(1.75); }

/* ——— Buttons ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; border: 0; font: 400 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .3s var(--ease-s), color .3s var(--ease-s), box-shadow .3s var(--ease-s), transform .25s var(--ease-s); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--ink); color: #fff; }
/* Hover: the dark button turns to frosted glass (white tint, blurred backdrop, bright hairline). */
.btn--primary { box-shadow: inset 0 0 0 1px transparent; }
.btn--primary:hover { background: rgba(255, 255, 255, .42); color: var(--ink); -webkit-backdrop-filter: blur(10px) saturate(1.6); backdrop-filter: blur(10px) saturate(1.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 10px 28px -12px rgba(20, 60, 110, .4); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--store { min-height: 58px; padding: 0 26px 0 20px; gap: 10px; font: 500 21px/1 -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif; letter-spacing: -.01em; } /* Apple's badge typeface, not the page serif */
.btn--store span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.btn--store small { font-size: 11.5px; font-weight: 400; letter-spacing: 0; opacity: .85; margin-bottom: 2px; }

/* ——— Header ——— */
.topbar { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding: 0 12px; }
.topbar__inner { max-width: 1180px; margin: 0 auto; height: 62px; padding: 0 10px 0 14px; display: flex; align-items: center; gap: 18px; border-radius: 999px; }
.topbar__logo { display: inline-flex; align-items: center; gap: 11px; padding-left: 6px; text-decoration: none; font-size: 24px; letter-spacing: -.015em; }
.topbar__logo span { font: 600 22px/1 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; letter-spacing: -.02em; }
.topbar__logo img { width: 31px; height: 36px; filter: drop-shadow(0 1px 1.5px rgba(20, 60, 110, .28)) drop-shadow(0 4px 10px rgba(20, 60, 110, .18)); } /* white mark: the shadow keeps it readable on the light glass */
.topbar__nav { display: flex; gap: 4px; margin-left: auto; }
.topbar__nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 15px; transition: background-color .25s var(--ease-s); }
.topbar__nav a:hover { background: rgba(255, 255, 255, .8); color: var(--ink); }
.topbar__cta { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 640px) {
  .topbar__nav a[href="#how"] { display: none; }
}
@media (max-width: 420px) {
  .topbar__nav { display: none; }
  .topbar__cta { margin-left: auto; }
}

/* ——— Hero ——— sky painting behind the copy, fading into the page at the bottom. */
.hero {
  position: relative; isolation: isolate; color: #fff;
  min-height: max(100svh, 760px); padding: 150px 0 120px; display: flex; align-items: center;
  --hero-fade: linear-gradient(to bottom, #000 calc(100% - 260px), rgba(0, 0, 0, .7) calc(100% - 170px), rgba(0, 0, 0, .3) calc(100% - 80px), transparent);
}
.hero::before, .hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: var(--hero-fade); mask-image: var(--hero-fade); }
.hero::before { z-index: -2; background: url('assets/sky.jpg') center 30% / cover no-repeat, #5a8fc6; }
/* Film grain, as on arvalo.be. */
.hero::after {
  z-index: -1; opacity: .42; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.1' intercept='-0.55'/%3E%3CfeFuncG type='linear' slope='2.1' intercept='-0.55'/%3E%3CfeFuncB type='linear' slope='2.1' intercept='-0.55'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 200px 200px;
}
.hero__grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pill { display: inline-block; margin: 0 0 22px; padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--ink); }
.hero h1 { margin: 0 0 20px; font-size: clamp(48px, 7vw, 92px); line-height: 1; font-weight: 400; letter-spacing: -.03em; text-shadow: 0 2px 30px rgba(20, 60, 120, .18); }
/* "with friends.": deep navy against the white first line. */
.hero h1 em { font-style: normal; display: block; color: #102a4c; text-shadow: none; }
.hero__lead { margin: 0 0 32px; max-width: 30em; font-size: clamp(18px, 1.7vw, 22px); color: rgba(255, 255, 255, .94); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
/* One frosted panel, three columns split by hairlines (rows on phones). */
.hero__points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 660px; border-radius: 22px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.hero__points li { padding: 16px 18px; }
.hero__points li + li { border-left: 1px solid rgba(11, 26, 44, .09); }
.hero__points strong { display: block; font-weight: 400; font-size: 16px; color: var(--ink); margin-bottom: 4px; }

/* Illustration: a scanned receipt card and a balance chip, both frosted glass. */
.hero__visual { position: relative; padding: 0 0 54px 0; justify-self: center; width: min(400px, 100%); color: var(--ink); }
.receipt { border-radius: 28px; padding: 26px 26px 22px; transform: rotate(2deg); background: rgba(255, 255, 255, .55); }
.receipt__head { display: flex; flex-direction: column; margin-bottom: 18px; }
.receipt__title { font-size: 24px; letter-spacing: -.01em; }
.receipt__meta { font-size: 14px; color: var(--muted); }
.receipt__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.receipt__items li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px dashed rgba(11, 26, 44, .14); }
.receipt__items li span:last-child, .receipt__total span:last-child { font-variant-numeric: tabular-nums; }
.receipt__total { display: flex; justify-content: space-between; margin-top: 14px; font-size: 20px; }
.owe { position: absolute; left: -36px; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); transform: rotate(-2deg); white-space: nowrap; font-size: 15px; }
.owe__dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 15px; }
.owe strong { font-weight: 400; color: var(--accent-ink); }
.owe__chip { padding: 7px 13px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; }

/* ——— Support, privacy and terms pages ——— the sky as a band at the top, the text on a frosted card over it. */
.doc-hero { position: relative; isolation: isolate; padding: 116px 0 40px; }
.doc-hero::before { content: ''; position: absolute; inset: 0 0 auto; height: 520px; z-index: -1; background: url('assets/sky.jpg') center 35% / cover no-repeat, #5a8fc6; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.doc { max-width: 780px; margin: 0 auto; padding: clamp(26px, 5vw, 56px); border-radius: 28px; background: rgba(255, 255, 255, .78); color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }
.doc h1 { margin: 0 0 18px; color: var(--ink); font-size: clamp(36px, 5vw, 52px); line-height: 1.05; font-weight: 400; letter-spacing: -.025em; }
.doc h2 { margin: 2em 0 .5em; color: var(--ink); font-size: 25px; line-height: 1.2; font-weight: 400; letter-spacing: -.01em; }
.doc h3 { margin: 1.6em 0 .4em; color: var(--ink); font-size: 19px; font-weight: 400; }
.doc p, .doc ul, .doc ol { margin: 0 0 1em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.doc strong { font-weight: 400; color: var(--ink); }
.doc a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.doc th, .doc td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid rgba(11, 26, 44, .1); vertical-align: top; }
.doc th { color: var(--ink); font-weight: 400; }
.topbar__nav a[aria-current="page"] { background: rgba(255, 255, 255, .7); color: var(--ink); }

/* ——— Footer ——— */
.footer { padding: 28px 0 36px; color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer nav { display: flex; gap: 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ——— Smaller screens ——— */
@media (max-width: 960px) {
  .hero { padding-top: 120px; padding-bottom: 80px; min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 12px; width: min(360px, 88%); }
  .owe { left: -20px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 100px; padding-bottom: 56px; }
  .pill { margin-bottom: 18px; font-size: 13px; padding: 6px 12px; }
  .hero h1 { font-size: clamp(50px, 15.5vw, 76px); line-height: .98; letter-spacing: -.035em; margin-bottom: 18px; }
  .hero__lead { font-size: 19px; line-height: 1.5; margin-bottom: 26px; }
  .hero__actions { margin-bottom: 28px; }
  .btn--store { min-height: 56px; }
  .hero__points { grid-template-columns: 1fr; font-size: 14.5px; }
  .hero__points li { padding: 14px 18px; }
  .hero__points li + li { border-left: 0; border-top: 1px solid rgba(11, 26, 44, .09); }
  .hero__visual { width: min(340px, 86%); margin-top: 28px; padding-bottom: 50px; }
  .receipt { padding: 22px 22px 18px; }
  .receipt__title { font-size: 21px; }
  .receipt__items { font-size: 15px; }
  .footer__inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
