/* =========================================================================
   ROADMAP: extras on top of ../styles.css and ../kit/theme.css.
   ========================================================================= */
.back { position: absolute; top: 22px; left: clamp(16px, 5vw, 32px); z-index: 3; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--brand-text-2); }
.back:hover { color: var(--brand-accent); }
.hero--roadmap { min-height: 92svh; }
.hero--roadmap .hero__title { font-size: clamp(2.7rem, 7.4vw, 6.2rem); }
.hero--roadmap .hero__logo { width: 104px; }
.section__title { max-width: 22ch; }

.pre { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; margin-top: 40px; padding: 16px 22px; border: 1px dashed var(--brand-line); border-radius: 18px; font-size: .9rem; color: var(--brand-text-2); }
.pre b { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-accent); }

/* ---------------------------------- grid ---------------------------------- */
.rm { width: 100%; margin-top: 14px; border-collapse: separate; border-spacing: 8px; table-layout: fixed; }
.rm thead td { width: 15%; }
.rm thead a { display: block; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--brand-line); text-align: left; background: linear-gradient(180deg, rgba(145, 63, 213, .22), rgba(17, 10, 29, .7)); transition: border-color .3s, transform .4s var(--ease); }
.rm thead a:hover { border-color: var(--brand-accent); transform: translateY(-2px); }
.rm thead i { display: block; font-style: normal; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-accent); }
.rm thead b { display: block; margin-top: 4px; font-size: 1.16rem; font-weight: 800; letter-spacing: -.02em; }
.rm thead th:last-child a { background: linear-gradient(160deg, var(--brand-purple), #3a1170); border-color: transparent; }
.rm thead th:last-child i { color: #f1e8fb; }
.rm tbody th { padding: 14px 6px 14px 2px; text-align: left; vertical-align: middle; font-size: .94rem; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.rm tbody td { padding: 14px 16px; vertical-align: middle; font-size: .92rem; line-height: 1.32; color: var(--brand-text-2); border-radius: 14px; border: 1px solid var(--brand-line); background: rgba(26, 16, 41, .55); }
.rm tbody td:last-child { background: rgba(145, 63, 213, .17); color: var(--brand-text); }
.rm__goal th { color: var(--brand-mint); }
.rm .rm__goal td { font-weight: 800; color: var(--brand-mint); border-color: rgba(167, 236, 198, .28); background: rgba(167, 236, 198, .07); }

/* ------------------------------- week cards ------------------------------- */
.weeks { display: grid; gap: 20px; margin-top: 48px; }
.wk { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 2fr); overflow: hidden; border: 1px solid var(--brand-line); border-radius: 28px; background: linear-gradient(180deg, rgba(26, 16, 41, .9), rgba(10, 6, 18, .95)); scroll-margin-top: 20px; }
.wk__head { display: flex; flex-direction: column; padding: 32px 30px; border-right: 1px solid var(--brand-line); background: radial-gradient(90% 70% at 0% 0%, rgba(145, 63, 213, .28), transparent 75%); }
.wk__head .eyebrow { margin-bottom: 10px; }
.wk__head h3 { margin: 0; font-size: clamp(2rem, 3.2vw, 2.7rem); font-weight: 900; line-height: 1; letter-spacing: -.035em; text-transform: uppercase; }
.wk__head p:not(.eyebrow) { margin: 14px 0 0; font-size: 1rem; line-height: 1.42; color: var(--brand-text-2); }
.wk__head .wk__time { margin-top: auto !important; padding-top: 22px; font-size: .84rem !important; font-weight: 700; color: var(--brand-accent) !important; }
.wk--live .wk__head { background: linear-gradient(160deg, var(--brand-purple), #3a1170); }
.wk--live .wk__head .eyebrow, .wk--live .wk__head .wk__time { color: #f1e8fb !important; }
.wk--live .wk__head p:not(.eyebrow) { color: #f1e8fb; }
.wk__body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.wk__we, .wk__you { padding: 28px 30px; }
.wk__you { border-left: 1px solid var(--brand-line); background: rgba(145, 63, 213, .08); }
.wk h4 { margin: 0 0 14px; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-accent); }
.wk ul { margin: 0; padding: 0; list-style: none; }
.wk__we li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; padding: 7px 0; font-size: .94rem; line-height: 1.4; color: var(--brand-text-2); }
.wk__we i { padding-top: 3px; font-style: normal; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text-3); }
.wk__you li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; font-size: .94rem; line-height: 1.32; border-bottom: 1px solid var(--brand-line); }
.wk__you li:last-child { border-bottom: 0; }
.wk__you b { flex: none; font-weight: 800; color: var(--brand-accent); }
.wk__done { grid-column: 1 / -1; display: flex; gap: 14px; margin: 0; padding: 16px 30px; font-size: .94rem; line-height: 1.4; border-top: 1px solid rgba(167, 236, 198, .24); background: rgba(167, 236, 198, .07); }
.wk__done b { flex: none; padding-top: 2px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-mint); }

/* --------------------------------- panels --------------------------------- */
.panel { padding: 26px 28px; border: 1px solid var(--brand-line); border-radius: 22px; background: linear-gradient(180deg, rgba(26, 16, 41, .9), rgba(10, 6, 18, .95)); }
.panel h3 { margin: 0 0 12px; font-size: 1.24rem; font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
.panel p { margin: 0; font-size: .96rem; line-height: 1.5; color: var(--brand-text-2); }
.panel ul { margin: 0; padding: 0; list-style: none; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.hrs { display: flex !important; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--brand-line); }
.hrs b { flex: none; color: var(--brand-accent); }
.hrs--total { border-bottom: 0; color: var(--brand-text) !important; font-weight: 800; }
.checks li { position: relative; padding: 8px 0 8px 26px; font-size: .96rem; line-height: 1.35; color: var(--brand-text-2); }
.checks li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 9px; height: 5px; border-left: 2px solid var(--brand-mint); border-bottom: 2px solid var(--brand-mint); transform: rotate(-45deg); }
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.stages li { padding: 9px 0; font-size: 1rem; color: var(--brand-text-2); border-top: 1px solid var(--brand-line); }
.note { max-width: 44em; margin: 26px auto 0; text-align: center; font-size: 1rem; line-height: 1.5; color: var(--brand-text-2); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.callout { margin-top: 18px; padding: 26px 30px; border-radius: 22px; background: linear-gradient(160deg, var(--brand-purple), #3a1170); }
.callout h3 { margin: 0 0 8px; font-size: 1.24rem; font-weight: 800; letter-spacing: -.025em; }
.callout p { margin: 0; max-width: 62em; line-height: 1.5; color: #f1e8fb; }
.after { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.after i { display: block; margin-bottom: 14px; font-style: normal; font-size: .76rem; font-weight: 800; letter-spacing: .12em; color: var(--brand-accent); }

@media (max-width: 1040px) {
  .wk { grid-template-columns: 1fr; }
  .wk__head { border-right: 0; border-bottom: 1px solid var(--brand-line); }
  .cards, .after { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .rm, .rm tbody, .rm tr, .rm th, .rm td { display: block; width: auto; }
  .rm { border-spacing: 0; }
  .rm thead { display: none; }
  .rm tbody tr { margin-top: 12px; padding: 16px 18px; border: 1px solid var(--brand-line); border-radius: 18px; background: rgba(26, 16, 41, .55); }
  .rm tbody th { padding: 0 0 6px; font-size: 1.04rem; }
  .rm tbody td, .rm tbody td:last-child, .rm .rm__goal td { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; padding: 7px 0; border: 0; border-radius: 0; background: none; }
  .rm td::before { content: attr(data-week); font-size: .68rem; font-weight: 800; letter-spacing: .06em; line-height: 1.9; text-transform: uppercase; color: var(--brand-accent); }
  .rm .rm__goal { border-color: rgba(167, 236, 198, .28); background: rgba(167, 236, 198, .07); }
  .two, .stages { grid-template-columns: 1fr; }
  .wk__body { grid-template-columns: 1fr; }
  .wk__you { border-left: 0; border-top: 1px solid var(--brand-line); }
  .wk__head, .wk__we, .wk__you { padding: 24px 20px; }
  .wk__done { flex-direction: column; gap: 4px; padding: 16px 20px; }
}
@media (max-width: 560px) {
  .cards, .after { grid-template-columns: 1fr; }
  .hero--roadmap { padding-top: 40px; }
}
