/* AtlasGo Junior — webbplats
 *
 * Samma designtokens som appen (AtlasDesign.swift), konverterade tillbaka till
 * de oklch-värden mockuparna utgick från. Ändras en färg i appen ska den ändras
 * här också.
 */

:root {
  color-scheme: light;

  /* Primär */
  --primary: #377ee3;
  --primary-deep: #2f67d5;
  --primary-light: #3d84ea;
  --primary-soft: #e6effe;

  /* Bläck */
  --ink-hero: #14243c;
  --ink: #202f42;
  --ink-strong: #39495d;
  --ink-secondary: #5e6a7a;
  --ink-tertiary: #798898;

  /* Ytor */
  --bg-top: #fafeff;
  --bg-bottom: #e9f5ff;
  --rail: #e1e9f2;
  --hairline: #d7dfe8;
  --surface-muted: #eef2f7;
  --shadow-tint: 54, 78, 109;

  /* Semantik */
  --correct-surface: #cbf9d3;
  --correct-ink: #004519;
  --correct-badge: #53be70;
  --gold: #dc932e;
  --gold-bar: #f0a646;
  --hint-surface: #f6eed8;
  --hint-ink: #754700;
  --purple: #9470cd;

  /* Kontinentpaletter */
  --europe-surface: #dbf5df;
  --europe-fill: #399d57;
  --europe-ink: #0f3620;
  --asia-surface: #ffe8d1;
  --asia-fill: #dd7b2b;
  --asia-ink: #562b05;
  --africa-surface: #feefcb;
  --africa-fill: #e3ae28;
  --africa-ink: #553600;
  --namerica-surface: #cff6f3;
  --namerica-fill: #00a9a2;
  --namerica-ink: #003737;
  --samerica-surface: #ffe7e3;
  --samerica-fill: #e3645e;
  --samerica-ink: #642724;
  --oceania-surface: #eee8ff;
  --oceania-fill: #8c74cc;
  --oceania-ink: #372a52;
  --mint-surface: #d6f6e5;
  --mint-fill: #38b17a;

  /* Form */
  --r-chip: 999px;
  --r-card: 18px;
  --r-card-lg: 21px;
  --r-panel: 25px;
  --r-hero: 32px;

  /* Skuggor — två lager, som i appen */
  --shadow-contact: 0 1px 2px rgba(var(--shadow-tint), 0.06);
  --shadow-lift: 0 1px 2px rgba(var(--shadow-tint), 0.06),
                 0 10px 24px -14px rgba(var(--shadow-tint), 0.22);
  --shadow-hero: 0 20px 40px -18px rgba(47, 103, 213, 0.55);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- Grund ---------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--primary-deep); }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r-chip);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; color: #fff; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Typografi ---------- */

.eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0 0 10px;
}

h1, h2, h3 { color: var(--ink-hero); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 800; letter-spacing: -0.034em; line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
h3 { font-size: 1.19rem; font-weight: 700; letter-spacing: -0.02em; }

p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 1.9vw, 1.32rem); color: var(--ink-secondary); }
.muted { color: var(--ink-secondary); }
.small { font-size: 0.9rem; }

/* ---------- Ytor ---------- */

