/* Design2Income — course sales pages (/course/:id) and catalog (/courses).
   Load after tokens.css. */
body { line-height: 1.55; }
.wrap { width: min(1080px, 92%); margin: auto; }

nav { height: 74px; position: sticky; top: 0; z-index: 20; background: rgba(246, 242, 235, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav img { width: 120px; height: 44px; object-fit: cover; object-position: 50% 33%; display: block; mix-blend-mode: multiply; }
.nav a.back { font-size: 13px; font-weight: 800; color: #4c5660; }

.btn { display: inline-block; padding: 13px 22px; border-radius: 11px; font-size: 14px; font-weight: 900; background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn.orange { background: var(--orange); border-color: var(--orange); }

.hero { padding: 64px 0 44px; }
.eyebrow { font-size: 11px; font-weight: 950; letter-spacing: .15em; text-transform: uppercase; color: var(--orange); }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.02; letter-spacing: -.04em; margin: 14px 0 12px; max-width: 16ch; }
.tagline { font-size: 19px; color: var(--muted); max-width: 60ch; margin: 0 0 26px; }
.buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.price { font-size: 30px; font-weight: 950; letter-spacing: -.03em; }
.price small { font-size: 14px; font-weight: 700; color: var(--muted); margin-left: 6px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.chip { font-size: 12px; font-weight: 800; color: #4c5660; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }

section.block { padding: 40px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: 26px; letter-spacing: -.03em; margin: 0 0 20px; }
.lead p { font-size: 16px; max-width: 70ch; margin: 0 0 14px; }

.outcomes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.outcomes li { position: relative; padding-left: 26px; font-size: 15px; }
.outcomes li:before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--orange); font-weight: 950; }

.mod { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); margin-bottom: 10px; overflow: hidden; }
.mod > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 900; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.mod > summary::-webkit-details-marker { display: none; }
.mod > summary:after { content: "+"; color: var(--muted); font-weight: 900; }
.mod[open] > summary:after { content: "–"; }
.mod ul { margin: 0; padding: 0 16px 14px 34px; }
.mod li { font-size: 14px; color: var(--muted); padding: 3px 0; }

.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.projects .p { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 16px; font-size: 14px; font-weight: 600; }

.instructor { display: flex; gap: 20px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.instructor .av { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 950; font-size: 22px; flex: 0 0 auto; overflow: hidden; }
.instructor .av img { width: 100%; height: 100%; object-fit: cover; }
.instructor .nm { font-weight: 900; }
.instructor .ti { font-size: 13px; color: var(--orange); font-weight: 800; margin-bottom: 6px; }
.instructor .bio { font-size: 14px; color: var(--muted); margin: 0; }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { list-style: none; cursor: pointer; font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; color: var(--muted); font-weight: 900; }
.faq details[open] summary:after { content: "–"; }
.faq p { font-size: 14px; color: var(--muted); margin: 10px 0 2px; max-width: 70ch; }

.cta { background: var(--orange); border-radius: 20px; padding: 34px; display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 44px 0; }
.cta h2 { margin: 0; font-size: 28px; letter-spacing: -.03em; border: 0; padding: 0; }
.cta .btn { background: var(--navy); border-color: var(--navy); }

footer { padding: 34px 0; color: #727b83; font-size: 12px; }
footer .wrap { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; }

/* Catalog grid (/courses) */
.catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding: 8px 0 40px; }
.ccard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); overflow: hidden; }
.ccard .cover { height: 120px; background: var(--navy); color: #fff; padding: 16px; display: flex; align-items: flex-end; font-size: 19px; font-weight: 950; letter-spacing: -.03em; line-height: 1.05; }
.ccard:nth-child(3n+2) .cover { background: var(--orange); }
.ccard:nth-child(3n) .cover { background: var(--gold); color: var(--ink); }
.ccard .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ccard .body p { margin: 0; font-size: 13px; color: var(--muted); flex: 1; }
.ccard .row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 900; }
.ccard .row .go { color: var(--orange); }

/* /learn student area */
.nav .who { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 10px; }
.loginform { display: flex; gap: 10px; flex-wrap: wrap; max-width: 460px; margin-top: 22px; }
.loginform input { flex: 1 1 220px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; font: inherit; font-size: 15px; background: var(--paper); }
.loginform input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.loginform .btn { border: 0; cursor: pointer; }
.mycourses { display: grid; gap: 12px; padding: 8px 0 44px; }
.mycourse { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 18px 20px; }
.mycourse .nm { font-weight: 900; font-size: 16px; }
.mycourse .note { font-size: 13px; color: var(--muted); margin-top: 4px; max-width: 60ch; }
.mycourse .ref { font-size: 11px; color: #9aa2a9; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin-top: 6px; }
.mycourse .pending { font-size: 13px; color: var(--muted); }

@media (max-width: 720px) { .outcomes { grid-template-columns: 1fr; } .cta { display: block; } .cta .btn { margin-top: 16px; } }
