/* MAX JETS website — same look as the Mini App: light, Apple-style, gold from the boarding pass. Dark mode follows the device. */
:root {
  --page: #f5f5f7; --card: #ffffff; --ink: #1d1d1f; --muted: #6e6e73; --hair: #e5e5ea; --fill: #f2f2f4;
  --gold: #e2a321; --gold-ink: #9a6b0e; --cream: #f6f1e6; --black: #111111; --err: #d70015; --ok: #248a3d;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.07); --r: 22px;
}
@media (prefers-color-scheme: dark) {
  :root { --page: #000; --card: #1c1c1e; --ink: #f5f5f7; --muted: #98989d; --hair: #2c2c2e; --fill: #2c2c2e; --gold-ink: #e8b64a; --cream: #2a2418; --shadow: 0 1px 2px rgba(0,0,0,.4); }
  .flogo, .tgplane { filter: invert(1); }
  .jet .pic, .fl .pic { filter: brightness(.94); } /* not the hero: it sits on a white card */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.47 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; padding: 0; margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--page) 78%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--hair) 70%, transparent); }
.navin { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: block; cursor: pointer; }
.brand .mark { display: block; width: 62px; height: 31px; background: var(--ink); -webkit-mask: url(/img/logo-full.svg) left center/contain no-repeat; mask: url(/img/logo-full.svg) left center/contain no-repeat; transition: background-color .7s ease, transform .7s ease; }
.brand:hover .mark { background: var(--gold-ink); }
/* the film: the logo turns gold, then the screen goes black and the film starts from the same golden logo */
.intro { position: fixed; inset: 0; z-index: 100; background: #000; display: none; align-items: center; justify-content: center; }
.intro.open { display: flex; }
.flylogo { position: fixed; z-index: 101; transform-origin: 0 0; pointer-events: none; will-change: transform; }
.flylogo .fl-svg { position: absolute; -webkit-mask: url(/img/logo-full.svg) center/100% 100% no-repeat; mask: url(/img/logo-full.svg) center/100% 100% no-repeat; }
.flylogo .fl-gold { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.intro { overflow: hidden; }
.intro video { position: absolute; object-fit: fill; background: #000; opacity: 0; transform-origin: 50% 50%; }
/* After the film fades to black the slogan is typed out, then the logo flies home */
.islogan { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); margin: 0; padding: 0 24px; text-align: center; color: #fff; z-index: 3;
  font-size: clamp(30px, 6vw, 72px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.islogan.on { opacity: 1; }
.islogan .g { color: var(--gold); }
.islogan .caret { display: inline-block; width: .06em; height: .95em; margin-left: .04em; vertical-align: -.1em; background: var(--gold); animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ix { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.links { display: flex; gap: 26px; margin-left: 12px; font-size: 14px; color: var(--muted); }
.links a:hover { color: var(--ink); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border-radius: 99px; background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.06); font-size: 14px; font-weight: 600; white-space: nowrap; }
.pill.gold { background: var(--black); color: #fff; }
#cur { min-height: 34px; padding: 0 10px; border-radius: 99px; border: 0; background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.06); font-size: 14px; font-weight: 600; color: var(--gold-ink); appearance: none; -webkit-appearance: none; text-align: center; }

/* hero */
.hero { background: var(--card); padding: 56px 0 64px; }
.heroin { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
h1 { margin: 0; font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.gold-t { color: var(--gold); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 540px; margin: 18px 0 28px; }
.heroimg { background: #fff; border-radius: 28px; padding: 6% 4%; }
.hstage { position: relative; aspect-ratio: 16/8; }
.hstage .jet3d { position: absolute; inset: -6% -4%; width: 108%; height: 112%; opacity: 0; transition: opacity 1.2s ease; cursor: grab; }
.hstage .jet3d:active { cursor: grabbing; }
.hstage .jet3d.on { opacity: 1; }
.hstage.is3d img { opacity: 0 !important; transition: opacity .8s ease; }
.hstage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateX(-24px); transition: opacity 1.1s ease, transform 5.5s cubic-bezier(.2,.6,.3,1); }
.hstage img.on { opacity: 1; transform: translateX(14px); }
.hstage img.off { opacity: 0; transform: translateX(60px); transition: opacity .9s ease, transform 1.2s ease-in; }
.hcap { margin: 10px 0 0; text-align: center; font-size: 14px; color: #6e6e73; min-height: 20px; transition: opacity .5s; }
.hcap b { color: #1d1d1f; font-weight: 600; }
.hdots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.hdots button { width: 7px; height: 7px; border-radius: 50%; background: #d2d2d7; transition: background .3s, width .3s; }
.hdots button.on { background: #1d1d1f; width: 20px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { .heroimg { box-shadow: 0 0 0 1px #2c2c2e; } }

/* search card */
.search { background: var(--page); border-radius: var(--r); padding: 16px; max-width: 600px; }
.seg { display: inline-flex; background: var(--fill); border-radius: 10px; padding: 3px; margin-bottom: 12px; }
.seg button { padding: 6px 14px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.sgrid { display: grid; grid-template-columns: 1fr 36px 1fr; gap: 8px; }
.fld { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: 14px; padding: 9px 14px 10px; min-width: 0; }
.fld > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.fld input { border: 0; outline: 0; background: none; padding: 2px 0 0; font-size: 17px; font-weight: 600; width: 100%; min-width: 0; }
.fld input::placeholder { color: #b0b0b5; font-weight: 500; }
/* Date fields: the whole box is the button; the real date input lies invisibly on top, so only a calendar date can be chosen */
.dfld { cursor: pointer; }
.dfld input[type=date] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; margin: 0; z-index: 2; }
.dfld .dval { display: block; padding: 2px 34px 0 0; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dfld .dval.empty { color: var(--gold-ink); }
.dfld .dcal { position: absolute; right: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--gold-ink); }
.dfld:focus-within { box-shadow: 0 0 0 2px var(--gold-ink) inset; }
.fld .code { position: absolute; right: 14px; bottom: 11px; font-style: normal; font-size: 13px; color: var(--gold-ink); font-weight: 700; }
.swap { align-self: center; width: 36px; height: 36px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); font-size: 16px; }
.sgrid > .fld:nth-of-type(3), .sgrid > .fld:nth-of-type(4), .sgrid > .paxf { grid-column: span 1; }
.sgrid { grid-template-areas: "from swap to" "d1 d1 d2" "pax pax pax"; }
.city[data-side=from] { grid-area: from; } .swap { grid-area: swap; } .city[data-side=to] { grid-area: to; }
.sgrid > label:has(#d1) { grid-area: d1; } #d2w { grid-area: d2; } .paxf { grid-area: pax; }
.sgrid:not(:has(#d2w:not([hidden]))) { grid-template-areas: "from swap to" "d1 d1 pax"; }
.paxf { flex-direction: row; align-items: center; justify-content: space-between; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; background: var(--fill); font-size: 19px; line-height: 1; }
.stepper button:disabled { opacity: .35; }
.stepper b { min-width: 20px; text-align: center; font-size: 17px; }
.sug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--card); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.18); overflow: hidden; display: none; min-width: 260px; }
.sug.open { display: block; }
.sug button { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 14px; text-align: left; border-top: 1px solid var(--hair); }
.sug button:first-child { border-top: 0; }
.sug button:hover, .sug button:focus { background: var(--fill); outline: 0; }
.sug .ic { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--gold-ink); }
.sug b { font-weight: 600; } .sug .cn { color: var(--muted); } .sug small { display: block; color: var(--muted); font-size: 13px; }
.cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: 12px; border-radius: 14px; background: var(--black); color: #fff; font-size: 17px; font-weight: 600; transition: transform .15s, opacity .15s; }
.cta:active { transform: scale(.985); } .cta:disabled { opacity: .5; }
.cta.inline { width: auto; padding: 0 22px; display: inline-flex; margin: 0; }
.cta.ghost { background: var(--fill); color: var(--ink); }
@media (prefers-color-scheme: dark) { .cta, .pill.gold { background: #f5f5f7; color: #000; } }
.err { color: var(--err); font-size: 14px; margin: 8px 2px 0; min-height: 0; }
.err:empty { display: none; }

/* sections */
.sec { padding: 80px 0; }
.sec.alt { background: var(--card); }
h2 { margin: 0; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -.03em; }
.sub { color: var(--muted); font-size: 19px; max-width: 640px; margin: 12px 0 0; }
.sechead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.crumb { color: var(--muted); margin: 0 0 6px; font-weight: 600; }
.hint { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* prices */
.jets { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 24px; }
.jet { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px 16px; text-align: left; display: flex; flex-direction: column; gap: 4px; transition: transform .15s, box-shadow .15s; }
.jet:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 16px 40px rgba(0,0,0,.1); }
.jet .pic { aspect-ratio: 16/7; background: #fff center/contain no-repeat; border-radius: 12px; margin-bottom: 6px; }
.jet .nm { font-size: 19px; font-weight: 700; } .jet .ex { color: var(--muted); font-size: 14px; }
.jet .pr { margin-top: 8px; font-size: 22px; font-weight: 700; white-space: nowrap; }
.jet .pr small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.jet .go { margin-top: 10px; align-self: flex-start; padding: 8px 16px; border-radius: 99px; background: var(--fill); font-weight: 600; font-size: 14px; }
.jet.rec { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gold-ink); background: var(--cream); border-radius: 99px; padding: 3px 9px; margin-bottom: 4px; align-self: flex-start; }
.seats { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--muted); }
.seats svg { width: 14px; height: 14px; fill: currentColor; }

/* legs */
.filters { display: flex; gap: 8px; }
.filters input, .filters select { min-height: 40px; border-radius: 99px; border: 0; padding: 0 16px; background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.06); font-size: 15px; outline: 0; }
.filters input { width: 170px; }
.legs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.leg { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); text-align: left; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.leg:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 18px 44px rgba(0,0,0,.12); }
.leg .pic { aspect-ratio: 16/9; background: var(--fill) center/cover no-repeat; }
.leg .pic.ga { background: #fff url(/img/side-light.jpg?v=4) center/72% no-repeat; }
.leg .info { padding: 14px 16px 16px; }
.leg .rt { font-size: 19px; font-weight: 700; }
.leg .meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.leg .pr { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.leg .pr b { font-size: 22px; white-space: nowrap; } .leg .pr s { color: var(--muted); font-size: 14px; white-space: nowrap; }
.leg .off { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--gold-ink); background: var(--cream); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.skel { height: 330px; border-radius: var(--r); background: linear-gradient(90deg, var(--card), var(--fill), var(--card)); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { color: var(--muted); grid-column: 1/-1; padding: 30px 0; }
.legsfoot { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }

/* tailored */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.tcard { background: var(--page); border-radius: var(--r); padding: 26px; }
.tcard .n { font-size: 13px; font-weight: 700; color: var(--gold-ink); }
.tcard h3 { margin: 6px 0 8px; font-size: 24px; letter-spacing: -.02em; }
.tcard p { color: var(--muted); margin: 0 0 14px; }
.tcard ul { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.tcard li { padding: 8px 0; border-top: 1px solid var(--hair); }
.tcard li b { font-weight: 600; }

/* fleet */
.fleet { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 30px; }
.fl { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.fl .pic { aspect-ratio: 4/3; background: #fff center/88% no-repeat; }
.fl .tx { padding: 10px 14px 14px; }
.fl b { display: block; font-size: 17px; } .fl small { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }

/* why */
.cmp { margin-top: 30px; background: var(--page); border-radius: var(--r); overflow: hidden; }
.cmp .r { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--hair); align-items: center; }
.cmp .r:first-child { border-top: 0; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.cmp .k { font-weight: 600; } .cmp .o { color: var(--muted); } .cmp .m { font-weight: 600; }
.cmp .m::before { content: "✓"; color: var(--ok); margin-right: 8px; font-weight: 800; }
.cmp .r:first-child .m::before { content: none; }
.cmp .r:first-child .m { color: var(--gold-ink); }

/* contact */
.tgcard { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; background: var(--card); border-radius: 28px; padding: 44px; box-shadow: var(--shadow); }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.tgplane { width: 260px; opacity: .9; }

/* footer */
.foot { padding: 50px 0 60px; text-align: center; color: var(--muted); font-size: 14px; }
.flogo { height: 34px; width: auto; margin: 0 auto 12px; }
.slogan { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
.flinks { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.flinks a:hover { color: var(--ink); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.42); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; background: var(--card); border-radius: 24px; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--fill); font-size: 14px; z-index: 2; }
.box .poster { width: 100%; border-radius: 16px; margin: 4px 0 14px; }
.box h3 { margin: 0 34px 4px 0; font-size: 24px; letter-spacing: -.02em; }
.box .meta { color: var(--muted); margin: 0 0 10px; font-size: 15px; }
.box .bigpr { font-size: 26px; font-weight: 700; margin: 6px 0 14px; } .box .bigpr s { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.box .row { display: flex; justify-content: space-between; align-items: center; background: var(--page); border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; }
.box input, .box textarea { width: 100%; border: 0; outline: 0; background: var(--page); border-radius: 14px; padding: 14px; font-size: 16px; margin-bottom: 10px; resize: vertical; }
.box .alt2 { display: flex; gap: 10px; margin-top: 10px; } .box .alt2 a { flex: 1; min-height: 46px; margin: 0; font-size: 15px; }
.box .note { color: var(--muted); font-size: 13px; margin: 10px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.done { text-align: center; padding: 20px 0 6px; }
.done svg { width: 64px; height: 64px; margin: 0 auto 12px; display: block; }
.done circle { fill: none; stroke: var(--ok); stroke-width: 3; } .done path { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* responsive */
@media (max-width: 980px) {
  .links { display: none; }
  .heroin { grid-template-columns: 1fr; }
  .heroimg { order: -1; padding: 4% 3%; border-radius: 22px; }
  .three { grid-template-columns: 1fr; }
  .fleet { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .tgcard { grid-template-columns: 1fr; padding: 30px 22px; } .tgplane { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hide-s { display: none !important; }
  .hero { padding: 18px 0 40px; }
  .sec { padding: 56px 0; }
  .search { padding: 12px; margin: 0 -4px; }
  .sgrid { grid-template-columns: 1fr; grid-template-areas: "from" "to" "d1" "d2" "pax" !important; }
  .swap { display: none; }
  .filters { width: 100%; } .filters input { flex: 1; width: auto; min-width: 0; }
  .legs { grid-template-columns: 1fr; }
  .cmp .r { grid-template-columns: 1fr 1fr; padding: 12px 16px; } .cmp .k { grid-column: 1/-1; }
  .box { padding: 20px 18px; border-radius: 22px; }
  .modal { align-items: flex-end; padding: 0; } .box { max-height: 92vh; border-radius: 22px 22px 0 0; }
}

.iplay { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(230,168,58,.92); box-shadow: 0 10px 40px rgba(0,0,0,.5); z-index: 2; display: grid; place-items: center; }
.iplay svg { width: 34px; height: 34px; fill: #111; margin-left: 4px; }

/* no direct flight on this route (closed airspace) */
.routewarn { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(212, 160, 60, .5); background: rgba(212, 160, 60, .12); line-height: 1.45; font-size: 15px; }
.routewarn[hidden] { display: none; }

/* tailored cards: point, then its detail on the next line */
.tcard li span { display: block; color: var(--muted); font-size: .92em; margin-top: 2px; }

/* hero: manual aircraft switching (arrows, bigger dot targets) */
.heroimg { position: relative; }
.harrow { position: absolute; top: 42%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.85); color: #1d1d1f; box-shadow: 0 1px 4px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.06); cursor: pointer; z-index: 2; transition: background .2s, transform .2s; }
.harrow:hover { background: #fff; }
.harrow:active { transform: translateY(-50%) scale(.94); }
.harrow.prev { left: 10px; } .harrow.next { right: 10px; }
.hdots button { position: relative; }
.hdots button::after { content: ''; position: absolute; inset: -10px -4px; }
.hstage { touch-action: pan-y; }
@media (max-width: 600px) { .harrow { width: 34px; height: 34px; } .harrow.prev { left: 6px; } .harrow.next { right: 6px; } }

/* opening animation */
#splash { position: fixed; inset: 0; z-index: 300; background: var(--page); display: flex; align-items: center; justify-content: center; animation: spOut .3s ease 2.5s forwards; }
.totop { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--ink); color: var(--page); box-shadow: 0 6px 20px rgba(0,0,0,.25); display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .2s, transform .2s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { width: 22px; height: 22px; }
/* After the opening logo lands, the headline, text and search rise in one after another.
   While the splash is on they wait hidden; if the script never runs they still appear after 2.6 s. */
html.splashing .herotext > * { opacity: 0; animation: heroUp .6s ease 2.6s forwards; }
html.herorise .herotext > * { animation: heroUp .7s cubic-bezier(.2,.7,.2,1) both; }
html.herorise .herotext > :nth-child(2) { animation-delay: .08s; } html.herorise .herotext > :nth-child(3) { animation-delay: .16s; } html.herorise .herotext > :nth-child(4) { animation-delay: .26s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes spOut { to { opacity: 0; visibility: hidden; pointer-events: none; } } /* if the script never runs */
#splash .smark { display: block; width: min(64vw, 340px); aspect-ratio: 2 / 1; background: var(--ink);
  -webkit-mask: url(/img/logo-full.svg) center/contain no-repeat; mask: url(/img/logo-full.svg) center/contain no-repeat;
  opacity: 0; transform: scale(.92); animation: smIn .45s cubic-bezier(.2,.7,.2,1) .05s forwards; }
@keyframes smIn { to { opacity: 1; transform: none; } }
.nosplash #splash { display: none; }

/* phones: the plane sliding out of the hero card must not widen the page; back-to-top stays under the request sheet */
.heroimg { overflow: hidden; }
html, body { overflow-x: clip; }
.totop { z-index: 45; }
.legmore { grid-column: 1/-1; justify-self: center; margin-top: 4px; padding: 12px 26px; }

/* reviews */
#reviews[hidden] { display: none; }
.revs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 30px; }
.rev { margin: 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; }
.rev .st { color: var(--gold); letter-spacing: 3px; font-size: 18px; } .rev .st span { color: var(--hair); }
.rev blockquote { margin: 12px 0 18px; font-size: 16px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; flex: 1; }
.rev figcaption { font-size: 14px; color: var(--muted); } .rev figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 600px) {
  .revs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 24px -16px 0; padding: 0 16px 6px; scrollbar-width: none; }
  .revs::-webkit-scrollbar { display: none; }
  .rev { flex: 0 0 86%; scroll-snap-align: center; padding: 20px; }
}

/* reviews carousel (moves by itself, arrows, swipe) */
.revwrap { position: relative; }
.revs, .revs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; gap: 18px; margin-top: 30px; padding-bottom: 6px; }
.revs::-webkit-scrollbar { display: none; }
.revs .rev { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; }
@media (max-width: 980px) { .revs .rev { flex-basis: calc((100% - 18px) / 2); } }
.revarr { position: absolute; top: calc(50% + 15px); transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); font-size: 24px; line-height: 1; box-shadow: 0 4px 16px rgba(0,0,0,.18); cursor: pointer; display: grid; place-items: center; }
.revarr.prev { left: -14px; } .revarr.next { right: -14px; }
@media (max-width: 600px) {
  .revs { margin: 24px -16px 0; padding: 0 16px 6px; gap: 12px; scroll-padding: 0 16px; }
  .revs .rev { flex-basis: 86%; scroll-snap-align: center; }
  .revarr { display: none; }
}

/* same height for every card; long text cut, "Read more" opens it */
.revs { align-items: flex-start; }
.rev blockquote { flex: none; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; height: calc(1.5em * 6); margin-bottom: 6px; }
.rev.open blockquote { -webkit-line-clamp: unset; display: block; height: auto; }
.revmore { align-self: flex-start; background: none; border: 0; padding: 2px 0 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--gold-ink); cursor: pointer; }
.rev figcaption { margin-top: auto; }
.rev:not(:has(.revmore)) blockquote { margin-bottom: 30px; }
.revmore { height: 34px; padding: 0; line-height: 34px; }
.rev:not(:has(.revmore)) blockquote { margin-bottom: 40px; }
.revtr { padding: 0; margin-top: 4px; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }
.watchcta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 20px 24px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.watchcta b { font-size: 18px; } .watchcta p { margin: 4px 0 0; color: var(--muted); font-size: 15px; } .watchcta .cta { white-space: nowrap; flex: none; }
@media (max-width: 600px) { .watchcta { flex-direction: column; align-items: stretch; text-align: left; padding: 18px; } .watchcta .cta { text-align: center; } }
.froutes { font-size: 13px; color: var(--muted); line-height: 2; } .froutes a { margin-right: 14px; color: inherit; white-space: nowrap; }
.share { width: 100%; margin: 4px 0 10px; }
