/* ===================================================================
   Storsier Landing Page
   Design system + layout
=================================================================== */

/* ---------- Tokens ---------- */
:root {
    --primary: #E86922;
    --primary-dark: #C15315;
    --primary-darker: #98410A;
    --primary-light: #EE9563;

    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --muted-light: #94a3b8;

    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-mist: #FFF4ED;
    --border: #e2e8f0;

    --success: #16a34a;
    --amber: #f59e0b;
    --orange: #ea580c;
    --purple: #7c3aed;
    --green: #16a34a;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, .12);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    --container: 1200px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 820px;
}

.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-dark {
    background: linear-gradient(160deg, #2A1C14 0%, #1B110C 60%, #110B08 100%);
    color: #fff;
}

/* ---------- Icons ---------- */
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.icon-check {
    color: var(--success);
    width: 18px;
    height: 18px;
}

.icon-success {
    color: var(--success);
    width: 22px;
    height: 22px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    padding: 12px 22px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn-sm {
    padding: 9px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 30px;
    font-size: 16px;
    border-radius: 12px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(232, 105, 34, .30);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(232, 105, 34, .38);
}

.btn-secondary {
    background: #fff;
    color: var(--ink);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--bg-soft);
    border-color: #cbd5e1;
}

.btn-ghost {
    color: var(--ink-soft);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--primary);
    background: var(--bg-mist);
}

.btn-ghost-soft {
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
    background: transparent;
}

.btn-ghost-soft:hover {
    background: rgba(255, 255, 255, .12);
}

.btn-outline {
    color: var(--ink-soft);
    border-color: var(--border);
    background: #fff;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-mist);
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===================================================================
   Navigation
=================================================================== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.site-nav.scrolled {
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color .15s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 24px 24px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.mobile-menu a {
    padding: 12px 8px;
    font-weight: 600;
    color: var(--ink-soft);
    border-radius: 8px;
}

.mobile-menu a:hover {
    background: var(--bg-soft);
    color: var(--primary);
}

.mobile-menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.mobile-menu.open {
    display: flex;
}

/* ===================================================================
   Hero
=================================================================== */
.hero {
    padding: 160px 0 72px;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(238, 149, 99, .18), transparent 60%),
        radial-gradient(700px 420px at -10% 20%, rgba(232, 105, 34, .10), transparent 55%),
        var(--bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-mist);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(232, 105, 34, .18);
}

.hero h1 {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.08;
    margin: 22px 0 20px;
}

.hero h1 .accent {
    color: var(--primary);
    font-weight: 900;
}

.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 540px;
    line-height: 1.65;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
}

.hero-trust li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--ink-soft);
    font-weight: 600;
}

.hero-trust.center {
    justify-content: center;
}

/* Vertical touchscreen kiosk */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 28px 0 44px;
}

.hero-visual::before {
    content: "";
    position: absolute;
    top: 46%;
    left: 50%;
    width: 540px;
    height: 540px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(238, 149, 99, .20), rgba(232, 105, 34, .06) 45%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.kiosk-device {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Device bezel */
.kiosk-bezel {
    position: relative;
    width: 348px;
    padding: 16px;
    background: linear-gradient(180deg, #2B2320 0%, #16100D 70%);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 44px;
    box-shadow:
        0 50px 90px rgba(15, 23, 42, .38),
        0 18px 40px rgba(232, 105, 34, .12),
        inset 0 1px 0 rgba(255, 255, 255, .10),
        inset 0 -14px 30px rgba(0, 0, 0, .35);
}

/* Screen */
.ks-display {
    position: relative;
    height: 586px;
    background: #f8fafc;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        inset 0 0 46px rgba(15, 23, 42, .07),
        0 0 0 1px rgba(15, 23, 42, .06);
}

.ks-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 16px 0;
}

.ks-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ks-brand-logo {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.ks-brand b {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ink);
}

.ks-mode {
    display: flex;
    gap: 3px;
    background: #eef2f7;
    border-radius: 10px;
    padding: 3px;
}

.ks-mode button {
    border: none;
    background: transparent;
    font-size: 10px;
    font-weight: 700;
    font-family: inherit;
    color: var(--muted);
    padding: 6px 9px;
    border-radius: 8px;
    line-height: 1;
}

.ks-mode .ks-mode-active {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 1px 4px rgba(15, 23, 42, .14);
}

.ks-greeting {
    margin-top: 10px;
    padding: 0 16px;
}

.ks-greeting h4 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ink);
}

