/* PK2 Finance & Strategy · contact page (v2)
   Composition rules for the contact page only. Anything reusable belongs in
   foundation.css; anything with a colour in it reads a token. */

:root {
  /* The failure colour is the system's --error. The 6% wash it sits on is
     derived here, because this is the only page with a form on it. */
  --form-error: var(--error);
  --form-error-soft: color-mix(in srgb, var(--error) 6%, transparent);
}

/* ------------------------------------------------------------- 1 hero -- */

/* Layout A, run short. The page's job starts at the booking section, so the
   opening states the two routes and gets out of the way. */
.contact-hero {
  padding-top: 72px;
  padding-bottom: 88px;
}

/* Layout A indents to column 2, which is the home page's discipline. Every
   other section on this page opens at the container's edge, so the two blocks
   built on Layout A do too: one left edge per page, top to bottom. Both keep
   Layout A's right edge (column 8), so only the start moves. */
@media (min-width: 1025px) {
  .contact-hero .hero-copy,
  .partners .partners-copy { grid-column: 1 / span 8; }
}

.hero-eyebrow { margin-bottom: 26px; }

.hero-promise { margin-top: 28px; max-width: 620px; }
.hero-promise-line { color: var(--text-muted); }
.hero-promise-line + .hero-promise-line { margin-top: 8px; }

/* The line that carries the page. Full ink, one step heavier, its own air. */
.hero-promise-last {
  margin-top: 18px;
  font-weight: 500;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 36px;
}

@media (max-width: 1024px) {
  .contact-hero { padding-top: 60px; padding-bottom: 76px; }
}

@media (max-width: 640px) {
  .contact-hero { padding-top: 44px; padding-bottom: 60px; }
  .hero-promise { margin-top: 24px; }
  .hero-actions { gap: 12px; margin-top: 30px; }
  /* Full-bleed, the gold pill alone takes more of the screen than the accent
     is allowed. The buttons keep their own width and stack. */
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { flex: 0 0 auto; width: auto; }
}

/* -------------------------------------------------------------- 2 book -- */

/* Both in-page targets clear the sticky nav (76px) plus a little air. */
#book, #ask { scroll-margin-top: 100px; }

.book-head { grid-column: 1 / span 6; }
.book-head .h2 { margin-top: 18px; }
.book-lede { margin-top: 18px; color: var(--text-muted); }
.book-body { margin-top: 20px; max-width: 520px; }

/* The three scenarios from the copy deck, held as an agenda under a hairline
   rather than run as prose: the call has a shape you can see before you book. */
.book-agenda {
  grid-column: 8 / span 5;
  align-self: end;
}
.agenda-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.agenda-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--size-small);
  line-height: 1.5;
  color: var(--text);
}
/* The last line is the one that actually matters, so it takes the gold mark. */
.agenda-list li:last-child {
  border-bottom-color: var(--gold);
  color: var(--text-muted);
}

.book-tray { grid-column: 1 / span 12; margin-top: 48px; }

@media (max-width: 1024px) {
  .book-head { grid-column: 1 / span 8; }
  .book-agenda { grid-column: 1 / span 8; margin-top: 36px; }
  .book-tray { grid-column: 1 / span 8; margin-top: 40px; }
}

/* ------------------------------------------------------ the cal.com tray -- */

.cal-slot { position: relative; margin: 18px 0 4px; }

/* Cal ships a stylesheet of its own that gives .cal-embed a 300px min-height.
   Before the iframe is in, that would open 300px of nothing under the
   skeleton, so the empty mount is held flat until it resolves. */
.cal-slot:not(.is-loaded) .cal-embed { min-height: 0; }
.cal-embed { width: 100%; }

/* The hold. A calendar's shape in hairlines: one header bar, then the grid.
   No shimmer sweep anywhere on this site; it pulses in place, gently, and
   only where motion is welcome. */
/* Capped and centred: run the full tray width the cells stop reading as a
   month and start reading as empty boxes. */
.cal-skeleton {
  max-width: 580px;
  margin-inline: auto;
  padding: 24px 0 18px;
}
.cal-slot.is-loaded .cal-skeleton { display: none; }

.cal-skeleton-bar {
  width: 42%;
  max-width: 240px;
  height: 14px;
  background: var(--hairline);
}
.cal-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.cal-skeleton-grid span {
  display: block;
  aspect-ratio: 1 / 0.82;
  background: var(--grid-cross);
  opacity: 0.5;
}

@media (prefers-reduced-motion: no-preference) {
  html.js .cal-skeleton { animation: cal-hold 2600ms ease-in-out infinite; }
}
@keyframes cal-hold {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@media (max-width: 640px) {
  .book-tray .instrument { padding: 8px; }
  .book-tray .instrument-core { padding: 18px 12px 14px; }
  .book-tray .instrument-labels .label { font-size: 11px; letter-spacing: 0.1em; }
  .cal-skeleton-grid { gap: 6px; margin-top: 18px; }
}

/* --------------------------------------------------------------- 3 ask -- */

.ask-head { grid-column: 1 / span 5; }
.ask-head .h2 { margin-top: 18px; }
.ask-lede { margin-top: 16px; max-width: 420px; color: var(--text-muted); }
.ask-body { grid-column: 7 / span 6; }

@media (max-width: 1024px) {
  .ask-head { grid-column: 1 / span 8; }
  .ask-body { grid-column: 1 / span 8; margin-top: 36px; max-width: 620px; }
}

/* The only form on the site. Mono labels over hairline-underline fields:
   the same ruled language as the instrument tables, not a boxed web form. */
.ask-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--gutter);
  row-gap: 30px;
}
/* display: grid outranks the user agent's [hidden] rule, and the script hides
   the form once the question is away. It has to stay hidden. */
