/* ── Funnel pages ─────────────────────────────────────────────────────────────
   Shared by the homepage, /ask-pkj, /work-with-pen, /clarity-call, /privacy and
   /member-plan. Sits on top of styles.css and only uses its colour variables:
   cream (--bg), coral (--coral) and dark (--ink / --bg-dk).
   ────────────────────────────────────────────────────────────────────────── */

.fx-main { display: block; }
.fx-sec { padding: 64px 0; border-bottom: 1px solid var(--line); }
.fx-sec.is-alt { background: var(--bg-s); }
.fx-sec.is-dark { background: var(--bg-dk); color: #fff; border-bottom: 0; }
.fx-narrow { max-width: 680px; }
.fx-center { text-align: center; margin-left: auto; margin-right: auto; }

.fx-h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: 12px 0 0;
}
.fx-h1 em { font-style: italic; color: var(--coral); }
.fx-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.fx-lead { font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); margin: 18px 0 0; max-width: 46ch; }
.fx-center .fx-lead { margin-left: auto; margin-right: auto; }
.fx-p { font-size: 1.02rem; line-height: 1.7; color: var(--ink-2); margin: 0 0 14px; max-width: 62ch; }
.fx-sec.is-dark .fx-p, .fx-sec.is-dark .fx-lead { color: rgba(255,255,255,.75); }
.fx-p a, .fx-list a, .fx-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }

.fx-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; max-width: 640px; }
.fx-list li {
  background: var(--bg);
  border-left: 4px solid var(--blush);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}
.fx-sec.is-alt .fx-list li { background: #fff; }

.fx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.fx-card { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.fx-sec.is-alt .fx-card { background: #fff; }
.fx-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin: 0 0 8px; }
.fx-card p { font-size: .97rem; line-height: 1.6; color: var(--ink-2); margin: 0; }

/* Client quotes on the homepage. */
.fx-quote { margin: 0; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--coral); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.fx-quote blockquote { margin: 0; }
.fx-quote blockquote p { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--ink); }
.fx-quote figcaption { margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--ink); }
.fx-quote figcaption span { font-weight: 400; color: var(--ink-2); }

/* Buttons. One primary per page, in coral with ink text (white on coral fails
   contrast). The secondary is an ink outline. */
.fx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fx-center .fx-actions { justify-content: center; }
.fx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 24px; border-radius: 10px;
  font-family: var(--sans); font-size: .98rem; font-weight: 600; line-height: 1.25;
  text-decoration: none; text-align: center; cursor: pointer; border: 0;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.fx-btn-primary { background: var(--coral); color: var(--ink); }
.fx-btn-primary:hover { background: #D96A4B; transform: translateY(-1px); }
.fx-btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.fx-btn-secondary:hover { background: rgba(232,180,172,.35); }
.fx-sec.is-dark .fx-btn-secondary { color: #fff; border-color: rgba(255,255,255,.6); }
.fx-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.fx-btn[disabled] { opacity: .6; cursor: default; transform: none; }
.fx-note { font-size: .88rem; color: var(--ink-3); margin: 12px 0 0; line-height: 1.6; }
.fx-sec.is-dark .fx-note { color: rgba(255,255,255,.55); }

/* Hero with Pen's photo. */
.fx-hero { padding: 64px 0 56px; }
.fx-hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.fx-photo { margin: 0; position: relative; }
.fx-photo::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border-radius: 22px; background: var(--blush); z-index: 0; }
.fx-photo img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: 30% 12%; border-radius: 22px; background: var(--bg-s); }

.fx-about { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 44px; align-items: center; }
.fx-about img { width: 100%; height: auto; aspect-ratio: 6/7; object-fit: cover; border-radius: 18px; }

/* FAQ, as native details so it works without script. */
.fx-faq { max-width: 720px; margin-top: 8px; }
.fx-faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.fx-faq details:last-child { border-bottom: 1px solid var(--line); }
.fx-faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; font-size: 1.02rem; position: relative; }
.fx-faq summary::-webkit-details-marker { display: none; }
.fx-faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 1.3rem; color: var(--coral); }
.fx-faq details[open] summary::after { content: '\2013'; }
.fx-faq details p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.7; max-width: 62ch; }

/* ── Ask PKJ ─────────────────────────────────────────────────────────────
   One conversation on one screen: the thread on top, the box under it. The
   box is sticky, so once the thread is long it stays at the bottom of the
   screen, on a phone and on a laptop. */
.ask-dock {
  position: sticky; bottom: 0; z-index: 20;
  margin-top: 24px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to bottom, rgba(248,242,230,0), var(--bg) 18px);
}
.ask-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 10px 30px rgba(43,36,51,.07); }
.ask-box label { display: block; font-weight: 600; margin-bottom: 8px; }
.ask-field { display: flex; gap: 10px; align-items: flex-end; }
.ask-box textarea {
  flex: 1 1 auto; min-width: 0; min-height: 56px; max-height: 160px; resize: none; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  font: inherit; font-size: 1rem; line-height: 1.5; color: var(--ink);
}
.ask-box textarea:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: transparent; }
.ask-send { flex: 0 0 auto; min-height: 56px; }
.ask-dock.is-chatting .ask-box label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.ask-dock.is-chatting .ask-box { padding: 10px; }
.ask-send-short { display: none; }
.ask-count { font-size: .88rem; color: var(--ink-2); margin: 8px 0 0; }
.ask-count:empty { display: none; }

