/* Discover Waterland website styles.
   Mirrors the app design system (DESIGN_STYLE.md): one saturated brand blue,
   flat fills, soft cool-blue shadows, Plus Jakarta Sans, generous radii. */

:root {
  /* Brand blue ramp */
  --blue700: #0B4FC4;
  --blue600: #0A5CDB;
  --primary: #2B6DF0;
  --blue100: #D7E4FF;
  --blue50:  #EEF3FF;

  /* Neutrals */
  --gray900: #16181D;
  --gray700: #3C4250;
  --gray500: #6B7280;
  --gray200: #E2E5EC;
  --gray100: #F2F4F8;
  --gray50:  #F8F9FC;
  --white:   #ffffff;

  --surface-app: var(--gray50);
  --surface-card: var(--white);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Shadows (cool-blue tinted) */
  --sh-sm: 0 1px 2px rgba(16,40,90,.06);
  --sh-card: 0 6px 20px rgba(16,40,90,.14);
  --sh-float: 0 14px 40px rgba(16,40,90,.18);

  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--gray700);
  background: var(--surface-app);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--blue600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--gray900);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue600);
  background: var(--blue50);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}

.muted { color: var(--gray500); }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--gray700); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  border: 0;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--sh-card); }
.btn-primary:hover { background: var(--blue600); }
.btn-tonal { background: var(--blue100); color: var(--blue700); }
.btn-tonal:hover { background: #c9dbff; }
.btn-ghost { background: transparent; color: var(--gray900); border: 1px solid var(--gray200); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badges a { display: inline-block; transition: transform .12s ease; }
.store-badges a:hover { transform: translateY(-2px); }
.store-badges img { height: 52px; width: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 12px;
  background: transparent;
}
/* On the homepage the header stays hidden over the full-screen hero and slides
   in once the visitor scrolls a little (toggled by main.js). */
.site-header.reveal-on-scroll {
  transition: transform .35s ease, opacity .35s ease;
  will-change: transform;
}
.site-header.reveal-on-scroll:not(.scrolled) {
  transform: translateY(-130%);
  opacity: 0;
  pointer-events: none;
}
.nav-bar {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  height: 56px;
  padding: 0 12px 0 20px;
  background: #fff;
  border: 1px solid var(--gray200);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-card);
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 38px; width: auto; }
.nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 28px; }
.nav a { position: relative; color: var(--gray700); font-weight: 600; font-size: .93rem; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav a:hover { color: var(--primary); text-decoration: none; }
.nav a:hover::after { transform: scaleX(1); }
.nav-app-mobile { display: none; }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-cta { padding: 8px 15px; font-size: .84rem; }

/* Language dropdown */
.lang-select { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gray100); border: 1px solid var(--gray200);
  border-radius: var(--r-pill); padding: 7px 10px;
  font: inherit; font-weight: 700; font-size: .82rem; letter-spacing: .02em;
  color: var(--gray700); cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-btn svg { width: 15px; height: 15px; }
.lang-caret { transition: transform .2s ease; }
.lang-select.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 168px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--gray200);
  border-radius: var(--r-md); box-shadow: var(--sh-float);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 60;
}
.lang-select.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer;
  padding: 9px 12px; border-radius: var(--r-sm);
  font: inherit; font-weight: 600; font-size: .92rem; color: var(--gray700);
}
.lang-menu button:hover { background: var(--blue50); color: var(--primary); }
.lang-menu button[aria-current="true"] { background: var(--blue50); color: var(--primary); }

.nav-toggle {
  display: none;
  background: var(--gray100);
  border: 0;
  border-radius: var(--r-md);
  width: 40px; height: 40px;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--gray900);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: #0b2447;
  margin-top: -68px; /* slide the hero up behind the floating navbar */
  min-height: 100vh;
  min-height: 100svh; /* fill the whole screen, minus mobile browser chrome */
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .55;
  transform-origin: center;
  animation: heroZoom 24s ease-in-out infinite alternate;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 15% 20%, rgba(11,79,196,.28) 0%, rgba(8,22,46,0) 55%),
    linear-gradient(180deg, rgba(8,22,46,.55) 0%, rgba(8,22,46,.86) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 96px 0; max-width: 720px; margin: 0 auto; text-align: center; width: 100%; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
.hero h1 .hl { color: #6ba5ff; }
.hero .lead { color: rgba(255,255,255,.9); max-width: 560px; margin-left: auto; margin-right: auto; }
.hero .eyebrow { background: rgba(255,255,255,.16); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: center; justify-content: center; }
.hero-note { margin-top: 18px; font-size: .9rem; color: rgba(255,255,255,.75); }

/* Hero entrance: staggered fade-up */
.hero-inner > * { opacity: 0; animation: heroUp .8s cubic-bezier(.22,.61,.36,1) forwards; }
.hero-inner > h1 { animation-delay: .1s; }
.hero-inner > .lead { animation-delay: .24s; }
.hero-inner > .hero-actions { animation-delay: .38s; }
.hero-inner > .hero-note { animation-delay: .5s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.09); } }

