/* =========================================================================
   Utkik — shared styles
   Dark, frosted-glass, calm radar accent. No tracking, no frameworks.
   ========================================================================= */

:root {
  /* surface */
  --bg:        #07080a;
  --bg-soft:   #0d0f12;
  --ink:       #f2f4f6;
  --ink-soft:  #aab2b9;
  --ink-dim:   #6c747c;
  --line:      rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);

  /* glass */
  --glass:      rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);

  /* radar accent (used sparingly), pastel */
  --radar:     #aedda6;
  --radar-dim: #7fa978;

  /* category colours, pastel accents only */
  --c-flight: #ecd49a;  /* flyg, gul */
  --c-ship:   #a4dccf;  /* fartyg, teal */
  --c-heli:   #aec8f0;  /* heli, blaa */
  --c-glider: #b4ddac;  /* segel, groen */
  --c-drone:  #cdb8ea;  /* droenare, lila */
  --c-jet:    #e6d2a2;  /* privatjet, guld */

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);

  --maxw: 1140px;
  --pad: clamp(20px, 5vw, 48px);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient background — faint warm/cool radial pools */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 700px at 78% -8%, rgba(174, 221, 166, 0.06), transparent 60%),
    radial-gradient(1100px 800px at 12% 8%, rgba(45, 212, 191, 0.05), transparent 55%),
    radial-gradient(1000px 900px at 50% 110%, rgba(91, 157, 255, 0.045), transparent 60%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- language toggle visibility ---- */
html[data-lang="sv"] .lang-en { display: none !important; }
html[data-lang="en"] .lang-sv { display: none !important; }

/* =========================================================================
   Layout helpers
   ========================================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--radar);
  box-shadow: 0 0 0 0 rgba(174, 221, 166, 0.55);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(174, 221, 166, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(174, 221, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(174, 221, 166, 0); }
}

section { position: relative; }

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.05; margin: 0; font-weight: 700; }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 5vw, 46px); }
.section-head p { color: var(--ink-soft); font-size: clamp(17px, 2.2vw, 20px); margin: 16px 0 0; }

/* =========================================================================
   Top nav
   ========================================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 14px 0;
}
.nav-inner {
  display: flex; align-items: center; gap: 16px;
  padding: 9px 9px 9px 18px;
  border: 1px solid var(--line);
  background: rgba(12, 14, 17, 0.6);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand .glyph {
  width: 32px; height: 32px; border-radius: 9px; flex: none; overflow: hidden;
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.brand .glyph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-soft); font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line-soft);
}
.nav-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--radar); animation: pulse 2.6s ease-out infinite; }
.nav-spacer { flex: 1; }

.lang {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--glass); border: 1px solid var(--line-soft);
  border-radius: 999px;
}
.lang button {
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink-dim); background: none; border: 0; cursor: pointer;
  padding: 6px 12px; border-radius: 999px; transition: .2s;
}
.lang button.is-on { color: #16270f; background: var(--radar); }

/* App Store button */
.btn-store {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 999px;
  font-weight: 650; font-size: 15px;
  color: #16270f;
  background: linear-gradient(180deg, #c9e8c2, var(--radar));
  border: 1px solid rgba(174, 221, 166, 0.6);
  box-shadow: 0 8px 26px -10px rgba(174, 221, 166, 0.6);
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-store:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(174, 221, 166, 0.7); }
.btn-store svg { width: 18px; height: 18px; }
.btn-store small { display: block; font-size: 10px; font-weight: 600; opacity: .8; letter-spacing: .02em; line-height: 1; margin-bottom: 2px; }
.btn-store .lab { line-height: 1; font-size: 15px; }
.nav .btn-store { padding: 9px 16px; }
.nav .btn-store small { display: none; }

.btn-tv {
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-tv:hover { box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .55); }
.ew-item .btn-tv { margin-top: 16px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  color: var(--ink); background: var(--glass); border: 1px solid var(--line);
  transition: .18s;
}
.btn-ghost:hover { background: var(--glass-strong); transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav-live { display: none; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero { padding: clamp(48px, 9vw, 96px) 0 clamp(40px, 7vw, 72px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  letter-spacing: -0.04em;
}
.hero h1 .sky { color: var(--c-flight); }
.hero h1 .sea { color: var(--c-ship); }
.hero-lede { color: var(--ink-soft); font-size: clamp(17px, 2.3vw, 21px); max-width: 30ch; margin: 22px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.hero-eng {
  margin-top: 26px; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim); font-weight: 600;
}

/* legend chips */
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; }
.legend .chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-soft); }
.legend .chip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* hero visual: phone + radar */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 480px; }
.radar {
  position: absolute; width: min(560px, 92%); aspect-ratio: 1; border-radius: 50%;
  z-index: 0;
  background:
    radial-gradient(circle, rgba(174, 221, 166,0.10), transparent 62%);
}
.radar::before, .radar::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(174, 221, 166,0.16);
}
.radar::before { inset: 14%; }
.radar::after  { inset: 30%; }
.radar .sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(174, 221, 166,0.32), rgba(174, 221, 166,0) 38%);
  -webkit-mask: radial-gradient(circle, #000 64%, transparent 65%);
          mask: radial-gradient(circle, #000 64%, transparent 65%);
  animation: sweep 9s linear infinite;
}
.radar .ring-line { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(174, 221, 166,0.22); }
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .radar .sweep { animation: none; } }