.ask-form[hidden] { display: none; }

.field { display: flex; flex-direction: column; }
.field-wide { grid-column: 1 / -1; }

.field-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--size-label);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.field-input {
  width: 100%;
  margin-top: 10px;
  padding: 8px 0 9px;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  /* An empty field is a rule you have to be able to find. --hairline measures
     1.33:1 on paper, which is a decoration rather than an affordance, so the
     resting underline takes --fog at 3.26:1 and hover goes all the way to ink. */
  border-bottom: 1px solid var(--fog);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  transition: border-color var(--dur-ui) ease;
}
.field-input:hover { border-bottom-color: var(--ink); }

/* Gold underline on focus, and the system's focus ring on top of it, so the
   field is legible as focused with or without colour perception. */
.field-input:focus {
  outline: none;
  border-bottom-color: var(--gold);
  border-bottom-width: 2px;
  padding-bottom: 8px;
}
.field-input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}
.field-input[aria-invalid="true"] { border-bottom-color: var(--form-error); }

textarea.field-input {
  min-height: 140px;
  line-height: 1.55;
  resize: vertical;
}

/* Autofill paints its own ground; hold it to paper so the field stays a rule. */
.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 60px var(--paper) inset;
}

/* The question prompt sits between the label and the field, where it is read
   before the field is used rather than after. */
.field-prompt { margin-top: 8px; }

.form-hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}
.field > .form-hint:not(.field-prompt) { margin-top: 8px; }
.form-hint--error { color: var(--form-error); }

.ask-submit { grid-column: 1; justify-self: start; }
.ask-submit[disabled] { opacity: 0.6; cursor: default; }

.support-line {
  grid-column: 2;
  align-self: center;
  font-size: var(--size-small);
  line-height: 1.5;
  color: var(--text-muted);
}

/* Honeypot. Off-screen, out of the accessibility tree (aria-hidden on the
   wrapper), out of the tab order (tabindex -1 on the input). */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#question-status:not(:empty) { margin-top: 32px; }

/* The confirmation and the failure note. Same ruled treatment as everything
   else: a 2px mark on the left, no rounded card. */
.form-note {
  padding: 16px 20px;
  border-left: 2px solid var(--gold);
  background: var(--gold-soft);
  font-size: var(--size-small);
  line-height: 1.55;
  color: var(--ink);
}
.form-note--error {
  border-left-color: var(--form-error);
  background: var(--form-error-soft);
  color: var(--form-error);
}
.form-note--error a { color: var(--form-error); }
#question-status .form-note + p { margin-top: 16px; }

@media (max-width: 640px) {
  .ask-form { grid-template-columns: 1fr; row-gap: 26px; }
  .ask-submit { grid-column: 1; }
  .support-line { grid-column: 1; margin-top: -6px; }
}

/* ------------------------------------------------------------- text link -- */

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--dur-ui) ease;
}
.text-link:hover { color: var(--gold-hover); }
.text-link .arrow {
  display: inline-block;
  transition: transform var(--dur-ui) var(--ease-resolve);
}
.text-link:hover .arrow { transform: translateX(3px); }
/* Touch target. Padding on an inline box grows what a thumb can hit without
   changing the line it sits in. */
@media (max-width: 860px) {
  .text-link { padding-block: 3px; }
}

/* --------------------------------------------------------------- 4 faq -- */
/* Moved here from the home page in the v2 restructure, unaltered. */

.faq-head { grid-column: 1 / span 8; }
.faq-head .h3 { margin-top: 16px; }

.faq-list { grid-column: 1 / span 12; margin: 34px 0 0; }
.faq-item {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-q { grid-column: 1 / span 5; margin: 0; }
.faq-a {
  grid-column: 6 / span 7;
  margin: 0;
  font-size: var(--size-small);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 620px;
}

@media (max-width: 1024px) {
  .faq-head, .faq-list { grid-column: 1 / span 8; }
  .faq-item { grid-template-columns: repeat(8, 1fr); }
  .faq-q { grid-column: 1 / span 3; }
  .faq-a { grid-column: 4 / span 5; }
}

/* At 1024 and below the question column is too narrow to hold a question on two
   lines, so the pair stacks: question above answer, full width, which is how the
   row reads at phone width anyway. */
@media (max-width: 1024px) {
  .faq-list { margin-top: 32px; }
  .faq-item { grid-template-columns: 1fr; padding: 22px 0; }
  .faq-q { grid-column: 1; font-size: 21px; }
  .faq-a { grid-column: 1; margin-top: 12px; }
}

/* ---------------------------------------------------------- 5 partners -- */

.partners .h3 { margin-top: 16px; }
.partners-body { margin-top: 18px; max-width: 620px; color: var(--text-muted); }
