/* ============================================================
   Sibol Landing Page CSS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue:      #005dcb;
    --blue-50:   #eff6ff;
    --blue-100:  #dbeafe;
    --blue-700:  #004aaa;
    --green:     #059669;
    --green-50:  #ecfdf5;
    --amber:     #d97706;
    --amber-50:  #fffbeb;
    --purple:    #7c3aed;
    --purple-50: #f5f3ff;
    --navy:      #0f172a;
    --gray-50:   #f8fafc;
    --gray-100:  #f1f5f9;
    --gray-200:  #e2e8f0;
    --gray-500:  #64748b;
    --gray-700:  #334155;
    --gray-900:  #0f172a;
    --surface:   #ffffff;
    --r:         8px;
    --r-lg:      14px;
    --r-xl:      20px;
    --shadow:    0 4px 6px -1px rgba(0,0,0,.07),0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.08),0 8px 10px -6px rgba(0,0,0,.04);
}

body {
    font-family: system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
    font-size: 15px;
    color: var(--gray-700);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
.nav {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 50;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-logo {
    width: 32px; height: 32px;
    border-radius: var(--r);
    background: var(--blue);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px;
}

.nav-name { font-size: 16px; font-weight: 700; color: var(--gray-900); }

.nav-links {
    display: flex;
    gap: 24px;
    flex: 1;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    transition: color .15s;
}

.nav-links a:hover { color: var(--blue); }

.nav-cta {
    padding: 8px 18px;
    background: var(--blue);
    color: #fff;
    border-radius: var(--r);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s;
    box-shadow: 0 1px 3px rgba(0,93,203,.25);
}

.nav-cta:hover { background: var(--blue-700); color: #fff; }

/* ── Hero ── */
.hero {
    background: #f5ede0;
    padding: 72px 24px 80px;
    border-bottom: 1px solid #e8d8c4;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-left {}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e8d8c4;
    color: #92600a;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.03em;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    color: #1a1208;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin-bottom: 20px;
}

.hero-title span { color: var(--blue); }

.hero-sub {
    font-size: 16px;
    color: #6b5a45;
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 420px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    background: var(--blue);
    color: #fff;
    border-radius: var(--r-lg);
    font-size: 14px;
    font-weight: 700;
    transition: all .15s;
    box-shadow: 0 4px 14px rgba(0,93,203,.3);
}

.btn-hero-primary:hover { background: var(--blue-700); color: #fff; }

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 22px;
    border: 1px solid #d9c9b4;
    border-radius: var(--r-lg);
    font-size: 14px;
    font-weight: 600;
    color: #3d2e1a;
    background: #fff;
    transition: all .15s;
}

.btn-hero-ghost:hover { border-color: var(--blue); color: var(--blue); }

.hero-trust {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #8a7560;
}

.hero-trust span { display: flex; align-items: center; gap: 6px; }
.hero-trust i { font-size: 14px; color: var(--green); }

/* ── Hero visual (mock dashboard) ── */
.hero-visual-wrap { position: relative; padding: 20px 0; }

.hero-visual {
    background: #fff;
    border: 1px solid #e8d8c4;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(139,90,30,0.1);
}

.visual-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0e8da;
}

.visual-topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1a1208;
}

