/* Marketing + auth pages (dark brand surface). Uses tokens from app.css. */
/* Design system: marketing & auth headings use Plus Jakarta Sans. */
body.site { background: #090a0d; color: #e8ecf4; --font-display: var(--font-marketing); }
body.site a { color: #fb7185; }
.site-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; background: rgba(10, 14, 24, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.site-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none !important; }
.site-brand img { height: 46px; width: auto; object-fit: contain; }
.site-brand b { font-size: 18px; letter-spacing: -0.02em; }
.site-brand small { display: block; font-size: 11px; color: #8e98ad; }
.site-nav .links { display: flex; gap: 6px; align-items: center; }
.site-nav .links a { color: #c4cbda; font-size: 13.5px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.site-nav .links a:hover { background: rgba(255, 255, 255, 0.06); text-decoration: none; color: #fff; }
.site .btn { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); color: #f1f4f9; }
.site .btn:hover { background: rgba(255, 255, 255, 0.09); }
.site .btn-primary { background: #e11d48; border-color: #e11d48; color: #fff !important; }
.site .btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.glow { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(600px 400px at 15% 10%, rgba(225, 29, 72, 0.18), transparent 70%), radial-gradient(700px 500px at 90% 90%, rgba(59, 130, 246, 0.12), transparent 70%); z-index: 0; }

/* auth */
.auth-wrap { position: relative; z-index: 1; min-height: calc(100vh - 67px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; align-items: center; max-width: 1120px; margin: 0 auto; padding: 32px 24px 48px; }
.auth-wrap.single { grid-template-columns: minmax(0, 460px); justify-content: center; }
.auth-side h1 { font-size: 38px; line-height: 1.12; letter-spacing: -0.03em; color: #fff; }
.auth-side h1 span { color: #fb7185; }
.auth-side p.lead { color: #aab3c5; font-size: 16px; margin-top: 14px; max-width: 520px; }
.auth-side ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; color: #d3d9e5; font-size: 14px; }
.auth-side li .icon { color: #34d399; margin-top: 2px; }
.auth-side li b { color: #fff; display: block; }
.auth-card { background: #111827; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.auth-card h2 { font-size: 22px; color: #fff; }
.auth-card .sub { color: #8e98ad; font-size: 13.5px; margin-top: 4px; margin-bottom: 20px; }
.auth-card .field > label { color: #b8c0d0; }
.auth-card .input, .auth-card .select { background: #0b1220; border-color: #273149; color: #f1f4f9; }
.auth-card .input:focus { border-color: #e11d48; box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.25); }
.auth-card .input-group .addon { background: #1a2338; border-color: #273149; color: #9aa4b8; }
.auth-card .hint { color: #8e98ad; }
.auth-card .muted { color: #8e98ad; }
.auth-card .divider { background: rgba(255, 255, 255, 0.08); }
.auth-card .alert.danger { background: rgba(244, 63, 94, 0.12); color: #fda4af; border-color: rgba(244, 63, 94, 0.3); }
.auth-card .alert.info { background: rgba(59, 130, 246, 0.12); color: #93c5fd; border-color: rgba(59, 130, 246, 0.3); }
.auth-card .alert.success { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.3); }
.auth-card .alert.warning { background: rgba(245, 158, 11, 0.12); color: #fcd34d; border-color: rgba(245, 158, 11, 0.3); }
.or { display: flex; align-items: center; gap: 12px; color: #6b7487; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 18px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.08); }
.demo-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.otp { display: flex; gap: 8px; justify-content: space-between; }
.otp input { width: 100%; height: 56px; text-align: center; font-size: 24px; font-weight: 700; font-family: var(--mono); border-radius: 10px; border: 1px solid #273149; background: #0b1220; color: #fff; }
.otp input:focus { outline: none; border-color: #e11d48; box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.25); }
.plan-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-opt { border: 1px solid #273149; border-radius: 12px; padding: 12px; cursor: pointer; background: #0b1220; display: block; }
.plan-opt input { display: none; }
.plan-opt b { color: #fff; display: block; }
.plan-opt span { font-size: 12px; color: #8e98ad; }
.plan-opt:has(input:checked) { border-color: #e11d48; box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2); }
.linkbtn { background: none; border: 0; color: #fb7185; cursor: pointer; font-weight: 600; padding: 0; font-size: inherit; }
.linkbtn:disabled { color: #6b7487; cursor: default; }
.strength { height: 4px; border-radius: 999px; background: #273149; margin-top: 6px; overflow: hidden; }
.strength span { display: block; height: 100%; transition: width .2s, background .2s; }

/* landing */
.hero { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 72px 24px 40px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(225, 29, 72, 0.12); color: #fda4af; font-size: 12.5px; font-weight: 600; border: 1px solid rgba(225, 29, 72, 0.3); }
.hero h1 { font-size: 52px; line-height: 1.05; letter-spacing: -0.035em; color: #fff; margin-top: 18px; }
.hero h1 em { font-style: normal; color: #fb7185; }
.hero p.lead { font-size: 17px; color: #aab3c5; margin-top: 18px; max-width: 560px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .proof { display: flex; gap: 24px; margin-top: 30px; color: #8e98ad; font-size: 13px; flex-wrap: wrap; }
.hero .proof b { display: block; color: #fff; font-size: 22px; }
.mock { background: #f4f6fa; border-radius: 18px; padding: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.1); color: #111827; }
.mock .bar { display: flex; gap: 6px; margin-bottom: 10px; }
.mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e5ea; }
.mock-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.mock-dishes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-dish { background: #fff; border: 1px solid #e1e6ee; border-radius: 10px; padding: 10px; font-size: 12px; }
.mock-dish b { display: block; font-size: 12.5px; }
.mock-dish .p { font-weight: 700; margin-top: 8px; }
.mock-bill { background: #fff; border: 1px solid #e1e6ee; border-radius: 10px; padding: 10px; font-size: 12px; display: flex; flex-direction: column; gap: 6px; }
.mock-bill .t { display: flex; justify-content: space-between; }
.mock-bill .tot { border-top: 1px dashed #cdd5e1; padding-top: 8px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; }
.mock-bill .pay { background: var(--primary); color: #fff; border-radius: 8px; text-align: center; padding: 9px; font-weight: 600; margin-top: auto; }
.section { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 56px 24px; }
.section h2 { font-size: 32px; letter-spacing: -0.03em; color: #fff; text-align: center; }
.section .sub { text-align: center; color: #9aa4b8; margin: 10px auto 36px; max-width: 640px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { background: #111827; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 16px; padding: 22px; }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(225, 29, 72, 0.14); color: #fb7185; margin-bottom: 14px; }
.feature h3 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.feature p { color: #9aa4b8; font-size: 13.5px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 22px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, 0.14); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e11d48; color: #fff; font-weight: 700; margin-bottom: 12px; }
.step h3 { color: #fff; font-size: 16px; }
.step p { color: #9aa4b8; font-size: 13.5px; margin-top: 6px; }
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price { background: #111827; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.price.featured { border-color: #e11d48; box-shadow: 0 0 0 1px #e11d48, 0 30px 70px rgba(225, 29, 72, 0.18); }
.price h3 { color: #fff; font-size: 18px; }
.price .amt { font-size: 36px; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.price .amt small { font-size: 14px; color: #8e98ad; font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 8px; color: #c4cbda; font-size: 13.5px; }
.price li { display: flex; gap: 8px; }
.price li .icon { color: #34d399; }
.price .btn { margin-top: auto; }
.site-foot { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, 0.07); padding: 28px 24px; text-align: center; color: #6b7487; font-size: 13px; }

@media (max-width: 960px) {
  .auth-wrap { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .hero h1 { font-size: 38px; }
  .features, .pricing, .steps { grid-template-columns: minmax(0, 1fr); }
  .site-nav { padding: 12px 16px; }
  .site-nav .links a.hide-sm { display: none; }
}
@media (max-width: 480px) {
  .auth-card { padding: 20px; }
  .demo-roles { grid-template-columns: 1fr; }
  .mock-grid { grid-template-columns: 1fr; }
}

/* ambient 3D backdrop (login / signup) — the .glow stays underneath as the no-3D ambience */
.auth-3d { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease;
  /* shapes stay vivid at the edges and soften behind the copy and the form */
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 55%, rgba(0, 0, 0, 0.38), #000 82%); mask-image: radial-gradient(ellipse 62% 58% at 50% 55%, rgba(0, 0, 0, 0.38), #000 82%); }
.auth-3d.u3d-ready { opacity: .9; }
@media (max-width: 960px) { .auth-3d.u3d-ready { opacity: .55; } }

/* 404 */
body.nf { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
.nf-wrap { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 40px 24px 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.nf-3d .nf-wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; }
.nf-copy { max-width: 560px; }
body.nf:not(.nf-3d) .nf-copy { margin: 0 auto; text-align: center; }
body.nf:not(.nf-3d) .nf-actions { justify-content: center; }
.nf-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #ffb4ae; background: rgba(255, 59, 48, 0.12); border: 1px solid rgba(255, 59, 48, 0.32); }
.nf-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.22); animation: nf-blink 1.6s ease-in-out infinite; }
@keyframes nf-blink { 50% { opacity: .35; } }
.nf-code { display: flex; align-items: center; gap: .04em; margin-top: 18px; font-family: var(--font-marketing); font-size: clamp(96px, 16vw, 168px); font-weight: 800; line-height: .9; letter-spacing: -0.06em; color: #f4f6f8; }
body.nf:not(.nf-3d) .nf-code { justify-content: center; }
.nf-code .plate { position: relative; display: inline-block; width: .74em; height: .74em; margin: 0 .05em; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #13253d 0 38%, #f4f6f8 39% 41%, #13253d 42% 62%, #ff3b30 63% 100%); box-shadow: 0 .06em .2em rgba(255, 59, 48, 0.35), inset 0 -.04em .08em rgba(0, 0, 0, 0.35); }
.nf-code .plate::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(140deg, rgba(255, 255, 255, 0.32), transparent 45%); }
.nf-copy h1.nf-title { margin-top: 20px; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.12; letter-spacing: -0.03em; color: #fff; }
.nf-copy .lead { margin-top: 12px; color: #aab3c5; font-size: 16px; line-height: 1.6; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.nf-actions .btn-primary { background: #ff3b30; border-color: #ff3b30; }
.nf-actions .btn-primary:hover { background: #e5352b; border-color: #e5352b; }
.nf-path { margin-top: 22px; font-size: 12.5px; color: #6b7487; overflow-wrap: anywhere; }
.nf-path code { font-family: var(--mono); color: #8e98ad; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); padding: 2px 7px; border-radius: 6px; }
.nf-stage { position: relative; height: clamp(340px, 58vh, 560px); border-radius: 24px; background: radial-gradient(70% 60% at 50% 45%, rgba(255, 59, 48, 0.10), transparent 70%), radial-gradient(90% 80% at 50% 100%, rgba(19, 37, 61, 0.55), transparent 70%); }
.nf-stage[hidden] { display: none; }
.nf-stage .nf-loading { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .5s ease; }
.nf-stage.u3d-ready .nf-loading { opacity: 0; visibility: hidden; }
.nf-stage .nf-hint, .nf-stage .nf-quip { position: absolute; left: 50%; transform: translateX(-50%); z-index: 2; pointer-events: none; text-align: center; max-width: calc(100% - 24px); }
.nf-stage .nf-hint { bottom: 14px; padding: 6px 12px; border-radius: 999px; font-size: 12px; color: #aab3c5; background: rgba(11, 22, 38, 0.72); border: 1px solid rgba(255, 255, 255, 0.08); backdrop-filter: blur(6px); white-space: nowrap; opacity: 0; transition: opacity .5s ease .3s; }
.nf-stage.u3d-ready .nf-hint { opacity: 1; }
.nf-stage .nf-quip { top: 10px; padding: 9px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: #fff; background: #13253d; border: 1px solid rgba(255, 59, 48, 0.4); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4); opacity: 0; transform: translate(-50%, -6px); transition: opacity .25s ease, transform .25s ease; }
.nf-stage .nf-quip.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 860px) {
  .nf-3d .nf-wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 24px; }
  .nf-copy { text-align: center; margin: 0 auto; }
  .nf-code { justify-content: center; }
  .nf-actions { justify-content: center; }
  .nf-stage { height: clamp(300px, 46vh, 420px); }
}
@media (max-width: 480px) {
  .nf-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .nf-eyebrow i { animation: none; }
}
