/* ============================================================
   ShopKit — Landing page
   โทน: หมึกดำอุ่น + กระดาษครีม + ส้มพริกเป็นสีเด่น
   parallax ทั้งหมดขับด้วย --px / --py ที่ landing.js ตั้งให้
   ============================================================ */

:root {
    --ink:      #14110f;
    --ink-2:    #1f1a16;
    --ink-3:    #2b2520;
    --paper:    #f4eee3;
    --paper-2:  #ebe2d2;
    --paper-3:  #ded3bf;
    --text:     #2a241f;
    --muted:    #74695d;
    --muted-dk: #a99d8e;
    --accent:   #ff5a1f;
    --accent-dk:#d9420c;
    --saffron:  #f2b134;
    --jade:     #0f7a5c;
    --jade-lt:  #2fd49b;
    --line:     rgba(20, 17, 15, .12);
    --line-dk:  rgba(244, 238, 227, .12);

    --f-display: "Noto Serif Thai", "Trirong", serif;
    --f-body:    "Anuphan", "Sarabun", sans-serif;
    --f-mono:    "JetBrains Mono", ui-monospace, monospace;

    --wrap: 1220px;
    --ease: cubic-bezier(.2, .7, .1, 1);
    --nav-h: 68px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
code { font-family: var(--f-mono); font-size: .86em; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ── Global texture + progress ───────────────────────────── */
.grain {
    position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%;
                 transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--saffron), var(--accent)); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    height: 52px; padding-inline: 26px; border-radius: 999px;
    font-weight: 600; font-size: 1rem; white-space: nowrap;
    transition: transform .35s var(--ease), background .25s, box-shadow .35s var(--ease), color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 90, 31, .7); }