.ask-chips, .ask-next { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ask-chips[hidden] { display: none; }
.ask-chip {
  min-height: 44px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-size: .95rem; line-height: 1.3; text-align: left; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.ask-chip:hover { background: rgba(232,180,172,.25); border-color: var(--blush); }
.ask-chip:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ask-chip[disabled] { opacity: .55; cursor: default; }
.ask-next { margin-top: 16px; }
.ask-next .ask-chip { background: var(--bg); }

.ask-thread { margin-top: 28px; display: grid; gap: 18px; overflow-anchor: none; }
.ask-thread:empty { display: none; }
.ask-turn, .ask-gate { scroll-margin-top: 88px; }
.ask-turn { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.ask-q { font-weight: 600; margin: 0 0 12px; color: var(--ink); }
.ask-a { white-space: pre-wrap; line-height: 1.7; color: var(--ink); margin: 0; font-size: 1.02rem; }
/* Space is held while the answer is written, so the page does not jump. */
.ask-a.is-wait, .ask-a.is-live { min-height: 6.8em; }
.ask-a.is-wait { color: var(--ink-3); display: flex; align-items: flex-start; gap: 10px; white-space: normal; }
.ask-dots { display: inline-flex; gap: 5px; padding-top: .6em; }
.ask-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); opacity: .35; animation: ask-breathe 1.6s ease-in-out infinite; }
.ask-dots i:nth-child(2) { animation-delay: .25s; }
.ask-dots i:nth-child(3) { animation-delay: .5s; }
@keyframes ask-breathe { 0%, 100% { opacity: .25; transform: scale(.85); } 50% { opacity: .9; transform: scale(1); } }
.ask-try { margin: 16px 0 0; padding: 12px 14px; background: var(--bg); border-radius: 12px; font-size: .95rem; }
.ask-try a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.ask-src { margin: 16px 0 0; font-size: .82rem; color: var(--ink-2); line-height: 1.55; }
.ask-src summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.ask-src ul { margin: 8px 0 0 18px; }
.ask-call { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }
.ask-call a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ask-msg { background: var(--bg-s); border-radius: 14px; padding: 16px 18px; margin: 0; line-height: 1.6; }
.ask-limit-h { margin: 14px 0 6px; font-weight: 600; font-size: .95rem; }
.ask-tools { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ask-tools a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.ask-gate { background: var(--bg-s); border-radius: 18px; padding: 22px; }
.ask-gate h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 0 0 12px; }
.ask-gate form { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-gate input[type=email] {
  flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 1rem;
}
.ask-gate input[type=email]:focus { outline: 2px solid var(--coral); outline-offset: 1px; }
.ask-gate .fx-note { color: var(--ink-2); }
.ask-err { color: #B4442A; font-size: .9rem; margin: 8px 0 0; }
.ask-err:empty { display: none; }
.ask-gate-or { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ask-gate-or p { margin: 0; font-size: .98rem; color: var(--ink); }

.fx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Homepage hero: the call comes first, so the divider moves to the newsletter,
   and one quiet line of proof sits under the button. */
.fx-hero .hero-call { border-top: 0; padding-top: 0; }
.hero-call + .hero-nl { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 560px; }
.fx-proof { margin: 14px 0 0; font-size: .86rem; line-height: 1.5; color: var(--ink-2); }

@media (max-width: 820px) {
  .fx-sec { padding: 44px 0; }
  .fx-hero { padding: 28px 0 40px; }
  .fx-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .fx-photo { order: -1; max-width: 420px; width: 100%; margin: 0 auto; }
  .fx-photo::before { inset: 10px -10px -10px 10px; border-radius: 18px; }
  .fx-photo img { aspect-ratio: 1/1; object-position: 30% 0; border-radius: 18px; }
  .fx-actions { flex-direction: column; }
  .fx-btn { width: 100%; }
  .ask-send { width: auto; }
  .fx-grid { grid-template-columns: 1fr; }
  .fx-about { grid-template-columns: 1fr; gap: 24px; }
  .fx-about img { max-width: 320px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .ask-box, .ask-turn, .ask-gate { padding: 16px; }
  .ask-box label { font-size: .95rem; }
  .ask-send { width: auto; padding: 14px 18px; }
  .ask-send-long { display: none; }
  .ask-send-short { display: inline; }
  .ask-chip { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-btn, .ask-chip { transition: none; }
  .fx-btn-primary:hover { transform: none; }
  .ask-dots i { animation: none; opacity: .6; }
}

/* The Ask PKJ send button is a tool control, not a call to action: ink, so the
   newsletter button under an answer stays the one coral button in view. */
.ask-send { background: var(--ink); color: #fff; }
.ask-send:hover { background: #1C1722; }
.ask-nl { margin: 18px 0 0; padding: 16px; background: var(--bg); border-radius: 14px; }
.ask-nl .pkj-nl-small { margin-top: 8px; }
