/* ============================================================
   JET software sub-pages — shared styles (v2, crafted)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --red: #ff112f;
    --red-dark: #cc0e26;
    --red-light: #ff3d55;
    --yellow: #ffeda8;
    --yellow-dark: #f5dc7a;
    --black: #0a0a0a;
    --black-soft: #1a1a1a;
    --gray-900: #2a2a2a;
    --gray-700: #555;
    --gray-500: #888;
    --gray-300: #ddd;
    --gray-200: #eaeaea;
    --gray-100: #f5f5f5;
    --gray-50:  #fafafa;
    --white:    #ffffff;
    --container: min(1280px, 90vw);
    --section-padding: clamp(90px, 11vw, 160px);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 10px;
    --shadow-card: 0 30px 60px rgba(0,0,0,.10);
    --shadow-deep: 0 60px 120px -20px rgba(0,0,0,.30), 0 30px 60px -30px rgba(255,17,47,.18);
    --ease: cubic-bezier(.2,.8,.2,1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
}

/* ============================================================
   Announcement bar + Nav
   ============================================================ */

.announcement {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .02em;
}
.announcement strong { color: var(--yellow); }

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), background .3s var(--ease);
}
nav.scrolled {
    background: rgba(255,255,255,.96);
    border-bottom-color: var(--gray-200);
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.nav-logo img { height: 32px; width: auto; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-900);
    transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--red); }
.nav-links a.active {
    color: var(--red);
    font-weight: 700;
    position: relative;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--black);
    color: var(--white) !important;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: transform .2s var(--ease), background .2s var(--ease);
}
.nav-cta:hover { background: var(--red); transform: translateY(-1px); }
.nav-cta::after { content: '→'; }
.hamburger {
    display: none;
    width: 28px;
    height: 28px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.hamburger span {
    height: 2px;
    background: var(--black);
    width: 100%;
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Buttons
   ============================================================ */

.btn-primary, .btn-secondary, .btn-yellow, .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
    cursor: pointer;
}
.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(255,17,47,.30);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 18px 36px rgba(255,17,47,.42); }
.btn-secondary {
    background: var(--black);
    color: var(--white);
}
.btn-secondary:hover { background: var(--gray-900); transform: translateY(-2px); }
.btn-yellow {
    background: var(--yellow);
    color: var(--black);
}
.btn-yellow:hover { background: var(--yellow-dark); transform: translateY(-2px); }
.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--gray-300);
    color: var(--gray-900);
}
.btn-ghost:hover { background: var(--gray-100); border-color: var(--black); }
.btn-primary::after, .btn-secondary::after, .btn-yellow::after, .btn-ghost::after { content: '→'; transition: transform .2s var(--ease); }
.btn-primary:hover::after, .btn-secondary:hover::after, .btn-yellow:hover::after, .btn-ghost:hover::after { transform: translateX(4px); }

/* ============================================================
   Sub-page hero
   ============================================================ */

.sub-hero {
    position: relative;
    padding: clamp(80px, 9vw, 140px) 0 clamp(80px, 9vw, 140px);
    background: linear-gradient(180deg, #fff 0%, #fff8f9 100%);
    overflow: hidden;
}
.sub-hero::before {
    content: '';
    position: absolute;
    top: -200px; right: -160px;
    width: 580px; height: 580px;
    background: radial-gradient(circle, rgba(255,17,47,.10), transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
}
.sub-hero::after {
    content: '';
    position: absolute;
    bottom: -180px; left: -180px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(255,237,168,.50), transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}
.sub-hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}
.sub-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255,17,47,.10);
    color: var(--red);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 26px;
}
.sub-hero-eyebrow img { width: 14px; height: 14px; }
.sub-hero h1 {
    font-size: clamp(46px, 6.4vw, 88px);
    margin-bottom: 26px;
}
.sub-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--red), var(--red-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.sub-hero-lede {
    font-size: clamp(17px, 1.4vw, 20px);
    color: var(--gray-700);
    max-width: 540px;
    margin-bottom: 36px;
}
.sub-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero visual stage — frames the hero image with a soft mat + diamond accents */
.hero-stage {
    position: relative;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    background: linear-gradient(135deg, #2a2a2a, #0a0a0a);
}
.hero-stage img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.04);
}
.hero-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,17,47,.10) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}
.hero-stage .stage-badge {
    position: absolute;
    bottom: 18px; left: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 12px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(14px);
    border-radius: 999px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .04em;
    border: 1px solid rgba(255,255,255,.10);
}
.hero-stage .stage-badge img {
    width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto;
}
.hero-stage .stage-corner {
    position: absolute;
    top: -34px; right: -34px;
    width: 130px; height: 130px;
    background: url('jet diamond logo.png') center/contain no-repeat;
    transform: rotate(-12deg);
    opacity: .92;
    z-index: 2;
    filter: drop-shadow(0 14px 30px rgba(255,17,47,.45));
}

