/* Jetlag: shared tokens, type, buttons and top bar, then the landing page. The panel loads this file too. */
:root {
    --bg: #05030b;
    --line: #211e2d;
    --line-2: #332f45;
    --card: #0c0918;
    --text: #f0edff;
    --muted: #a5a1ba;
    --dim: #7e758d;
    --icon: #a391e0;
    --accent: #8b5cf6;
    --grad: linear-gradient(90deg, #8855f4, #9032eb);
    --display: Saira, "Arial Black", sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: dark;
    accent-color: var(--accent);
    scrollbar-color: var(--line-2) var(--bg);
}

/* Pages cross-fade into each other instead of flashing (browsers without this just load normally) */
@view-transition { navigation: auto; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 69px; }
body {
    background: radial-gradient(900px 420px at 50% -120px, rgba(139, 92, 246, .16), transparent 70%) no-repeat var(--bg);
    color: var(--text);
    font: 400 16px/1.6 "Bai Jamjuree", system-ui, sans-serif;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1136px, 100% - 48px); margin: 0 auto; position: relative; }
svg.lucide { width: 18px; height: 18px; flex: none; stroke-width: 1.75; }

/* Type scales with the window: same sizes as before at desktop width, no jump at a breakpoint */
h1, h2, .price, .req h3, .plan h3, .num { font-family: var(--display); font-style: italic; font-weight: 800; }
h1 { font-size: clamp(52px, 6.6vw, 97px); line-height: .97; }
h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.grad { background: linear-gradient(90deg, #e3ddff 5%, #8b5cf6 95%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .1em; }
.sub { color: var(--muted); font-size: 18px; line-height: 29px; max-width: 460px; margin-top: 12px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 54px; padding: 0 23px;
    border: 1px solid transparent; border-radius: 10px;
    font: 600 17px/1 "Bai Jamjuree", sans-serif;
    color: var(--text); white-space: nowrap; cursor: pointer;
    transition: filter .15s, background .15s, border-color .15s, transform .15s var(--ease), box-shadow .15s;
}
.btn-primary { background: var(--grad); box-shadow: 0 6px 22px rgba(139, 92, 246, .4); }
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(139, 92, 246, .5); }
.btn-ghost { background: rgba(5, 3, 11, .6); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(139, 92, 246, .1); border-color: #4a4466; }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 9px; font-size: 15px; gap: 8px; }
.btn-block { width: 100%; }

/* ---- Nav ---- */
.nav {
    position: sticky; top: 0; z-index: 10;
    background: rgba(5, 3, 11, .78);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    view-transition-name: nav;               /* the bar stays put while the page under it changes */
}
.nav-in { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.nav-in > a { display: flex; }
.nav-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 28px; }
.nav-links a { position: relative; color: var(--muted); font-size: 15px; padding: 8px 0; transition: color .15s; }
.nav-links a::after {                        /* underline grows from the middle on hover / current section */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--accent); transform: scaleX(0); transition: transform .2s var(--ease);
}
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-links a.on::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 9px; }

/* ---- Hero ---- */
.hero { padding: clamp(72px, 10vw, 145px) 0 clamp(96px, 14vw, 200px); }
/* footage behind the hero: dimmed, with the page colour faded over it toward the text and the bottom edge.
   No filter or mask on the video itself: those make the browser redraw every frame and cost smoothness. */
