/* ==========================================================================
   JOURNAL BUTTON + APP SECTION (own file, loaded after site.css and booking-modal.css)
   1. Primary gold button family: one finish for every .btn--gold on the page
      (paint only: no size or layout change), plus .btn--flow = serif label + curved arrow
      for the two "journey" buttons (Explore the Journal, Follow the Journey).
   2. App section: phone frames with real app screens (assets/app/app-hero-1..3.webp),
      a calm dark backdrop, a quiet gold orbit behind, benefit lines on a curved line.
   Colours: gold tokens, cream, charcoal only. No teal here.
   ========================================================================== */

/* ---------- 1 · gold button family ---------- */
.btn.btn--gold{
  background:linear-gradient(180deg,var(--gold-lit-hi) 0%,var(--gold-lit-mid) 52%,var(--gold-lit-deep) 100%);
  color:var(--charcoal);
  box-shadow:inset 0 1px 0 rgba(250,249,244,.55),inset 0 -7px 14px rgba(152,116,40,.32),inset 0 0 12px rgba(236,226,207,.22),
             0 0 0 3px rgba(14,14,13,.55),0 0 0 4px rgba(var(--gold-lit-rgb),.72),0 10px 26px rgba(0,0,0,.32);
  transition:background-color .35s var(--ease),box-shadow .35s var(--ease),transform .35s var(--ease),filter .35s var(--ease);
}
.btn.btn--gold:hover{
  background:linear-gradient(180deg,var(--gold-lit-hi) 0%,var(--gold-lit) 48%,var(--gold-lit-mid) 100%);
  box-shadow:inset 0 1px 0 rgba(250,249,244,.65),inset 0 -7px 14px rgba(152,116,40,.26),inset 0 0 16px rgba(236,226,207,.34),
             0 0 0 3px rgba(14,14,13,.55),0 0 0 4px var(--gold-lit-hi),0 14px 30px rgba(0,0,0,.36);
  transform:translateY(-1px);
}
.btn.btn--gold:active{transform:translateY(0);filter:brightness(.97)}
.btn.btn--gold:focus-visible{
  outline:2px solid var(--gold-100);outline-offset:7px;border-radius:999px;
  box-shadow:inset 0 1px 0 rgba(250,249,244,.65),inset 0 0 16px rgba(236,226,207,.34),
             0 0 0 3px rgba(14,14,13,.7),0 0 0 4px var(--gold-100),0 0 0 12px rgba(var(--gold-lit-rgb),.28);
}
/* the two journey buttons: editorial serif + a flowing arrow that eases forward */
.btn--flow{gap:10px;min-height:52px;padding:0 24px 0 30px;font:600 clamp(18px,1.25vw,21px)/1 var(--serif);letter-spacing:.025em;text-shadow:none}
.btn__arrow{width:30px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
  transition:transform .5s var(--ease)}
.btn__arrow-line{stroke-dasharray:30;stroke-dashoffset:0;transition:stroke-dashoffset .6s var(--ease)}
.btn--flow:hover .btn__arrow,.btn--flow:focus-visible .btn__arrow{transform:translateX(5px)}
.btn--flow:hover .btn__arrow-line,.btn--flow:focus-visible .btn__arrow-line{animation:fs-draw .7s var(--ease) both}
@keyframes fs-draw{from{stroke-dashoffset:30}to{stroke-dashoffset:0}}
.journal__foot .btn--flow{margin-top:4px}
@media (forced-colors:active){.btn.btn--gold{border:1px solid ButtonText}}

/* ---------- 2 · app section ---------- */
.block.block--app{--pw:min(1120px,90vw);--hz-y:-110px;--hz-x:max(-120px,calc((100vw - min(1120px,90vw)) / -2 + 4px));text-align:left}
/* calm, nearly plain backdrop so the phones are the focal point (no edge) */
.block.block--app::before{filter:blur(18px);
  background:radial-gradient(ellipse closest-side at 50% 50%,rgba(9,9,13,.96) 0%,rgba(9,9,13,.93) 66%,rgba(9,9,13,.6) 86%,rgba(9,9,13,0) 100%)}