/* ============================================================
   Suitability band — "is JET … good for you?"
   ============================================================ */

.suit-band {
    background: var(--black);
    color: var(--white);
    padding: clamp(70px, 8vw, 100px) 0;
    position: relative;
    overflow: hidden;
}
.suit-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 30%, rgba(255,17,47,.20), transparent 38%),
        radial-gradient(circle at 88% 80%, rgba(255,237,168,.08), transparent 45%);
    pointer-events: none;
}
.suit-band::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 38px 38px;
    pointer-events: none;
    mask: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.suit-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.suit-inner h2 { font-size: clamp(34px, 3.6vw, 52px); }
.suit-inner h2 em { font-style: normal; color: var(--yellow); }
.suit-inner p {
    font-size: 17px;
    color: rgba(255,255,255,.78);
    max-width: 480px;
}

/* ============================================================
   Feature blocks — alternating two-column rows
   ============================================================ */

.feature-section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}
.feature-section.alt { background: var(--gray-50); }
.feature-section.dark {
    background: var(--black);
    color: var(--white);
}
.feature-section.dark p { color: rgba(255,255,255,.78); }
.feature-section.dark .feature-eyebrow { color: var(--yellow); }
.feature-section.dark .feature-list li { color: rgba(255,255,255,.85); }
.feature-section.dark .feature-list li::before { background: var(--yellow); }
.feature-section.dark .caption { color: rgba(255,255,255,.55); }

.feature-section .ambient {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}
.feature-section .ambient.red {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(255,17,47,.12), transparent 70%);
}
.feature-section .ambient.yellow {
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(255,237,168,.40), transparent 70%);
}

.feature-row {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(48px, 6vw, 110px);
    align-items: center;
    position: relative;
    z-index: 1;
}
.feature-row.text-wider { grid-template-columns: 1.05fr 1fr; }
.feature-row.reverse > .feature-text { order: 2; }
.feature-row.stacked {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
}
.feature-row.stacked .feature-text { max-width: 720px; margin: 0 auto; }
.feature-row.stacked .feature-text > p { margin-left: auto; margin-right: auto; }
.feature-row.stacked .feature-text .feature-eyebrow,
.feature-row.stacked .feature-text .feature-eyebrow::before { justify-content: center; }
.feature-row.stacked .feature-list { display: none; }

.feature-text { position: relative; z-index: 1; }
.feature-text .big-number {
    position: absolute;
    top: -40px;
    left: -22px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(140px, 14vw, 200px);
    line-height: 1;
    color: rgba(255,17,47,.06);
    pointer-events: none;
    z-index: -1;
    letter-spacing: -.03em;
}
.feature-section.dark .feature-text .big-number { color: rgba(255,237,168,.07); }

.feature-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.feature-eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: currentColor;
}
.feature-text h2 {
    font-size: clamp(30px, 3.2vw, 46px);
    margin-bottom: 22px;
}
.feature-text > p {
    font-size: 17px;
    color: var(--gray-700);
    margin-bottom: 26px;
    max-width: 560px;
}
.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.feature-list li {
    position: relative;
    padding-left: 32px;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--gray-900);
}
.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 16px;
    height: 16px;
    background: var(--red);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='white'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='white'/></svg>") center/contain no-repeat;
}

.caption {
    margin-top: 14px;
    font-size: 12.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gray-500);
    text-align: center;
}

/* ============================================================
   DEVICE FRAMES — POS, phone, browser, receipt
   ============================================================ */

