/* ============================================
   REYSTI - Dark Theme (Hospitality Ordering SaaS)
   Adapted from NeanderCoder "Cave Code" design system.
   ============================================ */

/* ============================================
   FONTS — Sora, SELF-HOSTED (2026-07-21, review finding 3:
   no-CDN rule / GDPR — previously loaded from fonts.googleapis.com).
   Sora is a VARIABLE font: one woff2 per unicode subset covers
   every weight the site uses (300-800). Files in wwwroot/fonts/.
   ============================================ */
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('fonts/sora-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('fonts/sora-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2026-10-26 (redesign): display + ticket faces, SELF-HOSTED like Sora (no-CDN rule).
   Bricolage Grotesque (OFL) = headlines, instanced at opsz 72, wght 500-800 + wdth axis.
   Martian Mono (OFL) = kitchen-ticket / label text, wght 300-700 + wdth axis.
   Both subset to Latin + Latin-ext (EN/ES/FR/CA/NL, incl. Catalan l·l). */
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 500 800;
    font-stretch: 75% 100%;
    font-display: swap;
    src: url('fonts/bricolage-display.woff2') format('woff2');
}

@font-face {
    font-family: 'Martian Mono';
    font-style: normal;
    font-weight: 300 700;
    font-stretch: 75% 112.5%;
    font-display: swap;
    src: url('fonts/martian-mono.woff2') format('woff2');
}

/* ============================================
   THEME VARIABLES
   ============================================ */
:root {
    /* Primary Colors — Blue (REYSTI brand) */
    --color-primary: #84baf8;
    --color-primary-dark: #5a9ae0;
    --color-primary-light: #a8d0fa;
    --color-primary-rgb: 132, 186, 248;

    /* Secondary Colors — Purple (accent) */
    --color-secondary: #aa8cf5;
    --color-secondary-light: #c4b0fa;
    --color-secondary-rgb: 170, 140, 245;

    /* Accent Colors — Emerald Green (success, "go") */
    --color-accent: #10b981;
    --color-accent-light: #34d399;
    --color-accent-rgb: 16, 185, 129;

    /* 2026-10-26 (redesign): the LOGO's own colors (sampled from images/logo.png) —
       amber -> coral -> magenta -> violet pin, cyan pixels. Used for accents only;
       the blue primary above stays the action color shared with the apps. */
    --brand-amber: #ffc23d;
    --brand-coral: #ff6b4a;
    --brand-magenta: #e5318c;
    --brand-violet: #7a45f5;
    --brand-violet-light: #a07bff;
    --brand-pixel: #3cc2fc;
    --brand-amber-rgb: 255, 194, 61;
    --brand-magenta-rgb: 229, 49, 140;
    --brand-violet-rgb: 122, 69, 245;
    --gradient-brand: linear-gradient(100deg, var(--brand-amber) 0%, var(--brand-coral) 30%, var(--brand-magenta) 62%, var(--brand-violet-light) 100%);

    /* Thermal-paper kitchen tickets (hero order demo, CTA ticket) */
    --paper: #f6f4ee;
    --paper-shade: #e8e5dc;
    --ink: #15141d;
    --ink-soft: rgba(21, 20, 29, 0.6);
    --ink-faint: rgba(21, 20, 29, 0.25);

    /* Ticket rail + phone hardware */
    --metal-hi: #4a4a5c;
    --metal-mid: #262634;
    --metal-lo: #14141c;
    --device-frame: #1d1d27;
    --device-screen: #0e0e1a;

    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #84baf8;
    --color-error: #ef4444;
    --color-error-light: rgba(239, 68, 68, 0.15);
    /* 2026-07-21 (review finding 10): border tint for error boxes (was hardcoded rgba(239,68,68,0.3) in the pages) */
    --color-error-border: rgba(239, 68, 68, 0.3);
    --color-info: #3b82f6;

    /* Background Colors */
    --bg-primary: #0a0a14;
    --bg-secondary: #0d0d1a;
    --bg-tertiary: #111120;
    --bg-elevated: #14142a;
    --bg-overlay: rgba(0, 0, 0, 0.6);

    /* Surface Colors */
    --surface-card: rgba(255, 255, 255, 0.03);
    --surface-card-hover: rgba(255, 255, 255, 0.06);
    /* 2026-07-12 (review finding 18): --surface-hover was referenced 17x in the pages but never
       defined (rendered as transparent) — subtle elevated tint between card (0.03) and card-hover (0.06) */
    --surface-hover: rgba(255, 255, 255, 0.05);
    --surface-input: #121222;
    --surface-highlight: rgba(132, 186, 248, 0.08);

    /* Text Colors */
    --text-primary: #f0f0f5;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);
    /* was: #ffffff — white on #84baf8 is 2.1:1 (unreadable); 2026-10-26 dark ink = 9.6:1 */
    --text-on-primary: #0a0a14;
    --text-on-dark: #f0f0f5;
    --text-link: #84baf8;
    --text-link-hover: #a8d0fa;

    /* Border Colors */
    --border-default: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.04);
    --border-focus: #84baf8;
    --border-error: #ef4444;

    /* Shadow Colors */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(132, 186, 248, 0.2);
    --shadow-glow-lg: 0 0 60px rgba(132, 186, 248, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #84baf8 0%, #5a9ae0 100%);
    --gradient-accent: linear-gradient(135deg, #84baf8 0%, #5a9ae0 50%, #10b981 100%);
    --gradient-hero: linear-gradient(180deg, #0a0a14 0%, #0d0d1a 100%);
    --gradient-card: linear-gradient(135deg, rgba(132, 186, 248, 0.04) 0%, rgba(170, 140, 245, 0.04) 100%);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Typography — Sora */
    --font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Bricolage Grotesque', 'Sora', -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'Martian Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 500;
}

/* 2026-07-21 (review finding 10): inline SVG icons now use stroke/fill="currentColor" and
   take their color from these token-driven utility classes (was hardcoded #84baf8 / #10b981) */
.svg-primary {
    color: var(--color-primary);
}

.svg-success {
    color: var(--color-success);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* ============================================
   LAYOUT
   ============================================ */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.main-content {
    flex: 1;
    overflow-x: hidden;
}

/* Sections wait for Reysti.pageSlideIn (needs the Blazor circuit). 2026-10-26: safety net —
   if the circuit is slow or JS never runs (crawlers, blocked websocket), the sections
   appear on their own after 1.4 s instead of leaving a blank page forever.
   pageSlideIn skips its animation once this has fired (see site.js). */
.main-content > section {
    visibility: hidden;
    animation: sectionFallbackReveal 0s linear 1.4s forwards;
}

@keyframes sectionFallbackReveal {
    to { visibility: visible; }
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    overflow-wrap: break-word;
    word-break: break-word;
}

.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
}

/* 2026-10-26: big headings in the display face, slightly condensed and tight */
h1, h2 {
    font-family: var(--font-display);
    font-weight: var(--font-weight-extrabold);
    font-stretch: 90%;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    overflow-wrap: break-word;
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-link-hover);
}

/* was: var(--gradient-primary) (blue) — 2026-10-26: the logo's pin gradient */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }

/* Mono label: eyebrows, ticket text, receipt lines */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.eyebrow::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--gradient-brand);
    box-shadow: 0 0 12px rgba(var(--brand-magenta-rgb), 0.8);
    flex-shrink: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 2026-10-26: visible keyboard focus everywhere (there was none) */
:focus-visible {
    outline: 2px solid var(--brand-pixel);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    /* 2026-10-29: long labels (FR "Commencez maintenant — c'est facile") were cut off in narrow cards:
       wrap onto a second centred line instead of overflowing the button.
       was: line-height: 1; ... white-space: nowrap; */
    line-height: 1.25;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: normal;
    text-align: center;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

/* 2026-10-29 review: the wrap above must not reach the one-line bars — navbar actions (language pill,
   Sign in / Account / Start trial) would grow to two lines and push the bar height when the row gets tight. */
.navbar-actions .btn,
.language-selector .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-lg);
    color: var(--text-on-primary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1.5px solid var(--border-default);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: var(--surface-highlight);
    color: var(--color-primary);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-xl);
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-md);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.card:hover {
    box-shadow: var(--shadow-lg), 0 0 40px rgba(132, 186, 248, 0.05);
    border-color: rgba(132, 186, 248, 0.15);
}

.card-feature {
    padding: var(--space-2xl);
    text-align: center;
}

.card-feature .icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(132, 186, 248, 0.15) 0%, rgba(132, 186, 248, 0.05) 100%);
    border: 1px solid rgba(132, 186, 248, 0.2);
    border-radius: var(--radius-xl);
    font-size: 1.75rem;
}

.card-feature h3 {
    margin-bottom: var(--space-md);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.navbar-scrolled {
    box-shadow: var(--shadow-md), 0 0 40px rgba(132, 186, 248, 0.05);
    border-bottom-color: rgba(132, 186, 248, 0.1);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* was: 10rem (with a 9rem padded square logo) — 2026-10-26: compact bar + cropped lockup */
    height: 4.75rem;
}

@media (max-width: 768px) {
    .navbar-inner {
        height: 4.25rem;
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--text-primary);
    text-decoration: none;
    margin-right: var(--space-xl);
    flex-shrink: 0;
}

.navbar-brand:hover {
    color: var(--text-primary);
}

.navbar-logo {
    height: 2.4rem;
    width: auto;
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 2.1rem;
    }
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 1.5vw, 2rem);
    margin-right: var(--space-lg);
}

.navbar-link {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    padding: var(--space-sm) 0;
    position: relative;
    white-space: nowrap; /* 2026-07-11: never wrap link text letter-by-letter when the bar gets tight */
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--color-primary);
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width var(--transition-normal);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(var(--brand-magenta-rgb), 0.4);
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

/* Free trial: the one link that is an offer, drawn in the logo gradient */
.navbar-link-trial {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: var(--font-weight-bold);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.navbar-toggle span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all var(--transition-fast);
}

.navbar-mobile-menu {
    display: none;
}

/* 2026-07-11: was 768px — with the Kiosk link added, the full desktop bar overflows
   below ~1100px and crushed the links into vertical letter columns; collapse to the
   burger menu earlier instead. */
@media (max-width: 1100px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-links {
        display: none !important;
    }

    .navbar-actions {
        display: none !important;
    }

    .navbar-mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-primary);
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--border-default);
        z-index: var(--z-dropdown);
        text-align: center;
    }

    .navbar-mobile-menu.open {
        display: flex;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    /* was: calc(var(--space-4xl) * 2) top — the navbar is 4.75rem now, not 10rem */
    padding: 9rem 0 var(--space-4xl);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

/* 2026-10-26: brand-colored light behind every hero (magenta/violet from the logo) */
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    width: 120%;
    max-width: 1500px;
    height: 120%;
    transform: translateX(-50%);
    background:
        radial-gradient(40% 45% at 30% 45%, rgba(var(--brand-magenta-rgb), 0.12) 0%, transparent 70%),
        radial-gradient(40% 45% at 70% 40%, rgba(var(--brand-violet-rgb), 0.16) 0%, transparent 70%),
        radial-gradient(30% 30% at 50% 20%, rgba(var(--brand-amber-rgb), 0.06) 0%, transparent 70%);
    /* fade out before the hero's bottom edge (no visible band into the next section) */
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 95%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 95%);
    pointer-events: none;
}

/* faint dot grid that fades out downwards */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-badge::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--gradient-brand);
    box-shadow: 0 0 10px rgba(var(--brand-magenta-rgb), 0.8);
}

.hero-badge:has(svg)::before {
    display: none;
}

.hero-title {
    font-size: clamp(2.6rem, 5.4vw, 4.5rem);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--space-lg);
    line-height: 1;
    letter-spacing: -0.04em;
}

.hero-title:focus, .hero-title *:focus, .text-gradient:focus {
    outline: none;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: var(--line-height-relaxed);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero {
        padding: 7rem 0 var(--space-xl);
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }
}

/* ============================================
   STATS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-sm);
    filter: drop-shadow(0 0 12px rgba(132, 186, 248, 0.3));
}

.stat-label {
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   FEATURE SECTIONS
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--space-xl);
}

.features-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 968px) {
    .features-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid,
    .features-grid-3 {
        grid-template-columns: 1fr;
    }
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.feature-showcase.reverse {
    direction: rtl;
}

.feature-showcase.reverse > * {
    direction: ltr;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    color: var(--text-secondary);
    overflow-wrap: break-word;
}

.feature-list li::before {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .feature-showcase {
        grid-template-columns: 1fr;
    }

    .feature-showcase.reverse {
        direction: ltr;
    }
}

/* Feature icon cards (for showcase visuals) */
.feat-icon-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 240px;
    margin: 0 auto;
    border-radius: 2rem;
    /* 2026-10-26: gradient hairline ring (logo colors) + inner light, was a flat grey box */
    border: 1px solid transparent;
    background:
        radial-gradient(70% 70% at 30% 20%, rgba(var(--brand-violet-rgb), 0.22), transparent 70%) padding-box,
        linear-gradient(var(--bg-tertiary), var(--bg-tertiary)) padding-box,
        var(--gradient-brand) border-box;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 80px rgba(var(--brand-magenta-rgb), 0.08);
    color: var(--color-primary-light);
    transition: all var(--transition-normal);
    position: relative;
}

.feat-icon-card svg {
    filter: drop-shadow(0 0 18px rgba(132, 186, 248, 0.45));
}

/* ============================================
   PRICING
   ============================================ */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.pricing-card {
    position: relative;
    padding: var(--space-2xl);
    overflow: hidden;
    min-width: 0;
}