.hero { position: relative; overflow: hidden; }
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .32; pointer-events: none; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, var(--bg) 6%, transparent 58%), linear-gradient(transparent 55%, var(--bg) 97%);
}
@media (prefers-reduced-motion: reduce), (max-width: 760px) { .hero-video { display: none; } }   /* no motion if asked; no video data on phones */
.hero-art { position: absolute; pointer-events: none; max-width: none; mix-blend-mode: screen; }
.hero-art { left: 588px; top: -77px; }
.hero h1, .hero p, .buy { position: relative; }
.tag { display: flex; align-items: center; gap: 8px; margin-top: 19px; color: #ded8ef; font-size: 15px; }
.tag svg, .chips svg, .lost svg, .req svg, .checks svg, .ibox svg { color: var(--icon); }
.hero-p { margin-top: 30px; max-width: 520px; color: var(--muted); font-size: 19px; line-height: 30.5px; }

.buy {
    width: min(680px, 100%); margin-top: 30px; padding: 20px 20px 18px;
    background: rgba(9, 8, 20, .82);
    border: 1px solid var(--line-2); border-radius: 28px;
}
.buy-row { display: flex; align-items: center; gap: 10px; }
.price { font-size: 47px; line-height: 54px; }
.buy-label { margin: 0 auto 0 4px; color: var(--muted); font-size: 15px; line-height: 21px; }
.buy-label b, .req b, .rows b { display: block; color: var(--text); }
.buy-err { margin-top: 12px; color: #f0868c; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 15px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.chips li, .lost { display: flex; align-items: center; gap: 8px; }
.chips svg { width: 16px; height: 16px; }
.have-key { margin-top: 14px; color: var(--muted); font-size: 14.5px; }
.have-key a, .rows a { color: #d8d8ff; text-decoration: underline; text-underline-offset: 3px; }

/* The hero arrives once on load: text rises in turn, the plane flies up along its trail */
@media (prefers-reduced-motion: no-preference) {
    .hero h1, .hero .tag, .hero-p, .buy { animation: rise .7s var(--ease) both; }
    .hero .tag { animation-delay: .08s; }
    .hero-p { animation-delay: .14s; }
    .buy { animation-delay: .22s; }
    .hero-art { animation: fly 1.2s var(--ease) both; }
    @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
    @keyframes fly { from { opacity: 0; transform: translate(-46px, 70px) scale(.95); } }
}

/* ---- Sections ---- */
.sec { padding: clamp(72px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.sec-last { padding-bottom: 96px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.head p { color: var(--muted); font-size: 17.5px; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.split-top { align-items: flex-start; }
.split > div:first-child > .btn { margin-top: 28px; }

.ibox {
    display: grid; place-items: center; flex: none;
    width: 44px; height: 44px;
    background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
}
.ibox svg { width: 20px; height: 20px; }

/* A soft light follows the pointer across cards (position set by the script in home.php) */
.plan, .rows li { position: relative; }
.plan::after, .rows li::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .13), transparent 62%);
    opacity: 0; transition: opacity .3s;
}
.plan:hover::after, .rows li:hover::after { opacity: 1; }

/* ---- The menu tour: tabs on the left, the real screenshot on the right ---- */
.tour { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.tour-side { position: sticky; top: 100px; }
.tour-tabs { display: flex; flex-direction: column; margin: 28px 0; }
.tour-tabs button {
    padding: 10px 16px; text-align: left; cursor: pointer;
    background: none; border: 0; border-left: 2px solid var(--line);
    color: var(--muted); font: inherit;
    transition: border-color .2s, background .2s, color .2s;
}
.tour-tabs b { display: block; font-size: 16px; }
.tour-tabs span { display: none; margin-top: 2px; font-size: 14.5px; line-height: 21px; }
.tour-tabs button:hover { color: var(--text); border-color: #4a4466; }
.tour-tabs [aria-selected=true] { border-color: var(--accent); background: linear-gradient(90deg, rgba(139, 92, 246, .14), transparent); color: var(--muted); }
.tour-tabs [aria-selected=true] b { color: var(--text); }
.tour-tabs [aria-selected=true] span { display: block; }
.tour-win {                                       /* the screenshot's frame: a hairline of light and a glow under it */
    position: relative; padding: 1px; border-radius: 14px;
    max-width: 766px; justify-self: end;          /* never stretch the screenshot past its real size */
    background: linear-gradient(160deg, rgba(167, 139, 250, .75), rgba(255, 255, 255, .08) 38%, rgba(139, 92, 246, .4));
    box-shadow: 0 44px 90px -34px #000, 0 0 130px -26px rgba(139, 92, 246, .55);
}
.tour-win img { display: block; width: 100%; height: auto; border-radius: 13px; transition: opacity .22s; }

/* ---- Features: the boxed product on its stage, what it does listed beside it (box and stage: box.css) ---- */
.show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
.show .box3d { font-size: 11.5px; }
.feats { display: flex; flex-direction: column; justify-content: space-between; }
.feats li { display: flex; gap: 18px; padding: 19px 4px; }
.feats li + li { border-top: 1px solid var(--line); }
.feats svg.lucide { width: 22px; height: 22px; margin-top: 3px; color: var(--icon); transition: color .2s, transform .2s var(--ease); }
.feats li:hover svg.lucide { color: #d6c9ff; transform: translateX(2px); }
.feats h3 { font-size: 18px; font-weight: 600; line-height: 28px; }
.feats p { margin-top: 2px; color: var(--muted); font-size: 15.5px; line-height: 25px; }

.req { display: grid; grid-template-columns: 196px repeat(3, 1fr); align-items: center; margin-top: 56px; }
.req h3 { font-size: 21px; font-weight: 700; }
.req p { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15.5px; line-height: 21px; }
.req svg { width: 22px; height: 22px; }

/* pricing */
.plan {
    flex: none; width: 441px; padding: 32px;
    background: linear-gradient(#0f0c1d, #0f0c1d) padding-box, linear-gradient(160deg, #3b3555, #8a6dac 55%, #8b5cf6) border-box;
    border: 1px solid transparent; border-radius: 28px;
}
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan h3 { font-size: 22px; font-weight: 700; line-height: 28px; }
.stock {
    display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
    background: rgba(75, 217, 128, .08); border: 1px solid rgba(75, 217, 128, .3); border-radius: 99px;
    color: #86efac; font-size: 13px; font-weight: 600;
}
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4bd980; box-shadow: 0 0 8px #4bd980; }
.plan-price { margin-top: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.plan-price .price { font-size: 67px; line-height: 68px; color: var(--text); margin-right: 4px; }
.checks { margin: 17px 0 20px; }
.checks li { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 4px 0; font-size: 17px; line-height: 1.35; }
.checks svg { width: 16px; height: 16px; stroke-width: 2.25; }
.fine { text-align: center; margin-top: 5px; color: var(--muted); font-size: 14.5px; }
.fine svg { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.plan-secure { margin-top: 18px; }
.fine a { color: #d8d8ff; text-decoration: underline; text-underline-offset: 3px; }
.plan form, .plan .fine, .plan .buy-err { position: relative; z-index: 1; }     /* keep links and the button above the hover light */

/* community */
.rows { flex: none; width: 585px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.rows li { display: flex; gap: 16px; min-height: 111px; padding: 22px 24px; color: var(--muted); font-size: 15.5px; line-height: 24px; }
.rows li + li { border-top: 1px solid var(--line); }
.rows a { position: relative; z-index: 1; }
.rows b { font-size: 17.5px; line-height: 26px; }

/* support */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.steps li { position: relative; padding-right: 32px; }
.steps li:not(:last-child)::after {   /* connector to the next step */
    content: ""; position: absolute; left: 44px; right: 12px; top: 22px; height: 1px;
    background: linear-gradient(90deg, #9185b0, #6a6188);
}
.steps li:nth-child(2)::after { background: linear-gradient(90deg, #6a6188, #2c2840); }
.num { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #a096c5; border-radius: 50%; font-size: 17px; font-weight: 700; }
.steps b { display: block; margin-top: 20px; font-size: 18px; line-height: 26px; }
.steps p { margin-top: 4px; color: var(--muted); font-size: 15.5px; line-height: 26px; }
.lost { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16.5px; gap: 10px; }

.cta {
    position: relative; overflow: hidden;
    margin-top: clamp(72px, 9vw, 119px); padding: 48px 65px;
    background: linear-gradient(75deg, #100a1f, #090713 60%);
    border: 1px solid var(--line-2); border-radius: 28px;
}
.cta { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta h2 { line-height: 1.3; }

/* ---- Product card: the boxed product, as stores list it ---- */
.pcard { flex: none; width: 312px; background: #0b0816; border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; transition: border-color .25s, transform .25s var(--ease); }
.pcard:hover { border-color: #5a4b8f; transform: translateY(-2px); }
.pcard .stage { min-height: 0; height: 232px; padding: 0; border: 0; border-radius: 0; perspective: 900px; }
.pcard .stage::after { bottom: 8px; height: 26px; }
.pcard .box3d { font-size: 4.3px; margin-left: 6em; }
.pcard:hover .box3d { transform: rotateX(-2deg) rotateY(22deg); }

.pcard-body { padding: 18px 20px 20px; }
.pcard-body h3 { font: italic 800 25px/1.1 var(--display); }
.pcard-body p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.pcard-buy { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pcard-price { color: #b79dff; font: italic 800 30px/1 var(--display); }
.pcard-price small { display: block; margin-bottom: 7px; color: var(--dim); font: 600 10.5px/1 "Bai Jamjuree", sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.cta .sub { margin: 8px 0 28px; max-width: 490px; }
.cta .btn + .btn { margin-left: 8px; }
.cta .btn-primary { padding: 0 24px; }

/* ---- Payment result page (success.php) ---- */
.done { min-height: calc(100vh - 69px); display: grid; place-items: center; padding: 64px 24px; }
.done-card { width: min(520px, 100%); padding: 40px; background: #0f0c1d; border: 1px solid var(--line-2); border-radius: 28px; }
.done-card .sub { margin-bottom: 26px; }
.key-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 12px 12px 12px 18px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; }
.key-box code { font: 600 18px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .04em; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) { .done-card { animation: rise .6s var(--ease) both; } }

/* ---- Embedded checkout (buy.php): the product on the left, Stripe's form on the right ---- */
.pay { display: grid; grid-template-columns: 312px minmax(0, 560px); justify-content: center; gap: 56px; align-items: start; padding: 56px 0 96px; }
.pay-side { position: sticky; top: 96px; }
.pay-side h1 { margin-bottom: 22px; font-size: clamp(36px, 4vw, 46px); }
.pay .pcard:hover { transform: none; }
.pay-list { display: grid; gap: 7px; margin-top: 14px; color: var(--muted); font-size: 14.5px; }
.pay-list li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 2px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.pay-side .fine { margin-top: 14px; text-align: left; }
.pay-back { color: var(--muted); font-size: 15px; transition: color .15s; }
.pay-back:hover { color: var(--text); }
.pay-form {                                       /* Stripe's iframe sits in a framed panel, like the menu screenshots */
    min-height: 620px; padding: 1px; border-radius: 18px;
    background: linear-gradient(160deg, rgba(167, 139, 250, .6), rgba(255, 255, 255, .06) 38%, rgba(139, 92, 246, .35));
    box-shadow: 0 44px 90px -34px #000, 0 0 120px -30px rgba(139, 92, 246, .5);
}
#checkout, .pay-error { min-height: 618px; border-radius: 17px; background: #0f0c1d; overflow: hidden; }
.pay-wait { padding: 48px 32px; color: var(--muted); text-align: center; }
.pay-error:not([hidden]) { display: grid; place-content: center; gap: 18px; padding: 32px; text-align: center; color: var(--muted); }
@media (max-width: 980px) {
    .pay { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; }
    .pay-side { position: static; }
    .pay .pcard { width: 100%; }
    .pay .pcard .stage { display: none; }      /* keep the form near the top on phones */
}

/* ---- Legal pages (legal.php) ---- */
.legal { max-width: 760px; padding: 72px 0 96px; }
.legal h1 { font-size: clamp(40px, 4.4vw, 52px); }
.legal-date { margin: 10px 0 36px; color: var(--dim); font-size: 14.5px; }
.legal h2 { margin: 40px 0 10px; font: 600 20px/1.4 "Bai Jamjuree", sans-serif; }
.legal p, .legal li { color: var(--muted); font-size: 16.5px; line-height: 28px; }
.legal p + p { margin-top: 12px; }
.legal b { color: var(--text); }
.legal ul { margin: 8px 0 12px; padding-left: 22px; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal a { color: #d8d8ff; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.foot p { font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 446px repeat(3, 243px); padding: 56px 0 56px; }
.foot p { max-width: 340px; margin-top: 22px; line-height: 25px; }
.foot nav { display: flex; flex-direction: column; gap: 13px; }
.foot nav b { color: var(--text); }
.foot nav a { transition: color .15s; }
.foot nav a:hover { color: var(--text); }
.foot-bar { width: min(1200px, 100%); margin: 0 auto; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.foot-bar .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 24px 0 40px; }

/* ---- Smaller screens ---- */
@media (max-width: 1100px) {
    .hero-art { display: none; }
    .split { flex-direction: column; align-items: stretch; }
    .plan, .rows { width: 100%; }
    .show { grid-template-columns: 1fr; gap: 40px; }
    .tour { grid-template-columns: 1fr; gap: 28px; }
    .tour-side { position: static; }
    .tour-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 22px 0; border-bottom: 1px solid var(--line); }
    .tour-tabs button { padding: 10px 14px; border-left: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
    .tour-tabs [aria-selected=true] { background: none; }
    .tour-tabs [aria-selected=true] span { display: none; }
    .tour-side .btn { display: none; }
    .show .stage { min-height: 500px; }
    .cta { padding-inline: 40px; }
    .foot-in { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
    .foot-in > div { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    /* the section links move to their own row under the logo instead of disappearing */
    .nav-in { height: auto; flex-wrap: wrap; padding-top: 12px; }
    .nav-links { position: static; transform: none; order: 3; width: 100%; margin-top: 6px; gap: 24px; overflow-x: auto; scrollbar-width: none; }
    .nav-links a { padding: 10px 0; white-space: nowrap; }
    .nav-links:empty { margin: 0 0 12px; }
    .nav-cta .btn-ghost:first-child { display: none; }
    .nav-in > a img { width: auto; height: 34px; }          /* logo and buttons share one row on a phone */
    .nav-cta svg { display: none; }
    html { scroll-padding-top: 112px; }
    .buy-row { flex-wrap: wrap; }
    .buy-row .btn, .buy-row form { flex: 1; }
    .buy-row form .btn { width: 100%; }
    .head { flex-direction: column; align-items: flex-start; }
    .steps { grid-template-columns: 1fr; }
    .show .stage { min-height: 400px; padding: 44px 16px 52px; }
    .show .box3d { font-size: 7px; }
    .steps { gap: 28px; }
    .steps li::after { display: none; }
    .req { grid-template-columns: 1fr; gap: 18px; }
    .cta { padding: 36px 24px; flex-direction: column; align-items: stretch; gap: 32px; }
    .pcard { width: 100%; max-width: 360px; align-self: center; }
    .cta .btn { width: 100%; }
    .cta .btn + .btn { margin: 8px 0 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
