/* ===================== Tokens ===================== */
:root {
  --blue: #0C619D;
  --blue-dark: #0d2c4d;
  --blue-light: #2e8bd1;
  --ink: #1a2733;
  --muted: #5b6b7a;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --line: #e2e9f0;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(12, 97, 157, 0.10);
  --shadow-lg: 0 18px 50px rgba(12, 97, 157, 0.18);
  --maxw: 1080px;
}

/* ===================== Language toggle ===================== */
[data-lang="fi"] [lang="en"] { display: none !important; }
[data-lang="en"] [lang="fi"] { display: none !important; }

/* ===================== Base ===================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4.5rem 0; }
section h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  color: var(--blue-dark);
  margin: 0 0 1rem;
  text-align: center;
}
.lead {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted);
}

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 1.2rem;
}
.brand-logo { border-radius: 10px; }
.nav {
  margin-left: auto;
  display: flex;
  gap: 1.4rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--blue); }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.7rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}
[data-lang="fi"] .lang-btn[data-set-lang="fi"],
[data-lang="en"] .lang-btn[data-set-lang="en"] {
  background: var(--blue);
  color: #fff;
}

/* ===================== Hero ===================== */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -20%, rgba(46,139,209,0.45), transparent),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 4rem 0 4.5rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-icon {
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  margin: 0;
  letter-spacing: -0.02em;
}
.tagline {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 600;
  margin: 0.25rem 0 1rem;
  color: #d7ecfb;
}
.hero-sub {
  font-size: 1.1rem;
  max-width: 32ch;
  color: #e8f3fc;
  margin: 0 0 1.75rem;
}
.store-badge { display: inline-block; }
.store-badge img {
  height: 58px;
  width: auto;
  transition: transform 0.15s ease;
}
.store-badge:hover img { transform: translateY(-2px); }

.hero-shot { display: flex; justify-content: center; }

/* ===================== Phone frame ===================== */
.phone {
  margin: 0;
  width: 240px;
  max-width: 70vw;
  border: 8px solid #0d2c4d;
  border-radius: 30px;
  overflow: hidden;
  background: #0d2c4d;
  box-shadow: var(--shadow-lg);
}
.phone img { border-radius: 22px; }
.hero-shot .phone { transform: rotate(2deg); }

/* ===================== Why ===================== */
.why { background: var(--bg-alt); }

/* ===================== Features ===================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--blue-dark);
}
.feature-card p { margin: 0; color: var(--muted); }

/* ===================== Screenshots ===================== */
.screenshots { background: var(--bg-alt); }
.shot-gallery {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.shot-gallery .phone { width: 220px; }

/* ===================== Pricing ===================== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.price-card.highlight {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-lg);
}
.price-card h3 { margin: 0 0 0.6rem; color: var(--blue-dark); font-size: 1.25rem; }
.price-card .price {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--blue);
  margin: 0.2rem 0;
}
.price-card .per { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-card .price-note { margin: 0.3rem 0 0; color: var(--muted); }
.price-card .badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.fineprint {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1.75rem auto 0;
  max-width: 600px;
}

/* ===================== Contact ===================== */
.contact { background: var(--bg-alt); text-align: center; }
.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.btn-outline {
  display: inline-block;
  border: 2px solid var(--blue);
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ===================== Footer ===================== */
.site-footer {
  background: var(--blue-dark);
  color: #cdddea;
  padding: 3rem 0;
  font-size: 0.92rem;
}
.site-footer .container > p { margin: 0 0 1rem; }
.site-footer a { color: #9ecbf0; }
.disclaimer { color: #aac4da; }
.footer-links .sep { margin: 0 0.5rem; color: #5d7d99; }
.copyright { color: #7d99b3; margin-bottom: 0; }

/* ===================== Press / media page ===================== */
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #bcdcf5;
  margin: 0 0 0.5rem;
}
.press-features { background: var(--bg-alt); }
.press-list {
  max-width: 820px;
  margin: 0 auto;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2.5rem;
}
.press-list li {
  break-inside: avoid;
  margin-bottom: 0.9rem;
  color: var(--muted);
}
.press-list li strong { color: var(--ink); }

.press-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.75rem;
}
.press-gallery figure { width: 100%; max-width: 240px; margin: 0 auto; }
.press-gallery figure img { border-radius: 22px; }
.press-gallery a { display: block; }
.press-gallery figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  /* the phone frame clips the border-radius; let captions sit outside it */
  background: transparent;
}
/* The phone frame wraps the image; keep the caption outside the dark frame. */
.press-gallery figure.phone {
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.press-gallery figure.phone a {
  border: 8px solid var(--blue-dark);
  border-radius: 30px;
  overflow: hidden;
  background: var(--blue-dark);
  box-shadow: var(--shadow-lg);
}

/* ===================== Responsive ===================== */
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { max-width: 42ch; }
  .nav { display: none; }
  section { padding: 3.25rem 0; }
  .press-list { columns: 1; }
}
