/* ==============================
   TREKGO LANDING (public page)
   Standalone: does NOT load common.css
   (common.css locks the layout to a 480px phone column)
================================ */

:root{
  --forest-950:#0f2417;
  --forest-900:#14301e;
  --forest-800:#173a24;
  --forest-700:#1f4d2e;
  --forest-600:#28633a;
  --forest-500:#357a49;
  --sand-50:#faf8f3;
  --sand-100:#f2efe6;
  --line:#e4e1d6;
  --ink:#1c231d;
  --ink-soft:#5c6b5e;
  --gold:#c99b2d;
  --gold-soft:#f1dfae;
  --danger:#a3372f;
  --warn-bg:#fdecec;

  --display:'Bricolage Grotesque','Segoe UI',system-ui,sans-serif;
  --body:'DM Sans','Segoe UI',system-ui,-apple-system,Roboto,sans-serif;

  --gutter:clamp(16px,4vw,48px);
  --maxw:1180px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:72px}
body{
  font-family:var(--body);
  color:var(--ink);
  background:var(--sand-50);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit}
button{font:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px;border-radius:4px}

.wrap{max-width:var(--maxw);margin:0 auto;padding-inline:var(--gutter)}

h1,h2,h3{font-family:var(--display);color:inherit;letter-spacing:-.02em;line-height:1.08}
h2{font-size:clamp(26px,3.4vw,40px);font-weight:700}
h3{font-size:19px;font-weight:700;letter-spacing:-.01em;line-height:1.2}
p{font-size:16px}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 22px;border-radius:10px;border:1.5px solid transparent;
  font-weight:700;font-size:15px;text-decoration:none;white-space:nowrap;
  transition:background .15s,border-color .15s,color .15s;
}
.btn-gold{background:var(--gold);color:var(--forest-950)}
.btn-gold:hover{background:#d8aa3a}
.btn-green{background:var(--forest-700);color:#fff}
.btn-green:hover{background:var(--forest-600)}
.btn-ghost{border-color:rgba(255,255,255,.55);color:#fff;background:transparent}
.btn-ghost:hover{background:rgba(255,255,255,.12)}
.btn-line{border-color:var(--forest-700);color:var(--forest-700);background:transparent}
.btn-line:hover{background:var(--forest-700);color:#fff}
.btn-sm{padding:9px 16px;font-size:14px}

/* ---------- nav ---------- */
.nav{
  position:sticky;top:0;z-index:40;
  background:rgba(15,36,23,.92);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  color:#fff;
}
.nav .wrap{display:flex;align-items:center;gap:28px;height:64px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-family:var(--display);font-weight:800;font-size:21px;letter-spacing:-.02em}
.brand img{width:34px;height:34px;border-radius:50%}
.nav-links{display:flex;gap:24px;margin-left:12px}
.nav-links a{text-decoration:none;font-size:15px;color:rgba(255,255,255,.82);font-weight:500}
.nav-links a:hover{color:#fff}
.nav-cta{margin-left:auto;display:flex;gap:10px;align-items:center}
.nav-cta .login{color:#fff;text-decoration:none;font-weight:600;font-size:15px;padding:8px 6px}

/* ---------- hero ---------- */
.hero{
  position:relative;color:#fff;overflow:hidden;
  background:var(--forest-950);
}
.hero-photo{
  position:absolute;inset:0;
  background:
    linear-gradient(100deg,rgba(15,36,23,.94) 0%,rgba(15,36,23,.78) 42%,rgba(15,36,23,.25) 100%),
    linear-gradient(0deg,rgba(15,36,23,.95) 0%,rgba(15,36,23,0) 45%),
    url('../image/gunung nuang.png') center 35%/cover no-repeat;
}
.hero .wrap{position:relative;padding-top:clamp(56px,9vw,112px);padding-bottom:clamp(28px,4vw,44px)}
.hero h1{
  font-size:clamp(36px,5.6vw,68px);font-weight:800;max-width:17ch;
  letter-spacing:-.035em;line-height:1;
}
.hero-sub{margin-top:22px;max-width:46ch;font-size:clamp(16px,1.6vw,19px);color:rgba(255,255,255,.82)}
.hero-actions{margin-top:30px;display:flex;flex-wrap:wrap;gap:12px}
.hero-facts{
  margin-top:38px;display:flex;flex-wrap:wrap;gap:10px 34px;
  font-size:15px;color:rgba(255,255,255,.78);
}
.hero-facts b{font-family:var(--display);font-size:22px;color:#fff;margin-right:6px;font-weight:700}

/* trail profile (the hero's signature element) */
.profile{
  position:relative;margin-top:clamp(36px,6vw,64px);
  border-top:1px solid rgba(255,255,255,.22);
  padding-top:16px;
}
.profile-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;margin-bottom:6px}
.profile-head b{font-family:var(--display);font-size:18px;font-weight:700}
.profile-head span{font-size:14px;color:rgba(255,255,255,.7)}
.profile svg{width:100%;height:auto;display:block;overflow:visible}
.profile .area{fill:url(#pf-grad)}
.profile .ridge{fill:none;stroke:var(--gold);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.profile .ground{stroke:rgba(255,255,255,.25);stroke-width:1}
.profile .stake{stroke:rgba(255,255,255,.35);stroke-width:1;stroke-dasharray:3 4}
.profile .dot{fill:var(--forest-950);stroke:var(--gold);stroke-width:2.5}
.profile .dot.top{fill:var(--gold)}
.profile text{fill:rgba(255,255,255,.85);font-family:var(--body);font-size:12.5px}
.profile text.tt{font-weight:700;fill:#fff}
.profile text.sub{fill:rgba(255,255,255,.55);font-size:11.5px}
.profile-note{margin-top:8px;font-size:13.5px;color:rgba(255,255,255,.6)}

@media (prefers-reduced-motion:no-preference){
  .profile .ridge{stroke-dasharray:var(--len,1400);stroke-dashoffset:var(--len,1400);animation:draw 2.2s .3s cubic-bezier(.4,.1,.2,1) forwards}
  .profile .area{opacity:0;animation:fadein 1s 1.6s forwards}
  .profile .stake,.profile .dot,.profile text{opacity:0;animation:fadein .5s forwards;animation-delay:var(--d,1.2s)}
}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes fadein{to{opacity:1}}

/* ---------- sections ---------- */
section{padding-block:clamp(56px,8vw,96px)}
.sec-head{display:flex;justify-content:space-between;align-items:end;gap:24px;flex-wrap:wrap;margin-bottom:28px}
.sec-head p{max-width:48ch;color:var(--ink-soft)}

/* trails */
.tools{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:26px}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{
  padding:8px 16px;border-radius:999px;border:1.5px solid var(--line);
  background:#fff;color:var(--ink-soft);font-weight:600;font-size:14px;
}
.chip[aria-pressed="true"]{background:var(--forest-700);border-color:var(--forest-700);color:#fff}
.search{
  margin-left:auto;display:flex;align-items:center;gap:8px;
  background:#fff;border:1.5px solid var(--line);border-radius:10px;padding:0 12px;min-width:min(100%,260px);
}
.search svg{color:var(--ink-soft);flex-shrink:0}
.search input{border:0;outline:0;background:transparent;padding:11px 0;font:inherit;font-size:15px;width:100%}
.search:focus-within{border-color:var(--forest-600)}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:22px}
.tcard{
  display:flex;flex-direction:column;text-align:left;
  background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;
  padding:0;color:inherit;
  transition:transform .15s,box-shadow .15s;
}
.tcard:hover{transform:translateY(-3px);box-shadow:0 10px 28px rgba(15,36,23,.12)}
.tcard.closed{opacity:.6}
.timg{position:relative;aspect-ratio:16/10;background:var(--forest-800) center/cover no-repeat}
.tag{
  position:absolute;left:12px;top:12px;
  background:rgba(15,36,23,.82);color:#fff;border-radius:999px;padding:4px 11px;font-size:12.5px;font-weight:700;
}
.tag.Easy{background:#2f7d46}
.tag.Hard{background:#a3372f}
.tag.closed{background:#444}
.tbody{padding:16px 18px 18px;display:flex;flex-direction:column;gap:6px;flex:1}
.tloc{font-size:14px;color:var(--ink-soft);display:flex;align-items:center;gap:5px}
.tstats{display:flex;gap:16px;margin-top:6px;font-size:13.5px;color:var(--ink-soft)}
.tstats b{display:block;color:var(--ink);font-size:15.5px}
.tfoot{margin-top:auto;padding-top:14px;display:flex;justify-content:space-between;align-items:baseline;gap:10px;border-top:1px dashed var(--line);margin-top:12px}
.price{font-family:var(--display);font-size:22px;font-weight:700}
.price small{font-family:var(--body);font-size:13px;font-weight:500;color:var(--ink-soft)}
.price.free{color:var(--ok,#2f7d46)}
.rate{font-size:14px;font-weight:700;color:var(--gold);display:flex;align-items:center;gap:3px}

.state{padding:36px 0;color:var(--ink-soft)}
.state.err{color:var(--danger)}

/* how it works: a real sequence, so numbered */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:0;counter-reset:s}
.step{position:relative;padding:0 24px 0 0}
.step::before{
  counter-increment:s;content:counter(s);
  display:grid;place-items:center;width:38px;height:38px;border-radius:50%;
  background:var(--forest-700);color:#fff;font-family:var(--display);font-weight:700;font-size:17px;
  position:relative;z-index:1;
}
.step::after{content:"";position:absolute;left:38px;right:0;top:19px;border-top:2px dashed #c9c5b4}
.step:last-child::after{display:none}
.step h3{margin:16px 0 6px}
.step p{font-size:15px;color:var(--ink-soft);max-width:30ch}

/* prices: a rate card, not cards */
.rates{border-top:2px solid var(--ink)}
.rate-row{
  display:grid;grid-template-columns:200px 160px 1fr;gap:24px;align-items:baseline;
  padding:20px 0;border-bottom:1px solid var(--line);
}
.rate-row .big{font-family:var(--display);font-size:34px;font-weight:800;letter-spacing:-.03em;line-height:1}
.rate-row .big small{display:block;font-family:var(--body);font-size:13px;font-weight:500;color:var(--ink-soft);letter-spacing:0;margin-top:4px}
.rate-row .mem{font-size:15px;color:var(--ink-soft)}
.rate-row .mem b{color:var(--ink)}
.rate-row .names{font-size:15px}
.fine{margin-top:16px;font-size:14px;color:var(--ink-soft);max-width:70ch}

/* on the trail */
.trail-sec{background:var(--forest-950);color:#fff}
.trail-sec p{color:rgba(255,255,255,.75)}
.cols{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(28px,5vw,72px);align-items:start}
.feats{margin-top:26px;display:grid;gap:22px}
.feat{display:grid;grid-template-columns:44px 1fr;gap:16px}
.feat .ico{width:44px;height:44px;border-radius:12px;background:rgba(201,155,45,.16);color:var(--gold);display:grid;place-items:center;font-size:22px}
.feat h3{font-size:18px;margin-bottom:3px}
.feat p{font-size:15px}
.phone-box{
  border:1px solid rgba(255,255,255,.18);border-radius:18px;padding:26px;
  background:rgba(255,255,255,.05);
}
.phone-box h3{font-size:21px;margin-bottom:8px}
.qr{display:none;margin-top:18px;gap:16px;align-items:center}
.qr-img{background:#fff;padding:10px;border-radius:10px;width:140px;height:140px;flex-shrink:0}
.qr-img img,.qr-img canvas{width:100%!important;height:100%!important}
.qr small{font-size:13.5px;color:rgba(255,255,255,.7);word-break:break-all}
.phone-open{margin-top:18px}
.qr.ready{display:flex}

/* footer */
footer{background:var(--forest-950);color:rgba(255,255,255,.7);padding-block:36px;border-top:1px solid rgba(255,255,255,.1)}
footer .wrap{display:flex;gap:20px 40px;flex-wrap:wrap;justify-content:space-between;align-items:center}
footer a{text-decoration:none;font-size:14.5px}
footer a:hover{color:#fff}
.foot-links{display:flex;gap:22px;flex-wrap:wrap}
.sponsors-row{display:flex;gap:22px;align-items:center;flex-wrap:wrap}
.sponsors-row{background:rgba(255,255,255,.92);padding:8px 16px;border-radius:10px}
.sponsors-row img{height:26px;width:auto}
.copy{font-size:13.5px;flex-basis:100%;color:rgba(255,255,255,.45)}

/* trail dialog */
dialog.tdlg{
  border:0;border-radius:18px;padding:0;width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 24px);
  color:var(--ink);background:var(--sand-50);overflow:auto;margin:auto;
}
dialog.tdlg::backdrop{background:rgba(15,36,23,.65)}
@media (prefers-reduced-motion:no-preference){
  dialog.tdlg[open]{animation:pop .22s ease-out}
  @keyframes pop{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
}
.dhero{position:relative;aspect-ratio:16/7;background:var(--forest-800) center/cover no-repeat}
.dhero::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(15,36,23,.8),rgba(15,36,23,0) 60%)}
.dhero h2{position:absolute;left:24px;right:64px;bottom:18px;z-index:1;color:#fff;font-size:clamp(24px,4vw,34px)}
.dclose{
  position:absolute;right:14px;top:14px;z-index:2;width:38px;height:38px;border-radius:50%;
  border:0;background:rgba(15,36,23,.75);color:#fff;font-size:20px;line-height:1;
}
.dbody{padding:22px 24px 26px}
.dstats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}
.dstats div{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:13px;color:var(--ink-soft)}
.dstats b{display:block;color:var(--ink);font-size:16px}
.dbody h3{margin:20px 0 8px;font-size:17px}
.dbody p{font-size:15px;color:var(--ink-soft)}
.cps{list-style:none;border-left:2px solid var(--line);margin-left:6px}
.cps li{position:relative;padding:0 0 12px 18px;font-size:14.5px}
.cps li::before{content:"";position:absolute;left:-7px;top:5px;width:12px;height:12px;border-radius:50%;background:#fff;border:2.5px solid var(--forest-600)}
.cps li span{color:var(--ink-soft);font-size:13px;display:block}
.warnbox{margin-top:12px;background:var(--warn-bg);color:var(--danger);border-radius:10px;padding:10px 14px;font-size:14px}
.dfoot{
  position:sticky;bottom:0;background:var(--sand-50);border-top:1px solid var(--line);
  padding:14px 24px;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;
}
.dfoot .price{font-size:24px}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .steps{grid-template-columns:1fr 1fr;gap:34px 0}
  .step:nth-child(2)::after{display:none}
  .cols{grid-template-columns:1fr}
  .rate-row{grid-template-columns:1fr;gap:6px}
}
@media (max-width:720px){
  .nav-links{display:none}
  .nav .wrap{gap:12px}
  .nav-cta .btn{padding:8px 14px}
  .search{margin-left:0;flex:1 1 100%}
  .hero-actions .btn{flex:1 1 100%}
  .dstats{grid-template-columns:1fr 1fr}
  dialog.tdlg{margin:auto auto 0;width:100%;max-height:92dvh;border-radius:18px 18px 0 0}
}
@media (max-width:520px){
  .steps{grid-template-columns:1fr}
  .step::after{display:none}
  .step{display:grid;grid-template-columns:38px 1fr;column-gap:14px;padding:0}
  .step h3{margin:0 0 4px}
  .step p{grid-column:2;max-width:none}
}