.pricing-card.featured {
    background: linear-gradient(135deg, #84baf8, #5a9ae0);
    color: var(--text-on-primary);
    transform: scale(1.05);
    overflow: visible;
    border-color: transparent;
}

.pricing-card.featured p,
.pricing-card.featured .pricing-feature {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-card.featured .pricing-price {
    color: var(--text-on-primary);
}

.pricing-card.featured .pricing-feature {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.pricing-card.featured li[style*="color-primary"] {
    color: #ffffff !important;
}

.pricing-card.featured .btn {
    background: var(--bg-primary);
    color: var(--color-primary);
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.pricing-header p {
    text-align: center;
}

.pricing-price {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--text-primary);
}

.pricing-price span {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    opacity: 0.7;
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    overflow-wrap: break-word;
}

.pricing-feature:last-child {
    border-bottom: none;
}

.pricing-badge {
    display: flex;
    justify-content: center;
    margin: calc(-1 * var(--space-xl)) auto var(--space-md);
    width: fit-content;
    padding: var(--space-xs) var(--space-md);
    background: #10b981;
    color: white;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-free {
    color: var(--color-accent);
    font-weight: var(--font-weight-extrabold);
    font-size: var(--font-size-2xl);
}

/* ============================================
   PRICING — Compact Cards
   ============================================ */
.pricing-compact-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.pricing-compact-card {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-lg) var(--space-xl);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    min-width: 0;
    overflow: hidden;
}

.pricing-compact-card:hover {
    border-color: rgba(132, 186, 248, 0.2);
    box-shadow: 0 4px 20px rgba(132, 186, 248, 0.05);
}

.pricing-compact-featured {
    background: linear-gradient(135deg, rgba(132, 186, 248, 0.1) 0%, rgba(90, 154, 224, 0.05) 100%);
    border-color: rgba(132, 186, 248, 0.3);
}

.pricing-compact-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: #10b981;
    color: white;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.pricing-compact-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-xl);
}

.pricing-compact-info {
    flex: 1;
    min-width: 0;
}

.pricing-compact-name {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.pricing-compact-summary {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: var(--line-height-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pricing-compact-prices {
    text-align: right;
    flex-shrink: 0;
}

.pricing-compact-monthly {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-primary);
    /* 2026-11-15: was white-space: nowrap (a long price, e.g. a commission sentence, was cut off at the card edge on phones).
       A flex row: the figure and its small text side by side, wrapping cleanly; right-aligned (left on phones, below). */
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    column-gap: 0.3em;
    line-height: 1.2;
}

.pricing-compact-period {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    color: var(--text-muted);
    /* 2026-11-14: Blazor dropped the leading space of the span ("27,90 €par chambre"): the gap now comes from the flex
       row's column-gap. was: margin-left: 0.3em; */
    line-height: 1.3;
}

.pricing-compact-setup {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: var(--space-xs);
    white-space: nowrap;
}

.pricing-compact-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    padding: var(--space-xs) 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-primary);
    transition: opacity var(--transition-fast);
}

.pricing-compact-toggle:hover {
    opacity: 0.8;
}

.pricing-compact-details {
    list-style: none;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-default);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.pricing-compact-details li {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    padding-left: var(--space-md);
    position: relative;
    overflow-wrap: break-word;
}

.pricing-compact-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

@media (max-width: 640px) {
    .pricing-compact-top {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .pricing-compact-prices {
        text-align: left;
    }

    .pricing-compact-monthly {
        justify-content: flex-start;   /* 2026-11-15: phones: the price row starts on the left like the text */
    }

    .pricing-compact-summary {
        -webkit-line-clamp: 3;
    }
}

/* ============================================
   CTA SECTION
   ============================================ */
/* 2026-10-26: the CTA is a torn-off kitchen ticket (thermal paper, ink, zigzag tear at the
   bottom, punched holes at the top) — echoes the order demo of the home hero.
   Was: a blue gradient box. Same markup on every page (.cta-section > .cta-content). */
.cta-section {
    --tear: 14px;
    background:
        linear-gradient(90deg, var(--brand-amber), var(--brand-coral), var(--brand-magenta), var(--brand-violet)) top / 100% 6px no-repeat,
        repeating-linear-gradient(0deg, transparent 0 27px, rgba(21, 20, 29, 0.035) 27px 28px),
        var(--paper);
    color: var(--ink);
    text-align: center;
    padding: calc(var(--space-4xl) - 0.5rem) var(--space-2xl) calc(var(--space-4xl) + var(--tear));
    border-radius: 6px 6px 0 0;
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    -webkit-mask:
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tear)) 100%;
    mask:
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tear)) 100%;
    transform: rotate(-1deg);
}

/* the mask would clip a shadow on the ticket itself -> the shadow lives on its parent */
:has(> .cta-section) {
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 70px rgba(var(--brand-violet-rgb), 0.18));
}

/* dashed perforation line under the header */
.cta-section::before {
    content: '';
    position: absolute;
    left: var(--space-xl);
    right: var(--space-xl);
    top: 2.6rem;
    border-top: 2px dashed var(--ink-faint);
    pointer-events: none;
}

/* barcode-ish stamp along the bottom edge */
.cta-section::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(var(--tear) + 1.25rem);
    width: 180px;
    height: 26px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px, var(--ink) 9px 12px, transparent 12px 14px);
    opacity: 0.8;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-2xl);
}

.cta-section h2 {
    color: var(--ink);
    margin-bottom: var(--space-md);
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    max-width: 16ch;
}

.cta-section p {
    color: var(--ink-soft);
    max-width: 560px;
    margin: 0 auto var(--space-xl);
}

.cta-section .btn {
    background: var(--ink);
    color: var(--paper);
    border: none;
    box-shadow: 0 10px 24px rgba(21, 20, 29, 0.25);
}

.cta-section .btn:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(var(--brand-magenta-rgb), 0.35);
}

@media (max-width: 640px) {
    .cta-section {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
        transform: none;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #060610;
    border-top: 1px solid var(--border-default);
    padding: var(--space-4xl) 0 var(--space-xl);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 80%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-amber), var(--brand-magenta), var(--brand-violet-light), transparent);
    opacity: 0.6;
}

.footer-logo {
    height: 2.6rem;
    width: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-4xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand p {
    margin-top: var(--space-md);
    max-width: 300px;
}

.footer-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-link {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-default);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* ============================================
   CONTACT FORM
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md);
    background: var(--surface-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(132, 186, 248, 0.15);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* 2026-10-29 form validation rule: faulty control = red edge + message right under it */
.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"],
.form-select[aria-invalid="true"],
.field-group-invalid {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px var(--color-error-light);
}

.field-group-invalid {
    border: 1px solid var(--color-error);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
}

.field-error {
    display: block;
    margin-top: var(--space-xs);
    color: var(--color-error);
    font-size: var(--font-size-xs);
}

/* 2026-10-29 kiosk wizard: choice cards (business type, design presets, For-here / To-go preview) */
.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-md);
}

