/* Roadtrip – design tokens direkt ur appens designsystem (design-tokens.md) */
:root {
  color-scheme: light;

  /* Ytor */
  --rt-bg: #f2f4f7;
  --rt-card: #ffffff;
  --rt-card-border: #e2e6ea;
  --rt-inner-field: #eef1f4;

  /* Text */
  --rt-text-primary: #1c2128;
  --rt-text-secondary: #3d444d;
  --rt-text-muted: #57606a;
  --rt-text-faint: #6e7781;

  /* Accenter och status */
  --rt-accent: #007aff;
  --rt-accent-light: #0a6cd6;
  --rt-positive: #1f9d4d;

  /* Gradientstopp */
  --rt-hero-1: #e8eef6;
  --rt-hero-2: #f7fafd;
  --rt-button-1: #007aff;
  --rt-button-2: #0062cc;

  --rt-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
             Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 60px;
}

/*
  Mörkt läge – VILANDE (beslut 2026-09-02: sajten är låst till ljus design
  eftersom App Store-korten har inbakad ljus bakgrund). Återaktivera blocket
  nedan om mörka kortvarianter exporteras – och ta då även tillbaka den mörka
  theme-color-metan i head.ejs och den mörka Tuana-loggan i footer.ejs.

@media (prefers-color-scheme: dark) {
  :root {
    --rt-bg: #0b0e13;
    --rt-card: #151a21;
    --rt-card-border: #242b35;
    --rt-inner-field: #10141b;

    --rt-text-primary: #f5f7fa;
    --rt-text-secondary: #c9d1d9;
    --rt-text-muted: #8b949e;
    --rt-text-faint: #7d8590;

    --rt-accent: #0a84ff;
    --rt-accent-light: #409cff;
    --rt-positive: #30d158;

    --rt-hero-1: #141a23;
    --rt-hero-2: #181f2a;
    --rt-button-1: #0a84ff;
    --rt-button-2: #0870d8;
  }
  .appstore-badge { background: #fff; color: #000; border-color: transparent; }
}
*/

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--rt-font);
  background: var(--rt-bg);
  color: var(--rt-text-primary);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rt-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 16px;
}

.icon {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--rt-accent-light);
  margin: 0 0 12px;
}

.section-title {
  font-size: clamp(26px, 5vw, 36px);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--rt-text-secondary);
  font-size: 17px;
  max-width: 640px;
  margin: 0 0 32px;
}

section { padding-block: 56px; }
@media (min-width: 768px) { section { padding-block: 88px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--rt-bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rt-card-border);
}

.header-inner {
  display: flex; align-items: center; gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--rt-text-primary);
}
.brand:hover { text-decoration: none; }
.brand-icon { border-radius: 22.4%; }
.brand-name {
  font-weight: 700; font-size: 15px; letter-spacing: 3px;
}

.main-nav {
  display: none;
  gap: 22px;
  margin-inline: auto;
}
.main-nav a {
  color: var(--rt-text-secondary);
  font-size: 14px; font-weight: 600;
}
.main-nav a:hover { color: var(--rt-text-primary); text-decoration: none; }

@media (min-width: 860px) {
  .main-nav { display: flex; }
}

.header-actions {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto;
}

/* ---------- Språkväljare ---------- */
.lang-switcher { position: relative; }
.lang-switcher summary {
  list-style: none;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
  padding: 7px 10px;
  border: 1px solid var(--rt-card-border);
  border-radius: 10px;
  background: var(--rt-card);
  font-size: 13px; font-weight: 600;
  color: var(--rt-text-secondary);
  min-height: 38px;
}
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher summary .icon { width: 17px; height: 17px; }
.lang-switcher .icon-chevron { width: 14px; height: 14px; transition: transform .2s ease; }
.lang-switcher[open] .icon-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  margin: 0; padding: 6px;
  list-style: none;
  background: var(--rt-card);
  border: 1px solid var(--rt-card-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  min-width: 170px;
  z-index: 60;
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--rt-text-secondary);
  min-height: 40px;
}
.lang-menu a:hover { background: var(--rt-inner-field); text-decoration: none; }
.lang-menu a[aria-current="true"] { color: var(--rt-accent); }
.lang-menu a .icon { width: 16px; height: 16px; }

@media (max-width: 480px) {
  .lang-current { display: none; }
}

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding-inline: 24px;
  border-radius: 14px;
  background: linear-gradient(to right, var(--rt-button-1), var(--rt-button-2));
  color: #fff; font-size: 16px; font-weight: 700;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn-small { height: 38px; padding-inline: 14px; font-size: 13px; border-radius: 10px; white-space: nowrap; }

