/* BOS — public website (landing) + auth pages */

/* ---------- Landing (dark, "index black") ---------- */
body.landing { background: #ffffff; color: var(--ink); }
.landing a:not(.btn) { color: var(--blue); }
.landing .btn-outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.landing .btn-outline:hover { background: var(--surface-2); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.site-header .logo { color: var(--ink); }
.site-nav { display: flex; gap: 1.6rem; margin-inline-start: 1rem; }
.site-nav a { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--blue); text-decoration: none; }
.site-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .8rem; }
.site-actions .login { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.site-actions .lang { background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); border-radius: 8px; padding: .35rem .7rem; cursor: pointer; font-size: .85rem; }
.cta-stack { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cta-stack small { font-size: .72rem; color: var(--blue); }
.menu-btn { display: none; background: transparent; border: 0; color: var(--ink); cursor: pointer; padding: .4rem; }
.menu-btn svg { width: 26px; height: 26px; }
@media (max-width: 920px) {
  .site-nav { display: none; position: absolute; top: 72px; inset-inline: 0; background: #fff; flex-direction: column; padding: 1rem 16px; gap: .9rem; margin: 0; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .menu-btn { display: block; }
  .site-actions .cta-stack small, .site-actions .login span { display: none; }
}
@media (max-width: 520px) { .site-actions .cta-stack { display: none; } }

.hero { position: relative; overflow: hidden; padding: 5.5rem 0 4rem; text-align: center; }
.hero::before { content: ''; position: absolute; inset: -30% -10% auto; height: 120%; background: radial-gradient(closest-side, rgba(37, 99, 235, .10), transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(100, 116, 139, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(100, 116, 139, .07) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at top, #000 30%, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem; border-radius: 99px; background: var(--blue-50); color: var(--blue-600); font-size: .85rem; font-weight: 600; border: 1px solid #bfdbfe; margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 4.1rem); font-weight: 800; color: var(--ink); margin-bottom: 1.2rem; }
.hero h1 .gr { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { max-width: 780px; margin: 0 auto 2rem; color: var(--ink-2); font-size: 1.1rem; }
.hero .btn-lg { min-width: min(380px, 100%); font-size: 1.15rem; padding: 1em 2em; }
.checks { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; margin-top: 1.2rem; color: var(--ink-2); font-size: .92rem; }
.checks span::before { content: '✱'; color: var(--blue); margin-inline-end: .4rem; }

/* dashboard mock in hero */
.mock { margin: 3.5rem auto 0; max-width: 1040px; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 30px 80px rgba(15, 23, 42, .12), 0 0 0 1px var(--line); overflow: hidden; text-align: start; display: grid; grid-template-columns: 200px 1fr; }
.mock-side { background: var(--side); color: var(--side-ink); padding: 1rem .8rem; font-size: .8rem; display: flex; flex-direction: column; gap: .2rem; }
.mock-side .logo { color: var(--ink); margin-bottom: .8rem; }
.mock-side .logo svg { width: 28px; height: 28px; }
.mock-side .logo b { font-size: 1.15rem; }
.mock-side span { padding: .42rem .6rem; border-radius: 7px; color: var(--side-muted); }
.mock-side span.on { background: var(--side-2); color: var(--blue-600); font-weight: 600; }
.mock-main { padding: 1.2rem; background: var(--bg); min-width: 0; }
.mock-main h4 { margin: 0 0 .8rem; font-size: 1rem; }
.mock-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: .8rem; }
.mock-tiles div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem; font-size: .75rem; color: var(--muted); }
.mock-tiles b { display: block; font-size: 1.05rem; color: var(--ink); }
.mock-charts { display: grid; grid-template-columns: 1.6fr 1fr; gap: .6rem; }
.mock-charts > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem; font-size: .75rem; color: var(--muted); }
@media (max-width: 760px) {
  .mock { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-tiles { grid-template-columns: repeat(2, 1fr); }
  .mock-charts { grid-template-columns: 1fr; }
}

.section { padding: 5rem 0; }
.section.alt { background: #f1f5f9; }
.section.light { background: #f8fafc; color: var(--ink); }
.section.light a { color: var(--blue); }
.sec-head { max-width: 760px; margin-bottom: 2.6rem; }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--ink); }
.section.light .sec-head h2 { color: var(--ink); }
.sec-head p { color: var(--muted); font-size: 1.05rem; }
.section.light .sec-head p { color: var(--muted); }
.eyebrow { display: inline-block; color: var(--blue); font-weight: 700; font-size: .85rem; letter-spacing: .04em; margin-bottom: .6rem; }
.section.light .eyebrow { color: var(--blue); }

.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .mod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mod-grid { grid-template-columns: 1fr; } }
.mod-card { background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; transition: border-color .2s, transform .2s; }
.mod-card:hover { border-color: var(--blue-300); transform: translateY(-3px); }
.mod-card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); margin-bottom: 1rem; }
.mod-card .ic svg { width: 24px; height: 24px; }
.mod-card h3 { color: var(--ink); font-size: 1.15rem; }
.mod-card p { color: var(--muted); margin: 0; font-size: .95rem; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.feature + .feature { margin-top: 5rem; }
.feature.flip > :first-child { order: 2; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 2rem; } .feature.flip > :first-child { order: 0; } }
.feature h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--ink); margin-bottom: 1.4rem; }
.section.light .feature h2 { color: var(--ink); }
.acc { border-top: 1px solid var(--line); }
.section.light .acc { border-color: var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.section.light .acc details { border-color: var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 1rem 0; display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.section.light .acc summary { color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; margin-inline-start: auto; font-size: 1.3rem; color: var(--blue); transition: transform .2s; }
.acc details[open] summary::after { content: '−'; }
.acc summary .dot { width: 30px; height: 30px; border-radius: 8px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.section.light .acc summary .dot { background: var(--blue-50); color: var(--blue); }
.acc summary .dot svg { width: 17px; height: 17px; }
.acc details p { color: var(--muted); padding: 0 0 1.1rem; margin: 0; padding-inline-start: 2.6rem; }
.section.light .acc details p { color: var(--muted); }
.feature .cta-row { margin-top: 1.6rem; }

.visual { position: relative; background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, .18), transparent 60%), linear-gradient(160deg, #e0ecff, #f8fafc); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; min-height: 320px; }
.section.light .visual { background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, .18), transparent 60%), linear-gradient(160deg, #e0ecff, #f8fafc); border-color: var(--line); }
.paper { background: #fff; color: var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 1rem 1.1rem; font-size: .8rem; }
.paper h5 { margin: 0 0 .5rem; font-size: .9rem; }
.paper table { width: 100%; border-collapse: collapse; }
.paper td, .paper th { padding: .32rem .2rem; border-bottom: 1px solid var(--line); text-align: start; }
.paper th { background: #f1f5f9; color: var(--ink-2); font-weight: 600; }
.paper .tot { display: flex; justify-content: space-between; font-weight: 700; margin-top: .6rem; }
.floaty { position: absolute; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .55rem .9rem; font-size: .82rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.floaty i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-style: normal; }

.banner { position: relative; border-radius: 22px; overflow: hidden; padding: 3.5rem 2.5rem; background: radial-gradient(circle at 85% 50%, rgba(56, 189, 248, .25), transparent 55%), linear-gradient(110deg, #ffffff 35%, #e0ecff); border: 1px solid var(--line); color: var(--ink); }
.banner h3 { font-size: clamp(1.4rem, 3vw, 2.1rem); max-width: 560px; }
.banner p { color: var(--ink-2); max-width: 560px; }

.apps { display: grid; gap: .8rem; }
.app-row { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.1rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.app-row .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; flex: none; }
.app-row .ic svg { width: 20px; height: 20px; }
.app-row small { display: block; color: var(--muted); font-weight: 400; }
.stores { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.store-btn { display: inline-flex; align-items: center; gap: .6rem; background: #000; color: #fff !important; border: 1px solid #334155; border-radius: 10px; padding: .45rem 1rem; text-decoration: none !important; }
.store-btn svg { width: 22px; height: 22px; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; font-size: .95rem; font-weight: 700; direction: ltr; text-align: left; }
.store-btn small { font-size: .62rem; font-weight: 400; color: #cbd5e1; }

.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ind-grid { grid-template-columns: 1fr; } }
.ind { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; color: var(--ink); }
.ind b { display: block; margin-bottom: .25rem; }
.ind span { color: var(--muted); font-size: .88rem; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; display: flex; flex-direction: column; }
.plan.pop { border-color: var(--blue-400); box-shadow: 0 0 0 1px var(--blue-400), 0 20px 50px rgba(37, 99, 235, .15); }
.plan h3 { color: var(--ink); margin-bottom: .2rem; }
.plan .sub { color: var(--muted); font-size: .9rem; }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .55rem; color: var(--ink-2); font-size: .95rem; }
.plan li::before { content: '✓'; color: #22c55e; font-weight: 800; margin-inline-end: .5rem; }
.plan .btn { margin-top: auto; }

.faq { max-width: 820px; margin-inline: auto; }

.final-cta { text-align: center; padding: 5rem 0; background: radial-gradient(closest-side, rgba(37, 99, 235, .08), transparent), #f1f5f9; }
.final-cta h2 { color: var(--ink); font-size: clamp(1.7rem, 3.5vw, 2.6rem); }

.site-footer { background: #f1f5f9; border-top: 1px solid var(--line); color: var(--muted); padding: 3.5rem 0 6rem; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--ink); font-size: .98rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--blue); }
.site-footer .logo { color: var(--ink); margin-bottom: 1rem; }
.site-footer .copy { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* ---------- Auth pages (light, Daftra-style) ---------- */
body.auth { background: #eef2f7; min-height: 100vh; }
body.auth::before { content: ''; position: fixed; inset: 0; background-image: linear-gradient(rgba(100, 116, 139, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(100, 116, 139, .06) 1px, transparent 1px); background-size: 120px 120px; transform: skewX(-18deg); pointer-events: none; }
.auth-shell { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; width: min(1180px, 100% - 32px); margin-inline: auto; padding: 2.5rem 0; }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; gap: 1.5rem; } .auth-aside { order: 2; } }
.auth-card { background: #fff; border-radius: 14px; box-shadow: 0 10px 40px rgba(15, 23, 42, .1); padding: 2.4rem; width: 100%; max-width: 520px; justify-self: center; }
@media (max-width: 520px) { .auth-card { padding: 1.6rem 1.2rem; } }
.auth-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; gap: 1rem; }
.auth-card .top .links { display: flex; gap: .9rem; font-size: .88rem; }
.auth-card .logo { color: var(--ink); }
.auth-card .logo svg { width: 32px; height: 32px; }
.auth-card .logo b { font-size: 1.35rem; }
.auth-card h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: .3rem; }
.auth-card .subtitle { color: var(--muted); margin-bottom: 1.5rem; }
.auth-card .terms { font-size: .8rem; color: var(--muted); text-align: center; margin: .9rem 0; }
.auth-card .switch-link { text-align: center; font-weight: 600; margin: 0; }
.auth-aside { color: var(--ink); }
.auth-aside .logo { color: var(--ink); margin-bottom: 1.5rem; }
.auth-aside .logo svg { width: 52px; height: 52px; }
.auth-aside .logo b { font-size: 2.2rem; }
.auth-aside h2 { font-size: 1.35rem; }
.auth-aside p { color: var(--muted); }
.auth-aside ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.5rem; font-weight: 700; margin: 1.4rem 0 0; }
.auth-aside li { display: flex; align-items: center; gap: .5rem; }
.auth-aside li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--blue); border-inline-end-color: transparent; flex: none; }

.account-choice { display: flex; align-items: center; gap: 1rem; width: 100%; padding: 1.1rem 1.2rem; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; text-align: start; transition: border-color .15s, box-shadow .15s; margin-bottom: .8rem; }
.account-choice:hover { border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.account-choice .ic { width: 52px; height: 52px; border-radius: 10px; background: #eef2f7; display: grid; place-items: center; flex: none; overflow: hidden; color: var(--ink-2); }
.account-choice .ic img { width: 100%; height: 100%; object-fit: contain; }
.account-choice .ic.owner { background: #fff1e6; color: #ea580c; }
.account-choice .ic svg { width: 26px; height: 26px; }
.account-choice .meta { flex: 1; min-width: 0; }
.account-choice .meta b { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; flex-wrap: wrap; }
.account-choice .meta small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-choice .chev { color: var(--muted); font-size: 1.3rem; }
.role-tag { display: inline-flex; align-items: center; gap: .25rem; font-size: .75rem; padding: .1rem .55rem; border-radius: 99px; background: #fff1e6; color: #c2410c; font-weight: 700; }
.role-tag.emp { background: var(--blue-50); color: var(--blue-600); }
.or { display: flex; align-items: center; gap: 1rem; color: var(--muted); margin: .4rem 0 1.2rem; font-size: .9rem; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Onboarding wizard */
.wizard-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 100; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.wizard { background: #fff; border-radius: 14px; width: min(1000px, 100%); display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; box-shadow: var(--shadow-lg); max-height: calc(100vh - 32px); }
.wizard.wide { grid-template-columns: 1fr; }
@media (max-width: 820px) { .wizard { grid-template-columns: 1fr; } .wizard .wz-aside { display: none; } }
.wz-main { padding: 2.2rem; overflow-y: auto; }
@media (max-width: 520px) { .wz-main { padding: 1.4rem 1.1rem; } }
.wz-aside { background: #f1f5f9; padding: 2.4rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.wz-aside::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(#f59e0b 1.4px, transparent 1.6px), radial-gradient(#38bdf8 1.4px, transparent 1.6px), radial-gradient(#f472b6 1.4px, transparent 1.6px); background-size: 70px 70px, 90px 90px, 110px 110px; background-position: 0 0, 30px 40px, 60px 10px; opacity: .55; }
.wz-aside > * { position: relative; }
.wz-aside .logo { color: var(--ink); margin-bottom: 1.2rem; }
.wz-aside h3 { font-size: 1.3rem; }
.wz-aside p { color: var(--muted); }
.ws-link { display: block; background: #16a34a; color: #fff !important; font-weight: 700; padding: .85rem 1.2rem; border-radius: 6px; direction: ltr; word-break: break-all; margin: .6rem 0 1rem; font-size: 1.02rem; }
.wz-steps { display: flex; gap: .4rem; margin-bottom: 1.4rem; }
.wz-steps span { height: 5px; flex: 1; border-radius: 99px; background: var(--line); }
.wz-steps span.on { background: var(--blue); }
.wz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.wz-head h2 { font-size: 1.45rem; margin: 0; }
.wz-head p { color: var(--muted); margin: .2rem 0 0; }
.dropzone { border: 2px dashed var(--line-2); border-radius: 10px; padding: 1.2rem; display: flex; align-items: center; gap: 1rem; justify-content: center; cursor: pointer; color: var(--muted); }
.dropzone:hover { border-color: var(--blue-400); background: var(--blue-50); }
.dropzone img { max-height: 54px; }
.note { font-size: .85rem; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; margin-bottom: 1rem; }

.ind-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem 1.6rem; padding: 1.4rem 0; }
@media (max-width: 820px) { .ind-picker { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ind-picker { grid-template-columns: 1fr; } }
.ind-picker button { text-align: start; background: transparent; border: 0; cursor: pointer; padding: .6rem; border-radius: 10px; }
.ind-picker button:hover { background: var(--blue-50); }
.ind-picker b { display: block; font-size: 1.02rem; margin-bottom: .2rem; }
.ind-picker b::after { content: ' ‹'; color: var(--blue); }
[dir='ltr'] .ind-picker b::after { content: ' ›'; }
.ind-picker span { color: var(--muted); font-size: .82rem; }
.search-bar { display: flex; align-items: center; gap: .7rem; border-bottom: 1px solid var(--line); padding: .3rem 0 1rem; }
.search-bar input { border: 0; outline: none; flex: 1; font-size: 1rem; padding: .4rem 0; background: transparent; }

.mod-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 720px) { .mod-toggles { grid-template-columns: 1fr; } }
.mod-box { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mod-box h4 { margin: 0; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: .95rem; }
.mod-box .row { display: flex; align-items: center; justify-content: space-between; padding: .55rem 1rem; gap: 1rem; font-size: .92rem; }
.mod-box .row + .row { border-top: 1px dashed var(--line); }
.mod-box .row small { color: var(--muted); font-size: .76rem; }