.btn-accent:hover { background: var(--accent-dk); box-shadow: 0 16px 40px -12px rgba(255, 90, 31, .8); }
.btn-ghost { border: 1.5px solid currentColor; }
.btn-ghost:hover { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.btn-sm { height: 40px; padding-inline: 18px; font-size: .9rem; }
.btn-lg { height: 60px; padding-inline: 34px; font-size: 1.08rem; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: var(--nav-h);
    color: var(--paper);
    transition: background .4s, color .4s, box-shadow .4s, transform .45s var(--ease);
}
.nav.is-solid {
    background: rgba(20, 17, 15, .78);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    box-shadow: 0 1px 0 var(--line-dk);
}
.nav.is-hidden { transform: translateY(calc(-100% - 40px)); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.logo-mark {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: var(--accent); color: #fff; font-family: var(--f-display); font-weight: 900; font-size: 1.15rem;
    transform: rotate(-8deg);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: .94rem; opacity: .78; transition: opacity .2s, background .2s; }
.nav-links a:hover, .nav-links a.is-active { opacity: 1; background: rgba(244, 238, 227, .1); }

/* ── Section heads ───────────────────────────────────────── */
section { position: relative; }
.sec-head { max-width: 640px; margin-bottom: 64px; }
.kicker {
    font-family: var(--f-body); font-weight: 600; font-size: .86rem; letter-spacing: .02em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 18px;
}
.sec-head h2, .band-title, .final h2 {
    font-family: var(--f-display); font-weight: 800;
    font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.28; letter-spacing: -.01em;
    color: var(--ink);
}
.sec-head h2 em { font-style: normal; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 3px;
                  text-decoration-color: var(--accent); margin-inline: .12em; }
.sec-head > p:last-child, .sec-head > p:not(.kicker) { margin-top: 22px; color: var(--muted); font-size: 1.08rem; max-width: 560px; }
.sec-head.light h2 { color: var(--paper); }
.sec-head.light > p:not(.kicker) { color: var(--muted-dk); }
.hl { position: relative; white-space: nowrap; color: var(--accent); isolation: isolate; }
.hl::after {
    content: ""; position: absolute; left: -2%; right: -2%; bottom: .3em; height: .24em; z-index: -1;
    background: var(--saffron); opacity: .38; border-radius: 4px;
    transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s .35s var(--ease);
}
.is-in .hl::after, .reveal.is-in .hl::after { transform: scaleX(1); }
.light .hl::after { background: var(--accent); opacity: 1; height: .07em; bottom: .16em; }

/* ── Reveal ──────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Parallax base ───────────────────────────────────────── */
[data-speed] { will-change: transform; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh; min-height: 100svh;
    background: radial-gradient(120% 90% at 80% 10%, #2a1d15 0%, var(--ink) 55%);
    color: var(--paper);
    overflow: hidden; isolation: isolate;
    display: flex; align-items: center;
    padding: calc(var(--nav-h) + 40px) 0 90px;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.orb-a { width: 520px; height: 520px; right: -120px; top: -80px; background: radial-gradient(circle, rgba(255, 90, 31, .55), transparent 70%); }
.orb-b { width: 420px; height: 420px; left: -140px; bottom: -120px; background: radial-gradient(circle, rgba(15, 122, 92, .5), transparent 70%); }
.orb-c { width: 300px; height: 300px; left: 42%; top: 30%; background: radial-gradient(circle, rgba(242, 177, 52, .25), transparent 70%); }
.hero-grid {
    position: absolute; inset: -20% 0;
    background-image:
        linear-gradient(var(--line-dk) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-dk) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 75%);
    opacity: .6;
}
.hero-word {
    position: absolute; left: -2vw; bottom: -4vw;
    font-family: var(--f-display); font-weight: 900; font-size: 24vw; line-height: 1; letter-spacing: -.04em;
    color: transparent; -webkit-text-stroke: 1.5px rgba(244, 238, 227, .07);
    white-space: nowrap; user-select: none;
}

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; color: var(--muted-dk);
    padding: 7px 14px 7px 12px; border: 1px solid var(--line-dk); border-radius: 999px; margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jade-lt); box-shadow: 0 0 0 0 rgba(47, 212, 155, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(47, 212, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 212, 155, 0); } }

.hero-title {
    font-family: var(--f-display); font-weight: 900;
    font-size: clamp(2.9rem, 6.6vw, 6rem); line-height: 1.2; letter-spacing: -.015em;
}
.hero-title .line { display: block; }
.rotator { display: grid !important; color: var(--accent); }
.rot-word {
    grid-area: 1 / 1; opacity: 0; transform: translateY(60%) rotate(4deg); filter: blur(6px);
    transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s;
}
.rot-word.is-on { opacity: 1; transform: none; filter: none; }
.rot-word.is-out { opacity: 0; transform: translateY(-60%) rotate(-4deg); filter: blur(6px); }

.hero-lead { margin-top: 28px; max-width: 540px; font-size: 1.1rem; color: var(--muted-dk); }
.hero-lead strong { color: var(--paper); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-stats { display: flex; gap: 34px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line-dk); flex-wrap: wrap; }
.hero-stats dt { font-family: var(--f-display); font-weight: 800; font-size: 2.1rem; line-height: 1.1; color: var(--paper); }
.hero-stats dd { font-size: .86rem; color: var(--muted-dk); }

/* ── Floating cards ──────────────────────────────────────── */
.hero-stage { position: relative; height: 600px; perspective: 1200px; }
.float-card { position: absolute; }
.fc-inner {
    background: rgba(244, 238, 227, .96); color: var(--ink);
    border-radius: 18px; padding: 16px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .5) inset;
    animation: bob 7s ease-in-out infinite; animation-delay: var(--bob, 0s);
    font-size: .88rem; line-height: 1.5;
}
@keyframes bob { 50% { transform: translateY(-12px) rotate(var(--tilt, 0deg)); } }
.fc-inner small { display: block; color: var(--muted); font-size: .76rem; }

