/* ============================================================
   JOSTE - landing page (condensed)
   Palette + type mirror the app's design system (constants/theme.ts):
   espresso / gold / cream "quiet luxury".
   ============================================================ */

:root {
  --cream:        #F7F2EA;
  --cream-alt:    #FAF6EF;
  --surface:      #FFFFFF;
  --sand:         #EDE3D6;
  --espresso:     #a86843;
  --espresso-dk:  #2F2017;
  --gold:         #B0894F;
  --gold-light:   #C7A56B;
  --heading:      #1a130d;
  --body:         #857A6D;
  --placeholder:  #B3A795;
  --border:       #E7DECF;
  --on-primary:   #FBF7F0;

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

  --shadow-card: 0 18px 48px rgba(40, 30, 20, 0.14);
  --shadow-soft: 0 8px 24px rgba(40, 30, 20, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--heading);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: var(--espresso); color: var(--on-primary); }

/* ---------- atoms ---------- */
.eyebrow {
  font-weight: 600; font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-weight: 600; font-size: 0.95rem; color: var(--on-primary);
  background: var(--espresso); border-radius: 999px; padding: 0.95em 1.7em;
  border: none; cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.4s var(--ease);
  box-shadow: 0 8px 22px rgba(168, 104, 67, 0.28);
}
.btn:hover { background: var(--espresso-dk); transform: translateY(-2px); }
.btn--sm { padding: 0.7em 1.3em; font-size: 0.85rem; }

/* ---------- grain + cursor ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border: 1.5px solid var(--gold); border-radius: 50%;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s, border-color 0.3s, opacity 0.3s;
  opacity: 0; will-change: transform;
}
.cursor.is-hover { width: 52px; height: 52px; margin: -26px 0 0 -26px; background: rgba(176,137,79,0.12); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9500; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.preloader__logo { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow-soft); }
.preloader__word { display: flex; gap: 0.12em; font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 6vw, 2.8rem); letter-spacing: 0.16em; color: var(--espresso); }
.preloader__word span { opacity: 0; transform: translateY(18px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.1rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.is-stuck { background: rgba(247,242,234,0.85); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--border); padding-top: 0.7rem; padding-bottom: 0.7rem; }
.nav__brand { display: flex; align-items: center; gap: 0.6rem; }
.nav__logo { width: 36px; height: 36px; border-radius: 10px; }
.nav__word { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.16em; color: var(--heading); }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { font-size: 0.9rem; font-weight: 500; opacity: 0.78; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1.5px; background: var(--gold); transition: width 0.35s var(--ease); }
.nav__links a:hover { opacity: 1; } .nav__links a:hover::after { width: 100%; }

/* ============================================================
   HERO - 100vh, centered
   ============================================================ */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding: 6rem 1.5rem 4rem;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
}
/* readable centered text: cream wash + soft radial behind copy */
.hero__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 50% 52%, rgba(247,242,234,0.86) 0%, rgba(247,242,234,0.5) 45%, rgba(247,242,234,0.12) 75%),
    linear-gradient(to bottom, rgba(247,242,234,0.9) 0%, rgba(247,242,234,0.15) 22%, rgba(247,242,234,0.15) 70%, var(--cream) 99%);
}
.hero__content { position: relative; z-index: 2; max-width: 760px; }
.hero__eyebrow { margin-bottom: 1.1rem; }
.hero__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.7rem, 8vw, 6rem); line-height: 1.03;
  letter-spacing: -0.015em; color: var(--heading); margin-bottom: 1.4rem;
}
.hero__title .line { display: block; }
.hero__title em { color: var(--espresso); font-weight: 700; }
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 46ch; margin: 0 auto 2rem;
  color: var(--heading); opacity: 0.88;
}
.hero__sub em { color: var(--espresso); font-style: italic; }
.hero__cta { justify-content: center; }

.hero__scroll { position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%); z-index: 3; }
.hero__scroll-dot { display: block; width: 22px; height: 36px; border: 1.5px solid var(--gold); border-radius: 12px; position: relative; }
.hero__scroll-dot::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--gold); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { top: 6px; opacity: 0; } 30% { opacity: 1; } 100% { top: 24px; opacity: 0; } }

/* ---------- store badges ---------- */
.store-badges { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--espresso-dk); color: #fff;
  border-radius: 14px; padding: 0.6rem 1.1rem 0.6rem 0.95rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); box-shadow: var(--shadow-soft);
}
.store-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.store-badge svg { width: 25px; height: 25px; fill: #fff; flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-badge small { font-size: 0.6rem; letter-spacing: 0.04em; opacity: 0.85; }
.store-badge strong { font-size: 1.02rem; font-weight: 600; }
.store-badges--dark .store-badge { background: var(--cream); color: var(--espresso-dk); }
.store-badges--dark .store-badge svg { fill: var(--espresso-dk); }

/* ============================================================
   FEATURES
   ============================================================ */
.features { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.8rem, 7vh, 4.5rem) clamp(1.4rem, 5vw, 3rem); }
.features__head { text-align: center; margin-bottom: clamp(1.8rem, 4vh, 2.6rem); }
.features__head .eyebrow { margin-bottom: 0.9rem; }
.features__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.01em; }
.features__title em { color: var(--espresso); }

