/* ===========================================================================
   Letter League — page redesign
   Source of truth: Downloads/letter-league_7.html + letter-league-plan.md
   ---------------------------------------------------------------------------
   Fidelity-first port of the standalone mockup. ALL rules are scoped under
   `.ll-redesign` (CSS nesting) so the mockup's generic class names (.btn,
   .eyebrow, .section, .container, .field, .display) do NOT leak into the
   global site header/footer. Brand colour vars alias the global tokens
   injected by master.cshtml so siteConfig overrides still flow through.
   Section/banner/persona photos are set inline from CMS media in the view.
   =========================================================================== */

.ll-redesign {
  --page-primary: var(--color-primary, #F272A8);
  --page-anchor: var(--color-anchor, #7A2232);
  --page-surface: var(--color-surface, #F7F2E8);
  --page-ink: var(--color-ink, #2A1A14);
  --page-accent-muted: var(--color-accent-muted, #FFD8E4);
  --page-brand-accent: var(--color-brand-accent, #E8845A);
  --page-accent: var(--color-accent, #D4953A);
  --page-brand-accent-hover: #9C4722;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, sans-serif;
  --script: 'Caveat', cursive;
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  font-family: var(--sans);
  color: var(--page-ink);
  background: var(--page-surface);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;

  & img { max-width: 100%; display: block; }
  & a { color: inherit; text-decoration: none; }

  .display { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }
  .display em { font-style: italic; color: var(--page-primary); }
  .eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem; font-weight: 600; color: var(--page-anchor); }
  .section { padding: clamp(64px, 9vw, 120px) var(--gutter); }
  .container { max-width: var(--maxw); margin: 0 auto; }
  .section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
  .section-head .display { font-size: clamp(34px, 5vw, 58px); margin: 18px 0 14px; }
  .section-head p { font-size: 17px; color: rgba(42,26,20,0.75); margin: 0; }

  .btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; border: none; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease; }
  .btn:hover { transform: translateY(-2px); }
  .btn--primary { background: var(--page-anchor); color: var(--page-surface); }
  .btn--primary:hover { background: var(--page-ink); }
  .btn--accent { background: var(--page-brand-accent); color: var(--page-surface); }
  .btn--accent:hover { background: var(--page-brand-accent-hover); color: var(--page-surface); }
  .btn--page-primary { background: var(--color-primary); color: var(--color-on-primary); }
  .btn--page-primary:hover { background: color-mix(in srgb, var(--color-primary) 88%, var(--color-ink)); color: var(--color-on-primary); }
  .btn .arr { transition: transform 0.2s ease; }
  .btn:hover .arr { transform: translateX(4px); }

  /* HERO — full-bleed banner + editorial deck below */
  .hero-banner { width: 100%; height: clamp(320px, 50vw, 560px); background-size: cover; background-position: center; position: relative; }
  .hero-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,26,20,0) 60%, rgba(42,26,20,0.25) 100%); }
  .hero-deck { padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(36px, 5vw, 64px); background: var(--page-surface); }
  .hero-deck-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; }
  .hero-deck-left { max-width: 560px; }
  .hero-deck h1 { font-family: var(--serif); font-size: clamp(46px, 7vw, 82px); line-height: 0.98; margin: 18px 0 0; letter-spacing: -0.018em; color: var(--page-primary); font-style: normal; }
  .hero-deck-right p { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: rgba(42,26,20,0.78); margin: 0 0 28px; }
  .hero-meta { display: flex; align-items: center; justify-content: space-between; max-width: var(--maxw); margin: clamp(40px, 6vw, 64px) auto 0; border-top: 1px solid rgba(42,26,20,0.18); padding-top: 22px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(42,26,20,0.6); }
  .hero-meta strong { color: var(--page-anchor); font-weight: 600; }
  @media (max-width: 880px) {
    .hero-deck-inner { grid-template-columns: 1fr; gap: 32px; align-items: start; }
    .hero-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  }

  /* WHO IS THIS FOR — photo bg, white cards floating */
  .personas { position: relative; padding: clamp(72px, 10vw, 130px) var(--gutter); background-size: cover; background-position: center; background-attachment: fixed; color: var(--page-surface); }
  .personas .section-head .display { color: var(--page-surface); }
  .personas .section-head .display em { color: var(--page-accent-muted); }
  .personas .section-head p { color: rgba(247,242,232,0.85); }
  .personas .eyebrow { color: var(--page-accent-muted); }
  .persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: var(--maxw); margin: 0 auto; }
  .persona { background: #FFFFFF; border-radius: 10px; padding: 30px 26px 32px; position: relative; color: var(--page-ink); transition: transform 0.25s ease, box-shadow 0.25s ease; box-shadow: 0 18px 40px -22px rgba(42,26,20,0.4); }
  .persona:hover { transform: translateY(-4px); box-shadow: 0 30px 55px -28px rgba(42,26,20,0.5); }
  .persona-num { position: absolute; top: 24px; right: 28px; font-family: var(--serif); font-style: italic; font-size: 32px; color: var(--page-accent); line-height: 1; }
  .persona-eyebrow { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; color: var(--page-primary); margin-bottom: 36px; }
  .persona h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--page-primary); margin: 0 0 12px; line-height: 1.15; }
  .persona p { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(42,26,20,0.78); }
  @media (max-width: 980px) { .persona-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 520px) { .persona-grid { grid-template-columns: 1fr; } }

  /* WHAT YOU'LL LEARN — module cards */
  .learn { background: var(--page-surface); }
  .learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .module { background: var(--page-surface); border: 1px solid rgba(42,26,20,0.12); border-radius: 12px; padding: 36px 30px; position: relative; transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .module:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(42,26,20,0.25); }
  .module-num { font-family: var(--serif); font-style: italic; font-size: 42px; line-height: 1; color: var(--page-primary); margin-bottom: 18px; }
  .module h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--page-ink); margin: 0 0 12px; line-height: 1.2; }
  .module p { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(42,26,20,0.78); }
  @media (max-width: 900px) { .learn-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

  /* BUILD YOUR OWN SIDE HUSTLE — editorial signature */
  .editorial { background: var(--page-brand-accent); color: var(--page-ink); position: relative; overflow: hidden; padding: clamp(72px, 10vw, 130px) var(--gutter); }
  .editorial::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at top right, rgba(247,242,232,0.12) 0%, transparent 60%); pointer-events: none; }
  .editorial-inner { max-width: var(--maxw); margin: 0 auto; position: relative; }
  .editorial-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(40px, 6vw, 72px); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(42,26,20,0.65); }
  .editorial-topbar .left { display: flex; align-items: center; gap: 10px; }
  .editorial-topbar .left::before { content: '✦'; color: var(--page-surface); font-size: 14px; }
  .editorial-topbar strong { color: var(--page-anchor); font-weight: 600; }
  .editorial-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
  .editorial-text h2 { font-family: var(--serif); font-size: clamp(44px, 6vw, 78px); line-height: 0.98; letter-spacing: -0.01em; color: var(--page-surface); margin: 0 0 12px; }
  .editorial-text h2 em { font-style: italic; color: var(--page-surface); position: relative; display: inline-block; z-index: 1; }
  .editorial-text h2 em::before { content: ''; position: absolute; inset: -16% -12% -16% -12%; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'><ellipse cx='100' cy='50' rx='92' ry='40' fill='none' stroke='%237A2232' stroke-width='2.5' stroke-linecap='round' stroke-dasharray='0' transform='rotate(-3 100 50)'/></svg>"); background-size: 100% 100%; background-repeat: no-repeat; z-index: -1; pointer-events: none; }
  .editorial-subhead { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 24px); color: var(--page-anchor); margin: 8px 0 26px; line-height: 1.3; }
  .editorial-text p { font-size: 16px; line-height: 1.65; color: rgba(42,26,20,0.82); margin: 0 0 22px; max-width: 480px; }
  .editorial-list { list-style: none; padding: 0; margin: 0 0 28px; max-width: 480px; }
  .editorial-list li { position: relative; padding: 12px 0 12px 30px; font-size: 15.5px; color: var(--page-ink); border-bottom: 1px solid rgba(42,26,20,0.2); line-height: 1.4; }
  .editorial-list li:last-child { border-bottom: none; }
  .editorial-list li::before { content: '→'; position: absolute; left: 0; top: 12px; color: var(--page-surface); font-weight: 600; }
  .editorial-closer { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--page-ink); line-height: 1.4; margin: 0 0 6px; max-width: 460px; }
  .editorial-closer strong { font-weight: 400; font-style: normal; color: var(--page-anchor); display: block; margin-top: 6px; }
  .editorial-photo { position: relative; transform: rotate(1.2deg); transition: transform 0.4s ease; }
  .editorial-photo:hover { transform: rotate(0deg); }
  .editorial-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; box-shadow: 0 30px 60px -20px rgba(42,26,20,0.4); display: block; }
  .editorial-photo .sticker { position: absolute; bottom: 24px; left: -28px; background: var(--page-surface); padding: 14px 22px 16px; box-shadow: 0 12px 30px -8px rgba(42,26,20,0.3); transform: rotate(-4deg); font-family: var(--script); font-size: 22px; color: var(--page-anchor); line-height: 1.1; white-space: nowrap; border-radius: 2px; }
  .editorial-photo .sticker em { font-family: var(--sans); font-style: normal; font-size: 12px; color: rgba(42,26,20,0.5); margin-left: 8px; letter-spacing: 0.04em; }
  .editorial-photo .corner-num { position: absolute; top: -18px; right: -12px; background: var(--page-anchor); color: var(--page-surface); font-family: var(--serif); font-style: italic; font-size: 20px; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transform: rotate(8deg); box-shadow: 0 10px 24px -8px rgba(42,26,20,0.35); }
  .editorial-footnotes { display: flex; justify-content: space-between; margin-top: clamp(40px, 5vw, 56px); font-size: 12px; color: rgba(42,26,20,0.6); font-style: italic; border-top: 1px solid rgba(42,26,20,0.22); padding-top: 18px; }
  .editorial-footnotes .foot-left::before { content: '† '; color: var(--page-surface); }
  @media (max-width: 880px) {
    .editorial-grid { grid-template-columns: 1fr; }
    .editorial-photo { max-width: 440px; margin: 0 auto; transform: rotate(1.5deg); }
    .editorial-photo .sticker { left: 16px; bottom: 18px; }
    .editorial-footnotes { flex-direction: column; gap: 8px; }
  }

  /* HOW IT WORKS — 4 photo cards (tint+photo composed inline per card) */
  .how { background: var(--page-surface); position: relative; padding-bottom: clamp(40px, 5vw, 64px); }
  .how-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.5vw, 32px); max-width: var(--maxw); margin: 0 auto; }
  .how-card-v { display: flex; flex-direction: column; }
  .how-card-v .visual { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background-size: cover; background-position: center; box-shadow: 0 18px 40px -22px rgba(42,26,20,0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-bottom: 24px; }
  .how-card-v:hover .visual { transform: translateY(-4px); box-shadow: 0 26px 50px -22px rgba(42,26,20,0.4); }
  .how-card-v .big-num { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--sans); font-weight: 500; font-size: clamp(80px, 9vw, 120px); color: var(--page-surface); line-height: 1; letter-spacing: -0.04em; z-index: 1; text-shadow: 0 4px 24px rgba(42,26,20,0.5); }
  .how-card-v .step-label { font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 600; color: var(--page-anchor); margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
  .how-card-v .step-label::before { content: ''; width: 22px; height: 1px; background: var(--page-primary); }
  .how-card-v h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2vw, 26px); color: var(--page-ink); margin: 0 0 12px; line-height: 1.15; }
  .how-card-v h3 em { font-style: italic; color: var(--page-primary); }
  .how-card-v p { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(42,26,20,0.78); }
  @media (max-width: 980px) { .how-cards { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
  @media (max-width: 540px) { .how-cards { grid-template-columns: 1fr; max-width: 380px; } }

  /* FAQ */
  .faq { background: var(--page-surface); padding-top: clamp(40px, 5vw, 64px); }
  .faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid rgba(42,26,20,0.14); }
  .faq-item { border-bottom: 1px solid rgba(42,26,20,0.14); }
  .faq-q { width: 100%; background: none; border: none; text-align: left; padding: 26px 0; font-family: var(--sans); font-size: 18px; font-weight: 500; color: var(--page-ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; line-height: 1.4; }
  .faq-q .ico { font-family: var(--sans); font-size: 24px; color: var(--page-primary); font-weight: 300; transition: transform 0.2s ease; flex-shrink: 0; }
  .faq-item[open] .faq-q .ico { transform: rotate(45deg); }
  .faq-a { padding: 0 0 26px; font-size: 15.5px; line-height: 1.6; color: rgba(42,26,20,0.78); max-width: 720px; }

  /* APPLY FORM */
  .apply { background: var(--page-accent-muted); }
  .apply-inner { max-width: 760px; margin: 0 auto; background: var(--page-surface); padding: clamp(36px, 5vw, 56px); border-radius: 14px; box-shadow: 0 30px 60px -32px rgba(122,34,50,0.25); }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .form-grid .full { grid-column: 1 / -1; }
  .field { display: flex; flex-direction: column; }
  .field label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; color: var(--page-anchor); margin-bottom: 8px; }
  .field input, .field select, .field textarea { font-family: var(--sans); font-size: 15px; padding: 13px 14px; border: 1px solid rgba(42,26,20,0.18); border-radius: 8px; background: var(--page-surface); color: var(--page-ink); transition: border-color 0.18s ease, box-shadow 0.18s ease; }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--page-primary); box-shadow: 0 0 0 3px rgba(242,114,168,0.18); }
  .field textarea { min-height: 110px; resize: vertical; }
  .apply-submit { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
  .apply-submit small { color: rgba(42,26,20,0.6); font-size: 12.5px; }
  @media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
}
