/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --amber:     #F5A623;
  --amber-lt:  #FEF0DC;
  --amber-dk:  #C47A0A;
  --navy:      #1E2D4A;
  --navy-lt:   #2C3E5E;
  --cream:     #FAF6F0;
  --cream-dk:  #F0E9DE;
  --ink:       #1A1714;
  --ink-55:    rgba(26,23,20,0.55);
  --ink-40:    rgba(26,23,20,0.40);
  --ink-12:    rgba(26,23,20,0.12);
  --white:     #ffffff;
  --shadow-sm: 0 2px 8px rgba(26,23,20,0.08);
  --shadow-md: 0 8px 32px rgba(26,23,20,0.12);
  --shadow-lg: 0 20px 60px rgba(26,23,20,0.16);
  --shadow-phone: 0 40px 100px rgba(26,23,20,0.28), 0 12px 32px rgba(26,23,20,0.14);
  --nav-h: 72px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ── BASE TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
em { font-style: italic; }

/* ── LAYOUT ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── EYEBROW LABELS ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 20px;
}
.eyebrow--amber  { background: var(--amber-lt); color: var(--amber-dk); }
.eyebrow--white  { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.85); }
.eyebrow--navy   { background: rgba(30,45,74,0.12); color: var(--navy); }
.eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%; background: currentColor; opacity: 0.6;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: 100px;
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease,
              box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg  { padding: 16px 34px; font-size: 16px; }
.btn-md  { padding: 12px 26px; font-size: 14px; }
.btn-sm  { padding: 9px 20px;  font-size: 13px; }

.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-dk); color: white; box-shadow: 0 8px 24px rgba(245,166,35,0.4); }

.btn-secondary { background: var(--navy); color: white; }
.btn-secondary:hover { background: var(--navy-lt); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink-12); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn-ghost-white { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

/* ── PHONE MOCKUP ── */
.phone-wrap { display: flex; justify-content: center; align-items: flex-start; }

.phone-frame {
  position: relative;
  width: 260px;
  background: #111214;
  border-radius: 54px;
  padding: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    var(--shadow-phone);
}
.phone-frame--sm  { width: 220px; border-radius: 46px; padding: 12px; }
.phone-frame--lg  { width: 300px; border-radius: 60px; padding: 16px; }

.phone-island {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 30px;
  background: #111214;
  border-radius: 100px;
  z-index: 3;
}
.phone-frame--sm .phone-island { width: 78px; height: 26px; top: 18px; }
.phone-frame--lg .phone-island { width: 106px; height: 34px; top: 26px; }

.phone-screen {
  border-radius: 42px;
  overflow: hidden;
  background: #1a1a1e;
  aspect-ratio: 9 / 19.5;
  position: relative;
}
.phone-frame--sm .phone-screen { border-radius: 36px; }
.phone-frame--lg .phone-screen { border-radius: 46px; }

.phone-screen img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
}

/* ── REVEAL ON SCROLL ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition:
    opacity   0.65s cubic-bezier(0.16,1,0.3,1),
    transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* ── KEYFRAMES ── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(20px) } to { opacity:1; transform:translateY(0) } }
@keyframes fadeIn   { from { opacity:0 } to { opacity:1 } }
@keyframes floatPhone { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 48px;
  background: rgba(250,246,240,0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26,23,20,0.07);
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: 0 4px 32px rgba(26,23,20,0.08); }

.nav-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.025em;
}

.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links li a {
  font-size: 14px; font-weight: 400; color: var(--ink-55);
  text-decoration: none;
  padding: 8px 14px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links li a:hover { color: var(--ink); background: rgba(26,23,20,0.04); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-login {
  font-size: 14px; font-weight: 400; color: var(--ink-55);
  text-decoration: none; transition: color 0.2s;
}
.nav-login:hover { color: var(--ink); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; width: 36px; height: 36px; padding: 6px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--cream); z-index: 190;
  padding: 28px 28px 48px;
  flex-direction: column; overflow-y: auto;
}
.nav-drawer.open { display: flex; animation: fadeIn 0.2s ease; }
.drawer-links { list-style: none; display: flex; flex-direction: column; }
.drawer-links a {
  display: block; font-size: 20px; font-weight: 400; color: var(--ink);
  text-decoration: none; padding: 16px 0;
  border-bottom: 1px solid var(--ink-12);
  transition: color 0.2s;
}
.drawer-links a:hover { color: var(--amber-dk); }
.drawer-actions { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }

/* ── FOOTER ── */
.site-footer { background: var(--ink); padding: 72px 48px 40px; color: white; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.5fr;
  gap: 56px; margin-bottom: 60px;
}
.footer-logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 600;
  color: white; letter-spacing: -0.025em;
}
.footer-tagline {
  font-size: 14px; color: rgba(255,255,255,0.38);
  font-weight: 300; line-height: 1.6;
  margin-bottom: 24px; max-width: 240px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social-link {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 16px;
  transition: background 0.2s, transform 0.2s;
}
.footer-social-link:hover { background: rgba(245,166,35,0.2); transform: translateY(-2px); }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(255,255,255,0.28); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: rgba(255,255,255,0.9); }
.footer-updates p { font-size: 13px; color: rgba(255,255,255,0.42); line-height: 1.5; margin-bottom: 14px; }
.footer-email-form { display: flex; gap: 8px; }
.footer-email-input {
  flex: 1; min-width: 0;
  padding: 10px 16px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  font-size: 13px; font-family: 'DM Sans', sans-serif; color: white;
  outline: none; transition: border-color 0.2s, background 0.2s;
}
.footer-email-input::placeholder { color: rgba(255,255,255,0.25); }
.footer-email-input:focus { border-color: var(--amber); background: rgba(255,255,255,0.1); }
.footer-email-btn {
  padding: 10px 18px; background: var(--amber); color: var(--navy);
  border: none; border-radius: 100px;
  font-size: 13px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer-email-btn:hover { background: var(--amber-dk); color: white; transform: translateY(-1px); }
.footer-email-success {
  display: none; font-size: 13px; color: #4caf50;
  margin-top: 10px;
}
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.07); margin-bottom: 28px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.22); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.28); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ── MOTION ── */

