/* Perrong marketing page. Colours follow the app (see CLAUDE.md). */

@font-face {
  font-family: "Doto";
  src: url("fonts/Doto-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #06080B;
  --bg-alt: #0A0D12;
  --card: #0E1219;
  --line: #1D2532;
  --text: #F4F7FF;
  --muted: #8E9BB0;
  --blue: #6CC6EA;
  --led: #FF8C1A;
  --led-bg: #0A0703;
  --now: #FFC34D;
  --red: #D93A32;
  --green: #22C1A4;
  --metro-blue: #3AA8E0;
  --pink: #C9407F;
  --tram: #E08A2E;
  --local-rail: #8B5CB8;
  --radius: 20px;
  --gutter: clamp(16px, 5vw, 40px);
  color-scheme: dark;
}

/* Show only the chosen language. */
html[lang="sv"] .en,
html[lang="en"] .sv { display: none !important; }

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(44px, 7.4vw, 84px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; max-width: 18ch; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
em { font-style: normal; color: var(--led); }
p { margin: 0; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }

/* LED logo (dots drawn as SVG) */
.logo { display: block; height: 22px; width: auto; aspect-ratio: 41 / 7; fill: var(--led); filter: drop-shadow(0 0 4px rgba(255, 140, 26, 0.65)); }
.logo-big { height: clamp(34px, 6vw, 56px); margin: 0 auto 28px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: #111; background: var(--text);
  border-radius: 999px; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); background: #fff; }
.btn-small { font-size: 15px; padding: 8px 16px; }
.btn-store { font-size: 18px; padding: 15px 26px; color: #fff; background: var(--led); box-shadow: 0 8px 30px rgba(255, 140, 26, 0.35); }
.btn-store:hover { background: #ff9a33; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 8, 11, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(29, 37, 50, 0.7);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.nav-logo { display: block; padding: 6px 0; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); background: none; border: 0; border-radius: 999px;
  padding: 5px 10px; cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--bg); background: var(--text); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 90px) 0 0;
  background:
    radial-gradient(ellipse 60% 55% at 22% 30%, rgba(255, 140, 26, 0.16), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1.3px) 0 0 / 22px 22px,
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-text { padding-bottom: clamp(40px, 6vw, 90px); }
.hero-icon { border-radius: 22.5%; margin-bottom: 28px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.lead { margin-top: 22px; font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 32ch; }
.cta { margin-top: 34px; }
.cta-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-phone { position: relative; display: flex; justify-content: center; align-self: end; }
.glow { position: absolute; inset: 10% -10% 0; background: radial-gradient(closest-side, rgba(108, 198, 234, 0.18), transparent); filter: blur(20px); }

/* Phone frame around the cropped screenshot; the bottom fades out. */
.phone {
  --w: 330px;
  position: relative;
  width: var(--w);
  max-width: 100%;
  padding: calc(var(--w) * 0.032) calc(var(--w) * 0.032) 0;
  background: #16171A;
  border: 2px solid #3A3E46;
  border-bottom: 0;
  border-radius: calc(var(--w) * 0.165) calc(var(--w) * 0.165) 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.phone img { width: 100%; height: auto; border-radius: calc(var(--w) * 0.133) calc(var(--w) * 0.133) 0 0; }
.phone-sm { --w: 290px; }

/* LED ticker */
.ticker {
  overflow: hidden; background: var(--led-bg);
  border-top: 1px solid #2a1a08; border-bottom: 1px solid #2a1a08;
  position: relative;
}
.ticker::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, .3) 1px, transparent 1px) 0 0 / 100% 3px; }
.ticker-track {
  display: flex; width: max-content;
  font-family: "Doto", ui-monospace, monospace; font-weight: 900; font-size: 22px;
  color: var(--led); text-shadow: 0 0 8px rgba(255, 140, 26, .6);
  padding: 12px 0; white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ticker-track span { padding: 0 34px; }
.ticker-track b { font-weight: 900; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Sections */
.section { padding: clamp(70px, 10vw, 120px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.section-lead { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 52ch; }
.section-lead strong { color: var(--text); }

/* Transport modes */
.modes { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mode { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; }
.mode::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--blue); opacity: .8; }
.mode h3 { margin-top: 18px; }
.mode p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.badges { display: flex; gap: 6px; }
.badge {
  min-width: 36px; height: 28px; padding: 0 7px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: 16px;
  font-stretch: condensed;
}
.badge.red { background: var(--red); color: #fff; }
.badge.green { background: var(--green); color: #032019; }
.badge.blue { background: var(--metro-blue); color: #04121C; }
.badge.pink { background: var(--pink); color: #fff; }
.badge.orange { background: var(--tram); color: #1E1104; }
.badge.purple { background: var(--local-rail); color: #fff; }
.badge.bus { background: #E6E9EF; color: #111; }

/* Perks */
.perks { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 48px; }
.perks li { display: flex; gap: 16px; align-items: flex-start; }
.perks svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #1A2733; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.perks p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* Widget screenshots */
.shots {
  margin: 56px auto 0; max-width: 1140px; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.shot { margin: 0; display: flex; flex-direction: column; align-items: center; }
.shot .phone { width: 100%; }
.shot figcaption { margin-top: 22px; text-align: center; max-width: 30ch; }
.shot figcaption p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* Pro */
.pro { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.pro-sign { border-radius: 22px; overflow: hidden; background: #0b0b0d; box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 0 1px #1d1408; }
.pro-stripe { height: 5px; background: var(--red); }
.led {
  position: relative; background: var(--led-bg);
  padding: clamp(18px, 3vw, 30px) clamp(20px, 3vw, 32px);
  font-family: "Doto", ui-monospace, monospace; font-weight: 900; color: var(--led);
  text-shadow: 0 0 10px rgba(255, 140, 26, .6), 0 0 1px var(--led);
}
.led::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, .28) 1px, transparent 1px) 0 0 / 100% 3px; }
.led-row { display: flex; justify-content: space-between; gap: 16px; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.3; }
.led-row.big { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 8px; }
.blink { animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; font-size: 17px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 140, 26, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8C1A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.free-note { margin-top: 26px; font-size: 15px; color: var(--muted); }

/* Final call to action */
.final {
  text-align: center; padding: clamp(80px, 11vw, 130px) 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(255, 140, 26, 0.14), transparent 70%),
    var(--bg);
}
.final h2 { margin: 0 auto 34px; max-width: 20ch; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); font-size: 15px; color: var(--muted); }
.footer-inner { display: grid; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; font-size: 18px; }
.footer-brand img { border-radius: 22.5%; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { color: var(--text); }
.footer-small { font-size: 14px; max-width: 70ch; }

/* Tablet */
@media (max-width: 960px) {
  .modes { grid-template-columns: repeat(2, 1fr); }
  .phone-sm { --w: 250px; }
}

/* Phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-text { padding-bottom: 20px; }
  .hero-icon { width: 60px; height: 60px; margin-bottom: 22px; }
  .phone { --w: min(300px, 78vw); }
  .btn-small { display: none; }
  .ticker-track { font-size: 18px; }
  .perks { grid-template-columns: 1fr; gap: 26px; }
  .section-lead { font-size: 17px; }

  /* Widget screenshots become a swipeable row. */
  .shots {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 var(--gutter) 8px; scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 76%; scroll-snap-align: center; }
  .shot .phone { --w: 100%; width: 100%; padding: 2.4% 2.4% 0; border-radius: 40px 40px 0 0; }
  .shot .phone img { border-radius: 32px 32px 0 0; }

  .pro { grid-template-columns: 1fr; }
}

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