/* ==========================================================================
   Content Forge — Free Claude skill page (/claude-skill)

   Same skeleton as the contact page: pitch in the left rail, the form that
   earns the download on the right, one screen on desktop. The field styles
   (.cfield*) are copied from contact.css rather than importing it — each page
   ships only its own stylesheet, and contact.css would drag the whole
   .contact grid along with the inputs.
   ========================================================================== */

.skillp {
  position: relative;
  min-height: 100vh;
  padding: 14rem 24rem 8rem;
  display: grid;
  /* The form is four rows tall, so the pitch gets the wide column — the
     reverse of the contact page's split. */
  grid-template-columns: 1fr 52rem;
  grid-template-rows: 1fr auto;
  gap: 0 12rem;
  align-items: center;
}
.skillp__lead,
.sform__form,
.sform__done,
.skillp__bar { position: relative; z-index: 2; }

/* ---------- left rail ---------- */

.skillp__lead { grid-column: 1; }

.skillp__eyebrow { color: var(--lime); }

.skillp__title {
  margin-top: 2rem;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  /* -0.040em per the display tracking scale in styles.css (8–12rem band) */
  font-size: 11.5rem;
  line-height: 0.9;
  letter-spacing: -0.46rem;
  word-spacing: 0.46rem;
  text-transform: uppercase;
  color: #fff;
}

.skillp__sub {
  margin-top: 2.8rem;
  width: 62rem;
  max-width: 100%;
  font-size: 1.8rem;
  line-height: 1.5;
  color: rgba(239, 239, 209, 0.7);
}

.skillp__list {
  margin-top: 3.6rem;
  width: 62rem;
  max-width: 100%;
  list-style: none;
}
.skillp__list li {
  position: relative;
  padding: 1.5rem 0 1.5rem 3.4rem;
  border-bottom: 0.1rem solid rgba(239, 239, 209, 0.18);
  font-size: 1.7rem;
  line-height: 1.4;
  color: var(--cream);
}
.skillp__list li:first-child { border-top: 0.1rem solid rgba(239, 239, 209, 0.18); }
.skillp__list li::before {
  content: '+';
  position: absolute;
  left: 0;
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  color: var(--lime);
}

.skillp__compat {
  margin-top: 2.4rem;
  font-size: 1.5rem;
  line-height: 1.5;
  color: rgba(239, 239, 209, 0.55);
}

/* Sits in the clear strip to the right of the 62rem sub/list column, the same
   trick as the contact page cube. Relative to the rail, not the section — the
   rail is vertically centred and would slide out from under a section-anchored
   decoration at every window height. */
.skillp__cube {
  position: absolute;
  right: -1rem;
  top: 27rem;
  width: 15rem;
  height: 15rem;
  object-fit: contain;
  object-position: bottom;
  z-index: 3;
  pointer-events: none;
}

/* ---------- form (field styles copied from contact.css) ---------- */

.sform__form {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 3.6rem;
}
.sform__eyebrow { margin-bottom: -0.8rem; }

.cfield { display: flex; flex-direction: column; gap: 1.2rem; }
.cfield__label {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--cream);
}
.cfield__input {
  width: 100%;
  padding: 1.2rem 0;
  background: none;
  border: none;
  border-bottom: 0.1rem solid rgba(239, 239, 209, 0.3);
  border-radius: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.8rem;
  line-height: 1.4;
  color: var(--cream);
  caret-color: var(--lime);
  transition: border-color 0.25s ease;
}
.cfield__input:hover { border-bottom-color: rgba(239, 239, 209, 0.55); }
.cfield__input:focus { outline: none; border-bottom-color: var(--lime); }

.cfield--error .cfield__input { border-bottom-color: var(--red); }
.cfield__error { font-size: 1.4rem; line-height: 1.3; color: var(--red); }

/* ---------- the reach-out checkbox ---------- */

.sform__optin {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  cursor: pointer;
}
/* Off-screen rather than display:none so it stays focusable and keeps
   announcing its checked state — same reasoning as the contact page chips. */
