/* Festumi coming-soon page. Self-hosted OFL fonts (Newsreader, Figtree) — no third-party requests. */
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbf7f3;
  --card: #fdfaf7;
  --line: #eadfd6;
  --ink: #14234b;
  --ink-2: #3a4466;
  --muted: #5a6482;
  --coral: #f0806f;
  --spark: #e2654f;
  --coral-soft: #fbe4de;
  --glow: rgba(240, 128, 111, 0.16);
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14234b;
    --card: #1a2b58;
    --line: #2a3a68;
    --ink: #fbf7f3;
    --ink-2: #e4e7ef;
    --muted: #b9c0d6;
    --coral-soft: rgba(240, 128, 111, 0.16);
    --glow: rgba(240, 128, 111, 0.22);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 9vh, 96px) 20px 48px;
  text-align: center;
  isolation: isolate;
}
.glow {
  position: absolute;
  inset: 0 -20% auto;
  height: 520px;
  z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}

.lockup { display: block; }
.lockup img { width: min(264px, 62vw); height: auto; display: inline-block; }

.eyebrow {
  margin: clamp(28px, 5vh, 44px) 0 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--spark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--coral); } }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

h1 {
  margin: 20px auto 0;
  max-width: 14em;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 em { font-style: italic; color: var(--spark); }
@media (prefers-color-scheme: dark) { h1 em { color: var(--coral); } }

.lead {
  margin: 22px auto 0;
  max-width: 34em;
  color: var(--ink-2);
  font-size: clamp(17px, 2.2vw, 19px);
  text-wrap: pretty;
}

.features {
  list-style: none;
  margin: 30px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.features li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 15px;
  font-weight: 500;
}

.promises {
  list-style: none;
  margin: clamp(40px, 7vh, 64px) 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.promises strong {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
}
.promises span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 620px) {
  .promises { grid-template-columns: 1fr; gap: 18px; text-align: center; }
}

.foot {
  padding: 24px 20px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.foot p { margin: 0; }

/* ---------- Waitlist form (launch campaign, Nov 2026) ----------
   No JavaScript is required to submit: a plain same-origin POST to /waitlist.
   One small inline script copies the ?k= source tag into a hidden field; it
   sets no cookie and contacts nothing. */
.signup {
  margin: clamp(30px, 5vh, 44px) auto 0;
  max-width: 30em;
  text-align: left;
}
.signup .row { display: flex; gap: 10px 12px; flex-wrap: wrap; align-items: start; }
.signup label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
/* EVERY control, selected by exclusion rather than by listing types. The previous rule named
   email/select/month: `month` had since become `date`, and `firstName` is a `text`, so two of the
   four controls fell back to browser defaults and the form rendered in four different styles.
   Excluding hidden and the honeypot keeps this safe when a field is added. */
.signup input:not([type="hidden"]):not([tabindex="-1"]),
.signup select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0; /* a flex item will not shrink below its intrinsic width without this */
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px; /* 16px stops iOS zooming on focus */
  line-height: 1.3;
}
/* Safari and iOS ignore the box model on date inputs until appearance is reset, which is what
   made the date field sit at a different height from the select beside it. */
.signup input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  /* Measured, not guessed: the select computes to 49px from the shared box model (26 padding +
     2 border + a 20.8px line box). A date input's shadow DOM is 2px taller than that, so pin it. */
  height: 49px;
}
.signup select {
  -webkit-appearance: none;
  appearance: none;
  /* room for the chevron drawn below */
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.signup input:focus-visible,
.signup select:focus-visible,
.signup button:focus-visible {
  outline: 2px solid var(--spark);
  outline-offset: 2px;
}
.signup .half { flex: 1 1 12em; min-width: 0; }
.signup .row > .field + .field { margin-top: 0; } /* the row owns the gap, not the field */
.signup .field + .field, .signup .row { margin-top: 14px; }
.signup button {
  margin-top: 16px;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.signup button:hover { background: var(--spark); }
.signup .fine {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.signup .fine a { color: inherit; }
/* Honeypot: hidden from people, visible to naive bots */
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-color-scheme: dark) {
  .signup button { background: var(--coral); color: #14234b; }
  .signup button:hover { background: #f6a564; }
}

.offer-line {
  margin: clamp(26px, 4vh, 38px) auto 0;
  max-width: 32em;
  padding: 16px 20px;
  border: 1px solid var(--coral);
  border-radius: 14px;
  background: var(--coral-soft);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}
@media (prefers-color-scheme: dark) {
  .offer-line { background: rgba(240, 128, 111, .14); color: var(--paper); }
}
/* Shown only when the waitlist function sends a refused sign-up back to /sv?error=1#signup-error */
.form-error { display: none; }
.form-error:target {
  display: block;
  margin: 20px auto 0;
  max-width: 32em;
  padding: 14px 18px;
  border: 2px solid var(--spark);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  scroll-margin-top: 20px;
}
.foot .lang { margin-bottom: 8px; }
.foot .lang a { color: var(--muted); }
.done { max-width: 34em; margin: 0 auto; }
.done .back { display: inline-block; margin-top: 26px; font-weight: 600; color: var(--ink); }

/* .glow is inset -20% on each side, so on a phone it pushed the document 75px
   wider than the viewport and the page scrolled sideways. Contain it. */
body { overflow-x: hidden; }

.signup .note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--coral);
  background: var(--card);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ── Legal pages (/privacy, /integritet) ───────────────────────────────────
   A layered privacy notice: the signup form carries the essentials and links
   here, where the controller is named in full. The CSP forbids inline styles,
   so every rule a legal page needs lives here. */
.prose {
  max-width: 34em;
  margin: clamp(24px, 4vh, 40px) auto 0;
  text-align: left;
}
.prose h1 {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.15;
  margin: 0 0 6px;
}
.prose .updated { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.prose h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px;
  color: var(--ink);
}
.prose p, .prose li { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.prose p { margin: 0 0 10px; }
.prose ul { margin: 0 0 10px; padding-left: 1.1em; }
.prose li { margin-bottom: 4px; }
.prose a { color: inherit; }
.prose .who {
  margin: 0 0 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.prose .who strong { display: block; margin-bottom: 2px; }
.prose .back { display: inline-block; margin-top: 28px; font-weight: 600; font-size: 15px; }