html.static #app{background:radial-gradient(ellipse 80% 70% at 50% 50%,rgba(8,8,12,.9) 0%,rgba(8,8,12,.75) 55%,rgba(8,8,12,0) 100%)}
.app-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:clamp(28px,4vw,64px);align-items:center}
.app-hero .label{justify-content:flex-start}
.app-hero .label--c::before{display:none}
.app-hero h2{font-size:clamp(38px,3.7vw,68px)}
.app-hero .app__lead{margin:14px 0 0;max-width:40ch;font-size:clamp(16px,1.08vw,19px)}
.app-hero .app__soft{font-size:clamp(19px,1.35vw,24px)}

/* benefits ride a soft curved line, each with a small gold world */
.app-benefits{position:relative;display:grid;gap:clamp(10px,1.6vh,18px);margin:clamp(16px,2.6vh,28px) 0 clamp(18px,2.8vh,30px);padding-left:40px}
.app-benefits::before{content:"";position:absolute;left:6px;top:10px;bottom:10px;width:16px;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 200' preserveAspectRatio='none'%3E%3Cpath d='M8 0C16 40 0 60 8 100S0 160 8 200' fill='none' stroke='%23D4AF5A' stroke-width='1.2' stroke-opacity='.7' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center/100% 100% no-repeat}
.app-benefits li{position:relative;display:flex;flex-direction:column;gap:2px}
.app-benefits i{position:absolute;left:-35px;top:.42em;width:18px;height:18px;border-radius:50%;
  background:radial-gradient(circle at 34% 30%,var(--gold-100) 0%,var(--gold-lit-mid) 38%,var(--gold-lit-deep) 78%,#2b2418 100%);
  box-shadow:0 0 0 3px rgba(9,9,13,.9),0 0 0 4px rgba(var(--gold-lit-rgb),.55)}
.app-benefits li:nth-child(2) i{left:-31px;background:radial-gradient(circle at 34% 30%,var(--cream) 0%,var(--gold-lit-hi) 40%,var(--gold-lit-deep) 80%,#3a3020 100%)}
.app-benefits b{font:500 clamp(21px,1.5vw,27px)/1.15 var(--serif);color:var(--cream)}
.app-benefits span{font:400 clamp(14.5px,.98vw,16.5px)/1.5 var(--sans);color:rgba(241,238,229,.92);max-width:42ch}
.app-hero__cta{display:flex;flex-direction:column;align-items:flex-start}
.app-hero__cta .app__msg{margin-top:10px}

/* the phones */
.app-hero__stage{--sh:clamp(420px,calc(100vh - 220px),590px);position:relative;height:var(--sh);margin:0;
  --cw:calc(var(--sh) * .44);--sw:calc(var(--sh) * .37)}
.app-hero__stage::before{content:"";position:absolute;inset:6% 14%;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(var(--gold-lit-rgb),.2),rgba(var(--gold-lit-rgb),.06) 60%,rgba(var(--gold-lit-rgb),0))}
.app-hero__orbit{position:absolute;left:50%;top:50%;width:calc(var(--sh) * 1.12);height:calc(var(--sh) * 1.12);max-width:none;
  transform:translate(-50%,-50%);fill:none;stroke:var(--gold-lit);pointer-events:none;overflow:visible}
.app-hero__orbit ellipse{stroke-width:1;stroke-opacity:.32;vector-effect:non-scaling-stroke}
.app-hero__orbit .app-hero__orbit-run{stroke:var(--gold-lit-hi);stroke-opacity:.85;stroke-width:1.6;stroke-linecap:round;
  stroke-dasharray:70 1365;animation:fs-orbit 22s linear infinite}
@keyframes fs-orbit{to{stroke-dashoffset:-1435}}
.app-phone{position:absolute;top:50%;left:50%;width:var(--cw);aspect-ratio:390/844;box-sizing:content-box;padding:7px;
  border-radius:calc(var(--cw) * .17);
  background:linear-gradient(150deg,#2c2b26 0%,var(--charcoal) 45%,#121210 70%,#26251f 100%);
  box-shadow:0 0 0 1px rgba(var(--gold-lit-rgb),.6),inset 0 0 0 1px rgba(241,238,229,.1),0 34px 70px rgba(0,0,0,.6),0 8px 20px rgba(0,0,0,.4);
  transform:translate3d(calc(-50% + var(--mx,0) * var(--k,10px)),calc(-50% + var(--my,0) * var(--k,10px)),0);
  animation:fs-float 9s ease-in-out infinite}
.app-phone img{width:100%;height:100%;object-fit:cover;object-position:top center;border-radius:calc(var(--cw) * .17 - 7px)}
.app-phone--c{z-index:3;--k:14px}
.app-phone--l,.app-phone--r{z-index:2;width:var(--sw);border-radius:calc(var(--sw) * .17);--k:7px;filter:brightness(.78) saturate(.9)}
.app-phone--l img,.app-phone--r img{border-radius:calc(var(--sw) * .17 - 7px)}
.app-phone--l{left:calc(50% - var(--cw) * .7);top:54%;rotate:-7deg;animation-duration:10.5s;animation-delay:-3s}
.app-phone--r{left:calc(50% + var(--cw) * .7);top:54%;rotate:7deg;animation-duration:11.5s;animation-delay:-6s}
@keyframes fs-float{0%,100%{translate:0 0}50%{translate:0 -9px}}
.app-hero__cap{position:absolute;left:0;right:0;bottom:-30px;text-align:center;font:400 var(--fs-min)/1.3 var(--sans);letter-spacing:.12em;color:rgba(236,226,207,.8)}

/* stacked: tablet, phone, tall windows — headline, phones, benefits, button */
@media (max-width:1023px),(max-aspect-ratio:21/20){
  .block.block--app{--pw:640px!important;text-align:center}
  .app-hero{grid-template-columns:minmax(0,1fr);gap:0}
  .app-hero__copy{display:contents}
  .app-hero .label{justify-content:center;order:1}
  .app-hero .label--c::before{display:block}
  .app-hero h2{order:2}
  .app-hero .app__lead{order:3;margin:12px auto 0}
  .app-hero .app__soft{order:4}
  .app-hero__stage{order:5;--sh:clamp(360px,52vh,480px);margin:26px auto 40px;width:100%}
  .app-benefits{order:6;justify-self:center;text-align:left;max-width:34em;margin:4px 0 18px}
  .app-hero__cta{order:7;align-items:center}
}
@media (max-width:760px){
  .app-hero h2{font-size:clamp(32px,8.8vw,40px)}
  .app-hero .app__lead{font-size:15.5px}
  .app-hero .app__soft{font-size:19px}
  .app-hero__stage{--sh:clamp(340px,50vh,430px);--cw:calc(var(--sh) * .44);--sw:calc(var(--sh) * .34)}
  .app-phone{padding:5px}
  .app-hero__stage{--sw:calc(var(--sh) * .3)}
  .app-phone--l{left:calc(50% - var(--cw) * .5);rotate:-5deg}
  .app-phone--r{left:calc(50% + var(--cw) * .5);rotate:5deg}
  .app-hero__orbit{width:min(calc(var(--sh) * 1.05),calc(100vw - 48px));height:min(calc(var(--sh) * 1.05),calc(100vw - 48px))}
  .app-benefits{padding-left:38px;gap:12px}
  .app-benefits b{font-size:20.5px}
  .app-benefits span{font-size:14.5px;line-height:1.45}
  /* the flight on a phone shows one screen at a time: keep it to what fits */
  html.gl .app-hero .app__soft,html.gl .app-benefits span,html.gl .app-hero__cap{display:none}
  html.gl .app-hero__stage{--sh:min(36vh,300px);margin:14px auto 18px}
  html.gl .app-hero .app__lead{-webkit-line-clamp:3;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
  html.gl .app-benefits{gap:4px;margin-bottom:10px}
}
@media (prefers-reduced-motion:reduce){
  .app-phone{transform:translate(-50%,-50%)}
  .btn--flow:hover .btn__arrow,.btn--flow:focus-visible .btn__arrow{transform:translateX(3px)}
}

/* ---------- 3 · phone overflow guard (pre-existing): the journal curve's ends poked ~8px past a 390px screen.
   Clip at the section edge only; the curve itself is unchanged. ---------- */
#journal{overflow-x:clip}
