/* =====================================================================
   Stage 4: Prototype — Design Thinking Notebook
   House style: dark ink, indigo accent, Space Grotesk headings, Inter body,
   Georgia typing fields, dot-grid paper.
   ===================================================================== */
:root {
  --ink: #1c1c24;
  --ink-soft: #5a5a66;
  --paper: #fbfbf6;
  --card: #ffffff;
  --line: #e5e4da;
  --dot: #dcdccf;
  --accent: #2f2ac0;
  --accent-soft: #eeeefb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(28, 28, 36, .05), 0 6px 20px rgba(28, 28, 36, .05);
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: -11px -11px;
  line-height: 1.55;
}
.notebook {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 56px) clamp(16px, 4vw, 40px) 64px;
}
/* ============================ MASTHEAD ============================ */
.masthead {
  margin-bottom: 48px;
}
.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.masthead__title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 11vw, 5.5rem);
  line-height: .92;
  letter-spacing: -.03em;
  margin: 0 0 18px;
}
.masthead__lede {
  max-width: 56ch;
  font-size: 1.06rem;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.meta-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.meta-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.meta-field__label {
  font-family: "Space Grotesk", sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.meta-field input {
  font: inherit;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
/* ============================ BLOCKS ============================ */
.block {
  margin-top: 40px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.block__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.block__num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 6px 10px;
  line-height: 1;
  flex-shrink: 0;
}
.block__title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -.01em;
  margin: 0 0 4px;
}
.block__note {
  margin: 0;
  color: var(--ink-soft);
  font-size: .95rem;
  max-width: 62ch;
}
.block__note em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}
/* ============================ FIELDS ============================ */
.grid {
  display: grid;
  gap: 20px;
}
.grid--2 {
  grid-template-columns: 1fr 1fr;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field__label {
  font-family: "Space Grotesk", sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
textarea,
.field input {
  font: inherit;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  resize: vertical;
}
textarea:focus,
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
/* ==================== APP FLOW: SCREEN CARDS ==================== */
.flow-task {
  margin-bottom: 8px;
}
.flow-checks {
  margin-top: 28px;
}
.flow-screen {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--paper);
  padding: 20px clamp(16px, 2.5vw, 24px);
}
.flow-screen__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.flow-screen__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 5px 9px;
  flex-shrink: 0;
}
.flow-screen__name {
  font: inherit;
  flex: 1;
  min-width: 160px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
}
.flow-arrow {
  text-align: center;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  margin: 12px 0 0;
}
/* ==================== EMBEDDED WIREFRAME PHOTOS ==================== */
.wf-block {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}
.wf-cap--left {
  text-align: left;
  margin-bottom: 2px;
}
.wf-note {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: .95rem;
  max-width: 62ch;
}
.wf-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 24px;
}
.wf-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.wf-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wf {
  width: 100%;
  height: auto;
  display: block;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.wf-cap {
  font-family: "Space Grotesk", sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}
/* ============================ RESPONSIVE ============================ */
@media (max-width: 680px) {
  .grid--2 {
    grid-template-columns: 1fr;
  }
  .meta-bar {
    grid-template-columns: 1fr;
  }
  .wf-pair {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   Typing font: Georgia for every fill-in field. Placed last so
   it wins over the base font declarations above.
   ============================================================ */
input,
textarea,
.field input,
.meta-field input,
.flow-screen__name {
  font-family: Georgia, "Times New Roman", serif;
}
/* ============================================================
   Block 04 · JavaScript Code Generation
   Solid panels so the code and buttons read clearly against the
   dot-grid paper. Append this to the end of prototype.css.
   ============================================================ */
.jsgen-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 22px 0 7px;
}
.jsgen-label span {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--accent);
}
/* Prompt on a solid card */
.prompt-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--ink);
  font-size: .96rem;
  line-height: 1.55;
  box-shadow: var(--shadow);
}
.prompt-card em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}
/* Solid dark panel so code is legible over the wallpaper */
.code-panel {
  background: #1c1c24;
  color: #eaeaf2;
  border: 1px solid #2c2c36;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0;
  overflow-x: auto;
  font-family: "SF Mono", "Fira Code", Menlo, Consolas, monospace;
  font-size: .86rem;
  line-height: 1.6;
  box-shadow: var(--shadow);
}
.code-panel code {
  font: inherit;
  color: inherit;
  white-space: pre;
}
/* Empty variant — dashed accent border signals "paste your function here" */
.code-panel--empty {
  border: 1px dashed var(--accent);
  color: #9a9aa6;
  min-height: 110px;
}
/* Live preview — solid white frame like the prototype screens */
.preview-frame {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.preview-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  margin: 0 0 14px;
  color: var(--ink);
}
.preview-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.preview-frame button {
  font-family: "Inter", sans-serif;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.preview-frame button:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.preview-menu {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 60px;
}
/* =====================================================================
   STATIC PRESENTATION LAYER  (added)
   Turns the fillable fields into finished, read-only cards with color.
   Carried over from Stages 1 & 3 so the cards match. Additive; overrides
   earlier rules by order.
   ===================================================================== */
/* ---- Rotating accent palette. Each sets --c (line) + --c-bg (tint). ---- */
.p-indigo { --c:#3f39c9; --c-bg:#eeeefb; }
.p-amber  { --c:#bf7d10; --c-bg:#fbf0d9; }
.p-teal   { --c:#0e938e; --c-bg:#e0f4f2; }
.p-green  { --c:#3f9d5f; --c-bg:#e7f6ec; }
.p-coral  { --c:#d75f5f; --c-bg:#fce7e7; }
.p-pink   { --c:#c65b88; --c-bg:#fbe7f0; }
.p-blue   { --c:#3f86bf; --c-bg:#e6f1fb; }
.p-violet { --c:#7c53e6; --c-bg:#f0eafe; }
/* ---- Read-only text: preserves the line breaks from the old textareas ---- */
.static-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-line;
  margin: 0;
}
/* ---- Filled (non-editable) value chips (meta bar) ---- */
.static-input {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  display: block;
}
/* ---- Each field becomes an accent card (with hover lift) ---- */
.field--card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--c, var(--accent));
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  gap: 4px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.field--card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(28,28,36,.10), 0 18px 34px rgba(28,28,36,.14);
}
.field--card .field__label {
  color: var(--c, var(--ink));
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
}
.field--card .static-text {
  margin-top: 8px;
  background: var(--c-bg, var(--paper));
  border-radius: 8px;
  padding: 12px 14px;
}
/* ---- Flow-screen cards: tint via the rotating palette + hover lift ---- */
.flow-screen {
  border-left-color: var(--c, var(--accent));
  transition: transform .15s ease, box-shadow .15s ease;
}
.flow-screen:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(28,28,36,.10), 0 18px 34px rgba(28,28,36,.14);
}
.flow-screen__num {
  color: var(--c, var(--accent));
  background: var(--c-bg, var(--accent-soft));
}
/* the screen name is now static text, not an input */
.flow-screen__name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border-color: var(--line);
}
.flow-screen .static-text {
  margin-top: 4px;
  background: var(--c-bg, var(--paper));
  border-radius: 8px;
  padding: 11px 13px;
}
/* ---- Wireframe "Screen notes" cards sit tighter under each figure ---- */
.wf-figure .field--card {
  box-shadow: none;
}
.wf-figure .field--card:hover {
  transform: none;
  box-shadow: none;
}
/* ---- Hover-lift on the display boxes (mockups, code, prompt, preview) ---- */
.prototype-screen__preview,
.code-panel,
.prompt-card,
.preview-frame,
.wf {
  transition: transform .15s ease, box-shadow .15s ease;
}
.prototype-screen__preview:hover,
.code-panel:hover,
.prompt-card:hover,
.preview-frame:hover,
.wf:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(28,28,36,.10), 0 18px 34px rgba(28,28,36,.14);
}
/* ======================= REDUCED MOTION ======================= */
@media (prefers-reduced-motion: reduce) {
  .field--card, .field--card:hover,
  .flow-screen, .flow-screen:hover,
  .prototype-screen__preview, .prototype-screen__preview:hover,
  .code-panel, .code-panel:hover,
  .prompt-card, .prompt-card:hover,
  .preview-frame, .preview-frame:hover,
  .wf, .wf:hover {
    transition: none;
    transform: none;
  }
}

codecraft-web-project-footer {
    display: none !important;
}