/* OkkaGo website — shared mobile-first layer.
   Base rules target phones (360–430 px). min-width queries enhance for tablet (768) and desktop (1024 / 1100). */

/* Links are color-based, not underlined, per the design (the dc-runtime pages reset
   this per-page; this makes it global so hand-authored React pages match). Colors are
   left to each element so this only removes the unintended underline. */
a{text-decoration:none}

:root{
  --gut:16px;          /* page side gutter */
  --sec:56px;          /* section vertical rhythm */
  --sec-s:40px;        /* tighter section rhythm */
  --card-p:20px;       /* card padding */
  --hero-pt:28px;
  --hero-pb:112px;
  --hd-h:64px;         /* header height */
  --tap:44px;          /* minimum tap target */
}
@media (min-width:768px){
  :root{--gut:24px;--sec:80px;--sec-s:56px;--card-p:28px;--hero-pt:56px;--hero-pb:140px}
}
@media (min-width:1100px){
  :root{--sec:104px;--sec-s:72px;--hero-pt:72px;--hero-pb:150px;--hd-h:72px}
}

html{-webkit-text-size-adjust:100%}
body{overflow-x:hidden}
img{max-width:100%}
.wrap{padding-left:var(--gut)!important;padding-right:var(--gut)!important}
.wrap{max-width:1360px;margin-left:auto;margin-right:auto}

/* show / hide by breakpoint (inline display is restored when the rule does not apply) */
@media (max-width:1023px){.d-only{display:none!important}}
@media (min-width:1024px){.m-only{display:none!important}}
@media (max-width:767px){.t-up{display:none!important}}

/* horizontal scrolling chip row on phones, wraps from tablet up */
.hscroll{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;margin-left:calc(-1*var(--gut));margin-right:calc(-1*var(--gut));padding:2px var(--gut) 6px}
.hscroll::-webkit-scrollbar{display:none}
.hscroll>*{flex:none}
@media (min-width:768px){.hscroll{flex-wrap:wrap!important;overflow:visible;margin-left:0;margin-right:0;padding:0}}

/* swipeable card rail on phones, fixed-tile grid from tablet up.
   Tablet = 2-up, desktop = 4-up. repeat(N,1fr) (not auto-fit) so each tile is a
   consistent 1/N-width column that left-aligns and never stretches to a full-width
   banner when there are fewer than N cards. */
.rail{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(250px,84%);grid-template-columns:none!important;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-left:calc(-1*var(--gut));margin-right:calc(-1*var(--gut));padding:4px var(--gut) 10px;scroll-padding-left:var(--gut)}
.rail::-webkit-scrollbar{display:none}
.rail>*{scroll-snap-align:start}
@media (min-width:768px){.rail{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))!important;justify-content:start;overflow:visible;margin-left:0;margin-right:0;padding:0}}
@media (min-width:1024px){.rail{grid-template-columns:repeat(4,minmax(0,1fr))!important}}

/* two-up grid on phones, auto-fill from tablet */
.g2m{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
@media (min-width:768px){.g2m{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))!important;gap:16px!important}}

/* fixed bottom action bar for phones (plan pages, checkout) */
.mbar{position:fixed;left:0;right:0;bottom:0;z-index:40;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid #E3EAF3;padding:12px var(--gut) calc(12px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:12px;box-shadow:0 -12px 30px -18px rgba(7,29,68,.35)}

/* stacks: column on phones, row from tablet */
.stack-t{display:flex;flex-direction:column;gap:16px}
@media (min-width:768px){.stack-t{flex-direction:row;flex-wrap:wrap}}

/* full-width buttons on phones */
@media (max-width:767px){.btn-block-m{width:100%}}

/* touch devices: comfortable tap targets */
@media (pointer:coarse){.chip{min-height:var(--tap)}}

/* skeleton loading */
@keyframes okg-shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}
.skel{background:linear-gradient(90deg,#EEF2F7 0px,#F7F9FC 160px,#EEF2F7 320px);background-size:800px 100%;animation:okg-shimmer 1.2s linear infinite;border-radius:10px}
@keyframes okg-spin{to{transform:rotate(360deg)}}
.spin{animation:okg-spin .9s linear infinite}
@media (prefers-reduced-motion:reduce){.skel,.spin{animation:none}}

.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid rgba(7,84,233,.45);outline-offset:2px}

/* space so the fixed bar never covers the last content on phones */
.mbar-space{height:calc(84px + env(safe-area-inset-bottom))}
@media (min-width:1024px){.mbar-space{display:none}}

/* photo / scene cards: scene image + legibility scrim */
.scene{background-size:cover;background-position:center;position:relative;overflow:hidden}
.scene::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,29,68,0) 30%,rgba(7,29,68,.82) 100%);pointer-events:none}
.scene>*{position:relative;z-index:1}

/* modal on desktop, bottom sheet on phones */
@keyframes okg-up{from{transform:translateY(100%)}to{transform:none}}
@keyframes okg-pop{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
@keyframes okg-fade{from{opacity:0}to{opacity:1}}
.sheet-ov{position:fixed;inset:0;z-index:200;background:rgba(7,29,68,.5);display:flex;align-items:flex-end;justify-content:center;animation:okg-fade .2s ease}
.sheet{width:100%;max-height:92vh;overflow-y:auto;background:#fff;border-radius:24px 24px 0 0;padding:10px 20px calc(24px + env(safe-area-inset-bottom));animation:okg-up .28s cubic-bezier(.2,.8,.2,1);box-shadow:0 -20px 60px -20px rgba(7,29,68,.45)}
.sheet-handle{width:44px;height:5px;border-radius:3px;background:#D3DDEA;margin:4px auto 12px}
@media (min-width:768px){
  .sheet-ov{align-items:center;padding:24px}
  .sheet{width:440px;border-radius:24px;padding:28px;animation:okg-pop .22s ease}
  .sheet-handle{display:none}
}
@media (prefers-reduced-motion:reduce){.sheet,.sheet-ov{animation:none}}
