/* ThinkAI.live site styles. Every colour, size and radius comes from css/tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 28px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-4); top: -60px; background: var(--ink); color: var(--paper); padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); z-index: 50; }
.skip:focus { top: var(--space-4); }

.wrap { max-width: var(--content); margin: 0 auto; padding-left: max(var(--space-4), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-4), env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(var(--space-8), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-8), env(safe-area-inset-right, 0px)); } }

/* Type */
.eyebrow { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); }
.h2 { margin: 0; font-size: clamp(28px, 4vw, 36px); line-height: 1.17; font-weight: 800; letter-spacing: -.015em; }
.section-lead { color: var(--ink-muted); max-width: 62ch; }
.ai { color: var(--orange); }
.ai-inline { color: var(--orange-text); font-weight: 700; }

/* Highlight: orange phrase on a peach marker. 24px+ only. */
.hl { color: var(--orange); position: relative; z-index: 0; }
.hl::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .04em; height: .26em; background: var(--peach); border-radius: var(--radius-pill); transform: rotate(-1.2deg); z-index: -1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; min-height: 48px; padding: var(--space-2) var(--space-6); border-radius: var(--radius-md); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s; }
.btn-sm { min-height: 40px; padding: var(--space-1) var(--space-4); font-size: 15px; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: color-mix(in srgb, var(--orange) 86%, var(--ember)); border-color: color-mix(in srgb, var(--orange) 86%, var(--ember)); }
.btn-secondary { background: var(--paper-raised); border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--peach-soft); }
.btn:active { transform: translateY(1px); }

/* Tags */
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 var(--space-3); border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.tag-orange { background: var(--peach-soft); color: var(--orange-text); }
.tag-ink { background: var(--ink); color: var(--paper); }
.tag-outline { border: 1px solid var(--line); color: var(--ink-muted); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand-logo { width: 168px; aspect-ratio: 1254 / 230; object-fit: cover; object-position: center; }
.brand-text { display: none; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:not(.btn):hover { color: var(--orange-text); }
.nav-toggle { display: none; background: none; border: 0; padding: var(--space-2); color: var(--ink); cursor: pointer; border-radius: var(--radius-sm); }
.nav-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* The logo file has a white ground: use the type wordmark on dark. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo { display: none; } :root:not([data-theme="light"]) .brand-text { display: inline; } }
[data-theme="dark"] .brand-logo { display: none; }
[data-theme="dark"] .brand-text { display: inline; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) max(var(--space-4), env(safe-area-inset-right, 0px)) var(--space-4) max(var(--space-4), env(safe-area-inset-left, 0px)); background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-card); }
  .site-nav[hidden] { display: none; }
  .site-nav a:not(.btn) { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: var(--space-4); }
  .brand-logo { width: 140px; }
}

/* Hero (Glow register) */
.hero { padding-block: var(--space-12) var(--space-16); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.hero-copy { display: grid; gap: var(--space-6); justify-items: start; min-width: 0; }
.hero-title { margin: 0; font-size: clamp(40px, 6vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -.025em; }
.hero-lead { font-size: 19px; line-height: 30px; color: var(--ink-muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-size: 14px; line-height: 21px; font-weight: 500; color: var(--ink-muted); }
.hero-facts li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--orange); }
/* The banner's right half carries baked-in text; crop to the artwork (left ~420px of 960). */
.hero-art { margin: 0; justify-self: center; width: 100%; max-width: 480px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-glow); aspect-ratio: 1 / 1; background: #120d0a; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-art { max-width: 420px; justify-self: start; }
}

/* Sections */
.section { padding-block: var(--space-16); }
@media (max-width: 720px) { .section { padding-block: var(--space-12); } }
.section-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-8); }

/* Chat assistant */
.ask { padding-bottom: 0; }
.chat-frame { max-width: 880px; padding: var(--space-2); border-radius: var(--radius-lg); background: var(--paper-raised); border: 1px solid var(--line); box-shadow: var(--shadow-glow); }
.chat-frame iframe { display: block; width: 100%; height: 600px; border: 0; border-radius: var(--radius-md); background: var(--paper-raised); }
@media (max-width: 720px) { .chat-frame { padding: var(--space-1); } .chat-frame iframe { height: 560px; } }

