/* Public homepage only. Shared app/subscription/dashboard styles are untouched. */
.tka-home {
    --home-navy: #102b50;
    --home-ink: #132d4b;
    --home-muted: #4d6075;
    margin: 0;
    background: radial-gradient(ellipse at 50% 12%, #fff9e9 0, #f8f9fc 62%);
    color: var(--home-ink);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.45;
    overflow-wrap: anywhere;
    -webkit-text-size-adjust: 100%;
}
.tka-home *, .tka-home *::before, .tka-home *::after { box-sizing: border-box; }
.tka-home a { color: inherit; text-decoration: none; }
.tka-home a:focus-visible { outline: 3px solid #145db6; outline-offset: 4px; }
.tka-home .home-skip { position: absolute; left: 16px; top: 8px; transform: translateY(-160%); background: white; padding: 10px 16px; border: 2px solid; z-index: 1; }
.tka-home .home-skip:focus { transform: none; }
.tka-home .home-shell { max-width: 1120px; margin: auto; padding: 16px 32px 20px; }
.tka-home .home-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tka-home .home-brand { display: inline-flex; flex: 0 1 auto; min-width: 0; }
.tka-home .home-brand img { width: 200px; max-width: 100%; height: auto; display: block; }
.tka-home .home-account { border: 1px solid #c8d0dc; border-radius: 11px; padding: 10px 22px; min-height: 44px; font-weight: 650; background: var(--home-navy); color: #fff; white-space: nowrap; }
.tka-home .home-account:hover { background: #1b4271; border-color: #1b4271; }
.tka-home .home-intro { text-align: center; margin: 16px auto 25px; }
.tka-home .home-eyebrow { font-size: 0.6875rem; font-weight: 750; letter-spacing: .07em; color: #75500d; margin: 0 0 4px; }
.tka-home .home-availability { color: var(--home-muted); font-size: 0.6875rem; margin: 0 0 10px; }
.tka-home h1 { margin: 0; font-size: clamp(1.75rem, 3.4vw, 2.625rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 750; }
.tka-home .home-description { color: var(--home-muted); margin: 14px auto 0; font-size: 1rem; }
.tka-home .home-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; scroll-margin-top: 14px; }
.tka-home .home-plan { display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid #d8dfea; border-radius: 18px; padding: 16px 14px 14px; background: #fff; box-shadow: 0 6px 22px #172c4b06; transition: border-color .15s, box-shadow .15s; }
.tka-home .home-plan--pro { border-color: #d4b776; }
.tka-home .home-plan:hover { border-color: #aa771a; box-shadow: 0 8px 24px #172c4b12; }
.tka-home .home-badge { width: 96px; height: 96px; object-fit: contain; display: block; margin: 0 0 5px; }
.tka-home h2 { font-size: 1.4375rem; line-height: 1.2; margin: 0 0 8px; font-weight: 750; }
.tka-home .home-plan-description { font-size: 0.875rem; line-height: 1.45; margin: 0; max-width: 24ch; min-height: 3em; color: var(--home-muted); }
.tka-home .home-price { margin: 12px 0 10px; font-size: 1.375rem; line-height: 1.3; font-weight: 750; }
.tka-home .home-price > span { font-size: 0.8125rem; font-weight: 500; }
.tka-home .home-price small { display: block; font-size: 0.75rem; margin-top: 2px; color: var(--home-muted); font-weight: 400; }
.tka-home .home-plan-action { margin-top: auto; color: #245c91; font-size: 0.75rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.tka-home .home-actions { display: flex; align-items: center; justify-content: center; gap: 25px; margin: 25px auto 21px; flex-wrap: wrap; }
.tka-home .home-primary { display: inline-flex; justify-content: center; align-items: center; gap: 20px; background: var(--home-navy); color: #fff; padding: 13px 24px; min-height: 48px; border-radius: 11px; font-size: 1rem; font-weight: 650; box-shadow: 0 4px 12px #102b5014; }
.tka-home .home-primary:hover { background: #1b4271; }
.tka-home .home-register { color: #214f7c; padding: 11px 4px; min-height: 44px; font-size: 0.9375rem; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) {
    .tka-home .home-shell { padding: 10px 16px 10px; }
    .tka-home .home-brand img { width: 144px; }
    .tka-home .home-account { font-size: 0.8125rem; padding: 10px 15px; }
    .tka-home .home-intro { margin: 8px auto 14px; }
    .tka-home .home-eyebrow { font-size: 0.625rem; letter-spacing: .025em; margin-bottom: 3px; }
    .tka-home .home-availability { font-size: 0.625rem; margin-bottom: 9px; }
    .tka-home h1 { font-size: clamp(1.25rem, 5.65vw, 2rem); line-height: 1.16; letter-spacing: -.03em; }
    .tka-home .home-title-break { display: initial; }
    .tka-home .home-description { font-size: 0.8125rem; line-height: 1.45; margin-top: 8px; max-width: 43ch; }

    .tka-home .home-plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(8rem, calc(50% - 5px))), 1fr)); gap: 10px; }
    .tka-home .home-plan { padding: 10px 9px; border-radius: 13px; }
    .tka-home .home-badge { width: 60px; height: 60px; margin-bottom: 3px; }
    .tka-home h2 { font-size: 1.125rem; margin-bottom: 5px; }
    .tka-home .home-plan-description { font-size: 0.75rem; line-height: 1.35; min-height: 2.7em; }
    .tka-home .home-price { font-size: 1.125rem; margin: 7px 0 6px; }
    .tka-home .home-price > span { font-size: 0.6875rem; }
    .tka-home .home-price small { font-size: 0.6875rem; margin-top: 1px; }
    .tka-home .home-plan-action { font-size: 0.6875rem; }
    .tka-home .home-actions { margin: 13px auto 10px; gap: 17px; }
    .tka-home .home-primary { font-size: 0.875rem; padding: 12px 16px; gap: 10px; }
    .tka-home .home-register { font-size: 0.8125rem; }
}
@media (min-width: 701px) and (max-height: 820px) {
    .tka-home .home-shell { padding-top: 6px; }
    .tka-home .home-brand img { width: 168px; }
    .tka-home .home-intro { margin: 8px auto 18px; }
    .tka-home h1 { font-size: 2.25rem; }
    .tka-home .home-badge { width: 80px; height: 80px; }
    .tka-home .home-plan { padding-top: 12px; }
    .tka-home .home-actions { margin-top: 18px; margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .tka-home .home-plan { transition: none; } }

/* School offer: original banner, real HTML action, no registration/entitlement changes. */
.tka-home .home-school-promo { margin: 28px 0 8px; border: 1px solid #d4b776; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px #102b500c; }
.tka-home .home-school-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); white-space: nowrap; overflow: hidden; }
.tka-home .home-school-banner { display: block; width: 100%; height: auto; border-radius: 17px 17px 0 0; }
.tka-home .home-school-details { display: flex; align-items: center; gap: 26px; padding: 20px 24px; border-top: 1px solid #eee2bf; }
.tka-home .home-school-copy { flex: 1; min-width: 0; }
.tka-home .home-school-copy p { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--home-muted); }
.tka-home .home-school-copy p + p { margin-top: 5px; font-size: .75rem; }
.tka-home .home-school-copy strong { color: var(--home-ink); }
.tka-home .home-school-cta { display: inline-flex; align-items: center; justify-content: center; gap: 18px; flex: 0 0 auto; padding: 14px 22px; min-height: 48px; border-radius: 11px; color: #102b50; background: #f4c254; border: 1px solid #d7a02f; font-weight: 750; font-size: 1rem; box-shadow: 0 4px 12px #75500d12; }
.tka-home .home-school-cta:hover { background: #f8d27b; }
@media (max-width: 700px) {
    .tka-home .home-school-promo { margin-top: 23px; border-radius: 13px; }
    .tka-home .home-school-title { position: static; width: auto; height: auto; margin: 0; padding: 17px 12px 14px; clip-path: none; white-space: normal; overflow: visible; font-size: 1.25rem; line-height: 1.25; text-align: center; }
    .tka-home .home-school-title span { display: block; color: #80520c; }
    .tka-home .home-school-banner { border-radius: 0; }
    .tka-home .home-school-details { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
    .tka-home .home-school-copy p { font-size: .8125rem; }
    .tka-home .home-school-copy p + p { font-size: .75rem; margin-top: 8px; }
    .tka-home .home-school-cta { font-size: .9375rem; padding: 13px 16px; }
}