/* Scroll hint */
.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 3; color: rgba(255,255,255,.85);
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.35); border-radius: var(--r-pill);
  animation: heroBounce 2.2s ease-in-out infinite;
  transition: background .2s ease, border-color .2s ease;
}
.hero-scroll:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.hero-scroll svg { width: 20px; height: 20px; }
@keyframes heroBounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.bg-white { background: var(--white); }
.bg-app { background: var(--surface-app); }
.bg-blue { background: var(--blue50); }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.feature {
  background: var(--surface-card);
  border: 1px solid var(--gray200);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); border-color: var(--blue100); box-shadow: var(--sh-card); }
.feat-ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--blue50); color: var(--primary);
  border-radius: 14px;
  margin-bottom: 18px;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.feat-ico svg { width: 24px; height: 24px; display: block; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.feature:hover .feat-ico { background: var(--primary); color: #fff; transform: translateY(-3px); }
.feature:hover .feat-ico svg { transform: rotate(-8deg) scale(1.08); }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--gray500); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 60px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--primary); color: #fff;
  border-radius: 50%; font-weight: 800;
}

/* ---------- Tour / article cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tcard {
  display: flex; flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--gray200);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  color: inherit;
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--sh-float); border-color: var(--blue100); text-decoration: none; }
.tcard-img { transition: transform .4s ease; }
.tcard:hover .tcard-img { transform: scale(1.04); }
.tcard-img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--gray100); }
.tcard-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tcard h3 { margin: 0; color: var(--gray900); }
.tcard p { margin: 0; color: var(--gray500); font-size: .96rem; }
.tcard .chips { margin-top: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gray100); color: var(--gray700);
  font-size: .8rem; font-weight: 600;
  padding: 5px 11px; border-radius: var(--r-pill);
}
.chip.blue { background: var(--blue50); color: var(--blue700); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue700), var(--primary));
  border-radius: var(--r-xl);
  color: #fff;
  padding: 56px;
  text-align: center;
  box-shadow: var(--sh-float);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 24px; }
.cta-band .store-badges { justify-content: center; }

/* ---------- Article / tour blog layout ---------- */
.article-hero { position: relative; color: #fff; overflow: hidden; background: #0b2447; margin-top: -68px; }
.article-hero .hero-bg { opacity: .5; }
.article-hero-inner { position: relative; z-index: 2; padding: 128px 0 72px; max-width: 760px; }
.article-hero h1 { color: #fff; }
.article-hero .lead { color: rgba(255,255,255,.9); }
.article-hero .eyebrow { background: rgba(255,255,255,.16); color: #fff; }
.breadcrumb { font-size: .88rem; margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.article-hero.light-crumb .breadcrumb a { color: var(--blue600); }

.layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; align-items: start; }
.prose { font-size: 1.08rem; color: var(--gray700); }
.prose > h2 { margin-top: 2em; }
.prose > h3 { margin-top: 1.6em; }
.prose p { margin: 0 0 1.15rem; }
.prose img { border-radius: var(--r-lg); box-shadow: var(--sh-card); margin: 1.4rem 0; width: 100%; }
.prose figure { margin: 1.8rem 0; }
.prose figcaption { font-size: .88rem; color: var(--gray500); margin-top: 8px; text-align: center; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose a { color: var(--blue600); font-weight: 600; text-decoration: underline; }

/* Tour stop block */
.stop { margin: 2.4rem 0; }
.stop-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800; font-size: .9rem;
  margin-right: 10px;
}
.stop h3 { display: flex; align-items: center; margin-bottom: .6rem; }

/* Sidebar */
.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 22px; }
.side-card {
  background: var(--surface-card);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-card);
}
.side-card h4 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; color: var(--gray900); }
.side-card p { font-size: .92rem; color: var(--gray500); }
.side-card .store-badges img { height: 44px; }
.meta-list { list-style: none; margin: 0; padding: 0; }
.meta-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--gray200); font-size: .95rem; }
.meta-list li:last-child { border-bottom: 0; }
.meta-list .k { color: var(--gray500); min-width: 84px; flex-shrink: 0; }
.meta-list .v { color: var(--gray900); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

.related-list { list-style: none; margin: 0; padding: 0; }
.related-list a { display: block; padding: 10px 0; color: var(--gray900); font-weight: 600; border-bottom: 1px solid var(--gray200); }
.related-list a:hover { color: var(--primary); text-decoration: none; }
.related-list li:last-child a { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--gray200); padding: 40px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { height: 28px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: var(--gray500); font-size: .9rem; max-width: 300px; margin: 0 0 14px; }
.footer-brand .store-badges img { height: 40px; }
.footer-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray500); font-weight: 700; margin: 4px 0 10px; }
.footer-col a { display: block; color: var(--gray700); padding: 4px 0; font-weight: 500; font-size: .9rem; }
.footer-col a:hover { color: var(--primary); text-decoration: none; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--gray200); color: var(--gray500); font-size: .86rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--gray500); }
.footer-bottom a:hover { color: var(--primary); }

