/* SverigeFokus umbrella landing — design pass (2026-08-19)
   Typography: Manrope (display) + Figtree (body/UI, the same face the
   Flutter apps bundle, so landing and app read as one brand).
   Ground system: ONE background family. Page sits on --bg; a single
   tinted band (--surface-alt) marks the SFI section. No hue jumps. */
:root {
  --blue: #005293;
  --blue-dark: #003a69;
  --blue-deep: #04264a;
  --yellow: #fecb00;
  --ink: #0e2038;
  --muted: #4f6076;
  --faint: #64748b;
  --bg: #f7f9fc;
  --surface-alt: #eef4fa;
  --card: #ffffff;
  --line: #e3eaf3;
  --green: #14804a;
  --radius: 20px;
  /* Shadows are tinted with the deep brand blue, not black, and all fall
     from the same direction (straight down) so the page reads as one
     light source. */
  --shadow-sm: 0 2px 10px #04264a0f;
  --shadow-md: 0 12px 32px #04264a1a;
  --shadow-lg: 0 24px 64px #04264a26;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: "Manrope", "Figtree", sans-serif;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: var(--blue); text-decoration: none; }

/* Visible keyboard focus everywhere. outline rather than box-shadow, so a
   focused card keeps its own elevation instead of having it overwritten;
   outline also follows each element's border-radius on its own. */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.footer :focus-visible,
.blog-inner :focus-visible,
.store-badge:focus-visible { outline-color: var(--yellow); }

.skip-link {
  position: fixed; top: -70px; left: 14px; z-index: 60;
  background: var(--blue); color: #fff; font-weight: 700;
  padding: 11px 20px; border-radius: 0 0 12px 12px;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ── Topbar (glass) ── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px;
  background: #ffffffd9;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--blue-dark); font-size: 1.12rem; font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: -0.02em; }
/* Drawn in CSS rather than the 🇸🇪 emoji: Windows ships no flag glyphs, so
   the emoji renders as the letters "SE" on most desktop Chrome installs. */
.flag {
  width: 26px; height: 17px; border-radius: 3px; display: inline-block; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  background:
    linear-gradient(to bottom, transparent 40%, var(--yellow) 40%, var(--yellow) 60%, transparent 60%),
    linear-gradient(to right, transparent 31%, var(--yellow) 31%, var(--yellow) 44%, transparent 44%),
    var(--blue);
}
.topnav { display: flex; gap: 24px; margin-left: auto; }
.topnav a { color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .15s; }
.topnav a:hover { color: var(--blue-dark); }
.topnav a[aria-current="page"] { color: var(--blue-deep); }

.lang-toggle { display: flex; gap: 4px; background: var(--surface-alt); border-radius: 999px; padding: 3px; }
.lang-toggle button {
  background: transparent; color: var(--muted); border: none;
  padding: 5px 13px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: .85rem;
  transition: background .15s ease, color .15s ease;
}
.lang-toggle button:hover { color: var(--blue-dark); }
.lang-toggle button.active { background: var(--blue); color: #fff; }

/* Mobile nav trigger — hidden until the links no longer fit. */
.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--blue-deep); cursor: pointer;
  place-items: center; transition: background .15s ease;
}
.nav-toggle:hover { background: var(--surface-alt); }
.nav-toggle .ico-close, body[data-nav="open"] .nav-toggle .ico-open { display: none; }
body[data-nav="open"] .nav-toggle .ico-close { display: block; }

/* ── Hero ── */
.hero { position: relative; text-align: center; padding: 92px 24px 76px; overflow: hidden; }
/* Two tints only, both from the flag (blue + yellow). The old third green
   wash pulled the hero toward a fourth hue for no reason. */
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(680px 380px at 10% -4%, #bcd9f28c, transparent 68%),
    radial-gradient(760px 420px at 92% 6%, #fdeea68c, transparent 70%),
    linear-gradient(180deg, #e9f2fb, var(--bg) 72%);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .9rem; color: var(--blue-dark);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 18px 6px 8px; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-eyebrow .flag { width: 22px; height: 14px; }
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.15rem); font-weight: 800; color: var(--blue-deep);
  line-height: 1.04; letter-spacing: -0.035em;
}
.hero .sub { font-size: 1.22rem; color: var(--muted); margin: 20px auto 46px; max-width: 34em; }

/* Deliberately NOT two identical boxes: Bli Svensk is the flagship and
   carries the price, SFI Prov is the free entry point. Different widths
   and different meta lines, so the pair reads as a choice rather than as
   a generic feature row. */
.hero-cards {
  display: grid; gap: 22px; justify-content: center; align-items: stretch;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  max-width: 760px; margin: 0 auto;
}
.hero-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px 22px; text-align: left; color: var(--ink);
  box-shadow: var(--shadow-md);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hero-card:active { transform: translateY(-1px); }
.hero-card.is-primary { background: linear-gradient(165deg, #fffdf4, #fdf6dd); border-color: #f0e2ab; }
.hero-card.is-free { background: linear-gradient(165deg, #f6fdf9, #e4f7ec); border-color: #c8e9d6; }
.hero-card h3 { margin: 12px 0 6px; color: var(--blue-deep); font-size: 1.42rem; font-weight: 800; }
.hero-card p { color: var(--muted); font-size: .95rem; }
/* Pinned to the bottom so both cards' meta rows line up regardless of how
   long the description wraps. */
.card-meta {
  margin-top: auto; padding-top: 16px; padding-right: 30px;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: .88rem; font-weight: 600; color: var(--blue-deep);
  font-variant-numeric: tabular-nums;
}
.card-meta s { color: var(--faint); font-weight: 500; }
.card-arrow {
  position: absolute; right: 22px; bottom: 20px; font-size: 1.15rem; color: var(--blue);
  transition: transform .18s ease;
}
.hero-card:hover .card-arrow { transform: translateX(4px); }
.tag { align-self: flex-start; font-size: .72rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: .02em; }
.tag.premium { background: #fff3c4; color: #6f5200; }
.tag.free { background: #d9f2e0; color: #106b3e; }

/* ── Product sections ── */
/* One ground family. Bli Svensk sits on the page background with a single
   faint blue tint; SFI Prov gets the one tinted band on the page. */
.product {
  display: flex; gap: 72px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 96px 24px;
}
#blisvensk {
  background: radial-gradient(680px 360px at 82% 12%, #dceafa66, transparent 70%), var(--bg);
}
#sfiprov {
  background: radial-gradient(680px 360px at 18% 12%, #d8f0e266, transparent 70%), var(--surface-alt);
  border-block: 1px solid var(--line);
}
.product > * { max-width: 1120px; }
.product.alt { flex-direction: row-reverse; }
.product-copy { max-width: 500px; }
.kicker {
  display: inline-block; letter-spacing: .07em; text-transform: uppercase;
  font-size: .74rem; font-weight: 800; color: var(--blue);
  background: #e3eefb; border-radius: 999px; padding: 5px 14px;
}
.kicker.green { color: #106b3e; background: #ddf1e6; }
.product-copy h2 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; color: var(--blue-deep); margin: 14px 0 12px; letter-spacing: -0.03em; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 46em; }

.chips { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.chips li {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 13px;
  padding: 11px 14px; box-shadow: var(--shadow-sm); font-weight: 500; font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.chips li:hover { transform: translateX(3px); box-shadow: var(--shadow-md); }
/* One icon set, one stroke weight (1.7), one size. The page previously
   mixed text glyphs (▶ ? ⏱) with colour emoji (🖼 📊 📖 🎮 📝), which the
   OS renders in five different styles side by side. */
.chip-ico {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
}
.chip-ico svg { width: 19px; height: 19px; }
.i-video { background: #efe5fb; color: #5b269e; }
.i-q     { background: #e3eefb; color: var(--blue); }
.i-timer { background: #fdeaea; color: #a41f18; }
.i-img   { background: #e6f5f0; color: #0b6a53; }
.i-chart { background: #fdf1c8; color: #6f5200; }
.i-book  { background: #e3eefb; color: var(--blue); }
.i-ai    { background: #efe5fb; color: #5b269e; }
.i-game  { background: #fdeaea; color: #a41f18; }
.i-doc   { background: #e6f5f0; color: #0b6a53; }

.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 22px; font-variant-numeric: tabular-nums; }
.price-now { font-family: "Manrope", sans-serif; font-size: 2.15rem; font-weight: 800; color: var(--blue-deep); letter-spacing: -0.03em; }
.price-now.free { color: #106b3e; }
.price s { color: var(--faint); font-size: 1.1rem; }
.price-note { color: var(--muted); font-size: .92rem; width: 100%; }

.store-launch-note {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 0 10px; color: #106b3e; font-size: .78rem;
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.store-launch-note::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 4px #dff5ed;
}

/* CTAs + store badges */
.ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #0d1117; color: #fff; border-radius: 12px; padding: 8px 18px 8px 14px;
  line-height: 1.15; transition: transform .15s ease, background .15s ease;
}
.store-badge:hover { transform: translateY(-2px); background: #1b232e; }
.store-badge:active { transform: translateY(0); }
.store-badge small { display: block; font-size: .66rem; font-weight: 500; opacity: .85; }
.store-badge b { font-size: 1.02rem; font-weight: 700; letter-spacing: .01em; }
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--blue); color: #fff; padding: 10px 22px; border-radius: 12px;
  font-weight: 700; box-shadow: 0 6px 18px #00529340;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  display: inline-flex; align-items: center;
  background: #fff; color: var(--blue-dark); border: 1.5px solid var(--blue);
  padding: 10px 22px; border-radius: 12px; font-weight: 700;
  transition: background .15s ease, transform .15s ease;
}
.btn-secondary:hover { background: #e3eefb; transform: translateY(-2px); }
.btn-secondary:active { transform: translateY(0); }
/* Tertiary text link — so a secondary destination does not have to become
   a second identical ghost button competing with the first. */
.btn-text {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; font-weight: 600; font-size: .95rem;
  border-bottom: 1px solid #ffffff59; padding-bottom: 2px;
  transition: border-color .15s ease;
}
.btn-text:hover { border-bottom-color: #fff; }

/* ── Phone mockups ── */
.product-media { position: relative; }
.phone-glow {
  position: absolute; inset: -12% -18%; z-index: -1; filter: blur(48px); opacity: .5;
  background: radial-gradient(closest-side, #7db4e666, transparent);
}
.phone-glow.green { background: radial-gradient(closest-side, #7ed9a866, transparent); }
.phone {
  position: relative; width: 290px; aspect-ratio: 9 / 19;
  background: #0b0d12; border-radius: 40px; padding: 10px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a2f3a;
}
.phone-notch {
  position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 20px; background: #0b0d12; border-radius: 999px; z-index: 3;
}
.phone img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 30px; background: #0b1e33; display: block;
}

/* Mini in-app screen mock: 16:9 video top, description, quiz button bottom */
.app-screen {
  display: flex; flex-direction: column; height: 100%;
  background: #f4f7fb; border-radius: 30px; overflow: hidden;
}
.app-topbar {
  background: var(--blue); color: #fff; font-weight: 700; font-size: .85rem;
  padding: 30px 14px 10px; display: flex; align-items: center; gap: 8px;
}
.flag.tiny { width: 18px; height: 12px; box-shadow: 0 0 0 1px #ffffff5c; }
/* Branded ground rather than #000: the teaser has no poster frame, so
   before playback this is what visitors actually see. */
.video-wrap {
  position: relative; aspect-ratio: 16 / 9; flex-shrink: 0;
  background: linear-gradient(150deg, var(--blue-deep), var(--blue));
}
.video-wrap video { width: 100%; height: 100%; object-fit: contain; display: block; }
.app-body { padding: 16px 15px 0; flex: 1; }
.app-body h4 { color: var(--blue-deep); font-size: .98rem; margin-bottom: 6px; }
.app-body p { font-size: .8rem; color: var(--muted); line-height: 1.55; }
.app-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 7px; }
.app-list li {
  display: flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 600; color: var(--muted);
  background: #fff; border: 1px solid #e6ecf5; border-radius: 10px; padding: 8px 10px;
}
.app-list li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: #dbe4ef;
}
.app-list li.done { color: var(--blue-deep); }
.app-list li.done::before {
  background: #d8efe2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23106b3e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6'/%3E%3C/svg%3E") center/12px no-repeat;
}
.app-list li.now { color: var(--blue-deep); border-color: #bfd8f0; background: #f2f8fe; }
.app-list li.now::before {
  background: #d7e8f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23005293'%3E%3Cpath d='M6 4.4l5 3.6-5 3.6z'/%3E%3C/svg%3E") center/11px no-repeat;
}
.quiz-btn {
  margin: 0 15px 20px; padding: 13px; border: none; border-radius: 13px;
  background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .9rem;
  font-family: inherit; cursor: default; box-shadow: 0 4px 14px #7a5b0033;
}
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%; border: none; cursor: pointer;
  background: #ffffffe6; color: var(--blue-dark);
  box-shadow: 0 8px 24px #00000066;
  transition: transform .15s ease;
}
.play-btn:hover { transform: scale(1.08); }
.play-btn:active { transform: scale(1); }
.play-btn.hidden { display: none; }
.shots { display: flex; }
.phone.small { width: 226px; }
.phone.small.back { margin-left: -64px; transform: rotate(6deg) translateY(26px); opacity: .95; }

/* ── Test band ── */
.test-band { padding: 4px 24px 40px; }
.test-inner {
  max-width: 980px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--card); border: 1.5px solid var(--line); border-left: 6px solid var(--yellow);
  border-radius: var(--radius); padding: 26px 32px; box-shadow: var(--shadow-sm);
}
.test-inner h3 { font-size: 1.28rem; font-weight: 800; margin-bottom: 4px; }
.test-inner p { color: var(--muted); font-size: .95rem; max-width: 560px; }
.btn-test {
  display: inline-flex; align-items: center; white-space: nowrap;
  background: var(--yellow); color: var(--blue-deep);
  padding: 12px 26px; border-radius: 12px; font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-test:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-test:active { transform: translateY(0); }

/* ── Blog strip ── */
.blog-strip { padding: 56px 24px 40px; }
.blog-inner {
  max-width: 980px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px 28px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: #fff; border-radius: var(--radius); padding: 30px 36px; box-shadow: var(--shadow-md);
}
.blog-inner h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 4px; }
.blog-inner p { color: #cfe0f2; font-size: .95rem; max-width: 520px; }
.blog-copy { flex: 1 1 360px; }
.blog-actions {
  flex: 0 0 auto; margin-left: auto;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.blog-inner .btn-secondary { border-color: #fff; color: #fff; background: transparent; }
.blog-inner .btn-secondary:hover { background: #ffffff22; }

/* ── Trust + footer ── */
.trust { text-align: center; padding: 48px 24px; background: var(--bg); border-top: 1px solid var(--line); }
.trust-note {
  display: inline-flex; align-items: flex-start; gap: 10px; text-align: left;
  max-width: 720px; margin: 0 auto 10px; font-size: .95rem;
}
.trust-note svg { flex-shrink: 0; width: 20px; height: 20px; color: #a4700a; margin-top: 2px; }
.trust p { max-width: 720px; margin: 0 auto 8px; font-size: .95rem; }
.muted { color: var(--muted); font-size: .9rem; }
.footer { text-align: center; padding: 44px 24px 52px; background: var(--blue-deep); }
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px; color: #fff;
  font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px;
}
.footer nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.footer nav a { color: #b9cde2; font-weight: 600; font-size: .92rem; transition: color .15s; }
.footer nav a:hover { color: #fff; }
.footer .muted { color: #93aac4; }
.socials { display: flex; gap: 14px; justify-content: center; margin-bottom: 16px; }
.socials a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: #ffffff14; color: #b9cde2; transition: background .15s, color .15s, transform .15s;
}
.socials a:hover { background: var(--yellow); color: var(--blue-deep); transform: translateY(-2px); }

/* ── 404 ── */
/* dvh, not vh: iOS Safari's collapsing toolbar makes 100vh overshoot. */
.page-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.page-shell main { flex: 1 0 auto; }
.notfound { text-align: center; padding: 110px 24px 130px; }
.notfound .code {
  font-family: "Manrope", sans-serif; font-size: clamp(3.4rem, 12vw, 6rem); font-weight: 800;
  color: var(--blue); letter-spacing: -0.05em; line-height: 1; margin-bottom: 6px;
}
.notfound h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--blue-deep); font-weight: 800; }
.notfound p { color: var(--muted); max-width: 40em; margin: 14px auto 30px; }
.notfound .ctas { justify-content: center; }

.only-desktop { display: inline; }

/* Nav collapses before the links crowd the brand, not at phone width. */
@media (max-width: 880px) {
  .nav-toggle { display: grid; }
  .topnav {
    position: absolute; top: 100%; left: 0; right: 0; margin-left: 0;
    display: none; flex-direction: column; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: 10px;
  }
  body[data-nav="open"] .topnav { display: flex; }
  .topnav a { padding: 13px 14px; border-radius: 11px; font-size: 1rem; color: var(--blue-deep); }
  .topnav a:hover { background: var(--surface-alt); }
  .topbar { gap: 14px; }
  .lang-toggle { order: 3; }
}

@media (max-width: 720px) {
  .hero { padding: 62px 20px 56px; }
  .hero-cards { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .product { padding: 60px 20px; gap: 44px; }
  .product.alt { flex-direction: column; }
  .product > * { max-width: 100%; min-width: 0; }
  .product-media { max-width: 100%; }
  .phone { width: min(290px, 78vw); }
  .phone.small { width: min(168px, 42vw); }
  .phone.small.back { margin-left: min(-40px, -11vw); }
  .phone-glow { inset: -8% -6%; }
  .only-desktop { display: none; }
  .blog-strip { padding: 44px 20px 36px; }
  .blog-inner { padding: 26px 24px; }
  .blog-actions { margin-left: 0; }
  .test-inner { padding: 22px 24px; }
}
