/*
 * The Learn to Claude Code sales page (/learn-to-claude-code).
 *
 * This lives in lib/assets rather than app/assets so that
 * `stylesheet_link_tag :app` in the app's other layouts never loads it; only
 * the page's own layout links it, so the rules need no scoping.
 * The look follows docs/design-spec.md in the learn-to-claude-code repo:
 * a calm, light, editorial page where terminal panels are the only dark shapes.
 */

.ltcc {
  --paper: #FAF8F4;
  --surface: #FFFFFF;
  --ink: #1A1A1A;
  --ink-body: #3A3733;
  --ink-muted: #6B6660;
  --accent: #1F4D3A;
  --accent-hover: #163828;
  --accent-tint: #E3EDE7;
  --rule: #E4DFD7;
  --bar: #D8D2C8;

  --term-bg: #151515;
  --term-ink: #E8E4DC;
  --term-dim: #8A857D;
  --term-prompt: #8FBF9F;
  --term-wait: #D9B26F;
  --term-divider: #2A2A2A;
  --term-dot: #3A3A3A;

  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --margin: 20px;
  --section-pad: 72px;

  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) { .ltcc { --margin: 40px; } }
@media (min-width: 1024px) { .ltcc { --margin: 80px; --section-pad: 120px; font-size: 18px; } }

*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 400; }
.display, .h2, .statement, .h3, .gap-who, .compare-title, .day-title, .offer-name, .chart-total strong {
  font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em;
}

a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent); border-radius: 2px; }

.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 10; background: var(--surface); padding: 10px 16px; }
.skip-link:focus { left: 12px; }

/* ───── Layout ───── */

.wrap { width: 100%; max-width: calc(1280px + 2 * var(--margin)); margin: 0 auto; padding: 0 var(--margin); }
.section { padding: var(--section-pad) 0; border-top: 1px solid var(--rule); }
.section--tall { padding: calc(var(--section-pad) + 16px) 0; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--tight { gap: 16px; }
.stack--loose { gap: 32px; }
.eyebrow + .h2 { margin-top: 16px; }
.narrow { max-width: 960px; }
.chart figcaption { margin-top: 20px; }

/* ───── Type ───── */

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); line-height: 1.2; }
.display { letter-spacing: -0.015em; font-size: 44px; line-height: 1.05; text-wrap: balance; }
.h2 { font-size: 32px; line-height: 1.1; text-wrap: balance; }
.statement { font-size: 34px; line-height: 1.12; text-wrap: balance; }
.h3 { font-size: 28px; line-height: 1.12; }
.lead { font-size: 18px; line-height: 1.58; color: var(--ink-body); max-width: 680px; }
.body { color: var(--ink-body); max-width: 680px; }
.caption { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }

@media (min-width: 1024px) {
  .display { font-size: 74px; line-height: 1.02; }
  .h2 { font-size: 48px; }
  .statement { font-size: 56px; line-height: 1.1; }
  .h3 { font-size: 34px; }
  .lead { font-size: 20px; }
}

/* ───── Buttons ───── */

.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; background: var(--accent); color: var(--paper); font: 600 17px/1 var(--font-sans); text-decoration: none; border-radius: var(--radius-sm); transition: background 150ms ease; }
.btn:hover { background: var(--accent-hover); color: var(--paper); }
.btn--small { height: 44px; padding: 0 20px; font-size: 15px; }
.link { font-weight: 600; font-size: 17px; text-underline-offset: 5px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
@media (max-width: 767px) { .actions .btn { width: 100%; } }

/* ───── Header ───── */

.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.wordmark { font-family: var(--font-serif); font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { display: none; color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--accent); }
@media (min-width: 1024px) {
  .site-header .wrap { height: 72px; }
  .wordmark { font-size: 22px; }
  .site-nav a:not(.btn) { display: inline; }
}

/* ───── Hero ───── */

.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 48px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--ink-muted); padding-top: 4px; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { color: var(--accent); flex: none; }
@media (min-width: 1024px) {
  .hero { padding: 104px 0 120px; }
  .hero-grid { grid-template-columns: 6fr 6fr; align-items: center; gap: 64px; }
}

/* ───── Terminal panels ───── */

.term { background: var(--term-bg); color: var(--term-ink); border-radius: var(--radius-lg); font-family: var(--font-mono); font-size: 12px; line-height: 1.7; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--term-divider); color: var(--term-dim); font-size: 12px; }
.term-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--term-dot); flex: none; }
.term-bar .term-title { margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-panes { display: grid; gap: 1px; background: var(--term-divider); }
.term-pane { background: var(--term-bg); padding: 16px 18px; min-height: 170px; display: flex; flex-direction: column; gap: 2px; }
.term-pane:nth-child(4) { display: none; }
.term-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--term-dim); margin-bottom: 8px; }
.term-line { white-space: pre-wrap; overflow-wrap: anywhere; }
.t-cmd::before { content: "$ "; color: var(--term-dim); }
.t-ask::before { content: "> "; color: var(--term-prompt); }
.t-dim { color: var(--term-dim); }
.t-ok { color: var(--term-prompt); }
.t-wait { color: var(--term-wait); }
@media (min-width: 768px) {
  .term { font-size: 12.5px; }
  .term-panes { grid-template-columns: 1fr 1fr; }
  .term-pane { min-height: 200px; }
  .term-pane:nth-child(4) { display: flex; }
}

