/* ==========================================================
   HQF SUMMER FORGE — stylesheet
   ========================================================== */

:root {
  --bg: #120d0a;
  --bg-alt: #1a1310;
  --bg-card: #211711;
  --bg-card-hover: #2a1d15;
  --border: #3c2c20;
  --border-bright: #5a4230;

  --ink: #f6ece0;
  --ink-dim: #cdbba9;
  --ink-faint: #93816f;

  --ember: #ff6a1f;
  --ember-bright: #ff8a2e;
  --ember-deep: #c92f1c;
  --gold: #ffb627;
  --gold-bright: #ffd166;

  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;

  --shadow-glow: 0 0 50px rgba(255, 106, 31, 0.28);
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.35);

  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;

  --ease: cubic-bezier(.22, .68, 0, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { 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;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-bright); text-decoration-color: rgba(255,182,39,0.4); }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; color: var(--ink-dim); }
ul, ol { padding-left: 1.2em; color: var(--ink-dim); }
li { margin-bottom: .5em; }
code { font-family: 'SFMono-Regular', Consolas, Menlo, monospace; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--gold); color: #1a1108; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Logo mark ---------- */
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo-mark--hero { width: 84px; height: 84px; margin: 0 auto 18px; filter: drop-shadow(0 0 24px rgba(255,138,46,0.55)); }
.logo-mark--footer { width: 40px; height: 40px; margin: 0 auto 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 700; text-decoration: none;
  border: none; border-radius: 999px; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--ember) 65%, var(--ember-deep));
  color: #1c1006;
  box-shadow: 0 4px 18px rgba(255, 106, 31, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(255, 106, 31, 0.5); }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1.5px solid var(--border-bright);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }
.btn-large { padding: 15px 30px; font-size: 1.05rem; }
.btn-small { padding: 8px 18px; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18, 13, 10, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.brand-word em { font-style: normal; color: var(--gold-bright); }

.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--ink-dim); text-decoration: none; font-weight: 600; font-size: .92rem; transition: color .15s; }
.main-nav a:hover { color: var(--gold-bright); }

.nav-cta { margin-left: 8px; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: transparent; border: 1px solid var(--border-bright);
  border-radius: 8px; cursor: pointer; margin-left: auto;
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .2s, opacity .2s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px 20px; gap: 14px;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .28s var(--ease), opacity .2s;
  }
  .main-nav.is-open { max-height: 360px; opacity: 1; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 90px 0 60px;
  background: radial-gradient(ellipse 90% 60% at 50% 100%, #2a1710 0%, var(--bg) 70%);
}
#emberCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-glow {
  position: absolute; left: 50%; top: 38%; width: 640px; height: 640px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,138,46,0.22) 0%, rgba(255,106,31,0) 70%);
  z-index: 0; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  font-family: var(--font-display); font-size: .82rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  background: linear-gradient(135deg, var(--gold-bright), var(--ember-bright) 55%, var(--ember-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
  text-shadow: 0 0 60px rgba(255, 106, 31, 0.25);
}
.hero-tagline {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  color: var(--ink); letter-spacing: .08em; margin-bottom: 20px;
}
.hero-hook { max-width: 560px; margin: 0 auto 34px; font-size: 1.08rem; color: var(--ink-dim); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.kicker {
  font-family: var(--font-display); font-size: .8rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ember-bright); margin-bottom: 10px; text-align: center;
}
.section-title { font-size: clamp(1.7rem, 4vw, 2.4rem); text-align: center; margin-bottom: 14px; }
.section-lead { text-align: center; max-width: 560px; margin: 0 auto 40px; font-size: 1.05rem; }

.callout-line {
  background: rgba(255, 106, 31, 0.08);
  border-left: 3px solid var(--ember);
  padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
}

/* ---------- Audience toggle (What is this?) ---------- */
.audience-toggle, .path-toggle {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px; max-width: fit-content; margin: 0 auto 36px;
}
.path-toggle { border-radius: var(--radius); margin: 18px 0; max-width: none; justify-content: flex-start; }
.toggle-btn {
  border: none; background: transparent; color: var(--ink-dim); font-weight: 700; font-family: var(--font-body);
  padding: 10px 20px; border-radius: 999px; cursor: pointer; font-size: .92rem;
  transition: background .18s, color .18s;
}
.path-toggle .toggle-btn { border-radius: var(--radius-sm); }
.toggle-btn.is-active {
  background: linear-gradient(135deg, var(--gold-bright), var(--ember));
  color: #1c1006;
}
.toggle-btn:not(.is-active):hover { color: var(--ink); }

.audience-panel { display: none; max-width: 680px; margin: 0 auto; }
.audience-panel.is-active { display: block; animation: fadeUp .35s var(--ease); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 700px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--ember), var(--gold));
  opacity: .4;
}
.timeline-step { display: flex; gap: 22px; padding-bottom: 40px; position: relative; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-node {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-card); border: 2px solid var(--border-bright);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--gold-bright);
  z-index: 1;
}
.timeline-content h3 { font-size: 1.15rem; margin-bottom: 6px; }
.timeline-content p { margin-bottom: 0; }
.timeline-step--finale .timeline-node--finale {
  background: linear-gradient(135deg, var(--gold-bright), var(--ember-deep));
  border-color: var(--gold);
  font-size: 1.4rem;
  box-shadow: 0 0 26px rgba(255, 182, 39, 0.5);
}
.timeline-step--finale .timeline-content h3 { color: var(--gold-bright); }
.timeline-step--finale .timeline-content { background: rgba(255, 182, 39, 0.06); border: 1px solid rgba(255, 182, 39, 0.25); border-radius: var(--radius); padding: 16px 18px; }