.choice-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--surface-hover);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
}

.choice-card.is-selected {
    background: var(--surface-highlight);
    border-color: var(--color-primary);
    color: var(--text-primary);
}

.choice-card strong {
    color: var(--text-primary);
}

.swatch-row {
    display: flex;
    gap: 4px;
}

.swatch-row span {
    flex: 1;
    height: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
}

@media (max-width: 640px) {
    .wiz-grid-2 {
        grid-template-columns: 1fr !important;
    }
}

.contact-form-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info h3 {
    margin-bottom: var(--space-lg);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .contact-form-section {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PRODUCT SERVICE CARDS (Presentation)
   ============================================ */
.product-card {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    min-width: 0;
    overflow: hidden;
}

.product-card:hover {
    border-color: rgba(132, 186, 248, 0.25);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(132, 186, 248, 0.05);
    transform: translateY(-4px);
}

.product-card .product-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(132, 186, 248, 0.15) 0%, rgba(132, 186, 248, 0.05) 100%);
    border: 1px solid rgba(132, 186, 248, 0.2);
    border-radius: var(--radius-lg);
    color: var(--color-primary);
}

.product-card h3 {
    font-size: var(--font-size-xl);
}

.product-card h3 .brand {
    color: var(--color-primary);
}

.product-card p {
    font-size: var(--font-size-sm);
    flex: 1;
    overflow-wrap: break-word;
}

/* was: .product-card .product-badge — 2026-10-26: also used bare on Restaurants/Hotels
   ("FREE monthly fee"), where it rendered as unstyled text */
.product-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--color-accent);
    width: fit-content;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: var(--space-xl);
}

/* ============================================
   CATEGORY DIVIDER
   ============================================ */
.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    margin-top: var(--space-3xl);
}

.category-header:first-child {
    margin-top: 0;
}

.category-header h2 {
    white-space: nowrap;
    font-size: var(--font-size-2xl);
}

.category-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-default), transparent);
}

/* ============================================
   HOME — ORDER THEATRE (2026-10-26 redesign)
   A guest's phone builds an order, presses "Send to kitchen", and the printed
   ticket flies onto a full-bleed kitchen rail. Driven by Reysti.initOrderDemo
   (site.js); every container the script fills is EMPTY in the Razor markup so
   Blazor never diffs script-owned DOM.
   ============================================ */
.stage {
    padding: 7rem 0 var(--space-2xl);
}

.stage-grid {
    position: relative;
    /* above .stage-rail (3): the phone covers the rail, tickets emerge from behind it */
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: var(--space-3xl);
    align-items: start;
}

.stage-copy {
    padding-top: var(--space-lg);
}

.stage-copy .hero-title {
    font-size: clamp(2.8rem, 6.2vw, 5.6rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
    margin: var(--space-lg) 0 var(--space-lg);
    max-width: 12ch;
}

.stage-copy .hero-subtitle {
    margin: 0 0 var(--space-xl);
    max-width: 34rem;
    font-size: var(--font-size-lg);
}

.stage-copy .hero-actions {
    justify-content: flex-start;
}

/* ---- the phone (REYSTI virtual kiosk on the guest's own phone) ---- */
.stage-phone {
    position: relative;
    z-index: 4;
    /* starts lower than the copy and hangs down in front of the rail row below */
    margin-top: 8rem;
    margin-bottom: -420px;
}

.phone {
    position: relative;
    width: 272px;
    height: 530px;
    padding: 9px;
    border-radius: 46px;
    background: linear-gradient(155deg, var(--metal-hi) 0%, var(--device-frame) 22%, var(--metal-lo) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.09),
        0 50px 90px rgba(0, 0, 0, 0.65),
        0 0 140px rgba(var(--brand-violet-rgb), 0.3),
        0 0 60px rgba(var(--brand-magenta-rgb), 0.12);
    transform: rotate(3deg);
}

.phone-screen {
    position: relative;
    height: 100%;
    border-radius: 37px;
    overflow: hidden;
    background:
        radial-gradient(120% 50% at 50% 0%, rgba(var(--brand-violet-rgb), 0.22), transparent 70%),
        var(--device-screen);
    display: flex;
    flex-direction: column;
    padding: 14px 14px 14px;
}

.phone-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0 8px 12px;
}

.phone-status::after {
    content: '';
    width: 22px;
    height: 10px;
    border-radius: 3px;
    border: 1.5px solid var(--text-secondary);
    background: linear-gradient(90deg, var(--text-primary) 70%, transparent 70%) content-box;
    padding: 1px;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 84px;
    height: 22px;
    transform: translateX(-50%);
    border-radius: 12px;
    background: var(--metal-lo);
}

.phone-venue {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 4px 12px;
}

.phone-venue img {
    width: 26px;
    height: auto;
}

.phone-venue-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-table {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--text-primary);
    border: 1px solid transparent;
    background: linear-gradient(var(--device-screen), var(--device-screen)) padding-box, var(--gradient-brand) border-box;
    white-space: nowrap;
}

.phone-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.phone-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 9px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.phone-item.has-qty {
    background: rgba(132, 186, 248, 0.08);
    border-color: rgba(132, 186, 248, 0.25);
}

.phone-swatch {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* abstract "dish" swatches in logo colors — no stock food photos */
.phone-swatch::after {
    content: '';
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.12);
}

.phone-item:nth-child(1) .phone-swatch { background: linear-gradient(135deg, var(--brand-amber), var(--brand-coral)); }
.phone-item:nth-child(2) .phone-swatch { background: linear-gradient(135deg, var(--brand-coral), var(--brand-magenta)); }
.phone-item:nth-child(3) .phone-swatch { background: linear-gradient(135deg, var(--brand-magenta), var(--brand-violet)); }
.phone-item:nth-child(4) .phone-swatch { background: linear-gradient(135deg, var(--brand-pixel), var(--brand-violet)); }

.phone-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone-item-name {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}

.phone-item-price {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--text-secondary);
}

.phone-qty {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary);
    min-width: 0;
}

.phone-qty:empty {
    display: none;
}

.phone-add {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--color-primary);
    color: var(--text-on-primary);
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    transition: transform 120ms ease;
}

.phone-add.is-pressed,
.phone-send.is-pressed {
    transform: scale(0.86);
}

.phone-basket {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
}

.phone-basket-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.35;
    transition: opacity var(--transition-normal);
}

.phone-basket.has-items .phone-basket-row {
    opacity: 1;
}

.phone-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--gradient-brand);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
}

.phone-count.is-bumped {
    animation: countBump 320ms ease;
}

@keyframes countBump {
    40% { transform: scale(1.35); }
}

.phone-basket-label {
    flex: 1;
}

.phone-total {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
}