/* ───── The gap ───── */

.split { display: grid; gap: 24px; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 2fr 10fr; }
  .split > :last-child { max-width: 1040px; }
}

.gap-rows { border-top: 1px solid var(--ink); margin-top: 56px; }
.gap-row { display: grid; gap: 10px 32px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.gap-who { font-size: 28px; line-height: 1.1; }
.gap-what { color: var(--ink-body); }
.gap-bar { height: 10px; background: var(--bar); border-radius: 1px; align-self: center; }
.gap-row--you .gap-who { color: var(--accent); }
.gap-row--you .gap-what { color: var(--ink); font-weight: 500; }
.gap-row--you .gap-bar { background: var(--accent); min-width: 3px; }
.gap-track { display: flex; align-items: center; gap: 12px; }
.gap-note { margin-top: 40px; display: grid; gap: 24px; }
@media (min-width: 1024px) {
  .gap-row { grid-template-columns: 300px 1fr 380px; align-items: center; padding: 30px 0; }
  .gap-who { font-size: 34px; }
  .gap-note { grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
}

/* ───── Proof chart ───── */

.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.chart { border-top: 1px solid var(--ink); padding-top: 28px; }
.chart-bars { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); align-items: end; gap: 6px; height: 280px; }
.chart-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.chart-val { font-size: 11px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-bar { width: 100%; background: var(--bar); border-radius: 2px 2px 0 0; min-height: 2px; }
.chart-col--now .chart-bar { background: var(--accent); }
.chart-col--now .chart-val { color: var(--accent); font-weight: 600; font-size: 13px; align-self: flex-end; }
.chart-years { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 6px; border-top: 1px solid var(--ink); padding-top: 8px; }
.chart-years span { font-size: 11px; color: var(--ink-muted); text-align: center; font-variant-numeric: tabular-nums; }
.chart-years span:nth-child(even) { visibility: hidden; }
.chart-years span:last-child { visibility: visible; color: var(--accent); font-weight: 600; text-align: right; }
.chart-val--quiet { visibility: hidden; }
.chart-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.chart-total { border-top: 1px solid var(--rule); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.chart-total strong { font-size: 40px; line-height: 1; }
.chart-total--now strong { color: var(--accent); }
@media (min-width: 768px) {
  .chart-years span:nth-child(even) { visibility: visible; }
  .chart-val--quiet { visibility: visible; }
  .chart-bars { gap: 10px; height: 340px; }
  .chart-years { gap: 10px; }
  .chart-years span, .chart-val { font-size: 12px; }
}
@media (min-width: 1024px) {
  .proof-grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .chart-total strong { font-size: 52px; }
}

/* ───── Three outcomes ───── */

.outcomes { display: grid; border-top: 1px solid var(--ink); margin-top: 56px; }
.outcome { padding: 32px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 16px; }
.outcome-num { font-family: var(--font-serif); color: var(--accent); font-size: 22px; }
.outcome ul { display: flex; flex-direction: column; border-top: 1px solid var(--rule); margin-top: 8px; }
.outcome li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; color: var(--ink-body); }
.outcome li:last-child { border-bottom: 0; }
@media (min-width: 1024px) {
  .outcomes { grid-template-columns: repeat(3, 1fr); }
  .outcome { padding: 40px 40px 8px 0; border-bottom: 0; }
  .outcome + .outcome { padding-left: 40px; border-left: 1px solid var(--rule); }
}

/* ───── Comparison ───── */

.compare { display: grid; margin-top: 56px; }
.compare-col { border-top: 1px solid var(--ink); padding: 28px 0 8px; display: flex; flex-direction: column; gap: 12px; }
.compare-col + .compare-col { margin-top: 40px; }
.compare-label { font-size: 15px; font-weight: 600; color: var(--ink-muted); }
.compare-col--new .compare-label { color: var(--accent); }
.compare-title { font-size: 30px; line-height: 1.1; }
.compare-col li { padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink-body); }
.compare-col--new li { color: var(--ink); }
.compare-col li:last-child { border-bottom: 0; }
@media (min-width: 768px) {
  .compare { grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
  .compare-col { border-top: 0; padding: 32px 48px 8px 0; }
  .compare-col + .compare-col { margin-top: 0; padding: 32px 0 8px 48px; border-left: 1px solid var(--rule); }
}

/* ───── The three days ───── */

.days { display: grid; margin-top: 56px; border-top: 1px solid var(--ink); }
.day { padding: 28px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 12px; }
.day-when { color: var(--accent); font-weight: 600; font-size: 15px; }
.day-title { font-size: 26px; line-height: 1.12; }
.day p { font-size: 16px; color: var(--ink-body); }
.day-moment { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-muted); }
.day-moment strong { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.day--side .day-title { font-size: 22px; }
@media (min-width: 1024px) {
  .days { grid-template-columns: 0.8fr 1fr 1fr 1fr 0.8fr; }
  .day { padding: 32px 28px 8px 0; border-bottom: 0; }
  .day + .day { padding-left: 28px; border-left: 1px solid var(--rule); }
}

/* ───── Students ───── */

.stories { display: grid; gap: 64px; margin-top: 56px; }
.story { border-top: 1px solid var(--ink); padding-top: 28px; display: flex; flex-direction: column; gap: 24px; }
.story blockquote { font-family: var(--font-serif); font-style: italic; font-size: 24px; line-height: 1.3; letter-spacing: -0.005em; color: var(--ink); text-wrap: pretty; }
.story blockquote p + p { margin-top: 14px; }
.story figcaption { display: flex; flex-direction: column; gap: 2px; }
.story-name { font-weight: 600; }
.story-role { font-size: 15px; color: var(--ink-muted); }
.story-built { border-top: 1px solid var(--rule); }
.story-built li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; color: var(--ink-body); }
@media (min-width: 1024px) {
  .stories { grid-template-columns: 1fr 1fr; gap: 80px; }
  .story blockquote { font-size: 30px; }
}

/* ───── What you keep ───── */

.keep { display: grid; gap: 48px; }
.keep-list { border-top: 1px solid var(--ink); }
.keep-list li { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.keep-list strong { font-weight: 600; font-size: 17px; }
.keep-list span { font-size: 16px; color: var(--ink-muted); }
.file-body { margin: 0; padding: 20px 24px; font: inherit; white-space: pre-wrap; }
@media (min-width: 1024px) {
  .keep { grid-template-columns: 6fr 6fr; gap: 80px; align-items: start; }
  .file-body { padding: 24px 28px; }
  .file-panel { font-size: 13px; }
}

/* ───── Instructor ───── */

.teacher { display: grid; gap: 40px; }
.creds { display: grid; border-top: 1px solid var(--ink); column-gap: 40px; }
.creds div { padding: 18px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 2px; }
.creds dt { font-weight: 600; font-size: 17px; }
.creds dd { font-size: 16px; color: var(--ink-muted); }
.teacher-close { font-family: var(--font-serif); font-style: italic; font-size: 22px; line-height: 1.35; }
@media (min-width: 768px) { .creds { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .teacher { grid-template-columns: 4fr 8fr; gap: 80px; }
  .teacher-close { font-size: 26px; }
}

/* ───── Offers ───── */

.offers { display: grid; gap: 24px; margin-top: 56px; }
.offer { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 28px 22px; display: flex; flex-direction: column; gap: 20px; }
.offer-name { font-size: 30px; line-height: 1.1; }
.offer-desc { color: var(--ink-body); }
.offer-rows { border-top: 1px solid var(--rule); flex: 1; }
.offer-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.offer-rows dt { color: var(--ink-muted); flex: none; }
.offer-rows dd { text-align: right; }
.offer .btn { align-self: flex-start; }
@media (max-width: 767px) { .offer .btn { align-self: stretch; } }
@media (min-width: 768px) { .offers { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .offer { padding: 48px; gap: 24px; }
  .offer-name { font-size: 40px; }
}

/* ───── Guarantee and closing ───── */

.centered { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.centered .statement { max-width: 900px; }
.centered .lead { margin: 0 auto; }

/* ───── Fit ───── */

.fit { display: grid; gap: 48px; margin-top: 56px; }
.fit-col { border-top: 1px solid var(--ink); padding-top: 20px; }
.fit-label { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.fit-col--not .fit-label { color: var(--ink-muted); }
.fit-col li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.fit-col--not li { color: var(--ink-body); }
@media (min-width: 768px) { .fit { grid-template-columns: 1fr 1fr; gap: 64px; } }
@media (min-width: 1024px) { .fit { gap: 96px; } }

/* ───── FAQ ───── */

.faq { display: grid; gap: 40px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 600; line-height: 1.4; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 24px; line-height: 1; flex: none; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 0 26px; color: var(--ink-body); max-width: 640px; }
@media (min-width: 1024px) {
  .faq { grid-template-columns: 4fr 8fr; gap: 80px; }
  .faq-list summary { font-size: 20px; padding: 24px 0; }
}

/* ───── Footer ───── */

.site-footer { border-top: 1px solid var(--rule); padding: 40px 0; font-size: 15px; color: var(--ink-muted); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 12px; }
.site-footer a { color: var(--ink-muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.footer-row .wordmark { font-size: 19px; margin-right: auto; }
.footer-fine { font-size: 13px; }

/* ───── Motion: one quiet rise on load ───── */

@keyframes ltcc-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rise { animation: ltcc-rise 500ms ease-out both; }
.rise-2 { animation-delay: 120ms; }
.rise-3 { animation-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .btn { transition: none; }
}
