/* =====================================================================
   Cover The Gaps — /for-teachers/  ·  page-specific styles
   Extends the shared landing system (index_v2.css). Same tokens, fonts,
   atoms (.btn, .frame, .mu*, .reveal, .s-head, .loop, .demo, .fee-*).
   Adds only the blocks unique to the teacher page:
     · hero variant preview chrome (mockup-only)
     · segments  "Which one are you?"
     · the week tour  "Your week on CoverTheGaps"  (page core)
     · marketplace math calculator
     · honest 4-way comparison table
   ===================================================================== */

/* ---- hero: AI-variant badge + variant preview chrome (mockup-only) ---- */
.hero__badge {
  display: none; align-items: center; gap: 9px; margin-top: 18px;
  background: var(--ink); color: var(--paper); border-radius: 999px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 700; width: fit-content;
}
.hero__badge svg { width: 16px; height: 16px; color: var(--orange); }
.hero.show-badge .hero__badge { display: inline-flex; }

.hvar {
  position: fixed; left: 16px; bottom: 16px; z-index: 95;
  background: var(--ink); color: var(--paper); border-radius: 14px;
  padding: 10px 12px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: min(92vw, 540px);
  font-size: 12px;
}
.hvar__tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 10.5px; color: var(--orange); padding-right: 4px; }
.hvar__tag svg { width: 14px; height: 14px; }
.hvar button {
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: var(--paper);
  font-family: var(--font-text); font-size: 12px; font-weight: 700; border-radius: 999px;
  padding: 6px 12px; cursor: pointer; transition: .15s var(--ease);
}
.hvar button:hover { background: rgba(255,255,255,.12); }
.hvar button.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.hvar__close { margin-left: auto; opacity: .6; }
@media (max-width: 760px) { .hvar { display: none; } }

/* =====================================================================
   SEGMENTS — "Which one are you?"
   ===================================================================== */
.seg { background: var(--paper-2); border-block: 1px solid var(--line); padding: 76px 0; }
.seg__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.seg-card {
  display: flex; flex-direction: column; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 20px 18px; box-shadow: var(--shadow-sm); cursor: pointer;
  font-family: var(--font-text); color: inherit; text-decoration: none;
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.seg-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.seg-card__ico { width: 44px; height: 44px; border-radius: 13px; background: var(--orange-ghost); border: 1px solid var(--orange-soft); color: var(--orange-deep); display: grid; place-items: center; }
.seg-card__ico svg { width: 22px; height: 22px; }
.seg-card b { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; margin-top: 16px; }
.seg-card p { color: var(--ink-2); font-size: 14px; margin-top: 7px; flex: 1; }
.seg-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13.5px; font-weight: 800; color: var(--orange-deep); }
.seg-card__link svg { width: 15px; height: 15px; transition: transform .18s var(--ease); }
.seg-card:hover .seg-card__link svg { transform: translateX(3px); }
@media (max-width: 980px) { .seg__cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .seg__cards { grid-template-columns: 1fr; } }

/* =====================================================================
   THE WEEK TOUR — "Your week on CoverTheGaps"  (page core)
   ===================================================================== */
.week { padding: 92px 0; }
.week__track { max-width: 1060px; margin: 48px auto 0; }
.tour-step { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 30px; }
@media (min-width: 921px) { .tour-step { align-items: stretch; } }

/* left rail: day label + timeline spine */
.tour-rail { position: relative; padding-bottom: 46px; }
.tour-rail::before { content: ""; position: absolute; left: 9px; top: 26px; bottom: -4px; width: 2px; background: var(--line-2); }
.tour-step:last-child .tour-rail::before { display: none; }
.tour-rail__dot { position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-2); display: grid; place-items: center; transition: border-color .4s var(--ease), background .4s var(--ease); }
.tour-rail__dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background .4s var(--ease); }
.tour-step.is-visible .tour-rail__dot { border-color: var(--orange); }
.tour-step.is-visible .tour-rail__dot::after { background: var(--orange); }
.tour-rail__day { padding-left: 32px; }
.tour-rail__day b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.tour-rail__day span { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 700; margin-top: 3px; }

/* right body: copy + screenshot */
.tour-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 34px; align-items: center; padding-bottom: 46px; }
.tour-step:last-child .tour-body { padding-bottom: 0; }
.tour-was { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; }
.tour-copy h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; }
.tour-copy p { color: var(--ink-2); margin-top: 12px; font-size: 16px; }
.tour-copy .fact-line { margin-top: 18px; }
.tour-shot .frame { box-shadow: var(--shadow-md); }
.tour-body--flip .tour-copy { order: 2; }

/* closer */
.tour-step--closer .tour-body { grid-template-columns: 1fr; }
.tour-closer {
  background: linear-gradient(120deg, var(--ink) 0%, var(--night-2) 100%); color: var(--night-text);
  border-radius: var(--r-xl); padding: 40px 44px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.tour-closer__ico { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,107,53,.16); color: var(--orange); display: grid; place-items: center; flex: none; }
.tour-closer__ico svg { width: 28px; height: 28px; }
.tour-closer h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; color: var(--night-text); }
.tour-closer p { color: var(--night-dim); margin-top: 8px; font-size: 16px; max-width: 520px; }
.tour-closer__cta { margin-left: auto; }
@media (max-width: 980px) {
  .tour-body { grid-template-columns: 1fr; gap: 22px; }
  .tour-body--flip .tour-copy { order: 0; }
}
@media (max-width: 720px) {
  .tour-step { grid-template-columns: 1fr; gap: 0; }
  .tour-rail { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; }
  .tour-rail::before { display: none; }
  .tour-rail__dot { position: static; }
  .tour-rail__day { padding-left: 0; display: flex; align-items: baseline; gap: 10px; }
  .tour-rail__day span { margin-top: 0; }
  .tour-closer { padding: 28px 24px; }
  .tour-closer__cta { margin-left: 0; width: 100%; }
  .tour-closer__cta .btn { width: 100%; }
}