.phone-send {
    padding: 14px;
    border-radius: 16px;
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(132, 186, 248, 0.25);
    transition: transform 120ms ease, opacity var(--transition-normal);
    opacity: 0.4;
}

.phone-basket.has-items .phone-send {
    opacity: 1;
}

/* "sent" confirmation over the screen */
.phone-toast {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
    background: rgba(14, 14, 26, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.02em;
    line-height: 1.15;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
}

.phone-toast.is-shown {
    opacity: 1;
}

.phone-toast-check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gradient-brand);
    color: var(--ink);
    box-shadow: 0 0 40px rgba(var(--brand-magenta-rgb), 0.55);
    transform: scale(0.4);
    transition: transform 420ms cubic-bezier(.34, 1.56, .64, 1);
}

.phone-toast.is-shown .phone-toast-check {
    transform: scale(1);
}

/* simulated fingertip */
.phone-touch {
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    transition: transform 420ms cubic-bezier(.45, .05, .25, 1), opacity 250ms ease;
}

.phone-touch.is-visible {
    opacity: 1;
}

.phone-touch.is-tapping::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    animation: touchRipple 450ms ease-out forwards;
}

@keyframes touchRipple {
    from { transform: scale(0.6); opacity: 1; }
    to { transform: scale(2.1); opacity: 0; }
}

.stage-caption {
    margin-top: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-align: center;
    transform: rotate(3deg);
}

/* ---- the kitchen rail (full-bleed) ---- */
.stage-rail {
    position: relative;
    z-index: 3;
    margin-top: var(--space-lg);
    min-height: 268px;
}

.rail-bar {
    position: absolute;
    left: 0;
    right: 0;
    top: 22px;
    height: 14px;
    z-index: 2;
    background: linear-gradient(180deg, var(--metal-hi) 0%, var(--metal-mid) 55%, var(--metal-lo) 100%);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.rail-label {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    height: 18px;
}

.rail-label::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-error);
    box-shadow: 0 0 10px var(--color-error);
    animation: liveDot 1.6s ease-in-out infinite;
}

@keyframes liveDot {
    50% { opacity: 0.25; }
}

.rail-tickets {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    margin-top: 8px;
    /* first ticket lands right next to the phone */
    padding-right: calc(290px + var(--space-3xl) - 8px);
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
}

.ticket {
    --tear: 6px;
    --r: 0deg;
    flex: 0 0 168px;
    width: 168px;
    padding: 20px 13px calc(14px + var(--tear));
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.6;
    transform-origin: 50% 0;
    /* individual property: the script animates `transform` without losing the tilt */
    rotate: var(--r);
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tear)) 100%;
    mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--tear)) 100%;
}

.ticket:nth-child(3n+2) { --r: 1.2deg; }
.ticket:nth-child(3n) { --r: -1deg; }

.ticket.is-new {
    background:
        linear-gradient(90deg, var(--brand-amber), var(--brand-coral), var(--brand-magenta), var(--brand-violet)) top / 100% 5px no-repeat,
        var(--paper);
}

.ticket-head {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--ink-soft);
}

.ticket-where {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 85%;
    font-size: 21px;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 6px 0 9px;
    text-transform: uppercase;
}

.ticket-lines {
    list-style: none;
    border-top: 1px dashed var(--ink-faint);
    border-bottom: 1px dashed var(--ink-faint);
    padding: 7px 0;
}

.ticket-lines li {
    display: flex;
    gap: 6px;
}

.ticket-lines b {
    font-weight: 700;
    flex-shrink: 0;
}

.ticket-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    font-size: 8px;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
}

.ticket-stamp {
    border: 1.5px solid var(--brand-magenta);
    color: var(--brand-magenta);
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
    transform: rotate(-7deg);
}

/* ---- receipt line (the 4 stats as receipt totals) ---- */
.receipt {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-sm) var(--space-2xl);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px dashed var(--border-default);
}

.receipt-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    min-width: 0;
}

.receipt-row dt {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    order: 1;
    min-width: 0;
}

.receipt-row::after {
    content: '';
    order: 2;
    flex: 1;
    min-width: 1rem;
    border-bottom: 2px dotted var(--border-default);
    transform: translateY(-4px);
}

.receipt-row dd {
    order: 3;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* ---- responsive stage ---- */
@media (max-width: 1100px) {
    .stage-grid {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: var(--space-2xl);
    }

    .stage-phone {
        transform: scale(0.9);
        transform-origin: top right;
    }

    .rail-tickets {
        padding-right: calc(250px + var(--space-2xl) - 8px);
    }

    .receipt {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .stage {
        padding-top: 6.5rem;
    }

    .stage-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .stage-copy .hero-title {
        max-width: none;
    }

    .stage-phone {
        /* scale(.82) leaves ~95px of empty layout box under the phone: reclaim it, no more */
        margin: 0 auto -90px;
        transform: scale(0.82);
        transform-origin: top center;
    }

    .rail-tickets {
        padding-right: var(--space-md);
    }
}

@media (max-width: 520px) {
    .receipt {
        grid-template-columns: 1fr;
    }

    .stage-copy .hero-actions .btn {
        width: 100%;
    }
}

/* ============================================
   HOME — LA CARTA (product menu card)
   ============================================ */
.carta {
    position: relative;
    padding: var(--space-3xl) var(--space-3xl) var(--space-2xl);
    border-radius: 6px;
    background:
        radial-gradient(60% 40% at 50% 0%, rgba(var(--brand-violet-rgb), 0.08), transparent 70%),
        var(--bg-secondary);
    /* double rule, like a printed menu card */
    box-shadow:
        0 0 0 1px var(--border-default),
        inset 0 0 0 10px var(--bg-secondary),
        inset 0 0 0 11px var(--border-default);
}

.carta-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-2xl);
}

.carta-head h2 {
    margin: var(--space-md) 0;
}

.carta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-3xl);
}

.carta-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    border-bottom: 1px dashed var(--border-default);
    color: inherit;
    text-decoration: none;
}

.carta-item:hover {
    color: inherit;
}

.carta-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-default);
    color: var(--color-primary);
    transition: all var(--transition-normal);
}

.carta-item:hover .carta-icon {
    border-color: transparent;
    background: var(--gradient-brand);
    color: var(--ink);
    box-shadow: 0 0 24px rgba(var(--brand-magenta-rgb), 0.4);
}

.carta-body {
    flex: 1;
    min-width: 0;
}

.carta-line {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}

.carta-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    font-stretch: 88%;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.carta-name .brand {
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 0.15em;
}

.carta-dots {
    flex: 1;
    min-width: 1.5rem;
    border-bottom: 2px dotted var(--border-default);
    transform: translateY(-4px);
}

.carta-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    white-space: nowrap;
}

.carta-arrow {
    color: var(--text-muted);
    transition: transform var(--transition-normal), color var(--transition-normal);
}

