/*
  Homepage redesign (branch home-redesign, 16 Oct 2026): the tone moves to a
  premium tutoring practice, the worksheets library gets its own section, and
  the contact block becomes "Enquire to become a CuratedPrep student".

  Loaded on the homepage only, after home.css, so no other page changes.
  Uses home.css's tokens (palette "Refined heritage", brand/BRAND.md).
*/

/* ---- headlines: one italic brass word, as the brand sheet asks ---- */
.cp-home .cp-section h2 em,
.cp-home .cp-hero-copy h1 em { font-style: italic; color: var(--brass); }

/* ---- hero ---- */
.cp-home .cp-hero-copy h1 { max-width: 11ch; }
.cp-hero-panel h2 { max-width: 17ch; }
.cp-hero-panel .cp-panel-steps { padding: 0; margin: 0 0 24px; }
.cp-hero-panel .cp-panel-steps li { align-items: start; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.cp-hero-panel .cp-panel-steps li b { color: var(--navy); font-weight: 600; }
.cp-hero-panel .cp-panel-steps li .step-no { padding-top: 2px; }

/* ---- why families choose us ---- */
.cp-thesis-lead .kicker { margin-bottom: 18px; }
.cp-thesis-lead .button { margin-top: 30px; }

/* ---- the worksheets library ---- */
.cp-library {
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(217, 192, 148, 0.18), transparent 60%),
    var(--paper-2, #ece3d4);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cp-library-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.cp-library-copy .kicker { margin-bottom: 18px; }
.cp-library-copy h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.07; max-width: 16ch; margin-bottom: 22px; }
.cp-library-copy > p { font-size: 17px; line-height: 1.72; color: var(--ink-soft); max-width: 48ch; margin-bottom: 24px; }
.cp-library-points { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.cp-library-points li {
  position: relative; padding-left: 32px; font-size: 15.5px; line-height: 1.5; color: var(--ink);
}
.cp-library-points li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%;
  border: 1px solid rgba(154, 106, 30, 0.45);
  background: center / 11px 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%239A6A1E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.cp-library-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cp-library-note { margin-top: 18px; font-size: 13.5px; color: var(--muted, #5b554a); }

.cp-library-visual { position: relative; min-height: 460px; }
.cp-library-visual img {
  position: absolute; inset: 0 12% 12% 0; width: 88%; height: 88%; object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -50px rgba(14, 38, 56, 0.6);
}
.cp-library-card {
  position: absolute; right: 0; bottom: 0; width: min(360px, 78%);
  padding: 22px 22px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-edge) 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 40px 80px -40px rgba(14, 38, 56, 0.55), 0 2px 10px -4px rgba(14, 38, 56, 0.12);
}
.cp-library-card-k {
  display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-text); margin-bottom: 12px;
}
.cp-library-card ol { list-style: none; margin: 0; padding: 0; }
.cp-library-card li {
  display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; align-items: baseline;
  padding: 10px 0; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 16px; color: var(--navy);
}
.cp-library-card li span { font-family: var(--mono); font-size: 11px; color: var(--brass-text); }
.cp-library-card li em {
  grid-column: 2; font-style: normal; font-family: var(--sans); font-size: 12.5px; color: var(--muted, #5b554a); margin-top: 2px;
}
.cp-library-card-foot { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.cp-library-card-foot span {
  font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--navy);
  padding: 5px 11px; border-radius: 999px; background: rgba(14, 38, 56, 0.07);
}

/* ---- enquire to enrol ---- */
.cp-contact-copy .kicker { margin-bottom: 4px; }
.cp-enrol-steps { list-style: none; margin: -6px 0 32px; padding: 0; display: grid; gap: 14px; max-width: 46ch; }
.cp-enrol-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.cp-enrol-steps li > span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--ivory); background: var(--navy);
}
.cp-enrol-steps b { color: var(--navy); font-weight: 600; }

/* ---- smaller screens ---- */
@media (max-width: 980px) {
  .cp-library-grid { grid-template-columns: minmax(0, 1fr); }
  .cp-library-visual { min-height: 0; aspect-ratio: auto; display: grid; }
  .cp-library-visual img { position: relative; inset: auto; width: 100%; height: 300px; }
  .cp-library-card { position: relative; width: auto; margin: -70px 16px 0; }
}
@media (max-width: 720px) {
  .cp-home .cp-hero-copy h1 { max-width: 12ch; }
  .cp-library-actions .button { width: 100%; justify-content: center; }
  .cp-library-visual img { height: 220px; }
}
