/* ==========================================================================
   SchoolComs — public site
   Design tokens
   ========================================================================== */

:root {
    --sc-ink: #10271b;        /* deep green-black: dark surfaces, headings */
    --sc-dark: #173b2c;       /* brand dark green */
    --sc-green: #1f7a4d;      /* brand green */
    --sc-green-deep: #15603b; /* hover / emphasis */
    --sc-wa: #25d366;         /* WhatsApp green — CTAs on dark surfaces */
    --sc-tint: #f2f7f3;       /* alternating section background */
    --sc-tint-strong: #e2efe7;
    --sc-line: #e1eae4;       /* hairline borders */
    --sc-body: #44574c;       /* body copy */

    --bs-link-color: var(--sc-green);
    --bs-link-hover-color: var(--sc-green-deep);
    --bs-link-color-rgb: 31, 122, 77;
    --bs-link-hover-color-rgb: 21, 96, 59;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--sc-body);
    background: #fff;
}

h1, h2, h3, h4, h5, h6 { color: var(--sc-ink); }
h1, h2 { font-weight: 800; letter-spacing: -.02em; }
.lead { font-weight: 400; }
.text-muted { color: #5b6e62 !important; }
::selection { background: rgba(37, 211, 102, .35); }

section[id] { scroll-margin-top: 84px; }
.section-tint { background: var(--sc-tint); }

/* Centered intro block above each section */
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head p { margin-bottom: 0; }
.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sc-green);
    margin-bottom: .6rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    --bs-btn-border-radius: 999px;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease,
                color .15s ease, background-color .15s ease, border-color .15s ease;
}

.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--sc-green);
    --bs-btn-border-color: var(--sc-green);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--sc-green-deep);
    --bs-btn-hover-border-color: var(--sc-green-deep);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--sc-green-deep);
    --bs-btn-active-border-color: var(--sc-green-deep);
    --bs-btn-focus-shadow-rgb: 31, 122, 77;
    box-shadow: 0 8px 20px rgba(31, 122, 77, .22);
}

/* Bright WhatsApp green with dark text — for dark surfaces */
.btn-wa {
    --bs-btn-color: #07301d;
    --bs-btn-bg: var(--sc-wa);
    --bs-btn-border-color: var(--sc-wa);
    --bs-btn-hover-color: #07301d;
    --bs-btn-hover-bg: #3ddf75;
    --bs-btn-hover-border-color: #3ddf75;
    --bs-btn-active-color: #07301d;
    --bs-btn-active-bg: #1fc25b;
    --bs-btn-active-border-color: #1fc25b;
    --bs-btn-focus-shadow-rgb: 37, 211, 102;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .30);
}

.btn-ghost-light {
    --bs-btn-color: #fff;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: rgba(255, 255, 255, .35);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, .12);
    --bs-btn-hover-border-color: rgba(255, 255, 255, .5);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(255, 255, 255, .18);
    --bs-btn-active-border-color: rgba(255, 255, 255, .5);
    --bs-btn-focus-shadow-rgb: 255, 255, 255;
}

.btn-brand:hover, .btn-wa:hover { transform: translateY(-1px); }

/* --------------------------------------------------------------------------
   Navbar + brand
   -------------------------------------------------------------------------- */

.navbar-sc {
    background: rgba(16, 39, 27, .92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding-top: .7rem;
    padding-bottom: .7rem;
}
.navbar-sc .navbar-brand { font-weight: 800; letter-spacing: -.01em; color: #fff; }
.navbar-sc .nav-link { color: rgba(255, 255, 255, .78); font-weight: 500; }
.navbar-sc .nav-link:hover, .navbar-sc .nav-link:focus { color: #fff; }

.brand-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--sc-green), var(--sc-green-deep));
    color: #fff;
    font-size: 1.05rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    flex: 0 0 auto;
}
.brand-accent { color: #7fd4a6; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 600px at 88% -10%, rgba(37, 211, 102, .22), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(37, 211, 102, .10), transparent 55%),
        linear-gradient(160deg, var(--sc-ink) 0%, var(--sc-dark) 55%, #1d5a3a 130%);
}
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255, 255, 255, .82); }

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #cdf2dc;
    border-radius: 999px;
    padding: .35rem .9rem;
    font-size: .85rem;
    font-weight: 600;
}
.hero-chip .bi { color: var(--sc-wa); }

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: rgba(255, 255, 255, .75);
    font-size: .9rem;
}
.trust-chip .bi { color: var(--sc-wa); }

/* --------------------------------------------------------------------------
   Phone / WhatsApp demo
   -------------------------------------------------------------------------- */

.phone {
    max-width: 360px;
    width: 100%;
    border-radius: 2.25rem;
    background: #0b1d13;
    padding: .65rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone-screen { border-radius: 1.7rem; overflow: hidden; background: #e5ddd5; }

.wa-header {
    background: #075e54;
    color: #fff;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .9rem;
}
.wa-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--sc-wa), var(--sc-green));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .95rem;
    flex: 0 0 auto;
}
.wa-header .name { font-weight: 700; font-size: .9rem; line-height: 1.15; }
.wa-header .status { font-size: .72rem; color: rgba(255, 255, 255, .75); }
.wa-header .bi-three-dots-vertical { margin-left: auto; opacity: .7; }