.carta-item:hover .carta-arrow {
    color: var(--brand-magenta);
    transform: translateX(4px);
}

.carta-desc {
    display: block;
    margin-top: 0.4rem;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: var(--line-height-normal);
}

@media (max-width: 860px) {
    .carta {
        padding: var(--space-2xl) var(--space-lg) var(--space-lg);
    }

    .carta-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HOME — WHY (sticky heading + hairline grid)
   ============================================ */
.why-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-3xl);
    align-items: start;
}

.why-head {
    position: sticky;
    top: 7rem;
}

.why-head h2 {
    margin: var(--space-md) 0;
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
}

.why-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border-default);
    border-left: 1px solid var(--border-default);
}

.why-item {
    padding: var(--space-xl);
    border-right: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
    transition: background var(--transition-normal);
}

.why-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.why-item svg {
    display: block;
    margin-bottom: var(--space-lg);
}

.why-item h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-sm);
}

.why-item p {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

@media (max-width: 900px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .why-head {
        position: static;
    }
}

@media (max-width: 560px) {
    .why-list {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fireFlicker {
    0%, 100% { opacity: 1; filter: brightness(1); }
    25% { opacity: 0.9; filter: brightness(1.1); }
    50% { opacity: 1; filter: brightness(0.95); }
    75% { opacity: 0.95; filter: brightness(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fire { animation: fireFlicker 3s ease-in-out infinite; }

/* 2026-10-26: respect the OS "reduce motion" setting (site.js also skips its slides
   and freezes the order demo in its final state) */
@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;
    }

    .main-content > section {
        animation: none;
        visibility: visible;
    }
}

/* ============================================
   UTILITY
   ============================================ */
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* ============================================
   BLAZOR DEFAULTS
   ============================================ */
h1:focus { outline: none; }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* ============================================
   ACCOUNT / BILLING PANELS (2026-10-29, US launch wave)
   Cloned from ODO.Site site.css (panel-page, plan picker, checkout, account panel) and
   rebuilt on the REYSTI tokens / fonts. Pages: /billing, /account; components UcPlanPicker, UcCheckout.
   ============================================ */
.panel-page { max-width: 760px; margin: 0 auto; }
.panel-page.has-checkout { max-width: 820px; }
.panel-card {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.panel-title { font-family: var(--font-display); font-size: var(--font-size-3xl); font-weight: var(--font-weight-extrabold); margin-bottom: var(--space-xs); color: var(--text-primary); }
.panel-sub { color: var(--text-secondary); margin-bottom: var(--space-lg); }
.panel-section { margin: var(--space-xl) 0 var(--space-sm); font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); color: var(--text-primary); }
.panel-loading { display: flex; justify-content: center; padding: var(--space-2xl) 0; }

.form-msg { border-radius: var(--radius-lg); padding: var(--space-md); font-size: var(--font-size-sm); margin: var(--space-xs) 0 var(--space-md); background: var(--surface-hover); border: 1px solid var(--border-default); color: var(--text-secondary); }
.form-msg.err { background: var(--color-error-light); color: var(--color-error); border-color: var(--color-error-border); }
.form-msg.ok { background: var(--surface-highlight); color: var(--color-success); border-color: var(--color-success); }
.form-msg.warn { background: rgba(var(--brand-amber-rgb), 0.12); color: var(--brand-amber); border-color: var(--brand-amber); font-weight: var(--font-weight-semibold); }
.form-alt { text-align: center; color: var(--text-secondary); font-size: var(--font-size-sm); margin-top: var(--space-lg); }
.form-alt a { color: var(--text-link); font-weight: var(--font-weight-semibold); }

.btn-block { width: 100%; }
.btn-block + .btn-block { margin-top: var(--space-sm); }
.btn.is-current { cursor: default; opacity: .7; border-style: dashed; pointer-events: none; }

.spinner { width: 20px; height: 20px; border: 2px solid var(--border-default); border-top-color: var(--color-primary); border-radius: 50%; display: inline-block; animation: reysti-spin .7s linear infinite; }
@keyframes reysti-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* plan / add-on cards */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-md); margin-top: var(--space-md); align-items: stretch; }
.price-card {
    position: relative;
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.price-card.featured { border-color: var(--color-primary); box-shadow: var(--shadow-glow); }
.price-badge { align-self: flex-start; font-family: var(--font-mono); font-size: var(--font-size-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--color-primary); background: var(--surface-highlight); border-radius: var(--radius-full); padding: 4px 12px; margin-bottom: var(--space-xs); }
.price-name { font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); color: var(--text-primary); overflow-wrap: break-word; }
.price-amount { font-family: var(--font-display); font-size: var(--font-size-4xl); font-weight: var(--font-weight-extrabold); line-height: 1.1; color: var(--text-primary); }
.price-per { color: var(--text-secondary); font-size: var(--font-size-sm); }
.price-desc { color: var(--text-secondary); font-size: var(--font-size-sm); margin: var(--space-sm) 0; }
.price-list { list-style: none; margin: 0 0 var(--space-md); padding: 0; display: flex; flex-direction: column; gap: var(--space-xs); }
.price-list li { display: flex; gap: var(--space-sm); align-items: flex-start; color: var(--text-primary); font-size: var(--font-size-sm); }
.price-list li::before { content: "\2713"; color: var(--color-success); font-weight: var(--font-weight-extrabold); }
.price-calc { color: var(--color-primary); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); margin-bottom: var(--space-sm); }
.price-card .btn { margin-top: auto; }
.pricing-foot { text-align: center; margin-top: var(--space-md); color: var(--text-muted); font-size: var(--font-size-sm); }

.plan-toggle { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); margin: var(--space-lg) auto 0; max-width: 100%; }
.plan-toggle.acct-choice { margin-top: var(--space-xl); }

.trial-banner { display: flex; flex-direction: column; gap: 2px; padding: var(--space-md); margin-bottom: var(--space-md); border-radius: var(--radius-lg); background: var(--surface-highlight); border: 1px solid var(--color-primary); color: var(--text-secondary); font-size: var(--font-size-sm); }
.trial-banner strong { color: var(--color-primary); font-size: var(--font-size-base); }

/* checkout */
.pay-summary { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-md); padding-bottom: var(--space-md); border-bottom: 1px solid var(--border-default); color: var(--text-secondary); }
.pay-total { font-family: var(--font-display); font-size: var(--font-size-2xl); font-weight: var(--font-weight-extrabold); color: var(--text-primary); }
.pay-per { font-size: var(--font-size-sm); font-weight: var(--font-weight-normal); opacity: .6; }
/* the Redsys page (card fields, then Apple Pay / Google Pay) needs room: a generous fixed height, no second scrollbar.
   White canvas: the bank page renders inside, it is not site theming. */