.sform__check { position: absolute; opacity: 0; width: 0.1rem; height: 0.1rem; }
.sform__box {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  margin-top: 0.1rem;
  border: 0.1rem solid rgba(239, 239, 209, 0.4);
  border-radius: 0.4rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.sform__optin:hover .sform__box { border-color: var(--cream); }
.sform__check:checked + .sform__box {
  background: var(--lime);
  border-color: var(--lime);
}
/* The tick is drawn, not a glyph: a rotated border corner, matching the
   select chevrons in contact.css. */
.sform__check:checked + .sform__box::after {
  content: '';
  display: block;
  width: 0.6rem;
  height: 1.1rem;
  margin: 0.3rem auto 0;
  border-right: 0.25rem solid #000;
  border-bottom: 0.25rem solid #000;
  transform: rotate(45deg);
}
.sform__check:focus-visible + .sform__box { outline: 0.2rem solid var(--lime); outline-offset: 0.3rem; }
.sform__optin-text {
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--cream);
}

.sform__hp { position: absolute; left: -9999rem; width: 1rem; height: 1rem; overflow: hidden; }

.sform__foot { display: flex; align-items: center; gap: 2.8rem; }
.sform__submit { flex: none; }
.sform__submit[disabled] { opacity: 0.55; pointer-events: none; }
.sform__status { font-size: 1.6rem; line-height: 1.4; color: rgba(239, 239, 209, 0.7); }
.sform__status--error { color: var(--red); }

.sform__fine {
  margin-top: -1.2rem;
  font-size: 1.4rem;
  line-height: 1.5;
  color: rgba(239, 239, 209, 0.5);
}

/* ---------- success: the download ---------- */

.sform__done { grid-column: 2; }
.sform__done-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1.2;
  letter-spacing: -0.16rem;
  word-spacing: 0.16rem;
  text-transform: uppercase;
  color: var(--lime);
}
.sform__done-sub {
  margin-top: 1.6rem;
  font-size: 1.7rem;
  line-height: 1.5;
  color: rgba(239, 239, 209, 0.7);
}
/* The .cta pill sizes itself with a fixed width because its faces are
   absolutely positioned; the default 21.4rem clips this longer label. */
.sform__dl { margin-top: 2.8rem; width: 30rem; }
.sform__steps {
  margin-top: 3.2rem;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--cream);
}
.sform__steps code {
  padding: 0.2rem 0.6rem;
  border-radius: 0.4rem;
  background: rgba(239, 239, 209, 0.12);
  font-size: 1.4rem;
}

/* ---------- footer bar ---------- */

.skillp__bar {
  grid-column: 1 / -1;
  margin-top: 6rem;
  display: flex;
  justify-content: space-between;
  font-family: 'Unbounded', sans-serif;
  font-weight: 300;
  font-size: 1.4rem;
  color: #fff;
}

/* ---------- mobile ---------- */

@media (max-width: 820px) {
  .skillp {
    min-height: 0;
    padding: 11rem 2rem 4rem;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0;
  }
  .skillp__title { font-size: 6rem; letter-spacing: -0.3rem; word-spacing: 0.3rem; }
  .skillp__sub { margin-top: 2rem; width: auto; font-size: 1.6rem; }
  .skillp__list { margin-top: 2.8rem; width: auto; }
  .skillp__list li { font-size: 1.5rem; padding: 1.3rem 0 1.3rem 2.8rem; }
  /* Placed against the gap beside the short title line, which a single
     column no longer has. */
  .skillp__cube { display: none; }

  .sform__form, .sform__done { grid-column: 1; }
  .sform__form { margin-top: 5rem; gap: 3rem; }
  .sform__foot { flex-direction: column; align-items: stretch; gap: 1.8rem; }
  .sform__submit { width: 100%; }
  .sform__fine { margin-top: -0.8rem; }
  .sform__dl { width: 100%; }
  .skillp__bar { margin-top: 6rem; flex-direction: column; align-items: center; gap: 2.6rem; }
}