.card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-lift);
  padding: 26px;
}
@supports not (backdrop-filter: blur(1px)) {
  .card { background: #fff; }
}

/* ---------- Sidhuvud ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 254, 255, 0.78);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 0.5px solid rgba(215, 223, 232, 0.7);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--primary-light), var(--primary-deep));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -8px rgba(47, 103, 213, 0.7);
  flex: none;
}
.brand-mark svg { width: 26px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.06rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.brand-sub {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--ink-tertiary);
}

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 9px 14px;
  border-radius: var(--r-chip);
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.site-nav a:hover { background: var(--primary-soft); color: var(--primary-deep); }
.site-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-deep); }

.lang-switch {
  display: flex; gap: 2px; padding: 3px;
  border-radius: var(--r-chip);
  background: rgba(121, 136, 152, 0.12);
  flex: none;
}
.lang-switch a {
  padding: 6px 11px;
  border-radius: var(--r-chip);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--ink-tertiary);
  text-decoration: none;
}
.lang-switch a[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-contact); }

@media (max-width: 720px) {
  .site-nav a { padding: 8px 10px; font-size: 0.85rem; }
  .brand-sub { display: none; }
}
@media (max-width: 520px) {
  .site-nav a.nav-hide-sm { display: none; }
}

/* ---------- Knappar ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 16px 30px;
  border: none;
  border-radius: var(--r-chip);
  font: inherit;
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), filter 0.18s var(--ease);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 28px -12px rgba(55, 126, 227, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 34px -12px rgba(55, 126, 227, 0.7); }
.btn-primary:active { transform: translateY(0) scale(0.985); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  border: 0.5px solid rgba(255, 255, 255, 0.9);
  color: var(--ink-strong);
  box-shadow: var(--shadow-lift);
}
.btn-ghost:hover { color: var(--ink-hero); transform: translateY(-2px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: default; transform: none; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 76px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px 8px 11px;
  border-radius: var(--r-chip);
  background: var(--correct-surface);
  color: var(--correct-ink);
  font-size: 0.83rem; font-weight: 800;
  margin-bottom: 22px;
}
.hero-badge svg { width: 15px; height: 15px; }

.hero h1 .accent {
  background: linear-gradient(120deg, var(--primary-light), var(--primary-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero .lead { margin: 22px 0 30px; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }

.hero-trust {
  margin-top: 30px;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 0.87rem; font-weight: 700; color: var(--ink-secondary);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--correct-badge); flex: none; }

/* Telefonmockup */
.phone {
  position: relative;
  width: min(340px, 100%);
  margin-inline: auto;
  aspect-ratio: 393 / 852;
  border-radius: 46px;
  background: linear-gradient(180deg, #fbfeff 0%, #eaf5ff 100%);
  box-shadow: 0 40px 90px -30px rgba(var(--shadow-tint), 0.42),
              0 2px 6px rgba(var(--shadow-tint), 0.08),
              inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  padding: 15px 15px 0;
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 12px 12px;
  font-size: 11px; font-weight: 800; color: var(--ink-strong);
}
.phone-status .dots { display: flex; gap: 3px; }
.phone-status .dots i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.mini-hero {
  position: relative;
  border-radius: var(--r-hero);
  background: linear-gradient(150deg, var(--primary-light), var(--primary-deep));
  padding: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  margin-bottom: 12px;
  min-height: 158px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.mini-hero svg.silhouette {
  position: absolute; inset: 8px 8px auto; height: 96px;
  opacity: 0.26; color: #fff;
}
.mini-hero .eyebrow { color: rgba(255, 255, 255, 0.85); position: relative; margin-bottom: 4px; }
.mini-hero strong { position: relative; color: #fff; font-size: 1.42rem; font-weight: 800; letter-spacing: -0.03em; }

.mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.mini-card {
  border-radius: var(--r-panel);
  padding: 14px;
  min-height: 108px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
}
.mini-card b { font-size: 0.94rem; font-weight: 800; line-height: 1.18; position: relative; }
.mini-card small { font-size: 0.72rem; font-weight: 700; opacity: 0.72; position: relative; }
.mini-card .pill {
  margin-top: auto; align-self: flex-start; position: relative;
  padding: 5px 11px; border-radius: var(--r-chip);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem; font-weight: 800;
}
.mini-card svg.silhouette { position: absolute; right: -14px; bottom: -10px; width: 92px; opacity: 0.5; }
.mini-card.mint { background: var(--mint-surface); color: #0e3d28; }
.mini-card.mint svg.silhouette { color: var(--mint-fill); }
.mini-card.sun { background: var(--africa-surface); color: var(--africa-ink); }
.mini-card.sun svg.silhouette { color: var(--africa-fill); }

.mini-streak {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 15px;
  border-radius: var(--r-panel);
  background: rgba(255, 255, 255, 0.78);
  border: 0.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lift);
}
.mini-streak .flame {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: linear-gradient(180deg, var(--gold-bar), var(--gold));
  display: grid; place-items: center; color: #fff;
}
.mini-streak .flame svg { width: 17px; height: 17px; }
.mini-streak b { font-size: 0.96rem; font-weight: 800; display: block; }
.mini-streak small { font-size: 0.74rem; color: var(--ink-tertiary); font-weight: 700; }

/* ---------- Sektioner ---------- */

section { padding: clamp(44px, 7vw, 88px) 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 46px); }
.section-head.center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature { position: relative; overflow: hidden; }
.feature .tile {
  width: 46px; height: 46px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 15px;
}
.feature .tile svg { width: 23px; height: 23px; }
.feature h3 { margin-bottom: 7px; }
.feature p { margin: 0; color: var(--ink-secondary); font-size: 0.96rem; }

.tile.eu { background: var(--europe-surface); color: var(--europe-ink); }
.tile.as { background: var(--asia-surface); color: var(--asia-ink); }
.tile.af { background: var(--africa-surface); color: var(--africa-ink); }
.tile.na { background: var(--namerica-surface); color: var(--namerica-ink); }
.tile.sa { background: var(--samerica-surface); color: var(--samerica-ink); }
.tile.oc { background: var(--oceania-surface); color: var(--oceania-ink); }
.tile.pr { background: var(--primary-soft); color: var(--primary-deep); }

/* Kontinentkort */
.continents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 860px) { .continents { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .continents { grid-template-columns: repeat(2, 1fr); } }

.continent {
  position: relative; overflow: hidden;
  border-radius: var(--r-panel);
  min-height: 116px;
  padding: 13px 15px;
  display: flex; align-items: flex-end;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.continent:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.continent svg.silhouette {
  position: absolute; left: 8px; right: 8px; top: 8px; height: 58px;
}
.continent span { position: relative; font-size: 0.97rem; font-weight: 800; letter-spacing: -0.02em; }

/* Statistikband */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { text-align: center; padding: 22px 12px; }
.stat b {
  display: block; font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800;
  color: var(--ink-hero); letter-spacing: -0.03em; line-height: 1;
}
.stat span {
  display: block; margin-top: 7px;
  font-size: 0.79rem; font-weight: 800; color: var(--ink-tertiary);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* Faktakort-exempel */
.fact-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .fact-demo { grid-template-columns: 1fr; } }
.fact {
  border-radius: var(--r-panel);
  padding: 22px;
  border: 0.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lift);
  background: rgba(255, 255, 255, 0.72);
}
.fact .flag { font-size: 2.1rem; line-height: 1; margin-bottom: 10px; }
.fact h3 { margin-bottom: 8px; }
.fact p { margin: 0 0 14px; color: var(--ink-secondary); font-size: 0.97rem; }
.fact .hint {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 13px 15px;
  border-radius: var(--r-card);
  background: var(--hint-surface);
  color: var(--hint-ink);
  font-size: 0.9rem; font-weight: 600;
}
.fact .hint svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* Repetitionslådor */
.boxes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.box {
  flex: 1 1 96px;
  border-radius: var(--r-card);
  padding: 14px 12px;
  text-align: center;
  background: var(--surface-muted);
  border: 1px solid var(--hairline);
}
.box b { display: block; font-size: 1.22rem; font-weight: 800; color: var(--primary-deep); }
.box span { font-size: 0.74rem; font-weight: 700; color: var(--ink-tertiary); }
.box:nth-child(1) { background: var(--correct-surface); border-color: transparent; }
.box:nth-child(1) b { color: var(--correct-ink); }

/* Väntelista */
.signup {
  border-radius: var(--r-hero);
  padding: clamp(30px, 5vw, 52px);
  background: linear-gradient(150deg, var(--primary-light), var(--primary-deep));
  color: #fff;
  box-shadow: var(--shadow-hero);
  position: relative;
  overflow: hidden;
}
.signup svg.silhouette {
  position: absolute; right: -40px; top: -20px; width: 340px; opacity: 0.14; color: #fff;
}
.signup h2 { color: #fff; position: relative; }
.signup p { color: rgba(255, 255, 255, 0.86); position: relative; max-width: 46ch; }
.signup form {
  position: relative;
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 24px;
  max-width: 520px;
}
.signup input[type="email"] {
  flex: 1 1 240px;
  padding: 16px 20px;
  border: none;
  border-radius: var(--r-chip);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-contact);
}
.signup input::placeholder { color: var(--ink-tertiary); }
.signup .btn-ghost { background: #fff; color: var(--primary-deep); }
.signup .note { position: relative; margin: 16px 0 0; font-size: 0.84rem; color: rgba(255, 255, 255, 0.8); }
.form-status {
  position: relative;
  margin: 14px 0 0;
  font-size: 0.92rem; font-weight: 700;
  color: #fff;
  min-height: 1.4em;
}

/* ---------- Juridiska sidor ---------- */

.legal { padding: clamp(36px, 6vw, 68px) 0 clamp(48px, 7vw, 88px); }
.legal-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin: 18px 0 34px;
  font-size: 0.87rem; font-weight: 700; color: var(--ink-tertiary);
}
.legal .card + .card { margin-top: 18px; }
.legal h2 { font-size: 1.42rem; margin-bottom: 12px; }
.legal h3 { margin: 22px 0 8px; font-size: 1.03rem; }
.legal ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--ink-secondary); }
.legal li { margin-bottom: 0.45em; }
.legal .card p:last-child, .legal .card ul:last-child { margin-bottom: 0; }

.callout {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--r-card-lg);
  background: var(--correct-surface);
  color: var(--correct-ink);
  font-weight: 600;
  margin-bottom: 26px;
}
.callout svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.callout p { margin: 0; }

