        :root {
            --font-sans: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
            --accent: #c2410c;
            --accent-hover: #9a3412;
            --danger: #dc2626;
        }

        :root[data-theme="dark"] {
            --bg: #0f1115;
            --surface: #161a20;
            --panel: #1b2027;
            --text: #e8eaed;
            --text-soft: #b4bbc4;
            --muted: #8b94a0;
            --line: #2a313b;
            --field: #0f1115;
            --field-line: #3a424e;
            --warn: #f0b429;
        }

        :root[data-theme="light"] {
            --bg: #f4f5f7;
            --surface: #ffffff;
            --panel: #eceef2;
            --text: #1a1d23;
            --text-soft: #424a56;
            --muted: #636c78;
            --line: #dde1e7;
            --field: #ffffff;
            --field-line: #b8bfc9;
            --warn: #9a5b00;
        }

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

        html {
            -webkit-text-size-adjust: 100%;
        }

        body {
            height: 100vh;
            height: 100dvh;
            overflow: hidden;
            background: var(--bg);
            color: var(--text);
            font-family: var(--font-sans);
            font-size: 15px;
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip: rect(0 0 0 0);
            white-space: nowrap;
        }

        :focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        /* ---------- Alternador de tema ---------- */
        .theme-toggle {
            position: fixed;
            top: 16px;
            right: 16px;
            z-index: 10;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            height: 36px;
            padding: 0 12px;
            border: 1px solid var(--line);
            border-radius: 6px;
            background: var(--surface);
            color: var(--text-soft);
            font: 500 0.8rem var(--font-sans);
            cursor: pointer;
        }

        .theme-toggle:hover {
            border-color: var(--field-line);
            color: var(--text);
        }

        [data-theme="dark"] .icon-sun,
        [data-theme="light"] .icon-moon {
            display: none;
        }

        /* ---------- Estrutura ---------- */
        .stage {
            display: grid;
            grid-template-columns: minmax(380px, 5fr) 6fr;
            height: 100vh;
            height: 100dvh;
        }

        .access {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 48px 32px;
            background: var(--surface);
        }

        .access-inner {
            width: 100%;
            max-width: 380px;
        }

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

        .brand-logo {
            display: block;
            width: auto;
            height: 40px;
        }

        :root[data-theme="dark"] .brand-logo {
            color: #f4f5f7;
        }

        :root[data-theme="light"] .brand-logo {
            color: #0f1115;
        }

        .title {
            font-size: 1.5rem;
            font-weight: 600;
            letter-spacing: -0.02em;
            line-height: 1.25;
        }

        .subtitle {
            margin-top: 6px;
            color: var(--muted);
            font-size: 0.9rem;
        }

        .system-ws-alert {
            margin: 20px 0 0 !important;
            padding: 10px 12px !important;
            border-radius: 6px !important;
            font-size: 0.85rem !important;
            box-shadow: none !important;
        }

        /* ---------- Formulário ---------- */
        .form {
            display: grid;
            gap: 20px;
            margin-top: 28px;
        }

        .field-label {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            margin-bottom: 6px;
            color: var(--text-soft);
            font-size: 0.85rem;
            font-weight: 500;
        }

        .caps-warning {
            color: var(--warn);
            font-size: 0.78rem;
            font-weight: 500;
        }

        .field-wrap {
            position: relative;
        }

        .field-input {
            display: block;
            width: 100%;
            height: 44px;
            padding: 0 12px;
            border: 1px solid var(--field-line);
            border-radius: 6px;
            background: var(--field);
            color: var(--text);
            font: 400 0.95rem var(--font-sans);
        }

        .field-input::placeholder {
            color: var(--muted);
        }

        .field-input:hover {
            border-color: var(--muted);
        }

        .field-input:focus {
            outline: 2px solid var(--accent);
            outline-offset: -1px;
            border-color: var(--accent);
        }

        .field-input.has-toggle {
            padding-right: 44px;
        }

        .btn-eye {
            position: absolute;
            top: 0;
            right: 0;
            display: grid;
            place-items: center;
            width: 44px;
            height: 44px;
            border: 0;
            border-radius: 0 6px 6px 0;
            background: transparent;
            color: var(--muted);
            cursor: pointer;
        }

        .btn-eye:hover {
            color: var(--text);
        }

        .btn-eye .icon-hide,
        .btn-eye[aria-pressed="true"] .icon-show {
            display: none;
        }

        .btn-eye[aria-pressed="true"] .icon-hide {
            display: block;
        }

        .btn-submit {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            height: 44px;
            margin-top: 4px;
            border: 0;
            border-radius: 6px;
            background: var(--accent);
            color: #fff;
            font: 600 0.95rem var(--font-sans);
            cursor: pointer;
        }

        .btn-submit:hover {
            background: var(--accent-hover);
        }

        .btn-submit[aria-busy="true"] {
            background: var(--accent-hover);
            cursor: progress;
        }

        .spinner {
            display: none;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255, 255, 255, 0.4);
            border-top-color: #fff;
            border-radius: 50%;
            animation: girar 0.8s linear infinite;
        }

        .btn-submit[aria-busy="true"] .spinner {
            display: block;
        }

        @keyframes girar {
            to {
                transform: rotate(360deg);
            }
        }

        .legal {
            margin-top: 40px;
            color: var(--muted);
            font-size: 0.78rem;
            line-height: 1.6;
        }

        .legal strong {
            color: var(--text-soft);
            font-weight: 600;
        }

        .legal a {
            color: var(--text-soft);
            text-decoration: none;
            white-space: nowrap;
        }

        .legal a:hover {
            text-decoration: underline;
        }

        /* ---------- Apresentação ---------- */
        .showcase {
            display: flex;
            align-items: center;
            padding: 48px clamp(32px, 6vw, 96px);
            border-left: 1px solid var(--line);
            background: var(--panel);
        }

        .showcase-inner {
            width: 100%;
            max-width: 600px;
        }

        .eyebrow {
            color: var(--accent);
            font-size: 0.8rem;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        [data-theme="dark"] .eyebrow {
            color: #fb8a52;
        }

        .headline {
            margin-top: 12px;
            font-size: clamp(1.75rem, 2.6vw, 2.4rem);
            font-weight: 600;
            letter-spacing: -0.025em;
            line-height: 1.2;
        }

        .lede {
            margin-top: 16px;
            color: var(--text-soft);
            font-size: 1rem;
        }

        .preview {
            margin-top: 32px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: var(--surface);
            overflow: hidden;
        }

        .preview-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 14px;
            border-bottom: 1px solid var(--line);
            font-size: 0.8rem;
        }

        .preview-title {
            font-weight: 600;
        }

        .preview-tag {
            padding: 2px 8px;
            border: 1px solid var(--line);
            border-radius: 4px;
            color: var(--muted);
            font-size: 0.7rem;
            font-weight: 500;
        }

        .preview-body {
            display: grid;
            grid-template-columns: 1.3fr 1fr;
        }

        .mesas {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            padding: 14px;
        }

        .mesa {
            display: grid;
            gap: 2px;
            padding: 8px 6px;
            border: 1px solid var(--line);
            border-radius: 6px;
            text-align: center;
            font-variant-numeric: tabular-nums;
        }

        .mesa b {
            font-size: 0.85rem;
            font-weight: 600;
        }

        .mesa span {
            color: var(--muted);
            font-size: 0.68rem;
            white-space: nowrap;
        }

        .mesa.is-busy {
            border-color: var(--accent);
        }

        .mesa.is-busy span {
            color: var(--text-soft);
        }

        .mesa.is-bill {
            border-color: var(--warn);
        }

        .mesa.is-bill span {
            color: var(--warn);
            font-weight: 600;
        }

        .comanda {
            display: grid;
            align-content: start;
            gap: 10px;
            padding: 14px;
            border-left: 1px solid var(--line);
            font-size: 0.78rem;
            font-variant-numeric: tabular-nums;
        }

        .comanda-head,
        .comanda-total,
        .comanda-items li {
            display: flex;
            justify-content: space-between;
            gap: 8px;
        }

        .comanda-head span,
        .comanda-items span {
            color: var(--text-soft);
        }

        .comanda-items {
            display: grid;
            gap: 6px;
            margin: 0;
            padding: 10px 0;
            list-style: none;
            border-block: 1px solid var(--line);
        }

        .comanda-total b {
            font-size: 0.95rem;
        }

        .comanda-status {
            justify-self: start;
            padding: 2px 8px;
            border-radius: 4px;
            background: var(--accent);
            color: #fff;
            font-size: 0.7rem;
            font-weight: 600;
        }

        .benefits {
            display: grid;
            gap: 18px;
            margin: 32px 0 0;
            padding: 0;
            list-style: none;
        }

        .benefits li {
            display: grid;
            grid-template-columns: 38px 1fr;
            gap: 14px;
            align-items: start;
        }

        .b-icon {
            box-sizing: content-box;
            padding: 8px;
            border: 1px solid var(--line);
            border-radius: 6px;
            background: var(--surface);
            color: var(--accent);
        }

        [data-theme="dark"] .b-icon {
            color: #fb8a52;
        }

        .benefits b {
            display: block;
            font-size: 0.92rem;
            font-weight: 600;
        }

        .benefits span {
            color: var(--text-soft);
            font-size: 0.86rem;
        }

        .integrations {
            margin-top: 32px;
            padding-top: 18px;
            border-top: 1px solid var(--line);
            color: var(--text-soft);
            font-size: 0.82rem;
        }

        .integrations span {
            display: block;
            margin-bottom: 4px;
            color: var(--muted);
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        /* ---------- Responsivo ---------- */
        /* Telas baixas: a apresentação encolhe para caber sem rolagem */
        @media (min-width: 901px) and (max-height: 860px) {
            .showcase {
                padding-block: 28px;
            }

            .preview,
            .benefits {
                margin-top: 20px;
            }

            .benefits {
                gap: 12px;
            }

            .integrations {
                margin-top: 20px;
                padding-top: 12px;
            }
        }

        @media (min-width: 901px) and (max-height: 740px) {
            .benefits li span,
            .lede {
                display: none;
            }

            .integrations {
                display: none;
            }
        }

        @media (min-width: 901px) and (max-height: 600px) {
            .benefits {
                display: none;
            }
        }

        @media (max-width: 900px) {
            body {
                height: auto;
                min-height: 100dvh;
                overflow: auto;
            }

            .stage {
                grid-template-columns: 1fr;
                height: auto;
                min-height: 100dvh;
            }

            .showcase {
                display: none;
            }

            .access {
                align-items: flex-start;
                padding: 72px 20px 32px;
            }
        }

        @media (max-width: 420px) {
            .brand {
                margin-bottom: 28px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .spinner {
                animation-duration: 2s;
            }
        }