.pay-frame { width: 100%; height: 1150px; border: 0; border-radius: var(--radius-lg); background: #ffffff; }
@media (max-width: 640px) { .pay-frame { height: 1320px; } }

/* account panel */
.acct-page { max-width: 1240px; }
.acct-cols > .acct-sec { break-inside: avoid; }
.acct-grid { display: flex; flex-direction: column; gap: 6px; }
.acct-row { display: flex; justify-content: space-between; gap: var(--space-md); padding: 9px 12px; border: 1px solid var(--border-default); border-radius: var(--radius-md); font-size: var(--font-size-sm); color: var(--text-primary); }
.acct-row span { color: var(--text-secondary); }
.acct-row strong { text-align: right; overflow-wrap: anywhere; }
.acct-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.acct-sec > .btn { margin-top: var(--space-sm); }
.acct-links { display: flex; flex-direction: column; gap: var(--space-sm); }
.acct-links .btn-block + .btn-block { margin-top: 0; }
.mod-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: 10px 12px; border: 1px solid var(--border-default); border-radius: var(--radius-md); font-size: var(--font-size-sm); }
.mod-row .mod-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mod-row .mod-name { font-weight: var(--font-weight-semibold); color: var(--text-primary); }
.mod-row .mod-status { font-size: var(--font-size-xs); color: var(--text-secondary); }
.mod-row.ending { border-color: var(--brand-amber); }
.mod-row.ending .mod-status { color: var(--brand-amber); }
.mod-row .btn { flex: 0 0 auto; }
.acct-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-sm); color: var(--text-secondary); font-size: var(--font-size-sm); }
.acct-wrap { overflow-x: auto; }
.pay-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-sm); color: var(--text-primary); }
.pay-table th, .pay-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border-default); }
.pay-table th { font-weight: var(--font-weight-semibold); color: var(--text-secondary); }
.pay-table td.amt, .pay-table th.amt { text-align: right; white-space: nowrap; }
.pay-table .st-ok { color: var(--color-success); }
.pay-table .st-failed { color: var(--color-error); }
.pay-table .st-refunded { color: var(--brand-amber); }

@media (min-width: 900px) {
    .acct-cols { column-count: 2; column-gap: var(--space-xl); }
    .acct-cols > .acct-sec { margin-bottom: var(--space-lg); }
    .acct-cols > .acct-sec > .panel-section { margin-top: 0; }
    .acct-full + .acct-cols { margin-top: var(--space-lg); }
    .acct-cols2 .acct-links { max-width: 420px; }
}
@media (min-width: 1500px) {
    .acct-cols { column-count: 3; }
    .acct-cols2 { column-count: 2; }
}
@media (max-width: 640px) {
    .panel-card { padding: var(--space-lg); }
}

/* ============================================
   KIOSK MINI-SITE (2026-10-29, kiosk.reysti.com) — UcKioskNav / KioskPricing / landing
   ============================================ */
.kiosk-brand-tag { margin-left: var(--space-sm); font-family: var(--font-mono); font-size: var(--font-size-xs); letter-spacing: .12em; color: var(--color-primary); border: 1px solid var(--color-primary); border-radius: var(--radius-full); padding: 2px 8px; }
.tablet-banner { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-md); margin-top: var(--space-lg); padding: var(--space-sm) var(--space-md); border: 1px dashed var(--color-primary); border-radius: var(--radius-lg); background: var(--surface-highlight); color: var(--text-secondary); font-size: var(--font-size-sm); max-width: 100%; }
.tablet-banner strong { color: var(--text-primary); font-weight: var(--font-weight-semibold); }
.faq-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.faq-item { border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface-card); padding: var(--space-md) var(--space-lg); }
.faq-item summary { cursor: pointer; font-weight: var(--font-weight-semibold); color: var(--text-primary); }
.faq-item[open] summary { color: var(--color-primary); }
.faq-item p { margin: var(--space-sm) 0 0; color: var(--text-secondary); font-size: var(--font-size-sm); }
.kiosk-footer .footer-bottom { border-top: none; }

/* ==================== LEGAL DOCUMENTS (2026-10-29, legal stream) ====================
   Terms / Billing Terms / DPA / Acceptable Use / Privacy. Tokens only (theming rule). */
.legal-wrap { max-width: 900px; }
.legal-card { padding: var(--space-2xl); background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-xl); color: var(--text-secondary); line-height: 1.7; overflow-wrap: anywhere; }
.legal-card h2 { color: var(--color-primary); font-size: var(--font-size-xl); margin-top: var(--space-2xl); margin-bottom: var(--space-sm); scroll-margin-top: 96px; }
.legal-card h3 { color: var(--text-primary); font-size: var(--font-size-lg); margin-top: var(--space-lg); margin-bottom: var(--space-xs); scroll-margin-top: 96px; }
.legal-card p, .legal-card li { margin-bottom: var(--space-sm); }
.legal-card ul, .legal-card ol { padding-left: var(--space-lg); }
.legal-card strong { color: var(--text-primary); }
.legal-card a { color: var(--text-link); }
.legal-card .legal-caps { text-transform: uppercase; font-size: var(--font-size-sm); }
.legal-notice { border: 1px solid var(--border-light); border-radius: var(--radius-lg); background: var(--surface-highlight); padding: var(--space-md) var(--space-lg); font-size: var(--font-size-sm); margin-bottom: var(--space-md); }
.legal-notice-line { margin: 0 0 var(--space-xs); display: flex; gap: var(--space-sm); align-items: baseline; color: var(--text-muted); }
.legal-notice-line:last-child { margin-bottom: 0; }
.legal-notice-line.is-current { color: var(--text-primary); font-weight: var(--font-weight-semibold); }
.legal-notice-lang { flex: 0 0 2.2em; font-weight: var(--font-weight-bold); color: var(--color-primary); }
.legal-updated { font-size: var(--font-size-sm); color: var(--text-muted); margin-bottom: var(--space-lg); }
.legal-toc { border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: var(--space-md) var(--space-lg); margin-bottom: var(--space-xl); background: var(--bg-secondary); }
.legal-toc h2 { margin-top: 0; font-size: var(--font-size-base); color: var(--text-primary); }
.legal-toc ol { columns: 2; column-gap: var(--space-xl); margin: 0; font-size: var(--font-size-sm); }
.legal-toc li { margin-bottom: var(--space-xs); break-inside: avoid; }
.legal-box { border: 2px solid var(--color-primary); border-radius: var(--radius-lg); padding: var(--space-md) var(--space-lg); margin: var(--space-lg) 0; background: var(--surface-highlight); color: var(--text-primary); }
.legal-box h2 { margin-top: 0; }
.legal-table-wrap { overflow-x: auto; margin: var(--space-md) 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-sm); }
.legal-table th, .legal-table td { border: 1px solid var(--border-default); padding: var(--space-xs) var(--space-sm); text-align: left; vertical-align: top; }
.legal-table th { color: var(--text-primary); background: var(--bg-secondary); }
.legal-footer-note { margin-top: var(--space-2xl); font-size: var(--font-size-sm); color: var(--text-muted); text-align: center; }
@media (max-width: 768px) {
    .legal-card { padding: var(--space-lg) var(--space-md); }
    .legal-toc ol { columns: 1; }
    .legal-notice { padding: var(--space-sm) var(--space-md); }
}

