/* uni.africa landing — "Daylight Almanac": light editorial data-print.
   Warm bone surfaces, aurora hero wash, sticky glass nav, bento proof grid,
   sourced-indicator ticker, clay CTA plate, deep-green footer. Zero external
   assets; system serif stack for display. Colour pairs verified ≥ 4.5:1
   (WCAG AA). Mobile-first from 320px. */
:root {
  --bone: #FAF6ED;         /* page base — warm light */
  --card: #FFFFFF;
  --cream: #F4EDDE;
  --ink: #1E2A20;          /* deep green-tinted ink for headings */
  --body: #4C4A3F;         /* warm body text, AA on bone/white */
  --muted: #6B6A5E;
  --pine: #0E4D25;
  --green: #166534;
  --green-tint: #E7F0E9;
  --terra: #E2725B;
  --clay: #A63A1F;         /* waitlist plate */
  --clay-deep: #8A2D12;
  --gold: #E9B949;
  --gold-ink: #8A6207;     /* gold for text on light, AA */
  --line: #E7DFCC;
  --shadow: 0 1px 2px rgba(30, 42, 32, .05), 0 8px 28px rgba(30, 42, 32, .07);
  --shadow-lift: 0 2px 4px rgba(30, 42, 32, .06), 0 18px 44px rgba(30, 42, 32, .12);
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Noto Serif', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --text: clamp(1rem, 0.95rem + 0.3vw, 1.0625rem);
  --h1: clamp(2.8rem, 1.4rem + 7vw, 6.5rem);
  --h2: clamp(2rem, 1.5rem + 2.6vw, 3.4rem);
  --sect: clamp(4rem, 2.75rem + 5vw, 8.5rem);
  --r-lg: 1.5rem;
  --fast: 180ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --weave: repeating-linear-gradient(90deg,
    #166534 0 14px, #E9B949 14px 19px, #0B2E1C 19px 33px,
    #E2725B 33px 39px, #241C11 39px 53px, #E9B949 53px 57px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: var(--text); line-height: 1.65; color: var(--body); background: var(--bone); -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--pine); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 3px; }
.waitlist-card :focus-visible { outline-color: var(--gold); }
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 46rem; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: var(--bone); padding: .6rem 1rem; }
.skip:focus { left: 0; }

/* ---- type ----------------------------------------------------------- */
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); margin-bottom: 1rem; }
h2 em { font-style: italic; color: var(--clay); }
h3 { font-size: 1.12rem; line-height: 1.3; margin-bottom: .4rem; color: var(--ink); }

.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 1.2rem; display: flex; align-items: center; gap: .75rem; }
.kicker::before { content: ''; width: 2.25rem; height: 2px; background: currentColor; flex: none; opacity: .7; }
.kicker-clay { color: #FFD9CB; }

/* ---- buttons -------------------------------------------------------- */
.btn { display: inline-block; background: var(--pine); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--pine); padding: .8rem 1.6rem; border-radius: 999px; cursor: pointer; font-size: 1rem; font-family: var(--sans); transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.btn:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: .95rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .65; cursor: wait; transform: none; }
.btn.ghost { background: transparent; color: var(--pine); border-color: rgba(14, 77, 37, .35); }
.btn.ghost:hover { background: var(--green-tint); color: var(--pine); border-color: var(--pine); box-shadow: none; }

/* ---- sticky glass nav + woven band ---------------------------------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 237, .8); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid rgba(231, 223, 204, .8); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.mark { width: 2rem; height: 2rem; flex: none; }
.wordmark { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.tld { color: var(--clay); font-weight: 600; }
.head-nav { display: none; gap: 1.75rem; margin-left: auto; margin-right: 1rem; }
.head-nav a { color: var(--body); text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; }
.head-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--clay); transition: right var(--fast) var(--ease); }
.head-nav a:hover { color: var(--ink); }
.head-nav a:hover::after { right: 0; }
.weave { height: 6px; background: var(--weave); }
.weave-foot { height: 8px; }

/* ---- hero: typographic, aurora-washed ------------------------------- */
.hero { position: relative; padding-block: clamp(4rem, 3rem + 5vw, 8.5rem) clamp(3rem, 2rem + 3.5vw, 5.5rem); overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: -20% -10%; z-index: -2; background:
  radial-gradient(42rem 30rem at 18% 8%, rgba(233, 185, 73, .22), transparent 60%),
  radial-gradient(38rem 28rem at 85% 18%, rgba(226, 114, 91, .16), transparent 62%),
  radial-gradient(46rem 34rem at 55% 108%, rgba(22, 101, 52, .13), transparent 60%);
  animation: aurora 24s ease-in-out infinite alternate; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .045; pointer-events: none; }
