/* ════════════════════════════════════════════════════════════════
   Penworthy — static / content pages bundle (ClassWallet page etc.)
   Ported from design-reference/styles.css.
   ════════════════════════════════════════════════════════════════ */

/* ClassWallet content page */
.cw-hero {
  background: linear-gradient(150deg, #6B5BB0 0%, #8877C9 100%);
  border-radius: var(--pw-r-xl);
  color: #fff;
  padding: 56px 56px;
  position: relative;
  overflow: hidden;
}
.cw-step {
  background: #fff; border: 1px solid var(--pw-line); border-radius: var(--pw-r-lg);
  padding: 26px; position: relative; display: flex; flex-direction: column; gap: 10px;
}
.cw-step-num {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: #EFEEF9; color: #5E3F7A; font-family: var(--pw-display); font-weight: 700;
  font-size: 19px; display: flex; align-items: center; justify-content: center;
}
.cw-faq {
  border: 1px solid var(--pw-line); border-radius: var(--pw-r-md); background: #fff;
  overflow: hidden; transition: border-color .15s;
}
.cw-faq[open] { border-color: var(--pw-blue-tint-2); }
.cw-faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--pw-display); font-weight: 700; font-size: 17px; color: var(--pw-blue);
}
.cw-faq summary::-webkit-details-marker { display: none; }
.cw-faq summary .cw-faq-ic { flex-shrink: 0; transition: transform .2s; color: var(--pw-purple); }
.cw-faq[open] summary .cw-faq-ic { transform: rotate(45deg); }
.cw-faq-body { padding: 0 24px 22px; color: var(--pw-ink-2); font-size: 15.5px; line-height: 1.7; }

/* ── Small-screen polish ── */
@media (max-width: 640px) {
  .cw-hero { padding: 34px 24px; }
}

/* ════════════════════════════════════════════════════════════════
   Page-specific conversions (ClassWallet · How kits work · About · Help)
   Ported from design-reference/pages/{classwallet,howitworks,about,help}.jsx.
   Colours/radii come from --pw-* tokens; the ClassWallet brand purples
   (#EFEEF9 / #6B5BB0 / #4B3B82 / #D9CFF6) match the committed .cw-hero /
   .cw-step-num above and have no Penworthy token equivalent.
   ════════════════════════════════════════════════════════════════ */

/* ── Shared: SectionHead (SectionHead in home.jsx) ── */
.pw-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.pw-sec-head.is-center { flex-direction: column; text-align: center; }
.pw-sec-head.is-center .pw-sec-head-main { max-width: 640px; margin: 0 auto; }
.pw-sec-head .pw-eyebrow { margin-bottom: 10px; }
.pw-sec-head.is-center .pw-eyebrow { justify-content: center; }
.pw-sec-head-title { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.08; }
.pw-sec-head-sub { margin: 12px 0 0; color: var(--pw-ink-2); font-size: 16.5px; line-height: 1.6; max-width: 620px; }
.pw-sec-head.is-center .pw-sec-head-sub { margin-left: auto; margin-right: auto; }

/* ── Shared: marker highlight (Hl in home.jsx) ── */
.pw-hl { position: relative; display: inline-block; }
.pw-hl-t { position: relative; z-index: 1; }
.pw-hl-mark { position: absolute; left: -4px; right: -4px; bottom: 6px; height: 16px; background: var(--pw-yellow); z-index: 0; border-radius: 4px; }

/* ── Shared: PhotoFrame (home-sections.jsx) ── */
.pw-photo { position: relative; overflow: hidden; background: var(--pw-blue-tint); }
.pw-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pw-photo-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; color: var(--pw-ink-3); font-size: 14px; line-height: 1.5;
}

/* ── Shared: hero (How kits work · About) ── */
.pw-hero-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pw-hero-heading { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; color: var(--pw-blue); letter-spacing: -0.02em; }
.pw-hero-lede { margin-top: 20px; font-size: 18px; line-height: 1.65; color: var(--pw-ink-2); max-width: 500px; }
.pw-hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.pw-hero-media { position: relative; }
.pw-hero-sticker { position: absolute; z-index: 3; }

