/* PAL home — visual match for the Progressive Adaptive Learning handoff. */
body.pal-marketing {
  background: #fbead8 !important;
  color: #172a33;
}

.pal-home {
  --paper: #fbead8;
  --ink: #172a33;
  --navy: #0b2b45;
  --green: #28543a;
  --maroon: #7a1f1b;
  --gold: #b58a4f;
  color: var(--ink);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.52;
}
.pal-home h1,
.pal-home h2,
.pal-home h3,
.pal-home p { margin-top: 0; }
.pal-home a { color: inherit; }
.pal-home a:focus-visible { outline: 3px solid var(--maroon); outline-offset: 4px; border-radius: 3px; }
.palh-hero-grid,
.palh-section,
.palh-dash,
.palh-cta-panel {
  width: min(100% - 3.5rem, 1220px);
  margin-inline: auto;
}
.palh-hero { position: relative; overflow: hidden; padding: 3.15rem 0 3.55rem; }
.palh-hero:before {
  content: "";
  position: absolute;
  width: 720px;
  height: 540px;
  border-radius: 50%;
  right: -7rem;
  top: 0;
  background: radial-gradient(ellipse at 54% 48%, rgba(253,224,195,.54), rgba(253,224,195,0) 70%);
  pointer-events: none;
}
.palh-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  align-items: center;
}
.palh-hero-copy { position: relative; z-index: 1; padding: 1.2rem 0; }
.palh-eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .9rem;
  color: #78522e;
  font: bold .76rem Arial, Helvetica, sans-serif;
  letter-spacing: .1em;
}
.palh-badge {
  display: inline-block;
  flex: none;
  padding: .35rem .5rem;
  border-radius: 4px;
  background: #89623d;
  color: #fff8ee;
  letter-spacing: .035em;
}
.palh-hero h1 {
  margin: 0 0 .5rem;
  font-size: clamp(3.1rem, 4.85vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -.044em;
  font-weight: 500;
}
.palh-hero h1 > span { display: block; white-space: nowrap; }
.palh-hero h1 > span:first-child { color: var(--maroon); }
.palh-hero h1 > span:last-child { color: var(--green); white-space: normal; }
.palh-final { white-space: nowrap; }
.palh-promise {
  margin: .3rem 0 .82rem;
  padding-left: .8rem;
  border-left: 3px solid var(--gold);
  color: var(--navy);
  font-size: clamp(1.5rem, 2.25vw, 2rem);
  line-height: 1.18;
}
.palh-promise strong { color: var(--maroon); font-weight: 500; }
.palh-lead { max-width: 560px; margin-bottom: 1.45rem; font-size: 1.14rem; line-height: 1.53; color: #1d2b2e; }
.palh-benefits { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .45rem; max-width: 565px; }
.palh-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 94px;
  padding: .38rem .25rem;
  gap: .13rem;
  background: rgba(255,249,241,.86);
  border: 1px solid #e7ccb0;
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(79,51,31,.13);
  text-align: center;
}
.palh-pill strong { font-size: .88rem; line-height: 1.15; font-weight: bold; }
.palh-pill-icon { color: var(--maroon); font-size: 1.5rem; line-height: 1; }
.palh-pill:nth-child(even) .palh-pill-icon { color: var(--green); }
.palh-pill-doubt { border-color: #c69779; background: #fff5e8; }
.palh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; margin-top: 1.25rem; }
.palh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-height: 51px;
  padding: .75rem 1.15rem;
  border-radius: 6px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 1rem;
  font-weight: bold;
  border: 1px solid transparent;
  box-shadow: 0 6px 11px rgba(60,38,25,.16);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.palh-button:hover { transform: translateY(-2px); box-shadow: 0 9px 16px rgba(60,38,25,.2); color: #fff !important; }
.palh-button span { font-family: Arial, sans-serif; font-size: 1.3rem; line-height: 1; font-weight: 400; }
.palh-button-maroon { background: linear-gradient(135deg, #862c25, #5f1717); }
.palh-button-maroon:hover { background: #5f1717; }
.palh-button-green { background: linear-gradient(135deg, #315e3d, #1e402c); }
.palh-button-green:hover { background: #1e402c; }
.palh-note { margin: .72rem 0 0; color: #6a6260; font-size: .84rem; }
.palh-art { position: relative; z-index: 0; margin: -1.8rem -3rem -2.2rem -2.2rem; min-width: 0; }
.palh-art img { width: 100%; max-height: 630px; object-fit: contain; filter: drop-shadow(0 15px 17px rgba(73,41,19,.13)); }

.palh-section { padding: 3.9rem 0; }
.palh-title {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 auto 1.55rem;
  color: var(--ink);
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.palh-title:before,
.palh-title:after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, #d4a877 72%, #a9783c); }
.palh-title:after { transform: rotate(180deg); }
.palh-title span { display: inline-flex; align-items: center; gap: .7rem; }
.palh-title span:before,
.palh-title span:after { content: "◆"; color: #a9773b; font-family: Arial, sans-serif; font-size: .58rem; }
.palh-section-lead { margin: -.55rem auto 1.55rem; max-width: 760px; text-align: center; color: #4e5755; font-size: 1.03rem; }
.palh-levels { padding-top: 2.55rem; }
.palh-level-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.palh-level {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 1.05rem;
  min-height: 191px;
  padding: 1.05rem 1.25rem;
  background: linear-gradient(150deg, rgba(255,251,245,.98), rgba(255,246,235,.88));
  border: 1px solid #e7c7a8;
  border-radius: 10px;
  box-shadow: 0 7px 14px rgba(105,63,34,.1);
}
.palh-level:nth-child(4) { grid-column: 2 / span 2; }
.palh-level:nth-child(5) { grid-column: 4 / span 2; }
.palh-level-art {
  flex: 0 0 83px;
  display: grid;
  place-items: center;
  width: 83px;
  height: 83px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, #fffdf8, #f6e6d4);
  box-shadow: inset 0 0 0 1px #efdbc7, 0 6px 9px rgba(62,40,21,.09);
}
.palh-level-art svg { width: 76px; height: 76px; filter: drop-shadow(0 3px 2px rgba(74,47,25,.14)); }
.palh-level-label { color: var(--maroon); font-family: Arial, Helvetica, sans-serif; font-weight: 780; font-size: .72rem; letter-spacing: .1em; }
.palh-level h3 { margin: .16rem 0 .48rem; color: #142b34; font-size: 1.35rem; line-height: 1.13; }
.palh-level p { margin: 0; color: #3d494b; font-size: .92rem; line-height: 1.36; }
.palh-level-featured { border-color: #ba9a74; background: linear-gradient(130deg,#fff6e8,#f8ebd8); }
.palh-section-note { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 1.55rem 0 0; color: var(--green); text-align: center; font-weight: bold; font-size: .96rem; }
.palh-section-note span { color: var(--maroon); }
.palh-how { padding-top: 2.5rem; }
.palh-how-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .8rem; }
.palh-how-card {
  position: relative;
  min-height: 225px;
  padding: 1.2rem .95rem;
  background: #fff9f1;
  border: 1px solid #e7c8a9;
  border-radius: 9px;
  box-shadow: 0 7px 13px rgba(105,63,34,.1);
}
.palh-how-card:not(:last-child):after {
  content: "→";
  position: absolute;
  z-index: 2;
  right: -.8rem;
  top: 49%;
  color: var(--maroon);
  font-family: Arial, sans-serif;
  font-size: 1.15rem;
}
.palh-how-number {
  position: absolute;
  right: .95rem;
  top: .9rem;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  font: bold .78rem Arial, sans-serif;
}
.palh-how-card:nth-child(even) .palh-how-number { background: var(--green); }
.palh-how-symbol {
  display: grid;
  place-items: center;
  width: 59px;
  height: 59px;
  margin-bottom: .65rem;
  color: var(--maroon);
  background: #f9e9d4;
  border: 1px solid #e8c8a7;
  border-radius: 12px;
  box-shadow: 0 5px 10px rgba(92,54,26,.1);
  font-size: 2.1rem;
  line-height: 1;
}
.palh-how-card:nth-child(even) .palh-how-symbol { color: var(--green); }
.palh-how-symbol svg { width: 42px; height: 42px; }
.palh-how-card h3 { margin: 0 0 .38rem; font-size: 1.08rem; line-height: 1.18; color: #162b33; }
.palh-how-card p { margin: 0; color: #3f4b4e; font-size: .89rem; line-height: 1.42; }
.palh-progress { padding-top: 2.5rem; }
.palh-progress-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: clamp(2rem,5vw,5rem);
  padding: 1.65rem 2rem;
  background: linear-gradient(145deg,rgba(255,250,242,.88),rgba(252,235,217,.74));
  border: 1px solid #e9c9a9;
  border-radius: 12px;
  box-shadow: 0 8px 19px rgba(104,61,31,.09);
}
.palh-progress-copy h3 { margin: 0 0 .55rem; color: var(--green); font-size: 1.65rem; font-weight: 500; }
.palh-progress-copy > p { margin: 0 0 1.05rem; font-size: 1.03rem; color: #354447; }
.palh-points { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.palh-points li { display: flex; align-items: flex-start; gap: .65rem; font-size: .93rem; line-height: 1.46; color: #354447; }
.palh-points li > span:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  height: 22px;
  margin-top: .1rem;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: .85rem;
}
.palh-points strong { color: var(--maroon); }
.palh-evidence { padding: 1.4rem; background: #fffdf8; border: 1px solid #e0c5a8; border-radius: 10px; box-shadow: 0 7px 16px rgba(61,42,28,.09); }
.palh-evidence-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #e8d8c6;
  color: var(--maroon);
  font: bold .77rem Arial, Helvetica, sans-serif;
  letter-spacing: .08em;
}
.palh-example { color: #68716c; font: normal .77rem Georgia, serif; letter-spacing: 0; }
.palh-answers { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .42rem; margin: 1rem 0; }
.palh-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  min-height: 85px;
  padding: .4rem .2rem;
  border-radius: 6px;
  border: 1px solid transparent;
  text-align: center;
}
.palh-chip b { font: bold 1.2rem Arial, Helvetica, sans-serif; line-height: 1; }
.palh-chip small { font: bold .68rem/1.1 Arial, Helvetica, sans-serif; }
.palh-chip-own { background: #e8f0e6; border-color: #bfd2bb; color: #245139; }
.palh-chip-fix { background: #f9ebd7; border-color: #ead2ae; color: #81551f; }
.palh-chip-review { background: #f8e8e4; border-color: #e8ccc3; color: #812d2a; }
.palh-result { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .8rem .95rem; border-radius: 5px; background: #f7ebdc; }
.palh-result div { display: flex; flex-direction: column; }
.palh-result strong { color: var(--green); font-size: 1.8rem; line-height: 1; }
.palh-result strong span { color: #7d7568; font-size: .8em; font-weight: 400; }
.palh-result small { margin-top: .2rem; font-size: .77rem; color: #4b5653; }
.palh-unlock { border: 1px solid #aac6a8; background: #e8f1e6; color: var(--green); padding: .35rem .52rem; border-radius: 4px; font: bold .75rem Arial, Helvetica, sans-serif; text-align: center; }
.palh-evidence > p { margin: .7rem 0 0; color: #5c625d; font-size: .79rem; line-height: 1.36; }
.palh-topics { padding-top: 2.5rem; }
.palh-topic-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.palh-topic {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 93px;
  padding: .85rem 1.05rem;
  background: #fff9f1;
  border: 1px solid #e7c8a9;
  border-radius: 9px;
  box-shadow: 0 6px 11px rgba(105,63,34,.08);
  text-decoration: none !important;
  transition: transform .2s ease, border-color .2s ease;
}
.palh-topic:hover { transform: translateY(-2px); border-color: var(--green); color: inherit; }
.palh-topic-icon {
  flex: 0 0 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #deb991;
  border-radius: 10px;
  background: #f8e7d2;
  color: var(--maroon);
  font-size: 1.17rem;
  font-weight: bold;
}
.palh-topic:nth-child(even) .palh-topic-icon { background: #e7eee3; border-color: #b5c9b0; color: var(--green); }
.palh-topic small { display: block; margin-bottom: .18rem; color: #6e655e; font: bold .7rem Arial, Helvetica, sans-serif; letter-spacing: .025em; text-transform: uppercase; }
.palh-topic strong { display: block; color: var(--ink); font-size: 1.18rem; line-height: 1.22; }
.palh-topic-arrow { margin-left: auto; color: var(--green); font: 1.5rem Arial, sans-serif; }
.palh-browse {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 1.4rem auto 0;
  color: var(--maroon) !important;
  font-weight: bold;
  font-size: .97rem;
  text-decoration: none !important;
  border-bottom: 1px solid currentColor;
}
.palh-browse:hover { color: var(--green) !important; }
.palh-course { margin-top: 2rem; }
.palh-course h3 { margin: 0 0 .8rem; color: var(--navy); font-size: 1.35rem; font-weight: 500; }
.palh-chapter { margin: 1rem 0 .45rem; color: #6e655e; font: bold .72rem Arial, Helvetica, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.palh-cta { padding: 0 0 2.7rem; }
.palh-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 238px;
  padding: 2rem 2.3rem;
  background: radial-gradient(ellipse at 85% 100%, rgba(225,183,142,.47), transparent 60%), #fff3e5;
  border: 1px solid #dfba96;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(94,57,32,.13);
  overflow: hidden;
}
.palh-kicker { display: block; margin-bottom: .4rem; color: var(--maroon); font-family: Arial, Helvetica, sans-serif; font-size: .78rem; font-weight: 750; letter-spacing: .115em; }
.palh-cta-panel h2 { max-width: 610px; margin: 0 0 .32rem; color: var(--ink); font-size: clamp(1.65rem,3vw,2.35rem); font-weight: 500; line-height: 1.13; }
.palh-cta-panel p { max-width: 570px; margin: 0 0 .8rem; color: #3e4b4d; }
.palh-cta-panel .palh-button { min-height: 43px; padding: .55rem 1rem; font-size: .92rem; }
.palh-stair { flex: 0 0 340px; display: flex; align-items: end; justify-content: center; gap: .5rem; height: 158px; border-bottom: 2px solid rgba(91,85,67,.25); }
.palh-stair span { display: grid; place-items: start center; width: 48px; border-radius: 6px 6px 0 0; border: 1px solid rgba(64,55,36,.22); box-shadow: 4px 6px 8px rgba(64,55,36,.1); color: #fff8ee; }
.palh-stair span b { margin-top: .3rem; font: bold 1rem Georgia, serif; }
.palh-stair span:nth-child(1) { height: 51px; background: #b57e4f; }
.palh-stair span:nth-child(2) { height: 72px; background: #9e5639; }
.palh-stair span:nth-child(3) { height: 94px; background: #7a1f1b; }
.palh-stair span:nth-child(4) { height: 118px; background: #3d6a48; }
.palh-stair span:nth-child(5) { height: 146px; background: #28543a; }

.palh-dash { padding-bottom: 2.5rem; }
.palh-stats { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: .7rem; margin-bottom: 1rem; }
.palh-stat, .palh-panel {
  background: #fff9f1;
  border: 1px solid #e7c8a9;
  border-radius: 10px;
  box-shadow: 0 6px 11px rgba(105,63,34,.08);
  padding: 1rem 1.05rem;
}
.palh-stat .label { color: #6e655e; font: bold .68rem Arial, Helvetica, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.palh-stat .value { margin-top: .35rem; color: var(--green); font-size: 1.7rem; line-height: 1.1; }
.palh-stat .hint { margin-top: .35rem; color: #4e5755; font-size: .82rem; }
.palh-panel { margin-bottom: 1rem; }
.palh-panel h2 { margin: 0 0 .4rem; font-size: 1.35rem; font-weight: 500; color: var(--navy); }
.palh-muted { color: #4e5755; font-size: .95rem; }
.palh-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.palh-table th, .palh-table td { padding: .55rem .4rem; border-bottom: 1px solid #ead8c4; text-align: left; vertical-align: top; }
.palh-table th { color: var(--maroon); font: bold .72rem Arial, Helvetica, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.palh-details { margin: 0 0 2rem; }
.palh-details summary { cursor: pointer; color: var(--maroon); font-weight: bold; }

@media (max-width: 1080px) {
  .palh-hero h1 { font-size: clamp(2.85rem, 4.6vw, 3.25rem); }
  .palh-art { margin-right: -2rem; }
  .palh-level { gap: .65rem; padding: .85rem; }
  .palh-level-art { flex-basis: 67px; width: 67px; height: 67px; }
  .palh-level-art svg { width: 62px; height: 62px; }
  .palh-how-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .palh-how-card:nth-child(3):after { display: none; }
  .palh-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .palh-hero { padding: 2.7rem 0 2.4rem; }
  .palh-hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: .8rem; }
  .palh-hero-copy { padding: 0; }
  .palh-hero h1 { font-size: clamp(3.1rem, 8vw, 4.65rem); }
  .palh-art { margin: 0 -1.4rem; }
  .palh-art img { max-height: 540px; }
  .palh-benefits { max-width: none; }
  .palh-level-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .palh-level, .palh-level:nth-child(4), .palh-level:nth-child(5) { grid-column: auto; }
  .palh-how-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .palh-how-card:nth-child(3):after { display: block; }
  .palh-how-card:nth-child(2n):after { display: none; }
  .palh-progress-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .palh-stair { flex-basis: 230px; gap: .25rem; }
  .palh-stair span { width: 39px; }
  .palh-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .palh-hero { padding: 2.3rem 0 1.8rem; }
  .palh-hero h1 { font-size: clamp(2.65rem, 10vw, 3.6rem); }
  .palh-hero h1 > span { white-space: normal; }
  .palh-eyebrow { font-size: .75rem; letter-spacing: .05em; }
  .palh-promise { font-size: 1.48rem; }
  .palh-lead { font-size: 1.02rem; }
  .palh-benefits { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .palh-pill { min-height: 73px; flex-direction: row; gap: .45rem; text-align: left; }
  .palh-pill strong { font-size: .88rem; }
  .palh-actions { gap: .65rem; }
  .palh-actions .palh-button { flex: 1; min-width: 135px; padding: .55rem .55rem; font-size: .88rem; }
  .palh-art { margin: -.2rem -.8rem 0; }
  .palh-section { padding: 2.9rem 0; }
  .palh-title { gap: .35rem; font-size: 1.62rem; }
  .palh-title span { gap: .3rem; }
  .palh-title span:before, .palh-title span:after { font-size: .45rem; }
  .palh-section-lead { font-size: .95rem; }
  .palh-level-grid, .palh-how-grid, .palh-topic-grid { grid-template-columns: 1fr; }
  .palh-level { min-height: 132px; }
  .palh-level h3 { font-size: 1.25rem; }
  .palh-how-card { min-height: 155px; }
  .palh-how-card:not(:last-child):after { display: none; }
  .palh-progress-grid { padding: 1rem; }
  .palh-progress-copy h3 { font-size: 1.42rem; }
  .palh-evidence { padding: 1rem; }
  .palh-answers { gap: .24rem; }
  .palh-chip { min-height: 74px; }
  .palh-chip small { font-size: .6rem; }
  .palh-result strong { font-size: 1.5rem; }
  .palh-unlock { font-size: .67rem; }
  .palh-topic { min-height: 80px; }
  .palh-topic strong { font-size: 1.06rem; }
  .palh-cta-panel { padding: 1.35rem; }
  .palh-stair { display: none; }
  .palh-stats { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .palh-hero h1 { font-size: 2.52rem; }
}
@media (prefers-reduced-motion: reduce) {
  .palh-button, .palh-topic { transition: none; }
}
