/* Help AI Academy website. Same colors and feel as the lesson videos. Built phone-first. */
:root {
  --bg: #F7F4EE;  --card: #FFFFFF;  --line: #E6E2ED;
  --ink: #1E1B2E; --muted: #5F5B73;
  --accent: #7A5AF8;  --accent-dark: #5B3FD6;  --soft: #EEE9FF;
  --good: #11703A;  --good-soft: #E3F5EA;  --warn: #8A5200;  --warn-soft: #FFF1D6;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(24, 18, 48, 0.08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 17px/1.6 "Avenir Next", Avenir, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
       -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
p { margin: 0 0 14px; }
[hidden] { display: none !important; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
/* A reading-width column that keeps the same left edge as everything else on the page. */
.narrow > * { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; padding: 12px 0; background: rgba(247, 244, 238, 0.92);
       -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
nav a, nav .linklike { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
nav a:hover, nav .linklike:hover { color: var(--accent-dark); }
.nav-member { display: none; }
.is-member .nav-member { display: flex; }
.is-member .nav-public { display: none; }
@media (max-width: 620px) {
  .top { padding: 10px 0; }
  .bar { gap: 6px 12px; }
  nav { gap: 2px 16px; width: 100%; justify-content: space-between; }
  nav a, nav .linklike { font-size: 15px; }
  nav .wide-only { display: none; }
}

/* Type */
h1 { font-size: clamp(34px, 5.2vw, 54px); line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 16px; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; margin: 6px 0 24px; max-width: 22em; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 6px; }
.kicker { margin: 0; font-size: 13.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 34em; margin: 0 0 24px; }
.fine { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.center { text-align: center; }
.center h2, .center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
button, .button { font: inherit; font-weight: 700; color: #fff; background: var(--accent); border: 0; border-radius: 12px;
                  padding: 13px 20px; cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.3; text-align: center; }
button:hover, .button:hover { background: var(--accent-dark); color: #fff; }
button[disabled] { opacity: 0.6; cursor: default; }
.button.small { padding: 8px 14px; font-size: 15px; color: #fff; }
.button.big { padding: 16px 26px; font-size: 18px; border-radius: 14px; }
.button.wide { display: block; width: 100%; }
.ghost, .button.ghost { background: transparent; color: var(--accent-dark); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ghost:hover, .button.ghost:hover { background: var(--card); color: var(--accent-dark); }
.linklike { background: none; border: 0; padding: 0; color: var(--accent-dark); font-weight: 600; text-decoration: underline; cursor: pointer; border-radius: 4px; }
.linklike:hover { background: none; color: var(--ink); }
nav .linklike { text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 6px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Sections */
section { padding: 60px 0; }
section.tight { padding-top: 8px; }
.band-white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-soft { background: var(--soft); }
.band { background: var(--ink); color: #fff; }
.band h2 { color: #fff; margin-bottom: 12px; }
.band .lead { color: #CFCADF; }
.band-grid { display: grid; gap: 26px; align-items: center; }
@media (min-width: 900px) { .band-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.band .signup { color: var(--ink); }
.band .button.light { background: #fff; color: var(--ink); }
.band .button.light:hover { background: var(--soft); color: var(--ink); }
.band .on-dark { color: #CFCADF; }
.band .on-dark a { color: #fff; }

/* Hero */
.hero { padding: 34px 0 52px; background: radial-gradient(900px 480px at 88% 0%, #ECE6FF 0%, rgba(236, 230, 255, 0) 70%); }
.hero-grid { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .hero { padding: 64px 0 88px; }
  .hero-grid { grid-template-columns: 1.12fr 1fr; align-items: center; gap: 48px; }
}
.hero h1 { font-size: clamp(34px, 4.7vw, 52px); }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--muted); }
.ticks li, .tick-list li { padding-left: 26px; position: relative; }
.ticks li::before, .tick-list li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 7px;
                    border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.tick-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.tick-list li::before { top: 0.48em; }

/* The "watch the free lesson" card */
.player { position: relative; display: block; border-radius: 22px; overflow: hidden; background: var(--bg);
          box-shadow: var(--shadow); border: 1px solid var(--line); text-decoration: none; color: #fff; }
.player img { width: 100%; }
.player-shot { position: relative; display: block; }
.play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
        background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(91, 63, 214, 0.45); transition: transform 0.15s ease; }
.play svg { margin-left: 4px; }
.player:hover .play { transform: scale(1.07); }
.player-label { display: block; background: var(--ink); color: #fff; padding: 13px 20px; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .play { transition: none; } }
@media (max-width: 620px) { .play { width: 56px; height: 56px; margin: -28px 0 0 -28px; } .play svg { width: 24px; height: 24px; } }

/* Forms */
.signup, .form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); max-width: 560px; }
.signup label, .form-card label { display: block; margin-bottom: 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
input[type="email"] { flex: 1 1 220px; min-width: 0; font: inherit; color: var(--ink); background: #fff;
                      padding: 13px 14px; border: 1.5px solid #C9C4D8; border-radius: 12px; }
input[type="email"]:focus { outline: 3px solid var(--soft); border-color: var(--accent); }
.signup button, .form-card button { flex: 1 0 auto; }
.price-card .signup { border: 0; box-shadow: none; padding: 0; max-width: none; }

/* Messages */
.notice { border-radius: 14px; padding: 14px 18px; margin: 0 0 18px; background: var(--soft); color: var(--ink); border: 1px solid #DCD3FF; max-width: 46em; }
.notice.good { background: var(--good-soft); border-color: #BFE5CD; color: #0B4F29; }
.notice.warn { background: var(--warn-soft); border-color: #F3D9A4; color: #6B3F00; }
.notice p:last-child { margin-bottom: 0; }
.msg { min-height: 1.4em; }
.msg[data-state="bad"] { color: #A12A2A; font-weight: 600; }
.msg[data-state="good"] { color: var(--good); font-weight: 600; }

/* Cards */
.cards { display: grid; gap: 18px; }
@media (min-width: 780px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card, .course-card, .side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.band-white .card, .band-white .course-card { background: var(--bg); }
.card p { margin: 0; color: var(--muted); }
.num { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 12px;
       background: var(--soft); color: var(--accent-dark); font-weight: 800; }
.quote { font-size: 18px; color: var(--ink) !important; }
.quote::before { content: "\201C"; }
.quote::after { content: "\201D"; }

.course-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.course-card h3 { font-size: 23px; margin: 0; }
.course-card p { margin: 0; color: var(--muted); flex: 1; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); }
.more { font-weight: 700; color: var(--accent-dark); }
.more::after { content: " \2192"; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--accent-dark); font-size: 13.5px; font-weight: 600; }
.pill.status { background: var(--ink); color: #fff; }
.pill.open { background: var(--good-soft); color: var(--good); }
.pill.plain { background: transparent; color: var(--muted); padding-left: 2px; }
@media (prefers-reduced-motion: reduce) { .course-card { transition: none; } }

/* "See a lesson" on the home page */
.show { display: grid; gap: 26px; align-items: center; }
@media (min-width: 940px) { .show { grid-template-columns: 1fr 1.15fr; gap: 44px; } }
.show figure { margin: 0; }
.show figure img { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.show figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.step-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }

/* Numbered steps (home) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; counter-reset: step; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px;
                    border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.steps p { margin: 0; color: var(--muted); }

/* Dotted lists */
.for { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 12px; }
.for li { padding-left: 30px; position: relative; }
.for li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }

/* Price */
.price-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 940px) { .price-grid { grid-template-columns: 1fr 1.25fr; gap: 48px; } }
.price-card { background: var(--card); border: 1.5px solid var(--accent); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.price { margin: 0 0 4px; line-height: 1; }
.amount { font-size: 64px; font-weight: 800; letter-spacing: -0.03em; }
.per { font-size: 20px; color: var(--muted); font-weight: 600; }
.price-card .tagline { color: var(--muted); margin: 6px 0 20px; }
.price-teaser { display: grid; gap: 26px; align-items: center; }
@media (min-width: 900px) { .price-teaser { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.inside h2 { margin-top: 0; }
.inside h3 { margin-top: 26px; }

/* FAQ */
.faq-grid { display: grid; gap: 8px 48px; align-items: start; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.7fr; } .faq-grid .faq { margin-top: 6px; } }
.faq details:first-child summary { padding-top: 6px; }
.faq details:first-child summary::after { top: 1px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 34px 18px 0; font-weight: 700; font-size: 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 26px; font-weight: 500; color: var(--accent-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 0 0 18px; max-width: 44em; }

/* Inner page headers */
.page-head { padding: 40px 0 26px; background: radial-gradient(800px 380px at 90% 0%, #ECE6FF 0%, rgba(236, 230, 255, 0) 70%); }
.page-head h1 { font-size: clamp(32px, 4.6vw, 48px); max-width: 18em; }
.crumbs { font-size: 14.5px; color: var(--muted); margin: 0 0 4px; }
.crumbs a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }

/* Course page and member home */
.two-col, .lesson-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 940px) { .two-col { grid-template-columns: 1.7fr 1fr; gap: 44px; } .lesson-grid { grid-template-columns: 2.1fr 1fr; gap: 32px; } }
.lessons { list-style: none; margin: 0; padding: 0; counter-reset: lesson; }
.lessons li { counter-increment: lesson; display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.lessons li:first-child { border-top: 0; padding-top: 4px; }
.lessons li::before { content: counter(lesson); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
                      background: var(--soft); color: var(--accent-dark); font-weight: 800; }
.lessons h3 { font-size: 19px; margin: 0 0 2px; }
.lessons h3 a { color: var(--ink); text-decoration: none; }
.lessons h3 a:hover { color: var(--accent-dark); text-decoration: underline; }
.lessons p { margin: 0; color: var(--muted); font-size: 16px; }
.tag { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none; vertical-align: 2px; white-space: nowrap; }
.tag.quiet { background: var(--soft); color: var(--accent-dark) !important; }
.tag.done { background: var(--good-soft); color: var(--good) !important; }
.lessons li[data-state="done"]::before { content: "\2713"; background: var(--good-soft); color: var(--good); }
.lessons li[data-state="locked"] { opacity: 0.62; }
.lessons li[data-state="locked"] h3 a { pointer-events: none; }
.side-card h3 { font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-dark); margin: 20px 0 6px; }
.side-card h3:first-child { margin-top: 0; }
.side-card p, .side-card li { color: var(--ink); font-size: 16px; }
.side-card ul { margin: 0; padding-left: 20px; }
.side-card li { margin-bottom: 6px; }
.side-card .button { margin-top: 6px; }
.course-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; }
.course-block h2 { font-size: 26px; margin: 2px 0 6px; }
.course-block > p { color: var(--muted); }
.meter { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; margin: 14px 0 6px; }
.meter span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 0.3s ease; }
.meter-label { font-size: 14px; color: var(--muted); margin: 0 0 14px; }

/* Lesson page */
.video-card { border-radius: 20px; overflow: hidden; background: #000; box-shadow: var(--shadow); line-height: 0; }
.video-card video, .video-card img { width: 100%; height: auto; }
.walk { margin: 0 0 8px; padding: 0; list-style: none; counter-reset: walk; }
.walk > li { counter-increment: walk; position: relative; padding: 0 0 18px 54px; }
.walk > li::before { content: counter(walk); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 38px; height: 38px;
                     border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.walk p { margin: 3px 0 8px; }
.walk ul { margin: 4px 0 10px; padding-left: 22px; }
.walk li li { margin-bottom: 6px; }
.walk .table-wrap { margin: 10px 0 12px; }
.lesson-top { display: grid; gap: 18px; }
.lesson-top > * { max-width: 780px; margin-bottom: 0; }
.downloads { display: grid; gap: 14px 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 16px; }
.downloads p { margin: 0; }
.downloads .fine { margin-top: 8px; }
.lesson-body h2 { margin-top: 44px; font-size: clamp(24px, 3vw, 30px); margin-bottom: 16px; }
.lesson-body > h2:first-child { margin-top: 6px; }
.lesson-body ul, .lesson-body ol { padding-left: 24px; }
.lesson-body li { margin-bottom: 8px; }
.lesson-body ol.walk { padding-left: 0; }
.lesson-body ol.walk > li { margin-bottom: 0; }
.checklist { list-style: none; padding-left: 0 !important; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 34px; margin: 0; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 0.22em; width: 19px; height: 19px; border-radius: 6px; border: 2px solid var(--accent); background: var(--card); }
details.answers { margin: 14px 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 0 16px; }
details.answers summary { cursor: pointer; font-weight: 700; padding: 14px 0; color: var(--accent-dark); }
details.answers .table-wrap { margin-bottom: 16px; }
.narrow h2:first-child, .kicker + h2 { margin-top: 6px; }
code { font: 0.92em Menlo, Consolas, "Courier New", monospace; background: var(--soft); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.project { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.project h3 { margin-top: 22px; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-dark); }
.project ol, .project ul { padding-left: 24px; margin: 0 0 8px; }
.project li { margin-bottom: 8px; }
.points { color: var(--muted); font-size: 14.5px; white-space: nowrap; }
.lesson-nav { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin: 0 0 8px; }
.tidy { border-collapse: collapse; width: 100%; font-size: 16px; }
.tidy th, .tidy td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--line); }
.tidy thead th { border-top: 0; font-size: 13.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.tidy td:first-child { font-weight: 600; }
.tidy td { min-width: 5.5em; }

/* Prompts with a Copy button (lessons and the guide) */
.prompt { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 10px 0 12px; }
.prompt pre { margin: 0; padding: 18px 86px 18px 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt code { font: 15px/1.55 Menlo, Consolas, "Courier New", monospace; color: var(--ink); background: none; padding: 0; }
.prompt .copy { position: absolute; top: 10px; right: 10px; padding: 6px 12px; font-size: 13.5px; background: var(--soft); color: var(--accent-dark); }
.prompt .copy:hover { background: #E2DAFF; color: var(--accent-dark); }

/* Quiz */
.quiz fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 20px 20px 14px; margin: 0 0 16px; min-width: 0; }
.quiz legend { font-weight: 700; font-size: 18px; padding: 0; float: left; width: 100%; margin-bottom: 12px; }
.option { display: flex; gap: 12px; align-items: flex-start; clear: both; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.option:hover { border-color: var(--accent); }
.option input { margin: 5px 0 0; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.option:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.explain { margin: 10px 0 6px; padding: 10px 14px; border-radius: 12px; font-size: 16px; }
.explain[data-state="right"] { background: var(--good-soft); color: #0B4F29; }
.explain[data-state="wrong"] { background: var(--warn-soft); color: #6B3F00; }
.result { font-weight: 700; font-size: 19px; margin: 14px 0 12px; }
.quiz-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: 14px; color: var(--muted); }
footer p { margin: 0 0 10px; max-width: 72em; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 18px; }
footer nav { width: auto; gap: 4px 20px; justify-content: flex-start; }
footer nav a { font-size: 15px; }
.foot-legal { display: flex; gap: 6px 18px; flex-wrap: wrap; margin: 0 0 10px; }
.foot-legal a { color: var(--muted); }

/* Simple pages, the guide, and the legal pages */
.note { padding-top: 56px; padding-bottom: 90px; max-width: 760px; }
.guide, .prose { max-width: 820px; padding-top: 40px; padding-bottom: 72px; }
.guide h2 { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.guide h3 { margin-top: 28px; }
.guide ul, .prose ul { padding-left: 22px; }
.guide li, .prose li { margin-bottom: 8px; }
.prose h1 { font-size: clamp(32px, 5vw, 46px); }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose p, .prose li { max-width: 44em; }
