/*
 * TrekSathi landing site — "Glacier & Saffron".
 * Blue hour on the ice: a glacier-teal sky behind the real Annapurna contour
 * map (ice blue, glowing), slate type, and the saffron of prayer flags for
 * actions and the trail. Type: Baloo 2 (Latin + Devanagari) for headlines,
 * Mukta for text. The app uses the same palette (apps/mobile/src/ui/tokens.ts).
 */
:root {
  --night: #0F2E3A;        /* glacier night */
  --glacier: #1E5A6B;
  --saffron: #F2A33A;      /* actions, trail */
  --saffron-deep: #D9861A;
  --amber: #F6B862;
  --ice: #BFE6EA;          /* contour light */
  --ink: #10242B;          /* text */
  --muted: #3F5961;
  --page: #FFFFFF;
  --mist: #EAF3F5;         /* snow shade */
  --glass: rgba(255, 255, 255, .62);
  --glass-line: rgba(255, 255, 255, .85);
  --open: #3E8E5A;
  --caution: #D98A1E;
  --display: 'Baloo 2', system-ui, sans-serif;
  --text: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --measure: 34rem;
  --dawn: linear-gradient(172deg, #0B2430 0%, #123A4A 30%, #1E5A6B 55%, #3F7F8C 76%, #86BCC3 92%, #BFE6EA 100%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1.125rem/1.65 var(--text); }
img { max-width: 100%; display: block; }
a { color: var(--glacier); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.02; letter-spacing: -0.015em; }
h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 750; color: var(--ink); max-width: 15ch; text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
p { margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: #fff; padding: .5rem .75rem; }

/* ---- Masthead (over the dawn sky) ---- */
.masthead {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem clamp(1rem, 4vw, 3rem); color: #fff;
}
.wordmark { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; font: 750 1.5rem/1 var(--display); }
.wordmark img { border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.masthead nav { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.masthead nav a { color: inherit; text-decoration: none; padding: .5rem .9rem; border-radius: 999px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.masthead nav a:hover { background: rgba(255, 255, 255, .14); }
.masthead nav a.lang { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); }
.masthead nav a.cta { background: var(--saffron); color: var(--ink); font-weight: 700; box-shadow: 0 8px 24px -10px rgba(242, 163, 58, .8); }
.masthead nav a.cta:hover { background: var(--amber); }
body:not(.home) .masthead { position: static; background: var(--night); }

/* ---- Hero: Annapurna Sanctuary at first light ---- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(100svh, 980px);
  background: var(--dawn);
  color: #fff;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center;
  padding: 7.5rem clamp(1rem, 5vw, 4.5rem) 5rem; gap: clamp(1.5rem, 4vw, 4rem);
}
.hero::before {
  /* The sun just below the ridge. */
  content: ''; position: absolute; z-index: -2; left: 40%; bottom: -38%; width: 90vmax; height: 90vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 230, 234, .32) 0%, rgba(242, 163, 58, .1) 35%, transparent 62%);
  transform: translateX(-50%);
}
.hero-map {
  position: absolute; inset: -8% -4% -10% 4%; z-index: -1;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
}
.hero-map svg { width: 100%; height: 100%; display: block; }
.contours { filter: drop-shadow(0 0 5px rgba(191, 230, 234, .4)); }
.contours path { fill: none; stroke: var(--ice); stroke-width: .9; opacity: calc(.14 + var(--t) * .62); vector-effect: non-scaling-stroke; }
.contours .c-major { stroke-width: 1.7; opacity: calc(.3 + var(--t) * .65); }
.trail-under { fill: none; stroke: rgba(242, 163, 58, .4); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; filter: blur(4px); }
.trail { fill: none; stroke: var(--saffron); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.stop circle { fill: var(--saffron); stroke: #fff; stroke-width: 4; }
.stop text, .peak text { font: 600 22px var(--text); fill: #fff; paint-order: stroke; stroke: rgba(11, 36, 48, .6); stroke-width: 5px; }
.peak path { fill: #fff; }
.peak text { font-weight: 500; font-size: 19px; }
.peak tspan { fill: var(--ice); }
@media (prefers-reduced-motion: no-preference) {
  .trail { stroke-dashoffset: 1; animation: draw 2.8s cubic-bezier(.45, .05, .25, 1) .3s forwards; }
  .stop { opacity: 0; animation: pin .5s ease-out forwards; animation-delay: calc(.6s + var(--i) * .66s); }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pin { to { opacity: 1; } }
}
.hero::after {
  /* Legibility behind the headline. */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 36, 48, .85) 0, rgba(11, 36, 48, 0) 18%),
    linear-gradient(90deg, rgba(11, 36, 48, .78) 0%, rgba(11, 36, 48, .35) 32%, rgba(11, 36, 48, 0) 50%);
}
.hero-copy { max-width: 36rem; position: relative; }
.hero h1 { font-size: clamp(3.5rem, 8.6vw, 7rem); font-weight: 800; line-height: .95; color: #fff; text-wrap: balance; text-shadow: 0 4px 40px rgba(11, 36, 48, .35); }
.hero .lead { margin-top: 1.4rem; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; color: rgba(255, 255, 255, .9); max-width: 32rem; }
.hero-small { margin-top: 1rem; color: var(--ice); font-size: 1rem; }
.hero-phone { justify-self: end; position: relative; }
.map-note { position: absolute; right: clamp(1rem, 3vw, 2.5rem); bottom: 1rem; font-size: .8rem; color: rgba(255, 255, 255, .75); max-width: 26rem; text-align: right; }

/* ---- Store buttons ---- */
.stores { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.store {
  display: inline-flex; align-items: center; gap: .7rem; min-height: 58px; padding: .55rem 1.3rem .55rem 1.05rem;
  border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; font: 700 1.15rem/1 var(--display);
  box-shadow: 0 14px 30px -18px rgba(11, 36, 48, .8);
}
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; gap: .15rem; }
.store small { font: 500 .75rem/1 var(--text); color: var(--muted); }
.store.is-soon { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .45); backdrop-filter: blur(10px); box-shadow: none; }
.store.is-soon small { color: var(--ice); }

/* ---- Phones ---- */
.phone {
  margin: 0; width: min(300px, 70vw); aspect-ratio: 1100 / 2454; border-radius: 46px; overflow: hidden;
  border: 10px solid #0B1C22; background: #0B1C22;
  box-shadow: 0 50px 90px -40px rgba(6, 24, 32, .65), 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.is-crop { aspect-ratio: 858 / 1100; border-radius: 34px; }
.phone.is-crop-tall { aspect-ratio: 814 / 1100; border-radius: 34px; }
.phone.is-hero { width: min(330px, 74vw); transform: rotate(3deg); box-shadow: 0 60px 120px -40px rgba(6, 24, 32, .8), 0 0 80px -10px rgba(191, 230, 234, .25); }

/* ---- Feature sections: white with a dawn wash, glass panels ---- */
.feature {
  position: relative; isolation: isolate;
  max-width: 1180px; margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 5vw, 3rem);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.feature::before {
  content: ''; position: absolute; z-index: -1; width: 46rem; height: 46rem; right: -12rem; top: 50%; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 230, 234, .5) 0%, rgba(30, 90, 107, .1) 38%, transparent 66%);
  pointer-events: none;
}
.feature-flip::before { right: auto; left: -14rem; background: radial-gradient(circle, rgba(242, 163, 58, .14) 0%, rgba(191, 230, 234, .25) 40%, transparent 66%); }
.feature-flip .feature-copy { order: 2; }
.feature-media { justify-self: center; }
.feature .body, .safety .body { margin-top: 1.2rem; font-size: 1.22rem; color: var(--muted); max-width: var(--measure); }
.points { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .9rem; max-width: var(--measure); }
.points li {
  padding: 1rem 1.2rem; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -30px rgba(16, 60, 72, .55);
}
.points p { margin-top: .25rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chips span { font-size: .95rem; padding: .3rem .8rem; border-radius: 999px; background: var(--mist); color: var(--glacier); font-weight: 500; }
.chips span::before { content: ''; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--open); margin-right: .45rem; vertical-align: .05em; }
.chips span:nth-child(2)::before { background: var(--caution); }
.pair { display: flex; align-items: flex-start; }
.pair .phone { width: min(270px, 46vw); }
.pair .is-back { margin-left: -60px; margin-top: 70px; }

/* ---- Safety: night-to-dawn band ---- */
.safety { background: linear-gradient(180deg, var(--night) 0%, #143844 70%, #1E5A6B 100%); color: #fff; }
.safety h2 { color: #fff; }
.safety .body { color: rgba(255, 255, 255, .82); }
.safety-in { max-width: 1180px; margin: 0 auto; padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 5vw, 3rem); }
.safety-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; }
.safety-copy .body { margin-top: 0; }
.timeline { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--ice) 0 66%, rgba(255, 255, 255, .2) 66%); }
.timeline li { position: relative; padding-top: 2.6rem; padding-right: 1rem; }
.timeline li::before { content: ''; position: absolute; top: 0; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 5px #123542, 0 0 24px rgba(191, 230, 234, .5); }
.timeline li.tl-due::before { background: #123542; border: 4px solid var(--saffron); box-shadow: 0 0 0 5px #123542, 0 0 24px rgba(242, 163, 58, .6); }
.tl-day { display: block; font-size: .95rem; color: rgba(255, 255, 255, .7); }
.tl-place { display: block; font: 750 clamp(1.7rem, 3vw, 2.4rem)/1.05 var(--display); color: #fff; margin: .2rem 0 .25rem; }
.tl-status { font-weight: 500; }
.tl-done .tl-status { color: var(--ice); }
.tl-due .tl-status { color: var(--amber); }
.missed { margin-top: 2.6rem; max-width: 46rem; font-size: 1.12rem; padding: 1.1rem 1.3rem; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(12px); color: rgba(255, 255, 255, .9); }
.safety .points { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; gap: 1rem; margin-top: 2.5rem; }
.safety .points li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.safety .points p { color: rgba(255, 255, 255, .78); }

/* ---- Gallery ---- */
.gallery { padding: clamp(4rem, 9vw, 7rem) 0; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); }
.gallery h2 { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1rem, 5vw, 3rem); }
.strip { display: flex; gap: 1.75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2.5rem clamp(1rem, 5vw, 3rem) 1.5rem; scrollbar-width: thin; }
.strip figure { margin: 0; scroll-snap-align: start; flex: none; }
.strip .phone { width: 240px; border-width: 8px; border-radius: 36px; box-shadow: 0 30px 60px -36px rgba(16, 60, 72, .6); }
.strip figcaption { margin-top: .9rem; max-width: 240px; font-size: 1rem; color: var(--muted); }

/* ---- Help ---- */
.help { max-width: 860px; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 3rem); }
.faqs { margin-top: 2rem; display: grid; gap: .7rem; }
.faqs details { border-radius: 16px; background: var(--mist); padding: 0 1.25rem; }
.faqs details[open] { background: #fff; box-shadow: 0 18px 40px -28px rgba(16, 60, 72, .55); outline: 1px solid #D6E6EA; }
.faqs summary { cursor: pointer; list-style: none; padding: 1.1rem 2.4rem 1.1rem 0; font-weight: 600; font-size: 1.12rem; position: relative; min-height: 44px; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: '+'; position: absolute; right: 0; top: .7rem; font: 500 1.8rem/1 var(--text); color: var(--glacier); transition: transform .2s ease; }
.faqs details[open] summary::after { transform: rotate(45deg); }
.faqs details p { padding: 0 0 1.25rem; color: var(--muted); max-width: 44rem; }
.text-link { display: inline-block; margin-top: 1.5rem; font-weight: 700; }

/* ---- Get the app: the sky again ---- */
.get { background: var(--dawn); color: #fff; }
.get-in { max-width: 1180px; margin: 0 auto; padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1rem, 5vw, 3rem); }
.get h2 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 16ch; text-shadow: 0 4px 40px rgba(11, 36, 48, .3); }
.get p { margin-top: 1rem; color: rgba(255, 255, 255, .9); max-width: 34rem; font-size: 1.2rem; }
.get .get-contact { font-size: 1rem; }
.get a { color: #fff; }

/* ---- Inner pages ---- */
.page { max-width: 760px; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 5vw, 2rem) 5rem; }
.page h1 { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800; color: var(--ink); }
.page h2 { font-size: 1.9rem; margin-top: 3rem; max-width: none; }
.page .lead { margin-top: 1rem; font-size: 1.25rem; color: var(--muted); }
.draft { margin-top: 1.5rem; padding: .9rem 1.1rem; border-radius: 14px; background: #FFE9DA; color: #8A3A1E; font-weight: 700; }
.note { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 14px; background: var(--mist); }
.prose { margin-top: 2rem; }
.prose h2 { font-size: 1.6rem; margin: 2.2rem 0 .6rem; }
.prose p, .prose li { color: #2C434A; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .6rem; }

/* ---- Footer ---- */
.foot { background: var(--night); color: rgba(255, 255, 255, .72); }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 2.5rem clamp(1rem, 5vw, 3rem); display: grid; gap: .8rem; }
.foot-brand { display: flex; align-items: center; gap: .5rem; color: #fff; font: 750 1.25rem/1 var(--display); }
.foot-brand img { border-radius: 50%; }
.foot a { color: #fff; margin-right: 1.4rem; display: inline-block; padding: .3rem 0; }
.fine { font-size: .88rem; color: rgba(255, 255, 255, .55); }

/* ---- Small screens ---- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 8.5rem; }
  .hero-map { inset: 30% -40% -5% -10%; }
  .hero::after { background: linear-gradient(180deg, rgba(11, 36, 48, .85) 0%, rgba(11, 36, 48, .45) 45%, rgba(11, 36, 48, .1) 100%); }
  .hero-phone { margin-top: 1rem; justify-self: center; }
  .map-note { position: static; text-align: left; margin-top: 1rem; }
  .feature { grid-template-columns: 1fr; }
  .feature-flip .feature-copy { order: 0; }
  .safety-copy, .safety .points { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 1.6rem; }
  .timeline::before { left: 13px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; background: linear-gradient(180deg, var(--ice) 0 66%, rgba(255, 255, 255, .2) 66%); }
  .timeline li { padding: 0 0 0 3rem; }
  .masthead nav a:not(.lang):not(.cta) { display: none; }
}
@media (max-width: 480px) {
  .wordmark { font-size: 1.3rem; gap: .55rem; }
  .wordmark img { width: 44px; height: 44px; }
  .masthead nav { gap: .25rem; }
  .masthead nav a { padding: .45rem .7rem; }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --page: #0B1C22; --mist: #132A32; --ink: #EAF4F6; --muted: #A9C3C9; --glass: rgba(19, 42, 50, .6); --glass-line: rgba(255, 255, 255, .12); }
  .chips span { color: #CFEFF3; }
  .gallery { background: linear-gradient(180deg, var(--page) 0%, var(--mist) 100%); }
  .faqs details[open] { background: #15303A; outline-color: #2F4E58; }
  .draft { background: #5A2A1A; color: #FFD3C2; }
  .prose p, .prose li { color: #CFE0E4; }
  a { color: #8FD6E1; }
}
