/* =====================================================================
   Protech Cloud — storefront styles
   ---------------------------------------------------------------------
   Extends the existing protechconcepts.co.ke design language rather than
   replacing it: same variables, same fonts (Rajdhani / Barlow / Barlow
   Condensed), same nav, buttons and footer. New components here are the
   ones a brochure site never needed — pricing cards, a comparison table,
   a signup wizard and a savings calculator.
   ===================================================================== */

:root {
    --orange:    #E87722;
    --dk-orange: #C55A0A;
    --charcoal:  #2A2A2A;
    --dark:      #1A1A1A;
    --white:     #fff;
    --light:     #F5F5F5;
    --text:      #555;
    --green:     #3E8B2F;
    --green2:    #5AAD48;
    --blue:      #1A5FA8;
    --blue2:     #2E7DD4;
    --line:      #e4e4e4;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
body {
    font-family: 'Barlow', sans-serif;
    background: #fff;
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------ nav */
nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 200;
    background: rgba(26,26,26,.97); backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%; height: 68px; border-bottom: 2px solid var(--orange);
}
.nav-logo { height: 42px; display: flex; align-items: center; text-decoration: none }
.nav-logo img { height: 42px }
.nav-wordmark {
    font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 22px;
    color: #fff; letter-spacing: .5px;
}
.nav-wordmark span { color: var(--orange) }
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center }
.nav-links a {
    font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: 1.5px;
    text-transform: uppercase; color: #bbb; text-decoration: none; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--orange) }
.nav-cta { background: var(--orange); color: #fff !important; padding: 8px 18px; border-radius: 2px }
.nav-cta:hover { background: var(--dk-orange) !important; color: #fff !important }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer }

/* ------------------------------------------------------------- buttons */
.btn-primary {
    background: var(--orange); color: #fff; padding: 13px 32px;
    font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: 2px;
    text-transform: uppercase; text-decoration: none; border-radius: 2px;
    transition: background .2s, transform .15s; display: inline-block; border: none; cursor: pointer;
}
.btn-primary:hover:not(:disabled) { background: var(--dk-orange); transform: translateY(-2px) }
.btn-primary:disabled { opacity: .55; cursor: not-allowed }
.btn-outline {
    border: 1.5px solid #555; color: #bbb; padding: 13px 32px; background: none;
    font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: 2px;
    text-transform: uppercase; text-decoration: none; border-radius: 2px; cursor: pointer;
    transition: border-color .2s, color .2s, transform .15s; display: inline-block;
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px) }
.btn-outline.dark { border-color: #ccc; color: var(--charcoal) }
.btn-outline.dark:hover { border-color: var(--orange); color: var(--orange) }
.btn-block { width: 100%; text-align: center }

/* ------------------------------------------------------------- layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 5% }
.section { padding: 86px 0 }
.section.tight { padding: 56px 0 }
.section.grey { background: var(--light) }
.section.darkbg { background: var(--dark) }
.eyebrow {
    font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 4px;
    text-transform: uppercase; color: var(--orange); margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; display: block; width: 36px; height: 2px; background: var(--orange) }
.eyebrow.center { justify-content: center }
.section-title {
    font-family: 'Rajdhani', sans-serif; font-size: clamp(30px, 4vw, 50px); font-weight: 700;
    color: var(--charcoal); line-height: 1.1; margin-bottom: 18px;
}
.section-title span { color: var(--orange) }
.darkbg .section-title { color: #fff }
.lede { font-size: 16px; line-height: 1.85; color: var(--text); max-width: 640px }
.darkbg .lede { color: #888 }
.center { text-align: center }
.center .lede { margin-left: auto; margin-right: auto }

/* --------------------------------------------------------------- hero */
.hero {
    background: var(--dark); position: relative; overflow: hidden;
    padding: 148px 0 96px; color: #fff;
}
.hero-grid-bg {
    position: absolute; inset: 0; opacity: .06;
    background-image:
        linear-gradient(rgba(232,119,34,.7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232,119,34,.7) 1px, transparent 1px);
    background-size: 50px 50px;
}
.hero-glow {
    position: absolute; width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(232,119,34,.16) 0%, transparent 65%);
    top: -160px; right: -100px; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2 }
.hero-headline {
    font-family: 'Rajdhani', sans-serif; font-size: clamp(40px, 5.6vw, 74px); font-weight: 700;
    color: #fff; line-height: .98; margin-bottom: 14px;
}
.hero-headline span { color: var(--orange) }
.hero-sub {
    font-family: 'Rajdhani', sans-serif; font-size: clamp(17px, 2.2vw, 26px);
    font-weight: 300; color: #999; margin-bottom: 22px;
}
.hero-desc { font-size: 15px; line-height: 1.85; color: #777; margin-bottom: 34px; max-width: 560px }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap }
.hero-note { margin-top: 18px; font-size: 13px; color: #666 }

/* ------------------------------------------------------- pricing cards */
.plan-toggle {
    display: inline-flex; background: #ececec; border-radius: 3px; padding: 4px; gap: 4px; margin: 0 auto 12px;
}
.plan-toggle button {
    border: 0; background: none; cursor: pointer; padding: 9px 22px; border-radius: 2px;
    font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: 1.5px;
    text-transform: uppercase; color: #777; transition: background .2s, color .2s;
}
.plan-toggle button.active { background: var(--charcoal); color: #fff }
.toggle-hint { font-size: 13px; color: var(--green); font-weight: 500; margin-bottom: 34px }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start }
.plan {
    background: #fff; border: 1.5px solid var(--line); border-radius: 4px; padding: 28px 22px 26px;
    display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, transform .2s;
    /* The cards sit inside a centred section; the feature list must still read
       as a list, so only the header block stays centred. */
    text-align: left;
}
.plan h3, .plan .plan-for, .plan .plan-price, .plan .plan-annual { text-align: center }
.plan:hover { box-shadow: 0 6px 26px rgba(0,0,0,.09); transform: translateY(-3px) }
.plan.featured { border-color: var(--orange); box-shadow: 0 6px 30px rgba(232,119,34,.16) }
.plan-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--orange); color: #fff; font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase; padding: 5px 14px; border-radius: 2px;
    white-space: nowrap;
}
.plan h3 {
    font-family: 'Rajdhani', sans-serif; font-size: 22px; font-weight: 700;
    color: var(--charcoal); margin-bottom: 4px;
}
.plan-for { font-size: 13px; color: #888; line-height: 1.6; min-height: 42px; margin-bottom: 16px }
.plan-price { font-family: 'Rajdhani', sans-serif; color: var(--charcoal); margin-bottom: 3px }
.plan-price .cur { font-size: 15px; font-weight: 500; vertical-align: 6px; color: #888 }
.plan-price .amt { font-size: 42px; font-weight: 700; line-height: 1 }
.plan-price .per { font-size: 14px; color: #888; font-weight: 400 }
.plan-annual { font-size: 12.5px; color: var(--green); min-height: 18px; margin-bottom: 18px }
.plan ul { list-style: none; margin-bottom: 22px; flex: 1 }
.plan li {
    font-size: 13.5px; line-height: 1.5; color: var(--text); padding: 6px 0 6px 22px;
    position: relative;
}
.plan li::before {
    content: ''; position: absolute; left: 0; top: 12px; width: 11px; height: 6px;
    border-left: 2px solid var(--green2); border-bottom: 2px solid var(--green2);
    transform: rotate(-45deg);
}
.plan li.limit { color: #999 }
.plan li.limit::before { border-color: #ccc }
.plan-compliance {
    margin-top: 26px; text-align: center; font-size: 14px; color: var(--text);
}
.plan-compliance a { color: var(--orange); font-weight: 500; text-decoration: none }
.plan-compliance a:hover { text-decoration: underline }

/* --------------------------------------------------- comparison table */
.compare { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff }
.compare th, .compare td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left }
.compare thead th {
    font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 1.5px;
    text-transform: uppercase; color: #888; background: var(--light); position: sticky; top: 68px;
}
.compare td.tick, .compare th.tick { text-align: center; width: 108px }
.compare tr.group td {
    background: #fafafa; font-family: 'Barlow Condensed', sans-serif; font-size: 12px;
    letter-spacing: 2px; text-transform: uppercase; color: var(--charcoal); font-weight: 600;
}
.yes { color: var(--green2); font-weight: 700 }
.no { color: #ccc }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px }

/* ---------------------------------------------------------- calculator */
.calc {
    background: #fff; border: 1.5px solid var(--line); border-radius: 4px; padding: 30px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
}
.calc-out { background: var(--light); border-radius: 3px; padding: 24px; text-align: center }
.calc-out .amt {
    font-family: 'Rajdhani', sans-serif; font-size: 40px; font-weight: 700; color: var(--charcoal); line-height: 1;
}
.calc-out .plan-name {
    font-family: 'Barlow Condensed', sans-serif; letter-spacing: 2px; text-transform: uppercase;
    color: var(--orange); font-size: 13px; margin-bottom: 8px;
}
.calc-out .note { font-size: 13px; color: #888; margin-top: 10px; line-height: 1.6 }

/* --------------------------------------------------------------- FAQ */
.faq { max-width: 780px; margin: 0 auto }
.faq details {
    border-bottom: 1px solid var(--line); padding: 16px 0; cursor: pointer;
}
.faq summary {
    font-family: 'Rajdhani', sans-serif; font-size: 19px; font-weight: 600; color: var(--charcoal);
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: '+'; color: var(--orange); font-size: 24px; font-weight: 400; line-height: 1 }
.faq details[open] summary::after { content: '−' }
.faq p { font-size: 15px; line-height: 1.8; color: var(--text); padding-top: 12px }

/* ------------------------------------------------------------- forms */
.form-group { margin-bottom: 16px }
.form-group label {
    display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 11px;
    letter-spacing: 1.5px; text-transform: uppercase; color: #888; margin-bottom: 5px;
}
.form-group .opt { color: #bbb; text-transform: none; letter-spacing: 0; font-size: 11px }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 11px 13px; border: 1.5px solid #e0e0e0; border-radius: 2px;
    background: #fafafa; font-family: 'Barlow', sans-serif; font-size: 14px;
    color: var(--charcoal); transition: border-color .2s; outline: none;
}
.form-group input:focus, .form-group select:focus { border-color: var(--orange); background: #fff }
.form-group input.bad { border-color: #e57373; background: #fff8f8 }
.form-group input.good { border-color: var(--green2) }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.field-note { font-size: 12.5px; margin-top: 5px; color: #999; line-height: 1.5; min-height: 17px }
.field-note.bad { color: #c62828 }
.field-note.good { color: #2e7d32 }
.checkline { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--text) }
.checkline input { width: auto; margin-top: 3px }

/* ------------------------------------------------------------ wizard */
.wizard { max-width: 760px; margin: 0 auto }
.steps { display: flex; gap: 0; margin-bottom: 34px; counter-reset: step }
.step-dot { flex: 1; text-align: center; position: relative; padding-top: 34px }
.step-dot::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 26px; height: 26px; border-radius: 50%; background: #e2e2e2; color: #999;
    font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.step-dot::after {
    content: ''; position: absolute; top: 13px; left: 50%; width: 100%; height: 2px; background: #e2e2e2; z-index: -1;
}
.step-dot:last-child::after { display: none }
.step-dot span {
    font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1.5px;
    text-transform: uppercase; color: #aaa;
}
.step-dot.active::before { background: var(--orange); color: #fff }
.step-dot.done::before { background: var(--green2); color: #fff; content: '✓' }
.step-dot.active span, .step-dot.done span { color: var(--charcoal) }

.card {
    background: #fff; border: 1.5px solid var(--line); border-radius: 4px; padding: 34px 32px;
    box-shadow: 0 2px 20px rgba(0,0,0,.05);
}
.card h2 {
    font-family: 'Rajdhani', sans-serif; font-size: 26px; font-weight: 700;
    color: var(--charcoal); margin-bottom: 6px;
}
.card .sub { font-size: 14.5px; color: #888; margin-bottom: 24px; line-height: 1.7 }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px }

.url-preview {
    font-family: 'Barlow Condensed', sans-serif; font-size: 14px; letter-spacing: .5px;
    color: var(--charcoal); background: var(--light); border-radius: 2px; padding: 9px 12px; margin-top: 7px;
}
.url-preview b { color: var(--orange) }

.summary-box { background: var(--light); border-radius: 3px; padding: 20px; margin-bottom: 20px }
.summary-line { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; color: var(--text) }
.summary-line.total {
    border-top: 1px solid #ddd; margin-top: 8px; padding-top: 11px;
    font-family: 'Rajdhani', sans-serif; font-size: 21px; font-weight: 700; color: var(--charcoal);
}
.pay-fallback {
    border: 1.5px dashed #d5d5d5; border-radius: 3px; padding: 18px; margin-top: 18px;
    font-size: 14px; line-height: 1.8; color: var(--text); background: #fcfcfc;
}
.pay-fallback b { color: var(--charcoal) }

.progress-track { height: 6px; background: #eee; border-radius: 3px; overflow: hidden; margin: 22px 0 14px }
.progress-bar { height: 100%; width: 0; background: var(--orange); transition: width .5s ease }
.prov-steps { list-style: none; font-size: 14px; color: #999 }
.prov-steps li { padding: 5px 0 5px 26px; position: relative }
.prov-steps li.done { color: var(--charcoal) }
.prov-steps li.done::before {
    content: '✓'; position: absolute; left: 0; color: var(--green2); font-weight: 700;
}
.prov-steps li.pending::before {
    content: '○'; position: absolute; left: 0; color: #ddd;
}

.alert { padding: 13px 16px; border-radius: 3px; font-size: 14px; line-height: 1.6; margin-bottom: 18px }
.alert.error { background: #fff3f3; border: 1px solid #ef9a9a; color: #c62828 }
.alert.ok { background: #f0faf0; border: 1px solid #81c784; color: #2e7d32 }
.alert.info { background: #f4f8fd; border: 1px solid #a9c9ea; color: #1a5fa8 }

.credentials {
    background: var(--dark); color: #fff; border-radius: 4px; padding: 24px; margin: 20px 0;
    font-family: 'Barlow Condensed', sans-serif; letter-spacing: .5px;
}
.credentials div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px }
.credentials .k { color: #888; text-transform: uppercase; font-size: 12px; letter-spacing: 2px }
.credentials .v { color: var(--orange); font-weight: 600 }

.spinner {
    width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
    border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: -3px; margin-right: 8px;
}
.spinner.dark { border-color: rgba(0,0,0,.15); border-top-color: var(--orange) }
@keyframes spin { to { transform: rotate(360deg) } }

/* ------------------------------------------------------------ feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #333 }
.feature-card { background: #242424; padding: 32px 26px; position: relative; overflow: hidden; transition: background .25s }
.feature-card:hover { background: #2c2c2c }
.feature-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px;
    background: var(--orange); transition: width .3s;
}
.feature-card:hover::after { width: 100% }
.feature-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 8px }
.feature-card p { font-size: 13px; color: #666; line-height: 1.7 }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 34px }
.flow-step { padding: 24px 20px; background: #fff; border: 1.5px solid var(--line); border-radius: 4px; position: relative }
.flow-step .n {
    font-family: 'Rajdhani', sans-serif; font-size: 34px; font-weight: 700; color: #eee; line-height: 1;
    position: absolute; top: 14px; right: 16px;
}
.flow-step h4 { font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700; color: var(--charcoal); margin-bottom: 7px }
.flow-step p { font-size: 13.5px; line-height: 1.7; color: var(--text) }

/* --------------------------------------------------------------- footer */
footer { background: var(--dark); padding: 38px 5% 22px; border-top: 3px solid var(--orange) }
.footer-inner {
    max-width: 1200px; margin: 0 auto; display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 18px;
}
.footer-links { display: flex; gap: 22px; list-style: none; flex-wrap: wrap }
.footer-links a { font-size: 12px; color: #555; text-decoration: none; transition: color .2s }
.footer-links a:hover { color: var(--orange) }
.footer-copy { font-size: 11px; color: #3a3a3a; margin: 18px auto 0; text-align: center; max-width: 1200px; display: block }

/* -------------------------------------------------------------- mobile */
@media (max-width: 1000px) {
    .plans { grid-template-columns: repeat(2, 1fr) }
    .feature-grid, .flow { grid-template-columns: repeat(2, 1fr) }
    .calc { grid-template-columns: 1fr }
}
@media (max-width: 760px) {
    .nav-links {
        display: none; position: absolute; top: 68px; left: 0; right: 0; background: rgba(26,26,26,.99);
        flex-direction: column; gap: 0; padding: 10px 0; border-bottom: 2px solid var(--orange);
    }
    .nav-links.open { display: flex }
    .nav-links li { width: 100%; text-align: center }
    .nav-links a { display: block; padding: 13px 0 }
    .nav-toggle { display: block }
    /* the horizontal lockup is 8:1, so 42px tall is 337px wide — dial it
       back here or it collides with the menu button on a phone */
    .nav-logo, .nav-logo img { height: 30px }
    .plans, .feature-grid, .flow, .form-row { grid-template-columns: 1fr }
    .section { padding: 60px 0 }
    .hero { padding: 120px 0 70px }
    .card { padding: 26px 20px }
    .step-dot span { font-size: 9px; letter-spacing: .5px }
    .compare thead th { position: static }
}
