/* AI-Ready PM by DeepTier Labs.
   Layout concept: the page reads like a one-page project charter.
   A meta strip up top, then Scope, Schedule, Instructor, Investment, Questions. */
:root {
  --bg: #F2F4F7;
  --surface: #FFFFFF;
  --ink: #0A1628;
  --muted: #4F5B6E;
  --line: #D4DAE3;
  --soft: #E7ECF2;
  --accent: #0E7490;      /* DeepTier teal: links, focus, small labels */
  --cta: #F97316;         /* DeepTier orange: primary buttons only */
  --cta-ink: #0A1628;
  --mark: #EA580C;        /* orange for schedule markers */
  --logo-tile: #FFFFFF;
  --font-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1628;
    --surface: #0F2035;
    --ink: #E8EDF4;
    --muted: #A3AFC2;
    --line: #22354F;
    --soft: #152A44;
    --accent: #38BDD8;
    --cta: #FB923C;
    --cta-ink: #0A1628;
    --mark: #FB923C;
    --logo-tile: #FFFFFF;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 6px; z-index: 20; }
.skip-link:focus { left: 16px; }

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.fine { font-size: 13px; color: var(--muted); }

/* Top bar */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.brand img { background: var(--logo-tile); border-radius: 6px; padding: 3px; width: 40px; height: auto; }

main { display: flex; flex-direction: column; gap: 56px; padding-block: 32px 56px; }

/* Charter strip */
.charter {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  overflow: hidden;
}
.charter > div { padding: 12px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; min-width: 0; }
.charter .value { font-weight: 600; font-size: 15px; margin-top: 2px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); font-weight: 700; }
.lede { font-size: 18px; color: var(--muted); max-width: 34em; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; min-width: 0; }
.card h2 { font-size: 24px; }
.card .sub { color: var(--muted); font-size: 15px; margin-top: 8px; }

form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.opt { color: var(--muted); font-weight: 400; }
input, textarea, select {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  width: 100%;
  min-width: 0;
}
textarea { resize: vertical; min-height: 76px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  font: inherit;
  font-weight: 600;
  background: var(--cta);
  color: var(--cta-ink);
  border: 0;
  border-radius: 6px;
  padding: 13px 20px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-block;
}
.btn:hover { filter: brightness(1.05); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-quiet { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.form-error { font-size: 14px; background: var(--soft); border-left: 3px solid var(--mark); border-radius: 4px; padding: 10px 12px; }

/* Sections */
.sec { display: grid; grid-template-columns: 180px 1fr; gap: 24px 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.sec > .label { padding-top: 6px; }
.sec h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.prose { max-width: 62ch; }

.scope { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.scope li { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px; min-width: 0; }
.scope h3 { font-size: 18px; }
.scope p { color: var(--muted); font-size: 15px; margin-top: 8px; }

.weeks { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.week { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 16px 18px; border-top: 1px solid var(--line); }
.week:first-child { border-top: 0; }
.wk { font-family: var(--font-mono); font-size: 13px; color: var(--mark); font-weight: 500; padding-top: 3px; }
.week h3 { font-size: 18px; }
.week p { color: var(--muted); font-size: 15px; margin-top: 4px; }

.creds { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.creds li { font-family: var(--font-mono); font-size: 12px; background: var(--soft); border-radius: 4px; padding: 5px 9px; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.amt { font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.incl { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

details { border-top: 1px solid var(--line); padding: 14px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); margin-top: 8px; max-width: 60ch; }

.foot { border-top: 1px solid var(--line); }
.foot-row { display: flex; flex-direction: column; gap: 6px; padding-block: 20px 32px; }

/* Prompt pack page */
.pack-head { display: flex; flex-direction: column; gap: 14px; max-width: 70ch; }
.pack-head h1 { font-size: clamp(2rem, 5.4vw, 3rem); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rules li { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; font-size: 15px; min-width: 0; }
.rules strong { display: block; margin-bottom: 2px; }
.prompts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: p; }
.prompt { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; counter-increment: p; }
.prompt-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.prompt h2 { font-size: 20px; }
.prompt h2::before { content: counter(p, decimal-leading-zero) "  "; font-family: var(--font-mono); font-size: 14px; color: var(--mark); font-weight: 500; }
.prompt .when { color: var(--muted); font-size: 15px; }
.prompt pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.55;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.copied { font-size: 13px; color: var(--accent); min-height: 1.2em; }
.next { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.next h2 { font-size: 24px; }

@media (max-width: 800px) {
  main { gap: 40px; padding-block: 24px 40px; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .sec { grid-template-columns: 1fr; gap: 12px; }
  .sec > .label { padding-top: 0; }
  .card { padding: 20px; }
}
@media (max-width: 560px) { .scope { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