.wa-chat { padding: .9rem .8rem 1rem; }
.wa-chat .bubble {
    border-radius: .7rem;
    padding: .55rem .7rem;
    margin-bottom: .55rem;
    max-width: 92%;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .12);
    color: #111;
}
.wa-chat .them { background: #fff; border-top-left-radius: .25rem; }
.wa-chat .me {
    background: #d9fdd3;
    margin-left: auto;
    width: fit-content;
    border-top-right-radius: .25rem;
}
.wa-chat .t {
    float: right;
    font-size: .66rem;
    color: #8b9a92;
    margin: .5rem 0 0 .6rem;
}

/* WhatsApp-style reply button pill under a bot message */
.wa-chat .chat-btn {
    background: #fff;
    color: #00a884;
    font-weight: 600;
    text-align: center;
    border-radius: .7rem;
    padding: .45rem .7rem;
    margin: -.2rem 0 .55rem;
    max-width: 92%;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .12);
}
.wa-chat .chat-hint {
    font-size: .72rem;
    color: #5b6a72;
    text-align: center;
    margin-top: .35rem;
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.how-steps { position: relative; }
@media (min-width: 768px) {
    /* dashed connector running behind the four step circles */
    .how-steps::before {
        content: "";
        position: absolute;
        top: 32px;
        left: 12.5%;
        right: 12.5%;
        border-top: 2px dashed var(--sc-tint-strong);
    }
}
.step-circle {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--sc-green), var(--sc-green-deep));
    color: #fff;
    font-size: 1.45rem;
    box-shadow: 0 0 0 8px #fff, 0 10px 22px rgba(31, 122, 77, .25);
    margin-bottom: 1.1rem;
}
.step-num {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: var(--sc-green-deep);
    font-size: .72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(16, 39, 27, .2);
}
.how-steps h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }

.note-callout {
    max-width: 680px;
    background: #fdf6e3;
    border: 1px solid #f0e2bb;
    color: #7c5e12;
    border-radius: 1rem;
    padding: 1rem 1.4rem;
    font-size: .95rem;
}
.note-callout .bi { color: #d9a514; }

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */

.feature-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(16, 39, 27, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(16, 39, 27, .10);
}
.feature-card .card-body { padding: 1.5rem; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.icon-chip {
    width: 46px;
    height: 46px;
    border-radius: .85rem;
    background: var(--sc-tint-strong);
    color: var(--sc-green-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: .9rem;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing-card {
    max-width: 400px;
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: 1.25rem;
    box-shadow: 0 20px 45px rgba(16, 39, 27, .10);
    overflow: hidden;
}
.pricing-card::before {
    content: "";
    display: block;
    height: 6px;
    background: linear-gradient(90deg, var(--sc-wa), var(--sc-green));
}
.badge-trial {
    display: inline-block;
    background: var(--sc-tint-strong);
    color: var(--sc-green-deep);
    font-weight: 700;
    font-size: .8rem;
    border-radius: 999px;
    padding: .45em 1em;
}
.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--sc-ink);
    letter-spacing: -.03em;
}
.pricing-card ul { padding-left: 0; }
.pricing-card li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin-bottom: .55rem;
}
.pricing-card li .bi { color: var(--sc-green); margin-top: .1rem; }

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */

.container-narrow { max-width: 760px; }

.faq.accordion {
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2310271b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2315603b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'%3e%3c/path%3e%3c/svg%3e");
}
.faq .accordion-item {
    border: 1px solid var(--sc-line);
    border-radius: .9rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(16, 39, 27, .04);
}
.faq .accordion-item + .accordion-item { margin-top: .75rem; }
.faq .accordion-button {
    font-weight: 600;
    color: var(--sc-ink);
    background: #fff;
    padding: 1.05rem 1.25rem;
}
.faq .accordion-button:not(.collapsed) {
    background: var(--sc-tint);
    color: var(--sc-green-deep);
    box-shadow: none;
}
.faq .accordion-button:focus {
    box-shadow: 0 0 0 .2rem rgba(31, 122, 77, .15);
}
.faq .accordion-body { color: var(--sc-body); }

/* --------------------------------------------------------------------------
   CTA band + footer
   -------------------------------------------------------------------------- */

.cta-band {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 400px at 82% 0%, rgba(37, 211, 102, .25), transparent 60%),
        linear-gradient(160deg, var(--sc-green) 0%, var(--sc-dark) 85%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .8); }

.footer-sc {
    background: var(--sc-ink);
    color: rgba(255, 255, 255, .55);
    font-size: .92rem;
}
.footer-sc a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer-sc a:hover { color: #fff; }
.footer-sc .brand-word { color: #fff; font-weight: 800; }
.footer-sc hr { border-color: rgba(255, 255, 255, .12); opacity: 1; }

/* --------------------------------------------------------------------------
   Legal pages (terms / privacy)
   -------------------------------------------------------------------------- */

.legal-wrap { background: var(--sc-tint); }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    text-decoration: none;
}
.legal-card {
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 14px 40px rgba(16, 39, 27, .07);
}
@media (min-width: 768px) {
    .legal-card { padding: 3rem; }
}
.legal-card h1 { font-size: 1.9rem; }
.legal-card h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sc-line);
}
.legal-card li { margin-bottom: .45rem; }

/* --------------------------------------------------------------------------
   Payment pages
   -------------------------------------------------------------------------- */

.pay-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, var(--sc-tint) 0%, #fff 100%);
}
.pay-card {
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: 1.25rem;
    box-shadow: 0 20px 45px rgba(16, 39, 27, .10);
}
.pay-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    background: var(--sc-tint-strong);
    color: var(--sc-green-deep);
}
.pay-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 800;
    color: var(--sc-ink);
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Scroll-reveal (activated by app.js; safe without JS)
   -------------------------------------------------------------------------- */

html.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease;
}
html.reveal-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html.reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
}
