/*
 * forteva.app: gemensam stil för alla sidor.
 *
 * Samma mörkblå toning som App Store-bilderna och tidblompt.com/app.
 * Manrope ligger på sajten själv (OFL-licens, se fonts/OFL.txt), så ingen
 * besökare skickas vidare till Google. Inga kakor, inga externa resurser.
 */

@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url("fonts/Manrope_400Regular.ttf") format("truetype"); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url("fonts/Manrope_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url("fonts/Manrope_800ExtraBold.ttf") format("truetype"); }

:root {
  --bg-top: #02040b;
  --bg-mid: #04122e;
  --bg-bottom: #0a3285;
  --ink: #ffffff;
  --muted: #b9c3e0;
  --faint: #8b96b8;
  --accent: #4f6ef7;
  --accent-hover: #6680ff;
  --card: rgba(255, 255, 255, 0.06);
  --card-line: rgba(255, 255, 255, 0.12);
  --max: 1120px;
  --text-max: 720px;
  --radius: 18px;
  --gutter: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 40%, var(--bg-bottom) 100%) fixed;
  background-color: var(--bg-top);
  color: var(--ink);
  font: 400 17px/1.6 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

a { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ── Sidhuvud ─────────────────────────────────────────────────────────── */

.site-header { padding: max(16px, env(safe-area-inset-top)) 0 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 18px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .lang { padding: 4px 10px; border: 1px solid var(--card-line); border-radius: 999px; color: var(--ink); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* ── Knappar ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 14px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 17px; border: 0; cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-note { margin: 12px 0 0; color: var(--faint); font-size: 14px; }

/* ── Startsidan ───────────────────────────────────────────────────────── */

.hero { padding: 48px 0 32px; text-align: center; }
.hero h1 {
  margin: 0 auto 16px; max-width: 18ch; text-wrap: balance;
  font-size: clamp(36px, 8vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em;
}
.hero .lead { margin: 0 auto 28px; max-width: 34em; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); }

.gallery {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 24px; margin: 0 calc(-1 * var(--gutter));
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img {
  flex: 0 0 auto; width: min(62vw, 260px); scroll-snap-align: center;
  border-radius: 22px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
@media (min-width: 1000px) {
  .gallery { justify-content: center; overflow: visible; }
  .gallery img { width: calc((100% - 4 * 14px) / 5); }
}

section { padding: 48px 0; }
.section-title { text-wrap: balance; margin: 0 0 8px; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
.section-lead { margin: 0 0 28px; color: var(--muted); max-width: 40em; }

.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: 1fr 1fr 1fr; } }
.feature { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-line); }
.feature h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.about { display: grid; gap: 20px; align-items: center; grid-template-columns: 1fr; }
.about p { margin: 0 0 12px; color: var(--muted); }
.about p strong { color: var(--ink); }

.cta { text-align: center; padding: 56px 0 72px; }
.cta h2 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.cta p { margin: 0 0 24px; color: var(--muted); }

/* ── Textsidor: integritet, villkor, support ─────────────────────────── */

.doc { max-width: var(--text-max); margin: 0 auto; padding: 32px var(--gutter) 64px; }
.doc h1 { margin: 0 0 6px; font-size: clamp(30px, 5vw, 42px); line-height: 1.15; font-weight: 800; }
.doc .meta { margin: 0 0 32px; color: var(--faint); font-size: 15px; }
.doc h2 { margin: 36px 0 8px; font-size: 21px; font-weight: 800; }
.doc h3 { margin: 22px 0 6px; font-size: 17px; font-weight: 800; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; color: var(--muted); }
.doc li { margin: 0 0 6px; }
.doc strong { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--card-line); color: var(--muted); }
.doc th { color: var(--ink); font-weight: 800; }
.table-scroll { overflow-x: auto; margin: 0 0 18px; }
.table-scroll table { margin: 0; }
@media (max-width: 560px) {
  .doc table { font-size: 14px; }
  .doc th, .doc td { padding: 8px 8px 8px 0; hyphens: auto; -webkit-hyphens: auto; }
  .doc td:first-child, .doc th:first-child { hyphens: manual; -webkit-hyphens: manual; white-space: nowrap; }
}

.faq details { border-bottom: 1px solid var(--card-line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

.contact-card { padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-line); margin: 0 0 28px; }
.contact-card p { margin: 0 0 6px; }

/* ── Sidfot ───────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--card-line); padding: 28px 0 max(28px, env(safe-area-inset-bottom)); color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer p { margin: 0 0 4px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
