/* Algoritmo Hyperlearn™ page. Solid colours only, like the rest of the site.
   The illustrations are drawn in HTML and SVG and played by js/algoritmo.js; without it they show their final state. */
.al-page { --al-inc: #9CCB3B; --al-gap: var(--coral); --al-urg: var(--violet); }
.al-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.al-eyebrow { display: block; margin-bottom: 16px; color: var(--green); font: 600 14px/1.2 var(--text); letter-spacing: .01em; }
.al-eyebrow.is-dark { color: var(--lime); }
.al-pill { display: inline-flex; flex: none; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font: 600 12px/1 var(--text); white-space: nowrap; }
.al-pill.is-inc { background: var(--lime); color: var(--lime-ink); }
.al-pill.is-urg { background: var(--violet-soft); color: var(--violet); }
.al-pill.is-ink { background: var(--ink); color: var(--lime); }

/* Hero */
.al-hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 64px; overflow: hidden; background: var(--night); color: var(--night-text); }
.al-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.al-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--night-3); color: var(--lime); font: 600 13px/1.2 var(--text); }
.al-kicker .i { width: 16px; height: 16px; }
.al-hero h1 { margin-top: 24px; }
.al-word { display: block; color: #fff; font: 700 clamp(64px, 8.6vw, 124px)/.92 var(--display); letter-spacing: -.065em; }
.al-word sup { position: relative; top: .3em; margin-left: .04em; color: var(--lime); font: 500 .2em/1 var(--text); letter-spacing: 0; vertical-align: top; }
.al-h1-line { display: block; max-width: 19ch; margin-top: 24px; color: var(--night-text); font: 600 clamp(24px, 2.5vw, 34px)/1.18 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.al-mark { color: var(--lime); }
.al-lead { max-width: 46ch; margin-top: 20px; color: var(--night-muted); font-size: 18px; line-height: 1.6; }
.al-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.al-link { color: #fff; }
.al-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 72px; border-top: 1px solid var(--night-line); }
.al-facts li { padding: 24px 24px 0 0; }
.al-facts li + li { padding-left: 24px; border-left: 1px solid var(--night-line); }
.al-facts strong { display: block; color: #fff; font: 600 24px/1.2 var(--display); letter-spacing: -.02em; }
.al-facts span { display: block; margin-top: 4px; color: var(--night-muted); font-size: 14px; }

/* Hero engine: a dial scores one subject at a time and the queue fills in order */
.al-engine { position: relative; padding: 24px; border: 1px solid var(--night-line); border-radius: var(--r-2xl); background: var(--night-2); }
.al-engine-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.al-status { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--night-3); color: var(--night-text); font-size: 13px; font-weight: 600; }
.al-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); opacity: var(--pulse, 1); }
.al-status.is-done { background: var(--lime); color: var(--ink); }
.al-status.is-done i { background: var(--ink); }
.al-engine-count { color: var(--night-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.al-engine-core { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 20px 0 24px; }
.al-dial { position: relative; justify-self: center; width: 100%; max-width: 260px; aspect-ratio: 1; }
.al-dial svg { display: block; width: 100%; height: 100%; }
.al-track { fill: none; stroke: var(--night-3); stroke-width: 16; }
.al-arc { fill: none; stroke-width: 16; stroke-linecap: round; }
.al-arc.is-inc { stroke: var(--lime); }
.al-arc.is-gap { stroke: var(--coral); }
.al-arc.is-urg { stroke: var(--violet-light); }
.al-dial-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.al-dial-center strong { color: #fff; font: 700 clamp(30px, 3vw, 40px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.al-dial-center small { margin-top: 4px; color: var(--night-muted); font-size: 12px; }
.al-legend-title small { display: block; color: var(--night-muted); font-size: 12px; }
.al-legend-title b { display: block; margin-top: 2px; color: #fff; font: 600 22px/1.2 var(--display); letter-spacing: -.02em; opacity: var(--o, 1); }
.al-legend { margin-top: 12px; }
.al-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--night-line); color: var(--night-muted); font-size: 14px; }
.al-legend li:last-child { border-bottom: 0; }
.al-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.al-legend .is-inc { --c: var(--lime); }
.al-legend .is-gap { --c: var(--coral); }
.al-legend .is-urg { --c: var(--violet-light); }
.al-legend b { color: #fff; font: 600 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.al-equeue-box { position: relative; padding: 16px; border-radius: var(--r-lg); background: var(--night); }
.al-equeue-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: #fff; font: 600 14px/1.2 var(--display); }
.al-equeue-label span { color: var(--night-muted); font: 400 12px/1.2 var(--text); }
.al-equeue { position: relative; height: 216px; }
.al-equeue li { position: absolute; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; height: 44px; padding: 0 14px 0 9px; border-radius: 12px; background: var(--night-3); color: var(--night-text); font-size: 14px; opacity: var(--o, 1); transform: translate3d(var(--x, 0), var(--y, 0), 0); }
.al-equeue li:nth-child(2) { --y: 50px; }
.al-equeue li:nth-child(3) { --y: 100px; }
.al-equeue li:nth-child(4) { --y: 172px; }
.al-equeue li.is-in { background: var(--lime); color: var(--ink); }
.al-equeue li.is-out { background: var(--night-2); color: var(--night-muted); }
.al-equeue b { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.al-eq-rank { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--night-2); font: 600 12px/1 var(--text); font-variant-numeric: tabular-nums; }
.al-equeue .is-in .al-eq-rank { background: var(--ink); color: var(--lime); }
.al-eq-score { font: 600 15px/1 var(--display); font-variant-numeric: tabular-nums; }
.al-eq-cut { position: absolute; left: 16px; right: 16px; bottom: 74px; display: flex; align-items: center; gap: 10px; color: var(--night-muted); font-size: 12px; white-space: nowrap; opacity: var(--o, 1); transform: translateY(50%); }
.al-eq-cut::before { content: ''; flex: 1; border-top: 1.5px dashed var(--night-muted); opacity: .5; }

/* The three signals */
.al-signals { padding: clamp(96px, 12vw, 160px) 0 clamp(64px, 8vw, 104px); }
.al-signals .section-head { margin-bottom: clamp(24px, 4vw, 48px); }
.al-signal { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding: clamp(48px, 6vw, 80px) 0; }
.al-signal.is-flip .al-signal-copy { order: 2; }
.al-signal.is-inc { --tint: var(--lime); --tint-ink: var(--lime-ink); --bar: var(--al-inc); }
.al-signal.is-gap { --tint: var(--coral-soft); --tint-ink: var(--coral-ink); --bar: var(--coral); }
.al-signal.is-urg { --tint: var(--violet-soft); --tint-ink: var(--violet); --bar: var(--violet); }
.al-signal-tag { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--tint); color: var(--tint-ink); font: 600 14px/1 var(--text); }
.al-signal-tag span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.al-signal h3 { max-width: 14ch; margin-top: 20px; color: var(--ink); font: 700 clamp(32px, 3.6vw, 48px)/1.06 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.al-signal-copy > p:not(.al-signal-tag) { max-width: 46ch; margin-top: 16px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.al-points { display: grid; gap: 12px; margin-top: 28px; }
.al-points li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.45; }
.al-points .i { flex: none; width: 22px; height: 22px; margin-top: 1px; padding: 4px; border-radius: 999px; background: var(--tint); color: var(--tint-ink); stroke-width: 3; }
.al-visual { padding: clamp(20px, 4vw, 56px); border-radius: var(--r-2xl); background: var(--tint); }

.al-card { position: relative; padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow-2); }
.al-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.al-card-head small { display: block; color: var(--muted); font-size: 12px; }
.al-card-head b { display: block; margin-top: 2px; color: var(--ink); font: 600 18px/1.3 var(--display); letter-spacing: -.01em; }
.al-card-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 14px; opacity: var(--o, 1); }

/* Incidence: each bar is the weighted sum of the exams */
.al-exams { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.al-exams li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--soft); color: var(--ink); font: 600 13px/1.2 var(--text); opacity: var(--o, 1); }
.al-exams i { width: 10px; height: 10px; border-radius: 3px; background: var(--seg); }
.al-exams em { color: var(--muted); font: 400 12px/1.2 var(--text); font-style: normal; }
.al-inc .is-a { --seg: var(--ink-2); }
.al-inc .is-b { --seg: var(--al-inc); }
.al-inc .is-c { --seg: var(--lime); }
.al-inc-list li { display: grid; grid-template-columns: 116px minmax(0, 1fr) 44px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 500; }
.al-inc-list b { text-align: right; font: 600 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.al-stack { display: flex; gap: 2px; height: 14px; overflow: hidden; border-radius: 999px; background: var(--soft); }
.al-stack i { flex: none; width: calc(var(--w) * var(--g, 1) * 100% - 2px); min-width: 0; height: 100%; background: var(--seg); }
.al-stack i:first-child { border-radius: 999px 0 0 999px; }

/* Gap: three sessions become mastery, mastery becomes the gap */
.al-sessions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.al-sessions li { display: grid; justify-items: center; gap: 6px; padding: 16px 8px 14px; border-radius: var(--r-md); background: var(--soft); text-align: center; }
.al-session-bar { position: relative; width: 36px; height: 88px; overflow: hidden; border-radius: 10px; background: #fff; }
.al-session-bar i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--v) * var(--g, 1) * 100%); border-radius: 10px 10px 0 0; background: var(--green); }
.al-sessions b { margin-top: 4px; color: var(--ink); font: 600 16px/1.2 var(--display); }
.al-sessions small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.al-sessions em { padding: 3px 8px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 12px/1.2 var(--text); font-style: normal; opacity: var(--o, 1); }
.al-gap-result { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.al-gap-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 48px; gap: 12px; align-items: center; padding: 6px 0; color: var(--ink); font-size: 14px; font-weight: 500; }
.al-gap-row b { text-align: right; font: 600 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.al-hbar { display: block; height: 10px; overflow: hidden; border-radius: 999px; background: var(--soft); }
.al-hbar i { display: block; width: calc(var(--v) * 100%); height: 100%; border-radius: inherit; background: var(--bar); }
.al-gap-row.is-mastery { --bar: var(--green); }
.al-gap-row.is-gap { --bar: var(--coral); }
.al-gap-eq { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--coral-soft); color: var(--coral-ink); font-size: 14px; font-variant-numeric: tabular-nums; opacity: var(--o, 1); }

