/* Kourse 8.8 Public Foundation — one source of truth for frontend + Gutenberg. */
.k8-public-home{--k8-public-max:1240px;--k8-public-gutter:28px;--k8-border:#dfe6f3;--k8-ink:#102142;--k8-muted:#61749a;background:#f6f8fc;color:var(--k8-ink);overflow:hidden}
.k8-public-home,.k8-public-home *{box-sizing:border-box}
.k8-public-band{width:100%;margin:0!important}
.k8-public-inner{width:min(100%,var(--k8-public-max));margin-inline:auto!important}
.k8-public-kicker{font-size:12px!important;font-weight:800!important;letter-spacing:.14em;color:#1268ff;margin:0 0 12px!important}
.k8-public-title{font-size:clamp(48px,5.7vw,82px)!important;line-height:.98!important;letter-spacing:-.055em!important;max-width:720px;margin:0 0 20px!important;color:var(--k8-ink)}
.k8-public-lead,.k8-section-lead{font-size:clamp(18px,1.7vw,22px)!important;line-height:1.55!important;color:var(--k8-muted);max-width:760px;margin:0!important}
.k8-section-title{font-size:clamp(34px,3.6vw,52px)!important;line-height:1.06!important;letter-spacing:-.04em!important;margin:0 0 14px!important;color:var(--k8-ink)}

/* Hero */
.k8-public-hero{padding-top:72px!important;padding-bottom:72px!important;background:radial-gradient(circle at 80% 20%,rgba(139,70,255,.12),transparent 28%),radial-gradient(circle at 70% 70%,rgba(34,105,255,.12),transparent 30%),linear-gradient(180deg,#fff 0%,#f7f9ff 100%)}
.k8-public-hero-grid{min-height:430px;align-items:center!important;gap:40px!important;margin:0!important}
.k8-public-lead{max-width:700px}
.k8-public-actions{margin-top:26px!important;gap:12px!important}
.k8-primary-button .wp-block-button__link{background:linear-gradient(110deg,#176cff,#9141ff)!important;border:0!important;color:#fff!important;border-radius:12px!important;padding:14px 24px!important;font-weight:750!important;box-shadow:0 12px 28px rgba(60,74,220,.18)}
.k8-secondary-button .wp-block-button__link{border:1px solid #cfd9ec!important;color:#17325f!important;background:#fff!important;border-radius:12px!important;padding:13px 24px!important;font-weight:700!important}
.k8-public-prism-stage{min-height:300px;display:flex;align-items:center;justify-content:center}
.k8-public-prism{position:relative;width:300px;height:300px;transform:scale(.92)}
.k8-public-prism>*{position:absolute;display:block;width:72px;height:248px;border-radius:40px;left:114px;top:26px;transform-origin:center}
.k8-public-prism i{background:linear-gradient(#68c7ff,#3f73ff);transform:rotate(45deg)}
.k8-public-prism b{background:linear-gradient(#c5a1ff,#8b45ff);transform:rotate(-45deg);opacity:.92}
.k8-public-prism em{background:linear-gradient(#ffd1f2,#ff85d3);transform:rotate(90deg);height:194px;top:53px;opacity:.7}
.k8-public-prism span{width:92px;height:92px;left:104px;top:104px;background:rgba(255,255,255,.6);backdrop-filter:blur(12px)}

/* Bands + shared card geometry */
.k8-workflow{padding-top:68px!important;padding-bottom:68px!important;background:#fff}
.k8-audience{padding-top:62px!important;padding-bottom:62px!important;background:#f5f7fc}
.k8-ecosystem{padding-top:68px!important;padding-bottom:68px!important;background:#fff}
.k8-free-section{padding-top:54px!important;padding-bottom:54px!important;background:linear-gradient(110deg,#eef4ff,#f6efff);border-top:1px solid #dce5f4;border-bottom:1px solid #dce5f4}
.k8-public-final{padding-top:64px!important;padding-bottom:64px!important;background:#102142;color:#fff}
.k8-workflow-grid,.k8-product-grid,.k8-audience-grid{gap:16px!important;align-items:stretch!important}
.k8-workflow-grid,.k8-product-grid{margin-top:26px!important}
.k8-audience-grid{margin-top:0!important;gap:20px!important}
.k8-workflow-grid>.wp-block-column,.k8-product-grid>.wp-block-column,.k8-audience-grid>.wp-block-column{min-width:0;display:flex}
.k8-workflow-card,.k8-product-card,.k8-audience-card{width:100%;height:100%;min-width:0;border:1px solid var(--k8-border);background:#fff}

/* Workflow */
.k8-workflow-grid{position:relative}
.k8-workflow-grid:before{content:"";position:absolute;left:6%;right:6%;top:43px;height:2px;background:linear-gradient(90deg,#2f74ff,#8750ff,#ff8acb);opacity:.28}
.k8-workflow-grid>.wp-block-column{position:relative;z-index:1}
.k8-workflow-card{min-height:194px;padding:20px!important;border-radius:18px;background:#f9fbff;transition:transform .2s ease,box-shadow .2s ease}
.k8-workflow-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(31,54,96,.08)}
.k8-workflow-card h3,.k8-product-card h3{margin:12px 0 8px!important;font-size:21px!important;line-height:1.15!important}
.k8-workflow-card p:last-child,.k8-product-card p:last-child{color:#64769a;font-size:15px;line-height:1.45!important;margin-bottom:0!important}
.k8-step-num{width:38px;height:38px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:linear-gradient(135deg,#1d70ff,#9141ff);color:#fff;font-weight:800;margin:0!important}

/* Ecosystem */
.k8-ecosystem .k8-section-lead{max-width:900px}
.k8-product-card{min-height:188px;padding:22px!important;border-radius:20px;box-shadow:0 10px 28px rgba(31,54,96,.06)}
.k8-product-icon{width:42px;height:42px;border-radius:12px;background:#edf3ff;color:#1268ff;display:flex;align-items:center;justify-content:center;font-weight:850;margin:0!important}

/* Teacher / student audience */
.k8-audience-card{min-height:438px;padding:30px!important;border-radius:24px;display:flex;flex-direction:column}
.k8-audience-card .k8-public-kicker{margin-bottom:10px!important}
.k8-audience-card h2{font-size:34px!important;line-height:1.08!important;letter-spacing:-.035em!important;margin:0 0 12px!important}
.k8-audience-card p:not(.k8-public-kicker):not(.k8-text-link){font-size:17px!important;line-height:1.5!important;color:var(--k8-muted);margin:0 0 12px!important}
.k8-text-link{margin:2px 0 0!important}.k8-text-link a{font-weight:800;text-decoration:none;color:#1268ff}
.k8-audience-card>.wp-block-html{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;align-self:stretch!important;margin:auto 0 0!important}
.k8-mini-ui{position:relative!important;display:grid!important;grid-template-columns:minmax(86px,34%) minmax(0,1fr)!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;column-gap:10px!important;row-gap:8px!important;width:100%!important;max-width:none!important;min-width:0!important;height:116px!important;margin:0!important;padding:16px 16px 22px!important;overflow:hidden!important;border:1px solid #dce5f4;border-radius:18px;background:linear-gradient(180deg,#fbfcff,#f4f7fd);box-shadow:0 12px 30px rgba(31,54,96,.06)}
.k8-mini-ui span{grid-column:1!important;grid-row:1/4!important;min-width:0!important;border-radius:12px;background:linear-gradient(160deg,#e7efff,#f3e9ff)}
.k8-audience-student .k8-mini-ui span{background:linear-gradient(160deg,#e8f6ff,#f5e8ff)}
.k8-mini-ui i{grid-column:2!important;display:block;min-width:0!important;margin:0!important;border-radius:8px;background:#e4eaf5}
.k8-mini-ui i:nth-of-type(1){grid-row:1!important}.k8-mini-ui i:nth-of-type(2){grid-row:2!important}.k8-mini-ui i:nth-of-type(3){grid-row:3!important}
.k8-mini-ui:after{position:absolute;left:16px!important;right:16px!important;bottom:7px!important;font-size:8px;font-weight:800;letter-spacing:.08em;color:#8292b0;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:1!important}
.k8-audience-teacher .k8-mini-ui:after{content:"TODAY  •  CLASSES  •  INTERVENTIONS"}.k8-audience-student .k8-mini-ui:after{content:"CONTINUE LEARNING  •  MY WORK  •  XP"}

/* Plans + final CTA */
.k8-free-section .wp-block-columns{gap:44px!important}.k8-free-section h2{font-size:clamp(32px,3vw,46px)!important;line-height:1.08!important;letter-spacing:-.035em!important;margin:0 0 14px!important}.k8-free-section p:not(.k8-public-kicker){max-width:760px;color:#5f7194;font-size:18px;line-height:1.55;margin-bottom:0!important}
.k8-public-final h2{font-size:clamp(38px,4vw,58px)!important;line-height:1.05!important;letter-spacing:-.045em!important;color:#fff;margin:0 0 14px!important}.k8-public-final p{font-size:19px;color:#c8d4eb;margin:0 0 24px!important}

/* Public site chrome */
body.k8-public-site{margin:0;background:#f6f8fc;color:#102142}.k8-public-site .wp-site-blocks,.k8-public-site main{margin:0}.k8-site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-bottom:1px solid #e1e7f2}.admin-bar .k8-site-header{top:32px}.k8-site-header__inner{max-width:1240px;margin:auto;min-height:72px;padding:0 28px;display:flex;align-items:center;gap:32px}.k8-site-brand{display:inline-flex;align-items:center;gap:11px;text-decoration:none;color:#102142;font-size:23px;letter-spacing:-.03em}.k8-site-mark{position:relative;width:30px;height:30px;display:inline-block}.k8-site-mark i,.k8-site-mark b{position:absolute;left:11px;top:1px;width:9px;height:28px;border-radius:8px;display:block}.k8-site-mark i{background:linear-gradient(#58c8ff,#3973ff);transform:rotate(45deg)}.k8-site-mark b{background:linear-gradient(#e7a5ff,#8b45ff);transform:rotate(-45deg)}.k8-site-nav{display:flex;align-items:center;gap:28px;margin-left:auto}.k8-site-nav a,.k8-site-signin{color:#415475;text-decoration:none;font-weight:650;font-size:14px}.k8-site-nav a:hover,.k8-site-signin:hover{color:#1268ff}.k8-site-actions{display:flex;align-items:center;gap:18px}.k8-site-start{background:linear-gradient(110deg,#176cff,#9141ff);color:#fff;text-decoration:none;font-weight:800;font-size:14px;padding:11px 16px;border-radius:10px;box-shadow:0 8px 20px rgba(60,74,220,.16)}.k8-site-menu{display:none;border:0;background:transparent;padding:8px}.k8-site-menu span{display:block;width:22px;height:2px;background:#102142;margin:4px}.k8-public-main{min-height:60vh}.k8-site-footer{background:#0b1831;color:#c8d4eb;padding:64px 28px 28px}.k8-site-footer__inner{max-width:1240px;margin:auto;display:grid;grid-template-columns:1.4fr 1fr;gap:80px}.k8-site-footer .k8-site-brand{color:#fff}.k8-footer-brand p{max-width:390px;line-height:1.6}.k8-footer-links{display:grid;grid-template-columns:1fr 1fr;gap:40px}.k8-footer-links div{display:flex;flex-direction:column;gap:12px}.k8-footer-links strong{color:#fff;margin-bottom:4px}.k8-footer-links a{color:#c8d4eb;text-decoration:none}.k8-footer-links a:hover{color:#fff}.k8-footer-bottom{max-width:1240px;margin:48px auto 0;padding-top:22px;border-top:1px solid rgba(255,255,255,.12);display:flex;justify-content:space-between;font-size:13px;color:#8495b5}

/* Gutenberg parity. These rules normalize editor wrappers; they do not redesign blocks. */
.editor-styles-wrapper .k8-public-home{width:100%!important;max-width:none!important}
.editor-styles-wrapper .k8-public-band{width:100%!important;max-width:none!important}
.editor-styles-wrapper .k8-public-inner{width:100%!important;max-width:var(--k8-public-max)!important;margin-inline:auto!important}
.editor-styles-wrapper .k8-public-hero-grid{min-height:430px!important}
.editor-styles-wrapper .k8-workflow-card{min-height:194px!important;overflow:visible}
.editor-styles-wrapper .k8-product-card{min-height:188px!important;overflow:visible}
.editor-styles-wrapper .k8-audience-card{min-height:438px!important;overflow:visible}
.editor-styles-wrapper .k8-workflow-grid>.wp-block-column,.editor-styles-wrapper .k8-product-grid>.wp-block-column,.editor-styles-wrapper .k8-audience-grid>.wp-block-column{min-width:0!important}
.editor-styles-wrapper .k8-audience-card>.wp-block-html,.editor-styles-wrapper .k8-audience-card>[data-type="core/html"]{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;flex:0 0 auto!important;align-self:stretch!important;margin-top:auto!important}
.editor-styles-wrapper .k8-audience-card>[data-type="core/html"] .block-editor-block-list__block-edit,.editor-styles-wrapper .k8-audience-card>[data-type="core/html"] .block-editor-block-list__block-edit>div{width:100%!important;max-width:none!important;min-width:0!important}

@media(max-width:900px){
 .k8-public-hero{padding-top:58px!important;padding-bottom:58px!important}.k8-public-hero-grid{min-height:0}.k8-workflow,.k8-ecosystem,.k8-audience{padding-top:54px!important;padding-bottom:54px!important}
 .k8-public-hero-grid,.k8-audience-grid,.k8-product-grid,.k8-workflow-grid{flex-wrap:wrap!important}.k8-public-hero-grid>.wp-block-column,.k8-audience-grid>.wp-block-column{flex-basis:100%!important}.k8-product-grid>.wp-block-column{flex-basis:calc(50% - 10px)!important}.k8-workflow-grid>.wp-block-column{flex-basis:calc(33.333% - 12px)!important}.k8-public-prism-stage{min-height:240px}.k8-public-prism{transform:scale(.72)}.k8-audience-card{min-height:390px}
 .editor-styles-wrapper .k8-public-hero-grid{min-height:0!important}.editor-styles-wrapper .k8-audience-card{min-height:390px!important}
}
@media(max-width:820px){.k8-site-nav{display:none}.k8-site-actions .k8-site-signin{display:none}.k8-site-menu{display:block}.k8-site-header__inner{padding:0 20px}.k8-site-actions{margin-left:auto}.k8-site-footer__inner{grid-template-columns:1fr;gap:38px}.k8-footer-bottom{gap:15px;flex-direction:column}.admin-bar .k8-site-header{top:46px}.k8-site-nav.is-open{display:flex;position:absolute;left:20px;right:20px;top:64px;flex-direction:column;align-items:stretch;gap:0;padding:10px;background:#fff;border:1px solid #dfe6f3;border-radius:14px;box-shadow:0 18px 40px rgba(31,54,96,.14)}.k8-site-nav.is-open a{padding:12px}}
@media(max-width:620px){
 .k8-public-home{--k8-public-gutter:20px}.k8-public-title{font-size:46px!important}.k8-public-hero,.k8-workflow,.k8-ecosystem,.k8-audience{padding-top:44px!important;padding-bottom:44px!important}.k8-free-section,.k8-public-final{padding-top:46px!important;padding-bottom:46px!important}.k8-public-prism-stage{display:none}.k8-workflow-grid>.wp-block-column,.k8-product-grid>.wp-block-column{flex-basis:100%!important}.k8-free-section .wp-block-buttons{justify-content:flex-start!important}.k8-audience-card{min-height:0;padding:24px!important}.k8-workflow-card,.k8-product-card{min-height:0}.k8-mini-ui{grid-template-columns:minmax(70px,30%) minmax(0,1fr)!important;height:108px!important}
 .editor-styles-wrapper .k8-audience-card,.editor-styles-wrapper .k8-workflow-card,.editor-styles-wrapper .k8-product-card{min-height:0!important}
}
@media(max-width:520px){.k8-site-start{display:none}.k8-footer-links{grid-template-columns:1fr}.k8-site-footer{padding-left:20px;padding-right:20px}}

.k8-site-brand-mark{width:34px;height:34px;display:block;object-fit:contain;flex:0 0 34px}
/* Schoolbrook v27.8.2 — canonical brand mark replaces the legacy public-home prism. */
.k8-public-brand-stage{min-height:300px;display:flex;align-items:center;justify-content:center}
.k8-public-brand-mark{width:min(300px,100%);display:flex;align-items:center;justify-content:center}
.k8-public-brand-mark img{display:block;width:100%;height:auto;max-width:300px;object-fit:contain}
@media(max-width:900px){.k8-public-brand-stage{min-height:240px}.k8-public-brand-mark{max-width:240px}}
@media(max-width:700px){.k8-public-brand-stage{min-height:220px}.k8-public-brand-mark{max-width:210px}}
