/* =============================================
   theme.css - WetzelWisdom site theme
   Loaded on every page after styles.css, with class="ww" on <body>.

   1. Font, palette and type for every page. The legacy variables in
      styles.css (--blue, --gray-*) are re-pointed at the new palette, so
      existing components pick up the new colors without markup changes.
   2. Small restyles of shared legacy components (buttons, eyebrows,
      footer, FAQ).
   3. The h- layout components used by the redesigned pages (front page
      and /ai-103, body class "ww-new").
   ============================================= */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations'),
       url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2');
}

/* ---------- 1. font, palette, type ---------- */
body.ww {
  --ink:       #0f2235;
  --ink-soft:  #46596d;
  --action:    #0b63ce;
  --action-dk: #084a9b;
  --ai:        #5b3fb0;
  --mist:      #eef3f9;
  --line:      #d4dde8;
  --pass:      #1d7a4b;
  --weak:      #c27400;
  --weak-text: #8a5200;
  --weak-bg:   #fff4e1;

  /* legacy variables from styles.css */
  --blue:       #0b63ce;
  --blue-dark:  #084a9b;
  --blue-light: #e7f0fb;
  --gray-800:   #0f2235;
  --gray-600:   #46596d;
  --gray-400:   #7d8fa3;
  --gray-200:   #d4dde8;
  --gray-100:   #e9eff6;
  --gray-50:    #eef3f9;
  --radius:     8px;
  --radius-sm:  6px;

  font-family: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  font-stretch: 100%;
  color: var(--ink);
  line-height: 1.55;
}
.ww button, .ww input, .ww select, .ww textarea { font-family: inherit; }
.ww h1, .ww h2, .ww h3, .ww h4 { font-stretch: 108%; letter-spacing: -0.015em; }
.ww :focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-radius: 2px; }
.ww [hidden] { display: none !important; }
.h-nb { white-space: nowrap; }

