/* Public website (marketing pages, registration, platform sign-in). Loaded by app/views/layouts/site.php. */
:root {
    --ink: #0d1b3e; --muted: #5b6680; --brand: #1a56db; --brand-dark: #0f3c9e; --brand-deep: #0b2a6f;
    --brand-soft: #e8f0fe; --accent: #ffb020; --green: #16a34a; --green-soft: #e7f7ee;
    --soft: #f4f7fc; --line: #e3e9f3; --card: #ffffff; --bg: #ffffff; --footer: #0c1730; --footer-ink: #b9c4dc;
    --shadow: 0 10px 30px rgba(16, 42, 100, .08); --shadow-lg: 0 24px 60px rgba(16, 42, 100, .14);
    --radius: 16px;
}
[data-theme="dark"] {
    --ink: #e8eefc; --muted: #9fb0d0; --brand: #4d86ff; --brand-dark: #2f6bf0; --brand-deep: #9cc0ff; --brand-soft: #16264a;
    --green-soft: #12301f; --soft: #0f1a33; --line: #22325a; --card: #13213f; --bg: #0b1428; --footer: #070e1e;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
}
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }
.muted, .text-muted { color: var(--muted) !important; }
.container-xl { max-width: 1220px; }

/* ---------- buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; }
.btn-brand { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border: 0; color: #fff; box-shadow: 0 8px 20px rgba(26, 86, 219, .28); }
.btn-brand:hover, .btn-brand:focus { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { background: var(--card); border: 1.5px solid var(--brand); color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-pill { border-radius: 999px; }
.btn-xl { padding: .85rem 1.6rem; font-size: 1rem; }
.btn-xl small { display: block; font-weight: 500; font-size: .72rem; opacity: .85; }
.btn-outline-primary { border-color: var(--brand); color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
[data-theme="dark"] .site-header { background: rgba(11, 20, 40, .92); }
.site-header .navbar { padding: .7rem 0; }
.brand-logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-logo .cube { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1.05rem;
    background: linear-gradient(135deg, #2f7bff, #0b3aa8); box-shadow: 0 6px 16px rgba(26, 86, 219, .35); }
.brand-logo .name { font-weight: 800; font-size: 1.22rem; color: var(--ink); line-height: 1; }
.brand-logo .sub { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; margin-top: 3px; }
.site-header .nav-link { color: var(--ink) !important; font-weight: 600; font-size: .93rem; padding: .5rem .85rem !important; position: relative; }
.site-header .nav-link:hover { color: var(--brand) !important; }
.site-header .nav-link.active { color: var(--brand) !important; }
.site-header .nav-link.active::after { content: ''; position: absolute; left: .85rem; right: .85rem; bottom: -2px; height: 2.5px; border-radius: 2px; background: var(--brand); }
.site-header .dropdown-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .5rem; min-width: 250px; background: var(--card); margin-top: .6rem; }
.site-header .dropdown-item { border-radius: 10px; padding: .55rem .75rem; display: flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 600; font-size: .9rem; }
.site-header .dropdown-item i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: .85rem; }
.site-header .dropdown-item small { display: block; color: var(--muted); font-weight: 500; }
.site-header .dropdown-item:hover { background: var(--soft); }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; }
.theme-toggle:hover { color: var(--brand); }
.navbar-toggler { border: 1px solid var(--line); color: var(--ink); }

/* ---------- generic sections ---------- */
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }
.section-soft { background: var(--soft); }
.section-title { font-size: 2rem; margin-bottom: .35rem; }
.section-sub { color: var(--muted); font-size: 1.02rem; margin-bottom: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--brand);
    background: var(--brand-soft); border: 1px solid rgba(26, 86, 219, .18); padding: .32rem .8rem; border-radius: 999px; }