/* phone frame (simple rounded bezel) */
.phone {
  position: relative; z-index: 2;
  width: clamp(240px, 78%, 320px);
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(160deg, #1b1e22, #0a0c0e);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,0.4);
}
.phone img { border-radius: 38px; width: 100%; }
.phone.tilt { transform: rotate(-2.2deg); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lede, .hero h1 { max-width: none; margin-inline: auto; }
  .hero-cta, .legend { justify-content: center; }
  .hero-visual { min-height: 0; margin-top: 26px; }
}

/* =========================================================================
   Feature showcase (alternating rows)
   ========================================================================= */
.features { padding: clamp(40px, 7vw, 80px) 0; }

.showcase { display: grid; gap: clamp(56px, 9vw, 110px); margin-top: 8px; }
.row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.row.flip .row-media { order: 2; }
.row-copy .tag {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--radar); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.row-copy h3 { font-size: clamp(26px, 3.8vw, 38px); }
.row-copy p { color: var(--ink-soft); font-size: clamp(16px, 2vw, 19px); margin: 16px 0 0; max-width: 46ch; }

.row-media { display: grid; place-items: center; position: relative; }
.row-media .phone { width: clamp(230px, 70%, 290px); transform: none; }
.media-glow { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0; }

.row-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.row-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-size: 16px; }
.row-list li b { color: var(--ink); font-weight: 650; }
.row-list .mk { width: 9px; height: 9px; border-radius: 3px; margin-top: 7px; flex: none; background: var(--radar); }

@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .row.flip .row-media { order: 0; }
  .row-copy p, .row-list { margin-inline: auto; }
  .row-list li { text-align: left; }
}

/* =========================================================================
   Överallt — widget + Apple TV (open, no boxes)
   ========================================================================= */
.everywhere { padding: clamp(40px, 7vw, 80px) 0; }
.ew-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.ew-item { display: flex; flex-direction: column; }
.ew-item h3 { font-size: clamp(22px, 3vw, 28px); }
.ew-item p { color: var(--ink-soft); margin: 12px 0 0; font-size: 17px; max-width: 32ch; }
.ew-item .media { margin-top: 30px; display: grid; place-items: center; }

/* widget mock */
.widget-shot { width: clamp(190px, 62%, 240px); border-radius: 36px; padding: 7px;
  background: linear-gradient(160deg, #1b1e22, #0a0c0e); border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow); }
.widget-shot img { border-radius: 30px; }

/* tv mock */
.tv { width: 100%; max-width: 560px; }
.tv-screen {
  border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
}
.tv-screen img { width: 100%; display: block; }
.tv-stand { width: 26%; height: 10px; margin: 0 auto; border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #23262b, #111316); }
.tv-foot { width: 40%; height: 7px; margin: 5px auto 0; border-radius: 6px; background: #16181c; }

@media (max-width: 860px) { .ew-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   Privacy teaser
   ========================================================================= */
.privacy-teaser { padding: clamp(48px, 8vw, 96px) 0; text-align: center; position: relative; }
.privacy-teaser::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(620px 320px at 50% 0%, rgba(174, 221, 166, 0.08), transparent 70%);
}
.pt-open { max-width: 620px; margin: 0 auto; }
.pt-shield {
  width: 52px; height: 52px; margin: 0 auto 24px; border-radius: 15px; display: grid; place-items: center;
  background: var(--glass-strong); border: 1px solid rgba(174, 221, 166, 0.3);
}
.pt-shield svg { width: 26px; height: 26px; }
.pt-open h2 { font-size: clamp(28px, 4.4vw, 42px); }
.pt-open p { color: var(--ink-soft); font-size: clamp(17px, 2.3vw, 20px); max-width: 48ch; margin: 20px auto 30px; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { padding: clamp(40px, 6vw, 64px) 0 56px; border-top: 1px solid var(--line-soft); margin-top: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer .brand { font-size: 17px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer-links a { color: var(--ink-soft); font-size: 15px; transition: .15s; }
.footer-links a:hover { color: var(--ink); }
.footer-meta { color: var(--ink-dim); font-size: 13.5px; margin-top: 24px; }

/* =========================================================================
   Privacy page
   ========================================================================= */
.legal { padding: clamp(40px, 7vw, 72px) 0 80px; }
.legal-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.legal-head h1 { font-size: clamp(34px, 6vw, 56px); }
.legal-lede {
  margin: 22px 0 0; font-size: clamp(18px, 2.4vw, 22px); color: var(--ink); font-weight: 500;
  padding: 18px 22px; border-left: 2px solid var(--radar); background: var(--glass);
  border-radius: 0 14px 14px 0;
}
.legal-updated { color: var(--ink-dim); font-size: 14px; margin-top: 18px; }

.legal-body { max-width: 760px; margin: 0 auto; }
.legal-body h2 {
  font-size: clamp(21px, 3vw, 27px); margin: 48px 0 14px; letter-spacing: -0.025em;
  scroll-margin-top: 90px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--ink-soft); font-size: 17px; margin: 0 0 14px; }
.legal-body p strong, .legal-body li strong { color: var(--ink); font-weight: 650; }
.legal-body ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 12px; }
.legal-body li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 17px; }
.legal-body li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--radar); }
.legal-body a.inline { color: var(--radar); border-bottom: 1px solid rgba(174, 221, 166,0.4); }
.legal-body a.inline:hover { border-color: var(--radar); }

.src-list { display: grid; gap: 10px; margin: 6px 0 14px; }
.src-list .src {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  padding: 14px 18px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line-soft);
}
.src-list .src b { color: var(--ink); font-size: 16px; }
.src-list .src .what { color: var(--ink-soft); font-size: 15px; }
.src-list .src a { margin-left: auto; color: var(--radar); font-size: 14.5px; }

.callout {
  margin: 20px 0; padding: 20px 22px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line);
}
.callout p { margin: 0; color: var(--ink); }
.callout p + p { margin-top: 10px; color: var(--ink-soft); }

.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 15px; margin-bottom: 28px; }
.back-link:hover { color: var(--ink); }
.back-link svg { width: 16px; height: 16px; }
