/* Jet Lag Companion — landing site. Brand palette from the app theme. */
:root {
  --primary: #4f8fd8;
  --primary-strong: #2c6fbe;
  --primary-light: #e8f2ff;
  --tertiary: #75afea;
  --text: #233044;
  --text-soft: #5d6f86;
  --bg: #f7fafd;
  --bg-soft: #eef4fb;
  --surface: #ffffff;
  --border: #dce7f5;
  --shadow: 0 10px 30px rgba(25, 63, 110, 0.10);
  --shadow-sm: 0 4px 14px rgba(25, 63, 110, 0.08);
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1120px;
  --font-title: "RobotoSlab", Georgia, serif;
  --font-body: "NunitoSans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 0.6em; }
h3 { font-size: 1.25rem; margin: 0 0 0.3em; }
p { margin: 0 0 1em; }
a { color: var(--primary-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-soft); }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
  font-size: 1rem; font-family: var(--font-body);
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-strong); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--primary-strong); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #111; color: #fff; padding: 10px 18px; border-radius: 14px;
  min-width: 168px;
}
.store-badge:hover { text-decoration: none; opacity: .92; }
.store-badge svg { width: 24px; height: 24px; flex: none; fill: #fff; }
.store-badge .small { font-size: .68rem; opacity: .85; line-height: 1; }
.store-badge .big { font-size: 1.05rem; font-weight: 700; line-height: 1.1; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand-text { font-family: var(--font-title); font-size: 1.15rem; }
.main-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--text); font-weight: 600; }
.main-nav a:hover { color: var(--primary-strong); text-decoration: none; }

/* Language selector */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 12px; font: inherit; font-weight: 600; color: var(--text);
}
.lang-btn .flag { font-size: 1.1rem; }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); padding: 6px; min-width: 184px; display: none;
  max-height: 60vh; overflow: auto; z-index: 60;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: start;
  background: none; border: 0; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  font: inherit; color: var(--text);
}
.lang-menu button:hover { background: var(--bg-soft); }
.lang-menu button[aria-current="true"] { background: var(--primary-light); font-weight: 700; }
.lang-menu .flag { font-size: 1.15rem; }

/* Mobile menu */
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 40px; }
.app-icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; background: var(--primary-light); color: var(--primary-strong);
  font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero p.lead { font-size: 1.2rem; color: var(--text-soft); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 14px; }
.hero-note { font-size: .9rem; color: var(--text-soft); }
.hero-visual { display: flex; justify-content: center; gap: 18px; align-items: flex-end; }

/* Phone mockup */
.phone {
  width: min(280px, 72vw); aspect-ratio: 9 / 19.5; background: #0e1726;
  border-radius: 38px; padding: 10px; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.06);
}
.phone.small { width: min(210px, 56vw); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; background: var(--bg-soft); }

/* Sections */
section { padding: clamp(48px, 7vw, 84px) 0; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--text-soft); font-size: 1.1rem; }

/* Why cards */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.why-card .ico { font-size: 1.8rem; margin-bottom: 10px; }
.why-card h3 { font-size: 1.1rem; }
.why-card p { margin: 0; color: var(--text-soft); font-size: .95rem; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.feature:last-child { margin-bottom: 0; }
.feature.reverse .feature-visual { order: -1; }
.feature-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px; background: var(--primary-light);
  color: var(--primary-strong); font-weight: 800; margin-bottom: 14px; font-family: var(--font-title);
}
.feature-visual { display: flex; justify-content: center; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.step .n { font-family: var(--font-title); font-size: 1.6rem; color: var(--primary); font-weight: 700; }

/* Languages strip */
.lang-strip { background: var(--bg-soft); }
.lang-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.lang-chip { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-weight: 600; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); text-align: center; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .stores { justify-content: center; margin-top: 22px; }
.cta-band .btn-ghost { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.45); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.26); }

/* Legal / content pages */
.page { padding: clamp(40px, 6vw, 72px) 0; }
.page .prose { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.page .prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.page .prose h1 { margin-bottom: .2em; }
.page .updated { color: var(--text-soft); font-size: .9rem; margin-bottom: 1.5em; }
.placeholder { background: #fff7e6; border: 1px dashed #e6b800; border-radius: 6px; padding: 1px 7px; font-style: italic; }
.faq dt { font-weight: 700; margin-top: 1em; }
.faq dd { margin: .2em 0 0; color: var(--text-soft); }

/* Footer */
.site-footer { background: var(--text); color: #c7d3e4; padding: 40px 0 28px; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: #dbe6f4; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }

/* RTL tweaks */
[dir="rtl"] .feature.reverse .feature-visual { order: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { max-width: none; margin-inline: auto; }
  .hero-actions, .stores { justify-content: center; }
  .app-icon { margin-inline: auto; }
  .hero-visual { order: -1; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 24px; }
  .feature.reverse .feature-visual { order: 0; }
  .feature-text { text-align: center; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav { position: fixed; inset-inline: 0; top: 64px; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 20px; gap: 4px;
    transform: translateY(-130%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 10px 4px; }
  .menu-toggle { display: block; margin-inline-start: auto; }
}
@media (max-width: 460px) {
  .why-grid { grid-template-columns: 1fr; }
}
