/* =====================================================================================================================
   swap.menu  ·  THE SITE

   One stylesheet for the sales site and the account area, drawn from the app itself (swap.html): its aqua-to-blue
   gradient, glass surfaces, floating orbs, HUD scan corners, shimmering pill buttons and the plus/minus morph toggle.
   A customer who walks from the home page into the scanner should not be able to tell where one ends.

   THEMES. Light is :root, dark is [data-theme="dark"], set on <html> before first paint from localStorage
   ('sm-theme') or the OS preference. The app (css/app.css) reads the same key.

   Sections:  1 tokens · 2 base · 3 layout · 4 buttons · 5 nav · 6 hero · 7 sections & cards · 8 home blocks
              9 pricing · 10 forms & auth · 11 account · 12 drawers, toasts, dialogs · 13 waiter · 14 footer
              15 article · 16 motion · 17 utilities

   Coded By Darko G.
   ===================================================================================================================== */


/* =====================================================================================================================
   1. TOKENS
   ===================================================================================================================== */

:root {
    --accent-start: #00d4aa;
    --accent-mid: #009bdb;
    --accent-end: #0063d2;
    --accent-blue: #0063d2;
    --accent-cyan: #00d4aa;
    --accent-violet: #60a5fa;
    --gradient: linear-gradient(135deg, #00d4aa 0%, #009bdb 50%, #0063d2 100%);
    --gradient-soft: linear-gradient(135deg, rgba(0, 212, 170, 0.12) 0%, rgba(0, 155, 219, 0.12) 50%, rgba(0, 99, 210, 0.12) 100%);
    --gradient-text: linear-gradient(135deg, #00b894 0%, #009bdb 45%, #0063d2 100%);

    --bg: linear-gradient(180deg, #f0fdfa 0%, #f0f9ff 50%, #eff6ff 100%);
    --bg-solid: #f4fbfd;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-elevated: rgba(255, 255, 255, 0.95);
    --glass: rgba(255, 255, 255, 0.72);
    --glass-strong: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(255, 255, 255, 0.9);
    --line: rgba(15, 23, 42, 0.08);
    --line-strong: rgba(15, 23, 42, 0.14);
    --line-accent: rgba(0, 99, 210, 0.16);

    --text: #0f172a;
    --text-2: #475569;
    --muted: #94a3b8;
    --on-accent: #ffffff;

    --success: #059669;
    --success-bg: rgba(16, 185, 129, 0.12);
    --warning: #b45309;
    --warning-bg: rgba(245, 158, 11, 0.14);
    --danger: #dc2626;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --info-bg: rgba(0, 99, 210, 0.08);

    --shadow-soft: 0 4px 24px -4px rgba(0, 99, 210, 0.08);
    --shadow-medium: 0 8px 32px -8px rgba(0, 99, 210, 0.14);
    --shadow-strong: 0 20px 60px -15px rgba(0, 99, 210, 0.22);
    --shadow-glow: 0 12px 36px -8px rgba(0, 99, 210, 0.45);

    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-ui: 'Trebuchet MS', -apple-system, BlinkMacSystemFont, sans-serif;
    --bubble-bg: rgba(12, 20, 36, 0.94);
    --bubble-solid: #0c1424;
    --bubble-text: #ffffff;
    --bubble-muted: #94a3b8;
    --bubble-line: rgba(255, 255, 255, 0.12);
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --pill: 999px;

    --max: 1200px;
    --nav-h: 72px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    color-scheme: light;
}

[data-theme="dark"] {
    --bubble-bg: rgba(255, 255, 255, 0.96);
    --bubble-solid: #ffffff;
    --bubble-text: #0f172a;
    --bubble-muted: #64748b;
    --bubble-line: rgba(15, 23, 42, 0.1);
    --bg: linear-gradient(180deg, #0b1220 0%, #0f172a 40%, #172033 100%);
    --bg-solid: #0f172a;
    --surface: #1e293b;
    --surface-2: #172033;
    --surface-elevated: rgba(30, 41, 59, 0.95);
    --glass: rgba(15, 23, 42, 0.72);
    --glass-strong: rgba(15, 23, 42, 0.88);
    --glass-border: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --line-accent: rgba(0, 212, 170, 0.22);

    --text: #f1f5f9;
    --text-2: #cbd5e1;
    --muted: #94a3b8;

    --gradient-text: linear-gradient(135deg, #2ee6c0 0%, #38b6f0 45%, #60a5fa 100%);

    --success: #34d399;
    --success-bg: rgba(52, 211, 153, 0.14);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.14);
    --danger: #f87171;
    --danger-bg: rgba(248, 113, 113, 0.14);
    --info-bg: rgba(96, 165, 250, 0.12);

    --shadow-soft: 0 4px 24px -4px rgba(0, 0, 0, 0.35);
    --shadow-medium: 0 8px 32px -8px rgba(0, 0, 0, 0.45);
    --shadow-strong: 0 20px 60px -15px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 12px 36px -8px rgba(0, 155, 219, 0.45);

    color-scheme: dark;
}


/* =====================================================================================================================
   2. BASE
   ===================================================================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-solid);
    background-image: var(--bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

img, svg, video, canvas { max-width: 100%; display: block; }
a { color: var(--accent-end); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-mid); }
[data-theme="dark"] a { color: #60a5fa; }
[data-theme="dark"] a:hover { color: #2ee6c0; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

::selection { background: rgba(0, 155, 219, 0.25); }

:focus-visible { outline: 3px solid rgba(0, 155, 219, 0.55); outline-offset: 3px; border-radius: 8px; }

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 9999; background: var(--surface); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { left: 16px; }

/* Ambient orbs, straight from the app's intro screen. */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.ambient .orb-1 { width: 520px; height: 520px; top: -160px; right: -140px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue)); animation: orbFloat 18s ease-in-out infinite; }
.ambient .orb-2 { width: 440px; height: 440px; bottom: -160px; left: -140px; background: linear-gradient(135deg, var(--accent-violet), var(--accent-start)); animation: orbFloat2 22s ease-in-out infinite; }
.ambient .orb-3 { width: 300px; height: 300px; top: 40%; left: 50%; background: linear-gradient(135deg, var(--accent-mid), var(--accent-cyan)); opacity: 0.18; animation: orbFloat 26s ease-in-out infinite reverse; }
[data-theme="dark"] .ambient .orb { opacity: 0.22; }


/* =====================================================================================================================
   3. LAYOUT
   ===================================================================================================================== */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 860px; }
.wrap-tight { max-width: 560px; }

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-head p { font-size: 1.12rem; color: var(--text-2); margin: 0; }
.section-head.left { text-align: left; margin-left: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 18px;
    border-radius: var(--pill);
    background: var(--glass);
    border: 1px solid var(--line-accent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--accent-end);
    box-shadow: var(--shadow-soft);
}
[data-theme="dark"] .eyebrow { color: #5eead4; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.18); animation: pulseDot 2s ease-in-out infinite; }
.eyebrow.solid { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.page { padding-top: calc(var(--nav-h) + 36px); min-height: 72vh; }
.page-head { padding: 24px 0 36px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 10px; }
.page-head p { color: var(--text-2); font-size: 1.1rem; max-width: 680px; margin: 0; }
.page-head.center { text-align: center; }
.page-head.center p { margin: 0 auto; }


/* =====================================================================================================================
   4. BUTTONS  ·  the app's START button and its return pills
   ===================================================================================================================== */

.btn {
    --btn-h: 52px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--btn-h);
    padding: 0 28px;
    border: 0;
    border-radius: var(--pill);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.btn i { font-size: 15px; }
.btn:active { transform: scale(0.96); }
.btn[disabled], .btn.is-busy { opacity: 0.6; pointer-events: none; }

.btn-primary {
    color: #fff !important;
    background: var(--gradient);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    box-shadow: 0 8px 32px -8px rgba(0, 99, 210, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    left: -100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    animation: shimmer 3s infinite;
    z-index: -1;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(0, 99, 210, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.25) inset; }

.btn-ghost {
    color: var(--text) !important;
    background: var(--glass);
    border: 1px solid var(--line-accent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
}
.btn-ghost:hover { border-color: var(--accent-mid); transform: translateY(-2px); box-shadow: var(--shadow-medium); }

.btn-plain { color: var(--text-2) !important; background: transparent; padding: 0 14px; letter-spacing: 1px; }
.btn-plain:hover { color: var(--accent-end) !important; }

.btn-danger { color: #fff !important; background: #dc2626; box-shadow: 0 8px 24px -10px rgba(220, 38, 38, 0.6); }
.btn-danger-ghost { color: var(--danger) !important; background: transparent; border: 1px solid var(--danger-bg); }
.btn-danger-ghost:hover { background: var(--danger-bg); }

.btn-sm { --btn-h: 40px; padding: 0 18px; font-size: 12px; letter-spacing: 1.2px; }
.btn-xs { --btn-h: 32px; padding: 0 12px; font-size: 11px; letter-spacing: 1px; gap: 6px; }
.btn-lg { --btn-h: 60px; padding: 0 38px; font-size: 15px; letter-spacing: 2.4px; }
.btn-block { width: 100%; }

.btn-icon {
    width: 44px; height: 44px; min-height: 0; padding: 0;
    border-radius: 50%;
    background: var(--surface-elevated);
    border: 1px solid var(--line);
    color: var(--text) !important;
    box-shadow: var(--shadow-soft);
    letter-spacing: 0;
}
.btn-icon:hover { border-color: var(--accent-mid); color: var(--accent-end) !important; }
.btn-icon.sm { width: 34px; height: 34px; }
.btn-icon.sm i { font-size: 13px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row.center { justify-content: center; }

/* The theme toggle: the app's sun/moon swap, rotating. */
.theme-toggle {
    position: relative;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface-elevated);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent-mid); }
.theme-toggle:active { transform: scale(0.9); }
.theme-toggle svg { position: absolute; width: 22px; height: 22px; fill: var(--text); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.5); }


/* =====================================================================================================================
   5. NAVIGATION  ·  a floating glass bar
   ===================================================================================================================== */

.nav {
    position: fixed;
    top: 12px; left: 12px; right: 12px;
    z-index: 900;
    max-width: calc(var(--max) + 40px);
    margin: 0 auto;
    height: 64px;
    padding: 0 10px 0 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-radius: 22px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    box-shadow: var(--shadow-medium);
    transition: box-shadow 0.3s ease, background 0.3s ease, top 0.3s ease;
}
.nav.scrolled { box-shadow: var(--shadow-strong); background: var(--glass-strong); }

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { width: 148px; height: auto; }

.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav-links a {
    position: relative;
    padding: 9px 14px;
    border-radius: 12px;
    color: var(--text-2);
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--gradient-soft); }
.nav-links a.active { color: var(--accent-end); }
[data-theme="dark"] .nav-links a.active { color: #5eead4; }
.nav-links a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gradient); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-actions .btn { --btn-h: 44px; padding: 0 20px; font-size: 12px; }

.nav-account {
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px; padding: 0 14px 0 6px;
    border-radius: var(--pill);
    border: 1px solid var(--line);
    background: var(--surface-elevated);
    color: var(--text) !important;
    font-weight: 600; font-size: 14px;
    box-shadow: var(--shadow-soft);
}
.nav-account .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gradient); color: #fff; display: grid; place-items: center; font-family: var(--font-ui); font-size: 14px; }
.nav-account:hover { border-color: var(--accent-mid); }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-elevated); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); position: relative; transition: background 0.2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s var(--ease); }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    top: 84px; left: 12px; right: 12px;
    z-index: 890;
    padding: 14px;
    border-radius: 22px;
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-strong);
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.35s var(--ease);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 14px; color: var(--text); font-weight: 600; }
.mobile-menu a i { width: 22px; text-align: center; color: var(--accent-mid); }
.mobile-menu a:hover, .mobile-menu a.active { background: var(--gradient-soft); }
.mobile-menu .mm-divider { height: 1px; background: var(--line); margin: 8px 6px; }
.mobile-menu .btn { margin-top: 10px; }

