@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

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

:root {
  /* TripSphere design tokens: matched to the app (styles.css) */
  --canvas: #f1f2f4;
  --foreground: #0c0b0a;
  --card: #ffffff;
  --primary: #0c0b0a;
  --ink: #0c0b0a;
  --ink-foreground: #fbfbfb;
  --secondary: #e9eaed;
  --muted-foreground: #6b6d76;
  --accent: #2a9d8f;
  --border: rgba(12, 11, 10, 0.09);

  --max: 1040px;
  --narrow: 640px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  background: var(--canvas);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

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

/* scroll-reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* NAV */
nav {
  border-bottom: 1px solid var(--border);
  background: var(--canvas);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.nav-logo-mark {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
  border-radius: 7px;
}
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 0.88rem; color: var(--muted-foreground); }
.nav-links a:hover { color: var(--foreground); }
.nav-links a.current { color: var(--foreground); font-weight: 600; }

/* language switcher */
.lang-switch { position: relative; }
.lang-switch-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px 7px 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em;
  color: var(--foreground);
  cursor: pointer;
}
.lang-switch-btn svg.icon { width: 15px; height: 15px; color: var(--accent); }
.lang-switch-btn:hover { background: var(--secondary); }
.lang-switch-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 150px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 32px rgba(12,11,10,0.14);
  list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 50;
}
.lang-switch.open .lang-switch-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch-menu li {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.86rem;
  color: var(--foreground);
  cursor: pointer;
}
.lang-switch-menu li:hover { background: var(--secondary); }
.lang-switch-menu li.active { color: var(--accent); font-weight: 700; }