/* ---------- Progress tracker ---------- */
.progress-tracker {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 26px; max-width: 700px; margin: 0 auto 48px; box-shadow: var(--shadow-card);
}
.progress-bar-track {
  height: 14px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--border);
}
.progress-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--ember-deep), var(--ember), var(--gold-bright));
  border-radius: 999px; transition: width .4s var(--ease);
  box-shadow: 0 0 12px rgba(255, 138, 46, 0.6);
}
.progress-label { text-align: center; font-weight: 700; color: var(--gold-bright); margin: 10px 0 22px; font-family: var(--font-display); letter-spacing: .05em; }

.checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.check-item { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.check-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box {
  width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border-bright);
  flex-shrink: 0; position: relative; transition: background .15s, border-color .15s;
}
.check-item input:checked + .check-box {
  background: linear-gradient(135deg, var(--gold-bright), var(--ember));
  border-color: var(--gold);
}
.check-item input:checked + .check-box::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #1c1006; border-width: 0 2.5px 2.5px 0; transform: rotate(40deg);
}
.check-item input:focus-visible + .check-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.check-text { font-weight: 600; font-size: .92rem; color: var(--ink-dim); }
.check-item input:checked ~ .check-text { color: var(--ink); text-decoration: line-through; text-decoration-color: var(--ember); }

/* ---------- Guide steps (details/summary) ---------- */
.guide-steps { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.step, .faq-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.step summary, .faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; gap: 14px;
  font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.step summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker { display: none; }
.step summary:hover, .faq-item summary:hover { background: var(--bg-card-hover); }
.step-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--ember-deep));
  color: #1c1006; font-family: var(--font-display); font-weight: 700; font-size: .88rem;
  display: flex; align-items: center; justify-content: center;
}
.step-title { flex: 1; }
.faq-item summary { justify-content: space-between; }
.faq-item summary span:first-child { flex: 1; }

.step-chevron {
  flex-shrink: 0; width: 11px; height: 11px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg); transition: transform .22s var(--ease); margin-right: 2px;
}
details[open] > summary .step-chevron { transform: rotate(-135deg); }

