/* Bob AI Academy · challenge tracker (dark, gold glow on today's tile) */
body.trk { margin: 0; min-height: 100vh; color: var(--night-text); background: radial-gradient(900px 500px at 85% -10%, rgba(235, 184, 78, .13), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(217, 119, 87, .08), transparent 60%), #120E0B; }
.trk-wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.trk .logo-bob { color: #fff; }
.trk .logo-sub { color: var(--gold-1); }
.trk-top { position: sticky; top: 0; z-index: 20; background: rgba(18, 14, 11, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.trk-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.trk-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.trk-switch a { text-decoration: none; padding: 9px 14px; min-height: 36px; display: inline-flex; align-items: center; border-radius: 999px; font: 600 14px/1 var(--body); color: var(--night-muted); }
.trk-switch a:hover { color: #fff; }
.trk-switch a[aria-current="page"] { background: var(--gold-grad); color: var(--gold-ink); }
.trk-switch a:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

/* header: streak + title + progress */
.trk-head { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: stretch; padding: clamp(28px, 5vw, 56px) 0 clamp(24px, 3vw, 36px); }
.streak { display: grid; justify-items: center; align-content: center; gap: 6px; padding: 22px; border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.streak small { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); }
.flame { width: 40px; height: 40px; fill: none; stroke: var(--gold-2); stroke-width: 1.8; stroke-linejoin: round; margin-top: 6px; }
.streak b { font: 700 64px/1 var(--display); letter-spacing: -.04em; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.streak-run { font: 500 12.5px/1 var(--mono); color: var(--gold-1); min-height: 1em; }
.trk-title { display: grid; align-content: space-between; gap: 22px; padding: 6px 0; }
.trk-title-row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.trk-title h1 { font-size: clamp(32px, 4vw, 50px); letter-spacing: -.035em; color: #fff; line-height: 1; }
.trk-title p { margin-top: 10px; font-size: 17px; color: var(--night-muted); }
.trk-tools { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.tool { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 16px; border: 0; border-radius: 14px; cursor: pointer; font: 600 15px/1 var(--body); color: var(--night-text); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background .2s, box-shadow .2s; }
.tool:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(235, 184, 78, .45); }
.tool:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.tool svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trk-prog { display: grid; grid-template-columns: 1fr auto; gap: 12px; font: 500 15px/1 var(--body); color: var(--night-muted); }
.trk-prog b { font: 700 16px/1 var(--mono); color: var(--gold-2); }
.trk .bar { grid-column: 1 / -1; display: block; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.trk .bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--gold-grad); box-shadow: 0 0 16px rgba(235, 184, 78, .5); transition: width .8s var(--ease-out); }

/* grid of days */
.grid { list-style: none; margin: 0 0 clamp(48px, 7vw, 80px); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 30%), 1fr)); gap: 18px; position: relative; }
.grid.dense { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.grid.blurred { filter: blur(3px); opacity: .45; pointer-events: none; user-select: none; }
.tile { width: 100%; aspect-ratio: 1; border: 0; border-radius: 22px; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 10px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); color: var(--night-muted); transition: transform .2s var(--spring), box-shadow .25s, background .25s; position: relative; }
.tile small { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.tile b { font: 700 clamp(30px, 3.4vw, 44px)/1 var(--display); letter-spacing: -.03em; color: #9C8E80; }
.grid.dense .tile b { font-size: 26px; }
.t-ic { height: 18px; display: grid; place-items: center; }
.t-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-name { font: 500 12.5px/1.2 var(--body); text-align: center; max-width: 16ch; min-height: 1.2em; }
.grid.dense .t-name { display: none; }
.tile:hover { transform: translateY(-2px); }
.tile:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.tile.is-open { background: linear-gradient(180deg, #2A211B, #1D1712); box-shadow: inset 0 0 0 2px var(--gold-2), 0 0 0 6px rgba(235, 184, 78, .1), 0 0 50px rgba(235, 184, 78, .35); color: var(--night-text); animation: glow 2.6s ease-in-out infinite; }
.tile.is-open b { color: var(--gold-1); }
@keyframes glow { 50% { box-shadow: inset 0 0 0 2px var(--gold-2), 0 0 0 10px rgba(235, 184, 78, .06), 0 0 70px rgba(235, 184, 78, .45); } }
.tile.is-done { background: linear-gradient(180deg, rgba(235, 184, 78, .16), rgba(235, 184, 78, .06)); box-shadow: inset 0 0 0 1px rgba(235, 184, 78, .4); color: var(--gold-1); }
.tile.is-done b { color: #fff; }
.tile.is-done .t-ic svg { stroke: var(--gold-2); stroke-width: 2.6; width: 20px; height: 20px; }
.tile.is-wait { box-shadow: inset 0 0 0 1px rgba(235, 184, 78, .3); }
.tile.is-wait .t-name { color: var(--gold-1); }
.tile.is-locked { cursor: not-allowed; }
.tile.is-locked b { color: #6E6258; }
.tile.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.tile.pop { animation: tilePop .6s var(--spring); }
@keyframes tilePop { 40% { transform: scale(1.08); } }

/* gate + next */
.paywall { position: relative; z-index: 2; margin: 0 0 24px; }
.paywall-card, .next-up { padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: linear-gradient(180deg, #241B14, #1A1410); box-shadow: inset 0 0 0 1px rgba(235, 184, 78, .35), 0 40px 80px -40px rgba(0, 0, 0, .8); display: grid; gap: 14px; justify-items: start; }
.paywall-card h2, .next-up h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.paywall-card p, .next-up p { color: var(--night-muted); }
.paywall-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.paywall-note { font-size: 14.5px; }
.paywall-note .textlink { color: var(--gold-1); }
.next-up { grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin-bottom: 80px; }
.next-up > div { display: grid; gap: 10px; }
@media (max-width: 700px) { .next-up { grid-template-columns: 1fr; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 14px 20px; border-radius: 14px; background: #2A211B; color: #fff; font: 500 15px/1.3 var(--body); box-shadow: inset 0 0 0 1px rgba(235, 184, 78, .4), 0 20px 40px -10px rgba(0, 0, 0, .7); transition: opacity .25s, transform .3s var(--spring); max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* dialogs */
.dm { width: min(720px, calc(100% - 24px)); max-height: calc(100vh - 48px); border: 0; padding: clamp(20px, 3vw, 34px); border-radius: 26px; background: #1A1511; color: var(--night-text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 60px 120px -40px rgba(0, 0, 0, .9); }
.dm::backdrop { background: rgba(8, 6, 4, .72); backdrop-filter: blur(6px); }
.dm[open] { animation: popIn .3s var(--spring); }
.dm-head { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto 40px; gap: 16px; align-items: center; padding-bottom: 20px; margin-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.dm-n { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--gold-ink); font: 700 24px/1 var(--display); }
.dm-head h2 { font-size: clamp(22px, 2.6vw, 30px); color: #fff; letter-spacing: -.025em; }
.dm-head p { font-size: 14px; color: var(--night-muted); margin-top: 4px; }
.dm-break { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 0; border-radius: 12px; cursor: pointer; font: 600 14px/1 var(--body); color: var(--night-text); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.dm-break svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dm-break:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--gold-2); }
.dm-break:disabled { opacity: .4; cursor: not-allowed; }
.dm-break[hidden] { display: none; }
.dm-x { width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255, 255, 255, .06); color: #fff; font-size: 24px; line-height: 1; }
.dm > .dm-x { position: absolute; top: 16px; right: 16px; }
.dm-x:focus-visible, .dm-break:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.dm-tasks { list-style: none; margin: 0; padding: 0; display: grid; }
.dm-tasks li { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.ck-row { flex: 1; display: flex; gap: 16px; align-items: center; padding: 15px 4px; cursor: pointer; }
.ck { position: relative; width: 30px; height: 30px; flex: none; }
.ck input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.ck span { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--gold-2); transition: background .2s, box-shadow .2s; pointer-events: none; }
.ck input:checked + span { background: var(--gold-grad); box-shadow: none; }
.ck input:checked + span::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.4' fill='none' stroke='%233A2606' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/60% no-repeat; }
.ck input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.ck input:disabled + span { opacity: .7; }
.ck-t { font-size: 17px; line-height: 1.35; color: var(--night-text); }
.ck-row:has(input:checked) .ck-t { color: var(--night-muted); text-decoration: line-through; text-decoration-color: rgba(235, 184, 78, .5); }
.mini { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 12px; cursor: pointer; font: 600 14px/1 var(--body); color: var(--night-text); text-decoration: none; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); white-space: nowrap; }
.mini:hover { box-shadow: inset 0 0 0 1px var(--gold-2); }
.mini.icon { width: 40px; padding: 0; justify-content: center; }
.mini svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-1); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dm-prompt { margin-top: 18px; display: grid; gap: 10px; }
.dm-prompt[hidden] { display: none; }
.dm-prompt-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dm-prompt small { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); }
.dm-prompt pre { margin: 0; padding: 16px; border-radius: 14px; background: #0E0A07; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); color: var(--gold-1); font: 400 14px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; }
.dm-proof { margin-top: 18px; padding: 18px; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(235, 184, 78, .35); display: grid; gap: 14px; }
.dm-proof[hidden] { display: none; }
.dm-proof-top { display: flex; align-items: center; gap: 14px; }
.dm-proof-top p { flex: 1; font-size: 16.5px; color: var(--gold-1); font-weight: 500; }
.dm-proof-top p b { font-weight: 700; }
.dm-proof-form { display: flex; gap: 10px; padding-left: 44px; }
.dm-proof-form .field { flex: 1; min-height: 50px; border-radius: 14px; background: #0E0A07; border: 1px solid rgba(255, 255, 255, .1); color: #fff; }
.dm-proof-form .btn { min-height: 50px; border-radius: 14px; }
.dm-foot { margin-top: 18px; font-size: 14px; color: var(--night-muted); }
@media (max-width: 640px) {
  .dm-head { grid-template-columns: 48px minmax(0, 1fr) 40px; }
  .dm-n { width: 48px; height: 48px; font-size: 20px; }
  .dm-break { grid-column: 2 / 3; grid-row: 2; justify-self: start; }
  .dm-proof-top { flex-wrap: wrap; }
  .dm-proof-form { padding-left: 0; }
  .ck-t { font-size: 16px; }
}

/* help + certificate */
.help-h { color: #fff; font-size: 28px; margin: 4px 50px 18px 0; }
.help-list { margin: 0; padding-left: 22px; display: grid; gap: 14px; color: var(--night-muted); font-size: 16px; line-height: 1.5; }
.help-list b { color: #fff; }
.cert-locked { display: grid; gap: 14px; padding: 10px 50px 10px 0; }
.cert-locked h2 { color: #fff; }
.cert-locked p { color: var(--night-muted); }
.cert-card { margin: 18px 0 4px; padding: clamp(28px, 5vw, 52px) clamp(20px, 4vw, 40px); border-radius: 18px; text-align: center; display: grid; justify-items: center; gap: 12px; background: #FFFCF8; color: var(--ink); box-shadow: inset 0 0 0 8px #fff, inset 0 0 0 10px var(--gold-2); }
.cert-card[hidden], .cert-locked[hidden] { display: none; }
.cert-card img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 3px var(--gold-2); }
.cert-card small { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8A6A1C; }
.cert-name { font: italic 400 clamp(36px, 5vw, 54px)/1.05 var(--serif); color: var(--ink); }
.cert-line { font-size: 17px; color: var(--ink-2); }
.cert-date { font: 500 13px/1 var(--mono); color: var(--muted); margin-bottom: 6px; }
@media print {
  body.trk { background: #fff; }
  body.trk > *:not(#cert) { display: none !important; }
  #cert { position: static; box-shadow: none; background: #fff; width: 100%; max-height: none; }
  #cert .dm-x, #cert [data-print] { display: none; }
}
@media (max-width: 760px) {
  .trk-head { grid-template-columns: 1fr; }
  .streak { grid-template-columns: auto auto 1fr; justify-items: start; align-items: center; gap: 4px 14px; padding: 16px 18px; }
  .streak small { grid-column: 1 / -1; }
  .flame { margin: 0; }
  .streak b { font-size: 44px; }
  .trk-switch a { padding: 8px 10px; font-size: 13px; }
  .trk-top .logo-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tile.is-open { animation: none; } }
.grid.seven { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .grid.seven { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid.seven { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trk [hidden] { display: none !important; }
.trk .btn-ghost { color: var(--night-text); box-shadow: inset 0 0 0 1.5px rgba(245, 234, 220, .3); background: transparent; }
.trk .btn-ghost:hover { background: var(--night-text); color: var(--night); }

.grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; max-width: 900px; }
@media (max-width: 640px) { .grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
.t-phase { position: absolute; top: 10px; right: 10px; font: 600 10.5px/1 var(--mono); letter-spacing: .02em; padding: 4px 7px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--night-muted); }
.tile:has(.t-phase) { position: relative; }
.tile.is-open .t-phase { background: rgba(242,193,78,.16); color: var(--gold-1); }

/* CRO quick wins: day tiles on phones (chip no longer overlaps "Day", titles clamp to 2 lines) */
@media (max-width: 640px) {
  .grid.five .tile { place-content: start center; padding: 30px 6px 12px; gap: 4px; aspect-ratio: auto; min-height: 128px; }
  .grid.five .t-phase { top: 8px; left: 50%; right: auto; transform: translateX(-50%); font-size: 9.5px; padding: 3px 6px; }
  .grid.five .tile b { font-size: 30px; }
  .grid.five .t-name { font-size: 11.5px; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
.cro-inapp { margin: 14px 0 18px; padding: 12px 16px; border-radius: 14px; background: rgba(235, 184, 78, .12); box-shadow: inset 0 0 0 1px rgba(235, 184, 78, .35); color: var(--night-text); font-size: 14px; line-height: 1.45; }
.cro-inapp b { color: #EBB84E; }
