/* ─────────────────────────────────────────────────────────────────────────────
   Neo kit additions for the generated landing pages.

   generate-pseo.mjs ships src/styles/neo.css to /neo/neo.css and this file to
   /neo/neo-pseo.css. Nothing here restyles a kit section: these are the few
   shapes a landing page needs that the Astro pages do not (an FAQ band, a link
   index, the inline contact form) plus the page-ground fade that
   ScrollColour.astro gives the Astro pages.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Long keyword headings in the big hero shapes ─────────────────────────────
   A landing page's h1 carries its search words ("AI document processing in
   Hamilton."), which is far longer than neo.nz's "Tick tock." At the giant size
   it runs to five lines, so a long one steps down to the section size. */
.neo-hero--split .neo-h--1.neo-h--fit,
.neo-hero--giant .neo-h--1.neo-h--fit { font-size: var(--neo-h2); line-height: 1.02; letter-spacing: -0.035em; }
.neo-hero--giant .neo-h--1.neo-h--fit { text-align: left; padding-right: 0; max-width: 18em; }

/* ── Statement with no video ────────────────────────────────────────────────────
   On the homepage the paragraph sits right of the video. A landing page has no
   video, so the paragraph takes the band itself, set larger, left aligned. */
.neo-statement--solo .neo-statement__grid { grid-template-columns: 1fr; min-height: clamp(16rem, 30vw, 26rem); }
.neo-statement--solo .neo-statement__copy { grid-column: 1; max-width: 52rem; }
.neo-statement--solo .neo-statement__text { font-size: clamp(1.6rem, 2.7vw, 2.5rem); line-height: 1.28; letter-spacing: -0.02em; }
.neo-statement--solo .neo-statement__cta { justify-content: flex-start; }

/* ── Photo band copy on landing pages ─────────────────────────────────────────
   A landing page's photo band carries a longer paragraph than the homepage's,
   and on some photos (the sloth's branch) the subject reaches past the middle.
   A narrower column keeps the words clear of the picture on desktop. */
@media (min-width: 781px) {
  .neo-photo--right .neo-photo__copy,
  .neo-photo--left .neo-photo__copy { max-width: min(32rem, 38%); }
}

/* ── Tick list as the visual beside a split ─────────────────────────────────── */
.neo-split__visual .neo-ticks { max-width: 34rem; }

/* ── FAQ band ──────────────────────────────────────────────────────────────── */
.neo-faq { padding-block: clamp(4rem, 8vw, 7rem); }
.neo-faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.neo-faq__item { border-top: 1.5px solid currentColor; }
.neo-faq__item:last-child { border-bottom: 1.5px solid currentColor; }
.neo-faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem;
  padding: 1.3rem 0; font-family: var(--sans); font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.3rem); letter-spacing: -0.01em;
}
.neo-faq__item summary::-webkit-details-marker { display: none; }
.neo-faq__item summary::after { content: '+'; flex: none; font-weight: 400; font-size: 1.6em; line-height: 1; transition: transform 0.25s ease; }
.neo-faq__item[open] summary::after { transform: rotate(45deg); }
.neo-faq__item .neo-p { padding-bottom: 1.4rem; max-width: 40em; font-size: clamp(1rem, 1.25vw, 1.12rem); }

/* ── Link index ────────────────────────────────────────────────────────────── */
.neo-links { padding-block: clamp(4rem, 8vw, 7rem); }
.neo-links__lead { margin-top: clamp(1rem, 2vw, 1.4rem); }
.neo-links__grid {
  list-style: none; padding: 0; margin: clamp(2rem, 4vw, 3rem) 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0 clamp(1.5rem, 3vw, 2.5rem);
}
.neo-links--dense .neo-links__grid { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.neo-links__grid li { border-top: 1.5px solid color-mix(in srgb, currentColor 22%, transparent); }
.neo-links__grid a,
.neo-links__grid .neo-links__plain {
  display: flex; flex-direction: column; gap: 0.15rem; padding: 0.85rem 0;
  color: inherit; text-decoration: none; font-family: var(--sans);
}
.neo-links__name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.neo-links--dense .neo-links__name { font-size: 0.98rem; }
.neo-links__meta { font-size: 0.9rem; opacity: 0.7; }
.neo-links__grid a:hover .neo-links__name { text-decoration: underline; text-underline-offset: 3px; }

/* ── Inline contact form ───────────────────────────────────────────────────── */
.neo-contact { padding-block: clamp(4rem, 8vw, 7rem); }
.neo-contact__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.neo-contact__intro .neo-p { margin-top: clamp(1rem, 2vw, 1.4rem); }
.neo-contact form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1.8rem; }
.neo-contact .pseo-field { display: flex; flex-direction: column; gap: 0.5rem; }
.neo-contact .pseo-field--wide,
.neo-contact .neo-contact__foot { grid-column: 1 / -1; }
.neo-contact .pseo-field > span { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; }
.neo-contact .req { color: var(--neo-coral); margin-left: 0.3em; }
.neo-contact input,
.neo-contact textarea {
  font: inherit; font-size: 1.05rem; color: var(--neo-ink); background: transparent;
  border: 0; border-bottom: 1.5px solid var(--neo-ink); border-radius: 0; padding: 0.4rem 0; width: 100%;
}
.neo-contact textarea { min-height: 7.5rem; border: 1.5px solid var(--neo-ink); padding: 0.8rem 0.9rem; resize: vertical; }
.neo-contact input:focus,
.neo-contact textarea:focus { outline: none; border-color: var(--neo-coral); }
.neo-contact__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.neo-contact button:disabled { opacity: 0.55; cursor: default; }
.neo-contact .pseo-form-note { margin: 0; font-size: 0.95rem; min-height: 1.2em; }
.neo-contact .pseo-form-privacy { margin: 0; flex-basis: 100%; font-size: 0.85rem; opacity: 0.7; }
.neo-contact .pseo-form-privacy a { color: inherit; }

@media (max-width: 780px) {
  /* 44 services in one column is a scroll, not a list. */
  .neo-links--dense .neo-links__grid { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .neo-links--dense .neo-links__meta { display: none; }
  .neo-links--dense .neo-links__grid a,
  .neo-links--dense .neo-links__grid .neo-links__plain { padding: 0.55rem 0; }
  .neo-links--dense .neo-links__name { font-size: 0.9rem; line-height: 1.3; }
  .neo-faq__grid,
  .neo-contact__grid,
  .neo-contact form { grid-template-columns: 1fr; }
}