/* Soft mat that wraps any frame with ambient glow + grid bg */
.device-mat {
    position: relative;
    padding: clamp(28px, 4vw, 56px);
    border-radius: 36px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,17,47,.10), transparent 55%),
        radial-gradient(circle at 75% 85%, rgba(255,237,168,.45), transparent 60%),
        linear-gradient(135deg, #fff 0%, #fafafa 100%);
}
.device-mat.dark {
    background:
        radial-gradient(circle at 30% 20%, rgba(255,17,47,.20), transparent 55%),
        radial-gradient(circle at 75% 85%, rgba(255,237,168,.10), transparent 55%),
        linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}
.device-mat::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,.06) 1px, transparent 1px);
    background-size: 24px 24px;
    border-radius: inherit;
    pointer-events: none;
    mask: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.device-mat.dark::before {
    background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
}

/* POS terminal frame — 16:9 horizontal screen, dark bezel, subtle perspective */
.device-pos {
    position: relative;
    background: linear-gradient(150deg, #1d1d1d 0%, #050505 100%);
    border-radius: 22px;
    padding: 14px 14px 18px;
    box-shadow:
        0 50px 100px -20px rgba(0,0,0,.45),
        0 0 0 1px rgba(255,255,255,.04) inset,
        0 1px 0 rgba(255,255,255,.05) inset;
    transform: perspective(1800px) rotateY(-3deg) rotateX(1deg);
    transition: transform .8s var(--ease);
}
.device-pos:hover { transform: perspective(1800px) rotateY(0) rotateX(0); }
.device-pos.flat { transform: none; }
.device-pos.flat:hover { transform: translateY(-4px); }
.device-pos > img {
    width: 100%;
    border-radius: 10px;
    display: block;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.device-pos::before {
    content: '';
    position: absolute;
    top: 5px; left: 50%;
    transform: translateX(-50%);
    width: 5px; height: 5px;
    background: #2a2a2a;
    border-radius: 50%;
}
.device-pos::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 50%;
    transform: translateX(-50%);
    width: 50px; height: 3px;
    background: rgba(255,255,255,.06);
    border-radius: 2px;
}

/* Phone frame — true portrait, with subtle notch + side button */
.device-phone {
    position: relative;
    background: linear-gradient(150deg, #1d1d1d 0%, #050505 100%);
    border-radius: 38px;
    padding: 9px;
    box-shadow:
        0 40px 80px -10px rgba(0,0,0,.45),
        0 0 0 1px rgba(255,255,255,.06) inset;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
}
.device-phone > img {
    width: 100%;
    border-radius: 30px;
    display: block;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    object-position: top center;
}
.device-phone::before {
    content: '';
    position: absolute;
    top: 16px; left: 50%;
    transform: translateX(-50%);
    width: 76px; height: 22px;
    background: #000;
    border-radius: 14px;
    z-index: 2;
}
.device-phone::after {
    content: '';
    position: absolute;
    top: 110px; right: -2px;
    width: 3px; height: 50px;
    background: #1d1d1d;
    border-radius: 0 2px 2px 0;
}
.device-phone.tilt-l { transform: rotate(-3deg); }
.device-phone.tilt-r { transform: rotate(3deg); }
.device-phone.lift   { transform: translateY(-22px); }

/* Browser-window frame for web screenshots */
.browser-window {
    position: relative;
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 40px 90px -15px rgba(0,0,0,.22),
        0 0 0 1px rgba(0,0,0,.06);
}
.browser-bar {
    background: linear-gradient(180deg, #f5f5f5, #ebebeb);
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.browser-bar .dot.r { background: #ff5f56; }
.browser-bar .dot.y { background: #ffbd2e; }
.browser-bar .dot.g { background: #27c93f; }
.browser-bar .url {
    flex: 1;
    background: var(--white);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 11.5px;
    color: var(--gray-500);
    margin-left: 10px;
    border: 1px solid rgba(0,0,0,.06);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.browser-window > img { width: 100%; display: block; }

/* Phone flow — three (or two) phones with step numbers + connector */
.phone-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.4vw, 36px);
    align-items: start;
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding-top: 30px;
}
.phone-flow.two { grid-template-columns: repeat(2, 1fr); max-width: 620px; }
.phone-flow .step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.phone-flow .step-num {
    position: absolute;
    top: -14px; left: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 84px;
    line-height: 1;
    color: rgba(255,17,47,.10);
    pointer-events: none;
    z-index: 0;
}
.feature-section.dark .phone-flow .step-num { color: rgba(255,237,168,.10); }
.phone-flow .step-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--gray-700);
}
.feature-section.dark .phone-flow .step-label { color: rgba(255,255,255,.7); }
.phone-flow .step-caption {
    font-size: 14.5px;
    color: var(--gray-700);
    text-align: center;
    max-width: 220px;
    line-height: 1.5;
}
.feature-section.dark .phone-flow .step-caption { color: rgba(255,255,255,.6); }
.phone-flow .step + .step::before {
    content: '→';
    position: absolute;
    left: -22px;
    top: 110px;
    font-size: 20px;
    color: var(--red);
    font-weight: 700;
    z-index: 2;
    background: var(--white);
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 14px rgba(255,17,47,.20);
}
.feature-section.alt .phone-flow .step + .step::before { background: var(--gray-50); box-shadow: 0 6px 14px rgba(255,17,47,.16); }
.feature-section.dark .phone-flow .step + .step::before { background: var(--black); color: var(--yellow); box-shadow: 0 6px 14px rgba(0,0,0,.5); }

/* Multi-shot collage */
.collage-3 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
}
.collage-3 > *:nth-child(1) {
    grid-row: 1 / span 2;
}
.collage-3 .device-pos { transform: none; }
.collage-3 .device-pos:hover { transform: translateY(-3px); }

/* Dual stack — two POS shots overlapping */
.stack-2 {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 60px;
}
.stack-2 .device-pos:nth-child(1) {
    transform: rotate(-2deg);
    z-index: 1;
}
.stack-2 .device-pos:nth-child(2) {
    transform: translate(28%, -20%) rotate(3deg);
    width: 70%;
    z-index: 2;
    margin-left: auto;
}

/* KDS + receipt combo */
.kds-receipt {
    position: relative;
}
.kds-receipt .device-pos { transform: none; }
.kds-receipt .receipt-inset {
    position: absolute;
    bottom: -34px;
    right: -28px;
    width: 38%;
    z-index: 2;
    background: #fffefa;
    padding: 8px 8px 14px;
    border-radius: 6px;
    box-shadow:
        0 30px 60px -10px rgba(0,0,0,.30),
        0 0 0 1px rgba(0,0,0,.04);
    transform: rotate(4deg);
}
.kds-receipt .receipt-inset img {
    width: 100%;
    display: block;
    border-radius: 2px;
}
.kds-receipt .receipt-inset::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 0; right: 0;
    height: 10px;
    background-image: linear-gradient(135deg, transparent 50%, #fffefa 50%),
                      linear-gradient(45deg, transparent 50%, #fffefa 50%);
    background-size: 12px 10px;
    background-position: 0 0;
}

/* Diamond accent badge — small floating icon */
.diamond-badge {
    position: absolute;
    width: 56px; height: 56px;
    background: var(--red);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 14px 32px rgba(255,17,47,.40);
    transform: rotate(-8deg);
}
.diamond-badge img {
    width: 60%;
    filter: brightness(0) invert(1);
}
.diamond-badge.tl { top: -22px; left: -22px; }
.diamond-badge.tr { top: -22px; right: -22px; }
.diamond-badge.bl { bottom: -22px; left: -22px; }
.diamond-badge.br { bottom: -22px; right: -22px; }

/* ============================================================
   Pull-quote / "Zero" callout
   ============================================================ */

.callout-band {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.callout-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,237,168,.20), transparent 35%),
        radial-gradient(circle at 10% 90%, rgba(255,255,255,.10), transparent 40%);
    pointer-events: none;
}
.callout-band::after {
    content: '$0';
    position: absolute;
    right: -2vw; bottom: -4vw;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(220px, 28vw, 460px);
    color: rgba(255,255,255,.06);
    line-height: 1;
    pointer-events: none;
}
.callout-inner {
    max-width: var(--container);
    margin: 0 auto;
    position: relative;
    text-align: center;
    z-index: 1;
}
.callout-inner h2 {
    font-size: clamp(36px, 4.5vw, 64px);
    margin-bottom: 16px;
}
.callout-inner h2 em { font-style: normal; color: var(--yellow); }
.callout-inner p {
    font-size: clamp(17px, 1.6vw, 22px);
    max-width: 720px;
    margin: 0 auto 32px;
    color: rgba(255,255,255,.85);
}
.callout-cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.callout-band .btn-primary { background: var(--white); color: var(--red); }
.callout-band .btn-primary:hover { background: var(--yellow); color: var(--black); }
.callout-band .btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,.45);
}
.callout-band .btn-secondary:hover { background: var(--white); color: var(--red); border-color: var(--white); }