.ks-greeting p {
    font-size: 11px;
    color: var(--muted);
}

/* Menu layout - category rail (left) + product grid (right) */
.ks-menu {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: stretch;
    margin-top: 10px;
}

.ks-cats {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 90px;
    gap: 6px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px 0;
    scrollbar-width: none;
}

.ks-cats::-webkit-scrollbar {
    display: none;
}

.ks-cat {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    flex: 0 0 auto;
    text-align: left;
    font-family: inherit;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--ink-soft);
    background: #f8fafc;
    border: 0;
    border-radius: 0 999px 999px 0;
    padding: 13px 8px 13px 10px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.ks-cat-media {
    font-size: 13px;
    line-height: 1;
    font-style: normal;
    flex-shrink: 0;
}

.ks-cat-name {
    min-width: 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ks-cat-active,
.ks-cat.ks-cat-active {
    background: var(--primary);
    color: #fff;
}

/* Product grid - 2 per row */
.ks-items {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-content: start;
    column-gap: 9px;
    row-gap: 11px;
    padding: 2px 11px;
    overflow-y: auto;
    scrollbar-width: none;
}

.ks-items::-webkit-scrollbar {
    display: none;
}

.ks-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    padding: 0;
    text-align: center;
    font-family: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    animation: ksItemIn .28s ease none;
}

.ks-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 30px;
    line-height: 1;
    transition: transform .15s ease;
}

.ks-card:hover .ks-card-media {
    transform: scale(1.02);
}

.ks-card:active .ks-card-media {
    transform: scale(.97);
}

.ks-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.ks-card-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    min-height: 2.6em;
    overflow-wrap: anywhere;
}

.ks-card-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.ks-item-price {
    font-size: 9.5px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

/* Cart bar */
.ks-checkoutbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--primary);
    padding: 9px 16px 14px;
}

.ks-summary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ks-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ks-summary small {
    display: block;
    font-size: 9px;
    color: rgba(255, 255, 255, .8);
    font-weight: 600;
    line-height: 1.1;
}

.ks-summary b {
    font-size: 13.5px;
    font-weight: 800;
    color: #fff;
}

.ks-checkoutbar > button {
    border: none;
    background: #fff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    font-family: inherit;
    padding: 10px 18px;
    border-radius: 11px;
    transition: opacity .15s ease;
}

.ks-checkoutbar > button:hover {
    opacity: .9;
}

.ks-checkoutbar > button:disabled {
    background: rgba(255, 255, 255, .6);
    color: rgba(232, 105, 34, .6);
    cursor: not-allowed;
}

.ks-item-qty {
    position: absolute;
    top: 4px;
    right: 4px;
    display: none;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: var(--primary);
    border-radius: 6px;
    padding: 2px 4px;
    box-shadow: 0 3px 8px rgba(232, 105, 34, .35);
    z-index: 2;
}

.ks-card.in-cart .ks-item-qty {
    display: inline-block;
}

/* Order placed overlay */
.ks-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 22px;
    text-align: center;
    background: rgba(248, 250, 252, .94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 8;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
}

.ks-overlay.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.ks-overlay-icon {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--success, #16a34a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    animation: ksPop .45s ease;
}

.ks-confetti {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    opacity: 0;
    animation: ksBurst .75s ease .15s forwards;
}

.ks-confetti:nth-child(1) { background: #E86922; --tx: -30px; --ty: -26px; }
.ks-confetti:nth-child(2) { background: #f59e0b; --tx: 26px; --ty: -22px; }
.ks-confetti:nth-child(3) { background: #16a34a; --tx: 34px; --ty: 8px; }
.ks-confetti:nth-child(4) { background: #ef4444; --tx: -28px; --ty: 20px; }
.ks-confetti:nth-child(5) { background: #8b5cf6; --tx: 14px; --ty: 28px; }
.ks-confetti:nth-child(6) { background: #F0781F; --tx: -10px; --ty: -34px; }

.ks-overlay-icon svg {
    width: 26px;
    height: 26px;
}

.ks-overlay h5 {
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
}

.ks-overlay p {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 6px;
}

.ks-overlay button {
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    font-family: inherit;
    padding: 10px 18px;
    border-radius: 10px;
    margin-top: 8px;
    transition: background .15s ease;
}

.ks-overlay button:hover {
    background: var(--primary-dark);
}

/* Add-to-cart toast */
.ks-toast {
    position: absolute;
    right: 14px;
    bottom: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(232, 105, 34, .4);
    z-index: 9;
    pointer-events: none;
    animation: ksRise .9s ease forwards;
}

.badge-pop {
    animation: ksPop .35s ease;
}

.total-pop {
    animation: ksPop .3s ease;
}

@keyframes ksItemIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes ksPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes ksRise {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(.9);
    }

    20% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-28px) scale(1);
    }
}

@keyframes ksBurst {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px))) scale(.5) rotate(180deg);
    }
}