/* ---------- 2. shared legacy components ---------- */
.ww .btn { border-radius: 6px; font-weight: 650; }
.ww .section-header h2 { font-weight: 750; letter-spacing: -0.02em; }
.ww .section-eyebrow { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 650; }
.ww .footer { background: var(--ink); }
.ww .footer a, .ww .footer-copy a { color: #9cc7ff; }
.ww .footer-copy a:hover { color: #fff; }
.ww code, .ww pre, .ww kbd { font-family: Consolas, 'Cascadia Mono', 'SFMono-Regular', Menlo, monospace; font-stretch: normal; }

/* ---------- 3. redesigned pages (body.ww-new) ---------- */
.ww-new { background: #fff; }
.ww-new main a { color: var(--action); }
.h-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.ww-new h1, .ww-new h2, .ww-new h3 { color: var(--ink); }
.ww-new h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.04;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.ww-new h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; font-weight: 750; margin: 0 0 10px; }
.ww-new h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 700; margin: 0 0 6px; }
.h-head { max-width: 640px; margin-bottom: 36px; }
.h-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

/* buttons */
.h-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: inherit; font-weight: 650; font-size: 1rem;
  border-radius: 6px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none;
}
.h-btn-primary { background: var(--action); color: #fff !important; }
.h-btn-primary:hover { background: var(--action-dk); text-decoration: none; }
.h-btn-primary:disabled { opacity: .7; cursor: wait; }
.h-btn-quiet { color: var(--action); border-color: var(--line); background: #fff; }
.h-btn-quiet:hover { border-color: var(--action); text-decoration: none; }

/* hero */
.h-hero { padding: 64px 0 72px; border-bottom: 1px solid var(--line); }
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.h-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; margin: 0 0 28px; }
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.h-price-line { margin: 0; color: var(--ink-soft); }
.h-price-line strong { color: var(--ink); }

/* bands */
.h-band { padding: 72px 0; background: var(--mist); }
.h-band-plain { background: #fff; }

/* exam panels and the compact test list */
.h-exam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.h-exam {
  --exam: var(--action);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--exam);
  border-radius: 8px;
  padding: 26px 26px 8px;
  scroll-margin-top: 80px;
}
.h-exam-ai { --exam: var(--ai); }
.h-exam-code {
  margin: 0 0 2px;
  font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1;
  font-weight: 850; font-stretch: 125%; letter-spacing: -0.035em;
  color: var(--exam);
}
.h-exam > p:not(.h-exam-code) { color: var(--ink-soft); margin: 8px 0 14px; }
.h-exam-links { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.h-exam-links a { font-weight: 600; }
.h-exam-links li:first-child a { color: var(--exam); }

.h-tests { border-top: 1px solid var(--line); margin: 0 -26px; }
.h-tests > summary {
  list-style: none; cursor: pointer;
  padding: 16px 26px; font-weight: 650;
  display: flex; justify-content: space-between; align-items: center;
}
.h-tests > summary::-webkit-details-marker { display: none; }
.h-tests > summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
.h-tests[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.h-tests > summary:hover { color: var(--exam); }

.h-test-list { list-style: none; margin: 0; padding: 0 26px 18px; }
.h-row {
  display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 4px 12px; align-items: center;
  padding: 11px 0; border-top: 1px solid var(--mist);
}
.h-row:first-child { border-top: 0; }
.h-row-num { font-weight: 800; font-stretch: 115%; color: var(--exam); font-variant-numeric: tabular-nums; }
.h-row-name { font-weight: 600; }
.h-row-meta { grid-column: 2; font-size: .85rem; color: var(--ink-soft); }
.h-row-action { grid-column: 3; grid-row: 1 / span 2; font-size: .9rem; font-weight: 650; white-space: nowrap; }
.h-row-action.is-locked { color: var(--ink-soft); font-weight: 500; }
.h-row-free .h-row-num { color: var(--pass); }
.h-row-msg { padding: 8px 0 4px; color: var(--ink-soft); }
.h-test-list-cta { padding: 14px 0 4px; border-top: 1px solid var(--line); }
.h-test-list-cta .h-btn { width: 100%; }

/* subscription band */
.h-plan { padding: 72px 0; background: var(--ink); color: #dbe6f2; }
.h-plan h2, .h-plan h3, .h-plan strong { color: #fff; }
.h-plan-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.h-plan-price { margin: 18px 0 22px; font-size: 1.1rem; }
.h-plan-price span { font-size: 4rem; font-weight: 850; font-stretch: 125%; letter-spacing: -0.035em; color: #fff; line-height: 1; margin-right: 6px; }
.h-plan-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.h-plan-list li { padding-left: 26px; position: relative; }
.h-plan-list li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 12px; height: 6px; border-left: 2px solid #6fd3a0; border-bottom: 2px solid #6fd3a0; transform: rotate(-45deg); }
.h-plan .h-btn-primary { background: #fff; color: var(--ink) !important; }
.h-plan .h-btn-primary:hover { background: #dbe6f2; }
.ww-new .h-plan a { color: #9cc7ff; }
.h-subscribed { font-weight: 650; color: #fff; margin: 0; }
.h-fine { font-size: .88rem; color: #a9bbcf; margin: 12px 0 0; }
.h-plan-steps { border-left: 1px solid #2c4560; padding-left: 40px; }
.h-steps { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 22px; }
.h-steps li { counter-increment: step; position: relative; padding-left: 48px; }
.h-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid #4d6a88; color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: .95rem;
}
.h-steps strong { display: block; margin-bottom: 2px; }

/* features */
.h-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; }
.h-features-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.h-feature { border-top: 2px solid var(--ink); padding-top: 16px; }
.h-feature p { color: var(--ink-soft); margin: 0 0 8px; }

/* exam overviews */
.h-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.h-about h2 { font-size: 1.5rem; }
.h-about h3 { margin-top: 26px; }
.h-about p { color: var(--ink-soft); margin: 0 0 14px; }
.h-about p strong { color: var(--ink); }
.h-domains { margin: 10px 0 0; display: grid; gap: 14px; }
.h-domains dt { font-weight: 650; display: flex; justify-content: space-between; gap: 12px; }
.h-domains dt span { color: var(--ink-soft); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.h-domains dd { margin: 2px 0 0; color: var(--ink-soft); font-size: .93rem; }

/* FAQ (reuses the existing details markup) */
.ww-new #faq .faq-list { display: block; column-count: 2; column-gap: 40px; max-width: none; }
.ww-new #faq .faq-item { break-inside: avoid; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; margin: 0; }
.ww-new #faq .faq-question { font-weight: 650; padding: 16px 0; }
.ww-new #faq .faq-answer { color: var(--ink-soft); padding: 0 0 16px; margin: 0; }

/* responsive */
@media (max-width: 900px) {
  .h-hero { padding: 40px 0 48px; }
  .h-hero-grid, .h-exam-grid, .h-plan-grid, .h-about-grid, .h-features, .h-features-3 { grid-template-columns: 1fr; }
  .ww-new #faq .faq-list { column-count: 1; }
  .h-hero-grid { gap: 36px; }
  .h-plan-grid { gap: 40px; }
  .h-plan-steps { border-left: 0; padding-left: 0; border-top: 1px solid #2c4560; padding-top: 32px; }
  .h-band, .h-plan { padding: 52px 0; }
}
@media (max-width: 520px) {
  .h-wrap { padding: 0 18px; }
  .h-actions .h-btn { width: 100%; }
  .h-exam { padding: 22px 18px 6px; }
  .h-tests { margin: 0 -18px; }
  .h-tests > summary, .h-test-list { padding-left: 18px; padding-right: 18px; }
  .h-plan .h-btn-primary { width: 100%; }
}

/* ---------- AI-103 page pieces (also reusable) ---------- */
/* hero: a code-completion question with the answer filled in */
.h-code {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 14px 14px 0 #ece7f8;
}
.h-code-head { padding: 22px 24px 16px; }
.h-code-title { margin: 0; font-weight: 700; font-stretch: 108%; color: var(--ai); }
.h-code-ctx { margin: 4px 0 0; color: var(--ink-soft); font-size: .95rem; }
.h-code-ctx code { font-size: .9em; color: var(--ink); white-space: nowrap; }
.h-code-block {
  margin: 0; padding: 18px 24px;
  background: #16152b; color: #e4e2f5;
  font-size: .9rem; line-height: 1.6; overflow-x: auto;
}
.h-code-block mark {
  background: #e9e1ff; color: #2b1a66;
  padding: 1px 5px; border-radius: 4px; font-weight: 700;
}
.h-code-why { margin: 0; padding: 16px 24px 20px; font-size: .92rem; color: var(--ink-soft); }
.h-code-why strong { color: var(--pass); }
.h-code-why code { font-size: .9em; color: var(--ink); }

/* key exam facts */
.h-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 0 0 8px; }
.h-facts dt { font-size: 2rem; line-height: 1; font-weight: 850; font-stretch: 125%; letter-spacing: -0.03em; color: var(--ai); }
.h-facts dd { margin: 6px 0 0; color: var(--ink-soft); font-size: .92rem; }

/* subscription card beside a test list */
.h-plan-card { background: var(--ink); color: #dbe6f2; border-radius: 8px; padding: 28px 28px 26px; }
.h-plan-card h3, .h-plan-card strong { color: #fff; }
.h-plan-card .h-plan-price { margin: 12px 0 18px; }
.h-plan-card .h-plan-price span { color: #fff; font-size: 3.4rem; font-weight: 850; font-stretch: 125%; letter-spacing: -0.035em; line-height: 1; margin-right: 6px; }
.h-plan-card .h-plan-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.h-plan-card .h-plan-list li { padding-left: 26px; position: relative; }
.h-plan-card .h-plan-list li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 12px; height: 6px; border-left: 2px solid #6fd3a0; border-bottom: 2px solid #6fd3a0; transform: rotate(-45deg); }
.h-plan-card .h-btn-primary { background: #fff; color: var(--ink) !important; width: 100%; }
.h-plan-card .h-btn-primary:hover { background: #dbe6f2; }
.ww-new .h-plan-card a { color: #9cc7ff; }

/* course timeline (a real sequence of days) */
.h-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: none; }
.h-timeline li { padding: 18px 22px 4px 0; border-top: 4px solid var(--ai); position: relative; }
.h-timeline li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.h-timeline h3 { color: var(--ai); }
.h-timeline p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* lab preview list */
.ww-new .lab-preview-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.ww-new .lab-preview {
  display: grid; grid-template-columns: 5.5em 1fr; gap: 2px 14px; align-items: start;
  padding: 16px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none;
}
.ww-new .lab-preview .lab-day { grid-row: 1 / span 2; font-weight: 700; font-stretch: 112%; color: var(--ai); background: none; padding: 0; font-size: .95rem; text-transform: none; letter-spacing: 0; }
.ww-new .lab-preview strong { font-weight: 700; }
.ww-new .lab-preview .lab-what { color: var(--ink-soft); font-size: .93rem; }

@media (max-width: 900px) {
  .h-timeline { grid-template-columns: 1fr 1fr; }
  .h-timeline li:nth-child(3) { padding-left: 0; border-left: 0; }
  .ww-new .lab-preview-list { grid-template-columns: 1fr; }
  .h-code { box-shadow: 0 1px 0 var(--line), 8px 8px 0 #ece7f8; }
}
@media (max-width: 520px) {
  .h-timeline { grid-template-columns: 1fr; }
  .h-timeline li, .h-timeline li + li { padding-left: 0; border-left: 0; }
  .h-facts dt { font-size: 1.7rem; }
  .h-code-head, .h-code-why { padding-left: 18px; padding-right: 18px; }
  .h-code-block { padding: 16px 18px; font-size: .8rem; }
}

/* ---------- 4. polish for pages that keep their own layout ---------- */
/* page headers (dashboard, Skill Rating) */
.ww .page-header { background: var(--mist); border-bottom: 1px solid var(--line); }
.ww .page-header h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.025em; color: var(--ink); }
.ww .sr-eyebrow { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 650; color: var(--action); }

/* legal pages */
.ww .legal-doc h1, .ww .legal-doc h2, .ww .legal-doc h3 { color: var(--ink); }
.ww .legal-doc h1 { font-weight: 800; font-stretch: 112%; letter-spacing: -0.025em; }
.ww .legal-doc a { color: var(--action); }

/* labs page */
.ww .labs-header { text-align: left; margin-bottom: 48px; }
.ww .labs-header p { margin: 0; max-width: 44em; color: var(--ink-soft); }
.ww .labs-eyebrow { background: none; padding: 0; text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 650; color: var(--action); margin-bottom: 10px; }
.ww .labs-header h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.025em; line-height: 1.05; color: var(--ink); }
.ww .store-cta { justify-content: flex-start; }
.ww .store-btn { border-radius: 6px; font-weight: 650; }
.ww .store-btn.live { background: var(--action); }
.ww .store-btn.live:hover { background: var(--action-dk); }
.ww .cert-header { border-bottom: 1px solid var(--line); }
.ww .cert-badge { background: var(--ink); box-shadow: none; border-radius: 8px; }
.ww .cert-badge-img { display: none; }
.ww .cert-info h2 { color: var(--ink); font-weight: 750; font-stretch: 108%; }
.ww .cert-info p { color: var(--ink-soft); }
.ww .step-card, .ww .video-card, .ww .domain-row, .ww .req-box { border-color: var(--line); border-radius: 8px; }
.ww .step-card .step-num { background: var(--action); color: #fff; font-size: .95rem; opacity: 1; }
.ww .step-card h3, .ww .video-card .video-info h3, .ww .domain-name { color: var(--ink); }
.ww .req-box a { color: var(--action); }

/* dashboard */
.ww .sub-status-banner { border-color: var(--line); border-radius: 8px; }
.ww .sub-status-banner strong { color: var(--ink); }