/* ============================================================
   University block
   ============================================================ */

.uni-section {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
    position: relative;
    overflow: hidden;
}
.uni-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -120px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(255,17,47,.10), transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}
.uni-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 70px;
    align-items: center;
    position: relative;
}

/* ── Text side: full logo lockup acts as the heading ───────────── */
.uni-logo-lockup {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: -28px 0 -10px -22px;   /* the source PNG has internal padding; pull it tighter */
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.10));
}
.uni-text h2.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.uni-text > p {
    font-size: 17px;
    color: var(--gray-700);
    margin-bottom: 24px;
    max-width: 540px;
    line-height: 1.6;
}

/* ── Visual side: wooden-frame chalkboard scene ────────────────── */
.uni-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    /* Wooden frame */
    background: linear-gradient(180deg, #7a4c25 0%, #4a2a10 100%);
    padding: 22px 22px 38px;        /* extra bottom for the chalk tray */
    box-shadow:
        0 50px 100px -20px rgba(0,0,0,0.45),
        0 20px 40px -20px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,220,180,0.20),
        inset 0 -2px 0 rgba(0,0,0,0.40);
    overflow: hidden;
    isolation: isolate;
}
/* Subtle wood-grain striping on the frame */
.uni-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            92deg,
            transparent 0,
            transparent 18px,
            rgba(0,0,0,0.06) 18px,
            rgba(0,0,0,0.06) 19px
        );
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}
/* Wooden chalk tray running along the bottom */
.uni-visual::after {
    content: '';
    position: absolute;
    left: 10px; right: 10px;
    bottom: 8px;
    height: 16px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(180deg, #8a5630 0%, #4f2c12 100%);
    box-shadow:
        inset 0 2px 0 rgba(255,200,150,0.22),
        inset 0 -2px 0 rgba(0,0,0,0.45),
        0 -3px 8px rgba(0,0,0,0.30);
    z-index: 4;
}

/* The chalkboard surface itself */
.uni-board {
    position: absolute;
    top: 22px; left: 22px; right: 22px; bottom: 38px;
    border-radius: 8px;
    background:
        radial-gradient(ellipse at 18% 22%, rgba(255,255,255,0.05), transparent 55%),
        radial-gradient(ellipse at 80% 75%, rgba(255,255,255,0.025), transparent 60%),
        linear-gradient(135deg, #1f2d24 0%, #0e1a14 100%);
    box-shadow:
        inset 0 0 90px rgba(0,0,0,0.55),
        inset 0 2px 0 rgba(255,255,255,0.04),
        inset 0 -2px 0 rgba(0,0,0,0.6);
    padding: 30px 36px 26px;
    overflow: hidden;
    z-index: 2;
}
/* Faint chalk smudge / eraser haze */
.uni-board::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 30% at 75% 95%, rgba(255,255,255,0.06), transparent 70%),
        radial-gradient(ellipse 40% 20% at 15% 90%, rgba(255,255,255,0.04), transparent 70%);
    pointer-events: none;
}
.uni-board-title {
    display: block;
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: clamp(26px, 2.6vw, 34px);
    color: #fffaee;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    transform: rotate(-1.2deg);
    text-shadow:
        0 0 1px rgba(255,250,238,0.4),
        1px 1px 0 rgba(0,0,0,0.25);
}
.uni-board-title::after {
    content: '';
    display: block;
    width: 56%;
    height: 2px;
    margin-top: 4px;
    background: linear-gradient(90deg, rgba(255,250,238,0.55), rgba(255,250,238,0));
    border-radius: 2px;
    transform: rotate(0.6deg);
}
.uni-lessons {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'Caveat', cursive;
    font-weight: 600;
    font-size: clamp(20px, 2.05vw, 26px);
    color: rgba(255,250,238,0.92);
    max-width: 70%;        /* leave room for the mascot at right */
    text-shadow: 0 0 1px rgba(255,250,238,0.35);
}
.uni-lessons li {
    display: flex;
    gap: 12px;
    align-items: baseline;
}
.uni-lessons li:nth-child(1) { transform: rotate(-0.5deg); }
.uni-lessons li:nth-child(2) { transform: rotate(0.6deg); }
.uni-lessons li:nth-child(3) { transform: rotate(-0.4deg); }
.uni-lessons li:nth-child(4) { transform: rotate(0.5deg); }
.uni-lessons .num {
    color: var(--yellow);
    font-weight: 700;
    min-width: 38px;
    letter-spacing: 1px;
}

