/*
 * SaccoLight public landing page — follows the HRMS landing pattern
 * (fixed header, hero with orbiting modules, feature grid, contact, footer)
 * and its right-side login sheet. Colours come from the SaccoLight logo.
 */

:root {
    --primary: #0F172A;
    --primary-hover: #020617;
    --primary-text: #0F172A;
    --primary-soft: rgba(15, 23, 42, 0.06);
    --brand-navy: #021629;
    --brand-navy-2: #0b2d4f;
    --brand-bright: #10B981;
    --brand-gradient: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%);
    --bg: #ffffff;
    --bg-soft: #F8FAFC;
    --fg: #0F172A;
    --fg-muted: #475569;
    --fg-subtle: #64748B;
    --border: #E2E8F0;
    --input: #E2E8F0;
    --ring: rgba(15, 23, 42, 0.12);
    --danger: #EF4444;
    --card: #ffffff;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
}

html.dark {
    color-scheme: dark;
    --primary-text: #34D399;
    --primary-soft: rgba(52, 211, 153, 0.12);
    --bg: #0B1220;
    --bg-soft: #101A2F;
    --fg: #F1F5F9;
    --fg-muted: #CBD5E1;
    --fg-subtle: #94A3B8;
    --border: #2A3B57;
    --input: #2A3B57;
    --ring: rgba(61, 220, 151, 0.3);
    --danger: #f87171;
    --card: #16213A;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .6);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body.landing {
    margin: 0;
    font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--fg);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
body.landing.panel-open { overflow: hidden; }

a { color: var(--primary-text); text-decoration: none; }
img { max-width: 100%; }
[data-lucide], svg.lucide { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; }

.container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* logo swap */
.brand-logo { height: 32px; width: auto; display: inline-block; }
.brand-logo-on-dark { display: none; }
.dark .brand-logo-default { display: none; }
.dark .brand-logo-on-dark { display: inline-block; }

/* ------------------------------------------------------------- buttons */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .625rem 1.25rem;
    border-radius: .5rem;
    border: 1px solid transparent;
    font: inherit; font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn-primary { background: #0F172A !important; border-color: #0F172A !important; color: #fff !important; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #020617 !important; border-color: #020617 !important; color: #fff !important; box-shadow: var(--shadow-lg); }
.btn-outline { background: var(--bg); border-color: var(--border); color: var(--fg); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-text); }
.btn-sm { padding: .5rem 1rem; font-size: 14px; }
.btn-lg { padding: .875rem 1.75rem; font-size: 16px; }

.icon-btn {
    height: 38px; width: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9999px; border: 0;
    background: transparent; color: var(--fg-subtle);
    cursor: pointer;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--fg); }
.icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.theme-toggle .icon-sun { display: none; }
.dark .theme-toggle .icon-moon { display: none; }
.dark .theme-toggle .icon-sun { display: inline-block; color: #eab308; }

/* -------------------------------------------------------------- header */

.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: var(--shadow-sm);
    transition: background-color .3s, box-shadow .3s, border-color .3s;
}
.dark .site-header { background: rgba(10, 10, 10, 0.88); border-bottom-color: rgba(38, 38, 38, 0.8); }
.site-header.scrolled {
    background: rgba(255, 255, 255, .98);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom-color: rgba(229, 231, 235, .8);
    box-shadow: var(--shadow-lg);
}
.dark .site-header.scrolled { background: rgba(10, 10, 10, .95); border-bottom-color: rgba(38, 38, 38, .8); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }
.site-header .brand { display: flex; align-items: center; }

.site-nav { display: none; align-items: center; gap: 2rem; }
.site-nav a {
    position: relative;
    font-size: 14px; font-weight: 500;
    color: var(--fg-muted);
    transition: color .2s;
}
.site-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -4px;
    width: 0; height: 2px; background: var(--primary);
    transition: width .25s;
}
.site-nav a:hover { color: var(--primary-text); }
.site-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-actions .btn { display: none; }
.menu-toggle { display: inline-flex; }