.fc-product { left: 0; top: 30px; width: 240px; --bob: -1s; }
.fc-product .fc-inner { padding: 12px; }
.fc-img { height: 130px; border-radius: 12px; display: grid; place-items: center; font-size: 4rem;
          background: linear-gradient(135deg, #ffd9c7, #ffb38f); }
.fc-body { padding: 12px 4px 2px; }
.fc-body b { display: block; font-size: 1rem; margin: 2px 0 8px; }
.fc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; font-size: 1.05rem; }
.chip-btn { background: var(--ink); color: var(--paper); font-size: .74rem; padding: 6px 10px; border-radius: 999px; }

.fc-qr { right: 0; top: 0; width: 230px; --bob: -3s; }
.fc-qr .fc-inner { background: #fff; padding: 18px; }
.pp-head { display: flex; align-items: center; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-bottom: 12px; }
.pp-logo { background: #0e3a67; color: #fff; font-weight: 700; padding: 3px 9px; border-radius: 6px; font-size: .74rem; letter-spacing: .02em; }
.qr { aspect-ratio: 1; width: 100%; }
.qr svg { width: 100%; height: 100%; }
.pp-amount { margin-top: 12px; display: flex; align-items: baseline; justify-content: space-between; }
.pp-amount b { font-family: var(--f-display); font-size: 1.5rem; }
.pp-amount em { font-style: normal; color: var(--accent); }

.fc-slip { left: 60px; top: 540px; --bob: -2s; --tilt: -1.5deg; }
.fc-slip .fc-inner { display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; background: var(--jade); color: #fff; }
.fc-slip small { color: rgba(255, 255, 255, .75); }
.ok { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--jade); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }

.fc-kitchen { right: 0; top: 380px; width: 210px; --bob: -4s; --tilt: 1deg; }
.fc-kitchen .fc-inner { background: #fffaf0; border-top: 6px dashed var(--saffron); border-radius: 6px 6px 18px 18px; }
.tk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tk-head span { font-size: .7rem; background: var(--saffron); padding: 2px 8px; border-radius: 999px; }
.fc-kitchen li span { font-family: var(--f-mono); color: var(--accent); margin-right: 4px; }

.fc-booking { left: 0; top: 345px; width: 220px; --bob: -5s; }
.slots { display: flex; gap: 6px; margin: 8px 0; }
.slots span { flex: 1; text-align: center; font-family: var(--f-mono); font-size: .74rem; padding: 6px 0; border-radius: 8px; border: 1px solid var(--line); }
.slots .on { background: var(--accent); color: #fff; border-color: var(--accent); }
.fc-booking .staff { color: var(--text); }

.fc-key { left: 128px; top: 272px; --bob: -2.5s; }
.fc-key .fc-inner { background: var(--ink-3); color: var(--paper); border: 1px solid var(--line-dk); }
.fc-key small { color: var(--muted-dk); }
.fc-key code { color: var(--saffron); font-size: .9rem; }

.fc-bell { left: 180px; top: 470px; --bob: -1.5s; }
.fc-bell .fc-inner { padding: 10px 16px; border-radius: 999px; font-weight: 600; background: var(--accent); color: #fff; }

.scroll-hint { position: absolute; bottom: 28px; left: 50%; margin-left: -13px; width: 26px; height: 42px;
               border: 1.5px solid rgba(244, 238, 227, .35); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px;
                    background: var(--paper); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ── Marquee ─────────────────────────────────────────────── */
.marquee { background: var(--accent); color: #fff; overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: -22px -10px 0; position: relative; z-index: 3; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 45s linear infinite;
                 font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; white-space: nowrap; align-items: center; }
.marquee-track i { font-style: normal; color: var(--ink); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   STORE TYPES
   ============================================================ */
.types { padding: 140px 0 80px; background: var(--paper); }
.types-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; }
.types-sticky { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }

.mock {
    --mc: var(--accent);
    background: #fff; border-radius: 22px; overflow: hidden;
    box-shadow: 0 50px 80px -40px rgba(20, 17, 15, .45), 0 0 0 1px var(--line);
    transition: --mc .5s;
}
.mock[data-type="digital"] { --mc: #7b3fe4; }
.mock[data-type="food"]    { --mc: #ff5a1f; }
.mock[data-type="service"] { --mc: #0aa3a3; }
.mock[data-type="general"] { --mc: #2a5bd7; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--paper-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--paper-3); }
.mock-url { margin-left: 12px; flex: 1; font-family: var(--f-mono); font-size: .72rem; color: var(--muted);
            background: #fff; padding: 4px 12px; border-radius: 999px; }
.mock-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.mock-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem;
             background: color-mix(in srgb, var(--mc) 14%, #fff); transition: background .5s; }
.mock-head b { font-size: 1rem; }
.mock-tab { margin-left: auto; font-size: .8rem; font-weight: 600; color: #fff; background: var(--mc);
            padding: 4px 12px; border-radius: 999px; transition: background .5s; }
.mock-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px 20px; }
.mi { border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: .8rem; animation: pop .55s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.mi-img { height: 64px; border-radius: 8px; display: grid; place-items: center; font-size: 1.9rem; margin-bottom: 8px;
          background: color-mix(in srgb, var(--mc) 10%, #fff); }
.mi b { display: block; line-height: 1.35; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi span { color: var(--muted); font-size: .76rem; }
.mi em { display: block; margin-top: 8px; font-style: normal; text-align: center; font-size: .72rem; font-weight: 600;
         background: var(--mc); color: #fff; border-radius: 999px; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } }

.mock-caps { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 16px; }
.cap { font-size: .74rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
       transition: all .4s var(--ease); }
.cap::before { content: "–"; margin-right: 5px; }
.cap.on { background: color-mix(in srgb, var(--mc) 12%, #fff); border-color: color-mix(in srgb, var(--mc) 40%, #fff); color: var(--ink); }
.cap.on::before { content: "✓"; color: var(--mc); font-weight: 700; }
.cap.off { opacity: .45; text-decoration: line-through; }

.mock-flow { padding: 16px 20px 22px; background: var(--paper); border-top: 1px solid var(--line); }
.mock-flow small { font-size: .78rem; color: var(--muted); }
.mock-flow ol { display: flex; margin-top: 10px; counter-reset: s; }
.mock-flow li { flex: 1; position: relative; text-align: center; font-size: .72rem; color: var(--text); padding-top: 26px;
                counter-increment: s; animation: pop .5s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
.mock-flow li::before { content: counter(s); position: absolute; top: 0; left: 50%; margin-left: -11px; width: 22px; height: 22px;
                        border-radius: 50%; background: var(--mc); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; z-index: 1; }
.mock-flow li:not(:last-child)::after { content: ""; position: absolute; top: 10px; left: 50%; right: -50%; height: 2px; background: color-mix(in srgb, var(--mc) 35%, #fff); }

.types-steps { padding-bottom: 20vh; }
.type-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .6s var(--ease); }
.type-step.is-active { opacity: 1; }
.type-emoji { font-size: 2.6rem; margin-bottom: 18px; display: inline-block; transition: transform .7s var(--ease); transform: scale(.7) rotate(-10deg); }
.type-step.is-active .type-emoji { transform: none; }
.type-step h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.3; color: var(--ink); margin-bottom: 14px; }
.type-step p:not(.kicker) { color: var(--muted); font-size: 1.05rem; }
.type-step .kicker { margin-bottom: 8px; }

/* ============================================================
   PARALLAX BANDS
   ============================================================ */
.band { overflow: hidden; }
.band-pay {
    height: 72vh; min-height: 440px; background: var(--ink); color: var(--paper);
    display: grid; place-items: center; isolation: isolate;
}
.band-layer { position: absolute; white-space: nowrap; pointer-events: none; }
.bl-back { font-family: var(--f-display); font-weight: 900; font-size: 22vw; letter-spacing: .1em; line-height: 1;
           color: transparent; -webkit-text-stroke: 1px rgba(242, 177, 52, .16); top: 6%; left: -5%; }
.bl-mid { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.6rem, 8vw, 7rem); line-height: 1.2; position: relative;
          background: linear-gradient(90deg, var(--paper), var(--saffron), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bl-front { inset: 0; }
.coin {
    position: absolute; border-radius: 50%; display: grid; place-items: center;
    font-family: var(--f-display); font-weight: 900; color: #7a4e00;
    background: radial-gradient(circle at 30% 30%, #ffe39a, var(--saffron) 55%, #b97a0a);
    box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15), 0 20px 40px -10px rgba(0, 0, 0, .6);
}
.c1 { width: 90px; height: 90px; font-size: 2.4rem; left: 8%; top: 18%; transform: rotate(-12deg); }
.c2 { width: 56px; height: 56px; font-size: 1.5rem; left: 78%; top: 12%; }
.c3 { width: 120px; height: 120px; font-size: 3.2rem; left: 84%; top: 62%; transform: rotate(18deg); }
.c4 { width: 44px; height: 44px; font-size: 1.1rem; left: 18%; top: 74%; }

.band-swatch { padding: 110px 0; background: var(--paper-2); display: flex; flex-direction: column; gap: 34px; align-items: center; }
.sw-row { display: flex; gap: 22px; }
.sw-row i { width: clamp(80px, 11vw, 150px); aspect-ratio: 1; border-radius: 28%; background: var(--c); flex-shrink: 0;
            box-shadow: 0 20px 40px -18px color-mix(in srgb, var(--c) 80%, #000); }
.sw-row i:nth-child(odd) { border-radius: 50%; }
.band-title { text-align: center; padding-inline: 20px; }
.band-title em { font-style: normal; color: var(--accent); }

/* ============================================================
   PROMPTPAY
   ============================================================ */
.pay { background: var(--ink); color: var(--paper); padding: 40px 0 140px; }
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.pipeline::before { content: ""; position: absolute; left: 6%; right: 6%; top: 118px; height: 2px;
                    background: repeating-linear-gradient(90deg, var(--line-dk) 0 10px, transparent 10px 18px); }
.pipe { position: relative; background: var(--ink-2); border: 1px solid var(--line-dk); border-radius: 22px; padding: 22px 22px 26px; }
.pipe:nth-child(2) { --d: .1s; } .pipe:nth-child(3) { --d: .2s; } .pipe:nth-child(4) { --d: .3s; }
.pipe-n { font-family: var(--f-mono); font-size: .76rem; color: var(--muted-dk); }
.pipe-visual { height: 170px; display: grid; place-items: center; margin: 8px 0 18px; }
.pipe h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; line-height: 1.35; }
.pipe p { color: var(--muted-dk); font-size: .92rem; margin-top: 6px; }
.qr-sm { width: 140px; background: #fff; padding: 10px; border-radius: 14px; }
.unique { font-family: var(--f-mono); font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.u-old { color: var(--muted-dk); text-decoration: line-through; }
.u-arrow { color: var(--accent); }
.u-new { font-size: 1.6rem; font-weight: 600; color: var(--paper); }
.u-new b { color: var(--saffron); }
.checks { display: grid; gap: 8px; font-size: .86rem; width: 100%; }
.checks li { background: var(--ink-3); border-radius: 10px; padding: 8px 12px; display: flex; gap: 10px; align-items: center;
             opacity: 0; transform: translateX(-12px); transition: all .6s var(--ease); }
.checks li::before { content: "✓"; color: var(--jade-lt); font-weight: 700; }
.is-in .checks li { opacity: 1; transform: none; }
.is-in .checks li:nth-child(2) { transition-delay: .35s; }
.is-in .checks li:nth-child(3) { transition-delay: .7s; }
.done-badge { width: 110px; height: 110px; border-radius: 50%; background: var(--jade); display: grid; place-items: center;
              font-size: 3rem; color: #fff; box-shadow: 0 0 0 14px rgba(15, 122, 92, .18), 0 0 0 28px rgba(15, 122, 92, .08);
              transform: scale(.4); transition: transform 1s 1s cubic-bezier(.3, 1.6, .5, 1); }
.is-in .done-badge { transform: scale(1); }

.pay-extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 60px; background: var(--line-dk);
              border: 1px solid var(--line-dk); border-radius: 18px; overflow: hidden; }
.pay-extras div { background: var(--ink); padding: 22px; }
.pay-extras b { display: block; font-family: var(--f-display); font-size: 1.15rem; color: var(--saffron); margin-bottom: 4px; }
.pay-extras span { color: var(--muted-dk); font-size: .9rem; }

/* ============================================================
   THEME
   ============================================================ */
.theme { background: var(--paper); padding: 140px 0; }
.theme-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.theme-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 12px; margin-top: 36px; }
.theme-nums li { font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.theme-nums b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 2rem; line-height: 1.2; color: var(--ink); }

.playground { background: var(--ink); border-radius: 28px; padding: 22px; box-shadow: 0 60px 80px -40px rgba(20, 17, 15, .6); --d: .15s; }
.pg-controls { display: flex; flex-wrap: wrap; gap: 14px 22px; padding: 6px 6px 20px; color: var(--paper); }
.pg-group { display: flex; align-items: center; gap: 6px; }
.pg-label { font-size: .78rem; color: var(--muted-dk); margin-right: 4px; }
.sw { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--ink), 0 0 0 2px transparent; transition: box-shadow .25s, transform .25s; }
.sw:hover { transform: scale(1.12); }
.sw.is-on { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--paper); }
.seg { font-size: .8rem; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-dk); color: var(--muted-dk); transition: all .2s; }
.seg:hover { color: var(--paper); }
.seg.is-on { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.pg-preview {
    --pc: #ff5a1f; --pr: 12px;
    --pbg: #faf7f2; --psurf: #fff; --ptext: #1f1a16; --pmuted: #7d7266; --pline: rgba(0, 0, 0, .08);
    background: var(--pbg); color: var(--ptext); border-radius: 18px; padding: 18px; font-size: .88rem;
    transition: background .4s, color .4s;
}
.pg-preview[data-mode="dark"] { --pbg: #17181c; --psurf: #22242a; --ptext: #f1efe9; --pmuted: #9a9aa2; --pline: rgba(255, 255, 255, .08); }
.pv-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--pline); }
.pv-logo { width: 28px; height: 28px; border-radius: calc(var(--pr) * .6); background: var(--pc); transition: all .4s; }
.pv-nav { margin-left: auto; display: flex; gap: 8px; }
.pv-nav i { width: 36px; height: 8px; border-radius: 4px; background: var(--pline); }
.pv-banner { margin: 16px 0; padding: 22px; border-radius: var(--pr); display: flex; align-items: center; justify-content: space-between; gap: 12px;
             background: linear-gradient(120deg, var(--pc), color-mix(in srgb, var(--pc) 60%, #000)); color: #fff; transition: all .4s; }
.pv-banner small { opacity: .8; display: block; }
.pv-banner b { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.3; }
.pv-btn { background: #fff; color: var(--pc); font-weight: 700; padding: 8px 16px; border-radius: min(var(--pr), 999px); white-space: nowrap; transition: all .4s; }
.pv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pv-card { background: var(--psurf); border-radius: var(--pr); padding: 10px; transition: all .4s; }
.pg-preview[data-card="shadow"] .pv-card { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35); }
.pg-preview[data-card="border"] .pv-card { border: 1.5px solid var(--pline); box-shadow: none; }
.pg-preview[data-card="flat"]   .pv-card { background: color-mix(in srgb, var(--pc) 8%, var(--pbg)); }
.pv-img { height: 70px; border-radius: calc(var(--pr) * .7); display: grid; place-items: center; font-size: 2rem; margin-bottom: 8px;
          background: color-mix(in srgb, var(--pc) 14%, var(--psurf)); transition: all .4s; }
.pv-card b { display: block; font-size: .85rem; }
.pv-card span { color: var(--pc); font-weight: 700; }

/* ── Home builder ────────────────────────────────────────── */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; margin-top: 140px; }
.builder-copy h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.35; color: var(--ink); margin-bottom: 16px; }
.builder-copy p:not(.kicker) { color: var(--muted); }
.blocks { position: relative; display: grid; gap: 8px; }
.blocks li {
    display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 14px;
    background: #fff; box-shadow: 0 1px 0 var(--line), 0 8px 20px -14px rgba(20, 17, 15, .35);
    font-weight: 500; font-size: .96rem; margin-left: calc(var(--i) * 6px);
}
.blocks li span { color: var(--muted); letter-spacing: -2px; cursor: grab; }
.blocks li::after { content: ""; margin-left: auto; width: 34px; height: 20px; border-radius: 999px; flex-shrink: 0;
                    background: radial-gradient(circle at 24px 50%, #fff 6px, transparent 6.5px), var(--jade); }
.blocks li.off::after { background: radial-gradient(circle at 10px 50%, #fff 6px, transparent 6.5px), var(--paper-3); }
.blocks li.off { color: var(--muted); }
.blocks li.lift { box-shadow: 0 0 0 2px var(--accent), 0 24px 40px -16px rgba(255, 90, 31, .5); z-index: 2; position: relative; }

/* ============================================================
   FEATURES BENTO
   ============================================================ */
.features { background: var(--paper-2); padding: 140px 0; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; grid-auto-flow: dense; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 30px; position: relative; overflow: hidden;
        transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(20, 17, 15, .4); }
.tile h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.45rem; line-height: 1.35; color: var(--ink); margin: 16px 0 10px; }
.tile p { color: var(--muted); font-size: .95rem; }
.tag { font-family: var(--f-body); font-weight: 600; font-size: .74rem; letter-spacing: .03em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
       border: 1px solid var(--line); color: var(--muted); }
.t-i18n   { grid-column: span 4; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.t-review { grid-column: span 2; }
.t-update { grid-column: span 2; grid-row: span 2; background: var(--jade); border-color: var(--jade); color: #fff; }
.t-notify { grid-column: span 2; }
.t-ship   { grid-column: span 2; }
.t-backend{ grid-column: span 4; }
.t-i18n h3, .t-update h3 { color: inherit; }
.t-i18n p { color: var(--muted-dk); }
.t-i18n .tag, .t-update .tag { border-color: rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .7); }
.t-i18n strong { color: var(--paper); }
.tile-top { display: flex; justify-content: space-between; align-items: center; }
.lang-toggle { display: inline-flex; position: relative; border-radius: 999px; padding: 4px; background: var(--ink-3); font-weight: 700; font-size: .85rem; }
.lang-toggle span { position: relative; z-index: 1; padding: 6px 16px; transition: color .35s; }
.lang-toggle::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px;
                       background: var(--accent); transition: transform .45s var(--ease); }
.lang-toggle[aria-pressed="true"]::before { transform: translateX(100%); }
.i18n-demo { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px !important; }
.i18n-demo span { background: var(--ink-3); color: var(--paper); padding: 8px 14px; border-radius: 12px; font-family: var(--f-mono); font-size: .86rem;
                  transition: opacity .25s, transform .25s; }
.t-i18n.is-swapping [data-i18n-th] { opacity: 0; transform: translateY(6px); }
.stars { color: var(--saffron); font-size: 1.6rem; letter-spacing: 4px; margin-top: 14px; }
.upd { counter-reset: u; display: grid; gap: 10px; margin: 18px 0; }
.upd li { counter-increment: u; display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, .1); padding: 10px 14px; border-radius: 12px; font-size: .92rem; }
.upd li::before { content: counter(u); font-family: var(--f-mono); font-size: .75rem; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--jade);
                  display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.t-update p { color: rgba(255, 255, 255, .8); }
.notis { display: grid; gap: 8px; }
.notis li { background: #fff; padding: 10px 14px; border-radius: 12px; font-size: .9rem; box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .3);
            transform: translateX(calc(var(--n, 0) * 10px)); }
.notis li:nth-child(2) { --n: 1; } .notis li:nth-child(3) { --n: 2; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pills span { padding: 6px 14px; border-radius: 999px; background: var(--paper-2); color: var(--text); font-size: .86rem; transition: background .2s, color .2s; }
.pills span:hover { background: var(--accent); color: #fff; }

/* ============================================================
   SECURITY
   ============================================================ */
.security { background: var(--ink); color: var(--paper); padding: 150px 0; overflow: hidden; isolation: isolate; }
.sec-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lock-grid { position: absolute; inset: -30% 0;
             background-image: radial-gradient(rgba(242, 177, 52, .22) 1.5px, transparent 1.5px);
             background-size: 28px 28px;
             mask-image: linear-gradient(90deg, transparent, #000 60%);
             -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.shield { position: absolute; right: -4%; top: 10%; width: min(46vw, 560px); color: rgba(15, 122, 92, .35); }
.sec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dk); border: 1px solid var(--line-dk); border-radius: 22px; overflow: hidden; max-width: 960px; }
.sec-list li { background: rgba(20, 17, 15, .92); padding: 22px 26px 22px 60px; position: relative; color: var(--muted-dk); font-size: .96rem; }
.sec-list li::before { content: "✓"; position: absolute; left: 24px; top: 22px; width: 22px; height: 22px; border-radius: 6px; background: var(--jade);
                       color: #fff; font-size: .8rem; display: grid; place-items: center; font-weight: 700; }
.sec-list b { color: var(--paper); display: block; font-weight: 600; }
.sec-list code { color: var(--saffron); }

/* ============================================================
   INSTALL
   ============================================================ */
.install { background: var(--paper); padding: 140px 0; }
.install-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.install .sec-head { margin-bottom: 0; }
.reqs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.reqs span { font-family: var(--f-mono); font-size: .78rem; padding: 6px 12px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); }
.steps { display: grid; gap: 16px; }
.steps li { display: flex; gap: 22px; align-items: flex-start; background: #fff; border-radius: 22px; padding: 26px; box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px rgba(20, 17, 15, .4); }
.steps li:nth-child(2) { --d: .12s; } .steps li:nth-child(3) { --d: .24s; }
.steps li > span { font-family: var(--f-display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--accent); min-width: 36px; }
.steps b { display: block; font-size: 1.1rem; color: var(--ink); margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .94rem; }
.steps li > div > code { display: inline-block; margin-top: 6px; background: var(--ink); color: var(--saffron); padding: 8px 14px; border-radius: 10px; word-break: break-all; }

/* ============================================================
   FINAL CTA + FOOTER
   ============================================================ */
.final { background: var(--accent); color: #fff; padding: 170px 0; overflow: hidden; text-align: center; isolation: isolate; }
.final-layers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fl { position: absolute; font-size: clamp(3rem, 8vw, 7rem); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .25)); }
.fl1 { left: 6%; top: 14%; } .fl2 { right: 8%; top: 10%; } .fl3 { left: 14%; bottom: 8%; } .fl4 { right: 14%; bottom: 12%; }
.fl5 { left: 46%; top: 2%; font-family: var(--f-display); font-weight: 900; color: rgba(255, 255, 255, .18); font-size: 26vw; line-height: 1; filter: none; margin-left: -8vw; }
.final h2 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.6rem); }
.final h2 em { font-style: normal; color: var(--ink); }
.final .hero-cta { justify-content: center; margin-top: 44px; }
.final .btn-accent { background: var(--ink); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
.final .btn-accent:hover { background: #000; }
.final .btn-ghost:hover { color: var(--accent); background: #fff; border-color: #fff; }

.footer { background: var(--ink); color: var(--muted-dk); padding: 40px 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .logo { color: var(--paper); }
.footer p { flex: 1; min-width: 220px; }
.to-top:hover { color: var(--paper); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-stage { height: 560px; max-width: 640px; width: 100%; margin-inline: auto; }
    .pipeline { grid-template-columns: repeat(2, 1fr); }
    .pipeline::before { display: none; }
    .pay-extras { grid-template-columns: repeat(2, 1fr); }
    .theme-grid, .builder, .install-grid { grid-template-columns: 1fr; gap: 48px; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .t-i18n, .t-backend { grid-column: span 2; }
    .t-review, .t-update, .t-notify, .t-ship { grid-column: span 1; grid-row: auto; }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-inner { justify-content: space-between; }
    .types-body { grid-template-columns: 1fr; gap: 0; }
    .types-sticky { top: calc(var(--nav-h) + 8px); z-index: 2; }
    .mock { transform-origin: top center; }
    .mock-items { gap: 8px; padding: 12px 14px; }
    .mi-img { height: 44px; font-size: 1.4rem; }
    .mock-caps { padding: 0 14px 12px; }
    .mock-flow { padding: 12px 14px 14px; }
    .type-step { min-height: 70vh; justify-content: flex-end; padding-bottom: 8vh; }
    .type-step > * { background: var(--paper); }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding-inline: 16px; }
    .hero { padding-bottom: 70px; }
    .hero-stats { gap: 22px; }
    .hero-stats dt { font-size: 1.7rem; }
    .hero-stage { height: 470px; }
    .fc-product { width: 190px; top: 10px; }
    .fc-img { height: 90px; font-size: 3rem; }
    .fc-qr { width: 170px; right: 0; top: 60px; }
    .fc-kitchen { display: none; }
    .fc-booking { left: 0; top: 290px; width: 200px; }
    .fc-slip { right: 0; top: 390px; }
    .fc-key { display: none; }
    .fc-bell { left: auto; right: 0; top: 0; }
    .hide-sm { display: none; }
    .mock-bar { display: none; }
    .mock-head { padding: 12px 14px; }
    .mock-caps .cap.off { display: none; }
    .scroll-hint { display: none; }
    .sec-head { margin-bottom: 44px; }
    .types, .theme, .features, .install { padding: 96px 0; }
    .security { padding: 110px 0; }
    .final { padding: 120px 0; }
    .mock-items .mi:nth-child(3) { display: none; }
    .mock-items { grid-template-columns: repeat(2, 1fr); }
    .mock-flow li { font-size: .62rem; }
    .pipeline, .pay-extras, .sec-list, .bento, .theme-nums { grid-template-columns: 1fr; }
    .theme-nums { grid-template-columns: repeat(2, 1fr); }
    .t-i18n, .t-backend, .t-review, .t-update, .t-notify, .t-ship { grid-column: auto; }
    .tile { padding: 24px; }
    .pv-cards { grid-template-columns: repeat(2, 1fr); }
    .pv-cards .pv-card:nth-child(3) { display: none; }
    .builder { margin-top: 96px; }
    .blocks li { margin-left: calc(var(--i) * 2px); }
    .band-swatch { padding: 70px 0; gap: 22px; }
    .sw-row { gap: 14px; }
    .btn-lg { height: 54px; padding-inline: 24px; }
    .steps li { padding: 20px; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    html { scroll-behavior: auto; }
    [data-speed] { transform: none !important; }
    .marquee-track { animation: none; }
}