.features__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.features__list { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.feature-card { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.3rem; box-shadow: var(--shadow-soft); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.feature-card__ic { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--gold); line-height: 1.2; flex-shrink: 0; }
.feature-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--heading); margin-bottom: 0.15rem; }
.feature-card p { font-size: 0.9rem; color: var(--body); line-height: 1.5; }

/* ---------- phone ---------- */
.phone {
  position: relative; justify-self: center;
  width: clamp(250px, 30vw, 300px); aspect-ratio: 9 / 19.2;
  background: #14100c; border-radius: 42px; padding: 10px;
  box-shadow: var(--shadow-card); will-change: transform;
}
.phone__notch { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 34%; height: 21px; background: #14100c; border-radius: 0 0 14px 14px; z-index: 3; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--cream); }
.phone__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.phone__screen.is-empty .phone__shot { display: none; }
.phone__placeholder { position: absolute; inset: 0; z-index: 1; }
.phone__placeholder img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.96); }
.phone__tag {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); width: 86%; text-align: center;
  font-size: 0.62rem; letter-spacing: 0.06em; color: var(--espresso-dk);
  background: rgba(251,247,240,0.92); padding: 0.5em 0.7em; border-radius: 10px; box-shadow: var(--shadow-soft);
}
.phone__tag code { font-size: 0.6rem; color: var(--espresso); }

/* ============================================================
   DESTINATIONS
   ============================================================ */
.dest { padding: clamp(2.8rem, 7vh, 4.5rem) 0; background: var(--cream-alt); }
.dest__head { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.4rem, 5vw, 3rem); text-align: center; }
.dest__head .eyebrow { margin-bottom: 0.8rem; }
.dest__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 5vw, 3.2rem); }
.dest__title em { color: var(--espresso); }
.dest__sub { color: var(--body); max-width: 52ch; margin: 0.8rem auto 0; }

.dest__rail {
  display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: clamp(1.5rem, 3.5vh, 2.2rem) clamp(1.4rem, 5vw, 3rem) 1rem;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.dest__rail::-webkit-scrollbar { display: none; }
.dcard {
  position: relative; flex: 0 0 clamp(220px, 24vw, 280px); aspect-ratio: 4 / 5;
  border-radius: 20px; overflow: hidden; scroll-snap-align: start; box-shadow: var(--shadow-card);
}
.dcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.dcard:hover img { transform: scale(1.06); }
.dcard figcaption { position: absolute; inset: auto 0 0 0; padding: 1.4rem 1.2rem 1.1rem; color: #fff;
  background: linear-gradient(to top, rgba(26,17,10,0.82), rgba(26,17,10,0.0)); }
.dcard__vibe { font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.92; }
.dcard h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 0.15rem 0 0.3rem; }
.dcard__from { font-size: 0.78rem; opacity: 0.9; }
.dcard__from strong { font-family: var(--serif); color: var(--gold-light); font-size: 0.95rem; }
.dest__credit { text-align: center; font-size: 0.72rem; color: var(--placeholder); margin-top: 0.5rem; }

/* ============================================================
   DOWNLOAD + FOOTER
   ============================================================ */
.download {
  position: relative; background: var(--espresso-dk); color: var(--cream);
  background-image: linear-gradient(160deg, rgba(47,32,23,0.97), rgba(58,40,27,0.97)), radial-gradient(80% 80% at 50% 0%, rgba(176,137,79,0.32), transparent 70%);
}
.download__inner { max-width: 820px; margin: 0 auto; padding: clamp(2.8rem, 7vh, 4.5rem) clamp(1.4rem, 5vw, 3rem) clamp(2rem, 4vh, 3rem); text-align: center; }
.download__logo { width: 66px; height: 66px; border-radius: 16px; margin: 0 auto 1.4rem; box-shadow: var(--shadow-card); }
.download .eyebrow { margin-bottom: 0.9rem; }
.download__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; color: var(--cream); margin-bottom: 0.9rem; }
.download__title em { color: var(--gold-light); }
.download__sub { color: rgba(247,242,234,0.8); margin-bottom: 2rem; font-size: 1.08rem; }
.download .store-badges { justify-content: center; }
.download__note { margin-top: 1rem; font-size: 0.75rem; color: rgba(247,242,234,0.55); letter-spacing: 0.03em; }

.footer { border-top: 1px solid rgba(247,242,234,0.12); text-align: center; padding: 2.4rem clamp(1.4rem, 5vw, 3rem); color: rgba(247,242,234,0.7); }
.footer__brand { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.footer__brand img { width: 32px; height: 32px; border-radius: 9px; }
.footer__brand .nav__word { color: var(--cream); }
.footer__tag { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold-light); margin-bottom: 1rem; }
.footer__fine { font-size: 0.72rem; opacity: 0.55; max-width: 60ch; margin: 0 auto; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal, .reveal-device { opacity: 0; transform: translateY(30px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal-device { transform: translateY(40px) scale(0.97); }
.reveal.in, .reveal-device.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .features__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .phone { order: -1; }
}
@media (max-width: 560px) {
  .hero__title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .store-badge { padding: 0.55rem 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, .reveal-device { opacity: 1; transform: none; }
  .hero__scroll-dot::after { display: none; }
}
