/* ---- The "Would they know?" worksheet offer (2026-10-23) ----
   Loaded by /would-they-know and by the guidance pages, which carry the
   block under each article. Its own file rather than a bump of the two
   page stylesheets on forty pages; the form rules here mirror the app's
   field/button mechanics (styles-app.css) on the marketing palette. */

.worksheet-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  max-width: 600px;
  position: relative;
}
/* `hidden` must win over the flex display once the request is accepted. */
.worksheet-form[hidden] { display: none; }
.worksheet-input {
  flex: 1 1 280px;
  min-height: 50px;
  padding: 0 16px;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  background: var(--cream-soft);
  border: 1px solid var(--paper-line);
  border-radius: 4px;
}
.worksheet-input::placeholder { color: var(--ink-faint); }
.worksheet-input:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }
.worksheet-input[aria-invalid="true"] { border-color: var(--oxblood); }
.worksheet-form .cta-button { flex: 0 0 auto; min-height: 50px; }
.worksheet-form .cta-button:disabled { opacity: 0.6; cursor: default; transform: none; }

/* The honeypot: present for a bot that fills every box, absent for a person. */
.worksheet-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.worksheet-help {
  flex: 1 1 100%;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.worksheet-help[role="alert"] {
  color: var(--oxblood-deep);
  background: rgba(110, 37, 48, 0.08);
  padding: 10px 14px;
  border-radius: 4px;
}
.worksheet-success {
  margin: 0;
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: var(--cream-soft);
}
.worksheet-success:focus { outline: none; }
.worksheet-note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 58ch;
}

/* ---- The landing page ---- */
.worksheet-hero .page-hero-copy .lede { max-width: 58ch; }
.worksheet-hero .worksheet-form { margin-top: 4px; }

.worksheet-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding: clamp(16px, 2.5vw, 32px) 0 var(--section-y);
}
.worksheet-preview {
  position: relative;
  max-height: 520px;
  overflow: hidden;
  border-radius: 4px;
}
.worksheet-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--paper-line-soft);
  box-shadow: var(--card-shadow);
  background: #fff;
}
/* The page fades out before its last rows: the preview shows the shape of
   the worksheet, the email carries the worksheet. */
.worksheet-preview::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(to bottom, rgba(240, 238, 230, 0) 0%, var(--desk) 92%);
  pointer-events: none;
}
.worksheet-points { display: flex; flex-direction: column; gap: 22px; }
.worksheet-points h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
.worksheet-points ol {
  list-style: none;
  counter-reset: point;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}
.worksheet-points li {
  counter-increment: point;
  padding-left: 2.4em;
  position: relative;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.worksheet-points li::before {
  content: counter(point, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15em;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
  font-variant-numeric: tabular-nums;
}
.worksheet-price {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  border-top: 1px solid var(--paper-line-soft);
  padding-top: 20px;
}
.worksheet-price strong { font-weight: 500; color: var(--ink); }
.worksheet-price .link-cta { display: inline-block; margin-top: 10px; }

@media (max-width: 880px) {
  .worksheet-split { grid-template-columns: 1fr; gap: 36px; }
  .worksheet-preview { max-height: 360px; }
}

/* ---- The block under each guidance article ---- */
.worksheet-offer {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--paper-line-soft);
}
.worksheet-offer h2 { margin-top: 6px; }
.worksheet-offer > p { margin-top: 12px; max-width: 58ch; }
.worksheet-offer .worksheet-form { margin-top: 20px; }
.worksheet-offer-section { padding: 0 0 var(--section-y); }
.worksheet-offer-section .worksheet-offer { max-width: 72ch; }