@keyframes aurora { to { transform: translate3d(3%, -3%, 0) scale(1.06); } }
.hero-copy { max-width: 56rem; }
.hero .eyebrow { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--clay); margin-bottom: 1.4rem; display: flex; align-items: center; gap: .6rem; }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--clay); flex: none; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.sub { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); color: var(--body); margin-top: 1.5rem; max-width: 40rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.price-anchor { margin-top: 2rem; font-size: .95rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; max-width: 40rem; }
.price-anchor strong { color: var(--pine); }

/* staggered hero reveal on load */
.hero-copy > * { opacity: 0; translate: 0 18px; animation: rise .8s var(--ease) forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .14s; }
.hero-copy > *:nth-child(3) { animation-delay: .23s; }
.hero-copy > *:nth-child(4) { animation-delay: .32s; }
.hero-copy > *:nth-child(5) { animation-delay: .41s; }
@keyframes rise { to { opacity: 1; translate: 0 0; } }

/* ---- the indicator ticker ------------------------------------------- */
.ticker { border-block: 1px solid var(--line); background: var(--card); overflow: hidden; padding-block: .85rem; }
.ticker-track { display: flex; width: max-content; animation: marquee 52s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list { list-style: none; display: flex; flex: none; align-items: baseline; gap: 3rem; padding-right: 3rem; white-space: nowrap; }
.ticker-list li { font-family: var(--serif); font-size: 1rem; }
.ticker-list strong { font-weight: 700; color: var(--ink); }
.ticker-list .src { color: var(--muted); font-size: .85rem; font-family: var(--sans); }
.ticker-thesis { font-style: italic; color: var(--gold-ink); }
.ticker-thesis::before { content: '— '; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- bento proof grid ----------------------------------------------- */
.how { padding-block: var(--sect); }
.how h2 em { font-style: italic; color: var(--clay); }
.bento { display: grid; gap: 1.1rem; margin-top: 2.75rem; grid-template-columns: 1fr; }
.cell { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem 1.5rem; box-shadow: var(--shadow); transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease); position: relative; overflow: hidden; }
.cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.cell-num { font-family: var(--serif); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--gold-ink); display: block; margin-bottom: .8rem; }
.cell p { color: var(--body); font-size: .95rem; }
.cell-phone { display: grid; place-items: center; background: linear-gradient(165deg, #F2ECDD, #FAF6ED 60%); padding: 2rem 1.5rem 0; }
.cell-phone svg { max-width: 15.5rem; filter: drop-shadow(0 18px 32px rgba(30, 42, 32, .18)); }
.cell-phone .tk { fill: #241C11; font-size: 11px; font-weight: 600; font-family: var(--sans); }
.cell-phone .tg { fill: #BEE3CC; font-size: 10px; font-family: var(--sans); }
.cell-phone .tw { fill: #fff; font-size: 15px; font-weight: 700; font-family: var(--sans); }
.cell-phone .tm { fill: #6B6A5E; font-size: 10px; font-family: var(--sans); }
.cell-stat { background: var(--pine); border-color: var(--pine); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.stat-big { font-family: var(--serif); font-size: clamp(4.5rem, 3rem + 6vw, 7rem); line-height: .9; color: var(--gold); font-style: italic; }
.stat-label { margin-top: .6rem; color: #D3E3D6; font-size: .95rem; max-width: 16rem; }
.cell-tutor { display: flex; flex-direction: column; gap: 1rem; }
.chat { display: grid; gap: .5rem; }
.bubble { max-width: 85%; padding: .55rem .9rem; border-radius: 1rem; font-size: .92rem; line-height: 1.45; }
.bubble-q { background: var(--green-tint); color: var(--ink); justify-self: end; border-bottom-right-radius: .25rem; }
.bubble-a { background: var(--cream); color: var(--ink); justify-self: start; border-bottom-left-radius: .25rem; display: flex; gap: .5rem; align-items: flex-start; }
.chat-ico { width: 1.1rem; height: 1.1rem; flex: none; margin-top: .1rem; }
.cell-foot { color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); padding-top: .9rem; margin-top: auto; }

/* ---- the syllabus: light table of contents -------------------------- */
.courses { padding-block: var(--sect); background: var(--card); border-block: 1px solid var(--line); position: relative; }
.courses::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: .03; pointer-events: none; }
.courses .wrap { position: relative; z-index: 1; }
.course-lead { color: var(--body); max-width: 44rem; margin-bottom: 2rem; font-size: 1.05rem; }

/* course "product card" — edu-standard scannable metadata (Coursera/edX) */
.course-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bone); box-shadow: var(--shadow); display: grid; gap: 1.5rem; padding: 1.6rem; margin-bottom: 1.5rem; overflow: hidden; }
.cc-kick { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .5rem; }
.cc-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.cc-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.cc-meta li { display: inline-flex; align-items: baseline; gap: .35rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; font-size: .88rem; color: var(--body); }
.cc-n { font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--clay); }
.cc-side { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.cc-price { font-size: 1.35rem; font-weight: 800; color: var(--ink); font-family: var(--serif); }
.cc-price span { color: var(--pine); font-style: italic; }
.cc-price-note { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }

/* primary-sources credibility row — our honest "institution wall" */
.sources { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; padding: 1.1rem 0 2.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.sources-label { font-size: .82rem; color: var(--muted); font-style: italic; font-family: var(--serif); }
.sources-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.sources-list li { font-family: var(--serif); font-weight: 700; font-size: .95rem; color: var(--ink); position: relative; }
.sources-list li:not(:last-child)::after { content: '·'; position: absolute; right: -.85rem; color: var(--gold-ink); }

.toc { list-style: none; display: grid; }
.toc-meta { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .35rem; }
.toc-row { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; border-top: 1px solid var(--line); padding-block: 1.5rem; padding-inline: .75rem; border-radius: .75rem; transition: background var(--fast) var(--ease); }
.toc-row:hover { background: var(--bone); }
.toc-num { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--gold-ink); min-width: 3.4rem; transition: translate var(--fast) var(--ease), color var(--fast) var(--ease); }
.toc-row:hover .toc-num { translate: 6px 0; color: var(--clay); }
.toc-body h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; }
.toc-body p { color: var(--body); font-size: .95rem; max-width: 34rem; }
.course-note { margin-top: 2.5rem; color: var(--muted); font-style: italic; font-family: var(--serif); border-top: 1px solid var(--line); padding-top: 1.5rem; }

/* ---- waitlist: the clay plate ---------------------------------------- */
.waitlist { padding-block: var(--sect); }
.waitlist-card { position: relative; background: linear-gradient(160deg, var(--clay), var(--clay-deep)); color: #fff; border-radius: 2rem; padding: clamp(1.9rem, 1rem + 3.5vw, 4rem); display: grid; gap: 2.25rem; overflow: hidden; box-shadow: 0 24px 64px rgba(138, 45, 18, .28); }
.waitlist-card::before { content: ''; position: absolute; inset: auto 0 0; height: 6px; background: var(--weave); }
.waitlist-card::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: .06; pointer-events: none; }
.waitlist-copy, .waitlist-card form { position: relative; z-index: 1; }
.waitlist-copy h2 { color: #fff; }
.waitlist-copy h2 em { color: #FFD9A0; }
.waitlist-copy p { color: #FFE9E0; max-width: 30rem; margin-top: .5rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .4rem; color: #fff; }
.optional { color: #FFD9CB; font-weight: 400; }
.field input { width: 100%; padding: .9rem 1.05rem; font-size: 1.05rem; font-family: var(--sans); border: 2px solid rgba(255, 255, 255, .35); border-radius: .9rem; background: #FFFDF8; color: #241C11; transition: border-color var(--fast) var(--ease); }
.field input:focus { border-color: var(--gold); outline: none; }
.field input[aria-invalid='true'] { border-color: #FFB4A6; }
.hint { font-size: .85rem; color: #FFE9E0; margin-top: .35rem; }
.error { font-size: .9rem; font-weight: 600; color: #FFD3C7; margin-top: .4rem; }
.waitlist .btn { background: var(--gold); border-color: var(--gold); color: #241C11; }
.waitlist .btn:hover { background: #F2C963; border-color: #F2C963; color: #241C11; }
.status { margin-top: .9rem; font-weight: 700; min-height: 1.5rem; }
.status[data-state='success'] { color: #C8F5D2; }
.fine { font-size: .8rem; color: #FFE9E0; margin-top: .75rem; }

/* ---- faq -------------------------------------------------------------- */
.faq { padding-block: var(--sect) calc(var(--sect) * .8); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ink); padding-block: 1.1rem; list-style: none; position: relative; padding-right: 2.25rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .25rem; top: 50%; translate: 0 -50%; font-family: var(--serif); font-size: 1.6rem; color: var(--clay); transition: rotate var(--fast) var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--body); padding-bottom: 1.35rem; max-width: 42rem; }
.faq strong { color: var(--ink); }

/* ---- footer ------------------------------------------------------------ */
.site-foot { background: #0B2E1C; color: #E4EDE4; overflow: hidden; }
.foot-grid { display: grid; gap: 1.5rem; padding-block: 3rem 1.5rem; }
.foot-brand { display: flex; gap: .8rem; align-items: flex-start; max-width: 26rem; }
.foot-brand p { color: #C9D8CB; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-foot a { color: #E4EDE4; text-decoration-color: var(--terra); }
.site-foot a:hover { color: #fff; }
.privacy { font-size: .85rem; color: #A7BCA9; max-width: 44rem; border-top: 1px solid rgba(251, 247, 240, .16); padding-top: 1.25rem; }
.privacy a { color: #C9D8CB; }
.copyline { font-size: .85rem; color: #A7BCA9; }
.foot-word { font-family: var(--serif); font-weight: 700; font-style: italic; font-size: clamp(4rem, 16vw, 15rem); line-height: .8; text-align: center; color: rgba(251, 247, 240, .07); letter-spacing: -0.03em; user-select: none; margin-top: 1rem; translate: 0 12%; }

/* ---- scroll-driven reveals (progressive enhancement) ------------------- */
@supports (animation-timeline: view()) {
  .cell, .toc-row, .faq details { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 42%; }
  @keyframes rise-in { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
}

/* ---- layout ≥ breakpoints ---------------------------------------------- */
@media (min-width: 640px) {
  .head-nav { display: flex; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell-phone { grid-row: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: 1.1fr 1fr 1fr 1fr; }
  .cell-phone { grid-row: span 2; }
  .cell-stat { grid-column: 2; }
  .cell-tutor { grid-column: 3 / 5; }
  .toc { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .waitlist-card { grid-template-columns: 1fr 1fr; align-items: center; }
  .course-card { grid-template-columns: 1fr auto; align-items: center; gap: 2.5rem; padding: 2rem 2.25rem; }
  .cc-side { border-top: 0; border-left: 1px solid var(--line); padding-top: 0; padding-left: 2.5rem; min-width: 15rem; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .waitlist-card { grid-template-columns: 1fr; }
}

/* ---- reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero-copy > * { opacity: 1; translate: 0 0; }
  .ticker { overflow-x: auto; }
  .ticker-track { width: auto; }
  .ticker-list[aria-hidden='true'] { display: none; }
  .btn:hover, .cell:hover { transform: none; }
}
