/* ROMS landing page. Scoped under .landing so it never leaks into the app
   panels. Palette mirrors fincorit.com (brand blue, slate-950, Inter). */
.landing {
    --brand-50: #eef4ff;
    --brand-100: #d9e6ff;
    --brand-300: #8bb4ff;
    --brand-500: #3366ff;
    --brand-600: #234fdb;
    --brand-700: #1c3eae;
    --brand-900: #0f1f57;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --dark: #020617;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
}
body:has(.landing) { background: #fff; font-size: 1rem; }
.landing h1, .landing h2, .landing h3, .landing h4 { font-weight: 700; letter-spacing: -.02em; }
.landing a { text-decoration: none; }

/* Buttons */
.landing .lp-btn-brand { background: var(--brand-500); border-color: var(--brand-500); font-weight: 600; }
.landing .lp-btn-brand:hover, .landing .lp-btn-brand:focus { background: var(--brand-600); border-color: var(--brand-600); }
.landing .lp-btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; font-weight: 600; }
.landing .lp-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* Nav */
.lp-nav { position: sticky; top: 0; z-index: 50; background: rgba(2,6,23,.92); backdrop-filter: blur(8px); padding: .75rem 0; }
.lp-brand { color: #fff; font-weight: 700; display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; }
.lp-brand small { font-weight: 500; color: #94a3b8; font-size: .72rem; margin-left: .25rem; }
.lp-brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-500); display: grid; place-items: center; }
.lp-links a { color: #cbd5e1; font-weight: 500; font-size: .92rem; }
.lp-links a:hover { color: #fff; }

/* Hero */
.lp-hero { background: radial-gradient(1200px 500px at 15% -10%, var(--brand-900), var(--dark) 70%); color: #fff; padding: 5rem 0 6rem; }
.lp-pill { display: inline-block; background: rgba(51,102,255,.18); border: 1px solid rgba(139,180,255,.35); color: var(--brand-300); padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 500; margin-bottom: 1.25rem; }
.lp-h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 800; margin-bottom: 1.25rem; }
.lp-h1 span { color: var(--brand-300); }
.lp-lead { color: #cbd5e1; font-size: 1.15rem; max-width: 36rem; margin-bottom: 2rem; }
.lp-checks { list-style: none; padding: 0; margin: 0; color: #cbd5e1; }
.lp-checks li { margin-bottom: .5rem; }
.lp-checks i { color: var(--brand-300); margin-right: .5rem; }

/* Login card */
.lp-login { background: #fff; color: var(--ink); border-radius: 1.25rem; padding: 2rem; box-shadow: 0 25px 60px -15px rgba(0,0,0,.55); }
.lp-login h2 { font-size: 1.5rem; margin-bottom: .25rem; }
.lp-login .form-label { font-weight: 600; font-size: .85rem; }
.lp-login .form-control { border-radius: .65rem; border-color: var(--line); }
.lp-login .form-control:focus { border-color: var(--brand-500); box-shadow: 0 0 0 .2rem rgba(51,102,255,.2); }
.lp-login #message { color: #dc2626; min-height: 1.4em; }
.lp-login-foot { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; text-align: center; color: var(--muted); font-size: .9rem; }
.lp-login-foot a { color: var(--brand-600); font-weight: 600; }

/* Stats */
.lp-stats { background: var(--brand-50); padding: 2.25rem 0; border-bottom: 1px solid var(--brand-100); }
.lp-stats strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--brand-700); }
.lp-stats span { color: var(--muted); font-size: .9rem; }

/* Sections */
.lp-section { padding: 5rem 0; }
.lp-alt { background: #f8fafc; }
.lp-dark { background: var(--dark); color: #fff; }
.lp-dark p { color: #94a3b8; }
.lp-section-head { max-width: 40rem; margin: 0 auto 3rem; text-align: center; }
.lp-section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: .5rem 0 .75rem; }
.lp-section-head p { color: var(--muted); font-size: 1.05rem; }
.lp-dark .lp-section-head p { color: #94a3b8; }
.lp-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--brand-500); }

/* Cards */
.lp-card { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem; height: 100%; transition: transform .15s, box-shadow .15s; }
.lp-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(15,23,42,.18); }
.lp-card i { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 1rem; }
.lp-card h3 { font-size: 1.1rem; }
.lp-card p { color: var(--muted); margin: 0; }
.lp-role { border-left: 3px solid var(--brand-500); padding: .25rem 0 .25rem 1rem; height: 100%; }
.lp-role span { font-weight: 700; font-size: 1.05rem; }
.lp-role p { color: var(--muted); margin: .35rem 0 0; }
.lp-step { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-500); display: grid; place-items: center; margin: 0 auto 1rem; font-weight: 800; font-size: 1.2rem; }

/* Demo */
.lp-demo { max-width: 960px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 1.25rem; box-shadow: 0 25px 60px -25px rgba(15,23,42,.3); overflow: hidden; }
.lp-demo-tabs { display: flex; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.lp-demo-tabs button { flex: 1; border: 0; background: transparent; padding: .95rem .5rem; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; }
.lp-demo-tabs button.active { background: #fff; color: var(--brand-600); border-bottom-color: var(--brand-500); }
.lp-demo-pane { display: none; padding: 1.75rem; min-height: 360px; }
.lp-demo-pane.active { display: block; }
.lp-demo-bar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.lp-demo-bar select { max-width: 180px; }
.lp-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.lp-dish { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: .85rem; padding: .85rem; transition: border-color .15s, box-shadow .15s; }
.lp-dish:hover { border-color: var(--brand-500); box-shadow: 0 6px 16px -8px rgba(51,102,255,.5); }
.lp-dish .em { font-size: 1.6rem; display: block; }
.lp-dish b { display: block; font-size: .92rem; margin-top: .25rem; }
.lp-dish span { color: var(--muted); font-size: .85rem; }
.lp-ticket, .lp-kds, .lp-bill { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 1rem; padding: 1.25rem; }
.lp-kds, .lp-bill { max-width: 460px; margin: 0 auto; }
.lp-ticket h4, .lp-bill h4 { font-size: 1.05rem; }
.lp-ticket-list { list-style: none; padding: 0; margin: 0 0 1rem; min-height: 60px; }
.lp-ticket-list li { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.lp-ticket-list li:last-child { border-bottom: 0; }
.lp-ticket-list .qty { display: inline-flex; gap: .4rem; align-items: center; }
.lp-ticket-list .qty button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: #fff; line-height: 1; padding: 0; }
.lp-total { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 1rem; }
.lp-kds-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.lp-badge { background: #fef3c7; color: #92400e; font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.lp-badge.prep { background: var(--brand-100); color: var(--brand-700); }
.lp-badge.ready { background: #dcfce7; color: #166534; }
.lp-empty { text-align: center; color: var(--muted); padding: 3.5rem 1rem; }
.lp-empty i { font-size: 2.4rem; color: #94a3b8; }
.lp-bill-row { display: flex; justify-content: space-between; align-items: center; padding: .35rem 0; color: var(--muted); }
.lp-bill-row.lp-total { color: var(--ink); border-top: 1px solid #cbd5e1; margin: .5rem 0 0; padding-top: .75rem; }
.lp-switch { display: inline-block; vertical-align: middle; margin-left: .4rem; position: relative; }
.lp-switch input { position: absolute; opacity: 0; }
.lp-switch i { display: block; width: 34px; height: 20px; border-radius: 999px; background: #cbd5e1; position: relative; cursor: pointer; transition: background .15s; }
.lp-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.lp-switch input:checked + i { background: var(--brand-500); }
.lp-switch input:checked + i::after { transform: translateX(14px); }
.lp-paid { display: flex; gap: .85rem; align-items: flex-start; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: .85rem; padding: 1rem; margin-top: 1rem; }
.lp-paid > i { color: #059669; font-size: 1.6rem; }

/* Footer */
.lp-footer { background: var(--dark); color: #94a3b8; padding: 2.5rem 0 1.5rem; }
.lp-footer a { color: #cbd5e1; }
.lp-footer a:hover { color: #fff; }
.lp-footer strong { color: #fff; }
.lp-copy { border-top: 1px solid #1e293b; padding-top: 1rem; }

@media (max-width: 575.98px) {
    .lp-hero { padding: 3rem 0 4rem; }
    .lp-demo-pane { padding: 1rem; }
    .lp-demo-tabs button { font-size: .85rem; }
    .lp-section { padding: 3.5rem 0; }
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .lp-card { transition: none; } }

/* ---- Registration page ---- */
.lp-reg-side { background: radial-gradient(900px 500px at 10% -10%, var(--brand-900), var(--dark) 70%); color: #fff; display: flex; }
.lp-reg-side-inner { padding: 3rem; max-width: 560px; margin: auto; width: 100%; }
.lp-reg-side .lp-h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.lp-reg-note { color: #94a3b8; font-size: .9rem; margin-top: 2rem; }
.lp-reg-note i { color: var(--brand-300); margin-right: .4rem; }
.lp-reg-main { background: #f8fafc; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2.5rem 1rem; }
.lp-reg-card { background: #fff; border: 1px solid var(--line); border-radius: 1.25rem; box-shadow: 0 20px 50px -25px rgba(15,23,42,.25); padding: 2.25rem; width: 100%; max-width: 640px; }
.lp-reg-card h2 { font-size: 1.6rem; }
.lp-reg-card .form-label { font-weight: 600; font-size: .85rem; }
.lp-reg-card .form-control { border-radius: .65rem; border-color: var(--line); }
.lp-reg-card .form-control:focus { border-color: var(--brand-500); box-shadow: 0 0 0 .2rem rgba(51,102,255,.2); }
.lp-reg-card a { color: var(--brand-600); font-weight: 600; }
.lp-reg-card a.btn { color: #fff; }
.lp-fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
.lp-fieldset legend { float: none; font-size: 1rem; font-weight: 700; margin-bottom: .85rem; display: flex; align-items: center; gap: .6rem; }
.lp-fieldset legend span { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; font-size: .8rem; }
.lp-fieldset legend em { font-style: normal; font-weight: 500; font-size: .8rem; color: var(--muted); }
.lp-pw { position: relative; }
.lp-pw .form-control { padding-right: 2.75rem; }
.lp-pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); padding: .4rem .6rem; }
.lp-meter { height: 5px; background: var(--line); border-radius: 999px; margin: .5rem 0 .25rem; overflow: hidden; }
.lp-meter i { display: block; height: 100%; width: 0; background: #ef4444; transition: width .2s, background .2s; }
.lp-meter i[data-level="2"] { background: #f59e0b; }
.lp-meter i[data-level="3"] { background: #84cc16; }
.lp-meter i[data-level="4"] { background: #16a34a; }
.lp-success { width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 1rem; }
.lp-cred { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 1rem; padding: 1rem; margin: 1.25rem 0; }
.lp-cred > div { display: flex; align-items: center; gap: .75rem; padding: .5rem; }
.lp-cred span { color: var(--muted); min-width: 110px; text-align: left; font-size: .9rem; }
.lp-cred strong { flex: 1; text-align: left; font-size: 1.1rem; word-break: break-all; }
.lp-reg-foot { color: var(--muted); font-size: .85rem; margin: 1.25rem 0 0; }
@media (max-width: 991.98px) { .lp-reg-side-inner { padding: 2rem 1.25rem; } .lp-reg-card { padding: 1.5rem; } }
