:root {
  --orange: #FE5000;
  --cyan: #00B4FF;
  --green: #7CFF6B;
  --bg: #111114;
  --dark: #0A0A0C;
  --text: #F2F2F2;
  --muted: rgba(242,242,242,0.62);
  --faint: rgba(242,242,242,0.08);
  --radius: 22px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background-color: var(--bg);
  /* Dark marine-chart base: faint lat/lon style grid */
  background-image:
    linear-gradient(rgba(0,180,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.45;
}
a { color: inherit; }
nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(242,242,242,0.06);
  position: sticky; top: 0; z-index: 40;
  background: rgba(17,17,20,0.92);
  backdrop-filter: blur(12px);
}
.logo { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; }
.logo span { color: var(--orange); }
.nav-links {
  display: flex; gap: clamp(18px, 3vw, 36px); list-style: none;
  font-size: 14px; color: rgba(242,242,242,0.65);
}
.nav-links a { color: inherit; text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.product-pill {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--cyan);
  background: rgba(0,180,255,0.12); padding: 6px 12px; border-radius: 999px;
  white-space: nowrap;
}
.btn-login, .btn-ghost, .btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14px; text-decoration: none; border: none; cursor: pointer;
  border-radius: 12px; padding: 10px 16px; font-family: inherit;
}
.btn-login {
  background: transparent; color: var(--text);
  border: 1px solid rgba(242,242,242,0.22);
}
.btn-login:hover { border-color: var(--orange); color: var(--orange); }
.btn-primary { background: var(--orange); color: var(--dark); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary {
  background: rgba(242,242,242,0.06); color: var(--text);
  border: 1px solid rgba(242,242,242,0.12);
}
.btn-ghost { background: transparent; color: var(--muted); padding: 8px 10px; }
.header { text-align: center; padding: 36px clamp(20px, 4vw, 56px) 28px; }
.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 14px;
}
h1 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.12;
  letter-spacing: -0.03em; margin-bottom: 12px;
}
h1 .accent { color: var(--orange); }
.header .sub {
  font-size: 16px; color: var(--muted); max-width: 560px;
  margin: 0 auto 20px;
}
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 12px; font-weight: 700; padding: 8px 14px;
  border-radius: 999px; background: rgba(242,242,242,0.05);
  border: 1px solid rgba(242,242,242,0.1);
}
.chip.o { border-color: rgba(254,80,0,0.5); color: var(--orange); background: rgba(254,80,0,0.1); }
.chip.g { border-color: rgba(124,255,107,0.45); color: var(--green); background: rgba(124,255,107,0.08); }
.chip.c { border-color: rgba(0,180,255,0.5); color: var(--cyan); background: rgba(0,180,255,0.1); }
.chip.n { color: rgba(242,242,242,0.7); }
.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 8px clamp(20px, 4vw, 56px) 0;
}
.card {
  background: var(--dark);
  border-radius: var(--radius);
  border: 1px solid rgba(242,242,242,0.08);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 420px;
}
.card.road { box-shadow: 0 0 0 1px rgba(254,80,0,0.25), 0 20px 40px rgba(0,0,0,0.35); }
.card.terrain { box-shadow: 0 0 0 1px rgba(124,255,107,0.2), 0 20px 40px rgba(0,0,0,0.35); }
.card.boat { box-shadow: 0 0 0 1px rgba(0,180,255,0.25), 0 20px 40px rgba(0,0,0,0.35); }
.viz { height: 220px; position: relative; }
.viz svg { width: 100%; height: 100%; display: block; }
.body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 8px;
}
.card.road .label { color: var(--orange); }
.card.terrain .label { color: var(--green); }
.card.boat .label { color: var(--cyan); }
.body h2 { font-size: clamp(22px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.body p { font-size: 14px; color: rgba(242,242,242,0.55); flex: 1; }
.feat { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.feat span {
  font-size: 11px; font-weight: 600; padding: 5px 10px;
  border-radius: 6px; background: rgba(242,242,242,0.05);
  color: rgba(242,242,242,0.6);
}
.cta-band {
  margin: 28px clamp(20px, 4vw, 56px) 40px;
  background: linear-gradient(90deg, rgba(254,80,0,0.12), rgba(0,180,255,0.1));
  border: 1px solid rgba(242,242,242,0.08);
  border-radius: 16px;
  padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.cta-band .msg { font-size: clamp(16px, 2vw, 18px); font-weight: 700; letter-spacing: -0.02em; }
.cta-band .msg em { font-style: normal; color: var(--orange); }
.cta-band .hint { font-size: 13px; color: rgba(242,242,242,0.5); margin-top: 4px; }
.btn-store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: var(--dark); font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: 12px; text-decoration: none; white-space: nowrap;
}
.btn-store svg { width: 18px; height: 18px; }
.site-footer {
  padding: 24px clamp(20px, 4vw, 56px) 40px;
  color: rgba(242,242,242,0.4); font-size: 13px;
  border-top: 1px solid rgba(242,242,242,0.06);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
/* Auth / panel */
.auth-shell, .panel-shell {
  max-width: 880px; margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 40px) 64px;
}
.auth-card, .panel-card {
  background: var(--dark);
  border: 1px solid rgba(242,242,242,0.08);
  border-radius: 18px; padding: 28px;
}
.auth-card h1, .panel-shell h1 {
  font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px;
}
.lead { color: var(--muted); margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(242,242,242,0.55); margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%; background: #121216; color: var(--text);
  border: 1px solid rgba(242,242,242,0.12); border-radius: 10px;
  padding: 12px 14px; font: inherit; outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(254,80,0,0.55); box-shadow: 0 0 0 3px rgba(254,80,0,0.12);
}
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.status {
  font-size: 13px; color: var(--muted); min-height: 1.2em; margin-top: 10px;
}
.status.ok { color: var(--green); }
.status.err { color: #ff6b6b; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(0,180,255,0.12); color: var(--cyan);
}
.badge.admin { background: rgba(254,80,0,0.14); color: var(--orange); }
.ad-list { display: grid; gap: 16px; margin-top: 20px; }
.ad-item {
  border: 1px solid rgba(242,242,242,0.08); border-radius: 14px;
  padding: 18px; background: #0e0e12;
}
.ad-item h3 { font-size: 18px; margin-bottom: 4px; }
.ad-meta { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.check input { width: auto; accent-color: var(--orange); }
.panel-top {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  flex-wrap: wrap; margin-bottom: 20px;
}
.hidden { display: none !important; }
@media (max-width: 980px) {
  .modes { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .card { min-height: 0; }
  .viz { height: 180px; }
}

/* Auth extras: Apple + MFA */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px; color: rgba(242,242,242,0.35); font-size: 12px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: rgba(242,242,242,0.1);
}
.btn-apple {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #000; font-weight: 700; font-size: 14px;
  border: none; border-radius: 12px; padding: 12px 16px; cursor: pointer;
  font-family: inherit;
}
.btn-apple:hover { filter: brightness(0.96); }
#mfa-qr img { display: block; }

.viz.marine-dark { background: #03080f; }
.img-preview {
  display: block; max-width: 220px; max-height: 140px; width: auto; height: auto;
  border-radius: 10px; margin: 8px 0 12px; border: 1px solid rgba(242,242,242,0.12);
  background: #0e0e12; object-fit: cover;
}
.img-preview.empty { display: none; }
.file-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.file-row input[type=file] { font-size: 13px; color: var(--muted); max-width: 100%; }

/* Käyttäjien ehdottamat — compact horizontal carousel */
.suggestions {
  padding: 36px clamp(20px, 4vw, 56px) 20px;
}
.suggestions-inner { max-width: 1100px; margin: 0 auto; }
.suggestions-head { text-align: center; margin-bottom: 18px; }
.suggestions-head h2 {
  font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.suggestions-head .sub { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 14px; }
.suggestion-carousel-wrap {
  margin: 0 -4px 22px;
}
.suggestion-carousel {
  display: flex;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 12px;
  scrollbar-width: none;

}
.suggestion-carousel::-webkit-scrollbar { display: none; height: 0; }

.suggestion-carousel > .lead {
  flex: 0 0 auto;
  padding: 12px 8px;
  margin: 0;
}
.suggestion-card {
  flex: 0 0 auto;
  width: min(220px, 72vw);
  scroll-snap-align: start;
  background: #0e0e12;
  border: 1px solid rgba(242,242,242,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  max-height: 96px;
}
.suggestion-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.suggestion-card h3 {
  font-size: 13px; font-weight: 800; letter-spacing: -0.01em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.suggestion-rating {
  flex-shrink: 0;
  font-size: 12px; font-weight: 800;
  color: #ffc107;
  white-space: nowrap;
}
.suggestion-count { color: var(--muted); font-weight: 600; font-size: 11px; }
.suggestion-loc {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--cyan);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.suggestion-card p { display: none; }
.suggestion-maps {
  margin-top: 2px;
  font-size: 11px; font-weight: 700; color: var(--orange);
  text-decoration: none;
}
.suggestion-maps:hover { text-decoration: underline; }
.suggestion-form-wrap {
  background: #0e0e12;
  border: 1px solid rgba(242,242,242,0.08);
  border-radius: 16px;
  padding: 22px clamp(16px, 3vw, 28px);
  max-width: 640px;
  margin: 0 auto;
}
.suggestion-form-wrap h3 { font-size: 18px; margin-bottom: 6px; }
.suggestion-form-wrap .lead { margin-bottom: 14px; }

/* no public suggestion form 2026-10-01 */

/* Yhteystiedot */
.contact { padding: 40px clamp(20px, 4vw, 56px) 28px; }
.contact-inner { max-width: 560px; margin: 0 auto; }
.contact h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; margin-bottom: 8px; text-align: center; }
.contact .lead { color: var(--muted); text-align: center; font-size: 14px; margin-bottom: 18px; }
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.contact-form input, .contact-form textarea, .contact-form select {
  background: #0e0e12; border: 1px solid rgba(242,242,242,0.12); border-radius: 12px;
  color: #f2f2f2; padding: 12px 14px; font: inherit;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.contact-form .btn-primary {
  align-self: flex-start; margin-top: 4px;
  background: var(--orange); color: #0a0a0c; border: 0; border-radius: 999px;
  padding: 12px 22px; font-weight: 800; cursor: pointer;
}
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

.contact .about {
  color: #d8d8de; text-align: center; font-size: 15px; line-height: 1.45;
  max-width: 480px; margin: 0 auto 16px;
}