/* ---------- Download landing ---------- */
.download { text-align: center; }
.app-badge {
  width: 116px; height: 116px;
  margin: 0 auto 26px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--gray200);
  border-radius: 26px;
  box-shadow: var(--sh-card);
  animation: floaty 4s ease-in-out infinite;
}
.app-badge img { width: 78%; height: auto; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.download .store-badges { justify-content: center; margin-top: 26px; }
.download .store-badges img { height: 56px; }
.dl-points { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-top: 46px; }
.dl-point { display: inline-flex; align-items: center; gap: 9px; color: var(--gray700); font-weight: 600; font-size: .95rem; }
.dl-point svg { width: 20px; height: 20px; color: var(--primary); }

/* ---------- Village cards (homepage) ---------- */
.vcard {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface-card);
  border: 1px solid var(--gray200);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.vcard:hover { transform: translateY(-3px); border-color: var(--blue100); box-shadow: var(--sh-card); text-decoration: none; }
.vcard h3 { margin: 0; color: var(--gray900); }
.vcard p { margin: 0; color: var(--gray500); font-size: .96rem; }
.vcard .vlink { margin-top: auto; padding-top: 6px; color: var(--blue600); font-weight: 700; font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--gray200);
  border-radius: var(--r-lg);
  padding: 20px 24px;
}
.faq-item h3 { margin: 0 0 6px; font-size: 1.06rem; color: var(--gray900); }
.faq-item p { margin: 0; color: var(--gray700); font-size: .98rem; }
.faq-item a { color: var(--blue600); font-weight: 600; }

/* ---------- Share buttons ---------- */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 2.4rem 0 0.4rem; }
.share-label { font-weight: 700; color: var(--gray900); font-size: .95rem; margin-right: 2px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--gray200); background: var(--white);
  color: var(--gray700); font-weight: 600; font-size: .88rem;
}
.share-btn svg { width: 16px; height: 16px; }
.share-btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack-sm > * + * { margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
/* Collapse the centre nav into a floating dropdown that lines up with the pill */
@media (max-width: 820px) {
  .nav {
    display: none;
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; transform: none;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    background: #fff; border: 1px solid var(--gray200);
    border-radius: var(--r-lg); box-shadow: var(--sh-float);
    padding: 10px;
  }
  .site-header.open .nav { display: flex; }
  .nav a { padding: 12px 14px; border-radius: var(--r-md); font-size: 1rem; color: var(--gray900); }
  .nav a:hover { background: var(--blue50); text-decoration: none; }
  .nav a::after { display: none; }
  .nav-app-mobile { display: block; text-align: center; margin-top: 6px; }
  .header-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; }
}

@media (max-width: 720px) {
  .grid-3, .grid-2, .card-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 40px 24px; }
  .hero-inner { padding: 84px 0; }
  .article-hero-inner { padding: 104px 0 56px; }
  .hero-scroll { display: none; }
}

/* Shrink the hero store badges on phones so both sit on one row */
@media (max-width: 480px) {
  .hero .store-badges { gap: 10px; flex-wrap: nowrap; }
  .hero .store-badges img { height: 42px; }
}

/* ---------- Accessibility & polish ---------- */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.hero-scroll:focus-visible, .lang-btn:focus-visible, .btn:focus-visible { outline-offset: 3px; }
::selection { background: var(--blue100); color: var(--blue700); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-inner > * { opacity: 1 !important; }
}
