/* ============================================================
   Wright Travelogue — Marketing Site
   Color palette mirrors the app
   ============================================================ */

:root {
  --terracotta: #C1440E;
  --terracotta-dark: #9e360a;
  --terracotta-light: #f0cdb9;
  --parchment: #F5ECD7;
  --parchment-dark: #ede0c4;
  --deep-green: #2D4A22;
  --deep-green-light: #3d6430;
  --stone: #8B7355;
  --sandstone: #D4B896;
  --charcoal: #2C2416;
  --warm-gray: #6B6560;
  --border: #DDD0BC;
  --surface: #FDF6E3;
  --white: #ffffff;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(44,36,22,0.08);
  --shadow-md: 0 4px 16px rgba(44,36,22,0.12);
  --shadow-lg: 0 12px 40px rgba(44,36,22,0.16);
  --shadow-phone: 0 24px 64px rgba(44,36,22,0.22), 0 4px 16px rgba(44,36,22,0.12);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================ Container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================ Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 246, 227, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-icon { width: 32px; height: 32px; border-radius: 8px; }
.nav-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--charcoal);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--warm-gray);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--charcoal); text-decoration: none; }
.nav-cta {
  background: var(--terracotta) !important;
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--terracotta-dark) !important; }

/* ============================================================ Hero */
.hero {
  position: relative;
  background: var(--parchment);
  overflow: hidden;
  padding: 80px 0 0;
}
.hero-ornament {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,68,14,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
  padding-bottom: 60px;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--warm-gray);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}
.hero-platform {
  font-size: 13px;
  color: var(--warm-gray);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: fit-content;
}
.hero-stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--terracotta);
}
.stat-lbl {
  display: block;
  font-size: 12px;
  color: var(--warm-gray);
  margin-top: 2px;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.hero-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-wave {
  position: relative;
  height: 60px;
  margin-top: -1px;
}
.hero-wave svg { width: 100%; height: 100%; }

/* ============================================================ Phone Frame */
.phone-frame {
  position: relative;
  width: 280px;
  background: var(--charcoal);
  border-radius: 44px;
  padding: 14px;
  box-shadow: var(--shadow-phone);
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
}
.phone-frame .phone-screen {
  width: 100%;
  border-radius: 32px;
  display: block;
  aspect-ratio: 9/19.5;
  object-fit: cover;
}
.phone-placeholder {
  width: 100%;
  aspect-ratio: 9/19.5;
  border-radius: 32px;
  background: var(--parchment);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--stone);
  font-size: 12px;
}
.placeholder-icon { font-size: 32px; }

.phone-frame--sm { width: 240px; }
.phone-frame--gallery { width: 180px; }
.phone-frame--gallery .phone-screen { aspect-ratio: 9/19.5; }
.phone-frame--gallery .phone-placeholder { aspect-ratio: 9/19.5; font-size: 10px; }

/* ============================================================ App Store Button */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--charcoal);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-appstore:hover { background: #1a1510; transform: translateY(-1px); text-decoration: none; }
.btn-appstore--light { background: var(--white); color: var(--charcoal); }
.btn-appstore--light:hover { background: var(--parchment); }
.appstore-icon { width: 28px; height: 28px; flex-shrink: 0; }
.btn-appstore span { display: flex; flex-direction: column; }
.appstore-sub { font-size: 10px; opacity: 0.75; letter-spacing: 0.3px; }
.appstore-main { font-size: 18px; font-weight: 600; line-height: 1.1; }

/* ============================================================ Section shared */
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
  text-align: center;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--charcoal);
  text-align: center;
  margin-bottom: 64px;
}

/* ============================================================ Features */
.features {
  padding: 100px 0;
  background: var(--white);
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }
.feature-phone-wrap {
  display: flex;
  justify-content: center;
}
.feature-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--terracotta);
  background: var(--terracotta-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.feature-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 16px;
  line-height: 1.2;
}
.feature-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--warm-gray);
  margin-bottom: 24px;
}
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  font-size: 14px;
  color: var(--charcoal);
  padding-left: 22px;
  position: relative;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}

/* ============================================================ Screenshots */
.screenshots {
  padding: 100px 0;
  background: var(--parchment);
}
.screenshots-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--sandstone) transparent;
}
.screenshots-scroll::-webkit-scrollbar { height: 4px; }
.screenshots-scroll::-webkit-scrollbar-track { background: transparent; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: var(--sandstone); border-radius: 2px; }
.screenshot-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.screenshot-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--warm-gray);
}

/* ============================================================ Achievements */
.achievements {
  padding: 100px 0;
  background: var(--white);
}
.achievements-sub {
  text-align: center;
  font-size: 16px;
  color: var(--warm-gray);
  max-width: 560px;
  margin: -44px auto 56px;
  line-height: 1.6;
}
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.badge-card {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.badge-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.badge-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 14px;
}
.badge-icon--green { background: rgba(45,74,34,0.12); }
.badge-icon--terracotta { background: rgba(193,68,14,0.12); }
.badge-icon--stone { background: rgba(139,115,85,0.12); }
.badge-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.badge-desc {
  font-size: 12px;
  color: var(--warm-gray);
  line-height: 1.5;
}

/* ============================================================ FAQ */
.faq {
  padding: 100px 0;
  background: var(--parchment);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 48px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--terracotta);
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item p {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--warm-gray);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.faq-item p a { color: var(--terracotta); }
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  text-align: center;
}
.contact-box h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--charcoal);
}
.contact-box p {
  font-size: 15px;
  color: var(--warm-gray);
  line-height: 1.6;
}
.contact-box a { color: var(--terracotta); font-weight: 600; }

/* ============================================================ Download CTA */
.download-cta {
  background: var(--deep-green);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-ornament {
  position: absolute;
  top: -160px;
  left: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.download-cta-inner {
  text-align: center;
  position: relative;
}
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
}

/* ============================================================ Footer */
.footer {
  background: var(--charcoal);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  opacity: 0.9;
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--parchment);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 13px;
  color: var(--sandstone);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-legal {
  font-size: 11px;
  color: var(--stone);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================ Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-phone-wrap { display: none; }

  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    text-align: center;
    gap: 40px;
  }
  .feature-list { align-items: center; }
  .feature-list li { text-align: left; }

  .faq-grid { grid-template-columns: 1fr; }

  .nav-links a:not(.nav-cta) { display: none; }
}

@media (max-width: 600px) {
  .hero { padding-top: 48px; }
  .features, .screenshots, .achievements, .faq, .download-cta { padding: 64px 0; }
  .section-title { margin-bottom: 40px; }
  .feature-row { margin-bottom: 64px; }
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
}