/* HERO: asymmetric, text leads, one real photo, no stat-card grid */
.hero {
  padding: 72px 0 0;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: end;
  padding-bottom: 56px;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-kicker {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  max-width: 15ch;
  margin-bottom: 22px;
}
.hero p.lead {
  font-size: 1.05rem;
  color: var(--muted-foreground);
  max-width: 44ch;
  margin-bottom: 28px;
}
.btn-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
}
.btn-primary { background: var(--ink); color: var(--ink-foreground); }
.btn-primary:hover { background: #262524; }
.btn-coming-soon {
  background: var(--secondary);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  cursor: default;
  pointer-events: none;
  letter-spacing: 0.02em;
}
.coming-soon {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.text-link { font-size: 0.92rem; font-weight: 600; color: var(--foreground); border-bottom: 1.5px solid var(--border); padding-bottom: 2px; }
.text-link:hover { border-color: var(--foreground); }

.hero-photo {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-tag,
.photo-place-tag {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(12,11,10,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  z-index: 1;
}

/* thin stat strip under hero: plain numbers, not cards */
.stat-strip {
  display: flex;
  border-top: 1px solid var(--border);
}
.stat-strip-item {
  flex: 1;
  padding: 22px 0;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-strip-item:last-child { border-right: none; }
.stat-strip-num { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.stat-strip-label { font-size: 0.76rem; color: var(--muted-foreground); margin-top: 2px; }

/* PRODUCT ROWS: alternating image/text, no card grid */
.product-row {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.product-row.reverse .product-row-media { order: 2; }
.product-row.reverse .product-row-text { order: 1; }
@media (max-width: 860px) {
  .product-row { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; }
  .product-row.reverse .product-row-media { order: 1; }
  .product-row.reverse .product-row-text { order: 2; }
}
.product-row-media {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.product-row-media img { width: 100%; height: 100%; object-fit: cover; }
.product-row-index { font-size: 0.8rem; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.product-row-text h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  max-width: 18ch;
}
.product-row-text p {
  color: var(--muted-foreground);
  font-size: 1rem;
  max-width: 40ch;
  margin-bottom: 18px;
}
.detail-list { display: flex; flex-direction: column; gap: 10px; }
.detail-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--foreground);
}
.detail-list li svg.icon { color: var(--accent); }
.row-nudge {
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--accent);
  font-weight: 600;
}

/* SECTION HEAD */
.section { padding: 80px 0; }
.section-head { max-width: 520px; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-head p { color: var(--muted-foreground); font-size: 1rem; }

/* BEFORE YOU INSTALL: real questions, not generic onboarding steps */
.flow-list { border-top: 1px solid var(--border); }
.flow-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.flow-num {
  font-size: 0.72rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding-top: 2px;
}
.flow-item h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.flow-item p { color: var(--muted-foreground); font-size: 0.95rem; max-width: 56ch; }

/* INTERACTIVE DEMO: phone-shell simulation of the real app (Explore globe + Trip detail) */
.demo-section { padding: 12px 0 88px; }
.demo-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .demo-layout { grid-template-columns: 1fr; }
  .demo-copy { order: 2; }
}
.demo-copy-index { font-size: 0.8rem; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.demo-copy h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; max-width: 18ch; }
.demo-copy p { color: var(--muted-foreground); font-size: 1rem; max-width: 42ch; margin-bottom: 18px; }
.demo-hint {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--muted-foreground);
  padding: 10px 0;
}
.demo-hint svg.icon { color: var(--accent); }

.phone-shell {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 18.7;
  margin: 0 auto;
  background: #000;
  border-radius: 42px;
  padding: 8px;
  box-shadow: 0 30px 60px -20px rgba(12,11,10,0.35), 0 0 0 1px rgba(12,11,10,0.06);
  position: relative;
}
/* Samsung Galaxy-style shell: flat sides, thin bezel, centred punch-hole camera */
.phone-shell {
  border-radius: 30px;
  background: #17181a;
}
.phone-shell::before {
  content: "";
  position: absolute;
  top: 17px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px;
  background: #050506;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.03);
  z-index: 8;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: var(--ink);
}
.screen-track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(.65,0,.35,1);
}
.screen-track.on-trip { transform: translateX(-50%); }
.screen { width: 50%; height: 100%; position: relative; overflow: hidden; }

/* --- Globe screen --- */
.globe-screen { background: radial-gradient(circle at 50% 20%, #1a2b2c 0%, var(--ink) 60%); }
.globe-topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 6;
  padding: 34px 18px 24px;
  background: linear-gradient(to bottom, rgba(12,11,10,0.85), transparent);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.globe-topbar .eyebrow-mini { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.globe-topbar h4 { color: #fff; font-size: 1.15rem; font-weight: 700; margin-top: 3px; }
.trip-count-pill {
  flex-shrink: 0;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.globe-stage { position: absolute; inset: 0; background: #0b1a1c; }
.demo-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.demo-map-status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: #0b1a1c;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.demo-map-status.fade-out { opacity: 0; }
.demo-map-status[hidden] { display: none; }

/* MapLibre HTML markers — same idea as the app's thumb markers */
.demo-thumb-marker {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.92);
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
  overflow: hidden;
  background: var(--accent);
  cursor: pointer;
  padding: 0;
}
.demo-thumb-marker.home { background: #e9c46a; cursor: default; }
.demo-thumb-marker img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-thumb-marker.nudge { animation: demo-nudge 1.6s ease-in-out infinite; }
@keyframes demo-nudge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.demo-map .maplibregl-ctrl-attrib {
  background: rgba(12, 11, 10, 0.55) !important;
  color: rgba(255,255,255,0.75) !important;
  font-size: 9px !important;
  max-width: 70%;
}
.demo-map .maplibregl-ctrl-attrib a { color: rgba(255,255,255,0.9) !important; }
.demo-map .maplibregl-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.globe-hint {
  position: absolute; left: 0; right: 0; bottom: 68px; z-index: 5;
  text-align: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.globe-screen.is-selected .globe-hint,
.bottom-sheet.open ~ .globe-hint { opacity: 0; }

/* dark "selected trip" sheet, matches the app's map bottom sheet */
.bottom-sheet {
  position: absolute; left: 8px; right: 8px; bottom: 64px; z-index: 7;
  background: #16181a;
  border-radius: 22px;
  padding: 14px 14px 16px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.4);
  transform: translateY(140%);
  transition: transform 0.5s cubic-bezier(.34,1.56,.64,1);
}
.bottom-sheet.open { transform: translateY(0); }
.bottom-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sheet-close {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: none; background: rgba(255,255,255,0.1);
  border-radius: 50%; padding: 0; cursor: pointer;
}
.sheet-close svg.icon { width: 12px; height: 12px; }
.bottom-sheet-row { display: flex; gap: 12px; }
.bottom-sheet-row img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.bottom-sheet-meta h5 { color: #fff; font-size: 1rem; font-weight: 800; line-height: 1.25; }
.bottom-sheet-meta .sub { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 4px; }
.bottom-sheet-meta .dist { font-size: 0.8rem; color: var(--accent); font-weight: 700; margin-top: 3px; }
.sheet-open-btn {
  display: block; width: 100%;
  margin-top: 14px;
  background: #fff; color: var(--ink);
  border: none; border-radius: 14px;
  padding: 12px 0;
  font-size: 0.88rem; font-weight: 700;
  cursor: pointer;
}

/* persistent bottom tab bar, decorative only (mirrors the real app chrome) */
.fake-bottom-nav {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  height: 54px;
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(12,11,10,0.92);
  border-top: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}
.fake-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 8px; font-weight: 600; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.35);
}
.fake-nav-item svg.icon { width: 16px; height: 16px; color: inherit; }
.fake-nav-item.active { color: var(--accent); }
.fake-nav-add {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  margin-top: -18px;
  box-shadow: 0 4px 12px rgba(42,157,143,0.5);
}
.fake-nav-add svg.icon { width: 16px; height: 16px; stroke-width: 2.4; }

/* --- Trip detail screen --- */
/* overflow hidden on purpose: the demo is tap-only (marker, then card),
   scrollTop is still driven by JS, users just can't drag/wheel-scroll it themselves */
.trip-screen { background: var(--canvas); overflow-y: hidden; scrollbar-width: none; }
.trip-screen::-webkit-scrollbar { display: none; }
.trip-hero { position: relative; height: 190px; width: 100%; overflow: hidden; }
.trip-hero img { width: 100%; height: 100%; object-fit: cover; }
.trip-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--canvas), rgba(12,11,10,0.15) 60%, transparent); }
.trip-back {
  position: absolute; top: 16px; left: 14px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.25); backdrop-filter: blur(6px);
  display: grid; place-items: center; color: #fff;
  border: none; cursor: pointer;
}
.trip-card { position: relative; margin: -36px 14px 0; background: var(--card); border-radius: 22px; padding: 16px 18px 18px; box-shadow: 0 12px 30px rgba(12,11,10,0.1); }
.trip-card .tag { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.trip-card h5 { font-size: 1.35rem; font-weight: 800; margin-top: 3px; letter-spacing: -0.01em; }
.trip-card .dates { font-size: 0.76rem; color: var(--muted-foreground); margin-top: 2px; }
.trip-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.trip-stats .stat-label { display: flex; align-items: center; gap: 5px; font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: rgba(12,11,10,0.4); }
.trip-stats .stat-label svg.icon { width: 12px; height: 12px; color: var(--accent); }
.trip-stats .stat-num { font-size: 1.05rem; font-weight: 800; margin-top: 4px; color: var(--accent); }
.trip-stats .stat-block:last-child { border-left: 1px solid var(--border); padding-left: 12px; }
.trip-stats .stat-block:last-child .stat-num { color: var(--foreground); }
.trip-stats .stat-note { font-size: 8.5px; color: rgba(12,11,10,0.35); margin-top: 1px; }
.trip-story { padding: 18px 18px 6px; font-size: 0.82rem; line-height: 1.6; color: rgba(12,11,10,0.75); }
.trip-media-label { padding: 8px 18px 6px; font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(12,11,10,0.4); }
.trip-media { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 70px; }
.trip-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }

/* FAQ-ish honesty block */
.note-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 30px;
  max-width: var(--narrow);
}
.note-block p { color: var(--muted-foreground); font-size: 0.94rem; }
.note-block p + p { margin-top: 10px; }
.note-block strong { color: var(--foreground); }

/* CTA: plain, no dark band */
.cta {
  padding: 72px 0 96px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; max-width: 20ch; }
.cta p { color: var(--muted-foreground); margin-top: 8px; font-size: 0.95rem; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links { display: flex; gap: 22px; font-size: 0.85rem; color: var(--muted-foreground); }
.footer-links a:hover { color: var(--foreground); }
.footer-copy { font-size: 0.82rem; color: var(--muted-foreground); }

/* PRIVACY PAGE */
.prose { max-width: 680px; margin: 0 auto; padding: 64px 24px 100px; }
.prose h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.prose .meta { color: var(--muted-foreground); font-size: 0.88rem; margin-bottom: 40px; }
.prose h2 { font-size: 1.05rem; font-weight: 700; margin: 32px 0 10px; letter-spacing: -0.01em; }
.prose p, .prose li { font-size: 0.95rem; color: #33343a; margin-bottom: 12px; }
.prose ul, .prose ol, .prose-ol { padding-left: 20px; }
.prose li, .prose-ol li { margin-bottom: 6px; }
.prose-ol { margin-bottom: 12px; }
.prose a { color: var(--accent); font-weight: 600; }
.prose a:hover { text-decoration: underline; }


/* Focus visibility */
a:focus-visible,
button:focus-visible,
.lang-switch-btn:focus-visible,
.sheet-open-btn:focus-visible,
.sheet-close:focus-visible,
.trip-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.legal-lang-notice {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--muted-foreground);
  margin-bottom: 20px;
}
.legal-lang-notice[hidden] { display: none !important; }

@media (max-width: 720px) {
  .nav-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 72%;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
  .cta { flex-direction: column; align-items: flex-start; }
}
