/* åboriginal — landing site
   Brand tokens sampled from the app icon. */

:root {
  --yo: #0D1B2A;          /* night navy (icon background) */
  --yo-soft: #16283C;
  --keltainen: #FFC107;   /* bus yellow (icon mark) */
  --keltainen-deep: #EFAF00;
  --paperi: #FAF8F1;      /* body background */
  --ink2: #46536B;        /* secondary text on light */
  --sign: #070D16;        /* destination sign */
  --led: #FFC53D;         /* LED amber */
  --card: #FFFFFF;
  --line: #E8E3D3;
  --focus: #0D1B2A;
}

@font-face {
  font-family: 'Archivo';
  src: url('assets/fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo Black';
  src: url('assets/fonts/archivoblack-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/fonts/ibmplexmono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  background: var(--paperi);
  color: var(--yo);
  line-height: 1.55;
  font-size: 17px;
}

/* ---- language switching ----
   Translated strings live as <span lang="fi"> / <span lang="en"> pairs,
   usually wrapped in an element with class .t (the flap unit). */
html[data-lang="fi"] [lang="en"] { display: none; }
html[data-lang="fi"] [lang="sv"] { display: none; }
html[data-lang="en"] [lang="fi"] { display: none; }
html[data-lang="en"] [lang="sv"] { display: none; }
html[data-lang="sv"] [lang="fi"] { display: none; }
html[data-lang="sv"] [lang="en"] { display: none; }

.t { display: inline-block; }
.t.flap { animation: flap .38s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes flap {
  0%   { transform: perspective(500px) rotateX(0); }
  45%  { transform: perspective(500px) rotateX(-88deg); opacity: .25; }
  100% { transform: perspective(500px) rotateX(0); opacity: 1; }
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--keltainen); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- header ---------- */
.site-header { background: var(--keltainen); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 11px; display: block; }
.brand b {
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-weight: 400; font-size: 1.35rem; letter-spacing: -.01em;
}

.langswitch {
  display: flex; gap: 4px; background: var(--sign);
  padding: 4px; border-radius: 8px;
}
.langswitch button {
  font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: .8rem;
  letter-spacing: .1em; border: 0; cursor: pointer;
  background: transparent; color: #8fa1b8;
  padding: 6px 12px; border-radius: 5px;
}
.langswitch button[aria-pressed="true"] { background: var(--yo-soft); color: var(--led); }

/* ---------- hero ---------- */
.hero { background: var(--keltainen); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px;
  align-items: center; padding-top: 40px; padding-bottom: 72px;
}

.destsign {
  display: inline-block; background: var(--sign); color: var(--led);
  font-family: 'IBM Plex Mono', monospace; font-weight: 500;
  font-size: .95rem; letter-spacing: .18em; text-transform: uppercase;
  padding: 12px 20px; border-radius: 8px;
  text-shadow: 0 0 7px rgba(255, 197, 61, .5);
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1.3px);
  background-size: 5px 5px;
  box-shadow: inset 0 2px 10px rgba(0,0,0,.6);
  margin-bottom: 26px;
}
.destsign .blink { animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.hero h1 {
  font-family: 'Archivo Black', 'Archivo', sans-serif; font-weight: 400;
  font-size: clamp(2.3rem, 5.4vw, 3.7rem);
  line-height: 1.04; letter-spacing: -.015em;
  margin-bottom: 20px;
}
.hero .lede {
  font-size: 1.15rem; max-width: 34em; color: #2A3547;
  margin-bottom: 32px;
}

.cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.play-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--yo); color: #fff; text-decoration: none;
  padding: 12px 22px 12px 18px; border-radius: 12px;
}
.play-btn svg { width: 26px; height: 26px; flex: none; }
.play-btn .small { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.play-btn .big { display: block; font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.cta-note { font-size: .85rem; color: #2A3547; }
.cta-note .dot { color: var(--yo); opacity: .45; margin: 0 6px; }

/* ---------- phone mock ---------- */
.phone-col { display: flex; justify-content: center; }
.phone {
  width: 296px; background: var(--yo); border-radius: 38px; padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(13, 27, 42, .45);
  transform: rotate(2.5deg);
}
.screen-shot {
  display: block; width: 100%; height: auto; border-radius: 30px;
}

/* ---------- how it works: route line ---------- */
.how { padding: 84px 0 40px; }
.section-eyebrow {
  display: block; font-size: .78rem; color: var(--ink2); margin-bottom: 10px;
}
.how h2, .quiet h2 {
  font-family: 'Archivo Black', 'Archivo', sans-serif; font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.01em;
  margin-bottom: 14px;
}
.how .intro { max-width: 40em; color: var(--ink2); margin-bottom: 44px; }

.route { position: relative; margin-left: 10px; max-width: 620px; }
.route::before {
  content: ''; position: absolute; left: 11px; top: 12px; bottom: 12px;
  width: 6px; border-radius: 3px; background: var(--keltainen);
}
.stop { position: relative; padding: 0 0 36px 52px; }
.stop:last-child { padding-bottom: 0; }
.stop::before {
  content: ''; position: absolute; left: 0; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paperi); border: 6px solid var(--yo);
}
.stop:last-child::before { background: var(--keltainen); }
.stop h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.stop p { color: var(--ink2); max-width: 36em; }
.stop .mono { font-size: .68rem; color: var(--ink2); display: block; margin-bottom: 6px; letter-spacing: .16em; }

/* ---------- quiet features ---------- */
.quiet { padding: 60px 0 30px; }
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 36px;
}
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 20px;
}
.feature .mono { font-size: .68rem; color: var(--ink2); display: block; margin-bottom: 10px; }
.feature .mono::before {
  content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--keltainen); border: 2px solid var(--yo);
  margin-right: 8px; vertical-align: -1px;
}
.feature p { font-size: .92rem; color: var(--yo); }

/* ---------- data note ---------- */
.datanote { padding: 46px 0 84px; }
.datanote .inner {
  border-top: 1px solid var(--line);
  padding-top: 28px; max-width: 46em;
  font-size: .88rem; color: var(--ink2);
}
.datanote a { color: var(--yo); }

/* ---------- footer ---------- */
.site-footer { background: var(--yo); color: #B9C4D4; font-size: .88rem; }
.site-footer .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; padding-top: 34px; padding-bottom: 38px;
}
.site-footer .fbrand { display: flex; align-items: center; gap: 10px; color: #fff; }
.site-footer .fbrand img { width: 30px; height: 30px; border-radius: 8px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: #E4EAF2; text-decoration-color: rgba(255, 193, 7, .5); }

/* ---------- privacy page ---------- */
.doc { padding: 64px 0 90px; }
.doc article { max-width: 46em; }
.doc h1 {
  font-family: 'Archivo Black', 'Archivo', sans-serif; font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.01em; margin-bottom: 8px;
}
.doc .updated { font-size: .8rem; color: var(--ink2); display: block; margin-bottom: 34px; }
.doc h2 { font-size: 1.2rem; font-weight: 600; margin: 34px 0 10px; }
.doc p, .doc li { color: #303C50; margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc .lead { font-size: 1.08rem; color: var(--yo); }
.doc-header { background: var(--yo); }
.doc-header .brand b, .doc-header .brand { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; padding-bottom: 56px; }
  .phone { transform: rotate(0deg); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .destsign { font-size: .78rem; letter-spacing: .12em; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .t.flap { animation: none; }
  .destsign .blink { animation: none; }
}