@media (min-width: 768px) {
    .site-nav { display: flex; }
    .header-actions .btn { display: inline-flex; }
    .menu-toggle { display: none; }
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--border);
    background: var(--bg);
    padding: .75rem 1rem 1rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: .625rem .25rem; color: var(--fg-muted); font-weight: 500; font-size: 15px; }
.mobile-menu .btn { display: flex; width: 100%; margin-top: .75rem; }
@media (min-width: 768px) { .mobile-menu, .mobile-menu.open { display: none; } }

/* ---------------------------------------------------------------- hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 7.5rem 0 4.5rem;
    background:
        radial-gradient(60rem 30rem at 85% 10%, rgba(1, 217, 137, .10), transparent 60%),
        radial-gradient(40rem 24rem at 0% 90%, rgba(11, 45, 79, .07), transparent 60%),
        var(--bg);
}
.dark .hero {
    background:
        radial-gradient(60rem 30rem at 85% 10%, rgba(1, 217, 137, .10), transparent 60%),
        radial-gradient(40rem 24rem at 0% 90%, rgba(11, 45, 79, .45), transparent 60%),
        var(--bg);
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 30% 70%, rgba(5, 150, 105, .35) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: .5;
    pointer-events: none;
}
.hero .grid {
    position: relative;
    display: grid; gap: 3rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .hero { padding: 9rem 0 6rem; }
    .hero .grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
}

.pill {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .375rem .875rem;
    border-radius: 9999px;
    background: var(--primary-soft);
    border: 1px solid rgba(5, 150, 105, .2);
    color: var(--primary-text);
    font-size: 13px; font-weight: 600;
}
.pill .dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--brand-bright); box-shadow: 0 0 0 4px rgba(1, 217, 137, .2); }

.hero h1 {
    margin: 1.25rem 0 1rem;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand-navy);
}
.dark .hero h1 { color: #f8fafc; }
.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hero .lead { font-size: 1.125rem; color: var(--fg-muted); max-width: 36rem; margin: 0 0 2rem; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
    margin-top: 2.5rem; padding-top: 2rem;
    border-top: 1px solid var(--border);
    max-width: 32rem;
}
.hero-stats .value { font-size: 1.5rem; font-weight: 800; color: var(--brand-navy); letter-spacing: -0.02em; }
.dark .hero-stats .value { color: #f8fafc; }
.hero-stats .label { font-size: 13px; color: var(--fg-subtle); }

/* orbit visual (HRMS hero: comet travelling a dashed track, modules lit as it passes) */
.orbit-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.orbit-glow {
    position: absolute; border-radius: 9999px; filter: blur(32px);
    animation: orb-float 7s ease-in-out infinite;
}
.orbit-glow.a { top: -1.5rem; right: -.5rem; width: 8rem; height: 8rem; background: rgba(1, 217, 137, .25); }
.orbit-glow.b { bottom: -1.5rem; left: -.5rem; width: 7rem; height: 7rem; background: rgba(11, 45, 79, .2); animation-duration: 9s; animation-delay: -3s; }
.orbit-backdrop { position: absolute; inset: 0; border-radius: 9999px; background: radial-gradient(circle, rgba(5, 150, 105, .08) 0%, rgba(5, 150, 105, .02) 55%, transparent 75%); }

.orbit {
    --r: 112px;
    position: relative;
    width: 300px; aspect-ratio: 1;
}
@media (min-width: 640px) { .orbit { width: 380px; --r: 148px; } }
@media (min-width: 1024px) { .orbit { width: 460px; --r: 182px; } }

