/* StemBook — live site styles */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
    color: #141b3f;
    background: #ffffff;
    line-height: 1.5;
}
img { max-width: 100%; }

.sb-inner { max-width: 1080px; margin: 0 auto; }

/* ---------- nav ---------- */
.sb-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    max-width: 1180px;
    margin: 0 auto;
}
@media (min-width: 768px) { .sb-nav { padding: 22px 36px; } }
.sb-logo {
    font-family: 'Rubik', system-ui, sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}
.sb-logo .sb-logo-stem { color: #0518b7; }
.sb-logo .sb-logo-book { color: #141b3f; }
.sb-nav-links { display: none; gap: 26px; font-size: 15px; font-weight: 600; }
@media (min-width: 900px) { .sb-nav-links { display: flex; } }
.sb-nav-links a { color: #141b3f; text-decoration: none; }
.sb-nav-links a:hover { color: #0518b7; }
.sb-btn {
    display: inline-block;
    background: #0518b7;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 6px 18px rgba(5, 24, 183, 0.28);
}
.sb-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(5, 24, 183, 0.34); }
.sb-btn.sb-btn-lime { background: #b9f24b; color: #141b3f !important; box-shadow: 0 6px 18px rgba(148, 200, 30, 0.35); }
.sb-btn.sb-btn-ghost { background: transparent; color: #ffffff !important; border: 2px solid rgba(255,255,255,0.75); box-shadow: none; }
.sb-btn.sb-btn-outline { background: transparent; color: #0518b7 !important; border: 2px solid #0518b7; box-shadow: none; }

/* ---------- hero ---------- */
.sb-hero {
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
    color: #ffffff;
}
.sb-hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    animation: sb-hero-drift 26s ease-in-out infinite alternate;
}
@keyframes sb-hero-drift { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.1) translateX(-1.5%); } }
.sb-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,16,60,0.25) 0%, rgba(10,16,60,0.05) 35%, rgba(8,14,54,0.88) 100%);
}
.sb-hero-inner { position: relative; padding: 140px 24px 64px; max-width: 1080px; margin: 0 auto; width: 100%; }
@media (min-width: 768px) { .sb-hero-inner { padding: 160px 36px 84px; } }
.sb-kicker {
    display: inline-block;
    background: #b9f24b;
    color: #141b3f;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.sb-h1 {
    font-family: 'Rubik', system-ui, sans-serif;
    font-size: 46px;
    line-height: 1.04;
    letter-spacing: -0.025em;
    margin: 0 0 18px;
    font-weight: 800;
}
@media (min-width: 768px) { .sb-h1 { font-size: 72px; } }
.sb-rotator {
    display: inline-block;
    position: relative;
    vertical-align: bottom;
    height: 1.08em;
    overflow: hidden;
    color: #b9f24b;
    min-width: 5.4em;
    text-align: left;
}
.sb-rotator span {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(110%);
    animation: sb-rotate 12s infinite;
}
.sb-rotator span:nth-child(2) { animation-delay: 3s; }
.sb-rotator span:nth-child(3) { animation-delay: 6s; }
.sb-rotator span:nth-child(4) { animation-delay: 9s; }
@keyframes sb-rotate {
    0% { opacity: 0; transform: translateY(110%); }
    4% { opacity: 1; transform: translateY(0); }
    25% { opacity: 1; transform: translateY(0); }
    29% { opacity: 0; transform: translateY(-110%); }
    100% { opacity: 0; transform: translateY(-110%); }
}
.sb-hero-sub { font-size: 18px; line-height: 1.55; max-width: 620px; margin: 0 0 28px; color: rgba(255,255,255,0.92); }
.sb-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.sb-float {
    position: absolute;
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    user-select: none;
    pointer-events: none;
    animation: sb-bob 7s ease-in-out infinite;
}
@keyframes sb-bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-18px) rotate(5deg); } }