/* Mascot — the teacher, pointing up at the lessons */
.uni-mascot {
    position: absolute;
    right: 8px;
    bottom: 12px;          /* sits just above the chalk tray */
    width: 38%;
    max-width: 220px;
    z-index: 5;
    filter: drop-shadow(0 16px 22px rgba(0,0,0,0.55));
    animation: uni-float 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes uni-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-8px) rotate(1.5deg); }
}

/* A small piece of chalk resting on the wooden tray */
.uni-chalk {
    position: absolute;
    left: 32px;
    bottom: 11px;
    width: 36px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(180deg, #fffaee 0%, #d8d0bd 100%);
    box-shadow:
        0 1px 2px rgba(0,0,0,0.4),
        inset 0 -1px 0 rgba(0,0,0,0.15);
    z-index: 5;
    transform: rotate(-3deg);
}

/* Hide leftover ring/diamond placeholders if any HTML still uses them */
.uni-visual .ring,
.uni-visual .diamond { display: none; }

/* ============================================================
   Final CTA
   ============================================================ */

.final-cta {
    padding: var(--section-padding) 0;
    background: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.final-cta::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 900px; height: 900px;
    transform: translate(-50%,-50%);
    background: radial-gradient(circle, rgba(255,17,47,.06), transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}
.final-cta-inner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; }
.final-cta h2 {
    font-size: clamp(36px, 5vw, 72px);
    max-width: 920px;
    margin: 0 auto 22px;
}
.final-cta h2 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--red), var(--red-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.final-cta p {
    font-size: 18px;
    color: var(--gray-700);
    max-width: 580px;
    margin: 0 auto 36px;
}
.final-cta-buttons { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */

footer {
    background: var(--black);
    color: rgba(255,255,255,.72);
    padding: 80px 0 30px;
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.footer-brand img { height: 38px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,.70);
    max-width: 320px;
    line-height: 1.6;
}
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    color: rgba(255,255,255,.72);
    font-size: 14px;
    transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--red); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,.55);
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom a { color: rgba(255,255,255,.60); transition: color .2s var(--ease); }
.footer-bottom a:hover { color: var(--red); }
.footer-legal { display: flex; gap: 24px; }