/* Urgency: time since the last study against the review interval */
.al-timeline { padding: 0 8px; }
.al-rail { position: relative; height: 88px; }
.al-rail::before { content: ''; position: absolute; top: 44px; left: 0; right: 0; height: 4px; margin-top: -2px; border-radius: 999px; background: var(--soft-2); }
.al-interval { position: absolute; top: 34px; left: 0; width: 50%; height: 20px; border-radius: 999px; background: var(--violet-soft); }
.al-pin { position: absolute; top: 44px; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 3px solid var(--ink); border-radius: 50%; background: #fff; }
.al-pin.is-last { left: 0; }
.al-pin.is-due { left: 50%; border-color: var(--violet); }
.al-pin b { position: absolute; top: 18px; left: 50%; color: var(--muted); font: 500 12px/1.2 var(--text); white-space: nowrap; transform: translateX(-50%); }
.al-pin.is-last b { left: -4px; transform: none; }
.al-pin.is-due b { color: var(--violet); font-weight: 600; }
.al-now { position: absolute; top: 24px; bottom: 32px; left: calc(var(--x) * 100%); width: 2px; margin-left: -1px; background: var(--ink); }
.al-now b { position: absolute; top: -2px; left: 50%; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 12px/1.2 var(--text); white-space: nowrap; transform: translate(-50%, -100%); }
.al-weeks { position: relative; height: 18px; margin-top: 4px; }
.al-weeks span { position: absolute; left: calc(var(--i) / 8 * 100%); color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; transform: translateX(-50%); }
.al-weeks-label { margin-top: 4px; color: var(--muted); font-size: 12px; text-align: center; }
.al-urg-meter { margin-top: 20px; padding: 16px; border-radius: var(--r-md); background: var(--soft); }
.al-urg-head { display: flex; align-items: baseline; justify-content: space-between; color: var(--ink); font-size: 14px; font-weight: 500; }
.al-urg-head b { color: var(--violet); font: 700 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.al-meter { position: relative; display: block; height: 12px; margin-top: 12px; border-radius: 999px; background: #fff; }
.al-meter i { display: block; width: calc(var(--v) * 100%); height: 100%; border-radius: inherit; background: var(--violet); }
.al-meter-mark { position: absolute; top: -4px; bottom: -4px; left: 50%; width: 2px; margin-left: -1px; overflow: hidden; background: var(--ink); color: transparent; font-size: 0; }
.al-meter-scale { display: grid; grid-template-columns: 1fr auto 1fr; margin-top: 8px; color: var(--muted); font-size: 12px; }
.al-meter-scale span:last-child { text-align: right; }

/* The score and the lab */
.al-formula { padding: clamp(96px, 12vw, 152px) 0; background: var(--night); color: var(--night-text); }
.al-formula h2 { color: #fff; font-size: clamp(32px, 4vw, 52px); }
.al-formula-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 48px; }
.al-formula-lead { max-width: 48ch; color: var(--night-muted); font-size: 18px; line-height: 1.6; }
.al-lab { padding: clamp(20px, 3vw, 40px); border: 1px solid var(--night-line); border-radius: var(--r-2xl); background: var(--night-2); }
.al-lab-formula { display: flex; align-items: stretch; gap: 12px; }
.al-term { flex: 1 1 0; min-width: 0; padding: 18px 20px; border-radius: var(--r-lg); background: var(--night-3); }
.al-term small { display: block; color: var(--night-muted); font-size: 13px; }
.al-term b { display: block; margin-top: 8px; color: #fff; font: 700 clamp(30px, 4vw, 52px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.al-term sup { margin-left: 2px; color: var(--lime); font-size: .4em; vertical-align: super; }
.al-term.is-inc b { color: var(--lime); }
.al-term.is-gap b { color: var(--coral); }
.al-term.is-urg b { color: var(--violet-light); }
.al-term.is-score { background: var(--lime); }
.al-term.is-score small { color: var(--lime-ink); }
.al-term.is-score b { color: var(--ink); }
.al-op { align-self: center; color: var(--night-muted); font: 600 28px/1 var(--display); }
.al-lab-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--night-line); }
.al-lab-title { margin-bottom: 20px; color: #fff; font: 600 17px/1.3 var(--display); }
.al-range { display: block; margin-bottom: 20px; }
.al-range > span:first-child { display: flex; justify-content: space-between; gap: 12px; color: var(--night-text); font-size: 14px; font-weight: 600; }
.al-range em { color: var(--night-muted); font-weight: 400; font-style: normal; }
.al-range.is-inc { --c: var(--lime); }
.al-range.is-gap { --c: var(--coral); }
.al-range.is-urg { --c: var(--violet-light); }
.al-range-ui { position: relative; display: block; height: 28px; margin-top: 8px; }
.al-range-ui::before { content: ''; position: absolute; top: 10px; left: 0; right: 0; height: 8px; border-radius: 999px; background: var(--night-3); }
.al-range-ui i { position: absolute; top: 10px; left: 0; width: calc(var(--v, .5) * 100%); height: 8px; border-radius: 999px; background: var(--c); }
.al-range input { position: relative; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.al-range input::-webkit-slider-runnable-track { height: 28px; background: transparent; }
.al-range input::-moz-range-track { height: 28px; background: transparent; }
.al-range input::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: 2px; border: 5px solid var(--c); border-radius: 50%; background: #fff; -webkit-appearance: none; appearance: none; }
.al-range input::-moz-range-thumb { width: 14px; height: 14px; border: 5px solid var(--c); border-radius: 50%; background: #fff; }
.al-range input:focus-visible { outline: none; }
.al-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--night-2), 0 0 0 6px #fff; }
.al-stretch { margin-top: 8px; }
.al-stretch p { margin-bottom: 10px; color: var(--night-text); font-size: 14px; font-weight: 600; }
.al-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 24px; background: var(--night-3); }
.al-seg button { flex: 1 1 auto; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--night-muted); font: 600 13px/1.2 var(--text); cursor: pointer; transition: background-color .25s, color .25s; }
.al-seg button:hover { color: #fff; }
.al-seg button[aria-checked="true"] { background: #fff; color: var(--ink); }
.al-stretch small { display: block; margin-top: 10px; color: var(--night-muted); font-size: 13px; line-height: 1.5; }
.al-lab-queue { position: relative; }
.al-lq { position: relative; height: 240px; }
.al-lq li { position: absolute; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; height: 48px; padding: 0 16px 0 10px; border-radius: 14px; background: var(--night-3); color: var(--night-text); font-size: 15px; transform: translate3d(0, var(--y, 0), 0); }
.al-lq li:nth-child(2) { --y: 56px; }
.al-lq li:nth-child(3) { --y: 112px; }
.al-lq li:nth-child(4) { --y: 192px; }
.al-lq li.is-in { background: var(--lime); color: var(--ink); }
.al-lq li.is-me { box-shadow: 0 0 0 2px var(--night-2), 0 0 0 4px var(--coral); }
.al-lq b { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.al-lq-rank { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--night-2); font: 600 12px/1 var(--text); }
.al-lq .is-in .al-lq-rank { background: var(--ink); color: var(--lime); }
.al-lq-score { font: 600 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.al-lq-cut { position: absolute; left: 0; right: 0; top: 218px; display: flex; align-items: center; gap: 10px; color: var(--night-muted); font-size: 12px; white-space: nowrap; transform: translateY(-50%); }
.al-lq-cut::before { content: ''; flex: 1; border-top: 1.5px dashed var(--night-muted); opacity: .5; }
.al-lab-verdict { margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: var(--night-3); color: var(--night-text); font-size: 14px; line-height: 1.5; }

/* Worked example */
.al-example { background: #fff; }

/* The week */
.al-week { padding: clamp(96px, 12vw, 152px) 0; background: var(--soft); }
.al-week-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.al-steps { display: grid; gap: 4px; margin-top: 32px; }
.al-steps li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 4px 16px; padding: 16px 20px; border-radius: var(--r-md); transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.al-steps span { grid-row: 1 / 3; padding-top: 3px; color: var(--muted); font-size: 13px; font-weight: 600; }
.al-steps b { color: var(--ink); font: 600 18px/1.3 var(--display); }
.al-steps p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.al-steps li.is-on { background: #fff; box-shadow: var(--shadow-1); }
.al-steps li.is-on span { color: var(--green); }
.al-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.al-days span { display: grid; place-items: center; height: 38px; border-radius: 10px; background: var(--soft); color: var(--muted); font: 600 13px/1 var(--text); }
.al-days span.is-done { background: var(--soft-2); color: var(--ink); }
.al-days span.is-today { background: var(--ink); color: var(--lime); }
.al-days span.is-sun { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.al-days span.is-sun.is-today { box-shadow: none; }
.al-wk-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.al-wk-list li:first-child { border-top: 0; }
.al-wk-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.al-wk-top b { color: var(--ink); font: 600 16px/1.3 var(--display); }
.al-wk-top span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.al-wk-bar { display: block; height: 8px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: var(--soft); }
.al-wk-bar i { display: block; width: calc(var(--v) * 100%); height: 100%; border-radius: inherit; background: var(--ink); }
.al-wk-out { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 600; opacity: var(--o, 1); }
.al-wk-out .i { width: 16px; height: 16px; }
.al-wk-out.is-up { color: var(--green); }
.al-wk-out.is-reset { color: var(--coral-ink); }

/* Reviews */
.al-review { padding: clamp(96px, 12vw, 152px) 0; }
.al-review-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.al-hops { padding-bottom: 20px; }
.al-hops-svg { display: block; width: 100%; height: auto; overflow: visible; }
.al-hops-axis { stroke: var(--line); stroke-width: 2; }
.al-hop { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; }
.al-hop-dots circle { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.al-hop-dots circle.is-hit { fill: var(--lime); }
.al-hop-ball { fill: var(--lime); stroke: var(--ink); stroke-width: 2.5; }
.al-hop-labels text { fill: var(--ink); font: 700 15px var(--display); text-anchor: middle; }
.al-hop-weeks text { fill: var(--muted); font: 400 12px var(--text); text-anchor: middle; }
.al-hop-weeks text:first-child { text-anchor: start; }
.al-hop-weeks text:last-child { text-anchor: end; }

/* Rules and authorship */
.al-rules .m-rule { background: var(--soft); }
.al-own { padding: clamp(96px, 12vw, 152px) 0 0; }
.al-own-block { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 88px); border-radius: var(--r-2xl); background: var(--ink); color: var(--night-text); isolation: isolate; }
.al-own-art { position: absolute; z-index: -1; top: clamp(32px, 6vw, 88px); right: clamp(32px, 6vw, 88px); width: clamp(160px, 18vw, 240px); height: clamp(160px, 18vw, 240px); color: var(--lime); fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.al-own-head { max-width: 780px; }
.al-own-head h2 { margin-top: 24px; color: #fff; font-size: clamp(32px, 4vw, 52px); }
.al-own-head > p:last-child { max-width: 58ch; margin-top: 16px; color: var(--night-muted); font-size: 18px; line-height: 1.6; }
.al-own-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.al-own-grid li { padding: 24px; border: 1px solid var(--night-line); border-radius: var(--r-lg); background: var(--ink); }
.al-own-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--lime); color: var(--ink); }
.al-own-grid b { display: block; margin-top: 20px; color: #fff; font: 600 18px/1.3 var(--display); }
.al-own-grid p { margin-top: 8px; color: var(--night-muted); font-size: 15px; line-height: 1.55; }
.al-faq { padding-top: clamp(96px, 12vw, 152px); }

/* Tablets */
@media (max-width: 1080px) {
  .al-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .al-hero-copy { max-width: 720px; margin-inline: auto; text-align: center; }
  .al-h1-line, .al-lead { margin-inline: auto; }
  .al-actions { justify-content: center; }
  .al-engine { width: 100%; max-width: 620px; margin-inline: auto; }
  .al-own-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .al-signal, .al-week-grid, .al-review-grid, .al-formula-head, .al-lab-body { grid-template-columns: minmax(0, 1fr); }
  .al-signal.is-flip .al-signal-copy { order: 0; }
  .al-signal-copy, .al-week-copy, .al-review-copy, .al-formula-head { text-align: center; }
  .al-signal h3, .al-signal-copy > p:not(.al-signal-tag), .al-formula-lead { margin-inline: auto; }
  .al-points, .al-steps, .al-review-copy .checks { width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; }
  .al-visual, .al-wk, .al-hops { width: 100%; max-width: 620px; margin-inline: auto; }
  .al-review-copy { order: -1; }
  .al-formula-head { gap: 16px; }
  .al-own-art { display: none; }
  .al-own-head { text-align: center; margin-inline: auto; }
  .al-own-head > p:last-child { margin-inline: auto; }
}
/* Phones */
@media (max-width: 640px) {
  .al-hero { padding: calc(var(--nav-h) + 40px) 0 48px; }
  .al-word { font-size: clamp(56px, 17vw, 80px); }
  .al-h1-line { font-size: 24px; }
  .al-lead { font-size: 16px; }
  .al-actions .btn { width: 100%; max-width: 360px; }
  .al-engine { padding: 16px; border-radius: var(--r-xl); }
  .al-engine-core { grid-template-columns: 132px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
  .al-dial-center strong { font-size: 26px; }
  .al-legend-title b { font-size: 17px; }
  .al-legend li { padding: 8px 0; font-size: 13px; }
  .al-legend b { font-size: 15px; }
  .al-equeue-box { padding: 12px; }
  .al-eq-cut { left: 12px; right: 12px; bottom: 70px; }
  .al-facts { grid-template-columns: minmax(0, 1fr); margin-top: 48px; text-align: center; }
  .al-facts li, .al-facts li + li { padding: 18px 0; border-left: 0; }
  .al-facts li + li { border-top: 1px solid var(--night-line); }
  .al-signal-copy > p:not(.al-signal-tag) { font-size: 16px; }
  .al-visual { padding: 12px; border-radius: var(--r-xl); }
  .al-card { border-radius: var(--r-lg); }
  .al-inc-list li { grid-template-columns: 92px minmax(0, 1fr) 36px; gap: 10px; font-size: 13px; }
  .al-sessions { gap: 6px; }
  .al-sessions li { padding: 12px 4px; }
  .al-sessions em { padding: 3px 6px; }
  .al-gap-eq { font-size: 13px; }
  .al-lab-formula { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .al-lab-formula .al-op { display: none; }
  .al-term { padding: 14px; }
  .al-term b { font-size: 30px; }
  .al-steps li { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
  .al-steps span { grid-row: auto; }
  .al-hop-labels text { font-size: 22px; }
  .al-hop-weeks text { font-size: 18px; }
  .al-own-grid { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
}
@media (max-width: 380px) {
  .al-engine-core { grid-template-columns: 112px minmax(0, 1fr); }
  .al-inc-list li { grid-template-columns: 80px minmax(0, 1fr) 34px; }
}