/* 2026-10-29 (legal stream): terms acceptance checkbox + recurring-charge consent line */
.legal-accept-row { display: flex; align-items: flex-start; gap: var(--space-sm); cursor: pointer; color: var(--text-secondary); font-size: var(--font-size-sm); line-height: 1.5; }
.legal-accept-row input { margin-top: 0.25rem; flex: 0 0 auto; }
.legal-accept-row a, .legal-accept-note a, .legal-consent a { color: var(--text-link); }
.legal-accept-note { margin: var(--space-xs) 0 0; padding-left: 1.6rem; font-size: var(--font-size-xs); color: var(--text-muted); }
.legal-consent { margin: var(--space-sm) 0; font-size: var(--font-size-xs); color: var(--text-muted); }

/* ==================== KIOSK DEMO CLIP (UcKioskVideo, 2026-11-14) ====================
   The frame owns its 16:9 size from the first paint (nothing moves when the poster or the video arrives).
   Portrait screens: the vertical 9:16 cut, at most ~78 % of the screen height (same query as UcKioskVideo / site.js). */
.kv-wrap { margin: var(--space-xl) auto var(--space-2xl); max-width: 900px; }
.kv-frame {
    position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; width: 100%;
    border-radius: var(--radius-xl); border: 1px solid var(--border-default);
    background: var(--bg-primary); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(var(--color-primary-rgb), 0.08);
}
.kv-poster, .kv-poster img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.kv-poster img { object-fit: cover; }
.kv-video { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; background: transparent; opacity: 0; transition: opacity 0.25s; }
.kv-video.is-on { opacity: 1; }
@media (max-aspect-ratio: 3/4) {
    .kv-frame { aspect-ratio: 9 / 16; width: min(100%, calc(78vh * 9 / 16)); width: min(100%, calc(78svh * 9 / 16)); margin-inline: auto; }
}
/* 2026-11-14 (Marc): on a phone held upright the clip takes the FULL width of the screen, edge to edge
   (out of the page's side padding, no rounded corners / side borders). Portrait tablets keep the capped size above. */
@media (max-aspect-ratio: 3/4) and (max-width: 600px) {
    .kv-wrap { max-width: none; }
    .kv-wrap .kv-frame { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0; border-radius: 0; border-left: 0; border-right: 0; }
}
.kv-play {
    position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
    border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; padding: 0 0 0 4px;
    background: var(--gradient-primary); color: var(--text-on-primary); box-shadow: 0 0 0 8px rgba(var(--color-primary-rgb), 0.18);
    transition: transform 0.25s;
}
.kv-play[hidden] { display: none; }
.kv-play:hover { transform: scale(1.06); }
.kv-play:focus-visible, .kv-full:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }
.kv-full {
    position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
    display: grid; place-items: center; padding: 0; color: var(--text-primary);
    background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.3); transition: background 0.2s, border-color 0.2s;
}
.kv-full:hover { background: rgba(0, 0, 0, 0.75); border-color: var(--color-primary); }
@media (max-width: 560px) {
    .kv-wrap { margin: var(--space-lg) auto var(--space-xl); }
    .kv-frame { border-radius: var(--radius-lg); }
    .kv-play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
}
@media (prefers-reduced-motion: reduce) { .kv-video { transition: none; } }

/* ==================== LOGO B LOCKUP (2026-11-14, Marc: logo B everywhere) ====================
   The "r" tile (images/icon.svg, the app icon) + the name in the display font. Height comes from .navbar-logo /
   .footer-logo (the same boxes the old raster lockup used); logo A is backed up in BRAND\logo_A_pin_backup. */
.brand-lockup { display: inline-flex; align-items: center; gap: 0.55em; white-space: nowrap; color: var(--text-primary); }
.brand-lockup .brand-icon { height: 100%; width: auto; aspect-ratio: 1; display: block; border-radius: 22%; box-shadow: 0 4px 14px rgba(var(--brand-magenta-rgb), 0.28); }
.brand-lockup .brand-word { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.01em; line-height: 1; }
.navbar-logo.brand-lockup .brand-word { font-size: 1.5rem; }
.footer-logo.brand-lockup .brand-word { font-size: 1.6rem; }
@media (max-width: 768px) { .navbar-logo.brand-lockup .brand-word { font-size: 1.3rem; } }

/* ================= 2026-11-14 pricing: add-ons / optional modules drawn as children of their product ================= */
.pricing-addons {
    position: relative;
    margin: calc(-1 * var(--space-xs)) 0 var(--space-xs) var(--space-xl);
    padding-left: var(--space-lg);
    border-left: 2px dashed rgba(var(--color-primary-rgb), 0.35);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-width: 0;
}
.pricing-addons-title {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    padding-top: var(--space-sm);
}
.pricing-compact-addon {
    position: relative;
    padding: var(--space-md) var(--space-lg);
    background: var(--surface-card);
    border-style: dashed;
}
.pricing-compact-addon::before {
    content: "";
    position: absolute;
    left: calc(-1 * var(--space-lg) - 2px);
    top: 50%;
    width: var(--space-lg);
    border-top: 2px dashed rgba(var(--color-primary-rgb), 0.35);
}
.pricing-compact-addon .pricing-compact-name { font-size: 1.05rem; }
.pricing-addon-of {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}
.pricing-addon-of svg { color: var(--color-primary); flex: none; }
@media (max-width: 640px) {
    .pricing-addons { margin-left: var(--space-sm); padding-left: var(--space-sm); }
    .pricing-compact-addon::before { left: calc(-1 * var(--space-sm) - 2px); width: var(--space-sm); }
}
.pricing-compact-addon { overflow: visible; }   /* 2026-11-14 review: the connector line was clipped */

/* review 2026-11-15: e-mail verification (banner on Account / Billing / wizards, the /verify-email step) */
.verify-banner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; padding: var(--space-sm) var(--space-md); margin: var(--space-xs) 0 var(--space-md); border-radius: var(--radius-lg); background: rgba(var(--brand-amber-rgb), 0.12); border: 1px solid var(--brand-amber); color: var(--brand-amber); font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); }
.verify-banner span { flex: 1 1 240px; }
.verify-card { padding: var(--space-2xl); background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-xl); }
.verify-code { font-family: var(--font-mono); font-size: var(--font-size-2xl); letter-spacing: 0.35em; text-align: center; }
.verify-hint { margin-top: var(--space-xs); color: var(--text-muted); font-size: var(--font-size-sm); }
.verify-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--text-link); font-weight: var(--font-weight-semibold); text-decoration: underline; }
.verify-link:disabled { opacity: .6; cursor: default; }