.orbit-track { position: absolute; inset: 0; border-radius: 9999px; border: 2px dashed rgba(5, 150, 105, .22); }
.orbit-comet { position: absolute; inset: 0; animation: orbit-spin var(--orbit-s, 24s) linear infinite; }
.orbit-comet span {
    position: absolute; top: 50%; left: 50%;
    width: 12px; height: 12px; border-radius: 9999px;
    background: var(--brand-bright);
    box-shadow: 0 0 12px 4px rgba(1, 217, 137, .55);
    transform: translate(-50%, -50%) translateX(var(--r));
}

.orbit-hub {
    position: absolute; top: 50%; left: 50%; z-index: 2;
    transform: translate(-50%, -50%);
}
.orbit-hub .pulse { position: absolute; inset: 0; border-radius: 9999px; box-shadow: 0 0 0 3px rgba(5, 150, 105, .4); animation: hub-pulse 2.6s ease-out infinite; }
.orbit-hub .core {
    position: relative;
    width: 96px; height: 96px;
    border-radius: 9999px;
    background: #fff;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(5, 150, 105, .15);
    display: flex; align-items: center; justify-content: center;
}
.orbit-hub .core img { width: 62px; height: 62px; }
@media (min-width: 640px) { .orbit-hub .core { width: 116px; height: 116px; } .orbit-hub .core img { width: 76px; height: 76px; } }

.orbit-node {
    position: absolute; top: 50%; left: 50%;
    display: flex; flex-direction: column; align-items: center; gap: .3rem;
    transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
}
.orbit-node .ico {
    width: 44px; height: 44px; border-radius: 9999px;
    background: var(--card);
    border: 1px solid rgba(5, 150, 105, .14);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .08);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-text);
    animation: node-wave var(--orbit-s, 24s) linear infinite;
    animation-delay: var(--d);
    transition: transform .3s;
}
.orbit-node .ico:hover { transform: scale(1.1); }
.orbit-node .ico svg { width: 20px; height: 20px; }
.orbit-node .lbl { font-size: 11px; font-weight: 500; color: var(--fg-subtle); white-space: nowrap; line-height: 1; }
@media (min-width: 1024px) { .orbit-node .ico { width: 50px; height: 50px; } }

@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orb-float { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(0, -14px, 0) scale(1.05); } }
@keyframes hub-pulse { 0% { transform: scale(.9); opacity: .6; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@keyframes node-wave { 0% { box-shadow: 0 0 0 0 rgba(1, 217, 137, .45); } 8%, 100% { box-shadow: 0 0 0 10px rgba(1, 217, 137, 0); } }

/* ------------------------------------------------------------- sections */

.section { padding: 5rem 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.section-head .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-text); }
.section-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: .5rem 0 .75rem; color: var(--brand-navy); }
.dark .section-head h2 { color: #f8fafc; }
.section-head p { color: var(--fg-muted); margin: 0; }

.feature-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.feature {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}
.feature:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: rgba(5, 150, 105, .3); }
.feature .ico {
    width: 48px; height: 48px; border-radius: .875rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-soft); color: var(--primary-text);
    margin-bottom: 1rem;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.0625rem; font-weight: 700; margin: 0 0 .375rem; }
.feature p { margin: 0; color: var(--fg-muted); font-size: 15px; }