/* ============================================================
   Reveal animation
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        gap: 22px;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--white);
        padding: 24px;
        border-bottom: 1px solid var(--gray-200);
    }
    .hamburger { display: flex; }
    .sub-hero-inner,
    .suit-inner,
    .feature-row,
    .feature-row.text-wider,
    .uni-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .feature-row.reverse > .feature-text { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .device-pos { transform: none; }
    .phone-flow { grid-template-columns: repeat(2, 1fr); max-width: 580px; }
    .phone-flow .step:nth-child(3) { display: none; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .phone-flow {
        grid-template-columns: 1fr;
        max-width: 280px;
        gap: 50px;
    }
    .phone-flow .step:nth-child(3) { display: flex; }
    .phone-flow .step + .step::before {
        left: 50%; top: -36px;
        transform: translateX(-50%) rotate(90deg);
    }
    .collage-3 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .collage-3 > *:nth-child(1) { grid-row: auto; }
    .stack-2 .device-pos:nth-child(1),
    .stack-2 .device-pos:nth-child(2) {
        transform: none;
        width: 100%;
        margin-left: 0;
    }
    .stack-2 { gap: 16px; padding-bottom: 0; }
    .kds-receipt .receipt-inset {
        position: static;
        width: 60%;
        margin: -20px auto 0;
    }
    .device-mat { padding: 22px; }
    .feature-text .big-number { display: none; }
}

/* ============================================================
   ILLUSTRATION STAGE — frame for hand-drawn SVG illustrations
   (used wherever Figma uses an illustration instead of a UI shot)
   ============================================================ */
