/* Mobile-first commerce, using the existing CLAVE violet/mint palette. */
.commerce-page{--commerce-ink:#231540;--commerce-muted:#635476;--commerce-violet:#44208d;--commerce-mint:#64edd0;--commerce-line:#dfd4ed;color:var(--commerce-ink);min-width:0;padding-bottom:1rem}
.commerce-hero{padding:clamp(1.5rem,5vw,3.7rem);border-radius:24px;background:linear-gradient(145deg,#251145,#442183);color:#fff;position:relative;overflow:hidden}
.commerce-hero .eyebrow{color:var(--commerce-mint)}.commerce-hero h1{color:white;max-width:16ch;font-size:clamp(2.25rem,6vw,4.6rem);line-height:1.04;letter-spacing:-.04em;margin:.35em 0}.commerce-hero p{color:#ece2ff;max-width:56ch}.commerce-hero .row{margin-top:1.2rem}.commerce-hero button.secondary{background:#faf6ff;color:#301464}
.commerce-page .commerce-section{margin:1.5rem 0}.commerce-page .commerce-subtitle{font-size:clamp(1.5rem,3vw,2rem);margin-bottom:.2rem}.commerce-page .commerce-muted{color:var(--commerce-muted)}
.commerce-grid,.commerce-metrics{display:grid;gap:1rem;grid-template-columns:minmax(0,1fr)}.commerce-plan{display:flex;flex-direction:column;min-width:0;border-radius:20px;padding:1.35rem;background:#fff;border:1px solid var(--commerce-line);box-shadow:0 6px 24px #42206a0a}.commerce-plan[data-tier="2"]{border:2px solid #7652b2}.commerce-plan[data-tier="3"]{background:#f9f5ff}.commerce-plan h3{margin:.55rem 0 0;font-size:1.3rem}.commerce-plan .price{display:block;font-weight:850;font-size:clamp(1.65rem,3.4vw,2.25rem);letter-spacing:-.035em;margin:.75rem 0 .25rem}.commerce-plan .price small{font-size:.8rem;letter-spacing:0}.commerce-plan ul{list-style:none;padding:0;margin:.6rem 0 1.1rem;flex:1}.commerce-plan li{padding:.3rem 0 .3rem 1.35rem;position:relative}.commerce-plan li::before{content:'✓';color:#006c53;position:absolute;left:0;font-weight:800}.commerce-plan .plan-cta{width:100%;text-align:center;margin-top:.65rem}.commerce-plan .offer{color:#006050;font-weight:700}.commerce-page .notice{overflow-wrap:anywhere}.commerce-page button,.commerce-page .commerce-link{min-height:44px}.commerce-page button:focus-visible,.commerce-page a:focus-visible{outline:3px solid #00836b;outline-offset:3px}.commerce-actions{display:flex;flex-wrap:wrap;gap:.55rem}.commerce-comparison{overflow:auto;border:1px solid var(--commerce-line);border-radius:16px;background:white}.commerce-comparison table{border-collapse:collapse;width:100%;min-width:32rem}.commerce-comparison th,.commerce-comparison td{padding:.9rem;text-align:left;border-bottom:1px solid #eee5f6}.commerce-comparison th{background:#f2eafb}.commerce-page details.card{margin:.65rem 0}.commerce-page .order-list{list-style:none;margin:0;padding:0}.commerce-page .order-list li{padding:.9rem 0;border-bottom:1px solid var(--commerce-line);overflow-wrap:anywhere}.commerce-page .private-session{border-left:4px solid #137361}.commerce-page .commerce-link{display:inline-flex;align-items:center;font-weight:700;color:#402080}.commerce-page .metric{font-size:1.7rem;font-weight:850}.commerce-page input,.commerce-page select,.commerce-page textarea,.auth-card input{width:100%;min-height:44px;font-size:16px}.commerce-page input[type=checkbox],.auth-card input[type=checkbox]{width:auto;min-height:initial}.commerce-page .course-form{max-width:none}.commerce-page .class-admin-grid{display:grid;gap:.65rem;grid-template-columns:1fr}.commerce-page [hidden]{display:none!important}.commerce-draft{font-weight:700;color:#573023;background:#fff1de;padding:.8rem 1rem;border-radius:14px}.commerce-page .admin-list{display:grid;gap:.6rem}.commerce-page .admin-summary{padding:1rem;background:#fff;border:1px solid var(--commerce-line);border-radius:14px}.commerce-page .status-pill{display:inline-flex;padding:.28rem .65rem;border-radius:999px;background:#eadffb;color:#492575;font-size:.8rem;font-weight:700}.commerce-page .status-pill.active{background:#d9f8ed;color:#005244}
.auth-card{max-width:42rem;margin-inline:auto}.auth-card label{font-weight:650}.auth-card .row{flex-wrap:wrap}.commerce-plan-profile{margin-top:1rem}.commerce-page button:disabled{cursor:default}
@media(min-width:760px){.commerce-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.commerce-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.commerce-page .class-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:759px){.commerce-hero .row>button{width:100%}.commerce-page .commerce-actions button{flex:1 1 12rem}.commerce-page h2,.commerce-page h3{overflow-wrap:anywhere}.commerce-page .commerce-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.commerce-page .commerce-metrics .metric{font-size:1.2rem}.auth-card .row>button{flex:1 1 100%}.commerce-page .commerce-plan{padding:1.15rem}}
#focus-route-bar[hidden]{display:none!important}

.commerce-plan .plan-offer {
  display: grid;
  justify-items: start;
  gap: .45rem;
  padding: 1rem;
  border: 1px solid #c2e8dd;
  border-radius: 14px;
  background: #edf9f5;
  color: #231745;
}
.commerce-plan .plan-offer p { margin: 0; }
.commerce-plan .discount-badge {
  border-radius: 999px;
  padding: .3rem .65rem;
  background: #231745;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
}
.commerce-plan .plan-offer .price {
  color: #075849;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  line-height: 1.15;
}
.commerce-plan .offer-deadline { font-size: .9rem; }

.commerce-hero h1 { max-width: 24ch; font-size: clamp(2rem, 4.5vw, 3.6rem); }
.commerce-hero .commerce-hero-emphasis { color: #fff; margin-top: 1.4rem; }
.commerce-plan[data-tier="2"] { border: 3px solid #59369b; box-shadow: 0 10px 28px #44208d20; }
.commerce-plan .plan-focus { color: #44208d; font-size: .9rem; font-weight: 750; margin: 0 0 .35rem; }
.commerce-plan .plan-tagline { min-height: 3em; color: #635476; }
.commerce-plan .plan-audience { margin-bottom: .4rem; }
.commerce-plan .plan-description { flex: 1; margin-top: .25rem; line-height: 1.6; }
.commerce-plan .plan-cta { background: #64edd0; color: #231540; }
@media (max-width: 759px) { .commerce-plan .plan-tagline { min-height: auto; } }

#commerce-body {scroll-margin-top: 8rem}
#focus-route-bar[hidden]{display:none!important}

.focus-entry-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.75rem; }
.focus-plans-link { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:.65rem 1rem; border-radius:12px; font-weight:700; }
#nav .focus-plans-link { color:var(--brand-100); }
.account-menu-options .focus-plans-link { display:block; color:#30214c; padding:.7rem; }
.auth-card #focus-google-status:empty { display:none; }
@media (max-width:480px) { .focus-entry-actions > * { width:100%; } }


/* Logo supplied by the owner, displayed with its surrounding white margin clipped. */
header .brand-lockup {
  display:flex; flex:0 0 154px; flex-direction:column; align-items:center;
  gap:4px; text-decoration:none; min-width:0;
}
header .brand-lockup .focus-logo-window {
  display:block; position:relative; width:48px; height:48px;
  flex-shrink:0; overflow:hidden; border-radius:7px; background:#fff;
}
header .brand-lockup .focus-logo-window img {
  position:absolute; width:69.5px; height:69.5px; max-width:none;
  left:-10.1px; top:-10.7px; object-fit:contain;
}
header .brand-lockup small {
  width:154px; max-width:none; margin:0; color:#fff; text-align:center;
  font-size:10px; font-weight:550; letter-spacing:.15px; line-height:1.35;
}
#focus-route-bar.focus-route-label {
  color:#fff; background:#29134d; border-bottom:1px solid #76529f;
  padding:14px max(24px,calc((100vw - 1200px)/2));
}
.focus-selected-route {
  display:inline-flex; align-items:center; gap:10px; background:#3a205c;
  border:1px solid #8a6caf; border-radius:999px; padding:10px 18px;
  color:#fff; font-size:14px; font-weight:700; line-height:1.4;
}
.focus-route-dot {
  width:9px; height:9px; border-radius:50%; background:#64edd0; flex-shrink:0;
}
.focus-admin-routes {display:flex;flex-wrap:wrap;gap:10px}
#focus-route-bar .focus-route-tab {
  min-height:44px; padding:10px 18px; border:1px solid #a78ac8;
  border-radius:12px; background:#3a205c; color:#fff; box-shadow:none; font-size:14px;
}
#focus-route-bar .focus-route-tab[aria-pressed="true"] {
  background:#64edd0; border-color:#64edd0; color:#241044;
}
#focus-route-bar .focus-route-tab:hover {background:#533078;color:#fff}
#focus-route-bar .focus-route-tab:focus-visible {outline:3px solid #fff;outline-offset:3px}
@media(max-width:760px){
  header .brand-lockup{flex-basis:142px}
  header .brand-lockup .focus-logo-window{width:42px;height:42px}
  header .brand-lockup .focus-logo-window img{width:60.8px;height:60.8px;left:-8.8px;top:-9.4px}
  header .brand-lockup small{width:142px;font-size:9.5px}
  #focus-route-bar.focus-route-label{padding:12px 18px}
  .focus-selected-route{font-size:13px;padding:9px 14px}
  #focus-route-bar .focus-route-tab{flex:1;min-width:135px;font-size:12px}
}

#focus-route-bar.focus-route-label {
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:12px 24px; box-sizing:border-box;
}
.platform-space { flex:0 1 auto; min-width:0; color:#fff; }
.platform-space h2 { margin:0 0 5px; font-size:.85rem; }
.platform-space .platform-links { margin:0; }
.platform-space .platform-links button { min-height:36px; padding:6px 10px; }
@media(max-width:760px){
  .platform-space { flex-basis:100%; }
}

/* Commercial plan presentation */
.commerce-hero{padding:clamp(1.15rem,3vw,2.1rem)}
.commerce-hero h1{max-width:30ch;font-size:clamp(1.75rem,4vw,3.25rem)}
.commerce-hero p{max-width:76ch;margin:.5rem 0}
.commerce-hero .row{margin-top:.8rem}
.commerce-plan .plan-benefits{flex:0;display:grid;gap:.55rem;margin:.65rem 0 1rem}
.plan-benefits strong,.plan-benefits span{display:block}
.plan-benefits span{font-size:.88rem;line-height:1.45;margin-top:.15rem}
.commerce-plan .plan-audience{font-weight:600;color:#4e386d}
.plan-module-access,.plan-module-feature{background:#f2ebff;border:1px solid #d8c6f1;border-radius:14px;padding:.85rem}
.plan-module-access{margin-top:auto}
.plan-module-access h4{font-size:.9rem;margin:0 0 .45rem}
.plan-module-access p{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.2rem .55rem;margin:0;font-size:.82rem}
.plan-module-access meter{display:block;width:100%;height:1rem;margin-top:.3rem;accent-color:#6b36b6}
.plan-module-access meter::-webkit-meter-bar{background:#ded0ef;border:0;border-radius:999px}
.plan-module-access meter::-webkit-meter-optimum-value{background:#6b36b6;border-radius:999px}
.plan-module-access meter::-moz-meter-bar{background:#6b36b6;border-radius:999px}
.commerce-plan .focus-m5-plan-note{margin:.65rem 0 0;padding:0;border:0;line-height:1.45}
.plan-term{margin:.6rem 0 .15rem;font-size:.85rem}
.plan-module-feature{padding:clamp(.9rem,3vw,1.45rem);margin-bottom:1.25rem}
.plan-module-feature h2{margin:.25rem 0 .5rem}
.plan-module-feature p{max-width:78ch;margin-bottom:0}
.commerce-grid{align-items:stretch}
.commerce-plan .plan-module-access{flex:none}
.commerce-plan .plan-cta{margin-top:auto}
.commerce-plan .plan-term{margin-bottom:.75rem}
.commerce-plan{border-width:2px}