.step-body, .faq-body { padding: 0 22px 24px 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.step-body :last-child, .faq-body :last-child { margin-bottom: 0; }

.tick-list { list-style: none; padding-left: 0; }
.tick-list li { padding-left: 26px; position: relative; }
.tick-list li::before {
  content: "🔥"; position: absolute; left: 0; top: -1px; font-size: .82em;
}
.step-list { padding-left: 22px; }
.step-list li::marker { color: var(--gold); font-weight: 700; }

.note-box {
  background: rgba(255, 182, 39, 0.08); border: 1px solid rgba(255, 182, 39, 0.25);
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: .93rem; color: var(--ink-dim);
}

.code-label { font-weight: 700; color: var(--ink); font-size: .92rem; margin-bottom: 8px; }
.code-block {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #0c0906; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 16px; overflow-x: auto;
}
.code-block code { color: var(--gold-bright); font-size: .88rem; white-space: nowrap; }
.inline-code {
  background: #0c0906; border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; font-size: .88em; color: var(--gold-bright);
}

.copy-btn {
  flex-shrink: 0; background: var(--bg-card); color: var(--ink-dim); border: 1px solid var(--border-bright);
  border-radius: 6px; padding: 6px 12px; font-size: .78rem; font-weight: 700; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.copy-btn:hover { color: var(--gold-bright); border-color: var(--gold); }
.copy-btn.is-copied { background: linear-gradient(135deg, var(--gold-bright), var(--ember)); color: #1c1006; border-color: transparent; }

.prompt-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.prompt-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 16px; margin: 10px 0;
}
.prompt-chip span:first-child { font-style: italic; color: var(--ink); font-size: .93rem; }

.trouble-box {
  margin-top: 24px; background: rgba(216, 57, 31, 0.08); border: 1px solid rgba(216, 57, 31, 0.35);
  border-radius: var(--radius); padding: 20px;
}
.trouble-title { font-weight: 800; color: var(--gold-bright); font-size: 1rem; }

.path-panel { display: none; }
.path-panel.is-active { display: block; animation: fadeUp .3s var(--ease); }

/* ---------- Idea generator ---------- */
.idea-box {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--bg-card); border: 1px dashed var(--border-bright); border-radius: var(--radius-lg);
  padding: 40px 30px;
}
.idea-display {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-bright);
  min-height: 3.6em; display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px; line-height: 1.4;
}
.idea-display.is-new { animation: ideaPop .4s var(--ease); }
@keyframes ideaPop { 0% { transform: scale(0.94); opacity: 0.4; } 100% { transform: scale(1); opacity: 1; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

/* ---------- House rule plaque ---------- */
.house-rule-section { padding: 60px 0 100px; }
.plaque {
  max-width: 640px; margin: 0 auto; text-align: center; position: relative;
  background: linear-gradient(160deg, #241811, #1a120c);
  border: 2px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  box-shadow: inset 0 0 0 1px rgba(255,182,39,0.08), var(--shadow-card);
}
.plaque::before, .plaque::after {
  content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); opacity: .5; top: 14px;
}
.plaque::before { left: 14px; }
.plaque::after { right: 14px; }
.plaque-eyebrow {
  font-family: var(--font-display); letter-spacing: .22em; text-transform: uppercase;
  color: var(--ember-bright); font-size: .82rem; margin-bottom: 12px;
}
.plaque-text { font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 1.6rem); color: var(--ink); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0; text-align: center; background: var(--bg-alt); }
.footer-tagline { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.footer-sub { color: var(--ink-faint); font-size: .88rem; margin-bottom: 0; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero { padding: 76px 0 50px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .progress-tracker { padding: 22px 18px; }
  .step summary, .faq-item summary { padding: 16px 16px; font-size: .95rem; }
  .step-body, .faq-body { padding: 0 16px 20px; padding-top: 16px; }
  .prompt-chip { flex-direction: column; align-items: flex-start; }
  .code-block { flex-direction: column; align-items: stretch; }
  .code-block .copy-btn { align-self: flex-end; }
}