.illo-stage {
    position: relative;
    padding: clamp(20px, 3vw, 36px);
    border-radius: 36px;
    background:
        radial-gradient(circle at 28% 22%, rgba(255,17,47,.10), transparent 55%),
        radial-gradient(circle at 78% 86%, rgba(255,237,168,.45), transparent 60%),
        linear-gradient(135deg, #fff 0%, #fafafa 100%);
    overflow: hidden;
    isolation: isolate;
}
.illo-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,.06) 1px, transparent 1px);
    background-size: 24px 24px;
    border-radius: inherit;
    pointer-events: none;
    mask: radial-gradient(ellipse at center, #000 35%, transparent 78%);
    z-index: 0;
}
.illo-stage > svg,
.illo-stage > img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 22px;
    z-index: 1;
    transition: transform .8s var(--ease);
}
.illo-stage:hover > svg,
.illo-stage:hover > img {
    transform: translateY(-4px);
}
.illo-stage.dark {
    background:
        radial-gradient(circle at 30% 20%, rgba(255,17,47,.20), transparent 55%),
        radial-gradient(circle at 75% 85%, rgba(255,237,168,.10), transparent 55%),
        linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}
.illo-stage.dark::before {
    background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
}
.illo-stage.bare {
    background: transparent;
    padding: 0;
}
.illo-stage.bare::before { display: none; }

/* hero-stage variant for SVGs in the hero band — keep current frame, no padding */
.hero-stage.illustration { padding: 0; background: transparent; }
.hero-stage.illustration > svg { width: 100%; height: 100%; display: block; }

/* ============================================================
   OPTION CARDS — for "Modern Ordering / Mobile service"
   Two stacked feature-cards (Table-Recommend / Meal-Order)
   ============================================================ */
.option-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    padding: clamp(22px, 3vw, 40px);
    border-radius: 36px;
    background:
        radial-gradient(circle at 25% 18%, rgba(255,17,47,.10), transparent 55%),
        radial-gradient(circle at 80% 88%, rgba(255,237,168,.45), transparent 60%),
        linear-gradient(135deg, #fff 0%, #fafafa 100%);
}
.option-card {
    position: relative;
    background: var(--white);
    border-radius: 22px;
    padding: 28px 24px 30px;
    box-shadow:
        0 24px 48px -16px rgba(0,0,0,.18),
        0 0 0 1px rgba(0,0,0,.04);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
    overflow: hidden;
}
.option-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 36px 64px -16px rgba(255,17,47,.22),
        0 0 0 1px rgba(255,17,47,.18);
}
.option-card.recommended {
    background: linear-gradient(155deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -12px rgba(255,17,47,.45);
}
.option-card.recommended:hover { transform: translateY(-18px); }
.option-card .opt-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: rgba(255,17,47,.10);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.option-card.recommended .opt-icon {
    background: rgba(255,255,255,.15);
    color: var(--white);
}
.option-card .opt-icon svg {
    width: 28px; height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}
.option-card .opt-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.20);
    color: var(--white);
    margin-bottom: 10px;
}
.option-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(22px, 2vw, 26px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 10px;
    letter-spacing: -.01em;
}
.option-card p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--gray-700);
    margin: 0;
}
.option-card.recommended p { color: rgba(255,255,255,.86); }

@media (max-width: 720px) {
    .option-cards { grid-template-columns: 1fr; }
    .option-card.recommended { transform: none; }
    .option-card.recommended:hover { transform: translateY(-6px); }
}

