/* acads IAS: its own light, minimal, Apple-style theme (owner, 25 Oct 2026), like micros and marksup. Shared by every IAS page.
   Written by hand; the pages are generated by src/ias.py. Teal is acads IAS; the brain logo stays acads teal #009999.
   Every grid stretches its cards to equal height and pushes their links to the bottom, so rows always line up. */
:root {
  --ink: #1d1d1f; --grey: #6e6e73; --soft: #86868b; --hair: #d2d2d7; --alt: #f5f5f7; --bg: #fff;
  --c: #2a9d99; --c-d: #0a4d4b; --c-s: #e1f3f2; --brand: #009999; --blue: #0075de; --blue-h: #005bab;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', Inter, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --r: 22px;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -.022em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
img { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 820px; } .wrap.wide { max-width: 1240px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: #000; color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* logo: the acads IAS cube on a teal tile */
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 19px; letter-spacing: -.03em; }
.mk { width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(45deg, #227f7c, #5fb8b4); display: grid; place-items: center; flex: none; }
.mk svg { width: 15px; height: 15px; }
.logo small { font-size: 12px; font-weight: 500; color: var(--grey); letter-spacing: -.01em; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.06); }
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 52px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 13px; color: rgba(0,0,0,.8); }
.nav-links a { white-space: nowrap; } .nav-links a:hover { color: #000; }
.nav-links a[aria-current] { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) { .nav-links { gap: 16px; font-size: 13px; } .nav .logo small { display: none; } .nav .btn.sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 22px; border-radius: 980px; background: var(--blue); color: #fff; font-size: 17px; font-weight: 500; white-space: nowrap; transition: background .2s; }
.btn:hover { background: var(--blue-h); color: #fff; }
.btn.sm { height: 30px; padding: 0 14px; font-size: 13px; }
.btn.dark { background: var(--ink); } .btn.dark:hover { background: #000; }
.btn.light { background: #fff; color: var(--ink); } .btn.light:hover { background: #e8e8ed; }
.btn.ghost { background: transparent; color: var(--blue); padding: 0 6px; height: auto; }
.btn.ghost:hover { color: var(--blue-h); text-decoration: underline; }
.ctas { display: flex; gap: 14px 20px; justify-content: center; align-items: center; flex-wrap: wrap; }
.ctas.left { justify-content: flex-start; }
.more { color: var(--blue); font-size: 15px; white-space: nowrap; } .more:hover { text-decoration: underline; }
.ar { width: .75em; height: .75em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.02em; margin-left: 2px; }

/* sections */
.sec { padding: clamp(84px, 11vw, 132px) 0; }
.sec.alt { background: var(--alt); }
.sec.dark { background: #0d1f1e; color: #f5f5f7; }
.sec.tight { padding-top: clamp(56px, 7vw, 80px); }
.center { text-align: center; }
.kick { display: block; font-size: 17px; font-weight: 600; color: var(--c); margin-bottom: 10px; }
.sec.dark .kick { color: #7fd6d2; }
h1.big { font-size: clamp(46px, 7.6vw, 96px); line-height: 1.02; letter-spacing: -.05em; font-weight: 700; text-wrap: balance; }
h2.h2 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.06; letter-spacing: -.04em; font-weight: 700; text-wrap: balance; }
h2.h2 .soft { color: var(--soft); }
.lede { margin-top: 16px; max-width: 640px; font-size: clamp(19px, 2vw, 23px); line-height: 1.36; color: var(--grey); font-weight: 500; text-wrap: balance; }
.center .lede, .hero .lede, .phero .lede { margin-left: auto; margin-right: auto; }
.sec.dark .lede { color: #a1a1a6; }
.head { margin-bottom: clamp(40px, 5vw, 56px); }
.head .ctas { margin-top: 26px; }
.note { margin-top: 22px; font-size: 14px; color: var(--grey); }
.center .note { text-align: center; }
.note a { color: var(--blue); }

/* grids: equal-height cards, links pinned to the bottom */
.g2, .g3, .g4 { display: grid; gap: 20px; align-items: stretch; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; gap: 8px; padding: 30px 28px; border-radius: var(--r); background: var(--alt); text-align: left; min-width: 0; }
.alt .card { background: #fff; }
.card .tag { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--c-d); background: var(--c-s); padding: 3px 9px; border-radius: 980px; }
.card h3 { font-size: 21px; line-height: 1.22; letter-spacing: -.025em; font-weight: 600; }
.card p { font-size: 15.5px; line-height: 1.45; color: var(--grey); }
.card .foot { margin-top: auto; padding-top: 12px; }
.card .n { font-size: 15px; font-weight: 600; color: var(--c); font-variant-numeric: tabular-nums; }
a.card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.25); }

/* ---------- home: the hero, books into the acads brain ---------- */
.hero { padding: clamp(64px, 9vw, 104px) 0 clamp(56px, 7vw, 80px); text-align: center; }
.hero .kick { margin-bottom: 8px; }
.hero .ctas { margin-top: 28px; }
.press { max-width: 760px; margin: 48px auto 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.press svg { display: block; width: 100%; height: auto; overflow: visible; }

/* home: the two paths */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .paths { grid-template-columns: minmax(0, 1fr); } }
.panel { display: flex; flex-direction: column; border-radius: 28px; padding: clamp(32px, 4vw, 44px); background: var(--alt); text-align: left; min-width: 0; }
.panel.dark { background: #0d1f1e; color: #f5f5f7; }
.panel .kick { font-size: 15px; margin-bottom: 6px; }
.panel.dark .kick { color: #7fd6d2; }
.panel h3 { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
.panel > p { margin-top: 12px; font-size: 17px; color: var(--grey); }
.panel.dark > p { color: #a1a1a6; }
.trio { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 10px; }
.trio li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: #fff; }
.panel.dark .trio li { background: rgba(255,255,255,.07); }
.trio i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 15px; font-weight: 700; background: var(--c); color: #fff; }
.trio b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.trio span { display: block; font-size: 14px; line-height: 1.35; color: var(--grey); }
.panel.dark .trio span { color: #a1a1a6; }
.panel .ctas { margin-top: auto; }

/* steps in a row, numbered */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--c); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.film { margin: 20px auto 0; max-width: 900px; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #fff; }
.film iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- inner pages ---------- */
.phero { padding: clamp(64px, 9vw, 112px) 0 clamp(48px, 6vw, 72px); text-align: center; }
.phero .ctas { margin-top: 30px; }
.phero .facts { margin-top: clamp(48px, 6vw, 64px); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.facts div { padding: 26px 12px; text-align: center; }
.facts div + div { border-left: 1px solid var(--hair); }
.facts b { display: block; font-size: clamp(32px, 4vw, 44px); line-height: 1; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: 8px; font-size: 14px; color: var(--grey); }
@media (max-width: 680px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--hair); } }

/* sub-nav pills that jump to the parts of a page */
.jump { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 980px; background: var(--alt); font-size: 15px; font-weight: 500; }
.jump a:hover { background: #e8e8ed; }
.jump i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }

/* a pillar header: big number, title, line */
.pill-h { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: baseline; margin-bottom: clamp(36px, 4.5vw, 52px); }
.pill-h .num { grid-row: span 2; font-size: clamp(56px, 7vw, 88px); line-height: .9; font-weight: 700; letter-spacing: -.05em; color: var(--c); font-variant-numeric: tabular-nums; }
.pill-h h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.04em; font-weight: 700; }
.pill-h p { font-size: clamp(17px, 1.7vw, 20px); color: var(--grey); max-width: 640px; }
@media (max-width: 560px) { .pill-h { grid-template-columns: 1fr; } .pill-h .num { grid-row: auto; } }

/* module tiles: one size, aligned */
.mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .mods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mod { display: flex; flex-direction: column; gap: 6px; padding: 20px 18px; border-radius: 18px; background: var(--alt); min-height: 128px; min-width: 0; }
.alt .mod { background: #fff; }
.mod b { font-size: 16.5px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.mod span { font-size: 13.5px; line-height: 1.4; color: var(--grey); }
.mod em { margin-top: auto; font-style: normal; font-size: 13px; font-weight: 600; color: var(--c); }
.mod.new em { color: #b4700a; }
.mods-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 40px 0 14px; font-size: 15px; font-weight: 600; color: var(--grey); }
.mods-h:first-child { margin-top: 0; }

/* sideways scroller of sample pages: runs into the page gutter, first page lines up with the text */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 31%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -22px; padding: 4px 22px 22px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { margin: 0; scroll-snap-align: start; scroll-margin-inline: 22px; display: flex; flex-direction: column; gap: 10px; }
.rail .shot { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 10px 26px -18px rgba(0,0,0,.3); aspect-ratio: 4 / 3; display: block; cursor: zoom-in; transition: transform .35s var(--ease); }
.rail .shot:hover { transform: scale(1.02); }
.rail .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.rail figcaption { font-size: 14px; font-weight: 500; color: var(--grey); }
@media (max-width: 680px) { .rail { grid-auto-columns: 80%; } }
.rail-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: clamp(56px, 7vw, 80px) 0 18px; }
.rail-h h3 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.rail-h span { font-size: 15px; color: var(--grey); }

/* full-size viewer for sample pages */
.zoom-box { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s var(--ease); cursor: zoom-out; }
.zoom-box.on { opacity: 1; }
.zoom-box img { max-width: min(1100px, 100%); max-height: calc(100vh - 110px); border-radius: 14px; background: #fff; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.zoom-box p { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: #f5f5f7; font-size: 15px; font-weight: 500; }
.zoom-box button { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* core resources: three equal columns of modules */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.col { border-radius: var(--r); background: var(--alt); padding: 28px 26px 18px; text-align: left; min-width: 0; }
.col:last-child { background: var(--c-s); }
.col h3 { font-size: 21px; font-weight: 700; letter-spacing: -.025em; }
.col .col-n { margin-top: 4px; font-size: 13.5px; color: var(--grey); }
.col:last-child .col-n { color: var(--c-d); }
.col ul { list-style: none; padding: 0; margin: 16px 0 0; }
.col li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(0,0,0,.08); font-size: 16px; font-weight: 500; letter-spacing: -.015em; }
.col li em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--c); white-space: nowrap; }
.col:last-child li em { color: var(--c-d); }
.how { margin-top: 20px; }
.how div { padding: 22px 20px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--hair); text-align: left; }
.how b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.how span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--grey); }

/* a past question, set like a card (no year: the theme matters, not the date) */
.qcard { border-radius: 24px; background: #fff; padding: clamp(26px, 3.4vw, 36px); box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 24px 48px -32px rgba(0,0,0,.3); text-align: left; }
.qcard .theme { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--c-d); background: var(--c-s); padding: 4px 11px; border-radius: 980px; }
.qcard h4 { margin-top: 16px; font-size: 20px; line-height: 1.35; font-weight: 600; letter-spacing: -.02em; }
.qcard ol.items { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; counter-reset: it; font-size: 16px; }
.qcard ol.items li { counter-increment: it; } .qcard ol.items li::before { content: counter(it) '. '; color: var(--soft); font-variant-numeric: tabular-nums; }
.qcard .opts { margin-top: 18px; display: grid; gap: 8px; }
.qcard .opt { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; background: var(--alt); font-size: 15.5px; text-align: left; border: 0; font-family: inherit; color: inherit; cursor: pointer; transition: background .25s var(--ease), color .25s; }
.qcard .opt i { font-style: normal; width: 24px; height: 24px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--grey); }
.qcard .opt:hover { background: #e8e8ed; }
.qcard.done .opt.ok { background: var(--c-s); color: var(--c-d); }
.qcard.done .opt.ok i { background: var(--c); color: #fff; }
.qcard.done .opt.no { opacity: .55; }
.qcard .why { margin-top: 16px; font-size: 15px; color: var(--grey); display: none; }
.qcard.done .why { display: block; }
.qcard .hint { margin-top: 14px; font-size: 13px; color: var(--soft); }
.qcard.done .hint { display: none; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.ticks li::before { content: ''; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.ticks b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.ticks span { display: block; font-size: 15.5px; color: var(--grey); }
.sec.dark .ticks span { color: #a1a1a6; }

/* themes list (small, equal chips) */
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.themes div { padding: 14px 16px; border-radius: 14px; background: var(--alt); }
.alt .themes div { background: #fff; }
.themes b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.themes span { font-size: 13.5px; color: var(--grey); }
@media (max-width: 560px) { .themes { grid-template-columns: minmax(0, 1fr); } }

/* videos: thumbnail buttons that turn into the player */
.vid { position: relative; display: flex; flex-direction: column; gap: 12px; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; min-width: 0; }
.vid-img { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #000 center / cover no-repeat; }
.vid-play { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.vid-play::before { content: ''; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.vid-play::after { content: ''; position: absolute; margin-left: 4px; border-left: 16px solid var(--ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.vid:hover .vid-play::before { transform: scale(1.08); }
.vid-t b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.vid-t small { display: block; margin-top: 3px; font-size: 14px; color: var(--grey); line-height: 1.4; }
.vid iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; display: block; }

/* compare: two combos side by side, rows aligned */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 760px) { .compare { grid-template-columns: minmax(0, 1fr); } }
.tier { display: flex; flex-direction: column; border-radius: 28px; padding: clamp(28px, 3.4vw, 40px); background: #fff; text-align: left; }
.tier.feat { box-shadow: 0 0 0 2px var(--c); }
.tier .badge { align-self: flex-start; font-size: 12px; font-weight: 600; color: #fff; background: var(--c); padding: 4px 10px; border-radius: 980px; margin-bottom: 14px; }
.tier .badge.plain { color: var(--grey); background: var(--alt); }
.tier h3 { font-size: 28px; line-height: 1.1; letter-spacing: -.035em; font-weight: 700; }
.tier .sub { margin-top: 6px; font-size: 15px; color: var(--grey); }
.price { margin: 22px 0 6px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-height: 48px; }
.price b { font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.price s { font-size: 17px; color: var(--soft); }
.price em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--c-d); background: var(--c-s); padding: 3px 8px; border-radius: 980px; }
.price .ask { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.tier .valid { font-size: 13px; color: var(--grey); min-height: 20px; }
.tier ul { list-style: none; padding: 0; margin: 22px 0 28px; border-top: 1px solid var(--hair); }
.tier ul li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 15.5px; }
.tier ul li::before { content: '✓'; color: var(--c); font-weight: 700; }
.tier ul li.off { color: var(--soft); } .tier ul li.off::before { content: '–'; color: var(--hair); }
.tier .ctas { margin-top: auto; }

/* tests: three tiers on a line */
.tl { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.tl::before { content: ''; position: absolute; left: 20px; right: 20px; top: 9px; height: 2px; background: linear-gradient(90deg, var(--c), rgba(42,157,153,.2)); }
.tl li { position: relative; padding-top: 34px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.tl li::before { content: ''; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 5px var(--c); }
.tl .when { font-size: 13px; font-weight: 600; color: var(--c); }
.tl h3 { font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.tl p { font-size: 15.5px; color: var(--grey); }
.sec.dark .tl p { color: #a1a1a6; } .sec.dark .tl li::before { background: #0d1f1e; } .sec.dark .tl .when { color: #7fd6d2; }
@media (max-width: 760px) { .tl { grid-template-columns: minmax(0, 1fr); gap: 28px; } .tl::before { left: 9px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: linear-gradient(var(--c), rgba(42,157,153,.2)); } .tl li { padding: 0 0 0 36px; } }

/* the Lego Method: six blocks */
.lego { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
@media (max-width: 860px) { .lego { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .lego { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lego div { position: relative; padding: 22px 16px 18px; border-radius: 14px; background: #fff; text-align: left; }
.lego div::before { content: ''; position: absolute; top: -6px; left: 16px; width: 26px; height: 10px; border-radius: 5px 5px 0 0; background: var(--bk); }
.lego div { box-shadow: inset 0 4px 0 var(--bk); }
.lego b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.02em; }
.lego span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--grey); }

/* how to join: four steps, then the fee and the discounts, all on one grid */
.join { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .join { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .join { grid-template-columns: minmax(0, 1fr); } }
.join .card::before { content: counter(j); counter-increment: j; width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.join { counter-reset: j; }
.fee { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: stretch; }
@media (max-width: 760px) { .fee { grid-template-columns: minmax(0, 1fr); } }
.fee .card { padding: 32px; }
.card .big-n { color: var(--ink); }
.fee .big-n { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -.04em; margin: 6px 0 4px; }
.rows { margin-top: 6px; }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: 15.5px; }
.rows div:last-child { border-bottom: 0; }
.rows b { font-weight: 600; white-space: nowrap; }

/* faq */
.faq { margin-top: 36px; border-top: 1px solid var(--hair); text-align: left; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--grey); border-bottom: 2px solid var(--grey); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; font-size: 17px; color: var(--grey); max-width: 720px; }

/* closing */
.end h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -.04em; font-weight: 700; text-wrap: balance; }
.end .ctas { margin-top: 28px; }

/* mnemonics */
.mn { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r); background: #fff; min-width: 0; text-align: left; }
.mn .k { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.05; font-weight: 700; letter-spacing: -.035em; color: var(--c-d); overflow-wrap: anywhere; }
.mn .w { font-size: 13px; font-weight: 600; color: var(--c); }
.mn .t { font-size: 15.5px; line-height: 1.45; }
.mn .y { margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--grey); }
.mn .pic { display: block; border-radius: 12px; overflow: hidden; background: var(--alt); }
.mn .pic img { display: block; width: 100%; height: auto; }

/* images registered in images.py */
.i-img-a { display: block; }
.i-img { display: block; width: 100%; height: auto; }

/* blog: index and posts */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .posts { grid-template-columns: minmax(0, 1fr); } }
.post-c { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 20px; background: var(--alt); min-width: 0; transition: transform .35s var(--ease); }
.alt .post-c { background: #fff; }
.post-c:hover { transform: translateY(-3px); }
.post-c small { font-size: 13px; font-weight: 600; color: var(--c); }
.post-c h3 { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.post-c p { font-size: 14.5px; color: var(--grey); line-height: 1.45; }
.post-c time { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--soft); }
.group + .group { margin-top: 56px; }
.group > h2 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 18px; text-align: left; }
.article { padding: clamp(48px, 7vw, 80px) 0 24px; }
.article .wrap { max-width: 760px; }
.article .back { font-size: 15px; color: var(--blue); }
.article .meta { display: block; margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--c); }
.article h1 { margin-top: 10px; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.04em; font-weight: 700; text-wrap: balance; }
.body { margin-top: 32px; display: grid; gap: 18px; font-size: 18px; line-height: 1.6; letter-spacing: -.015em; }
.body h2 { margin-top: 18px; font-size: 26px; line-height: 1.2; letter-spacing: -.03em; font-weight: 700; }
.body h3 { margin-top: 10px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.body h4, .body h5, .body h6 { margin: 4px 0 0; font-size: 17px; font-weight: 600; }
.body ul, .body ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.body li > ul, .body li > ol { margin-top: 6px; }
.body li > :is(h5, h6) { margin: 0; }
.body blockquote { margin: 4px 0; padding: 18px 22px; border-radius: 16px; background: var(--alt); font-size: 19px; line-height: 1.45; font-weight: 600; }
.body a { color: var(--blue); }
.body strong { font-weight: 600; }
.body figure { margin: 6px 0; }
.body figure img { border-radius: 16px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.body p, .body li { overflow-wrap: anywhere; }
.src { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--grey); }
.src a { color: var(--blue); }

/* footer */
.ftr { background: var(--alt); padding: 40px 0 28px; font-size: 12.5px; color: var(--grey); }
.ftr-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--hair); }
.ftr-cols b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 8px; font-size: 12.5px; }
.ftr-cols a { display: block; padding: 3px 0; } .ftr-cols a:hover { color: var(--ink); text-decoration: underline; }
.ftr .also { margin-top: 12px; display: flex; gap: 6px 14px; flex-wrap: wrap; }
.ftr .also a { display: inline; padding: 0; color: var(--blue); }
.ftr-legal { padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .ftr-cols { grid-template-columns: 1fr 1fr; } .ftr-cols > div:first-child { grid-column: 1 / -1; } }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Mains: the courses as two columns of linked rows; how to join as a four-step line */
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .cols.two { grid-template-columns: minmax(0, 1fr); } }
.alt .col { background: #fff; }
.alt .col:last-child { background: #fff; }
.col ul.links li { padding: 0; display: block; }
.col ul.links a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 2px; transition: color .2s; }
.col ul.links a:hover b { color: var(--blue); }
.col ul.links b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; transition: color .2s; }
.col ul.links small { display: block; margin-top: 2px; font-size: 14px; color: var(--grey); }
.col ul.links .ar { flex: none; color: var(--soft); width: 14px; height: 14px; }
.alt .col:last-child .col-n { color: var(--grey); }
.tl.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .tl.four { grid-template-columns: minmax(0, 1fr); } }
.tl.four + .fee { margin-top: 48px; }
