/* ==========================================================================
   PAconnect — AI Services page
   Loads AFTER styles.css and only adds what this page introduces:
   the current-nav state, the pillar footnote, the Hub showcase and the FAQ.
   Every colour here comes from the token ramp already declared in styles.css.
   ========================================================================== */

/* ------------------------------------------------------- current nav -- */

/* The AI page now lives inside the Services panel, so the top-level marker
   goes on the trigger whose panel holds the current page.
   green-400, not green-700 — the dark green that worked on a white header
   measures 2.3:1 on ink. */
.site-nav .nav-trigger.is-current {
  color: var(--green-400);
  border-bottom-color: var(--gold-500);
}

/* ---------------------------------------------- secondary light button -- */

.btn--quiet {
  background: transparent;
  color: var(--ink-800);
  border: 1px solid var(--ink-300);
}
.btn--quiet:hover { background: var(--white); border-color: var(--ink-500); color: var(--ink-900); }
.btn--quiet:active { transform: translateY(1px); }

/* --------------------------------------------- pillar footnote (dark) -- */

.services__note {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 0;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-left: 3px solid var(--green-500);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  font-size: 15px; line-height: 1.7;
  color: var(--ink-300);
}
.services__note em { color: var(--ink-100); font-style: italic; }
.services__note-mark {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-top: 1px;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--green-400);
}

/* ------------------------------------------------------------- hub --- */

.hub { background: var(--ink-50); }
.hub__inner {
  max-width: var(--shell); margin: 0 auto;
  padding: var(--section-pad);
  display: flex; flex-direction: column; gap: 40px;
}

/* The screenshot runs the full width of the shell. It is the argument of the
   whole section, so it gets the room to be legible rather than sitting in a
   column beside the copy. */
.hub__frame {
  border: 1px solid var(--ink-300);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-900);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .16);
}
.hub__chrome {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  background: var(--ink-900);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.hub__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}
.hub__url {
  margin-left: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .02em;
  color: var(--ink-400);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hub__scroll { display: block; }
.hub__shot { display: block; width: 100%; height: auto; }
.hub__shot[hidden] { display: none; }

/* Shown only where the screenshot has to be scrolled to be readable. */
.hub__hint {
  display: none;
  margin: 10px 0 0;
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-500);
}

.hub__foot {
  display: grid; gap: 32px; align-items: start;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.hub__tabs { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.hub__tab {
  display: flex; flex-direction: column; gap: 5px;
  text-align: left;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-left: 3px solid var(--ink-200);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease),
              box-shadow 180ms var(--ease);
}
.hub__tab:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.hub__tab.is-active { border-left-color: var(--gold-500); border-color: var(--ink-300); }
.hub__tab.is-active .hub__tab-title { color: var(--green-700); }
.hub__tab-title {
  font-family: 'Oswald', sans-serif;
  font-size: 17px; font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink-900);
}
.hub__tab-note { font-size: 14px; line-height: 1.6; color: var(--ink-600); }

.hub__contents { display: flex; flex-direction: column; gap: 12px; }
.hub__list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 15px; line-height: 1.65; color: var(--ink-700);
}
.hub__list li { padding-left: 18px; position: relative; }
.hub__list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-500);
}
.hub__list strong { color: var(--ink-900); }

.hub__cta {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px;
  background: var(--green-50);
  border: 1px solid var(--green-300);
  border-radius: 10px;
}
.hub__cta p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-800); }
.hub__cta-sub { color: var(--ink-600) !important; font-size: 14px !important; }
.hub__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* ------------------------------------------------------ responsive --- */

@media (max-width: 1024px) {
  .hub__foot { grid-template-columns: 1fr; gap: 28px; }
}

/* Below this width the hub screenshot scales down past the point of being
   readable, so it scrolls sideways at a legible size instead. The chrome bar
   stays put because only the image sits inside the scroller. */
@media (max-width: 900px) {
  .hub__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hub__shot { width: 900px; max-width: none; }
  .hub__hint { display: block; }
}