/* Tip cards (Sketchbook register) */
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 960px) { .tips { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.tip { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; padding: var(--space-8) var(--space-6) var(--space-16); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-card); background-color: var(--paper-raised); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.tip > * { position: relative; }
.tip-disc { position: absolute; border-radius: var(--radius-pill); background: var(--peach); opacity: .35; pointer-events: none; }
.tip-disc-a { width: 120px; height: 120px; top: -60px; left: -50px; }
.tip-disc-b { width: 140px; height: 140px; bottom: 30px; right: -84px; }
.tip-kicker { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); }
.tip-head { display: flex; align-items: center; gap: var(--space-2); }
.tip-title { margin: 0; font-family: var(--font-hand); font-size: 26px; line-height: 31px; font-weight: 800; text-transform: uppercase; }
.tip-body { display: grid; gap: var(--space-2); font-family: var(--font-hand); font-size: 18px; line-height: 27px; max-width: 30ch; }
.ticks { flex: none; width: 22px; height: 30px; fill: none; stroke: var(--orange); stroke-width: var(--stroke-doodle); stroke-linecap: round; }
.ticks.flip { transform: scaleX(-1); }
.wave { position: absolute; left: 0; right: 0; bottom: var(--space-6); width: 100%; height: 24px; fill: none; stroke: var(--orange); stroke-width: var(--stroke-doodle); stroke-linecap: round; }
.prompt { margin: 0; padding: var(--space-3) var(--space-4); border: 2px dashed var(--ink); border-radius: var(--radius-md); background: var(--paper-raised); text-align: center; }
.prompt figcaption { font-family: var(--font-hand); font-size: 15px; line-height: 21px; font-weight: 500; color: var(--ink-muted); margin-bottom: var(--space-1); }
.prompt blockquote { margin: 0; font-family: var(--font-hand); font-size: 17px; line-height: 25px; }

/* Courses */
.courses { background: var(--cream); border-block: 1px solid var(--line); }
.courses .hl { color: var(--ink); }
.filters { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-2); margin-bottom: var(--space-2); scrollbar-width: thin; }
.chip { flex: none; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--paper-raised); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .15s, border-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .count { font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: var(--radius-pill); background: var(--peach-soft); color: var(--orange-text); font-variant-numeric: tabular-nums; }
.filter-status { font-size: 14px; line-height: 21px; color: var(--ink-muted); margin-bottom: var(--space-6); }

/* 10 courses: two columns fill five even rows; one column on phones. */
.course-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 760px) { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.course { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--paper-raised); border: 1px solid var(--line); box-shadow: var(--shadow-card); min-width: 0; transition: border-color .15s, transform .15s; }
.course:hover { border-color: var(--orange); transform: translateY(-2px); }
.course[hidden] { display: none; }
.course-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.course-title { margin: 0; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; }
.course-desc { color: var(--ink-muted); font-size: 16px; line-height: 25px; }
.course-meta { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding-block: var(--space-3); border-block: 1px dashed var(--line); font-size: 14px; line-height: 20px; }
.course-meta div { display: grid; gap: 2px; min-width: 0; }
.course-meta dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.course-meta dd { margin: 0; font-weight: 600; }
.think-first { margin-top: auto; font-family: var(--font-hand); font-size: 16px; line-height: 23px; padding: var(--space-3) var(--space-4); background: var(--peach-soft); border-radius: var(--radius-md); }
.think-first span { font-weight: 800; color: var(--orange-text); }

/* Internship band */
.band-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.band-copy { display: grid; gap: var(--space-4); justify-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); align-items: start; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-raised); }
.step-n { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-pill); background: var(--orange); color: var(--on-orange); font-weight: 800; font-size: 18px; }
.steps strong { display: block; font-size: 17px; line-height: 24px; }
.steps p { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
@media (max-width: 860px) { .band-inner { grid-template-columns: 1fr; gap: var(--space-8); } }

/* Join */
.join { padding-top: 0; }
.join-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; padding: var(--space-12); border-radius: var(--radius-lg); background: var(--paper-raised); border: 1px solid var(--line); box-shadow: var(--shadow-glow); }
.join-copy { display: grid; gap: var(--space-3); }
.join-copy p { color: var(--ink-muted); }
.join-form { display: grid; gap: var(--space-2); min-width: 0; }
.join-form label { font-size: 14px; font-weight: 700; }
.join-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.join-row input { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-md); border: 2px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; }
.join-row input:hover { border-color: var(--ink-muted); }
.form-msg { min-height: 24px; font-size: 15px; font-weight: 600; color: var(--orange-text); }
@media (max-width: 860px) { .join-card { grid-template-columns: 1fr; padding: var(--space-8) var(--space-6); } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-12) calc(var(--space-12) + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: grid; grid-template-columns: 1.4fr auto; gap: var(--space-6) var(--space-12); align-items: start; }
.footer-brand { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.footer-tag { font-size: 14px; line-height: 21px; color: var(--ink-muted); margin-top: var(--space-1); max-width: 40ch; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.site-footer nav a { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.site-footer nav a:hover { color: var(--orange-text); }
.footer-copy { grid-column: 1 / -1; font-size: 14px; color: var(--ink-muted); }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