.toc { position: sticky; top: 88px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: block; padding: 8px 12px; border-radius: 11px;
  font-size: 0.9rem; font-weight: 700; color: var(--ink-secondary); text-decoration: none;
}
.toc a::before { content: counter(toc) ". "; color: var(--ink-tertiary); }
.toc a:hover { background: var(--primary-soft); color: var(--primary-deep); }

.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: start; }
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 4px; }
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.data th, table.data td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
table.data th { font-weight: 800; color: var(--ink); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
table.data td { color: var(--ink-secondary); }
table.data tr:last-child td { border-bottom: none; }
.wrap-table { overflow-x: auto; }

/* ---------- Sidfot ---------- */

.site-footer {
  margin-top: clamp(30px, 5vw, 60px);
  border-top: 0.5px solid var(--hairline);
  background: rgba(255, 255, 255, 0.55);
  padding: 44px 0 34px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  margin: 0 0 12px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-tertiary);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { font-size: 0.93rem; font-weight: 600; color: var(--ink-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--primary-deep); text-decoration: underline; }
.footer-legal {
  margin-top: 32px; padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  font-size: 0.85rem; color: var(--ink-tertiary);
}

/* ---------- Rörelse vid inscroll ---------- */

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.shown {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.shown { opacity: 1; transform: none; transition: none; }
  .phone { animation: none; }
}

/* ==========================================================================
   AtlasGo 2026 — editorial explorer direction
   ========================================================================== */

:root {
  --primary: #ef6a3a;
  --primary-deep: #ce4d25;
  --primary-light: #ff8152;
  --primary-soft: #fff0e7;
  --ink-hero: #0b2a3a;
  --ink: #163847;
  --ink-strong: #254958;
  --ink-secondary: #59717b;
  --ink-tertiary: #7e9299;
  --bg-top: #fffdf5;
  --bg-bottom: #f5f2e8;
  --surface-muted: #f1eee3;
  --hairline: #dcd9ce;
  --correct-surface: #d8f4e3;
  --correct-ink: #135a39;
  --correct-badge: #2c9a65;
  --r-card: 18px;
  --r-card-lg: 24px;
  --r-panel: 28px;
  --r-hero: 36px;
  --shadow-lift: 0 2px 0 rgba(11,42,58,.04), 0 22px 60px -38px rgba(11,42,58,.36);
  --shadow-hero: 0 30px 80px -38px rgba(11,42,58,.58);
}

body {
  background: #f8f5eb;
  color: var(--ink);
}

.home {
  background:
    radial-gradient(circle at 8% 8%, rgba(253,203,91,.24), transparent 24rem),
    radial-gradient(circle at 92% 30%, rgba(52,174,158,.14), transparent 29rem),
    #f8f5eb;
}

.wrap { max-width: 1220px; padding-inline: clamp(20px, 4vw, 48px); }

h1, h2, h3 { font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif; }
h1 { font-size: clamp(3.25rem, 7.6vw, 6.8rem); line-height: .91; letter-spacing: -.07em; }
h2 { font-size: clamp(2.15rem, 4.5vw, 4rem); line-height: .98; letter-spacing: -.055em; }
h3 { letter-spacing: -.035em; }
.lead { line-height: 1.62; }
.eyebrow {
  color: var(--primary-deep);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .2em;
}

.site-header {
  top: 12px;
  width: calc(100% - 24px);
  max-width: 1196px;
  margin-inline: auto;
  border: 1px solid rgba(11,42,58,.08);
  border-radius: 20px;
  background: rgba(255,253,245,.88);
  box-shadow: 0 10px 40px -30px rgba(11,42,58,.45);
}
.site-header .wrap { min-height: 70px; padding-inline: 16px; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0b2a3a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.brand-mark svg { color: #ffd35b; }
.brand-name { color: var(--ink-hero); font-size: 1.12rem; letter-spacing: -.045em; }
.brand-sub { color: var(--primary-deep); }
.site-nav a { color: #49636e; font-size: .89rem; }
.site-nav a:hover { background: #fff1e8; color: #a63b1d; }
.site-nav .nav-contact {
  margin-left: 6px;
  padding-inline: 18px;
  background: #0b2a3a;
  color: #fff;
}
.site-nav .nav-contact:hover { background: #133e50; color: #fff; }
.lang-switch { background: #eae6da; }
.lang-switch a[aria-current="true"] { color: var(--ink-hero); }

.hero {
  padding: clamp(72px, 9vw, 128px) 0 clamp(70px, 8vw, 112px);
  overflow: hidden;
}
.hero::before {
  content: "58° N  ·  16° E  ·  EXPEDITION 001";
  position: absolute;
  top: 42px;
  right: max(20px, calc((100vw - 1210px) / 2));
  color: rgba(11,42,58,.38);
  font: 800 9px/1 ui-monospace, monospace;
  letter-spacing: .2em;
}
.hero::after {
  content: "";
  position: absolute;
  width: min(62vw, 760px);
  aspect-ratio: 1;
  right: -18vw;
  top: -12vw;
  border: 1px solid rgba(11,42,58,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(11,42,58,.025), 0 0 0 140px rgba(11,42,58,.018);
  pointer-events: none;
}
.hero-grid { grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 100px); position: relative; z-index: 1; }
.hero-badge {
  padding: 10px 16px;
  border: 1px solid rgba(19,90,57,.12);
  background: rgba(216,244,227,.76);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .69rem;
}
.hero h1 { max-width: 10.7ch; }
.hero h1 .accent {
  background: none;
  -webkit-text-fill-color: var(--primary);
  color: var(--primary);
  position: relative;
}
.hero .lead { max-width: 39ch; margin: 30px 0 32px; font-size: clamp(1.07rem, 1.75vw, 1.25rem); }
.btn { padding: 15px 24px; border-radius: 14px; font-size: .94rem; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 26px -15px rgba(206,77,37,.85), inset 0 -2px 0 rgba(112,31,12,.15);
}
.btn-ghost { background: transparent; border: 1px solid rgba(11,42,58,.18); box-shadow: none; color: var(--ink-hero); }
.hero-trust { margin-top: 26px; gap: 9px; }
.hero-trust span {
  padding: 8px 11px;
  border: 1px solid rgba(11,42,58,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  font-size: .76rem;
}

.phone {
  width: min(355px, 92%);
  border: 9px solid #0b2a3a;
  border-radius: 52px;
  background: linear-gradient(180deg, #fffefa, #edf7f5);
  box-shadow: 23px 27px 0 #ffd35b, 0 45px 100px -44px rgba(11,42,58,.78);
  transform: rotate(2.5deg);
  animation: explorer-float 7s ease-in-out infinite;
}
.phone::before {
  content: "";
  position: absolute;
  inset: -62px -74px auto auto;
  width: 116px;
  height: 116px;
  border: 2px dashed rgba(11,42,58,.2);
  border-radius: 50%;
  z-index: -1;
}
@keyframes explorer-float {
  0%, 100% { transform: rotate(2.5deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-10px); }
}
.mini-hero { background: linear-gradient(145deg, #164f65, #0b2a3a); box-shadow: 0 20px 38px -25px rgba(11,42,58,.7); }
.mini-card { border: 1px solid rgba(11,42,58,.06); }

section { padding: clamp(62px, 9vw, 126px) 0; }
section[id] { scroll-margin-top: 100px; }
.home section:nth-of-type(2) { position: relative; z-index: 2; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 58px); }
.section-head .lead { margin-top: 18px; }

.stats {
  padding: 14px;
  gap: 0;
  border: 1px solid rgba(11,42,58,.09);
  border-radius: 26px;
  background: #0b2a3a;
  box-shadow: var(--shadow-hero);
}
.stats .card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.stats .card + .card { border-left: 1px solid rgba(255,255,255,.12); }
.stat b { color: #fff; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.stat span { color: #b7ced5; font-size: .68rem; }

.card, .fact {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(11,42,58,.08);
  backdrop-filter: none;
  box-shadow: var(--shadow-lift);
}
.feature { padding: 30px; min-height: 242px; }
.feature::after {
  content: counter(feature-counter, decimal-leading-zero);
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(11,42,58,.22);
  font: 800 10px/1 ui-monospace, monospace;
  letter-spacing: .1em;
}
.grid-3 { counter-reset: feature-counter; }
.feature { counter-increment: feature-counter; }
.feature .tile { width: 52px; height: 52px; border-radius: 18px; margin-bottom: 28px; }
.feature h3 { font-size: 1.32rem; }
.feature p { line-height: 1.62; }

.continents { grid-template-columns: repeat(12, 1fr); gap: 14px; }
.continent { grid-column: span 3; min-height: 166px; padding: 18px; border: 1px solid rgba(11,42,58,.07); }
.continent:nth-child(1), .continent:nth-child(8) { grid-column: span 6; }
.continent svg.silhouette { height: 98px; top: 10px; transition: transform .35s var(--ease); }
.continent:hover svg.silhouette { transform: scale(1.06) rotate(-1deg); }
.continent span { font-size: 1.02rem; }

.fact-demo { gap: 24px; }
.fact { padding: clamp(26px, 4vw, 42px); }
.fact .flag { font-size: 3rem; }
.fact h3 { font-size: 1.5rem; }
.fact .hint { border-radius: 16px; }
.boxes .box { background: rgba(255,255,255,.65); }

#integritet .card, #privacy .card {
  background: #dff5e7 !important;
  border-color: rgba(19,90,57,.12);
  box-shadow: 20px 22px 0 #0b2a3a;
}
#integritet .eyebrow, #privacy .eyebrow { color: #1d714c; }
.privacy-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
.text-link { color: var(--ink-hero); font-weight: 850; text-decoration: none; }
.text-link span { color: var(--primary); padding-left: 3px; }
.text-link:hover { color: var(--primary-deep); }

.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr);
  gap: 0 64px;
  background: #ef6a3a;
  color: #fff;
  box-shadow: 20px 22px 0 #ffd35b;
}
.signup > :not(form):not(.form-status):not(.note) { grid-column: 1; }
.signup form { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
.signup .form-status, .signup .note { grid-column: 2; }
.signup .eyebrow { color: rgba(255,255,255,.8) !important; }
.signup .btn-ghost { border: 0; }

.site-footer {
  margin-top: 90px;
  border: 0;
  background: #0b2a3a;
  color: #fff;
  padding: 64px 0 38px;
}
.site-footer .brand-name, .site-footer strong { color: #fff; }
.site-footer .brand-sub { color: #ffd35b; }
.site-footer .muted, .site-footer h4, .footer-legal { color: #9fbdc8; }
.site-footer a { color: #d8e7eb; }
.site-footer a:hover { color: #fff; }
.footer-legal { border-color: rgba(255,255,255,.12); }

/* Legal and support pages are calm, readable companions to the playful home. */
.legal { padding-top: clamp(70px, 9vw, 112px); }
.legal > .wrap > h1 { max-width: 12ch; }
.legal-meta { margin-top: 24px; }
.callout { padding: 24px 26px; border: 1px solid rgba(19,90,57,.12); }
.legal-grid { grid-template-columns: 260px 1fr; gap: 46px; }
.legal .card { padding: clamp(24px, 4vw, 40px); }
.toc {
  padding: 18px;
  border: 1px solid rgba(11,42,58,.09);
  border-radius: 20px;
  background: rgba(255,255,255,.58);
}
.toc a:hover { background: var(--primary-soft); color: var(--primary-deep); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 11ch; }
  .phone { margin-top: 30px; }
  .continent, .continent:nth-child(1), .continent:nth-child(8) { grid-column: span 6; }
  .signup { grid-template-columns: 1fr; gap: 22px; }
  .signup > :not(form):not(.form-status):not(.note), .signup form, .signup .form-status, .signup .note { grid-column: 1; grid-row: auto; }
  .signup form { margin-top: 6px; }
}

@media (max-width: 720px) {
  .site-header { top: 6px; width: calc(100% - 12px); }
  .site-header .wrap { min-height: 62px; }
  .brand-mark { width: 38px; height: 38px; }
  .site-nav a { display: none; }
  .site-nav .nav-contact { display: inline-flex; }
  .lang-switch a { padding-inline: 8px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .card + .card { border-left: 0; }
  .stats .card:nth-child(even) { border-left: 1px solid rgba(255,255,255,.12); }
  .stats .card:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  #integritet .card { box-shadow: 11px 13px 0 #0b2a3a; }
  .signup { box-shadow: 11px 13px 0 #ffd35b; }
  .legal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero { padding-top: 70px; }
  .hero::before { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .phone { width: 88%; box-shadow: 13px 16px 0 #ffd35b, 0 35px 80px -44px rgba(11,42,58,.78); }
  .continent, .continent:nth-child(1), .continent:nth-child(8) { grid-column: span 12; }
  .continent { min-height: 145px; }
}