.steps { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { position: relative; padding: 1.75rem 1.5rem 1.5rem; border-radius: 1rem; background: var(--card); border: 1px solid var(--border); }
.step::before {
    counter-increment: step; content: counter(step);
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 9999px;
    background: var(--brand-gradient); color: #fff;
    font-weight: 800; font-size: 15px;
    margin-bottom: 1rem;
}
.step h3 { font-size: 1.0625rem; font-weight: 700; margin: 0 0 .375rem; }
.step p { margin: 0; color: var(--fg-muted); font-size: 15px; }

.about { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .about { grid-template-columns: 1fr 1fr; } }
.about h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: .5rem 0 1rem; color: var(--brand-navy); }
.dark .about h2 { color: #f8fafc; }
.about p { color: var(--fg-muted); }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist li svg { color: var(--primary-text); margin-top: .2rem; }

.about-card {
    position: relative; overflow: hidden;
    border-radius: 1.25rem;
    background: var(--brand-navy);
    color: #fff;
    padding: 2.5rem;
}
.about-card::before {
    content: ''; position: absolute; top: -4rem; right: -4rem;
    width: 16rem; height: 16rem; border-radius: 9999px;
    background: rgba(1, 217, 137, .18); filter: blur(40px);
}
/* white chip so the emblem's navy half stays visible on the navy card */
.about-card img {
    position: relative;
    width: 72px; height: 72px;
    padding: 10px;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(1, 217, 137, .18);
}
.about-card blockquote { position: relative; margin: 0; font-size: 1.25rem; line-height: 1.5; font-weight: 600; }
.about-card .who { position: relative; margin-top: 1.25rem; color: #94a3b8; font-size: 14px; }

.contact-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-card {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 1rem; padding: 1.5rem;
    color: var(--fg);
    transition: border-color .2s, box-shadow .2s;
}
a.contact-card:hover { border-color: rgba(5, 150, 105, .35); box-shadow: var(--shadow-lg); }
.contact-card .ico { width: 44px; height: 44px; border-radius: .75rem; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary-text); flex-shrink: 0; }
.contact-card .k { font-size: 13px; color: var(--fg-subtle); }
.contact-card .v { font-weight: 600; word-break: break-word; }

.cta-band {
    position: relative; overflow: hidden;
    border-radius: 1.25rem;
    background: var(--brand-gradient);
    color: #fff;
    padding: 2.5rem 2rem;
    display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
}
.cta-band h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { margin: .375rem 0 0; color: rgba(255, 255, 255, .85); }
.cta-band .btn-white { background: #fff; color: var(--brand-navy); border-color: #fff; }
.cta-band .btn-white:hover { background: var(--brand-navy); color: #fff; border-color: var(--brand-navy); }

.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; background: var(--bg); }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.site-footer p { margin: 0; color: var(--fg-subtle); font-size: 14px; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer nav a { color: var(--fg-subtle); font-size: 14px; }
.site-footer nav a:hover { color: var(--primary-text); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------- login sheet (right) */

.sheet-overlay {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(0, 0, 0, .5);
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.sheet {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
    width: 100%; max-width: 28rem;
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s cubic-bezier(.32, .72, 0, 1), visibility .35s;
}
.panel-open .sheet-overlay { opacity: 1; visibility: visible; }
.panel-open .sheet { transform: none; visibility: visible; }

.sheet .close {
    position: absolute; top: 1rem; right: 1rem;
    opacity: .7;
    z-index: 20;
}
.sheet .close:hover { opacity: 1; }
.sheet-head {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    padding: 1.5rem 1.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
}
.sheet-head .brand-logo { height: 40px; margin-bottom: 1.5rem; }
.sheet-head h2 { font-size: 1.25rem; font-weight: 600; margin: 0; color: var(--fg); }
.sheet-head p { font-size: 14px; color: var(--fg-subtle); margin: .25rem 0 0; }
.sheet-body { padding: 1rem 1.5rem 2rem; }

.sheet [data-mode] { display: none; }
.sheet[data-active-mode="login"] [data-mode="login"],
.sheet[data-active-mode="register"] [data-mode="register"],
.sheet[data-active-mode="forgot"] [data-mode="forgot"],
.sheet[data-active-mode="verify"] [data-mode="verify"] { display: block; }
.sheet[data-active-mode="verify"] .sheet-tabs { display: none; }

.field { margin-bottom: 1rem; }
.field label, .label-row label { display: block; font-size: 14px; font-weight: 500; color: var(--fg); margin-bottom: .5rem; }
.field label .req { color: var(--danger); margin-left: 2px; }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.label-row label { margin: 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--primary-text); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

.input {
    width: 100%;
    height: 40px;
    padding: .5rem .75rem;
    font: inherit; font-size: 14px;
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--input);
    border-radius: .375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
    transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #9ca3af; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.input.invalid { border-color: var(--danger); }
.field-error { display: block; font-size: 13px; color: var(--danger); margin-top: .375rem; }

.password-wrap { position: relative; }
.password-wrap .input { padding-right: 2.5rem; }
.password-toggle {
    position: absolute; right: 0; top: 0;
    height: 40px; width: 40px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: 0; color: #9ca3af; cursor: pointer;
}
.password-toggle:hover { color: var(--fg-muted); }
.password-toggle svg { width: 16px; height: 16px; }

.check { display: flex; align-items: center; gap: .5rem; margin: 1rem 0 1.25rem; }
.check input { width: 14px; height: 14px; accent-color: var(--primary); margin: 0; }
.check label { margin: 0; font-size: 14px; color: var(--fg-subtle); }

.btn-block { display: flex; width: 100%; }
.btn-submit { transition: transform .2s, box-shadow .2s, background-color .2s; }
.btn-submit:hover { transform: scale(1.02); }
.btn-submit:disabled { opacity: .55; transform: none; cursor: default; }

.notice {
    text-align: center;
    font-size: 14px; font-weight: 500;
    padding: .75rem; border-radius: .5rem; border: 1px solid;
    margin-bottom: 1.25rem;
}
.notice.error { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.notice.success { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.dark .notice.error { color: #f87171; background: rgba(127, 29, 29, .2); border-color: rgba(153, 27, 27, .35); }
.dark .notice.success { color: #4ade80; background: rgba(20, 83, 45, .2); border-color: rgba(22, 101, 52, .35); }

.sheet .alt { text-align: center; margin-top: 1.25rem; font-size: 14px; color: var(--fg-subtle); }
.sheet .divider { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0 1rem; color: var(--fg-subtle); font-size: 12px; }
.sheet .divider::before, .sheet .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .orbit-comet, .orbit-glow, .orbit-hub .pulse, .orbit-node .ico { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .sheet, .sheet-overlay { transition: none; }
    .btn-primary:hover, .btn-submit:hover, .feature:hover { transform: none; }
}

/* "Continue with Google" (white outline button with the multicolour G) */
.social-divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0 1rem; color: #6b7280; font-size: 12px; }
.social-divider::before, .social-divider::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }
.google-btn {
    display: flex; align-items: center; justify-content: center; gap: .625rem;
    width: 100%;
    padding: .625rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: .375rem;
    background: #fff;
    color: #1f2937 !important;
    font-size: 14px; font-weight: 500;
    text-decoration: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
    transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.google-btn:hover { background: #f9fafb; border-color: #9ca3af; }
.google-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.google-btn .google-g { width: 18px; height: 18px; flex-shrink: 0; }
.dark .social-divider { color: var(--fg-subtle); }
.dark .social-divider::before, .dark .social-divider::after { background: var(--border); }
.dark .google-btn { background: #141414; border-color: #3f3f46; color: #f4f4f5 !important; }
.dark .google-btn:hover { background: #1f1f1f; border-color: #52525b; }

/* ------------------------------------------------ pricing (public plans) */
@media (max-width: 479.98px) { .hide-xs { display: none !important; } }
.pricing-grid { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 640px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); } }
.price-card {
    position: relative; display: flex; flex-direction: column;
    padding: 1.75rem 1.5rem 1.5rem; background: var(--card); border: 1px solid var(--border);
    border-radius: 1rem; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.price-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.price-card.featured { border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring), var(--shadow-lg); }
.price-chip {
    align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--primary-text);
    background: var(--primary-soft); border-radius: 9999px; padding: .25rem .625rem; margin-bottom: .75rem;
}
.price-card h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 .25rem; color: var(--brand-navy); }
.dark .price-card h3 { color: #f8fafc; }
.price-desc { font-size: 14px; color: var(--fg-muted); margin: 0 0 .75rem; }
.price { display: flex; align-items: baseline; gap: .25rem; margin: .5rem 0 0; }
.price .cur { font-size: 14px; font-weight: 600; color: var(--fg-subtle); }
.price .amount { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.price .per { font-size: 14px; color: var(--fg-subtle); }
.price-yearly { font-size: 13px; color: var(--fg-subtle); }
.price-limits, .price-features { list-style: none; padding: 0; margin: 1.25rem 0 0; font-size: 14px; }
.price-limits { padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.price-limits li, .price-features li { display: flex; align-items: flex-start; gap: .5rem; padding: .25rem 0; }
.price-limits svg { width: 16px; height: 16px; color: var(--fg-subtle); margin-top: .2rem; flex-shrink: 0; }
.price-features { flex: 1; margin-bottom: 1.5rem; }
.price-features svg { width: 16px; height: 16px; color: var(--primary-text); margin-top: .2rem; flex-shrink: 0; }
.sheet .alt-note { margin-top: .5rem; font-size: 13px; }
.price .amount-text { font-size: 1.5rem; }


/* ------------------------------------------------ Register SACCO Wizard in Sheet */
.sheet { max-width: 32rem; } /* Expanded for step wizard comfort */
.sheet-tabs {
    display: flex;
    border-bottom: 2px dashed var(--border);
    margin: 0 -1.5rem 1.25rem -1.5rem;
    padding: 0 1.5rem;
    gap: 0.5rem;
}
.sheet-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1rem;
    font-size: 14px;
    font-weight: 700;
    color: var(--fg-subtle);
    cursor: pointer;
    transition: all .2s;
}
.sheet-tab-btn:hover { color: var(--primary); }
.sheet-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Stepper Progress Bar */
.sacco-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
}
.sacco-stepper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--border);
    transform: translateY(-50%);
    z-index: 1;
}
.stepper-progress {
    position: absolute;
    top: 50%;
    left: 20px;
    height: 3px;
    background: var(--primary);
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.3s ease;
}
.step-item {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg);
    padding: 0 0.5rem;
    cursor: pointer;
}
.step-num {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--bg);
    border: 2px solid var(--border);
    color: var(--fg-subtle);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.step-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fg-subtle);
}
.step-item.active .step-num {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 0 4px var(--ring);
}
.step-item.active .step-label {
    color: var(--primary);
}
.step-item.completed .step-num {
    background: #E8F8F0;
    border-color: #27AE60;
    color: #27AE60;
}

/* Step Panes */
.wizard-step-pane {
    display: none;
    animation: fadeIn 0.25s ease both;
}
.wizard-step-pane.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Plan Picker inside Sheet */
.plan-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}
.plan-card-mini {
    position: relative;
    cursor: pointer;
    margin: 0;
}
.plan-card-mini input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.plan-card-mini-body {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: var(--surface-cream, #FFF8E7);
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all .2s;
    height: 100%;
}
.plan-card-mini:hover .plan-card-mini-body {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.plan-card-mini input:checked + .plan-card-mini-body {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--ring);
}
.plan-card-mini .p-name {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--fg);
}
.plan-card-mini .p-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    margin-top: 0.2rem;
}
.plan-card-mini .p-trial {
    font-size: 11px;
    color: #27AE60;
    font-weight: 600;
}

/* Step Wizard Buttons */
.wizard-nav-btns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}
.field-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
@media (max-width: 480px) {
    .field-row-2 { grid-template-columns: 1fr; }
}

/* SalesManager design system: Plus Jakarta Sans headings, flat cards, emerald accents */
h1, h2, h3, h4, h5, h6 { font-family: 'Plus Jakarta Sans', 'DM Sans', ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.02em; }
.feature:hover { transform: none; }
.btn-primary:hover { transform: none !important; }