.signed-in .guest-only, .signed-out .auth-only, .is-admin-no .admin-only { display: none !important; }
html:not(.is-admin) .admin-only { display: none !important; }

@media (max-width: 1040px) {
    .nav-links { display: none; }
    .menu-toggle { display: inline-flex; }
    .nav { gap: 10px; }
    .nav-actions { margin-left: auto; }
}
@media (max-width: 560px) {
    .nav { padding-left: 16px; height: 60px; }
    .nav-logo img { width: 124px; }
    .nav-actions .nav-cta { display: none; }
    .nav-account .name { display: none; }
    .nav-account { padding: 0 6px; }
}


/* =====================================================================================================================
   6. HERO
   ===================================================================================================================== */

.hero { position: relative; padding: calc(var(--nav-h) + clamp(40px, 7vw, 90px)) 0 clamp(50px, 7vw, 100px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(30px, 5vw, 70px); align-items: center; }

.hero h1 { margin-bottom: 22px; }
.hero h1 .line { display: block; }
.hero-sub { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--text-2); max-width: 580px; margin-bottom: 32px; }
.hero-sub strong { color: var(--text); }

.hero-cta { margin-bottom: 30px; }

.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof i { color: var(--accent-cyan); }

.scripts-strip {
    margin-top: 34px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.scripts-strip span {
    padding: 7px 13px;
    border-radius: var(--pill);
    background: var(--glass);
    border: 1px solid var(--line);
    font-size: 14px;
    color: var(--text-2);
    backdrop-filter: blur(10px);
}

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-cta, .hero-proof, .scripts-strip { justify-content: center; }
}

/* ---- the hero stage: a paper menu, a phone that arrives to read it, and the waiter's tablet that scans the QR ---- */
/* The stage is drawn on a fixed 560 x 640 canvas and scaled to fit (js/site.js sets --s), so the choreography is the
   same on a phone as on a desktop. The phone enters from the right; the tablet from the left. */

.stage-wrap { position: relative; width: 100%; max-width: 560px; margin: 0 auto; height: calc(640px * var(--s, 1)); }
.demo-stage { position: absolute; left: 0; top: 0; width: 560px; height: 640px; transform: scale(var(--s, 1)); transform-origin: 0 0; }