.grad { background: linear-gradient(90deg, #1a56db, #2f8bff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px;
    background: radial-gradient(1200px 500px at 85% 10%, rgba(47, 139, 255, .14), transparent 60%), linear-gradient(180deg, var(--soft), var(--bg)); }
.hero h1 { font-size: 3.05rem; line-height: 1.12; margin: 18px 0 16px; }
.hero h1 .grad { display: block; }
.hero .lead { color: var(--muted); font-size: 1.08rem; max-width: 540px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin: 24px 0 30px; max-width: 560px; padding: 0; list-style: none; }
.check-grid li { display: flex; gap: 9px; align-items: center; font-weight: 600; font-size: .93rem; }
.check-grid i { color: #fff; background: var(--green); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* device mockup */
.mockup { position: relative; padding: 10px 0 30px 0; }
.laptop { background: #0f172a; border-radius: 18px 18px 6px 6px; padding: 10px; box-shadow: var(--shadow-lg); }
.laptop-base { height: 16px; margin: 0 -26px; background: linear-gradient(180deg, #cfd6e4, #9aa6bd); border-radius: 0 0 22px 22px; }
.screen { background: #fff; border-radius: 10px; display: grid; grid-template-columns: 112px 1fr; min-height: 300px; overflow: hidden; font-size: 10px; color: #0d1b3e; }
.screen .side { background: #0b2a6f; color: #c9d7f5; padding: 10px 8px; }
.screen .side .lg { color: #fff; font-weight: 800; font-size: 11px; margin-bottom: 10px; display: flex; gap: 6px; align-items: center; }
.screen .side div.it { padding: 5px 7px; border-radius: 6px; margin-bottom: 2px; display: flex; gap: 6px; align-items: center; }
.screen .side div.it.on { background: #1a56db; color: #fff; }
.screen .main { padding: 12px; background: #f5f8fd; }
.screen .hello { font-weight: 800; font-size: 12px; }
.screen .hello small { display: block; font-weight: 500; color: #6b7690; font-size: 9px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 10px 0; }
.kpi { border-radius: 8px; padding: 7px; background: #fff; border: 1px solid #e6ecf5; }
.kpi b { display: block; font-size: 12px; }
.kpi span { color: #6b7690; font-size: 8.5px; }
.kpi.k1 { background: linear-gradient(135deg, #1a56db, #2f8bff); color: #fff; border: 0; }
.kpi.k1 span { color: #d6e4ff; }
.kpi.k2 { background: #eaf8ef; } .kpi.k3 { background: #fff6e5; } .kpi.k4 { background: #f2edff; }
.panels { display: grid; grid-template-columns: 1.7fr 1fr; gap: 7px; }
.panel { background: #fff; border: 1px solid #e6ecf5; border-radius: 8px; padding: 8px; }
.panel h6 { font-size: 9.5px; font-weight: 800; margin: 0 0 6px; color: #0d1b3e; }
.donut { width: 70px; height: 70px; border-radius: 50%; margin: 4px auto; display: grid; place-items: center;
    background: conic-gradient(#16a34a 0 86%, #f59e0b 86% 96%, #ef4444 96% 100%); }
.donut::after { content: attr(data-v); width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 10px; }
.qa { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 7px; }
.qa div { background: #fff; border: 1px solid #e6ecf5; border-radius: 7px; text-align: center; padding: 6px 2px; font-size: 8px; font-weight: 600; }
.qa i { display: block; color: #1a56db; font-size: 11px; margin-bottom: 2px; }
.phone { position: absolute; right: -12px; bottom: 0; width: 150px; background: #0f172a; border-radius: 24px; padding: 7px; box-shadow: var(--shadow-lg); }
.phone .ps { background: #f5f8fd; border-radius: 18px; overflow: hidden; font-size: 9px; color: #0d1b3e; }
.phone .ph { background: linear-gradient(135deg, #1a56db, #0b2a6f); color: #fff; font-weight: 800; padding: 16px 10px 10px; }
.phone .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
.phone .tiles div { background: #fff; border-radius: 9px; text-align: center; padding: 9px 2px; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .05); }
.phone .tiles i { display: block; font-size: 14px; margin-bottom: 3px; }
.floaty { position: absolute; left: -18px; top: 46%; background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px 14px;
    display: flex; gap: 10px; align-items: center; font-size: .8rem; font-weight: 700; color: var(--ink); }
.floaty i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.floaty small { display: block; font-weight: 500; color: var(--muted); }

/* ---------- trust bar ---------- */
.trust { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 22px; margin-top: 8px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.trust .ti { display: flex; align-items: center; gap: 12px; padding: 0 10px; }
.trust .ti + .ti { border-left: 1px solid var(--line); }
.trust .ti i { font-size: 1.55rem; color: var(--brand); }
.trust .ti b { display: block; font-size: 1.02rem; color: var(--ink); line-height: 1.15; }
.trust .ti span { color: var(--muted); font-size: .82rem; }

/* ---------- cards ---------- */
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; height: 100%;
    transition: transform .18s, box-shadow .18s, border-color .18s; display: block; color: var(--ink); text-decoration: none !important; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(26, 86, 219, .35); color: var(--ink); }
.tile .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 12px; font-size: 1.35rem; }
.tile h6 { font-weight: 700; font-size: .95rem; margin: 0; }
.tile p { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.ic-red { background: #ffecef; color: #e11d48; } .ic-orange { background: #fff3e2; color: #ea7a00; } .ic-blue { background: var(--brand-soft); color: var(--brand); }
.ic-green { background: var(--green-soft); color: var(--green); } .ic-purple { background: #f1ebff; color: #7c3aed; } .ic-pink { background: #ffeaf6; color: #db2777; }
.ic-teal { background: #e3f8f6; color: #0d9488; } .ic-amber { background: #fff7db; color: #b45309; }
[data-theme="dark"] .ic-red, [data-theme="dark"] .ic-orange, [data-theme="dark"] .ic-green, [data-theme="dark"] .ic-purple,
[data-theme="dark"] .ic-pink, [data-theme="dark"] .ic-teal, [data-theme="dark"] .ic-amber { background: rgba(255, 255, 255, .07); }
.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; height: 100%; transition: box-shadow .18s, transform .18s; }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.feature-card > i, .feature-card .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 14px;
    background: var(--brand-soft); color: var(--brand); }
.feature-card h5 { font-size: 1.06rem; font-weight: 700; }
.feature-card p { color: var(--muted); margin: 0; font-size: .93rem; }
.feature-card ul { padding-left: 0; list-style: none; margin: 0; }
.feature-card ul li { padding: 5px 0 5px 26px; position: relative; color: var(--muted); font-size: .93rem; }
.feature-card ul li::before { content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; left: 0; top: 6px; font-size: .72rem;
    color: var(--green); background: var(--green-soft); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; }

.band { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 26px 28px; }
.band-illus { width: 120px; height: 104px; border-radius: 22px; display: grid; place-items: center; font-size: 3rem; color: #c87a1d;
    background: radial-gradient(circle at 30% 30%, #fff3dc, #ffe2b3); position: relative; flex: none; }
.band-illus .fa-leaf { position: absolute; right: -6px; top: -8px; font-size: 1.4rem; color: #16a34a; }

/* ---------- pricing ---------- */
.cycle-switch { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
.cycle-switch button { border: 0; background: transparent; padding: .45rem 1.2rem; border-radius: 999px; font-weight: 700; color: var(--ink); font-size: .9rem; }
.cycle-switch button.on { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; }
.cycle-switch .save { background: var(--accent); color: #3a2400; font-size: .68rem; padding: 2px 7px; border-radius: 999px; margin-left: 6px; font-weight: 800; }
.plan-card { border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; height: 100%; background: var(--card); display: flex; flex-direction: column;
    position: relative; transition: transform .18s, box-shadow .18s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card .ph { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.plan-card .ph i { font-size: 1.6rem; color: var(--green); }
.plan-card .ph h4 { font-size: 1.18rem; margin: 0; }
.plan-card .ph small { color: var(--muted); display: block; font-weight: 500; font-size: .82rem; }
.plan-card .price { font-size: 2.3rem; font-weight: 800; color: var(--ink); line-height: 1; text-align: center; margin-top: 4px; }
.plan-card .price small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.plan-card .price-alt { text-align: center; color: var(--muted); font-size: .86rem; margin-top: 6px; min-height: 1.2em; }
.plan-card ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.plan-card li { padding: 4px 0; color: var(--ink); font-size: .9rem; display: flex; gap: 9px; align-items: baseline; }
.plan-card li i { width: 16px; flex: none; }
.plan-card li.off { color: var(--muted); }
.plan-card.featured { background: linear-gradient(165deg, #1a56db, #0b2a6f); border: 0; color: #fff; box-shadow: 0 24px 50px rgba(15, 60, 158, .35); }
.plan-card.featured h4, .plan-card.featured .price, .plan-card.featured li { color: #fff; }
.plan-card.featured .ph small, .plan-card.featured .price small, .plan-card.featured .price-alt { color: #c9dbff; }
.plan-card.featured .ph i { color: var(--accent); }
.plan-card.featured li i { color: #7ee2a8 !important; }
.plan-card.featured .btn-brand { background: #fff; color: var(--brand-deep); box-shadow: none; }
.plan-card .ribbon { position: absolute; top: -12px; right: 18px; background: var(--accent); color: #3a2400; font-size: .72rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.compare-mini { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.compare-mini table { margin: 0; color: var(--ink); }
.compare-mini th { font-size: .82rem; background: var(--soft); border-top: 0 !important; color: var(--ink); }
.compare-mini td, .compare-mini th { border-color: var(--line) !important; padding: .5rem .75rem; font-size: .86rem; }
.compare th, .compare td { vertical-align: middle; border-color: var(--line) !important; color: var(--ink); }
.compare { background: var(--card); }
.compare thead th { background: var(--soft); }
.yes { color: var(--green); } .no { color: #c4cbd9; }

/* testimonials */
.quote-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); height: 100%; }
.quote-card .avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1.2rem;
    background: linear-gradient(135deg, #2f7bff, #0b3aa8); flex: none; }
.quote-card blockquote { font-size: .98rem; margin: 0 0 14px; color: var(--ink); }
.quote-card blockquote::before { content: '\201C'; font-size: 2.6rem; line-height: 0; vertical-align: -.45em; color: var(--brand); margin-right: 4px; font-weight: 800; }
.stars { color: #f5a524; font-size: .82rem; }

/* FAQ accordion */
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: .95rem; display: flex; justify-content: space-between; gap: 12px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--brand); font-weight: 600; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item[open] { box-shadow: var(--shadow); border-color: rgba(26, 86, 219, .3); }
.faq-item .ans { padding: 0 18px 16px; color: var(--muted); font-size: .93rem; }
.faq-illus { width: 120px; height: 120px; border-radius: 28px; display: grid; place-items: center; font-size: 3.2rem; color: #fff;
    background: linear-gradient(135deg, #3b8bff, #0b3aa8); box-shadow: var(--shadow-lg); transform: rotate(-6deg); }

/* CTA */
.cta { border-radius: 24px; padding: 34px 38px; background: linear-gradient(110deg, #e8f0fe, #f5f9ff 55%, #e3eeff); border: 1px solid #d8e5ff;
    display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
[data-theme="dark"] .cta { background: linear-gradient(110deg, #13244a, #0f1c3a); border-color: var(--line); }
.cta h2 { font-size: 1.85rem; margin: 0 0 6px; }
.cta .rocket { font-size: 4.2rem; color: var(--brand); transform: rotate(-12deg); opacity: .9; }

/* page hero for inner pages */
.page-hero { padding: 56px 0 46px; background: radial-gradient(900px 400px at 90% 0%, rgba(47, 139, 255, .16), transparent 60%), linear-gradient(180deg, var(--soft), var(--bg)); }
.page-hero h1 { font-size: 2.55rem; margin: 14px 0 10px; }
.page-hero .lead { color: var(--muted); max-width: 680px; font-size: 1.05rem; }
.crumbs { font-size: .82rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.prose { color: var(--muted); font-size: 1.02rem; line-height: 1.8; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 1.15rem; flex: none; }
.form-control { border-radius: 10px; border-color: var(--line); background: var(--card); color: var(--ink); }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 86, 219, .15); background: var(--card); color: var(--ink); }
label { font-weight: 600; font-size: .88rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer); color: var(--footer-ink); padding: 56px 0 22px; margin-top: 30px; font-size: .9rem; }
.site-footer h6 { color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: var(--footer-ink); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .brand-logo .name { color: #fff; }
.site-footer .brand-logo .sub { color: var(--footer-ink); }
.socials a { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .07); margin-right: 6px; color: #fff; }
.socials a:hover { background: var(--brand); }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 34px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .84rem; }
.subscribe { display: flex; background: #fff; border-radius: 10px; overflow: hidden; margin-top: 10px; }
.subscribe a { flex: 1; color: var(--muted) !important; padding: .6rem .8rem; font-size: .86rem; }
.subscribe span { background: var(--brand); color: #fff; padding: .6rem .9rem; }

/* registration / sign-in cards (shared layout) */
.card-form { max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); background: var(--card); color: var(--ink); }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.steps span { font-size: .85rem; padding: 4px 12px; border-radius: 20px; background: var(--soft); color: var(--muted); }
.steps span.on { background: var(--brand); color: #fff; }
.steps span.done { background: var(--brand-soft); color: var(--brand-dark); }
.alert { border-radius: 12px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .tile, .plan-card, .feature-card { transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1199px) { .hero h1 { font-size: 2.6rem; } .phone { width: 128px; right: -4px; } }
@media (max-width: 991px) {
    .site-header .nav-link.active::after { display: none; }
    .site-header .dropdown-menu { box-shadow: none; border: 0; margin: 0; }
    .mockup { margin-top: 36px; }
    .trust .ti + .ti { border-left: 0; }
    .trust { justify-content: flex-start; }
    .trust .ti { flex: 1 1 45%; }
}
@media (max-width: 575px) {
    .hero { padding-top: 36px; }
    .hero h1 { font-size: 2.05rem; }
    .page-hero h1 { font-size: 1.9rem; }
    .section { padding: 52px 0; }
    .section-title { font-size: 1.55rem; }
    .check-grid { grid-template-columns: 1fr; }
    .screen { grid-template-columns: 1fr; } .screen .side { display: none; }
    .kpis { grid-template-columns: 1fr 1fr; }
    .phone, .floaty { display: none; }
    .cta { padding: 26px 22px; } .cta .rocket { display: none; }
    .trust .ti { flex: 1 1 100%; }
}
.flex-none { flex: none; }
/* headings keep their weight when Bootstrap size classes (.h3 ...) are used */
.h1, .h2, .h3, .h4, .h5 { font-weight: 800; color: var(--ink); }
/* mockup placement: phone and badge sit outside the laptop screen */
.mockup { padding-right: 70px; }
.phone { right: -6px; bottom: -14px; width: 138px; }
.floaty { top: auto; bottom: 34px; left: -26px; }
/* stacked cards (contact page side column) take their natural height */
.stack > .feature-card { height: auto; }
@media (max-width: 991px) { .mockup { padding-right: 0; } .phone { right: 0; } }

/* ---------- sign-in page (app/views/auth/login.php) ---------- */
.auth-page { --ap: #7c3aed; --ap2: #4f2bd6; --ap-soft: #f1ecff; --ap-bg1: #f7f4ff; --ap-bg2: #ece6ff; background: var(--bg); min-height: 100vh; }
[data-theme="dark"] .auth-page { --ap: #8b5cf6; --ap2: #6d4af0; --ap-soft: #241a4d; --ap-bg1: #0b1028; --ap-bg2: #15123a; }
.auth-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.auth-wrap .auth-main { flex: 1; }

/* centred form */
.auth-main { display: flex; flex-direction: column; padding: 28px 40px; position: relative; overflow: hidden;
    background: radial-gradient(520px 420px at 100% 0%, var(--ap-bg2), transparent 70%),
                radial-gradient(460px 360px at 100% 100%, var(--ap-bg2), transparent 70%), var(--ap-bg1); }
.auth-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.auth-back:hover { color: var(--ap); text-decoration: none; }
.auth-card { width: 100%; max-width: 480px; margin: auto; padding: 40px 44px 32px; background: var(--card); border-radius: 28px;
    border: 1px solid rgba(124, 58, 237, .08); box-shadow: 0 30px 70px rgba(76, 45, 160, .14); position: relative; z-index: 1; }
[data-theme="dark"] .auth-card { border-color: var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.auth-card-logo { justify-content: center; margin-bottom: 18px; }
.auth-card-logo.brand-logo .brand-img { height: 84px; }
.auth-card h1 { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; font-size: 1.02rem; margin-bottom: 26px; }
.auth-card .wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out 1; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }
.auth-input { position: relative; }
.auth-input > i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: 1.05rem; }
.auth-input .form-control { height: 56px; padding-left: 50px; padding-right: 50px; font-size: 1rem; border-radius: 12px; }
.auth-page .form-control:focus { border-color: var(--ap); box-shadow: 0 0 0 3px rgba(124, 58, 237, .16); }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted);
    width: 40px; height: 40px; border-radius: 8px; }
.pw-toggle:hover { color: var(--ap); background: var(--ap-soft); }
.caps-hint { display: block; margin-top: 6px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 20px; }
.auth-row .custom-control-label { font-size: .93rem; color: var(--ink); cursor: pointer; }
.auth-page .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--ap); border-color: var(--ap); }
.auth-page .custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
.auth-forgot { font-weight: 700; font-size: .93rem; color: var(--ap); }
.auth-forgot:hover { color: var(--ap2); }
.btn-auth { height: 56px; border: 0; border-radius: 12px; color: #fff !important; font-weight: 700; font-size: 1.05rem;
    background: linear-gradient(90deg, var(--ap), var(--ap2)); box-shadow: 0 12px 26px rgba(91, 43, 224, .30); }
.btn-auth:hover { filter: brightness(1.07); }
.btn-auth:focus { box-shadow: 0 0 0 3px rgba(124, 58, 237, .3); }
.auth-card a:not(.btn):not(.brand-logo) { color: var(--ap); }
.auth-page .btn-ghost { border-color: var(--ap); color: var(--ap); border-radius: 12px; height: 50px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.auth-page .btn-ghost:hover { background: var(--ap-soft); color: var(--ap2); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 22px 0 14px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-foot { text-align: center; position: relative; z-index: 1; }
.auth-foot a { color: var(--muted); }
@media (max-width: 991px) {
    .auth-main { padding: 18px 16px; }
}
@media (max-width: 575.98px) {
    .auth-card { padding: 28px 20px 24px; border-radius: 22px; margin: 18px auto; }
    .auth-card-logo.brand-logo .brand-img { height: 64px; }
    .auth-card h1 { font-size: 1.65rem; }
}
@media (prefers-reduced-motion: reduce) { .auth-card .wave { animation: none; } }

/* Image brand logo (CodeDetox ShopMS) */
.brand-logo .brand-img { display: block; height: 52px; width: auto; max-width: 100%; }
.brand-img-dark { border-radius: 10px; }
.brand-logo .logo-dark { display: none; }
[data-theme="dark"] .brand-logo .logo-light { display: none; }
[data-theme="dark"] .brand-logo .logo-dark { display: block; border-radius: 10px; }
.site-footer .brand-img { height: 58px; }
@media (max-width: 575.98px) { .brand-logo .brand-img { height: 42px; } }

/* Contact page enquiry form (app/views/site/contact.php) */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.enquiry-done { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.enquiry-done .ic { flex: none; }

/* Legal pages (app/views/site/legal.php) */
.legal-doc { padding: 34px 38px; }
.legal-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 8px;
    border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9rem; font-weight: 600; }
.legal-sec { padding-top: 22px; scroll-margin-top: 96px; }
.legal-sec h2 { font-size: 1.22rem; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.legal-sec h2 .num { color: var(--brand); margin-right: 4px; }
.legal-sec p, .legal-sec li { color: var(--muted); font-size: .98rem; line-height: 1.8; }
.legal-sec b { color: var(--ink); }
.legal-sec ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.legal-sec li { margin-bottom: 6px; }
.legal-sec li::marker { color: var(--brand); }
.legal-side { position: sticky; top: 96px; }
.legal-toc ol { padding-left: 1.3rem; margin: 0; counter-reset: none; }
.legal-toc li { margin-bottom: 6px; font-size: .9rem; color: var(--muted); }
.legal-toc a { color: var(--muted); }
.legal-toc a:hover { color: var(--brand); text-decoration: none; }
.legal-links { list-style: none; padding: 0; margin: 0; }
.legal-links li { margin-bottom: 4px; }
.legal-links a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .93rem; }
.legal-links a i { width: 18px; text-align: center; color: var(--brand); }
.legal-links a:hover, .legal-links a.on { background: var(--brand-soft); text-decoration: none; color: var(--brand-dark); }
@media (max-width: 575.98px) { .legal-doc { padding: 22px 18px; } }
@media print {
    .site-header, .site-footer, .legal-side, .legal-meta .btn, .page-hero .crumbs { display: none !important; }
    .legal-doc { box-shadow: none !important; border: 0 !important; padding: 0 !important; }
    .col-lg-8 { flex: 0 0 100%; max-width: 100%; }
    .legal-sec { break-inside: avoid-page; }
    a { color: inherit !important; text-decoration: none !important; }
}

/* Contact page: what happens next */
.next-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.next-steps li { counter-increment: step; position: relative; padding-top: 40px; font-size: .9rem; color: var(--muted); }
.next-steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: .9rem; }
.next-steps b { display: block; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 575.98px) { .next-steps { grid-template-columns: 1fr; } }
.legal-sec p { margin-bottom: .85rem; }
.legal-side .feature-card { height: auto; }
.feature-card ul.legal-links li { padding-left: 0; }
.feature-card ul.legal-links li::before { content: none; }