.appstore-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding-inline: 20px;
  border-radius: 14px;
  background: #000; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 700; font-size: 16px;
}
.appstore-badge:hover { text-decoration: none; opacity: 0.88; }
.badge-apple { width: 22px; height: 26px; stroke: none; }
.badge-text { line-height: 1.2; }
.cta-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--rt-text-faint);
}

/* ---------- App Store-kort (lokaliserade skärmbilder) ---------- */
.app-card {
  margin: 0;
  width: min(330px, 84vw);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--rt-card-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.16);
  background: #eef1f5;
}
.app-card img { width: 100%; height: auto; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(to bottom right, var(--rt-hero-1), var(--rt-hero-2));
  border-bottom: 1px solid var(--rt-card-border);
  padding-block: 48px 64px;
}
.hero-inner {
  display: grid;
  gap: 40px;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.hero-copy h1 {
  font-size: clamp(32px, 7vw, 52px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 17px;
  color: var(--rt-text-secondary);
  max-width: 560px;
  margin: 0 auto 28px;
}
.hero-phone .app-card { width: min(350px, 86vw); }

@media (min-width: 860px) {
  .hero { padding-block: 72px 96px; }
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    text-align: left;
    justify-items: start;
  }
  .hero-sub { margin-inline: 0; }
  .hero-phone { justify-self: center; }
}

/* ---------- Pelare ---------- */
.pillar-grid {
  display: grid;
  gap: 20px;
}
.pillar-card {
  background: var(--rt-card);
  border: 1px solid var(--rt-card-border);
  border-radius: 18px;
  padding: 24px 20px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.pillar-card .app-card {
  width: min(260px, 70vw);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  margin-bottom: 20px;
}
.pillar-card h3 { font-size: 20px; margin-bottom: 6px; }
.pillar-card p { color: var(--rt-text-secondary); font-size: 15px; margin: 0; }

@media (min-width: 768px) {
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Funktionsgrid ---------- */
.feature-grid {
  display: grid;
  gap: 14px;
}
.feature-card {
  background: var(--rt-card);
  border: 1px solid var(--rt-card-border);
  border-radius: 14px;
  padding: 20px;
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--rt-inner-field);
  color: var(--rt-accent);
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 16px; margin-bottom: 4px; }
.feature-card p { font-size: 14px; color: var(--rt-text-secondary); margin: 0; }

@media (min-width: 600px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Byggd för vägen ---------- */
.road-row {
  display: grid;
  gap: 28px;
  align-items: center;
  justify-items: center;
  padding-block: 28px;
}
.road-copy { max-width: 480px; text-align: center; }
.road-copy h3 { font-size: 22px; }
.road-copy p { color: var(--rt-text-secondary); margin: 0; }
.road-phone .app-card { width: min(300px, 78vw); }

@media (min-width: 768px) {
  .road-row {
    grid-template-columns: 1fr 1fr;
    padding-block: 36px;
  }
  .road-copy { text-align: left; justify-self: start; }
  .road-row-flip .road-copy { order: 2; justify-self: end; }
  .road-row-flip .road-phone { order: 1; }
}

.offline-banner {
  margin-top: 40px;
  background: var(--rt-card);
  border: 1px solid var(--rt-card-border);
  border-radius: 18px;
  padding: 28px 24px;
  display: grid; gap: 20px;
}
.offline-head { display: flex; gap: 16px; align-items: flex-start; }
.offline-head .feature-icon { margin-bottom: 0; }
.offline-head h3 { font-size: 20px; margin-bottom: 4px; }
.offline-head p { margin: 0; color: var(--rt-text-secondary); }
.offline-points {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 10px;
}
.offline-points li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600;
  color: var(--rt-text-secondary);
}
.offline-points .icon { width: 20px; height: 20px; color: var(--rt-positive); }

@media (min-width: 860px) {
  .offline-banner { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ---------- iPhone, iPad och Apple Watch ---------- */
.road-phone .ipad-card { width: min(440px, 86vw); border-radius: 22px; }

.watch-row {
  display: flex; justify-content: center; align-items: center;
  gap: 16px;
  padding: 24px 8px;
}
.watch-face {
  margin: 0;
  width: min(140px, 24vw);
  border-radius: 21% / 18%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 6px #22262d, 0 18px 36px rgba(0, 0, 0, 0.22);
}
.watch-face img { width: 100%; height: auto; }
.watch-face:nth-child(2) { transform: translateY(-16px); }

/* ---------- Integritet ---------- */
.privacy {
  background: var(--rt-card);
  border-block: 1px solid var(--rt-card-border);
  text-align: center;
}
.privacy-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--rt-inner-field);
  color: var(--rt-accent);
  margin-bottom: 20px;
}
.privacy-icon .icon { width: 28px; height: 28px; }
.privacy .section-sub { margin-inline: auto; }
.privacy-points {
  display: grid; gap: 14px;
  margin-block: 32px;
  text-align: left;
}
.privacy-point {
  background: var(--rt-inner-field);
  border: 1px solid var(--rt-card-border);
  border-radius: 14px;
  padding: 20px;
}
.privacy-point h3 { font-size: 16px; margin-bottom: 4px; }
.privacy-point p { font-size: 14px; color: var(--rt-text-secondary); margin: 0; }
.privacy-link { font-weight: 700; font-size: 16px; }

@media (min-width: 768px) {
  .privacy-points { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Språk ---------- */
.languages { text-align: center; }
.languages .section-sub { margin-inline: auto; }
.lang-flags {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px;
}
.lang-flags li {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rt-card);
  border: 1px solid var(--rt-card-border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 15px; font-weight: 600;
  color: var(--rt-text-secondary);
}
.flag { font-size: 20px; line-height: 1; }

/* ---------- FAQ ---------- */
.faq-container { max-width: 720px; }
.faq .section-title { text-align: center; margin-bottom: 32px; }
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--rt-card);
  border: 1px solid var(--rt-card-border);
  border-radius: 14px;
  padding: 0 20px;
}
.faq-item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 16px;
  cursor: pointer;
  font-weight: 700; font-size: 16px;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .icon-chevron { transition: transform .2s ease; color: var(--rt-text-faint); }
.faq-item[open] .icon-chevron { transform: rotate(180deg); }
.faq-item p {
  margin: 0; padding: 0 0 18px;
  color: var(--rt-text-secondary);
  font-size: 15px;
}

/* ---------- Slut-CTA ---------- */
.final-cta {
  text-align: center;
  background: linear-gradient(to bottom right, var(--rt-hero-1), var(--rt-hero-2));
  border-top: 1px solid var(--rt-card-border);
}
.final-cta .section-sub { margin-inline: auto; }

/* ---------- Integritetssida ---------- */
.legal { padding-block: 48px 72px; }
.legal-container { max-width: 720px; }
.legal-header { margin-bottom: 32px; }
.legal-header h1 { font-size: clamp(28px, 5vw, 38px); letter-spacing: -0.02em; }
.legal-updated { color: var(--rt-text-faint); font-size: 14px; margin: 0; }
.legal-intro { font-size: 17px; color: var(--rt-text-secondary); }
.legal-section {
  padding: 0;
  margin-top: 36px;
}
.legal-section h2 { font-size: 21px; margin-bottom: 12px; }
.legal-section p, .legal-section li {
  color: var(--rt-text-secondary);
  font-size: 16px;
}
.legal-section ul { padding-left: 22px; display: grid; gap: 10px; margin: 0; }
.legal-section strong { color: var(--rt-text-primary); }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: 96px; }
.nf-code {
  font-size: 64px; font-weight: 800;
  color: var(--rt-accent);
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}
.not-found h1 { font-size: 30px; }
.not-found .btn { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rt-card-border);
  background: var(--rt-card);
  padding-block: 48px 32px;
}
.footer-grid {
  display: grid; gap: 32px;
}
.footer-brand .brand { margin-bottom: 8px; }
.footer-tagline { color: var(--rt-text-faint); font-size: 13px; margin: 8px 0 0; max-width: 240px; }
.footer-heading {
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--rt-text-faint);
  margin-bottom: 12px;
}
.footer-col p { font-size: 14px; color: var(--rt-text-secondary); margin: 0 0 6px; }
.footer-col a { font-size: 14px; font-weight: 600; }
.footer-langs {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 8px;
}
.footer-langs a { color: var(--rt-text-secondary); }
.footer-langs a[aria-current="true"] { color: var(--rt-accent); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rt-card-border);
}
.footer-bottom p { font-size: 13px; color: var(--rt-text-faint); margin: 0 0 4px; }
.tuana-logo { display: inline-block; margin-bottom: 10px; }
.tuana-logo img { height: 26px; width: auto; display: block; }
.tuana-logo:hover { opacity: 0.75; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ---------- Rörelse ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