.demo-paper {
    position: absolute;
    left: 6px; top: 64px;
    width: 300px;
    padding: 26px 24px 22px;
    border-radius: 6px;
    background: #fbf6ea;
    background-image: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.7), transparent 60%), radial-gradient(circle at 90% 100%, rgba(166, 124, 60, 0.12), transparent 50%);
    box-shadow: 0 30px 60px -20px rgba(80, 50, 10, 0.35), 0 0 0 1px rgba(120, 80, 30, 0.12);
    color: #2b1d0e;
    transform: rotate(-6deg);
    font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif;
    transition: transform 1.2s var(--ease), opacity 0.8s ease, filter 0.8s ease;
    z-index: 1;
}
.demo-paper .dp-title { text-align: center; font-size: 26px; font-weight: 700; letter-spacing: 6px; margin-bottom: 2px; }
.demo-paper .dp-sub { text-align: center; font-size: 11px; letter-spacing: 3px; color: #8a5a2b; margin-bottom: 14px; }
.demo-paper .dp-cat { font-size: 13px; font-weight: 700; border-bottom: 2px solid #8b1e1e; padding-bottom: 3px; margin: 12px 0 8px; color: #8b1e1e; letter-spacing: 4px; }
.demo-paper .dp-row { display: flex; justify-content: space-between; font-size: 15px; padding: 4px 0; border-bottom: 1px dotted rgba(43, 29, 14, 0.25); }
.demo-paper .dp-row span:last-child { font-weight: 700; }
.demo-paper .dp-note { margin-top: 12px; font-size: 11px; text-align: right; color: #8a5a2b; }
.demo-stage.st-aim .demo-paper { transform: rotate(-3deg) translate(-6px, 6px); }
.demo-stage.st-show .demo-paper { transform: rotate(-8deg) translate(-30px, -20px); opacity: 0.45; filter: blur(1px); }

/* the phone */
.demo-phone {
    position: absolute;
    left: 250px; top: 8px;
    width: 290px; height: 600px;
    border-radius: 46px;
    padding: 11px;
    background: linear-gradient(145deg, #2b3445, #0b0f18);
    box-shadow: 0 50px 100px -30px rgba(0, 40, 90, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 0 0 2px #0b0f18;
    transform: translate(620px, 40px) rotate(18deg);
    transition: transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 3;
}
.demo-stage.st-aim .demo-phone { transform: translate(-96px, 34px) rotate(-4deg); }
.demo-stage.st-read .demo-phone { transform: translate(0, 0) rotate(2deg); }
.demo-stage.st-show .demo-phone { transform: translate(14px, -8px) rotate(-5deg); }
.demo-stage.st-leave .demo-phone { transform: translate(620px, 10px) rotate(14deg); transition-duration: 0.9s; }
.demo-phone::after { content: ''; position: absolute; top: 21px; left: 50%; transform: translateX(-50%); width: 90px; height: 25px; border-radius: 20px; background: #05070b; z-index: 30; }

.demo-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #f8fafc; font-family: var(--font-ui); }
[data-theme="dark"] .demo-screen { background: #0f172a; }

.ds-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.ds-layer.on { opacity: 1; }

/* the app opening: swap.html's start screen */
.ds-intro { background: linear-gradient(180deg, #f0fdfa 0%, #f0f9ff 50%, #eff6ff 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; z-index: 3; }
[data-theme="dark"] .ds-intro { background: linear-gradient(180deg, #0b1220 0%, #0f172a 50%, #172033 100%); }
.ds-intro .di-orb { position: absolute; border-radius: 50%; filter: blur(30px); opacity: 0.55; }
.ds-intro .di-orb.o1 { width: 180px; height: 180px; left: -50px; top: 40px; background: #00d4aa; }
.ds-intro .di-orb.o2 { width: 200px; height: 200px; right: -70px; bottom: 30px; background: #0063d2; opacity: 0.35; }
.ds-intro .di-logo { position: relative; width: 190px; margin-bottom: 10px; }
.ds-intro .di-tag { position: relative; font-size: 11px; letter-spacing: 1px; color: #64748b; margin-bottom: 26px; }
[data-theme="dark"] .ds-intro .di-tag { color: #94a3b8; }
.ds-intro .di-start { position: relative; padding: 13px 44px; border-radius: 999px; background: linear-gradient(135deg, #00d4aa, #009bdb 50%, #0063d2); color: #fff; font-weight: 700; letter-spacing: 3px; font-size: 14px; box-shadow: 0 12px 30px -10px rgba(0, 99, 210, 0.6); overflow: hidden; transition: transform 0.15s ease; }
.ds-intro .di-start.pressed { transform: scale(0.93); }
.ds-intro .di-tap { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); opacity: 0; }
.ds-intro .di-tap.go { animation: tabTap 0.6s ease-out forwards; }
.ds-intro.on .di-logo { animation: diPop 0.9s var(--spring) both 0.45s; }
.ds-intro.on .di-tag, .ds-intro.on .di-start { animation: diUp 0.7s var(--ease) both 0.8s; }
@keyframes diPop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes diUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* camera */
.ds-camera { background: #1b1206; overflow: hidden; }
.ds-camera .ds-feed { position: absolute; inset: -10%; background: #f3ead6; transform: scale(1.05) rotate(-2deg); filter: blur(0.3px) contrast(1.05); }
.ds-camera .ds-feed .demo-paper-copy { position: absolute; top: 18%; left: 12%; right: 12%; transform: none; box-shadow: none; padding: 16px; }
.ds-corner { position: absolute; width: 42px; height: 42px; border: 0 solid var(--accent-mid); z-index: 5; }
.ds-corner.tl { top: 52px; left: 22px; border-top-width: 3px; border-left-width: 3px; border-radius: 14px 0 0 0; }
.ds-corner.tr { top: 52px; right: 22px; border-top-width: 3px; border-right-width: 3px; border-radius: 0 14px 0 0; }
.ds-corner.bl { bottom: 70px; left: 22px; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 14px; }
.ds-corner.br { bottom: 70px; right: 22px; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 14px 0; }
.ds-hint { position: absolute; left: 0; right: 0; bottom: 34px; text-align: center; color: #fff; font-size: 10px; letter-spacing: 2.6px; text-transform: uppercase; text-shadow: 0 0 6px #000; animation: breathe 3s infinite ease-in-out; z-index: 5; }
.ds-shutter { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%) scale(0); width: 66px; height: 66px; border-radius: 50%; border: 3px solid #fff; z-index: 6; transition: transform 0.3s var(--spring); }
.ds-shutter::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); }
.demo-stage.tap .ds-shutter { transform: translateX(-50%) scale(1); }

/* the phone's own status notice: what is happening right now */
.ds-notice {
    position: absolute; left: 50%; top: 50px; z-index: 22;
    transform: translate(-50%, -14px); opacity: 0;
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(10, 14, 22, 0.86); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.3px;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px);
    transition: opacity 0.35s ease, transform 0.45s var(--spring);
}
.ds-notice i { color: #2ee6c0; }
.ds-notice.on { opacity: 1; transform: translate(-50%, 0); }
.ds-notice.ok { background: linear-gradient(135deg, #00b894, #0081c6); }
.ds-notice.ok i { color: #fff; }

.ds-flash { position: absolute; inset: 0; background: #fff; opacity: 0; z-index: 25; pointer-events: none; }
.ds-flash.go { animation: flashEffect 0.35s ease-out forwards; }

/* scanning */
.ds-scan { background: linear-gradient(180deg, rgba(10, 14, 22, 0.16), rgba(10, 14, 22, 0.4)); z-index: 2; }
.demo-stage.st-frozen .ds-hint, .demo-stage.st-frozen .ds-shutter { visibility: hidden; }
.demo-stage.st-frozen .ds-corner { border-color: #2ee6c0; }
.ds-scan .scan-glow { position: absolute; left: 0; right: 0; height: 90px; background: linear-gradient(180deg, rgba(46, 230, 192, 0), rgba(46, 230, 192, 0.22)); animation: scanGlow 1.8s ease-in-out infinite; pointer-events: none; }
@keyframes scanGlow { 0%, 100% { top: calc(8% - 86px); } 50% { top: calc(92% - 90px); } }
.ds-scan .scan-line { position: absolute; left: 18px; right: 18px; height: 4px; border-radius: 4px; background: var(--gradient); box-shadow: 0 0 20px rgba(0, 212, 170, 0.6), 0 0 40px rgba(0, 99, 210, 0.4); animation: scanMove 1.8s ease-in-out infinite; top: 60px; }
.ds-scan .scan-box { position: absolute; left: 14%; right: 14%; bottom: 18%; padding: 16px; border-radius: 20px; background: rgba(0, 0, 0, 0.78); text-align: center; backdrop-filter: blur(8px); }
.ds-scan .scan-title { font-size: 12px; letter-spacing: 4px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 12px; animation: breathe 2s infinite ease-in-out; }
.ds-scan .scan-step { font-size: 10px; letter-spacing: 2.5px; color: #64748b; margin: 6px 0; transition: all 0.4s ease; }
.ds-scan .scan-step.on { color: #00d4aa; transform: scale(1.1); font-weight: 700; }

/* the translated menu */
.ds-menu { background: #f8fafc; padding: 56px 12px 90px; overflow: hidden; }
[data-theme="dark"] .ds-menu { background: #0f172a; }
.ds-menu .ds-logo { position: absolute; top: 48px; left: 14px; width: 100px; }
.ds-menu .ds-restaurant { margin: 26px 0 10px; text-align: center; font-weight: 700; font-size: 13px; color: var(--text); letter-spacing: 0.5px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ds-menu .ds-cat { text-align: center; margin: 6px 0 10px; }
.ds-menu .ds-cat span { font-size: 14px; font-weight: 700; letter-spacing: 1px; border-bottom: 2px solid var(--accent-mid); padding-bottom: 4px; color: var(--text); text-transform: uppercase; }
.ds-card {
    position: relative; background: var(--surface); border-radius: 14px; padding: 9px 10px 10px; margin-bottom: 9px;
    border: 1px solid var(--line); box-shadow: var(--shadow-soft); opacity: 0; transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s var(--ease), border-color 0.3s ease;
}
.ds-card.on { opacity: 1; transform: none; }
.ds-card.picked { border-color: var(--accent-cyan); }
.ds-card .n { font-weight: 700; font-size: 12.5px; color: var(--text); padding-right: 64px; }
.ds-card .o { font-size: 10px; color: var(--muted); margin-top: 1px; }
.ds-card .d { font-size: 10.5px; color: var(--text-2); margin-top: 3px; line-height: 1.35; }
.ds-card .p { position: absolute; top: 8px; right: 9px; text-align: right; font-weight: 700; font-size: 12px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ds-card .p small { display: block; font-size: 9.5px; -webkit-text-fill-color: var(--muted); font-weight: 600; }
.ds-card .q { position: absolute; bottom: -9px; left: calc(50% - 10px); width: 20px; height: 20px; border-radius: 6px; background: var(--gradient); color: #fff; font-size: 10px; display: grid; place-items: center; transform: scale(0); transition: transform 0.3s var(--spring); }
.ds-card.picked .q { transform: scale(1); }
.ds-tag { display: inline-block; font-size: 8.5px; font-weight: 700; letter-spacing: 0.5px; padding: 1px 6px; border-radius: 6px; margin-top: 4px; margin-right: 3px; background: var(--info-bg); color: var(--accent-end); }
[data-theme="dark"] .ds-tag { color: #93c5fd; }
.ds-tap { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 155, 219, 0.35); border: 2px solid rgba(255, 255, 255, 0.9); z-index: 20; opacity: 0; transform: scale(0.4); pointer-events: none; transition: all 0.35s ease; }
.ds-tap.go { opacity: 1; transform: scale(1); animation: tapPulse 0.6s ease-out; }

.ds-order {
    position: absolute; left: 0; right: 0; bottom: 0; height: 74px; padding: 14px 16px 0;
    border-radius: 20px 20px 0 0; border-top: 2px solid #00d4aa; background: var(--glass-strong); backdrop-filter: blur(12px);
    display: flex; justify-content: space-between; align-items: flex-start;
    transform: translateY(100%); transition: transform 0.5s var(--ease); z-index: 12;
}
.ds-order.on { transform: none; }
.ds-order .t { font-weight: 700; font-size: 14px; color: var(--text); }
.ds-order .t span { font-weight: 400; font-size: 11px; color: var(--muted); }
.ds-order .v { font-size: 15px; text-align: right; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }
.ds-order .v small { display: block; font-size: 9.5px; -webkit-text-fill-color: var(--muted); font-weight: 600; }
.ds-order.flash::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(40, 226, 209, 0.25), rgba(0, 99, 210, 0.25)); animation: smoothFade 0.6s ease; }

/* show the waiter: the QR is the hero of this screen */
.ds-waiter { background: var(--surface); padding: 58px 18px 18px; text-align: center; }
.ds-waiter .w-head { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--text); letter-spacing: 0.3px; margin-bottom: 14px; }
.ds-waiter .w-ic { width: 26px; height: 26px; border-radius: 8px; background: var(--gradient); color: #fff; display: grid; place-items: center; font-size: 12px; }
.w-qr-big { position: relative; width: 172px; height: 172px; margin: 0 auto 12px; padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 18px 40px -16px rgba(0, 99, 210, 0.5); }
.w-qr-big > div, .w-qr-big svg, .w-qr-big canvas { width: 100%; height: 100%; display: block; }
.w-qr-big .qc, .hv-qr .qc { position: absolute; width: 26px; height: 26px; border: 0 solid #00d4aa; transition: all 0.4s ease; }
.w-qr-big .qc:nth-child(1), .hv-qr .qc:nth-child(1) { left: -8px; top: -8px; border-top-width: 3px; border-left-width: 3px; border-radius: 10px 0 0 0; }
.w-qr-big .qc:nth-child(2), .hv-qr .qc:nth-child(2) { right: -8px; top: -8px; border-top-width: 3px; border-right-width: 3px; border-radius: 0 10px 0 0; }
.w-qr-big .qc:nth-child(3), .hv-qr .qc:nth-child(3) { left: -8px; bottom: -8px; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 10px; }
.w-qr-big .qc:nth-child(4), .hv-qr .qc:nth-child(4) { right: -8px; bottom: -8px; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 10px 0; }
.demo-stage.st-scanning .w-qr-big { animation: qrPing 1s ease-in-out infinite; }
.demo-stage.st-scanning .w-qr-big .qc { border-color: #2ee6c0; transform: scale(0.9); }
.ds-waiter .w-sub { font-size: 11px; color: var(--text-2); line-height: 1.4; margin: 0 6px 12px; }
.w-status, .hv-state { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); transition: all 0.4s ease; }
.w-status .pulse, .hv-state .pulse { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); animation: statusPulse 1.4s infinite; }
.w-status .s2, .hv-state .s2 { display: none; }
.demo-stage.st-confirmed .w-status, .handoff-visual.done .hv-state { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.4); color: var(--success); }
.demo-stage.st-confirmed .w-status .pulse, .demo-stage.st-confirmed .w-status .s1,
.handoff-visual.done .hv-state .pulse, .handoff-visual.done .hv-state .s1 { display: none; }
.demo-stage.st-confirmed .w-status .s2, .handoff-visual.done .hv-state .s2 { display: inline; }
.ds-waiter .w-done {
    position: absolute; left: 16px; right: 16px; top: 96px; padding: 24px 16px 22px; border-radius: 22px; z-index: 3;
    background: linear-gradient(145deg, #00b894, #0081c6); color: #fff; box-shadow: 0 22px 44px -16px rgba(0, 129, 198, 0.7);
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
    opacity: 0; transform: translateY(14px) scale(0.94); transition: opacity 0.45s ease, transform 0.55s var(--spring); pointer-events: none;
}
.ds-waiter .w-done .wd-tick { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); border: 2px solid rgba(255, 255, 255, 0.7); display: grid; place-items: center; font-size: 24px; margin-bottom: 6px; }
.ds-waiter .w-done b { font-size: 19px; font-weight: 800; letter-spacing: -0.2px; }
.ds-waiter .w-done span:last-child { font-size: 13px; line-height: 1.4; opacity: 0.95; }
.demo-stage.st-confirmed .ds-waiter .w-done { opacity: 1; transform: none; }
.demo-stage.st-confirmed .ds-waiter .w-done .wd-tick { animation: popIn 0.5s var(--spring) 0.15s both; }
.ds-waiter .w-mini { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: 10.5px; color: var(--muted); }
.ds-waiter .w-mini b { color: var(--text); }

/* the waiter's tablet */
.demo-tablet {
    position: absolute; left: -24px; top: 352px; width: 368px; height: 250px; z-index: 4;
    border-radius: 26px; padding: 12px; background: linear-gradient(145deg, #39424f, #11151d);
    box-shadow: 0 40px 80px -30px rgba(0, 30, 70, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    opacity: 0;
    transform: translate(-60px, 150px) rotate(-12deg) scale(0.92);
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}
.demo-stage.st-tablet .demo-tablet { transform: translate(0, 0) rotate(-3deg); opacity: 1; }
.demo-stage.st-leave .demo-tablet { transform: translate(-220px, 30px) rotate(-10deg) scale(0.92); opacity: 0; transition-duration: 0.8s; }
.tab-screen { position: relative; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; background: #fff; font-family: 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', var(--font-ui), sans-serif; }
[data-theme="dark"] .tab-screen { background: #111827; }
.tab-scan, .tab-order { position: absolute; inset: 0; transition: opacity 0.5s ease; }
.tab-scan { background: #0b1220; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; opacity: 1; }
.tab-order { opacity: 0; padding: 12px 14px; color: #0f172a; }
[data-theme="dark"] .tab-order { color: #f1f5f9; }
.demo-stage.st-tab-order .tab-scan { opacity: 0; }
.demo-stage.st-tab-order .tab-order { opacity: 1; }
.tab-cam { position: relative; width: 104px; height: 104px; padding: 8px; border-radius: 10px; background: #fff; }
.tab-cam > span { position: absolute; width: 20px; height: 20px; border: 0 solid #2ee6c0; }
.tab-cam > span:nth-child(1) { left: -9px; top: -9px; border-top-width: 3px; border-left-width: 3px; }
.tab-cam > span:nth-child(2) { right: -9px; top: -9px; border-top-width: 3px; border-right-width: 3px; }
.tab-cam > span:nth-child(3) { left: -9px; bottom: -9px; border-bottom-width: 3px; border-left-width: 3px; }
.tab-cam > span:nth-child(4) { right: -9px; bottom: -9px; border-bottom-width: 3px; border-right-width: 3px; }
.tab-cam-qr, .tab-cam-qr svg, .tab-cam-qr canvas { width: 100%; height: 100%; display: block; }
.tab-cam::after { content: ''; position: absolute; left: -6px; right: -6px; height: 3px; top: 10%; border-radius: 3px; background: #2ee6c0; box-shadow: 0 0 14px #2ee6c0; animation: tabScan 1.2s ease-in-out infinite alternate; }
.tab-scan-txt { color: #cbd5e1; font-size: 11px; letter-spacing: 1px; }
.tab-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid rgba(15, 23, 42, 0.1); font-size: 12px; }
[data-theme="dark"] .tab-head { border-color: rgba(255, 255, 255, 0.1); }
.tab-head b { font-size: 14px; }
.tab-head span { color: #64748b; margin-left: auto; }
.tab-line { display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: start; padding: 5px 0; font-size: 13px; }
.tab-line .q { width: 22px; height: 22px; border-radius: 6px; background: var(--gradient); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.tab-line small { display: block; color: #0081c6; font-size: 11px; font-weight: 700; }
.tab-line .p { font-weight: 700; font-size: 12px; }
.tab-total { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0 8px; border-top: 1px dashed rgba(100, 116, 139, 0.4); margin-top: 2px; }
.tab-btn { position: relative; min-height: 46px; padding: 5px 10px; border-radius: 12px; background: linear-gradient(135deg, #00b894, #0081c6); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; overflow: hidden; transition: background 0.4s ease; }
.tab-btn .t2 { display: none; }
.tab-btn .t1, .tab-btn .t2 { flex-direction: column; align-items: center; line-height: 1.25; }
.tab-btn .t1 { display: flex; }
.tab-btn b { font-size: 13px; font-weight: 800; }
.tab-btn small { font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: 0.3px; opacity: 0.9; }
.demo-stage.st-confirmed .tab-btn { background: #10b981; }
.demo-stage.st-confirmed .tab-btn .t1 { display: none; }
.demo-stage.st-confirmed .tab-btn .t2 { display: flex; animation: popIn 0.4s var(--spring); }
.tab-tap { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); left: 62%; top: 4px; opacity: 0; pointer-events: none; }
.tab-tap.go { animation: tabTap 0.6s ease-out forwards; }
@keyframes tabTap { 0% { opacity: 0.9; transform: scale(0.4); } 100% { opacity: 0; transform: scale(2.2); } }

/* captions under the stage */
.demo-status { text-align: center; }
.demo-caption {
    display: flex; width: max-content; max-width: 100%; margin: 18px auto 0; gap: 4px; padding: 5px;
    border-radius: var(--pill); background: var(--glass-strong); border: 1px solid var(--line); box-shadow: var(--shadow-medium);
    backdrop-filter: blur(12px); white-space: nowrap; overflow-x: auto; scrollbar-width: none;
}
.demo-caption span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; padding: 7px 12px; border-radius: var(--pill); color: var(--muted); transition: all 0.35s ease; }
.demo-caption span.on { background: var(--gradient); color: #fff; box-shadow: var(--shadow-glow); }
.demo-caption-text { margin: 12px auto 0; max-width: 460px; min-height: 1.5em; font-size: 15px; font-weight: 600; color: var(--text); transition: opacity 0.25s ease, transform 0.25s ease; }
.demo-caption-text.out { opacity: 0; transform: translateY(4px); }

.demo-float {
    position: absolute; z-index: 35; padding: 10px 14px; border-radius: 16px;
    background: var(--bubble-bg); border: 1px solid var(--bubble-line); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.45); backdrop-filter: blur(12px);
    font-size: 13px; font-weight: 700; color: var(--bubble-text); display: flex; align-items: center; gap: 10px;
    opacity: 0; transform: translateY(10px) scale(0.95); transition: all 0.6s var(--spring); pointer-events: none;
}
.demo-float.on { opacity: 1; transform: none; }
.demo-float i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--gradient); color: #fff; font-size: 13px; }
.demo-float small { display: block; font-weight: 600; font-size: 11px; color: var(--bubble-muted); }
.demo-float.f1 { left: -10px; top: 120px; }
.demo-float.f2 { left: -18px; top: 430px; }
.tab-badge {
    position: absolute; left: 14px; bottom: calc(100% + 14px); z-index: 2; white-space: nowrap;
    padding: 10px 14px; border-radius: 16px; background: var(--bubble-bg); border: 1px solid var(--bubble-line); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.45); backdrop-filter: blur(12px);
    font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--bubble-text); display: flex; align-items: center; gap: 10px;
}
.tab-badge::after { content: ''; position: absolute; left: 26px; bottom: -7px; width: 12px; height: 12px; background: var(--bubble-solid); border-right: 1px solid var(--bubble-line); border-bottom: 1px solid var(--bubble-line); transform: rotate(45deg); }
.tab-badge i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--gradient); color: #fff; font-size: 13px; }
.tab-badge small { display: block; font-weight: 600; font-size: 11px; color: var(--bubble-muted); }

@keyframes qrPing { 0%, 100% { box-shadow: 0 18px 40px -16px rgba(0, 99, 210, 0.5), 0 0 0 0 rgba(46, 230, 192, 0.6); } 50% { box-shadow: 0 18px 40px -16px rgba(0, 99, 210, 0.5), 0 0 0 14px rgba(46, 230, 192, 0); } }
@keyframes statusPulse { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); } 100% { box-shadow: 0 0 0 9px rgba(245, 158, 11, 0); } }
@keyframes tabScan { from { top: 8%; } to { top: 88%; } }
@keyframes popIn { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }


/* =====================================================================================================================
   7. SECTIONS AND CARDS
   ===================================================================================================================== */

.card {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
[data-theme="dark"] .card { border-color: var(--line); }
.card.solid { background: var(--surface); }
.card.flat { box-shadow: none; }
.card.tight { padding: 20px; }
.card.hover { transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease; }
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); border-color: var(--line-accent); }

.card-title { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 800; margin: 0 0 14px; }
.card-title .ic, .ic {
    width: 46px; height: 46px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--gradient);
    color: #fff;
    font-size: 18px;
    box-shadow: var(--shadow-glow);
}
.ic.soft { background: var(--gradient-soft); color: var(--accent-end); box-shadow: none; border: 1px solid var(--line-accent); }
[data-theme="dark"] .ic.soft { color: #5eead4; }

/* HUD corners, the scanner's frame, as a decoration on anything that wants to read as "the app". */
.hud { position: relative; }
.hud > .hc { position: absolute; width: 34px; height: 34px; border: 0 solid var(--accent-mid); pointer-events: none; }
.hud > .hc.tl { top: 12px; left: 12px; border-top-width: 3px; border-left-width: 3px; border-radius: 12px 0 0 0; }
.hud > .hc.tr { top: 12px; right: 12px; border-top-width: 3px; border-right-width: 3px; border-radius: 0 12px 0 0; }
.hud > .hc.bl { bottom: 12px; left: 12px; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 12px; }
.hud > .hc.br { bottom: 12px; right: 12px; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 12px 0; }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px;
    border-radius: var(--pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: var(--info-bg);
    color: var(--accent-end);
    white-space: nowrap;
}
[data-theme="dark"] .chip { color: #93c5fd; }
.chip.ok { background: var(--success-bg); color: var(--success); }
.chip.warn { background: var(--warning-bg); color: var(--warning); }
.chip.bad { background: var(--danger-bg); color: var(--danger); }
.chip.mute { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.chip.grad { background: var(--gradient); color: #fff; }
.chip.info { background: var(--accent-soft, rgba(0, 99, 210, 0.1)); color: var(--accent-mid, #0063d2); }

.status-Draft { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.status-Ordered { background: var(--info-bg); color: var(--accent-end); }
.status-Served { background: rgba(0, 212, 170, 0.14); color: #0f9b80; }
.status-Paid { background: var(--success-bg); color: var(--success); }
.status-Cancelled { background: var(--danger-bg); color: var(--danger); }
[data-theme="dark"] .status-Ordered { color: #93c5fd; }
[data-theme="dark"] .status-Served { color: #5eead4; }

/* The plus that morphs to a minus, the app's category toggle, now on every accordion. */
.morph { position: relative; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-accent); background: var(--surface); }
.morph::before, .morph::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--text); border-radius: 2px; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.morph::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.morph::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.open > * > .morph::after, .open > .morph::after, .morph.open::after { transform: translate(-50%, -50%) rotate(90deg); }


/* =====================================================================================================================
   8. HOME BLOCKS
   ===================================================================================================================== */

/* the three pains */
.pain { text-align: left; }
.pain .pain-visual {
    height: 130px;
    margin: -6px -6px 20px;
    border-radius: 18px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    display: grid; place-items: center;
    font-size: 30px;
    overflow: hidden;
    position: relative;
}
.pain .pain-visual .glyphs { font-family: 'Hiragino Sans', 'Noto Sans JP', 'Noto Sans Thai', sans-serif; font-size: 28px; color: var(--muted); letter-spacing: 4px; filter: blur(0.2px); text-align: center; line-height: 1.4; }
.pain .pain-visual .q { position: absolute; right: 16px; top: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--danger-bg); color: var(--danger); font-size: 16px; font-weight: 800; }
.pain .pain-visual .math { font-family: var(--font-ui); font-size: 18px; color: var(--text-2); text-align: center; line-height: 1.6; }
.pain .pain-visual .math b { color: var(--danger); }
.pain h3 { font-size: 1.25rem; }
.pain p { color: var(--text-2); margin: 0; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 34px; }
.step .num {
    position: absolute; top: -22px; left: 28px;
    width: 52px; height: 52px; border-radius: 18px;
    display: grid; place-items: center;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 22px;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
}
.step h3 { font-size: 1.3rem; margin-top: 8px; }
.step p { color: var(--text-2); margin-bottom: 16px; }
.step .step-art, .rail .step-art { height: 150px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden; }

.art-snap .scan-line { position: absolute; left: 14px; right: 14px; height: 3px; border-radius: 3px; background: var(--gradient); box-shadow: 0 0 18px rgba(0, 212, 170, 0.6); animation: scanMove 2.4s ease-in-out infinite; }
.art-snap .art-lines { position: absolute; inset: 26px 34px; display: grid; gap: 9px; align-content: center; }
.art-snap .art-lines span { height: 9px; border-radius: 5px; background: var(--line-strong); }
.art-snap .art-lines span:nth-child(2n) { width: 70%; }
.art-swap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px; gap: 10px; }
.art-swap .from, .art-swap .to { border-radius: 12px; background: var(--surface); border: 1px solid var(--line); padding: 10px; font-size: 13px; text-align: center; }
.art-swap .from b { font-family: 'Hiragino Sans', 'Noto Sans JP', sans-serif; font-size: 17px; display: block; }
.art-swap .to b { display: block; font-size: 13px; }
.art-swap .to small, .art-swap .from small { color: var(--muted); font-size: 11px; }
.art-swap .arrow { width: 36px; height: 36px; border-radius: 50%; background: var(--gradient); color: #fff; display: grid; place-items: center; animation: spinSwap 3s ease-in-out infinite; }
.art-order { padding: 16px; display: grid; gap: 8px; }
.art-order .row { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.art-order .row .qty { width: 22px; height: 22px; border-radius: 6px; background: var(--gradient); color: #fff; display: grid; place-items: center; font-size: 11px; }
.art-order .row.total { background: transparent; border-style: dashed; }
.art-order .row.total b { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* the live demo band */
.demo-band {
    border-radius: var(--radius-xl);
    padding: clamp(28px, 5vw, 56px);
    background: linear-gradient(135deg, #0b1324 0%, #0f2442 50%, #0b3a63 100%);
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}
.demo-band::before { content: ''; position: absolute; width: 480px; height: 480px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 212, 170, 0.35), transparent 65%); }
.demo-band::after { content: ''; position: absolute; width: 420px; height: 420px; left: -140px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 99, 210, 0.45), transparent 65%); }
.demo-band > * { position: relative; z-index: 1; }
.demo-band h2 { color: #fff; }
.demo-band p { color: #cbd5e1; }
.demo-band .eyebrow { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); color: #5eead4; }
.demo-band-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.demo-band .shot { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.12); }
.demo-band .shot img { width: 100%; height: 100%; object-fit: cover; }
.demo-band .shot .scan-line { position: absolute; left: 16px; right: 16px; height: 4px; border-radius: 4px; background: var(--gradient); box-shadow: 0 0 22px rgba(0, 212, 170, 0.8); animation: scanMove 2.6s ease-in-out infinite; }
.demo-band .shot .hc { border-color: #5eead4; }
.phone-qr { display: flex; gap: 18px; align-items: center; margin-top: 26px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.phone-qr .qr { width: 96px; height: 96px; flex-shrink: 0; border-radius: 12px; background: #fff; padding: 6px; }
.phone-qr .qr canvas, .phone-qr .qr svg { width: 100% !important; height: 100% !important; }
.phone-qr p { margin: 0; font-size: 14px; }
@media (max-width: 860px) { .demo-band-grid { grid-template-columns: 1fr; } .phone-qr { display: none; } }

/* features bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento .card { padding: 26px; }
.bento .b-wide { grid-column: span 3; }
.bento .b-third { grid-column: span 2; }
.bento .b-full { grid-column: span 6; }
.bento h3 { font-size: 1.18rem; margin: 16px 0 8px; }
.bento p { color: var(--text-2); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .bento .b-wide, .bento .b-third { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento .b-wide, .bento .b-third, .bento .b-full { grid-column: auto; } }

.price-demo { margin-top: 18px; display: grid; gap: 10px; }
.price-demo .pd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.price-demo .pd-row b { font-size: 15px; }
.price-demo .pd-row .pd-local { font-family: var(--font-ui); font-weight: 700; color: var(--text-2); }
.price-demo .pd-row .pd-home { font-family: var(--font-ui); font-weight: 700; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 17px; }
.price-demo .pd-note { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }

.lang-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lang-cloud span { padding: 6px 12px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.lang-cloud span:nth-child(3n) { border-color: var(--line-accent); color: var(--text); }

.mini-card { margin-top: 18px; background: var(--surface); border: 1px solid var(--accent-cyan); border-radius: 16px; padding: 12px 14px; position: relative; }
.mini-card .n { font-weight: 800; font-size: 15px; }
.mini-card .o { font-size: 12px; color: var(--muted); }
.mini-card .d { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.mini-card .p { position: absolute; right: 14px; top: 12px; font-family: var(--font-ui); font-weight: 700; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.note-demo { margin-top: 18px; display: grid; gap: 10px; }
.note-demo .bubble { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.note-demo .bubble .mic { width: 32px; height: 32px; border-radius: 50%; background: #00d4aa; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.note-demo .bubble.tr { border-color: var(--line-accent); background: var(--gradient-soft); font-family: 'Hiragino Sans', 'Noto Sans JP', sans-serif; }

/* comparison */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-medium); backdrop-filter: blur(14px); }
[data-theme="dark"] .compare { border-color: var(--line); }
.compare th, .compare td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 600; }
.compare thead th { font-family: var(--font-ui); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.compare thead th.us { color: #fff; background: var(--gradient); }
.compare td.us { background: rgba(0, 155, 219, 0.06); font-weight: 700; }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--success); font-size: 18px; }
.compare .no { color: var(--muted); font-size: 18px; }
.compare .part { color: var(--warning); font-size: 13px; font-weight: 600; }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); }
.compare-wrap .compare { min-width: 640px; }

/* who it is for */
.persona { display: flex; gap: 16px; align-items: flex-start; }
.persona h3 { font-size: 1.08rem; margin-bottom: 4px; }
.persona p { margin: 0; color: var(--text-2); font-size: 15px; }

/* marquee of places */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--pill); background: var(--glass); border: 1px solid var(--line); font-weight: 600; color: var(--text-2); white-space: nowrap; backdrop-filter: blur(10px); }
.marquee-track span i { color: var(--accent-mid); }

/* reviews */
.review .stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 10px; }
.review h3 { font-size: 1.05rem; }
.review p { color: var(--text-2); font-size: 15px; }
.review .who { font-size: 13px; color: var(--muted); font-weight: 600; }

/* FAQ, the app's accordion */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: var(--shadow-soft); overflow: hidden; backdrop-filter: blur(14px); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
[data-theme="dark"] .faq-item { border-color: var(--line); }
.faq-item.open { border-color: var(--line-accent); box-shadow: var(--shadow-medium); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; font-weight: 700; font-size: 1.04rem; color: var(--text); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 22px 20px; margin: 0; color: var(--text-2); }

/* the closing CTA */
.cta-band {
    position: relative;
    text-align: center;
    border-radius: var(--radius-xl);
    padding: clamp(44px, 7vw, 84px) clamp(22px, 5vw, 60px);
    background: var(--gradient);
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
    color: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.9); font-size: 1.15rem; max-width: 620px; margin: 0 auto 30px; }
.cta-band .btn-primary { background: #fff; color: var(--accent-end) !important; animation: none; }
.cta-band .btn-primary::before { background: linear-gradient(90deg, transparent, rgba(0, 155, 219, 0.18), transparent); }
.cta-band .btn-ghost { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.4); color: #fff !important; }
.cta-band .hc { border-color: rgba(255, 255, 255, 0.7) !important; }

.lead-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; flex-wrap: wrap; }
.lead-form input { flex: 1 1 240px; }
.lead-note { font-size: 13px; color: var(--muted); margin-top: 10px; }


/* =====================================================================================================================
   9. PRICING
   ===================================================================================================================== */

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan { display: flex; flex-direction: column; padding: 30px 26px; }
.plan.featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box; box-shadow: var(--shadow-strong); transform: translateY(-8px); }
[data-theme="dark"] .plan.featured { background: linear-gradient(#162033, #162033) padding-box, var(--gradient) border-box; }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: var(--pill); background: var(--gradient); color: #fff; font-family: var(--font-ui); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; white-space: nowrap; box-shadow: var(--shadow-glow); }
.plan .badge.alt { background: var(--text); }
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .tagline { color: var(--text-2); font-size: 14px; min-height: 44px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 2px; }
.plan .price b { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan .price s { color: var(--muted); font-size: 1.1rem; }
.plan .price span { color: var(--muted); font-weight: 600; font-size: 14px; }
.plan .per { font-size: 13px; font-weight: 700; color: var(--accent-end); min-height: 20px; }
[data-theme="dark"] .plan .per { color: #5eead4; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.plan li i { color: var(--accent-cyan); margin-top: 4px; }
.plan .btn { width: 100%; }
.plan .fine { margin-top: 12px; font-size: 12px; text-align: center; color: var(--muted); }
.plan.owned::after { content: 'Your pass'; position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; color: var(--success); }

.assurances { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.assurances > div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.assurances i { color: var(--accent-mid); font-size: 18px; margin-top: 2px; }
.assurances b { display: block; color: var(--text); }
@media (max-width: 900px) { .assurances { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .assurances { grid-template-columns: 1fr; } }

.included { width: 100%; border-collapse: collapse; }
.included td { padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 15px; }
.included td:last-child { text-align: right; color: var(--success); font-weight: 700; }

/* checkout */
.checkout-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }
.tier-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 6px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 22px; }
.tier-tab { padding: 12px 8px; border-radius: 15px; border: 0; background: none; cursor: pointer; text-align: center; font: inherit; color: var(--text-2); transition: all 0.3s ease; }
.tier-tab b { display: block; font-size: 14px; color: var(--text); }
.tier-tab span { font-size: 13px; font-weight: 700; }
.tier-tab.on { background: var(--surface); box-shadow: var(--shadow-medium); }
.tier-tab.on span { color: var(--accent-end); }
.line-item { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-item b { display: block; }
.line-item span { font-size: 14px; color: var(--text-2); }
.line-item .amt { font-size: 1.2rem; font-weight: 800; white-space: nowrap; }
.total-row { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 22px; font-size: 1.15rem; font-weight: 800; }
.total-row b { font-size: 1.7rem; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.paypal-holder { min-height: 56px; margin-top: 10px; position: relative; z-index: 1; }
.secure-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 13px; color: var(--muted); margin-top: 16px; }
.secure-row i { color: var(--accent-cyan); margin-right: 4px; }
.assure-list { display: grid; gap: 18px; }
.assure-list > div { display: flex; gap: 14px; }
.assure-list b { display: block; margin-bottom: 2px; }
.assure-list span { font-size: 14px; color: var(--text-2); }

.receipt { text-align: center; }
.receipt .tick { width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 50%; background: var(--gradient); display: grid; place-items: center; color: #fff; font-size: 38px; box-shadow: 0 20px 50px -10px rgba(0, 99, 210, 0.5), 0 0 0 8px rgba(0, 99, 210, 0.1); animation: pulseGlow 2s ease-in-out infinite; }
.receipt-table { max-width: 440px; margin: 22px auto; text-align: left; }
.receipt-table div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line-strong); font-size: 15px; }
.receipt-table div span { color: var(--muted); }
.cred-box { max-width: 460px; margin: 18px auto; padding: 18px; border-radius: 18px; border: 1px solid var(--line-accent); background: var(--gradient-soft); text-align: left; }
.cred-box .cred { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.cred-box .cred strong { font-family: var(--font-ui); letter-spacing: 0.5px; word-break: break-all; }


/* =====================================================================================================================
   10. FORMS AND AUTH
   ===================================================================================================================== */

.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label, .label { font-size: 13px; font-weight: 700; color: var(--text-2); letter-spacing: 0.2px; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
    width: 100%;
    min-height: 52px;
    padding: 13px 16px;
    border-radius: 14px;
    border: 1.5px solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 16px;   /* 16px: iOS does not zoom into the field */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.textarea { min-height: 130px; resize: vertical; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 22px; padding-right: 42px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-mid); box-shadow: 0 0 0 4px rgba(0, 155, 219, 0.14); }
.input.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-bg); }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 44px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: 8px; cursor: pointer; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent-mid); flex-shrink: 0; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { display: none; padding: 12px 16px; border-radius: 14px; font-size: 14px; margin-bottom: 16px; }
.form-msg.show { display: block; }
.form-msg.err { background: var(--danger-bg); color: var(--danger); }
.form-msg.ok { background: var(--success-bg); color: var(--success); }

.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--nav-h) - 60px); gap: 40px; align-items: center; }
.auth-card { max-width: 460px; width: 100%; margin: 0 auto; padding: clamp(26px, 4vw, 40px); }
.auth-card h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-2); margin-bottom: 26px; }
.auth-card .alt { text-align: center; margin-top: 22px; font-size: 14.5px; color: var(--text-2); }
.auth-side { position: relative; padding: 40px; border-radius: var(--radius-xl); background: linear-gradient(135deg, #0b1324, #0b3a63); color: #e2e8f0; overflow: hidden; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; }
.auth-side::before { content: ''; position: absolute; width: 420px; height: 420px; top: -120px; right: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 212, 170, 0.4), transparent 65%); }
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; font-size: 2rem; }
.auth-side ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.auth-side li { display: flex; gap: 12px; }
.auth-side li i { color: #2ee6c0; margin-top: 5px; }
.auth-side .hc { border-color: #2ee6c0 !important; }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } .auth-side { display: none; } }

.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }


/* =====================================================================================================================
   11. ACCOUNT
   ===================================================================================================================== */

.acct-tabs { display: flex; gap: 6px; padding: 6px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft); overflow-x: auto; scrollbar-width: none; margin-bottom: 28px; backdrop-filter: blur(14px); }
[data-theme="dark"] .acct-tabs { border-color: var(--line); }
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tabs a { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 16px; color: var(--text-2); font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.acct-tabs a i { color: var(--muted); }
.acct-tabs a:hover { background: var(--gradient-soft); color: var(--text); }
.acct-tabs a.on { background: var(--surface); color: var(--accent-end); box-shadow: var(--shadow-medium); }
.acct-tabs a.on i { color: var(--accent-mid); }
[data-theme="dark"] .acct-tabs a.on { color: #5eead4; }
.acct-tabs .scan-tab { margin-left: auto; background: var(--gradient); color: #fff !important; }
.acct-tabs .scan-tab i { color: #fff !important; }

.dash-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; margin-bottom: 22px; }
@media (max-width: 900px) { .dash-hero { grid-template-columns: 1fr; } }
.scan-cta {
    min-height: 240px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #0b1324 0%, #0f2442 55%, #0b3a63 100%);
    color: #fff;
    padding: 34px;
    display: flex; flex-direction: column; justify-content: space-between;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-strong);
}
.scan-cta::before { content: ''; position: absolute; width: 360px; height: 360px; right: -80px; top: -120px; background: radial-gradient(circle, rgba(0, 212, 170, 0.4), transparent 65%); }
.scan-cta > * { position: relative; }
.scan-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.scan-cta p { color: #cbd5e1; margin: 0 0 22px; }
.scan-cta .hc { border-color: #2ee6c0 !important; }
.scan-cta .scan-line { position: absolute; left: 24px; right: 24px; height: 3px; border-radius: 3px; background: var(--gradient); box-shadow: 0 0 18px rgba(0, 212, 170, 0.7); animation: scanMove 3s ease-in-out infinite; opacity: 0.8; }

.plan-card .meter { height: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; margin: 14px 0 8px; }
.plan-card .meter span { display: block; height: 100%; border-radius: 12px; background: var(--gradient); transition: width 0.8s var(--ease); }
.plan-card .big { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan-card .big small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }

.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 760px) { .stat-tiles { grid-template-columns: repeat(2, 1fr); } }
.stat-tile { padding: 18px 20px; }
.stat-tile b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat-tile span { font-size: 13px; font-weight: 600; color: var(--muted); }

.block-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 34px 0 16px; flex-wrap: wrap; }
.block-head h2 { font-size: 1.4rem; margin: 0; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.toolbar .search { flex: 1 1 260px; }
.seg { display: inline-flex; padding: 4px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 9px 14px; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 700; color: var(--text-2); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--accent-end); box-shadow: var(--shadow-soft); }

.menu-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.menu-tile { padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.menu-tile .thumb { height: 150px; background: var(--surface-2); position: relative; overflow: hidden; }
.menu-tile .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.menu-tile:hover .thumb img { transform: scale(1.06); }
.menu-tile .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: var(--muted); background: var(--gradient-soft); }
.menu-tile .thumb .lang-chip img.flag { width: 18px; height: 18px; position: static; object-fit: contain; inset: auto; }
.menu-tile:hover .thumb .lang-chip img.flag { transform: none; }
.menu-tile .lang-chip { position: absolute; left: 12px; top: 12px; padding: 4px 12px 4px 5px; border-radius: var(--pill); background: var(--glass-strong); font-size: 13px; font-weight: 700; backdrop-filter: blur(8px); display: inline-flex; align-items: center; gap: 6px; }
.menu-tile .fav { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--glass-strong); color: var(--muted); cursor: pointer; backdrop-filter: blur(8px); }
.menu-tile .fav.on { color: #f43f5e; }
.menu-tile .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.menu-tile h3 { font-size: 1.05rem; margin: 0 0 4px; }
.menu-tile .meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; padding-top: 10px; }

.order-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; cursor: pointer; margin-bottom: 12px; }
.order-row .o-flag { width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; flex: none; }
.order-row .o-flag:has(i) { border-radius: 14px; background: var(--gradient-soft); border: 1px solid var(--line-accent); }
.order-row h3 { font-size: 1.02rem; margin: 0 0 3px; }
.order-row .o-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.order-row .o-total { text-align: right; }
.order-row .o-total b { display: block; font-size: 1.1rem; }
.order-row .o-total small { color: var(--muted); font-weight: 600; }
.progress { height: 6px; width: 110px; border-radius: 6px; background: var(--surface-2); overflow: hidden; display: inline-block; vertical-align: middle; }
.progress span { display: block; height: 100%; background: var(--gradient); border-radius: 6px; }
@media (max-width: 560px) { .order-row { grid-template-columns: auto 1fr; } .order-row .o-total { grid-column: 2; text-align: left; } }

.empty { text-align: center; padding: 56px 24px; }
.empty .ic { margin: 0 auto 18px; width: 70px; height: 70px; font-size: 28px; border-radius: 22px; }
.empty h3 { font-size: 1.3rem; }
.empty p { color: var(--text-2); max-width: 420px; margin: 0 auto 22px; }

.skeleton { border-radius: 16px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: skeleton 1.4s ease infinite; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-family: var(--font-ui); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 600; white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

.danger-zone { border: 1px solid var(--danger-bg) !important; }
.danger-zone h3 { color: var(--danger); }

/* menu detail */
.md-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.md-head h2 { font-size: 1.6rem; margin: 0 0 6px; }
.md-photos { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: thin; }
.md-photos img { height: 120px; width: auto; border-radius: 12px; border: 3px solid var(--surface); box-shadow: var(--shadow-soft); cursor: zoom-in; }
.md-cat { margin: 22px 0 10px; font-family: var(--font-ui); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.md-cat::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.md-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 8px; }
.md-item.hidden-item { opacity: 0.5; }
.md-item .n { font-weight: 700; }
.md-item .o { font-size: 13px; color: var(--muted); }
.md-item .d { font-size: 13.5px; color: var(--text-2); grid-column: 1 / -1; }
.md-item .pr { text-align: right; font-weight: 800; white-space: nowrap; }
.md-item .pr small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.md-item .acts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.md-edit { grid-column: 1 / -1; display: grid; gap: 10px; padding-top: 8px; }

/* order detail */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.stepper button { border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: 16px; padding: 12px 10px; cursor: pointer; font: inherit; color: var(--text-2); text-align: center; transition: all 0.3s ease; }
.stepper button i { display: block; font-size: 18px; margin-bottom: 4px; }
.stepper button b { font-size: 13px; }
.stepper button.done { border-color: transparent; background: var(--gradient); color: #fff; box-shadow: var(--shadow-glow); }
.stepper button.next { border-color: var(--accent-mid); color: var(--accent-end); }
.oi { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.oi.cancelled { opacity: 0.45; }
.oi.cancelled .oi-name { text-decoration: line-through; }
.oi-tick { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--line-strong); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: transparent; transition: all 0.25s var(--spring); }
.oi-tick.on { border-color: transparent; background: var(--gradient); color: #fff; transform: scale(1.05); }
.oi-name b { display: block; }
.oi-name small { color: var(--muted); }
.oi-note { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.oi-note em { color: var(--accent-end); font-style: normal; }
.oi-right { text-align: right; }
.qty-ctl { display: inline-flex; align-items: center; gap: 6px; padding: 3px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface-2); }
.qty-ctl button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.qty-ctl span { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: 13.5px; color: var(--text-2); }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); }
.timeline li::after { content: ''; position: absolute; left: 7.5px; top: 17px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; font-size: 12px; color: var(--muted); }
.qr-box { width: 200px; height: 200px; margin: 0 auto; padding: 10px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-strong); }
.qr-box canvas, .qr-box svg, .qr-box img { width: 100% !important; height: 100% !important; }


/* =====================================================================================================================
   12. DRAWERS, TOASTS, DIALOGS
   ===================================================================================================================== */

.overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(2, 6, 23, 0.5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.overlay.on { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 1210;
    width: min(680px, 100%);
    background: var(--bg-solid);
    background-image: var(--bg);
    box-shadow: var(--shadow-strong);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    display: flex; flex-direction: column;
}
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--glass-strong); backdrop-filter: blur(14px); }
.drawer-head h2 { font-size: 1.15rem; margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px; overscroll-behavior: contain; }
@media (max-width: 680px) {
    .drawer { top: auto; height: 92vh; width: 100%; border-radius: 26px 26px 0 0; transform: translateY(100%); border-top: 2px solid #00d4aa; }
    .drawer-head { border-radius: 26px 26px 0 0; }
}

.dialog {
    position: fixed;
    left: 50%; top: 50%;
    z-index: 1300;
    width: min(460px, calc(100% - 32px));
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-strong);
    transform: translate(-50%, -46%) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease);
}
.dialog.on { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.dialog h3 { font-size: 1.25rem; }
.dialog p { color: var(--text-2); }
.dialog .btn-row { justify-content: flex-end; margin-top: 18px; }

/* The app's toast: a glass pill that drops in from the top. */
.toast {
    position: fixed;
    top: 92px; left: 50%;
    z-index: 1400;
    transform: translateX(-50%) translateY(-20px);
    max-width: calc(100% - 32px);
    padding: 14px 24px;
    border-radius: 40px;
    background: var(--glass-strong);
    border: 1px solid var(--line-accent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-strong);
    color: var(--text);
    font-size: 14.5px;
    font-weight: 600;
    display: flex; align-items: center; gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast i { color: var(--accent-mid); }
.toast.error i { color: var(--danger); }
.toast.success i { color: var(--success); }

.busy-veil { position: fixed; inset: 0; z-index: 1500; background: rgba(2, 6, 23, 0.35); display: none; place-items: center; backdrop-filter: blur(2px); }
.busy-veil.on { display: grid; }
.loader-dots { display: flex; gap: 10px; }
.loader-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--accent-mid); animation: loaderBounce 0.5s infinite alternate; }
.loader-dots span:nth-child(2) { animation-delay: 0.1s; background: var(--accent-cyan); }
.loader-dots span:nth-child(3) { animation-delay: 0.2s; background: var(--accent-blue); }

.lightbox { position: fixed; inset: 0; z-index: 1600; background: rgba(2, 6, 23, 0.9); display: none; place-items: center; padding: 20px; }
.lightbox.on { display: grid; }
.lightbox img { max-height: 92vh; max-width: 100%; border-radius: 14px; }


/* =====================================================================================================================
   13. THE WAITER VIEW  ·  /o/<code>, read on somebody else's phone, at a glance
   ===================================================================================================================== */

.bare .nav, .bare .mobile-menu, .bare .site-footer { display: none !important; }
.waiter { max-width: 560px; margin: 0 auto; padding: 28px 18px 60px; }
.waiter-card { padding: 30px 24px; text-align: center; }
.waiter .w-logo { width: 130px; margin: 0 auto 18px; }
.waiter .w-phrase { font-size: 1.7rem; font-weight: 800; line-height: 1.35; margin-bottom: 4px; }
.waiter .w-phrase-tr { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.waiter .w-table { display: inline-block; margin-bottom: 14px; }
.waiter .w-items { text-align: left; margin: 10px 0 18px; }
.waiter .w-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 16px 4px; border-bottom: 1px dashed var(--line-strong); }
.waiter .w-qty { min-width: 46px; height: 46px; border-radius: 14px; background: var(--gradient); color: #fff; display: grid; place-items: center; font-family: var(--font-ui); font-size: 20px; font-weight: 700; padding: 0 8px; }
.waiter .w-name { font-size: 1.35rem; font-weight: 800; line-height: 1.3; }
.waiter .w-name small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.waiter .w-note { margin-top: 6px; font-size: 1.05rem; color: var(--accent-end); font-weight: 700; }
[data-theme="dark"] .waiter .w-note { color: #5eead4; }
.waiter .w-note small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.waiter .w-price { font-weight: 700; white-space: nowrap; color: var(--text-2); }
.waiter .w-total { display: flex; justify-content: space-between; font-size: 1.35rem; font-weight: 800; padding-top: 10px; }
.waiter .w-thanks { font-size: 1.25rem; font-weight: 800; margin-top: 18px; }
.waiter .w-served { opacity: 0.45; }
.waiter .w-foot { text-align: center; margin-top: 22px; font-size: 13px; color: var(--muted); }
.waiter .w-foot a { font-weight: 700; }
.lang-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 30px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 20px; }
.lang-toggle button { border: 0; background: none; padding: 8px 16px; border-radius: 22px; font-family: var(--font-ui); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.lang-toggle button.on { background: var(--surface); color: var(--accent-end); box-shadow: var(--shadow-soft); }
.waiter.show-tr .orig-only { display: none; }
.waiter:not(.show-tr) .tr-only { display: none; }


/* =====================================================================================================================
   14. FOOTER
   ===================================================================================================================== */

.site-footer { margin-top: 40px; padding: 70px 0 34px; border-top: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(12px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand img { width: 170px; margin-bottom: 14px; }
.footer-brand p { color: var(--text-2); font-size: 14.5px; max-width: 340px; }
.site-footer h4 { font-family: var(--font-ui); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer ul a { color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.site-footer ul a:hover { color: var(--accent-end); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-base .theme-toggle { width: 38px; height: 38px; }
.footer-base .theme-toggle svg { width: 18px; height: 18px; }


/* =====================================================================================================================
   15. ARTICLES  ·  guides, legal pages, about
   ===================================================================================================================== */

.prose { max-width: 760px; margin: 0 auto; font-size: 17.5px; line-height: 1.75; color: var(--text-2); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1.8em 0 0.6em; color: var(--text); }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 0.5em; color: var(--text); }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-decoration-color: rgba(0, 155, 219, 0.35); text-underline-offset: 3px; }
.prose ul, .prose ol { margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--accent-mid); background: var(--gradient-soft); border-radius: 0 16px 16px 0; color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15.5px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--text); background: var(--surface-2); }
.prose .callout { margin: 1.6em 0; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-accent); box-shadow: var(--shadow-soft); color: var(--text); }
.prose .callout.tip::before { content: 'Tip'; display: block; font-family: var(--font-ui); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-mid); margin-bottom: 6px; }
.prose .callout.warn { border-color: rgba(245, 158, 11, 0.4); }
.prose .callout.warn::before { content: 'Careful'; display: block; font-family: var(--font-ui); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--warning); margin-bottom: 6px; }
.prose .phrase { display: block; font-size: 1.15em; font-weight: 700; color: var(--text); }
.prose .phrase small { display: block; font-size: 0.8em; font-weight: 500; color: var(--muted); }
.prose .cta-inline { margin: 2em 0; padding: 24px; border-radius: 22px; background: var(--gradient); color: #fff; text-align: center; }
.prose .cta-inline p { color: rgba(255, 255, 255, 0.92); margin-bottom: 14px; }
.prose .cta-inline strong { color: #fff; }
.prose .cta-inline .btn-primary { background: #fff; color: var(--accent-end) !important; animation: none; text-decoration: none; }
.article-head { text-align: center; max-width: 820px; margin: 0 auto 36px; }
.article-head .meta { color: var(--muted); font-size: 14px; font-weight: 600; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.legal { font-size: 16px; }
.legal h2 { font-size: 1.4rem; }

.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.guide-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit !important; }
.guide-card .gc-top { height: 128px; background: var(--gradient); position: relative; display: grid; place-items: center; color: rgba(255, 255, 255, 0.95); font-size: 42px; overflow: hidden; }
.guide-card .gc-top::after { content: ''; position: absolute; width: 220px; height: 220px; right: -60px; top: -80px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.guide-card .gc-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.guide-card .gc-region { font-family: var(--font-ui); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-mid); margin-bottom: 6px; }
.guide-card h3 { font-size: 1.12rem; margin-bottom: 8px; color: var(--text); }
.guide-card p { font-size: 14.5px; color: var(--text-2); margin-bottom: 14px; }
.guide-card .gc-meta { margin-top: auto; font-size: 13px; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; }


/* =====================================================================================================================
   16. MOTION
   ===================================================================================================================== */

@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes shimmer { 0% { transform: translateX(0); } 100% { transform: translateX(200%); } }
@keyframes orbFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 25% { transform: translate(30px, -50px) scale(1.1); } 50% { transform: translate(-20px, 20px) scale(0.95); } 75% { transform: translate(40px, 40px) scale(1.05); } }
@keyframes orbFloat2 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-40px, 30px) scale(1.15); } 66% { transform: translate(50px, -40px) scale(0.9); } }
@keyframes scanMove { 0%, 100% { top: 8%; } 50% { top: calc(92% - 4px); } }
@keyframes breathe { 0%, 100% { opacity: 0.5; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes flashEffect { 0% { opacity: 0.9; } 100% { opacity: 0; } }
@keyframes smoothFade { 0% { opacity: 0; } 30% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 20px 50px -10px rgba(0, 99, 210, 0.5), 0 0 0 8px rgba(0, 99, 210, 0.1); } 50% { box-shadow: 0 25px 60px -10px rgba(0, 99, 210, 0.6), 0 0 0 16px rgba(0, 99, 210, 0.08); } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.22); } 50% { box-shadow: 0 0 0 7px rgba(0, 212, 170, 0.06); } }
@keyframes loaderBounce { from { transform: translateY(0); opacity: 0.6; } to { transform: translateY(-10px); opacity: 1; } }
@keyframes tapPulse { 0% { box-shadow: 0 0 0 0 rgba(0, 155, 219, 0.6); } 100% { box-shadow: 0 0 0 20px rgba(0, 155, 219, 0); } }
@keyframes spinSwap { 0%, 30% { transform: rotate(0); } 50%, 80% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; } .reveal-d2 { transition-delay: 0.16s; } .reveal-d3 { transition-delay: 0.24s; } .reveal-d4 { transition-delay: 0.32s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}


/* =====================================================================================================================
   17. UTILITIES
   ===================================================================================================================== */

.center { text-align: center; }
.muted { color: var(--muted); }
.soft { color: var(--text-2); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .wrap-flex { flex-wrap: wrap; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.fx-in { animation: slideUpFade 0.5s var(--ease) both; }

@media print {
    .nav, .mobile-menu, .site-footer, .ambient, .acct-tabs, .btn, .toast { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; backdrop-filter: none !important; }
    .page { padding-top: 0; }
}
@media (max-width: 560px) { .scripts-strip { display: none; } }


/* =====================================================================================================================
   18. THE HOME PAGE, EDITORIAL
   Left-aligned display type, mono labels instead of pill badges, hairlines instead of boxes, one dark band for the
   QR handoff. Same palette as the app.
   ===================================================================================================================== */

/* ---- labels: a short gradient rule and mono caps (also restyles the old .eyebrow on every other page) ---------- */
.kicker, .eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    margin-bottom: 18px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent-end);
}
.kicker::before, .eyebrow::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: var(--gradient); flex: none; }
.eyebrow .dot { display: none; }
[data-theme="dark"] .kicker, [data-theme="dark"] .eyebrow { color: #5eead4; }
.kicker-light, .demo-band .kicker, .demo-band .eyebrow { color: #5eead4; }
.section-head .eyebrow, .center .eyebrow { justify-content: center; }

.display { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.04; letter-spacing: -0.04em; margin-bottom: 0.4em; text-wrap: balance; }

/* ---- the round flags: shown whole, they carry their own rim and shadow ----------------------------------------- */
img.flag { display: inline-block; vertical-align: -0.3em; object-fit: contain; flex: none; border: 0; border-radius: 0; background: none; }

/* ---- hero ------------------------------------------------------------------------------------------------------ */
.hero-v2 { padding-bottom: clamp(40px, 6vw, 80px); }
.hero-v2 .hero-grid {
    grid-template-columns: 1.06fr 0.94fr; column-gap: clamp(24px, 4vw, 56px); row-gap: 0; position: relative; z-index: 1;
    /* the copy is two blocks, so on a phone the animation can sit between the headline and the buttons */
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". visual" "top visual" "bottom visual" ". visual";
}
.hero-v2 .hero-top { grid-area: top; }
.hero-v2 .hero-bottom { grid-area: bottom; }
.hero-v2 .hero-visual { grid-area: visual; align-self: center; }
.hero-grid-bg {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image: radial-gradient(circle, rgba(0, 99, 210, 0.16) 1.2px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%);
}
[data-theme="dark"] .hero-grid-bg { background-image: radial-gradient(circle, rgba(46, 230, 192, 0.16) 1.2px, transparent 1.4px); }

.hero-title { font-size: clamp(2.5rem, 4.6vw, 4.15rem); line-height: 1.02; letter-spacing: -0.045em; margin-bottom: 26px; }
.hero-title .line { display: block; }
.hero-title .line + .line { margin-top: 0.08em; }
.hero-title .line-soft { font-size: 0.74em; font-weight: 700; color: var(--text-2); letter-spacing: -0.035em; margin-top: 0.18em; }

/* "Order like a local", locked inside the scanner's corner brackets */
.bracketed { position: relative; display: inline-block; max-width: 100%; padding: 0.06em 0.22em 0.12em; margin-left: -0.22em; }
.bracketed .bk { position: absolute; width: 0.36em; height: 0.36em; border: 0 solid var(--accent-mid); animation: lockOn 1.1s var(--spring) both 0.5s; }
.bracketed .bk.tl { left: 0; top: 0; border-top-width: 0.07em; border-left-width: 0.07em; border-radius: 0.12em 0 0 0; --dx: -0.22em; --dy: -0.18em; }
.bracketed .bk.tr { right: 0; top: 0; border-top-width: 0.07em; border-right-width: 0.07em; border-radius: 0 0.12em 0 0; --dx: 0.22em; --dy: -0.18em; }
.bracketed .bk.bl { left: 0; bottom: 0; border-bottom-width: 0.07em; border-left-width: 0.07em; border-radius: 0 0 0 0.12em; --dx: -0.22em; --dy: 0.18em; }
.bracketed .bk.br { right: 0; bottom: 0; border-bottom-width: 0.07em; border-right-width: 0.07em; border-radius: 0 0 0.12em 0; --dx: 0.22em; --dy: 0.18em; }
.bracketed .bk.tl, .bracketed .bk.bl { border-color: #00c9a7; }
.bracketed .bk.tr, .bracketed .bk.br { border-color: var(--accent-end); }
[data-theme="dark"] .bracketed .bk.tr, [data-theme="dark"] .bracketed .bk.br { border-color: #60a5fa; }
@keyframes lockOn { from { opacity: 0; transform: translate(var(--dx), var(--dy)); } to { opacity: 1; transform: none; } }

.hero-v2 .hero-sub { max-width: 560px; }
.flag-stack { margin-top: 30px; display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--text-2); line-height: 1.4; }
.flag-stack b { color: var(--text); }
.fs-flags { display: flex; flex: none; }
.fs-flags img { width: 34px; height: 34px; margin-left: -5px; transition: transform 0.3s var(--spring); }
.fs-flags img:first-child { margin-left: 0; }
.fs-flags img:hover { transform: translateY(-5px) scale(1.12); z-index: 2; }

.hero-v2 .hero-visual { position: relative; }

@media (max-width: 960px) {
    .hero-v2 .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "top" "visual" "bottom"; row-gap: 26px; }
    .hero-v2 .hero-sub { margin-bottom: 0; }
    .hero-v2 .hero-copy { text-align: left; }
    .hero-v2 .hero-cta, .hero-v2 .hero-proof { justify-content: flex-start; }
    .hero-v2 .hero-visual { margin-top: 10px; }
}
@media (max-width: 560px) {
    .flag-stack { flex-direction: column; align-items: flex-start; gap: 10px; }
    .fs-flags img { width: 30px; height: 30px; }
}

/* ---- the city ticker ------------------------------------------------------------------------------------------- */
.ticker { overflow: hidden; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 46px; width: max-content; animation: tickerMove 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); white-space: nowrap; letter-spacing: -0.01em; }
.ticker-track img { width: 26px; height: 26px; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- split layouts: a heading column and a content column ------------------------------------------------------ */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.split-sticky .split-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.split-head p { font-size: 1.08rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-sticky .split-head { position: static; } }

.head-row { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(20px, 5vw, 70px); align-items: end; margin-bottom: clamp(34px, 5vw, 56px); }
.head-row p { color: var(--text-2); font-size: 1.06rem; margin: 0 0 0.9em; }
.head-row .display { margin-bottom: 0; }
.head-row.single { grid-template-columns: 1fr; gap: 8px; }
@media (max-width: 900px) { .head-row { grid-template-columns: 1fr; gap: 10px; } }

/* ---- the problem ----------------------------------------------------------------------------------------------- */
.problem-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.problem-list li { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line-strong); }
.pl-num { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--accent-mid); padding-top: 4px; }
.problem-list h3 { font-size: 1.35rem; margin-bottom: 6px; }
.problem-list p { margin: 0; color: var(--text-2); }
.pl-art { font-size: 22px; color: var(--muted); white-space: nowrap; padding-top: 4px; display: flex; gap: 8px; }
.pl-art.mono { font-family: var(--font-mono); font-size: 14px; color: var(--text-2); }
.pl-art.mono b { color: var(--danger); }
@media (max-width: 640px) { .problem-list li { grid-template-columns: 44px 1fr; } .pl-art { display: none; } }

/* ---- THE QR HANDOFF: the one dark band ------------------------------------------------------------------------- */
.handoff {
    position: relative; overflow: hidden; color: #e2e8f0;
    padding: clamp(70px, 10vw, 130px) 0;
    background: radial-gradient(ellipse at 15% 0%, rgba(0, 212, 170, 0.16), transparent 50%), radial-gradient(ellipse at 90% 100%, rgba(0, 99, 210, 0.35), transparent 55%), linear-gradient(180deg, #07101f 0%, #0a1830 100%);
}
.handoff-glow { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(46, 230, 192, 0.12) 1.2px, transparent 1.4px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.handoff .display { color: #fff; }
.handoff .gradient-text { background: linear-gradient(135deg, #2ee6c0 0%, #38b6f0 50%, #7cb7ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.handoff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; position: relative; }
.handoff-lede { font-size: 1.1rem; line-height: 1.7; color: #b6c3d8; margin: 0 0 28px; }
.handoff-lede strong { color: #fff; }
.handoff-points { display: grid; gap: 14px; }
.handoff-points div { display: grid; grid-template-columns: 200px 1fr; gap: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.handoff-points b { color: #fff; }
.handoff-points span { color: #94a3b8; }
@media (max-width: 960px) { .handoff-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .handoff-points div { grid-template-columns: 1fr; gap: 2px; } }

/* the two devices */
.handoff-visual { position: relative; height: 470px; max-width: 540px; width: 100%; margin: 0 auto; }
.hv-phone { position: absolute; right: 6%; top: 0; width: 230px; height: 452px; border-radius: 38px; padding: 9px; background: linear-gradient(145deg, #2b3445, #0b0f18); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1) inset; transform: rotate(5deg); z-index: 2; }
.hv-screen { width: 100%; height: 100%; border-radius: 30px; background: #f8fafc; padding: 42px 16px 16px; text-align: center; color: #0f172a; font-family: var(--font-ui); }
.hv-title { font-weight: 800; font-size: 14px; margin-bottom: 18px; display: flex; gap: 8px; align-items: center; justify-content: center; }
.hv-title i { color: #0081c6; }
.hv-qr { position: relative; width: 156px; height: 156px; margin: 0 auto 18px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 16px 36px -14px rgba(0, 99, 210, 0.55); }
.hv-qr > div, .hv-qr svg, .hv-qr canvas { width: 100%; height: 100%; display: block; }
.handoff-visual.scanning .hv-qr { animation: qrPing 1s ease-in-out infinite; }
.handoff-visual .hv-state { background: #eef2f7; color: #475569; }
.hv-tablet { position: absolute; left: 0; bottom: 0; width: 330px; height: 236px; border-radius: 24px; padding: 11px; background: linear-gradient(145deg, #39424f, #11151d); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.1) inset; transform: translate(-40px, 20px) rotate(-6deg); opacity: 0.4; transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease; z-index: 3; }
.handoff-visual.tablet-in .hv-tablet { transform: rotate(-4deg); opacity: 1; }
.hv-tscreen { width: 100%; height: 100%; border-radius: 15px; background: #fff; padding: 12px 14px; color: #0f172a; font-family: 'Hiragino Sans', 'Yu Gothic', 'Noto Sans JP', var(--font-ui), sans-serif; }
.hv-thead { display: flex; justify-content: space-between; align-items: center; font-size: 12px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid #e2e8f0; }
.hv-thead span { display: inline-flex; gap: 5px; align-items: center; color: #64748b; }
.hv-line { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: start; font-size: 12.5px; padding: 5px 0; opacity: 0.25; transition: opacity 0.4s ease; }
.handoff-visual.order-in .hv-line { opacity: 1; }
.handoff-visual.order-in .hv-line:nth-child(3) { transition-delay: 0.15s; }
.handoff-visual.order-in .hv-line:nth-child(4) { transition-delay: 0.3s; }
.hv-line .q { width: 20px; height: 20px; border-radius: 6px; background: var(--gradient); color: #fff; font-size: 10px; display: grid; place-items: center; font-weight: 700; }
.hv-line small { display: block; color: #0081c6; font-weight: 700; font-size: 10.5px; }
.hv-btn { margin-top: 8px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, #00b894, #0081c6); color: #fff; font-weight: 800; font-size: 12.5px; display: grid; place-items: center; transition: background 0.4s ease; }
.hv-btn .t2 { display: none; }
.handoff-visual.done .hv-btn { background: #10b981; }
.handoff-visual.done .hv-btn .t1 { display: none; }
.handoff-visual.done .hv-btn .t2 { display: inline; animation: popIn 0.4s var(--spring); }
.hv-beam { position: absolute; left: 38%; top: 44%; width: 120px; height: 3px; transform: rotate(-38deg); transform-origin: left center; border-radius: 3px; background: linear-gradient(90deg, rgba(46, 230, 192, 0), #2ee6c0); box-shadow: 0 0 18px #2ee6c0; opacity: 0; z-index: 4; }
.handoff-visual.scanning .hv-beam { animation: beam 1s ease-in-out infinite; }
.hv-label { position: absolute; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #64748b; }
.hv-label-a { right: 8%; bottom: -6px; }
.hv-label-b { left: 2%; bottom: -34px; }
@keyframes beam { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
@media (max-width: 560px) {
    .handoff-visual { height: 420px; }
    .hv-phone { width: 196px; height: 392px; right: 0; }
    .hv-qr { width: 128px; height: 128px; }
    .hv-tablet { width: 270px; height: 206px; }
    .hv-line { font-size: 11px; }
}

.handoff-steps-row { list-style: none; padding: 0; margin: clamp(60px, 8vw, 96px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.handoff-steps-row li { padding: 24px 22px 0 0; position: relative; }
.handoff-steps-row li::before { content: ''; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: #2ee6c0; box-shadow: 0 0 0 5px rgba(46, 230, 192, 0.15); }
.handoff-steps-row span { font-family: var(--font-mono); font-size: 12px; color: #5eead4; letter-spacing: 0.1em; }
.handoff-steps-row b { display: block; color: #fff; font-size: 1.12rem; margin: 6px 0 6px; }
.handoff-steps-row p { margin: 0; color: #94a3b8; font-size: 0.95rem; }
@media (max-width: 860px) { .handoff-steps-row { grid-template-columns: 1fr 1fr; row-gap: 30px; } }
@media (max-width: 480px) { .handoff-steps-row { grid-template-columns: 1fr; } }

.handoff-sides { margin-top: clamp(50px, 7vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.handoff-sides > div { padding: 28px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); }
.handoff-sides h3 { color: #fff; display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.handoff-sides h3 i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--gradient); color: #fff; font-size: 14px; }
.handoff-sides ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.handoff-sides li { padding-left: 26px; position: relative; color: #b6c3d8; }
.handoff-sides li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 1px; color: #2ee6c0; font-size: 13px; }
@media (max-width: 760px) { .handoff-sides { grid-template-columns: 1fr; } }

/* ---- how it works: a rail of four ------------------------------------------------------------------------------ */
.rail { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: rail; }
.rail li { position: relative; padding-top: 22px; border-top: 2px solid var(--line-strong); display: flex; flex-direction: column; }
.rail li::before { content: ''; position: absolute; left: 0; top: -2px; width: 46px; height: 2px; background: var(--gradient); }
.rail-num { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent-mid); margin-bottom: 10px; }
.rail h3 { font-size: 1.25rem; margin-bottom: 8px; }
.rail p { color: var(--text-2); font-size: 0.97rem; flex: 1; }
.rail .step-art { margin-top: auto; height: 160px; }
.rail p { margin-bottom: 18px; }
.rail .art-order { align-content: center; }
.rail .art-qr { min-height: 0; padding: 18px; }
.art-qr { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); min-height: 122px; color: var(--muted); }
.art-qr .mini-qr { width: 58px; height: 58px; border-radius: 12px; background: #fff; display: grid; place-items: center; font-size: 34px; color: #0f172a; box-shadow: var(--shadow-medium); }
.art-qr .mini-tab { position: relative; padding: 10px 14px 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-accent); box-shadow: var(--shadow-soft); font-size: 12px; color: var(--text); line-height: 1.5; }
.art-qr .mini-tab b { display: block; font-size: 13px; }
.art-qr .mini-tab em { position: absolute; right: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; background: #10b981; color: #fff; display: grid; place-items: center; font-size: 11px; font-style: normal; }
@media (max-width: 1000px) { .rail { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .rail { grid-template-columns: 1fr; } }

/* ---- what you get: a spec sheet -------------------------------------------------------------------------------- */
.spec { border-top: 1px solid var(--line-strong); }
.spec-row { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line-strong); }
.spec-row.compact { padding: 20px 0; }
.spec-row h3 { font-size: 1.22rem; margin: 6px 0 6px; }
.spec-row p { color: var(--text-2); margin: 0; }
.spec-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--gradient); color: #fff; font-size: 17px; box-shadow: var(--shadow-glow); }
.spec-ic.soft { background: var(--gradient-soft); color: var(--accent-end); box-shadow: none; border: 1px solid var(--line-accent); }
[data-theme="dark"] .spec-ic.soft { color: #5eead4; }
.spec .lang-cloud, .spec .price-demo, .spec .mini-card, .spec .note-demo { margin-top: 16px; }
.spec .mini-card { max-width: 380px; }

/* ---- menu moments: a scroller of real dishes ------------------------------------------------------------------- */
.moments { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 18px; overflow-x: auto; padding: 6px max(20px, calc((100vw - var(--max)) / 2 + 20px)) 26px; scroll-snap-type: x mandatory; scroll-padding-inline: max(20px, calc((100vw - var(--max)) / 2 + 20px)); scrollbar-width: thin; }
.moment { scroll-snap-align: start; display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease; }
.moment:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); border-color: var(--line-accent); }
.moment header { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.moment header img { width: 30px; height: 30px; }
.m-orig { font-size: 1.45rem; font-weight: 700; line-height: 1.2; color: var(--text); margin-bottom: 10px; min-height: 2.4em; display: flex; align-items: flex-end; }
.m-tr { position: relative; padding-left: 16px; color: var(--text-2); font-size: 0.98rem; flex: 1; }
.m-tr::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: var(--gradient); }
.moment footer { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.moment footer b { font-size: 1.05rem; }
.moment footer span { font-weight: 700; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---- the close ------------------------------------------------------------------------------------------------- */
.lead-card { margin: 26px auto 0; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.lead-card h3 { font-size: 1.35rem; }
.lead-card .lead-form { margin: 0; }
@media (max-width: 760px) { .lead-card { grid-template-columns: 1fr; } }

.home .faq { margin: 0; }

/* ---- the waiter page: confirm the order ------------------------------------------------------------------------ */
.lang-toggle button img.flag { width: 22px; height: 22px; margin-right: 6px; vertical-align: -6px; }
.w-confirm { margin: 22px 0 6px; text-align: center; }
.w-confirm-btn { width: 100%; min-height: 60px; border: 0; border-radius: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font: 800 1.2rem/1.2 var(--font); color: #fff; background: linear-gradient(135deg, #00b894, #0081c6); box-shadow: 0 16px 34px -14px rgba(0, 129, 198, 0.8); transition: transform 0.15s ease; }
.w-confirm-btn:active { transform: scale(0.98); }
.w-confirm-btn:disabled { opacity: 0.6; }
.w-confirmed { display: none; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: 18px; background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.4); }
.w-confirmed .tick { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #10b981; color: #fff; display: grid; place-items: center; font-size: 18px; animation: popIn 0.45s var(--spring); }
.w-confirmed b { display: block; font-size: 1.15rem; color: var(--text); }
.w-confirmed small { color: var(--text-2); }
.w-confirm.done .w-confirm-btn, .w-confirm.done .w-confirm-hint { display: none; }
.w-confirm.done .w-confirmed { display: flex; }
.w-confirm-hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

.w-confirm-btn .w-btn-text { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.25; }
.w-confirm-btn small { font-size: 0.68em; font-weight: 700; opacity: 0.9; letter-spacing: 0.2px; }
