/* ═══ 30 Days Diabetic Reset Challenge ═════════════════════════════════════
   One sheet for the whole site.
   1. Tokens + base          5. Journey flow          9. PDF viewer
   2. Buttons, pills, bits   6. Bonus kit + cards    10. Certificate
   3. Header                 7. Protocols            11. Login
   4. Hero                   8. University row, vids 12. Protocol page
                                                     13. Prepco University (app port)
                                                     14. Toast, demo, print
   ═════════════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens + base ─────────────────────────────────────────────────────── */
:root {
  --bg: #f6f6fc;
  --surface: #ffffff;
  --ink: #0b1c30;
  --ink-2: #334155;
  --muted: #6b7280;
  --line: rgba(11, 28, 48, .08);

  --teal: #018380;
  --teal-2: #00b3ad;
  --teal-deep: #006865;
  --violet: #7c3aed;
  --violet-2: #a78bfa;
  --coral: #ff6b5b;
  --coral-2: #ff9a8b;
  --amber: #f59e0b;
  --pink: #ec4899;
  --blue: #3b82f6;
  --green: #22c55e;
  --red: #ef4444;
  --gold: #e7a81e;
  --lime: #bef264;

  --grad-hot: linear-gradient(100deg, #018380 0%, #7c3aed 45%, #ec4899 75%, #f59e0b 100%);
  --grad-btn: linear-gradient(135deg, #018380 0%, #0e9f9a 45%, #7c3aed 130%);
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --sh-card: 0 1px 2px rgba(11, 28, 48, .04), 0 12px 32px -12px rgba(11, 28, 48, .12);
  --sh-pop: 0 18px 40px -14px rgba(124, 58, 237, .35);
  --hdr-h: 68px;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
[hidden] { display: none !important; }

.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal; font-size: 1.2em; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap;
  direction: ltr; -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  flex-shrink: 0;
}

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.grad-text {
  background: var(--grad-hot);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Tone system — any component with .tone-x gets --tone / --tone-soft. */
.tone-teal   { --tone: var(--teal);   --tone-soft: #e1f5f4; --tone-2: var(--teal-2); }
.tone-violet { --tone: var(--violet); --tone-soft: #efe7ff; --tone-2: var(--violet-2); }
.tone-coral  { --tone: var(--coral);  --tone-soft: #ffe9e6; --tone-2: var(--coral-2); }
.tone-amber  { --tone: #d97706;       --tone-soft: #fff3d6; --tone-2: var(--amber); }
.tone-pink   { --tone: var(--pink);   --tone-soft: #fde7f3; --tone-2: #f9a8d4; }
.tone-blue   { --tone: var(--blue);   --tone-soft: #e3edff; --tone-2: #93c5fd; }
.tone-green  { --tone: #16a34a;       --tone-soft: #ddf7e6; --tone-2: var(--green); }
.tone-gold   { --tone: #b7791f;       --tone-soft: #fff4d6; --tone-2: var(--gold); }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent;
  display: inline-block; animation: spin .7s linear infinite; vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Decorative blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.blob.b1 { width: 420px; height: 420px; background: #5eead4; top: -140px; left: -120px; animation: drift 14s ease-in-out infinite; }
.blob.b2 { width: 380px; height: 380px; background: #c4b5fd; top: 10%; right: -120px; animation: drift 18s ease-in-out infinite reverse; }
.blob.b3 { width: 300px; height: 300px; background: #fda4af; bottom: -120px; left: 35%; animation: drift 16s ease-in-out infinite; }
@keyframes drift { 50% { transform: translate(30px, 24px) scale(1.08); } }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .blob, .pulse, .float-chip { animation: none !important; }
}

/* ── 2. Buttons, pills, small bits ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 24px -10px rgba(1, 131, 128, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--sh-pop); }
.btn-ghost { background: rgba(255, 255, 255, .75); color: var(--ink); border: 1.5px solid var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-soft { background: #eef2f7; color: var(--ink); }
.btn-soft:hover { background: #e3e9f1; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-wa { background: #25d366; color: #06361a; }
.btn-wa:hover { background: #1fc05b; transform: translateY(-2px); }
.btn-done { background: #ddf7e6; color: #15803d; }
.btn-locked { background: #f1f2f6; color: #9aa1ad; cursor: default; }
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(1, 131, 128, .45); } 60% { box-shadow: 0 0 0 12px rgba(1, 131, 128, 0); } }

.link { background: none; border: 0; padding: 0; color: var(--teal); font-weight: 700; cursor: pointer; }
.link-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; margin-bottom: 18px; }
.link-back.center { margin: 12px auto 0; display: flex; }

.sticker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .01em;
  background: #fff; color: var(--ink); border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.sticker.s-green { background: #d9fbe5; }
.sticker.s-amber { background: #fff1c7; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pill .ms { font-size: 16px; }
.pill-done { background: #dcfce7; color: #15803d; box-shadow: inset 0 0 0 1.5px rgba(34, 197, 94, .4); }
.pill-pending { background: #fee2e2; color: #b91c1c; box-shadow: inset 0 0 0 1.5px rgba(239, 68, 68, .4); }
.pill-active { background: #ede9fe; color: #6d28d9; }
.pill-soft { background: rgba(255, 255, 255, .8); color: var(--ink-2); }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
.dot-red { background: var(--red); box-shadow: 0 0 0 4px rgba(239, 68, 68, .18); }

.bar { height: 7px; border-radius: 999px; background: rgba(11, 28, 48, .07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad-hot); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.bar.big { height: 10px; }

.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: #f0f1f7; margin-bottom: 16px; }
.tab { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tab.on { background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(11, 28, 48, .1); }

.notice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); margin-bottom: 18px; font-size: 14px; }
.notice > .ms { font-size: 22px; }
.notice > div { flex: 1; }
.notice-red { background: #fff1f1; color: #7f1d1d; border: 1.5px dashed rgba(239, 68, 68, .45); }
@media (max-width: 600px) { .notice { flex-wrap: wrap; } .notice .btn { width: 100%; } }

/* ── 3. Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 246, 252, .72); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-color: var(--line); background: rgba(255, 255, 255, .86); }
.hdr-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; height: var(--hdr-h); display: flex; align-items: center; gap: 18px; }
.hdr-logo img { height: 46px; width: auto; margin-left: -8px; }
.hdr-nav { display: flex; gap: 8px; margin-left: auto; }
.nav-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  color: var(--ink-2); background: transparent; border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.nav-chip .ms { color: var(--tone); font-size: 18px; }
.nav-chip:hover { background: var(--tone-soft); color: var(--tone); transform: translateY(-1px); }
.nav-chip.active { background: var(--tone-soft); color: var(--tone); border-color: color-mix(in srgb, var(--tone) 30%, transparent); }
.hdr-me { position: relative; }
.me-btn { border: 0; background: none; padding: 0; cursor: pointer; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #fff; background: var(--grad-hot);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px rgba(124, 58, 237, .35);
}
.me-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px;
  background: #fff; border-radius: var(--r-md); box-shadow: 0 20px 50px -12px rgba(11, 28, 48, .28);
  padding: 8px; border: 1px solid var(--line);
}
.me-id { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; }
.me-id span { color: var(--muted); font-size: 13px; }
.me-item { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; color: #b91c1c; }
.me-item:hover { background: #fff1f1; }
.hdr-nav-m { display: none; }
@media (max-width: 960px) {
  .hdr-nav { display: none; }
  .hdr-me { margin-left: auto; }
  .hdr-nav-m {
    display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
    mask-image: linear-gradient(90deg, #000 90%, transparent);
  }
  .hdr-nav-m::-webkit-scrollbar { display: none; }
  .hdr-nav-m .nav-chip { background: #fff; border-color: var(--line); flex-shrink: 0; padding: 7px 12px; font-size: 13px; }
  .hdr-nav-m .nav-chip.active { background: var(--tone-soft); }
  .hdr-inner { height: 60px; padding: 0 16px; }
  :root { --hdr-h: 60px; }
}

/* ── 4. Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-lines {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(11, 28, 48, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 28, 48, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero-hi { font-weight: 700; font-size: 18px; color: var(--ink-2); margin-bottom: 8px; }
.hero h1 { font-family: var(--display); font-size: clamp(34px, 5.4vw, 62px); font-weight: 800; letter-spacing: -.025em; line-height: 1.02; }
.hero-sub { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.stat {
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; min-width: 128px;
  display: grid; gap: 2px;
}
.stat b { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.stat b small { font-size: 16px; color: var(--muted); font-weight: 700; }
.stat span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.stat:nth-child(1) b { color: var(--teal); }
.stat:nth-child(2) b { color: var(--violet); }
.stat:nth-child(3) b { color: var(--coral); }

.hero-visual { position: relative; min-height: 440px; display: grid; place-items: center; }
.ring {
  --p: 0; --size: 300px;
  width: var(--size); height: var(--size); border-radius: 50%;
  background: conic-gradient(from -90deg, #018380, #7c3aed calc(var(--p) * .5%), #ec4899 calc(var(--p) * 1%), #e8e9f3 0);
  display: grid; place-items: center; position: relative;
  box-shadow: 0 30px 60px -20px rgba(124, 58, 237, .35);
}
.ring-in { width: calc(100% - 34px); height: calc(100% - 34px); border-radius: 50%; background: #fff; display: grid; place-content: center; text-align: center; }
.ring-in b { font-family: var(--display); font-size: 58px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.ring-in span { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
.ring.sm { --size: 120px; box-shadow: none; }
.ring.sm .ring-in { width: calc(100% - 18px); height: calc(100% - 18px); }
.ring.sm .ring-in b { font-size: 26px; }
.ring.sm .ring-in span { font-size: 11px; margin-top: 2px; }
.hero-founder { position: absolute; bottom: -72px; right: -30px; width: 230px; opacity: .95; filter: drop-shadow(0 20px 30px rgba(11, 28, 48, .2)); }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border-radius: 999px; padding: 9px 14px; font-size: 13px; font-weight: 800;
  box-shadow: 0 12px 28px -10px rgba(11, 28, 48, .3); animation: bob 5s ease-in-out infinite;
}
.float-chip.c1 { top: 22px; left: 0; color: var(--coral); }
.float-chip.c2 { top: 48%; left: -24px; color: var(--blue); animation-delay: -1.6s; }
.float-chip.c3 { bottom: 26px; left: 30px; color: #b7791f; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@media (max-width: 900px) {
  .hero { padding: 30px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { min-height: 320px; order: -1; }
  .ring { --size: 220px; }
  .ring-in b { font-size: 44px; }
  .hero-founder { width: 150px; right: 0; bottom: -40px; }
  .float-chip.c2 { left: 0; }
}
@media (max-width: 480px) {
  .hero-cta .btn { flex: 1 1 100%; }
  .stat { flex: 1; min-width: 0; padding: 12px; }
  .stat b { font-size: 24px; }
  .float-chip { font-size: 11.5px; padding: 7px 11px; }
  .hero-founder { display: none; }
}

/* ── 5. Journey flow ──────────────────────────────────────────────────────── */
.sec { padding: 56px 0; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; color: var(--violet); margin-bottom: 14px;
}
.sec-head h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.sec-head p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.dash { color: var(--muted); font-weight: 600; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.flow::before {
  content: ''; position: absolute; top: 22px; left: 12%; right: 12%; height: 3px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, #cfd3e1 0 10px, transparent 10px 18px);
}
.flow-step { position: relative; display: flex; flex-direction: column; align-items: center; }
.flow-num {
  position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 18px;
  background: #fff; color: var(--tone); border: 3px solid var(--tone); margin-bottom: 16px;
}
.flow-step.done .flow-num { background: var(--tone); color: #fff; }
.flow-step.now .flow-num { background: var(--tone); color: #fff; box-shadow: 0 0 0 8px var(--tone-soft); animation: pulse-v 2.2s ease-in-out infinite; }
@keyframes pulse-v { 50% { box-shadow: 0 0 0 14px transparent; } }
.flow-card {
  width: 100%; flex: 1; background: #fff; border-radius: var(--r-lg); padding: 20px;
  border: 1.5px solid var(--line); box-shadow: var(--sh-card); text-align: center;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s;
}
.flow-card:hover { transform: translateY(-6px); border-color: var(--tone); }
.flow-step.now .flow-card { border-color: var(--tone); background: linear-gradient(180deg, var(--tone-soft), #fff 70%); box-shadow: 0 20px 40px -18px color-mix(in srgb, var(--tone) 60%, transparent); }
.flow-tag { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--tone); }
.flow-card h3 { font-family: var(--display); font-size: 20px; font-weight: 800; }
.flow-card p { font-size: 14px; color: var(--muted); }
.flow-state { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; color: #15803d; background: #dcfce7; padding: 5px 12px; border-radius: 999px; }
.flow-sub { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sub-item {
  width: 100%; display: flex; align-items: center; gap: 8px; justify-content: center;
  padding: 10px 12px; border-radius: 14px; font-size: 13.5px; font-weight: 700;
  background: var(--tone-soft); color: var(--ink);
}
.sub-item .ms { color: var(--tone); }
.sub-item.hot { background: var(--tone); color: #fff; }
.sub-item.hot .ms { color: #fde68a; }
.sub-item.gold { background: linear-gradient(135deg, #fff4d6, #ffe7a3); color: #7c4a03; border: 1.5px dashed #e7a81e; }
.sub-arrow { color: var(--tone); line-height: 1; }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; gap: 14px; }
  .flow::before { top: 20px; bottom: 20px; left: 22px; right: auto; width: 3px; height: auto; background: repeating-linear-gradient(180deg, #cfd3e1 0 10px, transparent 10px 18px); }
  .flow-step { flex-direction: row; align-items: flex-start; gap: 14px; }
  .flow-num { margin: 0; flex-shrink: 0; }
  .flow-card { text-align: left; align-items: flex-start; }
  .sub-item { justify-content: flex-start; }
  .flow-sub { align-items: flex-start; }
  .sub-arrow { padding-left: 16px; }
}

/* ── 6. Bonus kit + cards ─────────────────────────────────────────────────── */
.sec-kit { background: linear-gradient(180deg, transparent, #eef0fb 18%, #f3effc 60%, transparent); }
.kit-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; margin-bottom: 28px; }
.kit-tile {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  padding: 14px 12px; border-radius: var(--r-md); background: #fff; border: 1.5px solid var(--line);
  position: relative; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.kit-tile::after { content: ''; position: absolute; right: -18px; bottom: -18px; width: 60px; height: 60px; border-radius: 50%; background: var(--tone-soft); }
.kit-tile:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--tone); box-shadow: 0 14px 28px -14px var(--tone); }
.kit-n { font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--tone); }
.kit-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--tone); color: #fff; position: relative; z-index: 1; }
.kit-t { font-weight: 700; font-size: 13px; line-height: 1.25; position: relative; z-index: 1; }
@media (max-width: 1100px) { .kit-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 640px) {
  .kit-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 24px; padding: 4px 16px 8px; scrollbar-width: none; }
  .kit-grid::-webkit-scrollbar { display: none; }
  .kit-tile { flex: 0 0 132px; scroll-snap-align: start; }
}

.card {
  background: var(--surface); border-radius: var(--r-lg); padding: 26px;
  border: 1px solid var(--line); box-shadow: var(--sh-card); margin-bottom: 22px;
}
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.card-head h3 { font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin: 4px 0 4px; }
.card-head p { font-size: 14.5px; }
.bh-left { display: flex; gap: 16px; align-items: flex-start; flex: 1; min-width: 260px; }
.bh-ic { width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, var(--tone), var(--tone-2)); color: #fff; box-shadow: 0 10px 20px -8px var(--tone); transform: rotate(-4deg); }
.bh-ic .ms { font-size: 28px; }
.bonus-label { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--tone); }
.legend { display: flex; gap: 16px; font-size: 13px; font-weight: 600; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 600px) { .card { padding: 18px; border-radius: 20px; } .card-head h3 { font-size: 21px; } .bh-ic { width: 44px; height: 44px; } }

.onboard .card-head { align-items: center; }
.onboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.desk-row { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-md); border: 1.5px solid; }
.desk-row.is-done { background: #f0fdf4; border-color: rgba(34, 197, 94, .35); }
.desk-row.is-pending { background: #fff5f5; border-color: rgba(239, 68, 68, .3); }
.desk-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.is-done .desk-ic { background: var(--green); }
.is-pending .desk-ic { background: var(--red); }
.desk-t { flex: 1; display: grid; }
.desk-t span { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .onboard-grid { grid-template-columns: 1fr; } .desk-row { flex-wrap: wrap; } }

/* ── 7. Protocols ─────────────────────────────────────────────────────────── */
.proto-track { display: grid; grid-template-columns: repeat(4, 1fr) .8fr; gap: 14px; position: relative; }
.proto {
  position: relative; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(160deg, var(--tone-soft), #fff 60%); border: 1.5px solid color-mix(in srgb, var(--tone) 22%, transparent);
  transition: transform .25s, box-shadow .25s;
}
.proto:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px var(--tone); }
.proto:not(:nth-last-child(2))::after {
  content: 'arrow_forward'; font-family: 'Material Symbols Rounded'; position: absolute; right: -15px; top: 50%; margin-top: -11px;
  width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--muted); font-size: 16px;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); z-index: 2;
}
.proto.st-locked { filter: saturate(.35); opacity: .78; }
.proto.st-complete { border-color: rgba(34, 197, 94, .5); background: linear-gradient(160deg, #dcfce7, #fff 60%); }
.proto-top { display: flex; justify-content: space-between; align-items: center; }
.proto-n { font-family: var(--display); font-weight: 800; font-size: 15px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tone); color: #fff; transform: rotate(-6deg); }
.proto-st { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.proto-st.st-complete { background: #dcfce7; color: #15803d; }
.proto-st.st-active { background: #ede9fe; color: #6d28d9; }
.proto-st.st-ready { background: #fef3c7; color: #92400e; }
.proto-st.st-locked { background: #f1f2f6; color: #6b7280; }
.proto h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--tone); margin-top: 6px; }
.proto-title { font-family: var(--display); font-size: 19px; font-weight: 800; line-height: 1.15; }
.proto p { font-size: 13px; color: var(--muted); flex: 1; }
.proto-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proto-tags span { display: inline-flex; gap: 4px; align-items: center; font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.proto-tags .ms { font-size: 14px; color: var(--tone); }
.proto-days { display: flex; gap: 5px; margin-top: 4px; }
.proto-days .d { flex: 1; height: 8px; border-radius: 4px; background: #e5e7ef; }
.proto-days .d.open { background: repeating-linear-gradient(45deg, #fcd34d 0 4px, #fde68a 4px 8px); }
.proto-days .d.yes { background: var(--green); }
.proto-days .d.no { background: var(--red); }
.proto-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; font-size: 12.5px; font-weight: 600; }
.proto-foot .btn { width: 100%; white-space: normal; text-align: center; }
.proto-finish {
  border-radius: 20px; border: 2px dashed #cfd3e1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px; padding: 18px; color: var(--muted); font-size: 13px;
}
.proto-finish b { color: var(--ink); font-family: var(--display); font-size: 17px; }
.finish-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #f1f2f6; font-size: 28px; }
.proto-finish.lit { border: 0; background: linear-gradient(135deg, #fef3c7, #fde68a 40%, #fbcfe8); color: #7c4a03; animation: glow 2.4s ease-in-out infinite; }
.proto-finish.lit .finish-ic { background: #fff; color: #b7791f; }
@keyframes glow { 50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, .15), 0 20px 40px -16px rgba(245, 158, 11, .6); } }
@media (max-width: 1100px) { .proto-track { grid-template-columns: repeat(2, 1fr); } .proto::after { display: none; } .proto-finish { grid-column: 1 / -1; } }
@media (max-width: 600px) { .proto-track { grid-template-columns: 1fr; } }

/* ── 8. University row + videos ───────────────────────────────────────────── */
.uni-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: 0 -4px; scrollbar-width: thin; }
.uni-row::-webkit-scrollbar { height: 8px; }
.uni-row::-webkit-scrollbar-thumb { background: #d9dbe8; border-radius: 8px; }
.uni-skel { flex: 0 0 300px; height: 330px; border-radius: 20px; background: linear-gradient(90deg, #eef0f6, #f7f8fc, #eef0f6); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.uni-card {
  flex: 0 0 300px; scroll-snap-align: start; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(135deg, #fff 0%, rgba(1, 131, 128, .04) 55%, rgba(14, 116, 144, .09) 100%);
  border: 1px solid rgba(1, 131, 128, .14); box-shadow: 0 4px 14px rgba(1, 131, 128, .07);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s;
}
.uni-card:hover { transform: translateY(-5px); box-shadow: 0 18px 34px -14px rgba(1, 131, 128, .4); }
.uni-card.drip { background: linear-gradient(135deg, #fff 0%, rgba(245, 158, 11, .04) 55%, rgba(239, 142, 75, .09) 100%); border-color: rgba(245, 158, 11, .14); }
.uni-intro { flex-basis: 380px; background: linear-gradient(160deg, #0b1c30, #1e3a8a 70%, #7c3aed); color: #fff; border: 0; }
.uni-intro .uni-body p { color: rgba(255, 255, 255, .72); }
.uni-kicker { display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #5eead4; }
.uni-cover { aspect-ratio: 16 / 9; display: grid; place-items: center; color: rgba(255, 255, 255, .7); font-size: 40px; position: relative; }
.uni-cover .ms { font-size: 42px; }
.uni-cover img { width: 100%; height: 100%; object-fit: cover; }
.pal-0 { background: linear-gradient(135deg, #018380, #006865); }
.pal-1 { background: linear-gradient(135deg, #7c3aed, #1e3a8a); }
.pal-2 { background: linear-gradient(135deg, #ff6b5b, #f97316); }
.pal-3 { background: linear-gradient(135deg, #006865, #0b1c30); }
.drip-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; gap: 4px; align-items: center; background: #fff; color: #b45309; font-size: 11.5px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.drip-badge .ms { font-size: 14px; }
.uni-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.uni-body h4 { font-size: 16.5px; font-weight: 800; line-height: 1.2; color: inherit; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.uni-card.phase .uni-body h4 { color: #0b1c30; }
.uni-body p { font-size: 13px; line-height: 1.45; color: #6b7280; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.uni-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; font-size: 11.5px; font-weight: 600; }
.uni-chip { display: inline-flex; gap: 5px; align-items: center; padding: 5px 10px; border-radius: 20px; background: rgba(1, 131, 128, .10); color: #018380; font-size: 12px; font-weight: 700; }
.uni-chip .ms { font-size: 14px; }
.drip .uni-chip { background: rgba(245, 158, 11, .10); color: #f59e0b; }
.uni-card .bar { height: 6px; background: rgba(1, 131, 128, .12); margin-top: 4px; }
.uni-card .bar i { background: #018380; }
.drip .bar { background: rgba(245, 158, 11, .12); }
.drip .bar i { background: #f59e0b; }
@media (max-width: 600px) { .uni-card { flex-basis: 82%; } .uni-intro { flex-basis: 88%; } }

.yt { position: relative; aspect-ratio: 16 / 9; background: #0b1c30; overflow: hidden; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.yt:hover img { transform: scale(1.04); }
.yt::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .34)); pointer-events: none; }
.yt.playing::after { display: none; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(1, 131, 128, .94); color: #fff; display: grid; place-items: center;
  box-shadow: 0 0 12px rgba(0, 0, 0, .28); transition: transform .2s;
}
.yt-play .ms { font-size: 34px; }
.yt:hover .yt-play { transform: translate(-50%, -50%) scale(1.1); }
.yt-wide { border-radius: var(--r-md); }

.vid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vid-card { border-radius: 18px; overflow: hidden; background: var(--tone-soft); border: 1.5px solid color-mix(in srgb, var(--tone) 18%, transparent); transition: transform .25s; }
.vid-card:hover { transform: translateY(-4px) rotate(-.4deg); }
.vid-meta { display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.vid-n { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--tone); }
.vid-meta b { display: block; font-size: 14.5px; }
.vid-meta span { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.vid-meta span .ms { font-size: 14px; }
@media (max-width: 1000px) { .vid-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .vid-grid { grid-template-columns: 1fr; } }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; scroll-margin-top: 90px; }
.card.mini { margin: 0; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(165deg, var(--tone-soft), #fff 70%); border: 1.5px solid color-mix(in srgb, var(--tone) 20%, transparent); position: relative; overflow: hidden; }
.card.mini h3 { font-family: var(--display); font-size: 21px; font-weight: 800; }
.card.mini p { font-size: 14px; color: var(--ink-2); flex: 1; }
.bonus-num { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--tone); }
.mini-ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--tone); color: #fff; transform: rotate(-6deg); box-shadow: 0 10px 20px -8px var(--tone); }
.mini-ic .ms { font-size: 26px; }
.via { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 700; color: #128c4b; background: #dcfce7; padding: 6px 12px; border-radius: 999px; align-self: flex-start; }
.rem-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.rem-chips span { display: flex; gap: 6px; align-items: center; padding: 9px 10px; border-radius: 12px; background: #fff; font-size: 13px; font-weight: 700; border: 1px solid var(--line); }
.rem-chips .ms { color: var(--tone); }
.card.mini.wa .btn { align-self: flex-start; }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; } }

/* ── 9. PDF viewer ────────────────────────────────────────────────────────── */
.pdfv { border-radius: var(--r-md); overflow: hidden; border: 1.5px solid color-mix(in srgb, var(--tone, var(--teal)) 22%, transparent); background: #eef0f6; }
.pdfv.accent-teal { --tone: var(--teal); }
.pdfv.accent-violet { --tone: var(--violet); }
.pdfv.accent-coral { --tone: var(--coral); }
.pdfv.accent-blue { --tone: var(--blue); }
.pdfv-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pdfv-title { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; min-width: 0; }
.pdfv-title .ms { color: var(--tone); }
.pdfv-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdfv-tools { display: flex; align-items: center; gap: 4px; }
.pdfv-count { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-right: 6px; }
.pdfv-zoom { font-size: 12.5px; font-weight: 700; min-width: 42px; text-align: center; }
.pdfv-btn { width: 34px; height: 34px; border-radius: 10px; border: 0; background: #f1f2f7; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.pdfv-btn:hover { background: var(--tone); color: #fff; }
.pdfv-scroll { max-height: min(72vh, 760px); overflow: auto; padding: 12px; -webkit-overflow-scrolling: touch; }
.pdfv-pages { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pdfv-page { background: #fff; box-shadow: 0 2px 10px rgba(11, 28, 48, .12); border-radius: 4px; overflow: hidden; }
.pdfv-page canvas { width: 100%; height: 100%; display: block; }
.pdfv-loading, .pdfv-error { padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; text-align: center; }
.pdfv-error > .ms { font-size: 36px; color: var(--red); }
.pdfv.is-full { position: fixed; inset: 0; z-index: 200; border-radius: 0; border: 0; display: flex; flex-direction: column; }
.pdfv.is-full .pdfv-scroll { max-height: none; flex: 1; }
@media (max-width: 520px) { .pdfv-count { display: none; } .pdfv-bar { padding: 8px 10px; } }

/* ── 10. Certificate ──────────────────────────────────────────────────────── */
.cert-wrap { position: relative; border-radius: var(--r-md); overflow: hidden; }
.cert { background: linear-gradient(135deg, #fffdf6, #fff8e6); padding: 14px; aspect-ratio: 1.414 / 1; container-type: inline-size; }
.cert-border {
  height: 100%; border: 3px solid #d4a017; outline: 1px solid #d4a017; outline-offset: -10px;
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 4cqw 6cqw; gap: 1.1cqw;
  background: radial-gradient(circle at 50% 0%, rgba(1, 131, 128, .07), transparent 60%), radial-gradient(circle at 100% 100%, rgba(124, 58, 237, .07), transparent 50%);
}
.cert-corner { position: absolute; width: 9cqw; height: 9cqw; border: 3px solid #018380; }
.cert-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.cert-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.cert-corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.cert-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.cert-logo { height: 7cqw; width: auto; }
.cert-kicker { font-family: var(--display); font-size: 4.2cqw; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #018380; }
.cert-line { font-size: 1.8cqw; color: var(--muted); font-style: italic; }
.cert-name { font-family: var(--display); font-size: 5.6cqw; font-weight: 800; color: #0b1c30; border-bottom: 2px solid #d4a017; padding: 0 3cqw .4cqw; }
.cert-prog { font-size: 2.8cqw; font-weight: 800; color: #7c3aed; }
.cert-small { font-size: 1.5cqw; color: var(--muted); max-width: 70%; }
.cert-foot { display: flex; align-items: flex-end; justify-content: space-between; width: 80%; margin-top: 1.6cqw; }
.cert-sig { display: flex; flex-direction: column; align-items: center; gap: .5cqw; min-width: 22cqw; }
.cert-sig .sig { font-size: 1.9cqw; font-weight: 700; }
.cert-sig .sig.script { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 3cqw; font-weight: 400; color: #0b1c30; }
.cert-sig i { width: 100%; height: 1.5px; background: #0b1c30; opacity: .5; }
.cert-sig small { font-size: 1.4cqw; color: var(--muted); }
.cert-seal { width: 11cqw; height: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .15)); }
.cert-wrap.locked .cert { filter: blur(3px) grayscale(.35); opacity: .75; }
.cert-lock {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  background: rgba(255, 255, 255, .35); padding: 20px;
}
.cert-lock b { font-family: var(--display); font-size: 22px; }
.cert-lock span { font-weight: 600; color: var(--ink-2); }
.cert-lock .bar { width: min(280px, 80%); height: 10px; margin-top: 6px; background: rgba(255, 255, 255, .8); }
.lock-ic { width: 60px; height: 60px; border-radius: 50%; background: #0b1c30; color: #fde68a; display: grid; place-items: center; font-size: 28px !important; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); }
.lock-ic .ms { font-size: 28px; }
.cert-actions { display: flex; justify-content: center; margin-top: 18px; }

.foot { padding: 30px 0 40px; border-top: 1px solid var(--line); margin-top: 20px; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot-inner img { height: 40px; width: auto; }

/* ── 11. Login ────────────────────────────────────────────────────────────── */
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { position: relative; overflow: hidden; background: #0b1c30; color: #fff; padding: 40px 56px; display: flex; flex-direction: column; }
.login-art .blob { opacity: .5; }
.login-art .blob.b1 { background: #018380; }
.login-art .blob.b2 { background: #7c3aed; }
.login-art .blob.b3 { background: #ec4899; }
.login-logo { height: 58px; width: auto; filter: brightness(0) invert(1); position: relative; align-self: flex-start; margin-left: -10px; }
.login-copy { position: relative; margin: auto 0; max-width: 520px; }
.login-copy .sticker { color: var(--ink); margin-bottom: 22px; border-color: #fff; box-shadow: 3px 3px 0 #5eead4; }
.login-copy h1 { font-family: var(--display); font-size: clamp(40px, 5vw, 66px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.login-copy .grad-text { background: linear-gradient(90deg, #5eead4, #c4b5fd, #f9a8d4, #fde68a); -webkit-background-clip: text; background-clip: text; }
.login-copy p { margin-top: 18px; color: rgba(255, 255, 255, .75); font-size: 17px; }
.login-perks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.login-perks li { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-weight: 600; font-size: 14px; }
.login-perks .ms { color: #5eead4; }
.login-pane { display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(circle at 80% 10%, #efe7ff, transparent 40%), radial-gradient(circle at 10% 90%, #e1f5f4, transparent 40%), var(--bg); }
.login-card { width: 100%; max-width: 420px; background: #fff; border-radius: 28px; padding: 34px 30px; box-shadow: 0 30px 70px -30px rgba(11, 28, 48, .35); border: 1px solid var(--line); }
.login-card h2 { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.login-card form { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.field { display: grid; gap: 8px; font-weight: 700; font-size: 14px; }
.phone-input { display: flex; align-items: center; border: 2px solid #e3e6ef; border-radius: 16px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.phone-input:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(1, 131, 128, .12); }
.phone-input .cc { padding: 0 12px 0 16px; font-weight: 800; color: var(--ink-2); border-right: 1.5px solid #e3e6ef; }
.phone-input input { flex: 1; border: 0; outline: 0; padding: 15px 14px; font: inherit; font-size: 18px; font-weight: 700; letter-spacing: .06em; min-width: 0; }
.err { color: #dc2626; font-size: 13.5px; font-weight: 600; min-height: 18px; }
.hint { margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: #fffbeb; color: #78350f; font-size: 13px; display: flex; gap: 8px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { width: 100%; aspect-ratio: 1 / 1.15; text-align: center; font: inherit; font-size: 24px; font-weight: 800; border: 2px solid #e3e6ef; border-radius: 14px; outline: 0; transition: border-color .15s, transform .15s; min-width: 0; }
.otp input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 58, 237, .14); transform: translateY(-2px); }
.resend { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }
.denied { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.denied-ic { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 4px; display: grid; place-items: center; background: #fee2e2; color: #dc2626; transform: rotate(-6deg); }
.denied-ic .ms { font-size: 30px; }
.denied h2 { font-size: 24px; }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 26px 20px 34px; }
  .login-copy { margin: 26px 0 0; }
  .login-copy h1 { font-size: 40px; }
  .login-copy p { font-size: 15px; }
  .login-pane { place-items: start center; padding: 0 16px 40px; background: var(--bg); }
  .login-card { margin-top: -18px; position: relative; padding: 26px 20px; }
}

/* ── 12. Protocol page ────────────────────────────────────────────────────── */
.pp-hero { position: relative; overflow: hidden; padding: 26px 0 36px; background: linear-gradient(160deg, var(--tone-soft), var(--bg)); }
.pp-hero .blob.b1 { background: var(--tone-2); opacity: .35; }
.pp-hero .wrap { position: relative; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.crumb:hover { color: var(--tone); }
.pp-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.pp-head h1 { font-family: var(--display); font-size: clamp(30px, 4.5vw, 50px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 8px; }
.pp-head p { color: var(--ink-2); max-width: 600px; }
.pp-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pp-hero .ring { --size: 130px; background: conic-gradient(from -90deg, var(--tone), var(--tone-2) calc(var(--p) * 1%), rgba(255, 255, 255, .8) 0); }
.pp-body { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; padding-top: 24px; padding-bottom: 40px; }
.pp-side { position: sticky; top: calc(var(--hdr-h) + 16px); }
.pp-main { min-width: 0; }
@media (max-width: 960px) {
  .pp-body { grid-template-columns: 1fr; }
  .pp-side { position: static; }
  .pp-head { align-items: flex-start; }
  .pp-hero .ring { --size: 96px; }
  .pp-hero .ring .ring-in b { font-size: 20px; }
}
.start-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.start-card h3 { font-family: var(--display); font-size: 22px; }
.start-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--tone), var(--tone-2)); color: #fff; transform: rotate(-6deg); }
.start-ic .ms { font-size: 30px; }
.start-card.locked .start-ic { background: #e5e7ef; color: var(--muted); }
.tracker-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.tracker-head h3 { font-family: var(--display); font-size: 21px; }
.tracker-head span { font-size: 13px; }
.days { list-style: none; margin: 16px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.day { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; transition: border-color .2s, background .2s; }
.day-l { display: flex; align-items: center; gap: 10px; }
.day-l b { display: block; font-size: 14px; }
.day-l small { color: var(--muted); font-size: 12px; }
.day-n { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: #f1f2f7; color: var(--muted); flex-shrink: 0; }
.day.open .day-n { background: #fef3c7; color: #92400e; }
.day.yes { background: #f0fdf4; border-color: rgba(34, 197, 94, .35); }
.day.yes .day-n { background: var(--green); color: #fff; }
.day.no { background: #fff5f5; border-color: rgba(239, 68, 68, .3); }
.day.no .day-n { background: var(--red); color: #fff; }
.day.locked { opacity: .6; }
.day.today { border-color: var(--tone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 16%, transparent); }
.day-lock { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.day-lock .ms { font-size: 15px; }
.yn { display: flex; gap: 6px; }
.yn-b { display: inline-flex; gap: 3px; align-items: center; border: 1.5px solid #e3e6ef; background: #fff; border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s; }
.yn-b .ms { font-size: 16px; }
.yn-b:disabled { cursor: default; }
.yn-b.yes:hover:not(:disabled), .yn-b.yes.on { background: var(--green); border-color: var(--green); color: #fff; }
.yn-b.no:hover:not(:disabled), .yn-b.no.on { background: var(--red); border-color: var(--red); color: #fff; }
.yn-b:disabled:not(.on) { opacity: .4; }
.done-box { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, #dcfce7, #fef3c7); margin-top: 6px; }
.done-box > span .ms { font-size: 36px; color: #b7791f; }
.done-box b { font-family: var(--display); font-size: 20px; }

/* ── 13. Prepco University (port of the app screens) ──────────────────────
   Values are the Flutter ones: kWlBackground #F8F9FF, kWlNavy #0B1C30,
   kWlTextGrey #6B7280, kPrimary #018380, kWlNavInactive #AEB4C0. */
.uni { min-height: 100vh; background: #f8f9ff; }
.wl-bar {
  position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; background: #fff; box-shadow: 0 1px 0 rgba(1, 131, 128, .08), 0 6px 18px -12px rgba(11, 28, 48, .25);
}
.wl-back, .wl-spacer { width: 40px; height: 40px; flex-shrink: 0; }
.wl-back { border-radius: 50%; display: grid; place-items: center; color: #0b1c30; }
.wl-back:hover { background: #f1f5f9; }
.wl-back .ms { font-size: 20px; }
.wl-title { flex: 1; text-align: center; font-size: 19px; font-weight: 800; color: #0b1c30; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-canvas { max-width: 720px; margin: 0 auto; background: #f8f9ff; min-height: calc(100vh - 60px); display: flex; flex-direction: column; }
.wl-loader { display: grid; place-items: center; padding: 80px 0; color: #018380; }
.wl-banner { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #018380, #006865); display: grid; place-items: center; color: rgba(255, 255, 255, .7); }
.wl-banner .ms { font-size: 44px; }
.wl-banner img { width: 100%; height: 100%; object-fit: cover; }
.wl-pad { padding: 16px 20px 4px; }
.wl-sub { font-size: 12.5px; color: #6b7280; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wl-h { font-size: 20px; font-weight: 800; color: #0b1c30; line-height: 1.25; margin-top: 6px; }
.wl-struct { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #6b7280; margin-top: 8px; }
.wl-struct .ms { font-size: 15px; font-variation-settings: 'FILL' 0; }
.wl-progress { display: flex; align-items: center; gap: 16px; margin: 16px 0 8px; }
.wl-progress-l { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.wl-progress-l b { font-size: 13px; font-weight: 700; color: #6b7280; }
.wl-progress-l b.on { color: #018380; }
.wl-progress-l small { font-size: 11.5px; color: #6b7280; margin-top: -2px; }
.wl-track { height: 6px; border-radius: 10px; background: rgba(1, 131, 128, .10); overflow: hidden; }
.wl-track i { display: block; height: 100%; background: #018380; border-radius: 10px; }
.wl-btn { background: #018380; color: #fff; padding: 14px 22px; border-radius: 12px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.wl-btn:hover { background: #016f6c; }
.wl-btn.disabled { background: rgba(1, 131, 128, .35); }
.wl-drip { padding: 4px 20px; font-size: 12px; line-height: 1.45; color: #6b7280; }
.wl-sec { display: flex; align-items: center; gap: 10px; padding: 18px 20px 12px; font-size: 15.5px; font-weight: 800; color: #0b1c30; }
.wl-sec > span:first-child { flex: 1; }
.wl-sec-lock { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 20px; background: rgba(1, 131, 128, .08); color: #018380; font-size: 11.5px; font-weight: 700; }
.wl-sec-lock .ms { font-size: 12px; }
.wl-row {
  display: flex; align-items: center; gap: 6px; margin: 0 20px 10px; padding: 13px 12px 13px 14px;
  background: #fff; border-radius: 14px; border: 1px solid rgba(1, 131, 128, .10); transition: background .15s;
}
a.wl-row:hover { background: #f4fbfb; }
.wl-row-n { width: 30px; font-size: 13.5px; font-weight: 700; color: #6b7280; flex-shrink: 0; }
.wl-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; margin-right: 4px; }
.wl-row-t b { font-size: 14px; font-weight: 700; line-height: 1.3; color: #0b1c30; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wl-row-t small { font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-row.locked .wl-row-n, .wl-row.locked .wl-row-t b { color: #aeb4c0; }
.wl-badge { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: #018380; background: rgba(1, 131, 128, .10); border: 1px solid rgba(1, 131, 128, .2); }
.wl-badge .ms { font-size: 17px; }
.wl-badge.watched { color: #2e9e5b; background: rgba(46, 158, 91, .10); border-color: rgba(46, 158, 91, .9); }
.wl-badge.locked { color: #aeb4c0; background: rgba(174, 180, 192, .10); border-color: rgba(174, 180, 192, .2); }
.wl-empty-day { padding: 0 20px 12px; font-size: 12.5px; color: #6b7280; }
.wl-msg { margin: auto; padding: 60px 36px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #6b7280; }
.wl-msg .ms { font-size: 44px; }
.wl-msg b { font-size: 16px; }
.wl-msg p { font-size: 13px; line-height: 1.45; }
.wl-msg.small { padding: 24px 20px; }

.wl-player .yt { border-radius: 0; }
.wl-vtitle { display: flex; gap: 10px; align-items: flex-start; }
.wl-vnum { font-size: 16px; font-weight: 700; color: #6b7280; margin-top: 1px; }
.wl-vtitle h2 { font-size: 18px; font-weight: 800; color: #0b1c30; line-height: 1.25; }
.wl-in { font-size: 12.5px; color: #6b7280; margin-top: 4px; }
.wl-in.indent { padding-left: 34px; }
.wl-instr { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.wl-instr b { display: block; font-size: 14px; color: #0b1c30; }
.wl-instr small { font-size: 12px; color: #6b7280; }
.wl-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(1, 131, 128, .12); color: #018380; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; overflow: hidden; }
.wl-avatar.brand { background: #fff; border: 1px solid rgba(1, 131, 128, .2); }
.wl-avatar img { width: 70%; }
.wl-tabs { display: flex; gap: 6px; margin: 20px 0 16px; border-bottom: 0; }
.wl-tabs button { flex: 1; border: 0; background: #fff; border: 1px solid rgba(1, 131, 128, .14); border-radius: 12px; padding: 10px 8px; font-size: 13.5px; font-weight: 700; color: #6b7280; cursor: pointer; }
.wl-tabs button.on { background: #018380; border-color: #018380; color: #fff; }
.wl-panel { border-top: 1px solid rgba(1, 131, 128, .10); background: #f8f9ff; padding: 18px 20px 24px; flex: 1; }
.wl-chrome { position: sticky; bottom: 0; background: #fff; border-top: 1px solid rgba(1, 131, 128, .10); }
.wl-composer { display: flex; gap: 8px; padding: 10px 14px; border-bottom: 1px solid rgba(1, 131, 128, .08); }
.wl-composer input { flex: 1; min-width: 0; border: 1px solid rgba(1, 131, 128, .2); border-radius: 22px; padding: 10px 16px; font: inherit; font-size: 14px; outline: 0; background: #f8f9ff; }
.wl-composer input:focus { border-color: #018380; }
.wl-composer button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #018380; color: #fff; display: grid; place-items: center; cursor: pointer; }
.wl-prevnext { display: flex; padding: 4px 20px calc(4px + env(safe-area-inset-bottom)); }
.wl-prevnext > * { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 2px; padding: 12px; font-size: 14px; font-weight: 600; color: #0b1c30; border-radius: 10px; }
.wl-prevnext a:hover { background: #f4fbfb; }
.wl-prevnext .off { color: #aeb4c0; }
.wl-comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.wl-comments li { display: flex; gap: 10px; }
.wl-comments li > div { flex: 1; background: #fff; border-radius: 14px; padding: 10px 12px; border: 1px solid rgba(1, 131, 128, .08); font-size: 14px; color: #0b1c30; }
.wl-comments li.admin > div { border-color: rgba(1, 131, 128, .3); background: #f1fbfa; }
.wl-c-head { display: flex; gap: 8px; align-items: center; margin-bottom: 3px; font-size: 13px; }
.wl-c-head small { color: #6b7280; margin-left: auto; font-size: 11.5px; }
.wl-team { font-size: 10.5px; font-weight: 800; background: #018380; color: #fff; padding: 2px 7px; border-radius: 6px; }
.wl-docs { display: flex; flex-direction: column; gap: 10px; }
.wl-doc { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 12px 14px; border: 1px solid rgba(1, 131, 128, .10); font-size: 14px; }
.wl-doc > div { flex: 1; }
.wl-doc b { display: block; color: #0b1c30; }
.wl-doc small, .wl-doc p { font-size: 12.5px; color: #6b7280; }
.wl-doc > .ms { color: #6b7280; }
.wl-doc-ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(1, 131, 128, .10); color: #018380; display: grid; place-items: center; flex-shrink: 0; }
.wl-faq { display: flex; flex-direction: column; gap: 10px; }
.wl-faq-row { background: #fff; border-radius: 14px; border: 1px solid rgba(1, 131, 128, .10); overflow: hidden; }
.wl-faq-row button { width: 100%; display: flex; gap: 10px; align-items: center; justify-content: space-between; background: none; border: 0; padding: 14px; text-align: left; font-size: 14px; font-weight: 700; color: #0b1c30; cursor: pointer; }
.wl-faq-row button .ms { transition: transform .2s; color: #6b7280; }
.wl-faq-row p { display: none; padding: 0 14px 14px; font-size: 13.5px; line-height: 1.5; color: #334155; }
.wl-faq-row.open p { display: block; }
.wl-faq-row.open button .ms { transform: rotate(180deg); }

/* ── 14. Toast, confetti, demo panel, print ───────────────────────────────── */
#toast-root { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
.toast { background: #0b1c30; color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(12px); transition: all .25s; text-align: center; }
.toast.in { opacity: 1; transform: none; }
.toast-ok { background: linear-gradient(135deg, #018380, #0e9f9a); }
.toast-err { background: #b91c1c; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 400; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .8; } }

.demo { position: fixed; right: 16px; bottom: 16px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.demo-fab { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #0b1c30; color: #fde68a; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); display: grid; place-items: center; order: 2; }
.demo-body { display: none; order: 1; background: #fff; border-radius: 18px; padding: 16px; width: 250px; box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .35); border: 1px solid var(--line); flex-direction: column; gap: 8px; font-size: 13.5px; }
.demo.open .demo-body { display: flex; }
.demo-body small { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-top: 4px; }
.demo-row { display: flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.demo-row input { accent-color: var(--teal); width: 16px; height: 16px; }
.demo-actions { display: flex; gap: 6px; }
.demo-actions button { flex: 1; border: 1px solid var(--line); background: #f6f6fc; border-radius: 10px; padding: 7px 4px; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.demo-actions button:hover { background: var(--teal); color: #fff; }

@media print {
  body.print-cert * { visibility: hidden !important; }
  body.print-cert [data-cert], body.print-cert [data-cert] * { visibility: visible !important; }
  body.print-cert [data-cert] { position: fixed; inset: 0; width: 100%; height: auto; }
  @page { size: A4 landscape; margin: 0; }
}

/* ═══ v2 — header, hero copy, attendance, PDF boxes, remission CTA, modal,
   comments, protection ═══════════════════════════════════════════════════ */

/* ── Header (web: floating glass bar + segmented nav) ─────────────────────── */
.site-header { background: transparent; border: 0; padding: 12px 0 0; backdrop-filter: none; }
.site-header.scrolled { background: transparent; }
.hdr-inner {
  height: 66px; padding: 0 10px 0 18px; max-width: 1200px; width: calc(100% - 32px);
  background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 22px;
  box-shadow: 0 1px 0 rgba(11, 28, 48, .04), 0 14px 34px -18px rgba(11, 28, 48, .28);
  transition: box-shadow .25s, background .25s;
}
.site-header.scrolled .hdr-inner { background: rgba(255, 255, 255, .92); box-shadow: 0 18px 40px -18px rgba(11, 28, 48, .35); }
.hdr-logo img { height: 44px; margin-left: -6px; }
.hdr-nav { margin: 0 auto; padding: 5px; gap: 2px; background: #f1f2f8; border-radius: 16px; box-shadow: inset 0 1px 2px rgba(11, 28, 48, .06); }
.hdr-nav .nav-chip { border: 0; border-radius: 12px; padding: 7px 14px 7px 8px; color: var(--ink-2); }
.hdr-nav .nav-chip:hover { background: #fff; transform: none; color: var(--tone); }
.hdr-nav .nav-chip.active { background: #fff; color: var(--tone); box-shadow: 0 4px 12px -4px rgba(11, 28, 48, .18); }
.hdr-nav .nav-chip .ms { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 17px; background: var(--tone-soft); }
.me-btn { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 14px; border-radius: 16px; transition: background .2s; }
.me-btn:hover { background: #f1f2f8; }
.me-hi { display: grid; text-align: right; line-height: 1.15; }
.me-hi small { font-size: 11px; color: var(--muted); font-weight: 600; }
.me-hi b { font-size: 14px; }
.avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(124, 58, 237, .35); }
.me-item.plain { color: var(--ink); }
.me-item.plain:hover { background: #f4f5fb; }
.me-item.plain .ms { color: var(--teal); }

/* Mobile bottom tab bar */
.tabbar { display: none; }
@media (max-width: 960px) {
  .site-header { padding: 8px 0 0; }
  .hdr-inner { height: 58px; width: calc(100% - 20px); padding: 0 6px 0 12px; border-radius: 18px; }
  .hdr-logo img { height: 38px; }
  .me-hi { display: none; }
  .me-btn { padding: 2px; }
  .tabbar {
    display: flex; position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    background: rgba(11, 28, 48, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-radius: 22px; padding: 6px; box-shadow: 0 18px 40px -12px rgba(11, 28, 48, .55);
  }
  .tab-i {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px;
    border-radius: 16px; color: rgba(255, 255, 255, .62); font-size: 10.5px; font-weight: 700; transition: background .2s, color .2s;
  }
  .tab-i .ms { font-size: 22px; transition: transform .2s; }
  .tab-i.active { background: rgba(255, 255, 255, .12); color: #fff; }
  .tab-i.active .ms { color: var(--tone-2); transform: translateY(-1px) scale(1.08); }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .demo { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .hdr-nav-m { display: none !important; }
}

/* ── Hero headline ─────────────────────────────────────────────────────────── */
.sticker.s-violet { background: #ede9fe; }
.hero-title { font-family: var(--display); letter-spacing: -.025em; display: flex; flex-direction: column; gap: 2px; }
.hero-title span { display: block; }
.ht-welcome { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; color: var(--ink-2); letter-spacing: -.01em; }
.ht-start { font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1.05; }
.ht-main { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; line-height: 1.02; padding-bottom: 4px; }
.ht-end { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; line-height: 1; }

/* ── Journey ───────────────────────────────────────────────────────────────── */
.congrats {
  width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 14px; text-align: left;
  background: linear-gradient(135deg, #fff7d6, #fde7f3); border: 1.5px dashed #f5b301; display: grid; gap: 4px;
}
.congrats b { display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; color: #7c4a03; line-height: 1.3; }
.congrats b .ms { color: #e67e22; }
.congrats span { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.eyebrow-gold { color: #92400e; background: linear-gradient(135deg, #fff7d6, #ffe7a3); border-color: #f5c542; }
.eyebrow-gold .ms { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #f59e0b; color: #fff; font-size: 14px; }
.amp { color: var(--coral); }
.kit-n { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }

/* ── Protocol cards: attendance ────────────────────────────────────────────── */
.proto-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.proto-head h4 { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 18px; }
.proto-head h4 .ms { color: var(--teal); }
.att-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.att-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ad { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.ad.yes { background: var(--green); }
.ad.no { background: var(--red); }
.ad.missed { background: #fca5a5; box-shadow: inset 0 0 0 1.5px #ef4444; }
.ad.today { background: #fbbf24; }

.proto { padding-top: 22px; }
.proto.is-current { box-shadow: 0 0 0 3px var(--tone), 0 22px 44px -18px var(--tone); }
.here-pin {
  position: absolute; top: -13px; left: 16px; display: inline-flex; align-items: center; gap: 3px; z-index: 2;
  background: var(--tone); color: #fff; font-size: 11.5px; font-weight: 800; padding: 4px 10px 4px 7px; border-radius: 999px;
  box-shadow: 0 6px 14px -4px var(--tone); animation: bob 3s ease-in-out infinite;
}
.here-pin .ms { font-size: 15px; }
.proto-label {
  display: inline-block; font-family: var(--display); font-weight: 800; font-size: 15px; color: #fff; line-height: 1.2;
  background: linear-gradient(135deg, var(--tone), var(--tone-2)); padding: 7px 12px; border-radius: 12px;
  box-shadow: 0 8px 18px -8px var(--tone); transform: rotate(-2deg);
}
.proto-label.big { font-size: 18px; padding: 8px 16px; }
.proto-title { margin-top: 6px; font-size: 18px; }
.proto p { font-size: 12.5px; line-height: 1.45; flex: 0; }
.proto-pdf {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
a.proto-pdf:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px var(--tone); }
.proto-pdf > div:nth-child(2) { flex: 1; display: grid; }
.proto-pdf b { font-size: 13px; }
.proto-pdf small { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 2px; }
.proto-pdf.locked { opacity: .7; }
.proto-pdf.locked .doc-thumb { filter: blur(2px); }
.proto-tag { display: inline-flex; gap: 5px; align-items: center; align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 5px 9px; border-radius: 8px; background: #e3edff; color: #1d4ed8; }
.ad-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 4px; }
.ad-day { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ad-day i { width: 100%; aspect-ratio: 1; max-width: 30px; border-radius: 9px; display: grid; place-items: center; background: #eef0f6; color: #aeb4c0; font-style: normal; }
.ad-day i .ms { font-size: 15px; }
.ad-day small { font-size: 10px; font-weight: 700; color: var(--muted); }
.ad-day.yes i { background: var(--green); color: #fff; }
.ad-day.no i { background: var(--red); color: #fff; }
.ad-day.missed i { background: #fee2e2; color: #dc2626; box-shadow: inset 0 0 0 1.5px #fca5a5; }
.ad-day.today i { background: #fbbf24; color: #fff; animation: pulse 1.8s ease-in-out infinite; }
.ad-day.today small { color: #b45309; }
.proto-foot { gap: 8px; }
.proto-foot .muted { font-size: 12px; }

/* ── PDF boxes ─────────────────────────────────────────────────────────────── */
.doc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.doc-card { display: flex; flex-direction: column; border-radius: 18px; background: var(--tone-soft); border: 1.5px solid color-mix(in srgb, var(--tone) 18%, transparent); overflow: hidden; transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.doc-card:hover { transform: translateY(-5px) rotate(-.5deg); box-shadow: 0 18px 34px -16px var(--tone); }
.doc-thumb { position: relative; aspect-ratio: 3 / 4; margin: 10px 10px 0; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 6px 16px -8px rgba(11, 28, 48, .35); }
.doc-thumb canvas { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.doc-thumb.sm { width: 46px; flex-shrink: 0; margin: 0; border-radius: 6px; }
.thumb-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--tone, var(--teal)); background: linear-gradient(135deg, #fff, var(--tone-soft, #e1f5f4)); }
.thumb-ph .ms { font-size: 30px; }
.doc-thumb.sm .thumb-ph .ms { font-size: 20px; }
.doc-open { position: absolute; left: 50%; bottom: 10px; transform: translate(-50%, 8px); opacity: 0; display: inline-flex; gap: 4px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--tone); color: #fff; font-size: 12px; font-weight: 800; transition: all .2s; white-space: nowrap; }
.doc-card:hover .doc-open { opacity: 1; transform: translate(-50%, 0); }
.doc-meta { padding: 10px 12px 14px; display: grid; gap: 2px; }
.doc-badge { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--tone); }
.doc-meta b { font-size: 14px; line-height: 1.25; }
.doc-meta small { font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) { .doc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .doc-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -18px; padding: 4px 18px 10px; scrollbar-width: none; }
  .doc-grid::-webkit-scrollbar { display: none; }
  .doc-card { flex: 0 0 150px; scroll-snap-align: start; }
  .doc-open { opacity: 1; transform: translate(-50%, 0); }
}

/* ── Videos: one row of 4 ──────────────────────────────────────────────────── */
.vid-meta { display: grid; gap: 3px; }
.vid-meta .vid-kind { display: inline-flex; gap: 4px; align-items: center; justify-self: start; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--tone); }
.vid-meta .vid-dur { display: inline-flex; gap: 4px; align-items: center; }
@media (max-width: 640px) {
  .vid-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 4px 18px 10px; scrollbar-width: none; }
  .vid-grid::-webkit-scrollbar { display: none; }
  .vid-card { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ── Certificate preview + remission CTA ───────────────────────────────────── */
.cert-lock .btn { margin-top: 8px; background: #fff; }
.cert-actions { gap: 10px; flex-wrap: wrap; }
.cert-actions:empty { display: none; }
.remission {
  position: relative; overflow: hidden; margin-top: 26px; padding: 34px 28px; border-radius: 24px; text-align: center;
  background: radial-gradient(circle at 15% 20%, rgba(94, 234, 212, .35), transparent 45%), radial-gradient(circle at 85% 80%, rgba(236, 72, 153, .35), transparent 45%), linear-gradient(135deg, #0b1c30, #1e1b4b 60%, #3b0764);
  color: #fff; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.rm-glow { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: conic-gradient(from 0deg, #5eead4, #a78bfa, #f472b6, #fbbf24, #5eead4); filter: blur(70px); opacity: .35; top: -150px; left: calc(50% - 150px); animation: spin 12s linear infinite; }
.rm-kicker { position: relative; display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #5eead4; padding: 6px 12px; border-radius: 999px; background: rgba(94, 234, 212, .12); border: 1px solid rgba(94, 234, 212, .3); }
.remission h3 { position: relative; font-family: var(--display); font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.remission h3 span { background: linear-gradient(90deg, #5eead4, #c4b5fd, #f9a8d4, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.remission p { position: relative; max-width: 560px; color: rgba(255, 255, 255, .78); font-size: 15px; }
.remission [data-ultimate] { position: relative; margin-top: 8px; }
.btn-ultimate {
  position: relative; padding: 17px 28px; font-size: 16px; font-weight: 800; color: #1a1033; white-space: normal;
  background: linear-gradient(135deg, #fde68a, #fbbf24 40%, #f472b6); box-shadow: 0 16px 40px -12px rgba(251, 191, 36, .7), inset 0 1px 0 rgba(255, 255, 255, .6);
  overflow: hidden;
}
.btn-ultimate::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-20deg); animation: shine 2.8s ease-in-out infinite; }
@keyframes shine { 60%, 100% { left: 130%; } }
.btn-ultimate:hover { transform: translateY(-3px) scale(1.02); }
.btn-ultimate.done { background: #dcfce7; color: #166534; box-shadow: none; }
.btn-ultimate.done::after { display: none; }
@media (max-width: 600px) { .remission { padding: 28px 18px; } .btn-ultimate { width: 100%; font-size: 15px; padding: 15px 18px; } }

/* ── Modal + thank-you ─────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .25s; }
.modal.in { opacity: 1; }
.modal-back { position: absolute; inset: 0; background: rgba(11, 28, 48, .6); backdrop-filter: blur(4px); }
.modal-card { position: relative; z-index: 2; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 26px; padding: 28px 24px; transform: translateY(20px) scale(.96); transition: transform .3s cubic-bezier(.2, .8, .2, 1.2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.modal.in .modal-card { transform: none; }
.modal-wide .modal-card { max-width: 900px; padding: 16px; }
.modal-x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f1f2f7; cursor: pointer; display: grid; place-items: center; }
.party { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.thanks { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 6px; }
.thanks-ic { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(135deg, #22c55e, #018380); color: #fff; transform: rotate(-6deg); box-shadow: 0 16px 30px -10px rgba(34, 197, 94, .6); animation: pop .5s cubic-bezier(.2, .8, .2, 1.4); }
.thanks-ic .ms { font-size: 40px; }
@keyframes pop { from { transform: scale(.3) rotate(-30deg); } }
.thanks h3 { font-family: var(--display); font-size: 32px; font-weight: 800; margin-top: 8px; }
.thanks p { font-size: 17px; font-weight: 700; color: var(--ink-2); }
.thanks small { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.cert-modal .cert { border-radius: 14px; }

/* ── Protocol page: today + day list ───────────────────────────────────────── */
.today-box { position: relative; margin: 22px 0 6px; padding: 22px 16px 16px; border-radius: 18px; text-align: center; display: grid; gap: 10px; background: linear-gradient(135deg, #fff7d6, #fff); border: 2px solid #fbbf24; }
.today-box.marked.yes { background: linear-gradient(135deg, #dcfce7, #fff); border-color: #22c55e; }
.today-box.marked.no { background: linear-gradient(135deg, #fee2e2, #fff); border-color: #ef4444; }
.today-box b { font-family: var(--display); font-size: 18px; }
.today-box small { color: var(--muted); font-size: 12px; display: inline-flex; gap: 4px; align-items: center; justify-content: center; }
.today-pin { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; display: inline-flex; gap: 3px; align-items: center; font-size: 11.5px; font-weight: 800; padding: 4px 10px 4px 7px; border-radius: 999px; background: var(--tone); color: #fff; }
.today-pin .ms { font-size: 15px; }
.yn.big { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.yn.big .yn-b { justify-content: center; padding: 12px; font-size: 15px; }
.yn.big .yn-b.yes { background: var(--green); border-color: var(--green); color: #fff; }
.yn.big .yn-b.no { color: #b91c1c; border-color: #fecaca; }
.day-st { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: #f1f2f7; color: var(--muted); }
.day-st .ms { font-size: 15px; }
.day-st.yes { background: #dcfce7; color: #15803d; }
.day-st.no { background: #fee2e2; color: #b91c1c; }
.day-st.missed { background: #fff1f2; color: #e11d48; }
.day-st.today { background: #fef3c7; color: #b45309; }
.day.missed { background: #fffafa; border-color: #fecdd3; }
.day.missed .day-n { background: #fecdd3; color: #be123c; }
.day.today { border-color: #fbbf24; background: #fffbeb; }
.day.today .day-n { background: #fbbf24; color: #fff; }
.pp-head h1 { margin: 16px 0 8px; }

/* ── Comments (app parity) ─────────────────────────────────────────────────── */
.cm-intro { font-size: 12.5px; color: #6b7280; margin-bottom: 14px; }
.cm-empty { font-size: 13px; color: #6b7280; padding: 12px 0; }
.cm-thread { margin-bottom: 16px; }
.cm { display: flex; gap: 10px; align-items: flex-start; }
.cm.reply { margin: 8px 0 0 40px; }
.cm.reply .wl-avatar { width: 28px; height: 28px; font-size: 12px; }
.cm-body { flex: 1; min-width: 0; }
.cm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.cm-head b { color: #0b1c30; }
.cm-head small { color: #6b7280; font-size: 11.5px; }
.wl-team { background: rgba(1, 131, 128, .10); color: #018380; font-size: 10px; padding: 2px 6px; border-radius: 4px; }
.cm-you { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: #ede9fe; color: #6d28d9; }
.cm-text { font-size: 13.5px; line-height: 1.5; color: #0b1c30; margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.cm.admin .cm-text { background: #f1fbfa; border: 1px solid rgba(1, 131, 128, .18); padding: 8px 10px; border-radius: 4px 12px 12px 12px; }
.cm-actions { display: flex; gap: 12px; margin-top: 2px; }
.cm-actions button { background: none; border: 0; padding: 3px 0; font-size: 12px; font-weight: 600; color: #6b7280; cursor: pointer; }
.cm-actions button.danger { color: #ef4444; }
.cm.confirm .cm-actions .danger { font-weight: 800; }
.cm-await { display: flex; gap: 6px; align-items: center; margin: 4px 0 0 44px; font-size: 12px; color: #6b7280; }
.cm-await .ms { font-size: 14px; }
.cm-edit { margin-top: 6px; display: grid; gap: 8px; }
.cm-edit textarea { width: 100%; font: inherit; font-size: 14px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #018380; outline: 0; resize: vertical; }
.cm-edit > div { display: flex; justify-content: flex-end; gap: 12px; align-items: center; }
.wl-avatar.me { background: linear-gradient(135deg, #7c3aed, #ec4899); color: #fff; }
.wl-composer { align-items: center; }

/* ── Reader page ───────────────────────────────────────────────────────────── */
.reader { min-height: 100vh; background: #e9ebf3; }
.reader-body { max-width: 900px; margin: 0 auto; padding: 12px; }
.pdfv.is-page { border: 0; background: transparent; }
.pdfv.is-page .pdfv-bar { position: sticky; top: 60px; z-index: 5; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 10px; }
.pdfv.is-page .pdfv-scroll { max-height: none; overflow: visible; padding: 0; }

/* ── Protection ────────────────────────────────────────────────────────────── */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
img, canvas { -webkit-user-drag: none; }
.pdfv-page { position: relative; }
.wmark { position: absolute; inset: -20%; overflow: hidden; pointer-events: none; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; gap: 48px 34px; transform: rotate(-24deg); opacity: .1; }
.wmark span { font-size: 13px; font-weight: 800; color: #0b1c30; white-space: nowrap; }
.shield { position: fixed; inset: 0; z-index: 9999; background: #000; color: #fff; display: none; place-items: center; text-align: center; }
.shield div { display: grid; gap: 6px; justify-items: center; opacity: .8; }
.shield .ms { font-size: 40px; }
body.shielded .shield { display: grid; }
@media print {
  body:not(.print-cert) * { display: none !important; }
}
.proto-top { flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.proto-label { white-space: nowrap; }
.proto-st { white-space: nowrap; margin-left: auto; }
.proto.tone-blue .proto-label { white-space: normal; }
.pdfv.is-page { overflow: visible; }
@media (max-width: 1100px) { .proto:not(:nth-last-child(2))::after { display: none; } }
@media (max-width: 900px) {
  .hero-visual { order: 0; min-height: 280px; }
  .ring { --size: 200px; }
  .ring-in b { font-size: 40px; }
  .hero-copy { text-align: left; }
}
@media (max-width: 480px) { .ht-main, .ht-end { font-size: 36px; } .ht-start { font-size: 28px; } .hero { padding-top: 22px; } }
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--teal); }
.boot img { height: 56px; width: auto; }

/* ═══ v3 — hero behind the header, person photos, journey fill, bonus kit
   bento, bonus ribbons ═══════════════════════════════════════════════════ */

/* ── The hero (and protocol hero) run up behind the floating header ────────── */
:root { --hdr-total: 78px; }
@media (max-width: 960px) { :root { --hdr-total: 66px; } }
.home .hero, .proto-page .pp-hero { margin-top: calc(-1 * var(--hdr-total)); padding-top: calc(var(--hdr-total) + 44px); }
.home .hero { background: linear-gradient(180deg, #e8fbf8 0%, #f4f0ff 55%, var(--bg) 100%); }
.site-header { position: sticky; }

/* ── Hero visual: coach photo + ring aligned with the chips ────────────────── */
.hero-inner { align-items: start; }
.hero-visual { min-height: 560px; display: block; }
.hv-disc {
  position: absolute; right: 0; bottom: 0; width: 430px; height: 430px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5eead4 0%, #0d9488 45%, #134e4a 100%);
  box-shadow: 0 40px 80px -30px rgba(13, 148, 136, .6); opacity: .95;
}
.hv-disc::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 2px dashed rgba(124, 58, 237, .35); animation: spin 40s linear infinite; }
.hero-person { position: absolute; right: 10px; bottom: 0; height: 560px; width: auto; max-width: none; filter: drop-shadow(0 24px 30px rgba(11, 28, 48, .28)); z-index: 1; }
.hero .hv-ring { position: absolute; top: 0; left: 0; --size: 190px; z-index: 2; box-shadow: 0 24px 50px -18px rgba(124, 58, 237, .45); }
.hero .hv-ring .ring-in b { font-size: 40px; }
.hero .hv-ring .ring-in span { font-size: 11px; }
.hero .float-chip { z-index: 3; }
.hero .float-chip.c1 { top: 206px; left: 10px; }
.hero .float-chip.c2 { top: 300px; left: -10px; }
.hero .float-chip.c3 { bottom: 40px; left: 20px; }
@media (max-width: 1100px) { .hero-person { height: 500px; } .hv-disc { width: 380px; height: 380px; } .hero-visual { min-height: 500px; } }
@media (max-width: 900px) {
  .hero-visual { min-height: 420px; margin-top: 8px; }
  .hero-person { height: 420px; right: 0; }
  .hv-disc { width: 300px; height: 300px; right: 10px; }
  .hero .hv-ring { --size: 140px; }
  .hero .hv-ring .ring-in b { font-size: 28px; }
  .hero .hv-ring .ring-in span { font-size: 9.5px; }
  .hero .float-chip.c1 { top: 156px; left: 0; }
  .hero .float-chip.c2 { top: 214px; left: 0; }
  .hero .float-chip.c3 { bottom: 24px; left: 0; }
}
@media (max-width: 420px) {
  .hero-visual { min-height: 380px; }
  .hero-person { height: 380px; right: -14px; }
  .hv-disc { width: 250px; height: 250px; right: 0; }
}

/* ── Journey: equal cards, footer status, Foundation checklist ─────────────── */
.flow-card { justify-content: flex-start; }
.flow-card .flow-state { margin-top: auto; }
.flow-card > .flow-sub + .flow-state, .flow-card > .congrats + .flow-state, .flow-card > .flow-list + .flow-state { margin-top: auto; }
.flow-list { list-style: none; padding: 12px; margin: 0; width: 100%; display: grid; gap: 8px; border-radius: 14px; background: var(--tone-soft); text-align: left; }
.flow-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.flow-list .ms { color: var(--tone); font-size: 18px; }
.flow-state.st-now { background: #ede9fe; color: #6d28d9; }
.flow-state.st-next { background: #ffe9e6; color: #c2410c; }
.flow-state.st-later { background: #fff4d6; color: #92400e; }
.congrats { background: linear-gradient(135deg, #fff4c2, #ffe08a); border: 1.5px solid #f5b301; padding: 12px 14px; }
.congrats b { color: #7c4a03; font-family: var(--display); font-size: 14.5px; }
.congrats b .ms { color: #d97706; }
@media (max-width: 960px) { .flow-card .flow-state { margin-top: 4px; } }

/* ── Bonus kit banner ──────────────────────────────────────────────────────── */
.kit-banner {
  position: relative; display: grid; grid-template-columns: 1fr 260px; align-items: center; gap: 24px;
  padding: 34px 40px; margin-bottom: 26px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at 90% 20%, rgba(250, 204, 21, .35), transparent 40%), linear-gradient(135deg, #0b1c30, #134e4a 55%, #0f766e);
  color: #fff; box-shadow: 0 30px 60px -30px rgba(15, 118, 110, .7);
}
.kb-copy h2 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 14px 0 10px; }
.kb-copy h2 .grad-text { background: linear-gradient(90deg, #fde68a, #fbbf24, #f9a8d4); -webkit-background-clip: text; background-clip: text; }
.kb-copy h2 .amp { color: #fbbf24; }
.kb-copy p { color: rgba(255, 255, 255, .78); font-size: 15px; }
.kb-art { position: relative; display: grid; place-items: center; height: 220px; }
.kb-art img { position: relative; height: 200px; width: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .45)); animation: bob 4s ease-in-out infinite; }
.kb-glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(253, 224, 71, .55), transparent 65%); }
.kb-badge { position: absolute; right: 6px; top: 10px; width: 74px; height: 74px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: linear-gradient(135deg, #fde68a, #f59e0b); color: #422006; font-size: 11px; font-weight: 800; text-transform: uppercase; box-shadow: 0 10px 24px -8px rgba(245, 158, 11, .8); transform: rotate(12deg); }
.kb-badge b { font-family: var(--display); font-size: 28px; line-height: 1; }
@media (max-width: 760px) {
  .kit-banner { grid-template-columns: 1fr; padding: 26px 20px 12px; text-align: center; gap: 0; }
  .kb-art { height: 170px; order: -1; }
  .kb-art img { height: 150px; }
  .kb-badge { right: calc(50% - 120px); }
}

/* ── Bonus kit bento (3 × 3) ───────────────────────────────────────────────── */
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 30px; overflow: visible; padding: 0; }
.kit-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 18px 18px 16px; min-height: 176px; border-radius: 24px; border: 0; color: #fff;
  background: linear-gradient(145deg, var(--tone) 0%, color-mix(in srgb, var(--tone) 70%, #0b1c30) 100%);
  box-shadow: 0 18px 36px -20px var(--tone);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}
.kit-tile::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.kit-tile::before { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-20deg); transition: left .6s; }
.kit-tile:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 26px 44px -18px var(--tone); border: 0; }
.kit-tile:hover::before { left: 130%; }
.kit-big { position: absolute; right: -10px; bottom: -22px; opacity: .16; pointer-events: none; }
.kit-big .ms { font-size: 140px; }
.kit-top { position: relative; z-index: 1; width: 100%; display: flex; justify-content: space-between; align-items: center; }
.kit-tile .kit-n { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(4px); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.kit-tile .kit-n .ms { font-size: 14px; }
.kit-tile .kit-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: #fff; color: var(--tone); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .35); transform: rotate(-6deg); }
.kit-tile .kit-ic .ms { font-size: 24px; }
.kit-tile .kit-t { position: relative; z-index: 1; font-family: var(--display); font-size: 19px; font-weight: 800; line-height: 1.15; margin-top: 10px; }
.kit-d { position: relative; z-index: 1; font-size: 13px; color: rgba(255, 255, 255, .85); line-height: 1.4; max-width: 90%; }
.kit-go { position: relative; z-index: 1; margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; }
.kit-go .ms { font-size: 16px; transition: transform .2s; }
.kit-tile:hover .kit-go .ms { transform: translateX(4px); }
.kit-tile.tone-gold { background: linear-gradient(145deg, #f59e0b, #b45309); }
.kit-tile.tone-amber { background: linear-gradient(145deg, #f59e0b, #c2410c); }
.kit-tile.tone-green { background: linear-gradient(145deg, #22c55e, #15803d); }
@media (max-width: 1000px) { .kit-grid { grid-template-columns: repeat(2, 1fr); } .kit-grid .kit-tile:last-child { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .kit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 24px; padding: 0; overflow: visible; }
  .kit-tile { min-height: 158px; padding: 14px; border-radius: 20px; flex: initial; }
  .kit-tile .kit-t { font-size: 15.5px; margin-top: 6px; }
  .kit-d { display: none; }
  .kit-tile .kit-ic { width: 38px; height: 38px; border-radius: 12px; }
  .kit-tile .kit-ic .ms { font-size: 20px; }
  .kit-tile .kit-n { font-size: 10px; padding: 4px 8px; }
  .kit-big .ms { font-size: 110px; }
}

/* ── Bonus section header: ribbon + numbered medallion ─────────────────────── */
.bonus-ribbon {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: linear-gradient(135deg, var(--tone), var(--tone-2)); color: #fff;
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 8px 18px -8px var(--tone);
}
.bonus-ribbon i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--tone); font-style: normal; }
.bonus-ribbon i .ms { font-size: 15px; }
.bonus-ribbon em { font-style: normal; font-weight: 700; opacity: .8; text-transform: none; letter-spacing: 0; padding-left: 6px; border-left: 1px solid rgba(255, 255, 255, .45); }
.card-head h3 { margin-top: 10px; }
.bh-ic { position: relative; width: 64px; height: 64px; border-radius: 20px; }
.bh-ic .ms { font-size: 32px; }
.bh-num { position: absolute; right: -8px; top: -8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--tone); font-style: normal; font-family: var(--display); font-weight: 800; font-size: 14px; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); transform: rotate(4deg); }
.card.bonus { position: relative; overflow: hidden; }
.card.bonus::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: linear-gradient(90deg, #018380, #7c3aed, #ec4899, #f59e0b); }
.card.mini .bonus-ribbon { align-self: flex-start; }
@media (max-width: 600px) {
  .bh-left { gap: 12px; }
  .bh-ic { width: 52px; height: 52px; border-radius: 16px; }
  .bh-ic .ms { font-size: 26px; }
  .bonus-ribbon { font-size: 11px; }
}

/* ── Certificate with the coach on the left ────────────────────────────────── */
.cert-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: end; }
.cert-side { min-width: 0; }
.person-panel { position: relative; height: 100%; min-height: 380px; border-radius: 24px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; background: linear-gradient(170deg, #fff7d6, #fde68a 60%, #f59e0b); }
.pp-disc { position: absolute; width: 260px; height: 260px; border-radius: 50%; top: 40px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(255, 255, 255, .8), transparent 70%); }
.person-panel img { position: relative; width: 100%; height: auto; max-height: 420px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 16px 24px rgba(120, 53, 15, .35)); }
.pp-bubble { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 2; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 800; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .3); }
@media (max-width: 860px) {
  .cert-layout { grid-template-columns: 1fr; }
  .person-panel { min-height: 0; height: 260px; }
  .person-panel img { width: auto; height: 250px; }
}

/* ── Remission CTA with the coach on the left ──────────────────────────────── */
.remission { flex-direction: row; align-items: stretch; text-align: left; padding: 0 36px 0 0; gap: 20px; }
.rm-person { position: relative; flex: 0 0 300px; display: flex; align-items: flex-end; justify-content: center; min-height: 360px; }
.rm-ring { position: absolute; width: 260px; height: 260px; bottom: 30px; border-radius: 50%; background: conic-gradient(from 0deg, #5eead4, #a78bfa, #f472b6, #fbbf24, #5eead4); opacity: .55; filter: blur(2px); }
.rm-ring::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: #1e1b4b; }
.rm-person img { position: relative; height: 380px; width: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.rm-copy { position: relative; flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 34px 0; }
.rm-copy p { max-width: 520px; }
@media (max-width: 860px) {
  .remission { flex-direction: column; align-items: center; text-align: center; padding: 0 18px 28px; gap: 0; }
  .rm-person { flex: none; min-height: 0; width: 100%; height: 260px; }
  .rm-ring { width: 200px; height: 200px; bottom: 20px; }
  .rm-person img { height: 260px; }
  .rm-copy { align-items: center; padding: 18px 0 0; }
}
.home .hero .hero-visual { margin-bottom: -72px; }
@media (max-width: 900px) { .home .hero .hero-visual { margin-bottom: -48px; } }
@media (min-width: 861px) { .rm-person img { height: 345px; } .rm-person { min-height: 380px; } }
@media (max-width: 860px) {
  .person-panel { height: 300px; }
  .person-panel img { height: 290px; }
  .pp-bubble { top: auto; bottom: 12px; left: 12px; right: auto; max-width: 62%; font-size: 12.5px; border-radius: 16px 16px 16px 4px; }
  .rm-person { height: 280px; padding-top: 20px; }
  .rm-person img { height: 260px; }
}

/* ═══ v4 — smaller hero photo, professional two-panel certificate ═════════ */

/* ── Hero photo: smaller ───────────────────────────────────────────────────── */
.hero-visual { min-height: 470px; }
.hero-person { height: 440px; right: 30px; }
.hv-disc { width: 340px; height: 340px; right: 20px; }
@media (max-width: 1100px) { .hero-visual { min-height: 440px; } .hero-person { height: 400px; } .hv-disc { width: 310px; height: 310px; } }
@media (max-width: 900px) {
  .hero-visual { min-height: 340px; }
  .hero-person { height: 330px; right: 6px; }
  .hv-disc { width: 240px; height: 240px; right: 14px; }
}
@media (max-width: 420px) {
  .hero-visual { min-height: 320px; }
  .hero-person { height: 310px; right: -4px; }
  .hv-disc { width: 220px; height: 220px; right: 4px; }
}

/* ── Certificate section: the certificate alone, full width ────────────────── */
.cert-layout.single { display: block; }

/* ── Certificate ───────────────────────────────────────────────────────────── */
.cert { padding: 0; background: none; aspect-ratio: 1.414 / 1; container-type: inline-size; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(11, 28, 48, .45); }
.cert-frame { position: relative; height: 100%; display: grid; grid-template-columns: 33% 1fr; background: #fffdf7; }
.cert-frame::after { content: ""; position: absolute; inset: 1.4cqw; border: .18cqw solid #c9a24a; pointer-events: none; }
.cert-frame::before { content: ""; position: absolute; inset: 1.9cqw; border: .08cqw solid rgba(201, 162, 74, .6); pointer-events: none; z-index: 1; }

/* Left panel */
.cert-left { position: relative; overflow: hidden; background: linear-gradient(165deg, #0f766e 0%, #0b4f4a 55%, #06302e 100%); display: flex; flex-direction: column; align-items: center; }
.cert-left::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: .7cqw; background: linear-gradient(180deg, #f3d27a, #c9a24a 50%, #f3d27a); }
.cl-pattern { position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 1.6cqw 1.6cqw; }
.cl-logo { position: relative; z-index: 2; margin-top: 4.2cqw; width: 70%; height: auto; filter: brightness(0) invert(1); }
.cl-person { position: absolute; z-index: 2; bottom: 0; left: 50%; transform: translateX(-50%); height: 72%; width: auto; max-width: none; filter: drop-shadow(0 1cqw 1.4cqw rgba(0, 0, 0, .4)); }
.cl-seal { position: absolute; z-index: 3; right: -1.2cqw; bottom: 5cqw; width: 11cqw; height: auto; filter: drop-shadow(0 .6cqw 1cqw rgba(0, 0, 0, .35)); }

/* Right side — left-aligned, formal type */
.cert-right { position: relative; z-index: 2; padding: 5.4cqw 5cqw 4.4cqw 6.4cqw; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.cr-eyebrow { font-family: 'Inter', sans-serif; font-size: 1.2cqw; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: #0f766e; }
.cr-title { font-family: 'Cinzel', 'Times New Roman', serif; font-size: 6.4cqw; font-weight: 700; letter-spacing: .14em; line-height: 1; color: #0b1c30; margin-top: 1.8cqw; }
.cr-sub { font-family: 'Great Vibes', cursive; font-size: 3.6cqw; line-height: 1; color: #b8892e; margin-top: .6cqw; margin-left: .3cqw; }
.cr-rule { display: block; width: 14cqw; height: .25cqw; margin: 2cqw 0 2.2cqw; background: linear-gradient(90deg, #c9a24a, rgba(201, 162, 74, 0)); }
.cr-line { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 1.9cqw; color: #475569; }
.cr-name { font-family: 'Great Vibes', cursive; font-weight: 400; font-size: 6.6cqw; line-height: 1.1; color: #0b1c30; margin: .6cqw 0 .4cqw; padding-bottom: .6cqw; border-bottom: .12cqw solid rgba(201, 162, 74, .7); min-width: 60%; }
.cr-body { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.95cqw; line-height: 1.45; color: #334155; max-width: 92%; margin-top: 1.4cqw; }
.cr-body b { font-weight: 700; color: #0f766e; }
.cr-foot { display: flex; gap: 6cqw; margin-top: auto; width: 100%; }
.cr-sig { display: flex; flex-direction: column; gap: .5cqw; min-width: 19cqw; }
.cr-sig i { display: block; height: .1cqw; background: #0b1c30; opacity: .55; }
.cr-sig small { font-family: 'Inter', sans-serif; font-size: 1.05cqw; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
.cr-date { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.1cqw; font-weight: 600; color: #0b1c30; }
.cr-script { font-family: 'Great Vibes', cursive; font-size: 3.2cqw; line-height: .9; color: #0b1c30; }
.cr-id { position: absolute; right: 4.6cqw; top: 4.4cqw; font-family: 'Inter', sans-serif; font-size: 1cqw; font-weight: 600; letter-spacing: .1em; color: #94a3b8; }

/* Locked preview overlay keeps working on the new design */
.cert-wrap { border-radius: 14px; }
.cert-wrap.locked .cert { filter: blur(3px) grayscale(.3); opacity: .8; }
.modal-wide .cert { box-shadow: none; }
@media print {
  body.print-cert [data-cert] { box-shadow: none; border-radius: 0; }
}
.cr-id { top: auto; bottom: 3.2cqw; right: 4.6cqw; }
.cert-layout.single { max-width: 940px; margin: 0 auto; }
.cert-layout.single .cert-actions { justify-content: center; }
.home .hero-inner { align-items: stretch; }
.home .hero-copy { align-self: start; }
.home .hero .hero-visual { min-height: 470px; }
@media (max-width: 900px) { .home .hero-inner { align-items: start; } .home .hero .hero-visual { min-height: 340px; } }

/* ═══ v5 — hero: ring + chips as one tidy column; mobile reading order ═════ */
.cr-id { bottom: 2.3cqw; font-size: .9cqw; }

.hv-stack { position: absolute; top: 0; left: 0; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero .hv-stack .hv-ring { position: relative; top: auto; left: auto; }
.hv-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hv-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  background: #fff; font-size: 13px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 12px 26px -12px rgba(11, 28, 48, .35); border: 1px solid rgba(11, 28, 48, .06);
  animation: bob 5s ease-in-out infinite;
}
.hv-chip .ms { font-size: 17px; }
.hv-chip.c1 { color: var(--coral); }
.hv-chip.c2 { color: var(--blue); animation-delay: -1.6s; margin-left: 14px; }
.hv-chip.c3 { color: #b7791f; animation-delay: -3s; }

/* ── Mobile: Welcome title → progress → the rest ───────────────────────────── */
@media (max-width: 900px) {
  .home .hero-inner { display: flex; flex-direction: column; gap: 0; }
  .home .hero-copy { display: contents; }
  .home .hero-tags { order: 1; margin-bottom: 16px; }
  .home .hero-title { order: 2; }
  .home .hero .hero-visual { order: 3; margin: 18px 0 18px; }
  .home .hero-sub { order: 4; margin-top: 0; }
  .home .hero-cta { order: 5; }
  .home .hero-stats { order: 6; }
  .home .hero .hero-visual { min-height: 320px; margin-bottom: 18px; }
  .hv-stack { gap: 12px; }
  .hero .hv-stack .hv-ring { --size: 138px; }
  .hv-chips { gap: 8px; }
  .hv-chip { font-size: 11.5px; padding: 7px 11px; }
  .hv-chip.c2 { margin-left: 0; }
  .hero-person { height: 320px; right: -6px; }
  .hv-disc { width: 230px; height: 230px; right: 0; }
}
@media (max-width: 380px) {
  .hero-person { height: 290px; right: -24px; }
  .hv-disc { width: 200px; height: 200px; right: -10px; }
}
@media (max-width: 900px) { .home .hero .hero-visual { align-self: stretch; width: 100%; } }

/* ── v6 — certificate name in Playfair Display ─────────────────────────────── */
.cr-name {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-weight: 700; font-style: normal; font-size: 5.2cqw; line-height: 1.15; letter-spacing: .01em;
  background: linear-gradient(90deg, #0b1c30 0%, #0f4c5c 55%, #0f766e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 1cqw 0 .6cqw; padding-bottom: 1cqw;
  border-bottom: .14cqw solid rgba(201, 162, 74, .75);
}
@media print { .cr-name { background: none; color: #0b1c30; -webkit-text-fill-color: #0b1c30; } .cert, .cert * { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ── v7 — bigger progress ring, chips centred under it at every size ─────── */
.hv-stack { align-items: center; gap: 18px; }
.hero .hv-stack .hv-ring { --size: 236px; }
.hero .hv-stack .hv-ring .ring-in { width: calc(100% - 38px); height: calc(100% - 38px); }
.hero .hv-stack .hv-ring .ring-in b { font-size: 52px; }
.hero .hv-stack .hv-ring .ring-in span { font-size: 12.5px; }
.hv-chips { align-items: center; gap: 10px; }
.hv-chip.c2 { margin-left: 0; }
.hero-person { right: 0; }
@media (max-width: 1100px) { .hero .hv-stack .hv-ring { --size: 206px; } .hero .hv-stack .hv-ring .ring-in b { font-size: 44px; } }
@media (max-width: 900px) {
  .hv-stack { gap: 12px; }
  .hero .hv-stack .hv-ring { --size: 168px; }
  .hero .hv-stack .hv-ring .ring-in { width: calc(100% - 28px); height: calc(100% - 28px); }
  .hero .hv-stack .hv-ring .ring-in b { font-size: 36px; }
  .hero .hv-stack .hv-ring .ring-in span { font-size: 10px; }
  .hv-chips { gap: 8px; }
  .home .hero .hero-visual { min-height: 350px; }
}
@media (max-width: 380px) { .hero .hv-stack .hv-ring { --size: 150px; } .hero .hv-stack .hv-ring .ring-in b { font-size: 32px; } .hv-chip { font-size: 11px; padding: 6px 10px; } }
.hv-chip { animation: none; transform: none; justify-content: center; min-width: 176px; }
@media (max-width: 900px) { .hv-chip { min-width: 150px; } }
.hv-chips { display: grid; grid-auto-rows: auto; justify-items: stretch; }
.hv-chip { width: 100%; min-width: 0; }

/* ═══ v8 — certificate border/photo/seal/signature, Phase 1 lock, protocol videos */

/* ── Certificate: one unbroken double gold border around the whole sheet ───── */
.cert { position: relative; background: #fffdf7; padding: 1.5cqw; box-sizing: border-box; }
.cert::before { content: ""; position: absolute; inset: .75cqw; border: .08cqw solid rgba(201, 162, 74, .75); pointer-events: none; }
.cert-frame { height: 100%; border: .22cqw solid #c9a24a; box-sizing: border-box; overflow: hidden; background: #fffdf7; }
.cert-frame::before, .cert-frame::after { content: none; }

/* Coach: moved right and taller, so the raised (thumbs-up) arm is fully in frame */
.cl-person { left: 60%; height: 84%; transform: translateX(-50%); }
.cl-logo { margin-top: 3.4cqw; width: 66%; }
.cl-seal { display: none; }

/* Right side spacing inside the new border */
.cert-right { padding: 4.2cqw 4.4cqw 3.4cqw 5.4cqw; }

/* Footer: date · seal · founder signature */
.cr-foot { display: grid; grid-template-columns: 1fr auto 1.15fr; align-items: end; gap: 2.6cqw; margin-top: auto; width: 100%; }
.cr-sig { min-width: 0; }
.cr-seal { width: 9cqw; height: auto; justify-self: center; margin-bottom: .4cqw; filter: drop-shadow(0 .5cqw .8cqw rgba(120, 80, 10, .3)); }
.cr-signature {
  font-family: 'Mrs Saint Delafield', 'Great Vibes', cursive; font-size: 4.2cqw; line-height: .9;
  color: #0b1c30; white-space: nowrap; margin-bottom: -.5cqw; transform: rotate(-3deg); transform-origin: left bottom; display: inline-block;
}
.cr-founder { font-family: 'Playfair Display', Georgia, serif; font-size: 1.45cqw; font-weight: 700; color: #0b1c30; margin-top: .3cqw; }
.cr-sig-founder small { letter-spacing: .08em; }
.cr-id { bottom: 1.9cqw; right: 3.4cqw; }

/* ── Journey · Phase 1 ─────────────────────────────────────────────────────── */
.sub-item.got { background: #dcfce7; color: #166534; }
.sub-item.got .ms { color: #16a34a; }
.congrats-locked {
  width: 100%; display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 14px; text-align: left;
  background: #f5f3ff; border: 1.5px dashed #c4b5fd; color: #5b21b6; font-size: 12.5px; font-weight: 600; line-height: 1.4;
}
.congrats-locked .ms { font-size: 17px; color: #7c3aed; margin-top: 1px; }

/* ── Protocol page · videos under the PDF ──────────────────────────────────── */
.pv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pv-grid.pv-3 { grid-template-columns: repeat(3, 1fr); }
.pv-card { border-radius: 18px; overflow: hidden; background: var(--tone-soft); border: 1.5px solid color-mix(in srgb, var(--tone) 20%, transparent); transition: transform .25s; }
.pv-card:hover { transform: translateY(-4px); }
.pv-meta { display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.pv-n { flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--tone); color: #fff; font-family: var(--display); font-weight: 800; font-size: 14px; }
.pv-n .ms { font-size: 20px; }
.pv-meta b { display: block; font-size: 14px; line-height: 1.3; }
.pv-meta small { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.pv-meta small .ms { font-size: 14px; }
@media (max-width: 1100px) { .pv-grid.pv-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pv-grid, .pv-grid.pv-3 { grid-template-columns: 1fr; } }
.cr-signature { font-size: 3.5cqw; transform: rotate(-2deg); max-width: 100%; }
.cr-foot { grid-template-columns: 1fr auto 1.25fr; gap: 2.2cqw; }
.cert-right { padding-right: 3.6cqw; }

/* ── v9 — photo behind the gold divider, seal above signature, sub right-aligned */
.cert-left::after { z-index: 4; }
.cl-person { max-width: calc(100% - .7cqw); object-fit: cover; object-position: left bottom; }
.cr-heading { display: inline-flex; flex-direction: column; align-items: stretch; }
.cr-heading .cr-sub { align-self: flex-end; margin: .4cqw 0 0; }
.cr-foot { grid-template-columns: 1fr 1fr; gap: 5cqw; align-items: end; }
.cr-sig-founder { position: relative; }
.cr-sig-founder .cr-seal { width: 7.5cqw; align-self: center; justify-self: auto; margin: 0 0 .8cqw; }
.cr-sig-founder .cr-seal { width: 9cqw; }

/* ── v10 — Prepco logo, cert no. under date, Mrs. name, seal spacing, photo left */
.cl-logo { filter: none; width: 58%; margin-top: 4cqw; }
.cl-person { left: 50%; }
.cr-id { position: static; display: block; margin-top: .9cqw; font-size: .95cqw; letter-spacing: .08em; color: #94a3b8; }
.cr-sig-founder .cr-seal { width: 8.4cqw; margin: 0 0 2cqw; }
.cr-founder { font-size: 1.5cqw; }
.cl-logo { filter: brightness(0) invert(1); width: 78%; margin-top: 3.6cqw; }
.cl-logo { width: 86%; margin-top: 3cqw; }
.cr-sig-founder .cr-seal { width: 11.5cqw; margin: 0 0 4cqw; }
.cr-sig-founder .cr-seal { width: 13.5cqw; margin: 0 0 3cqw; }
.cr-sig-founder .cr-seal { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); width: 13.5cqw; margin: 0 0 2.2cqw; }
.cr-sig-founder .cr-seal { width: 17cqw; margin-bottom: 1.6cqw; }
.cr-sig-founder .cr-seal { width: 15.5cqw; margin-bottom: .5cqw; }
.cr-sig-founder .cr-seal { width: 13.5cqw; margin-bottom: 2.2cqw; }

/* ═══ v11 — login: validation states, verify/retry steps, mobile bottom sheet ═ */
.login-art { position: relative; }
.login-person { position: absolute; right: 0; bottom: 0; height: 62%; max-height: 520px; width: auto; z-index: 1; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); pointer-events: none; }
.login-copy { position: relative; z-index: 2; }
.login-foot { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.login-foot .ms { font-size: 15px; color: var(--teal); }
.lc-step { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); background: #ede9fe; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.phone-input { position: relative; }
.phone-input.bad { border-color: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .12); }
.phone-input .cc { white-space: nowrap; }
.pi-ok { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--green); }
.pi-ok .ms { font-size: 22px; }
.login-card .btn-primary:disabled { opacity: .5; box-shadow: none; transform: none; }
.otp input.filled { border-color: var(--teal); background: #f0fdfa; }
.otp input.bad { border-color: #fca5a5; background: #fff5f5; }
.otp.shake { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.err:empty { min-height: 0; }
.lc-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 8px 0; }
.lc-center .muted { display: inline-flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.lc-ok, .lc-warn { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; color: #fff; transform: rotate(-6deg); }
.lc-ok { background: linear-gradient(135deg, #22c55e, #018380); animation: pop .5s cubic-bezier(.2, .8, .2, 1.4); }
.lc-warn { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.lc-ok .ms, .lc-warn .ms { font-size: 34px; }
.lc-center .btn { margin-top: 2px; }

/* ── Mobile: branded top panel + form as a bottom sheet ───────────────────── */
@media (max-width: 900px) {
  .login { display: flex; flex-direction: column; min-height: 100dvh; background: #0b1c30; }
  .login-art { padding: 18px 20px 64px; min-height: 330px; overflow: hidden; }
  .login-logo { height: 44px; margin-left: -6px; }
  .login-copy { margin: 18px 0 0; max-width: 62%; }
  .login-copy .sticker { margin-bottom: 12px; font-size: 11.5px; padding: 6px 11px; }
  .login-copy h1 { font-size: 32px; line-height: 1.02; }
  .login-copy p { display: none; }
  .login-perks { margin-top: 14px; flex-direction: column; gap: 6px; }
  .login-perks li { font-size: 12.5px; padding: 6px 10px; background: rgba(255, 255, 255, .1); }
  .login-person { height: 300px; right: -18px; bottom: 30px; max-height: none; }
  .login-pane { flex: 1; display: block; padding: 0; background: transparent; margin-top: -40px; position: relative; z-index: 3; }
  .login-card {
    margin: 0; max-width: none; min-height: 100%; border-radius: 28px 28px 0 0; padding: 30px 20px 28px;
    box-shadow: 0 -12px 40px -10px rgba(0, 0, 0, .45); border: 0;
  }
  .login-card::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: #e2e5ee; margin: -14px auto 18px; }
  .login-card h2 { font-size: 26px; }
  .login-foot { background: #fff; margin: 0; padding: 0 0 calc(18px + env(safe-area-inset-bottom)); }
  .otp { gap: 6px; }
  .otp input { font-size: 22px; border-radius: 12px; }
  .phone-input input { font-size: 17px; }
}
@media (max-width: 380px) {
  .login-copy h1 { font-size: 28px; }
  .login-person { height: 260px; }
  .phone-input .cc { padding: 0 8px 0 12px; font-size: 14px; }
}
@media (min-width: 901px) { .login-copy { max-width: 380px; } .login-person { height: 56%; right: -24px; } .login-copy p { max-width: 340px; } }
@media (max-width: 900px) { .login-pane { background: #fff; display: flex; flex-direction: column; border-radius: 28px 28px 0 0; } .login-card { flex: 1; min-height: 0; box-shadow: none; } .login-pane { box-shadow: 0 -12px 40px -10px rgba(0,0,0,.45); } .login-foot { width: 100%; } }

/* ── v12 — footer (same as the Diabetic Reset webinar landing page) ───────── */
.site-foot { background: #021f1e; color: rgba(255,255,255,.7); padding: 60px 0 30px; margin-top: 30px; }
.sf-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.sf-logo { height: 40px; width: auto; display: block; filter: brightness(0) invert(1); }
.sf-brand p { margin-top: 14px; font-size: 13.5px; line-height: 1.6; max-width: 360px; }
.sf-social { display: flex; gap: 10px; margin: 14px 0 4px; }
.sf-soc { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 15px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: all .2s; }
.sf-soc:hover { background: #f3d27a; border-color: #f3d27a; color: #0a2c2a; transform: translateY(-2px); }
.sf-col h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.sf-col a { display: block; color: rgba(255,255,255,.65); font-size: 14px; margin-bottom: 10px; }
.sf-col a:hover { color: #f3d27a; }
.sf-addr { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.65); font-size: 14px; }
.sf-addr .ms { font-size: 16px; color: #f3d27a; }
.sf-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.10); font-size: 12.5px; }
.sf-disc { margin-top: 12px; color: rgba(255,255,255,.45); line-height: 1.6; }
@media (max-width: 820px) { .sf-top { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 960px) { .site-foot { padding-bottom: calc(30px + 84px + env(safe-area-inset-bottom)); margin-bottom: calc(-84px - env(safe-area-inset-bottom)); } }

/* ── v13 — coming-soon slot for PDFs the desk has not uploaded yet ───────── */
.soon { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 32px 16px; border-radius: 18px; border: 2px dashed #d7dbe8; color: var(--muted); background: #fafbff; width: 100%; }
.soon .ms { font-size: 30px; color: var(--violet); }
.soon b { color: var(--ink); font-size: 15px; }
.soon span { font-size: 13px; }

/* ── v14 — sign-in left side back to text only (no photo) ──────────────────── */
.login-person { display: none; }
@media (min-width: 901px) { .login-copy { max-width: 520px; } .login-copy p { max-width: none; } }
@media (max-width: 900px) { .login-art { min-height: 0; padding-bottom: 60px; } .login-copy { max-width: none; } .login-copy p { display: block; font-size: 14px; } .login-perks { flex-direction: row; flex-wrap: wrap; } }

/* ═══ v15 — own video frame (YouTube source), header with Protocols ════════ */
.yt { isolation: isolate; }
.yt .yt-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt.playing { cursor: default; background: #000; }
.yt.playing::after { display: none; }
/* The iframe is 120px taller than the frame and centred: the 16:9 video still
   fills the frame edge to edge, while YouTube's title bar and watermark land
   in the cropped-off strips. */
.yt-crop { position: absolute; inset: 0; overflow: hidden; }
.yt-crop iframe, .yt-crop .yt-host { position: absolute; left: 0; top: -60px; width: 100%; height: calc(100% + 120px); border: 0; pointer-events: none; }
.yt-cover { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.yt-poster { position: absolute; inset: 0; z-index: 3; display: none; cursor: pointer; }
.yt-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)); }
.yt.paused .yt-poster, .yt.ended .yt-poster { display: block; }
.yt-poster .yt-play { z-index: 1; pointer-events: none; }
.yt-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 8px;
  padding: 18px 10px 8px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  opacity: 0; transition: opacity .2s;
}
.yt.playing:hover .yt-bar, .yt.paused .yt-bar, .yt.ended .yt-bar, .yt-bar:focus-within { opacity: 1; }
@media (hover: none) { .yt.playing .yt-bar { opacity: 1; } }
.yc-btn { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.yc-btn:hover { background: var(--teal); }
.yc-btn .ms { font-size: 20px; }
.yc-time { color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; }
.yc-seek {
  --pct: 0%; flex: 1; min-width: 40px; height: 5px; -webkit-appearance: none; appearance: none; border-radius: 3px; cursor: pointer;
  background: linear-gradient(90deg, #14b8a6 var(--pct), rgba(255,255,255,.3) var(--pct));
}
.yc-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(20,184,166,.5); }
.yc-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.yt:fullscreen { border-radius: 0; }
.yt:fullscreen .yt-crop iframe { top: calc((100vh - 56.25vw) / 2 - 60px); height: calc(56.25vw + 120px); }
@media (max-width: 480px) { .yc-time[data-yc-dur] { display: none; } .yc-btn { width: 30px; height: 30px; } }

/* Header: six sections now (Protocols added) */
@media (max-width: 1240px) and (min-width: 961px) {
  .hdr-nav .nav-chip { padding: 6px 10px 6px 6px; font-size: 12.5px; gap: 5px; }
  .hdr-nav .nav-chip .ms { width: 22px; height: 22px; font-size: 15px; }
  .me-hi { display: none; }
}
@media (max-width: 960px) {
  .tabbar { padding: 5px; }
  .tab-i { font-size: 9.5px; padding: 6px 0; min-width: 0; }
  .tab-i span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab-i .ms { font-size: 21px; }
}

/* ── v15b — certificate: smaller name, long names wrap; locked = name only ── */
.cr-name { font-size: 4.2cqw; line-height: 1.18; min-width: 0; max-width: 100%; overflow-wrap: anywhere; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cr-name.n-l { font-size: 3.5cqw; }
.cr-name.n-xl { font-size: 2.9cqw; }
.cert-wrap.locked .cert { filter: none; opacity: 1; }
.cert-wrap.locked .cert-left, .cert-wrap.locked .cert-right > :not(.cr-name) { filter: blur(3.5px) grayscale(.4); opacity: .45; }
.cert-wrap.locked .cr-name { position: relative; z-index: 3; }
.cert-wrap .cert-lock { inset: auto 0 7% 0; background: none; padding: 0 16px; display: flex; flex-direction: row; justify-content: center; }
.cert-wrap .cert-lock > * { flex-shrink: 0; }
.cert-lock { gap: 14px; }
.cert-lock .cl-text { background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: 0 16px 36px -16px rgba(11,28,48,.45); text-align: left; display: grid; gap: 6px; min-width: min(320px, 70%); }
.cert-lock .cl-text b { font-family: var(--display); font-size: 15px; }
.cert-lock .cl-text small { font-size: 12px; font-weight: 600; color: var(--muted); }
.cert-lock .cl-text .bar { width: 100%; margin: 0; background: #eef0f6; }
@media (max-width: 600px) { .cert-wrap .cert-lock { position: static; margin-top: 12px; padding: 0; } .cert-lock .lock-ic { display: none; } .cert-lock .cl-text { min-width: 0; width: 100%; } }

/* ── v16 — shield is white (not black) ─────────────────────────────────────── */
.shield { background: #ffffff; color: var(--ink); }
.shield div { opacity: 1; }
.shield .ms { color: var(--teal); }
.shield small { color: var(--muted); }

/* ── v17 — locked certificate: all blurred (name too), lock panel centred ─── */
.cert-wrap.locked .cert-right > .cr-name { filter: blur(3.5px) grayscale(.4); opacity: .45; }
.cert-wrap .cert-lock { inset: 0; padding: 20px; flex-direction: column; justify-content: center; align-items: center; gap: 12px; background: rgba(255,255,255,.35); position: absolute; margin: 0; }
.cert-lock .cl-text { text-align: center; justify-items: center; }
.cert-lock .lock-ic { display: grid; }
@media (max-width: 600px) { .cert-wrap .cert-lock { position: absolute; inset: 0; padding: 10px; gap: 8px; } .cert-lock .lock-ic { display: grid; width: 40px; height: 40px; } .cert-lock .lock-ic .ms { font-size: 20px; } .cert-lock .cl-text { padding: 8px 12px; min-width: 0; width: auto; max-width: 92%; } .cert-lock .cl-text b { font-size: 12.5px; } .cert-lock .cl-text small { font-size: 11px; } }