/* Hero glow — beta page keeps the original pulse; home gets a slow warming drift */
@keyframes heroGlow {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 1;    }
}
@keyframes heroWarmA {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 1;    }
}
@keyframes heroWarmB {
  0%, 100% { opacity: 1;    }
  50%       { opacity: 0.08; }
}
/* ::before = cooler amber layer drifts up; ::after = warmer orange-amber cross-fades in */
.hero::before      { animation: heroWarmA 18s ease-in-out infinite; }
.hero::after       { animation: heroWarmB 18s ease-in-out infinite; }
.beta-hero::before { animation: heroGlow  10s ease-in-out infinite; }

/* Button active press */
.btn:active { transform: translateY(0) scale(0.98) !important; box-shadow: none !important; }

/* Founder card hover (about page) */
.founder-card {
  transition: transform 0.25s, box-shadow 0.25s;
}
.founder-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(26,23,20,0.13); }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto !important; }
  /* Reveal: show content immediately, no fade/rise */
  .reveal, .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── RESPONSIVE SHARED ── */
@media (max-width: 1024px) {
  .container      { padding: 0 32px; }
  .site-nav       { padding: 0 32px; }
  .site-footer    { padding: 64px 32px 36px; }
  .footer-top     { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand   { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .container   { padding: 0 20px; }
  .site-nav    { padding: 0 20px; }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  .phone-frame     { width: 220px; border-radius: 46px; padding: 12px; }
  .phone-frame--lg { width: 240px; border-radius: 50px; padding: 13px; }
  .phone-frame--sm { width: 190px; border-radius: 40px; padding: 10px; }
  .phone-island    { width: 78px; height: 26px; top: 18px; }
  .phone-screen    { border-radius: 36px; }

  .site-footer     { padding: 48px 20px 32px; }
  .footer-top      { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand    { grid-column: auto; }
  .footer-bottom   { flex-direction: column; align-items: flex-start; }
}

/* ── DEPTH & WARMTH PASS ──────────────────────────────────────────────────── */

/* 1. Showcase sections: warm gradient backgrounds replace flat white.
      ID + sibling specificity beats .showcase--white { background: white }
      defined in the page-level <style> block.                              */
.showcase--white#features {
  /* Itinerary — warm diagonal: white top-left → amber-cream bottom-right */
  background: linear-gradient(158deg, #ffffff 0%, #faf2e6 100%);
}
#features + section + section.showcase--white {
  /* Expenses — vertical fall: near-white top → warm cream base */
  background: linear-gradient(180deg, #fefdfb 0%, #faf0e3 100%);
}
#features + section + section + section + section.showcase--white {
  /* Multi-city — shallow angle: cool ivory → soft amber warmth */
  background: linear-gradient(128deg, #fdfcf9 0%, #f9efe2 100%);
}

/* 2. Whisper-light inset shadow at the top of every showcase section so
      light sections read as layered rather than flat against each other.  */
.showcase {
  box-shadow: inset 0 6px 20px rgba(26,23,20,0.045);
}

/* 3. Fix-item cards: gentle resting elevation — lifts further on hover
      via the existing .fix-item:hover rule in index.html.                 */
.fix-item {
  box-shadow: 0 2px 10px rgba(26,23,20,0.07), 0 1px 3px rgba(26,23,20,0.04);
}

/* 4. Final CTA: lifted primary button at rest, even more so on hover */
.final-cta .btn-primary {
  box-shadow: 0 4px 20px rgba(245,166,35,0.30);
}
.final-cta .btn-primary:hover {
  box-shadow: 0 10px 32px rgba(245,166,35,0.46);
}