/* Stand */
.kiosk-neck {
    width: 100px;
    height: 22px;
    background: linear-gradient(180deg, #16100D, #2B2320);
}

.kiosk-base {
    width: 210px;
    height: 16px;
    background: linear-gradient(180deg, #3D332E, #2B2320);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 26px 44px rgba(15, 23, 42, .30);
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: var(--shadow-md);
    animation: float 5s ease-in-out infinite;
    z-index: 5;
    pointer-events: none;
}

.floating-card b {
    display: block;
    font-size: 13px;
}

.floating-card span {
    font-size: 11.5px;
    color: var(--muted);
}

.fc-1 {
    top: -26px;
    left: -4px;
}

.fc-2 {
    top: -26px;
    right: -14px;
    animation-delay: 1.5s;
}

.fc-3 {
    bottom: 18px;
    left: -6px;
    animation-delay: .6s;
}

.fc-4 {
    bottom: 6px;
    right: -14px;
    animation-delay: 2.2s;
}

.fc-2 strong {
    font-size: 18px;
    color: var(--primary-dark);
}

.fc-status {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--bg-mist);
    border: 1px solid rgba(232, 105, 34, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fc-status::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    animation: fcPulseBlue 2s ease-out .4s infinite;
}

.fc-pulse {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid rgba(245, 158, 11, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fc-pulse::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f59e0b;
    animation: fcPulse 2s ease-out .6s infinite;
}

.floating-card .fc-money {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f0fdf4;
    border: 1px solid rgba(22, 163, 74, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: #16a34a;
    flex-shrink: 0;
}

.fc-money::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    animation: fcPulseGreen 2s ease-out .9s infinite;
}

.fc-check {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f0fdf4;
    border: 1px solid rgba(22, 163, 74, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fc-check::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    animation: fcPulseGreen 2s ease-out infinite;
}

.fc-check svg {
    width: 16px;
    height: 16px;
    color: #16a34a;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes fcPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, .5);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

@keyframes fcPulseBlue {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 105, 34, .5);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(232, 105, 34, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(232, 105, 34, 0);
    }
}

@keyframes fcPulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, .55);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(22, 163, 74, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

/* Trust bar */
.trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 56px;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.trust-item {
    text-align: center;
    padding: 4px 8px;
    border-right: 1px solid var(--border);
}

.trust-item:last-child {
    border-right: none;
}

.trust-item b {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -.02em;
}

.trust-item span {
    font-size: 13px;
    color: var(--muted);
}

/* ===================================================================
   Section heads
=================================================================== */
.section-head {
    max-width: 680px;
    margin: 0 auto 52px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary);
    margin-bottom: 14px;
}

.section-head h2 {
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.section-head p {
    margin-top: 16px;
    font-size: 17px;
    color: var(--muted);
}

.section-dark .section-head h2 {
    color: #fff;
}

.section-dark .section-head p {
    color: #FBD3B4;
}

.section-dark .eyebrow {
    color: #F6B489;
}

/* ===================================================================
   Modules
=================================================================== */
.module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.module-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #F8CBA8;
}

.module-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.module-icon svg {
    width: 24px;
    height: 24px;
}

.module-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.module-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.module-points {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.module-points li {
    font-size: 13px;
    color: var(--ink-soft);
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.module-points li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    margin-top: 6px;
    flex-shrink: 0;
}

/* icon tints */
.icon-blue {
    background: #FCE0CB;
    color: var(--primary);
}

.icon-green {
    background: #dcfce7;
    color: var(--success);
}

.icon-orange {
    background: #ffedd5;
    color: var(--orange);
}

.icon-purple {
    background: #f3e8ff;
    color: var(--purple);
}

.icon-red {
    background: #fee2e2;
    color: #dc2626;
}

.icon-indigo {
    background: #e0e7ff;
    color: #4f46e5;
}

/* ===================================================================
   Features
=================================================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    background: #fff;
    padding: 28px 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 21px;
    height: 21px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.65;
}

/* ===================================================================
   How it works
=================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 56px;
}

.step {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    position: relative;
}

.step-num {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 8px 18px rgba(232, 105, 34, .28);
}

.step h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* Setup callout */
.setup-callout {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-mist);
    border: 1px solid rgba(232, 105, 34, .2);
    border-radius: var(--radius-lg);
    padding: 30px 32px;
}

.setup-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.setup-icon svg {
    width: 26px;
    height: 26px;
}

.setup-copy {
    flex: 1;
}

.setup-copy h3 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 4px;
}

.setup-copy p {
    font-size: 14.5px;
    color: var(--ink-soft);
}

/* ===================================================================
   Order flow
=================================================================== */
.flow-grid {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.flow-card {
    flex: 1;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius);
    padding: 26px 20px;
    position: relative;
    transition: background .2s ease, transform .2s ease;
}

.flow-card:hover {
    background: rgba(255, 255, 255, .10);
    transform: translateY(-3px);
}

.flow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    margin-bottom: 16px;
}

.flow-1 .flow-dot {
    background: #EE9563;
}

.flow-2 .flow-dot {
    background: #fbbf24;
}

.flow-3 .flow-dot {
    background: #fb923c;
}

.flow-4 .flow-dot {
    background: #34d399;
}

.flow-5 .flow-dot {
    background: #94a3b8;
}

.flow-card h4 {
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 6px;
}

.flow-card p {
    font-size: 13px;
    color: #FBD3B4;
    line-height: 1.55;
}

.flow-arrow {
    width: 22px;
    flex-shrink: 0;
    align-self: center;
    position: relative;
    height: 2px;
    background: linear-gradient(90deg, rgba(246, 180, 137, .8), rgba(238, 149, 99, .4));
}

.flow-arrow::after {
    content: "";
    position: absolute;
    right: -1px;
    top: -4px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #F6B489;
    border-right: 2px solid #F6B489;
    transform: rotate(45deg);
}

/* ===================================================================
   Pricing
=================================================================== */
.plan-group {
    margin-bottom: 52px;
}

.plan-group:last-child {
    margin-bottom: 0;
}

.plan-group-title {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 24px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1040px;
    margin: 0 auto;
}

.plan-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.plan-card h4 {
    font-size: 18px;
    font-weight: 800;
}

.plan-price {
    margin: 12px 0 18px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.plan-value {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.plan-period {
    font-size: 13px;
    color: var(--muted);
}

.plan-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.plan-list li {
    font-size: 14px;
    color: var(--ink-soft);
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.plan-list li::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%2316a34a"><path fill-rule="evenodd" d="M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z" clip-rule="evenodd"/></svg>') center / contain no-repeat;
    margin-top: 3px;
    flex-shrink: 0;
}

.plan-card .btn {
    margin-top: auto;
}

.plan-featured {
    border: 2px solid var(--primary);
    transform: scale(1.02);
    box-shadow: 0 18px 40px rgba(232, 105, 34, .16);
}

.plan-featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Add-ons */
.addon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1040px;
    margin: 0 auto;
}

.addon-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 22px;
}

.addon-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.addon-card h4 {
    font-size: 16px;
    font-weight: 700;
}

.addon-card p {
    font-size: 13px;
    color: var(--muted);
}

.addon-price {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

/* "/mo" sits on the price line */
.addon-price small {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    margin-left: 2px;
}

.addon-free {
    color: var(--success);
}

.addon-free small {
    display: block;
    margin: 2px 0 0;
    color: var(--muted);
}

.pricing-note {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    margin-top: 28px;
}

/* ===================================================================
   FAQ
=================================================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 22px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item[open] {
    border-color: rgba(232, 105, 34, .4);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 24px;
    font-weight: 500;
    color: var(--primary);
    line-height: 1;
    flex-shrink: 0;
    transition: transform .25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--border);
}

.faq-item p {
    padding: 16px 0 20px;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.65;
}

/* ===================================================================
   CTA
=================================================================== */
.cta {
    padding: 96px 0;
    background: var(--bg-alt, #fff);
}

.cta-card {
    position: relative;
    background: linear-gradient(150deg, #B5460F 0%, #2A1C14 55%, #1B110C 100%);
    border-radius: 28px;
    padding: 72px 32px;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.cta-card::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(238, 149, 99, .35), transparent 65%);
    top: -180px;
    right: -120px;
}

.cta-card::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 105, 34, .5), transparent 65%);
    bottom: -200px;
    left: -120px;
}