/* ── Shared: "What's inside" / values tile (home .pw-inside) ── */
.pw-inside {
  border-radius: var(--pw-r-lg); padding: 28px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px; min-height: 210px;
}
.pw-inside-ic { width: 54px; height: 54px; border-radius: 15px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: inherit; flex-shrink: 0; }
.pw-inside-t { font-family: var(--pw-display); font-weight: 700; font-size: 19px; color: inherit; }
.pw-inside-d { margin: 0; font-size: 14px; color: var(--pw-ink-2); line-height: 1.6; }
.pw-inside.tone-blue   { background: var(--pw-blue-tint);   color: #0565A5; }
.pw-inside.tone-green  { background: var(--pw-green-light); color: #2C7A52; }
.pw-inside.tone-yellow { background: var(--pw-yellow-light); color: #B98A2E; }
.pw-inside.tone-coral  { background: var(--pw-coral-light); color: #C0451E; }

/* ── Shared: grids used across the pages ── */
.pw-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pw-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Shared: CTA / link-out bands ── */
.pw-band {
  border-radius: var(--pw-r-xl); padding: 48px 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.pw-band.is-yellow      { background: var(--pw-yellow-light); }
.pw-band.is-blue-tint   { background: var(--pw-blue-tint); }
.pw-band.is-purple-tint { background: #EFEEF9; }
.pw-band-main { max-width: 560px; }
.pw-band-title { font-size: clamp(30px, 4vw, 40px); color: var(--pw-blue); line-height: 1.08; }
.pw-band-text { margin-top: 12px; font-size: 17px; color: var(--pw-ink-2); line-height: 1.6; max-width: 480px; }
.pw-band-note { margin-top: 20px; font-size: 13.5px; color: var(--pw-ink-3); }
.pw-band-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════════
   ClassWallet page
   ════════════════════════════════════════════════════════════════ */
.cw-hero-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; color: #D9CFF6; }
.cw-hero-deco-i { position: absolute; display: block; }
.cw-hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; position: relative; z-index: 1; }
.cw-hero-chip {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.16);
  border-radius: var(--pw-pill); padding: 7px 16px; margin-bottom: 20px;
}
.cw-hero-chip-txt { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.cw-hero-title { color: #fff; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.cw-hero-lede { color: rgba(255,255,255,.9); font-size: 18px; line-height: 1.65; margin-top: 18px; max-width: 520px; }
.cw-hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.cw-hero-media { display: flex; justify-content: center; }

.btn-cw-ghost { background: rgba(255,255,255,.16); color: #fff; }
.btn-cw-purple { background: #6B5BB0; color: #fff; }

/* Fact cards ("What is ClassWallet?") */
.cw-fact { background: #fff; border: 1px solid var(--pw-line); border-radius: var(--pw-r-lg); padding: 26px; }
.cw-fact-ic { width: 52px; height: 52px; border-radius: 14px; background: #EFEEF9; color: #6B5BB0; display: inline-flex; align-items: center; justify-content: center; }
.cw-fact-t { font-family: var(--pw-display); font-weight: 700; font-size: 18px; color: var(--pw-blue); margin-top: 16px; }
.cw-fact-d { margin: 8px 0 0; font-size: 14.5px; color: var(--pw-ink-2); line-height: 1.6; }

/* Steps */
.cw-step-head { display: flex; align-items: center; gap: 14px; }
.cw-step-t { font-family: var(--pw-display); font-weight: 700; font-size: 18px; color: var(--pw-blue); }
.cw-step-d { margin: 0; font-size: 15px; color: var(--pw-ink-2); line-height: 1.65; }
.cw-step-num.is-blue { background: var(--pw-blue-tint); color: var(--pw-blue); }

/* No-upfront green note */
.cw-note-green { display: flex; align-items: center; gap: 16px; background: var(--pw-green-light); border-radius: var(--pw-r-lg); padding: 18px 22px; margin-top: 20px; }
.cw-note-green-ic { color: #2C7A52; flex-shrink: 0; display: inline-flex; }
.cw-note-green p { margin: 0; font-size: 15px; color: var(--pw-ink-2); line-height: 1.6; }
.cw-note-green b { color: var(--pw-ink); }

/* FAQ */
.cw-faq-grid { display: grid; grid-template-columns: 0.9fr 1.6fr; gap: 48px; align-items: start; }
.cw-faq-rail { position: sticky; top: 102px; }
.cw-faq-rail .pw-eyebrow { color: #6B5BB0; }
.cw-faq-rail h2 { font-size: 34px; margin-top: 10px; }
.cw-faq-rail p { color: var(--pw-ink-2); font-size: 15.5px; line-height: 1.6; margin-top: 12px; }
.cw-faq-list { display: flex; flex-direction: column; gap: 12px; }

/* Link-out band */
.cw-linkout-main { max-width: 560px; }
.cw-linkout-logo { color: #4B3B82; }
.cw-linkout-title { font-size: 30px; margin-top: 18px; color: #4B3B82; line-height: 1.15; }
.cw-linkout-text { color: var(--pw-ink-2); font-size: 16px; line-height: 1.65; margin-top: 10px; max-width: 500px; }
.cw-linkout-actions { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════════
   How kits work page
   ════════════════════════════════════════════════════════════════ */
.pw-lines-band { background: var(--pw-bg-2); border-radius: var(--pw-r-xl); padding: 44px; }
.pw-kitline {
  border-radius: var(--pw-r-lg); padding: 22px 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pw-kitline-tag { font-size: 13.5px; color: var(--pw-ink-2); margin-top: 10px; line-height: 1.5; }
.pw-kitline.is-steam      { background: var(--pw-green-light); }
.pw-kitline.is-staysharp  { background: var(--pw-blue-tint); }
.pw-kitline.is-earlystart { background: var(--pw-yellow-light); }
.pw-kitline.is-phonics    { background: var(--pw-coral-light); }
.pw-kitline.is-language   { background: #EFEEF9; }
.pw-kitline.is-booksets   { background: var(--pw-blue-tint); }

/* ════════════════════════════════════════════════════════════════
   About page
   ════════════════════════════════════════════════════════════════ */
.pw-stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 28px; background: var(--pw-bg-2); border-radius: var(--pw-r-lg); }
.pw-stat-ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--pw-blue); flex-shrink: 0; }
.pw-stat-t { display: block; font-weight: 700; color: var(--pw-ink); font-size: 14.5px; }
.pw-stat-s { display: block; font-size: 13px; color: var(--pw-ink-3); font-weight: 500; }
.pw-story-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: 60px; align-items: center; }
.pw-story-p { margin-top: 16px; font-size: 17px; color: var(--pw-ink-2); line-height: 1.7; max-width: 520px; }

/* ════════════════════════════════════════════════════════════════
   Help page
   ════════════════════════════════════════════════════════════════ */
.pw-help-head { text-align: center; max-width: 620px; margin: 16px auto 0; }
.pw-help-head h1 { font-size: clamp(34px, 5vw, 48px); margin-top: 10px; }
.pw-help-head p { margin-top: 12px; font-size: 17px; color: var(--pw-ink-2); line-height: 1.6; }
.pw-help-head .pw-eyebrow { justify-content: center; }
.pw-help-contact-solo { display: flex; justify-content: center; }
.pw-help-contact { display: block; width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--pw-line); border-radius: var(--pw-r-md); padding: 24px 32px; text-align: center; box-shadow: var(--pw-shadow-sm); transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease; }
.pw-help-contact:hover { border-color: var(--pw-blue-tint-2); box-shadow: var(--pw-shadow); transform: translateY(-2px); }
.pw-help-contact-ic { color: var(--pw-blue); display: flex; justify-content: center; margin-bottom: 10px; }
.pw-help-contact-t { font-weight: 700; }
.pw-help-contact-v { color: var(--pw-blue); font-weight: 700; margin: 4px 0; }
.pw-help-contact-s { font-size: 13px; color: var(--pw-ink-3); }
.pw-help-grid { display: grid; grid-template-columns: 0.9fr 1.6fr; gap: 48px; align-items: start; margin-top: 56px; }
.pw-help-rail { position: sticky; top: 102px; }
.pw-help-rail h2 { font-size: 34px; margin-top: 10px; }
.pw-help-rail p { color: var(--pw-ink-2); font-size: 15.5px; line-height: 1.6; margin-top: 12px; max-width: 340px; }
.pw-help-hours { margin-top: 20px; background: var(--pw-yellow-light); border-radius: var(--pw-r-md); padding: 18px; max-width: 340px; }
.pw-help-hours-h { font-weight: 700; font-size: 14.5px; color: var(--pw-blue); display: flex; align-items: center; gap: 8px; }
.pw-help-hours-b { font-size: 13.5px; color: var(--pw-ink-2); margin-top: 6px; line-height: 1.6; }
.pw-help-groups { display: flex; flex-direction: column; gap: 36px; }
.pw-help-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pw-help-group-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--pw-blue-tint); color: var(--pw-blue); display: inline-flex; align-items: center; justify-content: center; }
.pw-help-group-head h3 { font-size: 21px; }
.pw-help-faqs { display: flex; flex-direction: column; gap: 12px; }
.pw-help-cta-btn { flex-shrink: 0; }

/* WYSIWYG answers (ACF wraps content in <p> via wpautop) sit flush in the panel. */
.cw-faq-body p { margin: 0 0 10px; }
.cw-faq-body p:last-child { margin-bottom: 0; }
.cw-faq-body a { color: var(--pw-blue); font-weight: 600; }

/* ── Small-screen polish ── */
@media (max-width: 900px) {
  .cw-faq-rail, .pw-help-rail { position: static; }
}
@media (max-width: 640px) {
  .pw-band { padding: 32px 24px; }
  .pw-lines-band { padding: 28px 22px; }
  .pw-stat-strip { padding: 20px; }
}