.visual-logo {
    width: 26px; height: 26px;
    border-radius: 6px;
    background: var(--blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #fff;
}

.visual-active-badge {
    font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 20px;
    background: #ecfdf5; color: #059669;
    border: 1px solid #d1fae5;
}

.visual-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.vs-card {
    background: #faf6f0;
    border: 1px solid #ecddc8;
    border-radius: 10px;
    padding: 12px;
}

.vs-label { font-size: 10px; color: #8a7560; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.vs-val   { font-size: 18px; font-weight: 700; color: #1a1208; }
.vs-sub   { font-size: 10px; color: #059669; margin-top: 2px; }

.visual-chart {
    background: #faf6f0;
    border: 1px solid #ecddc8;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}

.visual-chart-label { font-size: 11px; color: #8a7560; margin-bottom: 10px; }

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 56px;
}

.chart-bar { flex: 1; border-radius: 3px 3px 0 0; background: #bfdbfe; }
.chart-bar.hi     { background: #93c5fd; }
.chart-bar.active { background: var(--blue); }

.visual-orders { display: flex; flex-direction: column; gap: 6px; }

.vo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #faf6f0;
    border: 1px solid #ecddc8;
    border-radius: 8px;
    padding: 8px 12px;
}

.vo-name { font-size: 12px; color: #3d2e1a; font-weight: 500; }
.vo-qty  { font-size: 11px; color: #8a7560; }
.vo-amt  { font-size: 12px; font-weight: 700; color: var(--blue); }

/* Floating badges */
.float-badge {
    position: absolute;
    background: #fff;
    border: 1px solid #e8d8c4;
    border-radius: 12px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(139,90,30,0.12);
    font-size: 12px;
    font-weight: 600;
    color: #1a1208;
    z-index: 2;
}

.float-badge-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
}

.fb-green { background: #ecfdf5; color: #059669; }
.fb-amber { background: #fffbeb; color: #b45309; }
.float-badge-sub { font-size: 10px; color: #8a7560; font-weight: 500; }
.badge-top    { top: -16px; right: 20px; }
.badge-bottom { bottom: -16px; left: 16px; }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-50); }

.section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 12px;
}

.section-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.02em;
    margin-bottom: 12px;
}

.section-sub {
    font-size: 16px;
    color: var(--gray-500);
    max-width: 560px;
    margin-bottom: 48px;
    line-height: 1.7;
}

/* ── Features ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    transition: all .2s;
}

.feature-card:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-2px); }

.feature-icon {
    width: 44px; height: 44px;
    border-radius: var(--r);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.feature-icon.blue   { background: var(--blue-50);   color: var(--blue); }
.feature-icon.green  { background: var(--green-50);  color: var(--green); }
.feature-icon.amber  { background: var(--amber-50);  color: var(--amber); }
.feature-icon.purple { background: var(--purple-50); color: var(--purple); }

.feature-card h3 { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.feature-card p  { font-size: 13px; color: var(--gray-500); line-height: 1.6; }

/* ── Steps ── */
.steps {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    justify-content: center;
}

.step {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 28px 20px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--r-lg);
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.step-num {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 2px 8px rgba(0,93,203,.25);
}

.step h3 { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.step p  { font-size: 13px; color: var(--gray-500); line-height: 1.6; }

.step-arrow { color: var(--gray-200); font-size: 24px; margin-top: 60px; flex-shrink: 0; }

/* ── Pricing ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--r-xl);
    padding: 28px 24px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.pricing-card.featured {
    border-color: var(--blue);
    border-width: 2px;
    box-shadow: 0 8px 24px rgba(0,93,203,.12);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-plan   { font-size: 14px; font-weight: 700; color: var(--gray-500); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.pricing-price  { font-size: 36px; font-weight: 800; color: var(--gray-900); letter-spacing: -.03em; line-height: 1; }
.pricing-period { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }
.pricing-desc   { font-size: 13px; color: var(--gray-500); line-height: 1.6; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200); }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.pricing-features li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-700); }
.pricing-features li i { font-size: 15px; color: var(--green); flex-shrink: 0; }
.pricing-features li.muted { color: var(--gray-500); }
.pricing-features li.muted i { color: var(--gray-200); }

.pricing-btn {
    display: block;
    text-align: center;
    padding: 11px 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--r);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    transition: all .15s;
}

.pricing-btn:hover { border-color: var(--blue); color: var(--blue); }

.pricing-btn-primary {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,93,203,.25);
}

.pricing-btn-primary:hover { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }

.pricing-note {
    font-size: 13px;
    color: var(--gray-500);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pricing-note a { color: var(--blue); font-weight: 500; }

/* ── CTA ── */
.cta-section {
    background: var(--blue);
    padding: 72px 24px;
    text-align: center;
}

.cta-section h2 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -.02em; }
.cta-section p  { font-size: 16px; color: rgba(255,255,255,.8); margin-bottom: 32px; }
.cta-section .btn-hero-primary {
    background: #fff;
    color: var(--blue);
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.cta-section .btn-hero-primary:hover { background: var(--blue-50); color: var(--blue-700); }

/* ── Footer ── */
.footer {
    background: var(--navy);
    padding: 40px 24px;
}

.footer .container { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.5); transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.3); }

/* ── Register page ── */
.register-page { background: var(--gray-50); min-height: 100vh; overflow-y: auto; }

.register-wrap {
    display: grid;
    grid-template-columns: 380px 1fr;
    min-height: 100vh;
}

.register-left {
    background: var(--navy);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.register-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.5);
    transition: color .15s;
}

.register-back:hover { color: #fff; }

.register-title { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.register-sub   { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.6; }

.register-steps { display: flex; flex-direction: column; gap: 16px; margin-top: auto; }

.register-step {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: .4;
}

.register-step.active { opacity: 1; }

.rs-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: rgba(255,255,255,.6);
    flex-shrink: 0;
}

.register-step.active .rs-num { background: var(--blue); color: #fff; }

.rs-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); }
.rs-desc  { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 1px; }

.register-right { padding: 40px; overflow-y: auto; display: flex; align-items: flex-start; justify-content: center; }

.register-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--r-xl);
    padding: 32px;
    width: 100%;
    max-width: 580px;
    box-shadow: var(--shadow);
}

.register-card-title { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 24px; }

.reg-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}

.reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reg-group { margin-bottom: 14px; }

.reg-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.req { color: var(--blue); }

.reg-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--r);
    background: #fff;
    color: var(--gray-900);
    font-size: 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}

.reg-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,93,203,.1); }
.reg-input.is-invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
select.reg-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; cursor: pointer; }

.subdomain-wrap { position: relative; display: flex; align-items: center; }
.subdomain-input { border-radius: var(--r) 0 0 var(--r); border-right: none; flex: 1; }
.subdomain-suffix { padding: 9px 12px; background: var(--gray-50); border: 1px solid var(--gray-200); border-left: none; border-radius: 0 var(--r) var(--r) 0; font-size: 13px; color: var(--gray-500); white-space: nowrap; font-weight: 500; }

.reg-hint     { font-size: 12px; color: var(--gray-500); margin-top: 4px; min-height: 18px; }
.reg-hint.available { color: #059669; font-weight: 500; }
.reg-hint.taken     { color: #dc2626; font-weight: 500; }
.reg-error    { font-size: 11px; color: #dc2626; margin-top: 4px; }

.reg-terms { margin: 16px 0; }
.reg-check-label { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--gray-500); cursor: pointer; }
.reg-check-label input { margin-top: 2px; accent-color: var(--blue); }
.reg-check-label a { color: var(--blue); font-weight: 500; }

.reg-submit {
    width: 100%;
    padding: 13px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--r-lg);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .15s;
    box-shadow: 0 2px 8px rgba(0,93,203,.3);
    font-family: inherit;
}

.reg-submit:hover { background: var(--blue-700); box-shadow: 0 4px 14px rgba(0,93,203,.35); }

.reg-alert {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: var(--r);
    padding: 10px 14px;
    font-size: 13px;
    color: #b91c1c;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.reg-login { font-size: 13px; color: var(--gray-500); text-align: center; margin-top: 16px; }
.reg-login a { color: var(--blue); font-weight: 500; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual-wrap { display: none; }
    .hero-title { font-size: 32px; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .steps { flex-direction: column; align-items: center; }
    .step-arrow { transform: rotate(90deg); margin: 0; }
    .nav-links { display: none; }
    .register-wrap { grid-template-columns: 1fr; }
    .register-left { position: static; height: auto; }
    .register-right { padding: 20px; }
    .reg-row { grid-template-columns: 1fr; }
}

/* ── Password show/hide (register page) ── */
.pw-wrap {
    position: relative;
    display: block;
}

.pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 16px;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: color .15s;
    z-index: 2;
}

.pw-toggle:hover { color: #111827; }

.pw-wrap input { padding-right: 36px; width: 100%; }

/* ── Password strength (register page) ── */
.pw-requirements {
    font-size: 11px;
    color: #6b7280;
    margin-top: 5px;
    line-height: 1.5;
    padding: 6px 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.pw-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.pw-strength-bar {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.pw-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width .3s ease, background .3s ease;
}

.pw-strength-label {
    font-size: 11px;
    font-weight: 600;
    min-width: 70px;
    text-align: right;
}

/* ── Ensure pw-wrap doesn't break reg-row layout ── */
.reg-row .pw-wrap,
.reg-group .pw-wrap {
    display: block;
    width: 100%;
}

.reg-group .pw-wrap input.reg-input {
    width: 100%;
    padding-right: 38px;
}