.cta-card>* {
    position: relative;
    z-index: 1;
}

.cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .14);
    color: #FCE0CB;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.cta-card h2 {
    font-size: clamp(32px, 4.4vw, 46px);
    font-weight: 900;
    letter-spacing: -.025em;
    margin-bottom: 14px;
}

.cta-card p {
    font-size: 17px;
    color: #FBD3B4;
    max-width: 560px;
    margin: 0 auto 32px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 4px;
}

.cta-actions .btn-primary {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .3);
}

.cta-actions .btn-primary:hover {
    background: #FFF4ED;
}

.cta-card .hero-trust {
    justify-content: center;
    margin-top: 30px;
}

.cta-card .hero-trust li {
    color: #FCE0CB;
}

/* ===================================================================
   Footer
=================================================================== */
.footer {
    background: #1A120E;
    color: #94a3b8;
    padding: 64px 0 28px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(148, 163, 184, .15);
}

.footer-brand .brand-name {
    color: #fff;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    max-width: 320px;
    line-height: 1.65;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-col h5 {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: #94a3b8;
    padding: 5px 0;
    transition: color .15s ease;
}

.footer-col a:hover {
    color: #F6B489;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 24px;
    font-size: 13px;
}

/* ===================================================================
   Responsive
=================================================================== */
@media (max-width: 1080px) {
    .module-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 720px;
    }

    /* 3 add-ons don't fit 3-up here, and 2-up leaves one orphan: stack them */
    .addon-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 920px) {
    .section {
        padding: 72px 0;
    }

    .hero {
        padding: 132px 0 56px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .lead {
        max-width: 100%;
    }

    .hero-visual {
        max-width: 620px;
    }

    .flow-grid {
        flex-direction: column;
    }

    .flow-arrow {
        width: 2px;
        height: 22px;
        margin: 0 auto;
        background: linear-gradient(180deg, rgba(246, 180, 137, .8), rgba(238, 149, 99, .4));
    }

    .flow-arrow::after {
        right: auto;
        top: auto;
        bottom: -1px;
        left: -4px;
        transform: rotate(135deg);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .trust-bar {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 24px;
    }

    .trust-item:nth-child(2) {
        border-right: none;
    }

    .trust-item {
        border-bottom: 1px solid var(--border);
        padding-bottom: 20px;
    }

    .trust-item:nth-child(3),
    .trust-item:nth-child(4) {
        border-bottom: none;
        padding-bottom: 0;
    }

    .hero h1 {
        font-size: 34px;
    }

    /* Scale vertical kiosk on small screens */
    .hero-visual {
        padding: 16px 0 40px;
    }

    .kiosk-bezel {
        width: min(310px, 88vw);
        padding: 13px;
        border-radius: 36px;
    }

    .ks-display {
        height: min(540px, 82vw);
        border-radius: 26px;
    }

    .ks-topbar {
        padding: 16px 14px 0;
    }

    .ks-greeting {
        padding: 0 14px;
    }

    .ks-checkoutbar {
        padding: 9px 14px 14px;
    }

    .ks-cats {
        width: 82px;
    }

    .ks-card-media {
        font-size: 28px;
    }

    .ks-brand b {
        font-size: 12.5px;
    }

    .fc-1 {
        top: -14px;
        left: 6px;
    }

    .fc-2 {
        top: auto;
        bottom: -16px;
        left: -6px;
        right: auto;
    }

    .fc-3,
    .fc-4 {
        display: none;
    }

    .kiosk-base {
        width: 180px;
    }

    .setup-callout {
        flex-direction: column;
        align-items: flex-start;
    }

    .setup-callout .btn {
        width: 100%;
    }

    .module-grid,
    .feature-grid,
    .steps-grid,
    .addon-grid {
        grid-template-columns: 1fr;
    }

    .plan-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .plan-featured {
        transform: none;
    }

    .plan-featured:hover {
        transform: translateY(-4px);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-card {
        padding: 56px 22px;
    }
}