/* mini-UI helpers used only on the teacher page */
.mu-flag { display: flex; align-items: flex-start; gap: 9px; background: var(--app-amber-bg); border: 1px solid #f3dcae; border-radius: 10px; padding: 10px 12px; }
.mu-flag svg { width: 16px; height: 16px; color: var(--app-amber); flex: none; margin-top: 1px; }
.mu-flag b { font-size: 12px; font-weight: 800; color: var(--app-amber); }
.mu-flag p { font-size: 11px; color: var(--app-ink-2); margin-top: 2px; }
.mu-share { display: flex; align-items: center; gap: 8px; background: var(--app-primary-50); border: 1px dashed var(--app-primary); border-radius: 9px; padding: 9px 12px; font-size: 11.5px; font-weight: 700; color: var(--app-primary); }
.mu-share svg { width: 14px; height: 14px; }
.mu-new { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; background: var(--app-green-bg); color: var(--app-green); border-radius: 999px; padding: 3px 9px; }

/* =====================================================================
   MARKETPLACE MATH  (extends shared .market / .fee-* )
   ===================================================================== */
.mpmath {
  margin-top: 22px; background: var(--ink); color: var(--night-text);
  border-radius: var(--r-xl); padding: 26px 28px; box-shadow: var(--shadow-md);
}
.mpmath__line { font-size: 16.5px; line-height: 2.4; color: var(--night-dim); font-weight: 600; }
.mpmath__in {
  display: inline-flex; align-items: baseline; gap: 2px; margin: 0 4px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 9px; padding: 4px 4px 4px 12px;
}
.mpmath__in input {
  width: 56px; background: none; border: 0; color: #fff; font-family: var(--font-display);
  font-size: 19px; font-weight: 700; text-align: center; -moz-appearance: textfield;
}
.mpmath__in input::-webkit-outer-spin-button, .mpmath__in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mpmath__in input:focus { outline: none; }
.mpmath__in .pre, .mpmath__in .suf { color: var(--night-dim); font-weight: 700; font-size: 13px; }
.mpmath__in .stp { display: inline-grid; grid-template-rows: 1fr 1fr; margin-left: 2px; }
.mpmath__in .stp button { border: 0; background: rgba(255,255,255,.08); color: var(--night-dim); width: 22px; height: 16px; line-height: 1; cursor: pointer; font-size: 11px; padding: 0; }
.mpmath__in .stp button:first-child { border-radius: 6px 6px 0 0; }
.mpmath__in .stp button:last-child { border-radius: 0 0 6px 6px; margin-top: 1px; }
.mpmath__in .stp button:hover { background: rgba(255,255,255,.18); color: #fff; }
.mpmath__out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.mpmath__cell { border-radius: 14px; padding: 16px 18px; }
.mpmath__cell--lose { background: rgba(214,31,73,.14); border: 1px solid rgba(214,31,73,.32); }
.mpmath__cell--keep { background: rgba(10,143,83,.16); border: 1px solid rgba(10,143,83,.34); }
.mpmath__cell b { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mpmath__cell--lose b { color: #ff7a98; }
.mpmath__cell--keep b { color: #45d18a; }
.mpmath__cell span { display: block; font-size: 12.5px; font-weight: 700; color: var(--night-dim); margin-top: 4px; }
.mpmath__note { font-size: 13px; color: var(--ink-3); margin-top: 16px; line-height: 1.55; }
.mpmath__note strong { color: var(--ink-2); }
@media (max-width: 520px) { .mpmath__out { grid-template-columns: 1fr; } .mpmath__line { font-size: 15px; } }

/* =====================================================================
   COMPARISON TABLE  — honest, 4-way
   ===================================================================== */
.compare { margin-top: 44px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); background: var(--card); }
.compare__scroll { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14.5px; }
.compare th, .compare td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--paper-2); }
.compare thead th { font-family: var(--font-text); font-size: 13px; font-weight: 800; color: var(--ink-2); vertical-align: bottom; background: var(--paper); }
.compare thead th small { display: block; font-weight: 600; color: var(--ink-3); font-size: 11.5px; margin-top: 3px; }
.compare tbody th { text-align: left; font-weight: 700; color: var(--ink); width: 30%; }
.compare th.col-us, .compare td.col-us { background: var(--orange-ghost); }
.compare thead th.col-us { color: var(--orange-deep); }
.compare thead th.col-us small { color: var(--orange-deep); opacity: .8; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .row-unique th { color: var(--orange-deep); }
.compare .row-unique { background: rgba(255,107,53,.05); }
.cmp-ico { width: 22px; height: 22px; }
.cmp-yes { color: var(--app-green); }
.cmp-no { color: var(--ink-3); opacity: .5; }
.cmp-part { color: var(--app-amber); }
.cmp-txt { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.col-us .cmp-txt { color: var(--orange-deep); }
.cmp-uslabel { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--orange-deep); justify-content: center; }
.cmp-uslabel svg { width: 16px; height: 16px; }
.compare__note { font-size: 12px; color: var(--ink-3); padding: 12px 18px 14px; background: var(--paper); }