/* ---------- marquee ---------- */
.sb-marquee { background: #b9f24b; overflow: hidden; padding: 14px 0; }
.sb-marquee-track {
    display: flex;
    gap: 42px;
    width: max-content;
    animation: sb-scroll 22s linear infinite;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #141b3f;
    white-space: nowrap;
}
@keyframes sb-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sb-section { padding: 72px 24px; }
@media (min-width: 768px) { .sb-section { padding: 96px 36px; } }
.sb-section.sb-tint { background: #f2f5ff; }
.sb-section.sb-navy { background: #0e1440; color: #ffffff; }
.sb-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #0518b7; margin: 0 0 12px; }
.sb-navy .sb-eyebrow { color: #b9f24b; }
.sb-h2 {
    font-family: 'Rubik', system-ui, sans-serif;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin: 0 0 16px;
    color: #141b3f;
}
@media (min-width: 768px) { .sb-h2 { font-size: 46px; } }
.sb-navy .sb-h2 { color: #ffffff; }
.sb-lead { font-size: 17px; line-height: 1.6; max-width: 640px; margin: 0 0 36px; color: #3c4258; }
.sb-navy .sb-lead { color: rgba(255,255,255,0.85); }

.sb-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sb-chip {
    background: #ffffff;
    border: 2px solid #dfe5ff;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 15px;
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.sb-chip:hover { border-color: #0518b7; transform: translateY(-2px); }
.sb-chip b { color: #0518b7; margin-right: 6px; }

.sb-steps { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .sb-steps { grid-template-columns: repeat(4, 1fr); } }
.sb-step {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 10px 30px rgba(14,20,64,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sb-step:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(14,20,64,0.12); }
.sb-step-num { font-family: 'Rubik', system-ui, sans-serif; font-size: 52px; font-weight: 800; color: #e3e9ff; line-height: 1; margin-bottom: 14px; }
.sb-step h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; color: #141b3f; }
.sb-step p { margin: 0; font-size: 15px; line-height: 1.55; color: #3c4258; }

.sb-cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .sb-cards { grid-template-columns: repeat(3, 1fr); } }
.sb-card {
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(14,20,64,0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.sb-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(14,20,64,0.16); }
.sb-card-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.sb-card-body { padding: 22px 24px 26px; }
.sb-card-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0518b7;
    background: #e9eeff;
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 12px;
}
.sb-card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #141b3f; }
.sb-card p { margin: 0; font-size: 15px; line-height: 1.55; color: #3c4258; }

.sb-split { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 768px) { .sb-split { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.sb-split-img { width: 100%; border-radius: 24px; display: block; box-shadow: 0 20px 48px rgba(14,20,64,0.16); }
.sb-points { display: grid; gap: 18px; margin-top: 8px; }
.sb-point { display: flex; gap: 14px; align-items: flex-start; }
.sb-point-dot {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #0518b7;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.sb-point h4 { margin: 4px 0 4px; font-size: 17px; font-weight: 700; color: #141b3f; }
.sb-point p { margin: 0; font-size: 15px; line-height: 1.55; color: #3c4258; }

.sb-plans { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .sb-plans { grid-template-columns: repeat(3, 1fr); } }
.sb-plan {
    border-radius: 22px;
    padding: 30px 26px;
    background: #ffffff;
    border: 2px solid #e4e9ff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.sb-plan:hover { transform: translateY(-5px); border-color: #0518b7; }
.sb-plan.sb-plan-hot { background: #0518b7; color: #ffffff; border-color: #0518b7; }
.sb-plan-name { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #0518b7; }
.sb-plan-hot .sb-plan-name { color: #b9f24b; }
.sb-plan-price { font-family: 'Rubik', system-ui, sans-serif; font-size: 44px; font-weight: 800; letter-spacing: -0.02em; color: #141b3f; }
.sb-plan-hot .sb-plan-price { color: #ffffff; }
.sb-plan-per { font-size: 14px; color: #6a7090; }
.sb-plan-hot .sb-plan-per { color: rgba(255,255,255,0.75); }
.sb-plan-desc { font-size: 15px; line-height: 1.55; color: #3c4258; margin: 0; }
.sb-plan-hot .sb-plan-desc { color: rgba(255,255,255,0.9); }
.sb-plan .sb-btn { margin-top: auto; text-align: center; }

.sb-sponsor-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 768px) { .sb-sponsor-grid { grid-template-columns: 1fr 1fr; } }
.sb-sponsor-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    padding: 22px 24px;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255,255,255,0.9);
}
.sb-sponsor-item b { color: #b9f24b; display: block; margin-bottom: 6px; font-size: 16px; }

.sb-founders { display: grid; gap: 20px; grid-template-columns: 1fr; }
.sb-founders.sb-founders-single { max-width: 720px; }
.sb-founder { border-radius: 22px; padding: 30px 28px; background: #f2f5ff; border: 1px solid #e4e9ff; }
.sb-founder h3 { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: #141b3f; }
.sb-founder-role { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #0518b7; margin-bottom: 14px; }
.sb-founder p { margin: 0; font-size: 15px; line-height: 1.6; color: #3c4258; }

.sb-contact { text-align: center; }
.sb-contact .sb-inner { display: flex; flex-direction: column; align-items: center; }
.sb-contact .sb-h2 { margin-bottom: 10px; }
.sb-contact-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 34px;
    justify-content: center;
    margin: 30px 0 34px;
    font-size: 16px;
    font-weight: 600;
}
.sb-contact-rows a { color: #0518b7; text-decoration: none; }
.sb-contact-rows a:hover { text-decoration: underline; }

.sb-footer { background: #0e1440; color: rgba(255,255,255,0.75); padding: 44px 24px 52px; text-align: center; font-size: 14px; }
.sb-footer .sb-logo { font-size: 24px; }
.sb-footer .sb-logo-stem { color: #b9f24b; }
.sb-footer .sb-logo-book { color: #ffffff; }
.sb-footer-made { margin-top: 16px; font-weight: 700; color: #ffffff; font-size: 15px; }
.sb-footer-note { margin-top: 6px; }

.sb-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.sb-reveal.sb-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .sb-hero-photo, .sb-float, .sb-marquee-track, .sb-rotator span { animation: none; }
    .sb-rotator span:first-child { opacity: 1; transform: none; }
    .sb-reveal { opacity: 1; transform: none; }
}

/* multipage additions */
.sb-nav { flex-wrap: wrap; }
.sb-nav-links { display: flex !important; gap: 18px; font-size: 14px; order: 3; width: 100%; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
@media (min-width: 1100px) { .sb-nav-links { order: 0; width: auto; overflow: visible; } }
.sb-nav-links a.sb-on { color: #0518b7; border-bottom: 3px solid #b9f24b; }
.sb-nav-cta { display: flex; align-items: center; gap: 16px; }
.sb-signin { color: #141b3f; font-weight: 700; text-decoration: none; }
.sb-pagehead { background: linear-gradient(135deg, #0518b7 0%, #0e1440 100%); color: #fff; padding: 72px 24px 64px; }
@media (min-width: 768px) { .sb-pagehead { padding: 96px 36px 80px; } }
.sb-pagehead .sb-eyebrow { color: #b9f24b; }
.sb-h1-sm { font-size: 38px; } @media (min-width: 768px) { .sb-h1-sm { font-size: 56px; } }
.sb-pagehead .sb-hero-sub { margin-bottom: 0; }
.sb-steps-3 { grid-template-columns: 1fr; } @media (min-width: 768px) { .sb-steps-3 { grid-template-columns: repeat(3,1fr); } .sb-steps-5 { grid-template-columns: repeat(5,1fr); } }
.sb-contact-left { justify-content: flex-start; flex-direction: column; gap: 22px; margin: 0 0 30px; font-size: 18px; }
.sb-footer a { color: #fff; }
.sb-section h3 { font-size: 22px; margin: 28px 0 10px; }