@media (max-width: 720px) {
  .services__note { padding: 18px; font-size: 14px; }
  .hub__tabs { grid-template-columns: 1fr; }
  .hub__cta-actions .btn { flex: 1 1 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hub__tab:hover { transform: none; }
}

/* The headline's second line is one character longer than the first and was
   wrapping a single word onto a third line at desktop width. */
@media (min-width: 901px) {
  :root { --hero-measure: 74%; }
}

/* This section headline is long; at the shared 70ch container width it broke
   into four short lines beside an empty half-page. The measure is kept on the
   paragraph alone. */
.hub .section-head { max-width: none; }
.hub .section-head p { max-width: 70ch; }


/* ── the difference checklist (ai-services.html, PK 22 Oct) ──────────────────
   Three lines that tick in, each backed by its number, with a gold line
   drawing down through the ticks. Replaced the competitor toggle. RESTING
   STATE = ALL TICKED; js/ai-difference.js adds .armed then .s1-.s3. */
.dchk { position: relative; list-style: none; margin: 0; padding: 8px 34px;
  background: rgba(10, 12, 10, .62); border: 1px solid #2b322d; border-radius: 10px; }
.dchk::before { content: ''; position: absolute; left: calc(34px + 29px); top: 48px; bottom: 48px; width: 3px; margin-left: -1.5px;
  background: var(--gold-500); box-shadow: 0 0 10px rgba(240, 168, 48, .5); transform-origin: top;
  transition: transform 2.2s cubic-bezier(.45, 0, .3, 1); }
.dchk__row { position: relative; display: grid; grid-template-columns: 58px 1fr auto; gap: 24px; align-items: center;
  padding: 17px 0; border-bottom: 1px solid #2b322d; transition: opacity .45s ease; }
.dchk__row:last-child { border-bottom: 0; }
.dchk__tick { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-400); border: 3px solid var(--green-400); color: #0a0c0a;
  font: 800 26px/1 'Open Sans', sans-serif; box-shadow: 0 0 0 7px rgba(92, 191, 99, .16);
  transition: background .35s ease, color .35s ease, transform .5s cubic-bezier(.2, 1.8, .4, 1), box-shadow .5s ease; }
.dchk__row h3 { margin: 0; font: 800 23px/1.25 'Open Sans', sans-serif; color: #fff; }
.dchk__row p { margin: 5px 0 0; font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.dchk__n { text-align: right; font: 600 52px/1 'Oswald', sans-serif; color: var(--gold-400); }
.dchk__n small { display: block; margin-top: 6px; font: 700 11px/1.2 'Open Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.dchk__n--mark { color: var(--green-400); }

.dchk.armed::before { transform: scaleY(0); }
.dchk.armed .dchk__row { opacity: .3; }
.dchk.armed .dchk__tick { background: #121613; color: transparent; border-color: #39423b; box-shadow: none; transform: scale(.85); }
.dchk.s1::before { transform: scaleY(1); }
.dchk.s1 .dchk__row:nth-child(1), .dchk.s2 .dchk__row:nth-child(2), .dchk.s3 .dchk__row:nth-child(3) { opacity: 1; }
.dchk.s1 .dchk__row:nth-child(1) .dchk__tick, .dchk.s2 .dchk__row:nth-child(2) .dchk__tick, .dchk.s3 .dchk__row:nth-child(3) .dchk__tick {
  background: var(--green-400); color: #0a0c0a; border-color: var(--green-400); box-shadow: 0 0 0 7px rgba(92, 191, 99, .16); transform: none; }

@media (max-width: 900px) {
  .dchk { padding: 4px 18px; }
  .dchk::before { left: calc(18px + 22px); }
  .dchk__row { grid-template-columns: 44px 1fr; gap: 16px; }
  .dchk__tick { width: 44px; height: 44px; font-size: 20px; }
  .dchk__row h3 { font-size: 18px; }
  .dchk__n { grid-column: 2; text-align: left; font-size: 34px; }
}


/* ==========================================================================
   "WATCH IT IN A MINUTE" — added 31 Oct 2026 (Explainers sub-session 2).
   The Why change story, narrated by PK, in about a minute. OPT-IN: the two
   story paragraphs stay the default, and nothing for the player
   (js/ai-explainer.js, media/ai-explainer.mp3, the Anton face) loads until
   the button is pressed. The square player then takes the paragraphs' place
   in the left column; "Close and show the text" puts them back. The
   tap-to-reveal list on the right is not touched.

   The .explainer rules mirror the phone page's block in service-v2.css,
   which this page does not load; if the two ever change together, they are
   the candidate for a shared file. Only the frame, the buttons and the focus
   rings are the site's. INSIDE the frame the player keeps its own
   editorial-collage look on purpose, so the colors below the stage are its
   own. Source and decisions: prototypes/voice-explainer-ai-tab/index.html.
   ========================================================================== */
.ai-watch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }
.ai-watch[hidden] { display: none; }
.ai-watch .btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; }
.ai-watch .btn svg { width: 13px; height: 13px; flex: none; }
.ai-watch__note { font-size: 14px; color: var(--ink-600); }

.explainer { width: 100%; display: grid; gap: 12px; scroll-margin-top: 110px; }
.explainer[hidden] { display: none; }
.explainer__top {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 6px 16px;
}
/* Two classes, to outrank .friction__intro p (17px body copy). */
.explainer .explainer__label { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--ink-600); }

.explainer__frame {
  border-radius: 12px; overflow: hidden;
  background: #151714; box-shadow: 0 14px 44px rgba(20, 18, 12, .28);
}
/* Square: it shares the row with the symptom list, and it is also the
   later Instagram/Facebook cut. */
.explainer__stage { position: relative; aspect-ratio: 1 / 1; background: #151714; overflow: hidden; }
.explainer__stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Paper grain over everything; the tile is generated by the script. */
.explainer__grain {
  position: absolute; inset: 0; pointer-events: none;
  mix-blend-mode: multiply; opacity: .55; background-size: 220px;
}
.explainer__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 58%, rgba(40, 30, 10, .22) 100%);
}
/* Shown only if the browser refuses to start the sound without another
   click (some do, the first time). */
.explainer__poster {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center;
  background: rgba(10, 12, 10, .35); border: 0; font: inherit; cursor: pointer;
}
.explainer__poster[hidden] { display: none; }
.explainer__poster-btn {
  width: 84px; height: 84px; border-radius: 50%; background: var(--gold-500);
  display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
}
.explainer__poster-btn svg { width: 30px; height: 30px; margin-left: 5px; }
.explainer__poster-lbl {
  background: #151714; color: var(--white); font-weight: 700; font-size: 14px;
  padding: 6px 14px; border-radius: 20px;
}

/* Captions in a strip under the picture, always on. */
.explainer__cap {
  min-height: 78px; display: flex; align-items: center; justify-content: center;
  text-align: center; background: #151714; color: var(--white);
  padding: 12px 22px; font-size: 16px; line-height: 1.45; font-weight: 600;
}
.explainer__cap span { opacity: 0; transition: opacity .25s; }
.explainer__cap.is-on span { opacity: 1; }

.explainer__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; background: var(--ink-950); color: var(--white); font-size: 13px;
}
.explainer__bar .btn { flex: none; padding: 8px 16px; font-size: 13px; }
.explainer__track {
  flex: 1; min-width: 60px; height: 6px; position: relative; cursor: pointer;
  background: rgba(255, 255, 255, .18); border-radius: 3px;
}
/* A taller hit area than the 6px bar shows, for fingers. */
.explainer__track::before { content: ''; position: absolute; inset: -12px 0; }
.explainer__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--gold-500); border-radius: 3px;
}
.explainer__time { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .78); white-space: nowrap; }

@media (max-width: 600px) {
  .explainer__cap { min-height: 64px; padding: 10px 14px; font-size: 14px; }
  .explainer__bar { gap: 8px; padding: 10px; }
  .explainer__bar .btn { padding: 7px 12px; }
  .explainer__time { font-size: 12px; }
  .explainer__poster-btn { width: 60px; height: 60px; }
}
