/* ==========================================================================
   Inner pages, set A: why.html, support.html, faq.html (branch `redesign`).
   Loaded after redesign.css on these three pages only. Uses the shared
   tokens, island, cards, character slots and gutter decoration from
   redesign.css; everything here is scoped under .pa.
   ========================================================================== */

/* ---------- Page head island ---------- */
.pa-head-inner { position: relative; z-index: 1; }
.pa-head-copy { max-width: 640px; }
.pa-head .lede { max-width: 560px; }

/* Jump chips (anchors to sections on the same page) */
.pa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.pa-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(139, 179, 218, .55);
  border-radius: var(--radius-pills);
  color: var(--color-white-surface);
  font-size: 16px;
  line-height: 19px;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.pa-chips a:hover { background: rgba(255, 255, 255, .1); border-color: var(--color-white-surface); }

/* Character slot: from 900 px it stands at the right of the island and
   crosses its bottom edge. Phones leave the island text-only. */
.pa-head-art { display: none; }
@media (min-width: 900px) {
  .pa-head { min-height: 400px; }
  .pa-head-copy { max-width: calc(100% - 300px); }
  .pa-head-art {
    display: block;
    position: absolute;
    z-index: 2;
    right: max(calc(var(--gutter) + 8px), calc((100% - var(--page-max-width)) / 2 + 16px));
    bottom: -48px;
    height: 300px;
    pointer-events: none;
  }
  .pa-head-art .rs-char-slot { width: auto; height: 100%; }
}
@media (min-width: 1200px) {
  .pa-head-art { height: 320px; }
}

/* ---------- Body band ---------- */
.pa-body { position: relative; padding-top: 56px; padding-bottom: 96px; }
@media (min-width: 900px) { .pa-body { padding-top: 112px; padding-bottom: 136px; } }

/* Gutter decoration (the blog's layer): spans the body band, full viewport
   width, and shows only where the gutter beside the content is real. */
@media (min-width: 1100px) {
  .pa .blog-ambient {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
  }
  .pa-body > :not(.blog-ambient) { position: relative; z-index: 1; }
  .pa-faq .blog-ambient { --clear: 900px; }
  .pa-why .blog-ambient { --clear: 1060px; }
  .pa-support .blog-ambient { --clear: 1100px; }
}
@media (min-width: 1100px) and (max-width: 1299px) {
  .pa-why .blog-ambient,
  .pa-support .blog-ambient { display: none; }
}

/* ---------- Shared bits ---------- */
.pa a:not(.rs-btn):not(.pa-arrow) { text-underline-offset: 3px; text-decoration-color: var(--color-signal-blue); }
.pa a:not(.rs-btn):not(.pa-arrow):hover { text-decoration-color: currentColor; }

/* Unwritten copy: a visible pending block (see CLAUDE.md, "Placeholder system") */
.pa .pending {
  padding: 18px 20px;
  border: 1.5px dashed rgba(24, 61, 109, .35);
  border-radius: var(--radius-cards);
  background: var(--color-ice-surface);
  color: var(--color-edge-navy);
  font-size: 16px;
  line-height: 1.45;
}

.pa-mail { width: 20px; height: 20px; flex: none; }

/* App card: icon, bold title, one or two lines, one action */
.pa-app-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 22px;
  border-radius: var(--radius-cards);
  background: var(--color-white-surface);
  box-shadow: var(--shadow-xl);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.pa-app-card:hover { transform: scale(1.02); box-shadow: 0 10px 40px rgba(24, 61, 109, .09); }
.pa-app-card .rs-card-icon { width: 56px; height: 56px; }
.pa-app-card > div { min-width: 0; }
.pa-app-card h2,
.pa-app-card h3 {
  font-size: var(--text-card-title);
  line-height: var(--leading-card-title);
  font-weight: 700;
}
.pa-app-card p { margin-top: 6px; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.pa-app-card .rs-btn { margin-top: 18px; white-space: normal; text-align: left; }
@media (min-width: 640px) { .pa-app-card { padding: 30px 30px 30px 32px; } }

.pa-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-edge-navy);
  text-decoration: none;
}
.pa-arrow .rs-chevron { width: 18px; height: 18px; }
.pa-arrow:hover .rs-chevron { transform: translateX(4px); }

/* ---------- Why ---------- */
.pa-story {
  position: relative;
  max-width: 1000px;
  margin: 72px auto 0;
  padding: 28px 20px 32px;
  border-radius: var(--radius-cards);
  background: var(--color-white-surface);
  box-shadow: var(--shadow-xl);
}
.pa-story-perch {
  position: absolute;
  right: 12px;
  top: -92px;
  width: 124px;
  pointer-events: none;
}
.pa-story-perch .rs-char-slot { min-height: 0; padding: 8px; font-size: 12px; line-height: 16px; }
.pa-story-perch .rs-char-slot::before { top: 10px; width: 24px; height: 24px; margin-left: -12px; }
.pa-story-perch .rs-char-slot span { margin-top: 22px; }
.pa-story-grid { display: grid; gap: 24px; }
.pa-photo { max-width: 200px; }
.pa-photo-slot {
  flex-direction: column;
  gap: 6px;
  aspect-ratio: 3 / 4;
  padding: 16px;
  border-color: rgba(24, 61, 109, .35);
  border-radius: var(--radius-images);
  background: var(--color-ice-surface);
  color: var(--color-edge-navy);
  font-size: 13px;
  line-height: 1.3;
}
.pa-photo-slot .note { opacity: .7; }
.pa-story-copy > * + * { margin-top: 18px; }
.pa-story-copy p { font-size: var(--text-body); line-height: 1.55; }
@media (min-width: 640px) {
  .pa-story { padding: 40px; }
  .pa-story-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
  .pa-story-perch { right: 32px; top: -120px; width: 160px; }
}
@media (min-width: 900px) {
  .pa-story { margin-top: 40px; padding: 56px; }
  .pa-story-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 56px; }
  .pa-photo { max-width: none; }
  .pa-story-perch { right: auto; left: 72px; top: -150px; width: 180px; }
}

/* Long story (family story, 2026-09-28): one reading column with section
   heads and 3:2 picture slots between the sections. */
.pa-story--long { max-width: 860px; }
.pa-story--long .pa-story-copy { max-width: 680px; margin: 0 auto; }
.pa-story-copy h2 {
  margin-top: 44px;
  font-size: 26px;
  line-height: 1.25;
  color: var(--color-edge-navy);
}
.pa-story-copy h2:first-of-type { margin-top: 0; }
.pa-fig { margin: 32px 0; }
.pa-fig-slot {
  flex-direction: column;
  gap: 6px;
  aspect-ratio: 3 / 2;
  padding: 16px;
  border-color: rgba(24, 61, 109, .35);
  border-radius: var(--radius-images);
  background: var(--color-ice-surface);
  color: var(--color-edge-navy);
  font-size: 13px;
  line-height: 1.3;
}
.pa-fig-slot .note { opacity: .7; }
.pa-fig img { display: block; width: 100%; height: auto; border-radius: var(--radius-images); }
.pa-sign { font-weight: 700; color: var(--color-edge-navy); }
@media (min-width: 900px) { .pa-story-copy h2 { font-size: 30px; } }

.pa-halves { margin-top: 80px; }
.pa-app-grid { display: grid; gap: 15px; max-width: 1000px; margin: 32px auto 0; }
@media (min-width: 760px) { .pa-app-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (min-width: 900px) { .pa-halves { margin-top: 120px; } }

/* ---------- Support ---------- */
.pa-choose { display: grid; gap: 15px; max-width: 1040px; margin-inline: auto; }
@media (min-width: 760px) { .pa-choose { grid-template-columns: 1fr 1fr; gap: 30px; } }
.pa-app-card--big { scroll-margin-top: 96px; }
.pa-app-card--big h2 { font-size: 24px; line-height: 1.25; }
.pa-app-card--big p { font-size: var(--text-body); line-height: 1.4; }
@media (max-width: 479px) {
  .pa-app-card--big { flex-direction: column; gap: 12px; }
  .pa-app-card--big .rs-btn { width: 100%; justify-content: flex-start; }
}

/* Contact block: a dark banner; the character crosses its top edge.
   A real pale band (120 px desktop, 80+ phone) keeps it apart from the island. */
.pa-contact {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 1040px;
  margin: 150px auto 0;
  padding: 0 22px 32px;
  border-radius: var(--radius-cards);
  background: var(--panel-dark-bg);
  color: var(--color-white-surface);
}
.pa-contact :focus-visible { outline-color: var(--color-white-surface); }
.pa-contact-art {
  order: -1;
  align-self: flex-end;
  width: min(52%, 170px);
  margin: -96px 0 12px;
  pointer-events: none;
}
.pa-contact-art .rs-char-slot { min-height: 0; padding: 8px; font-size: 12px; line-height: 16px; }
.pa-contact-art .rs-char-slot span { margin-top: 26px; }
@media (min-width: 900px) { .pa-contact-art .rs-char-slot { font-size: 14px; line-height: 22px; } }
.pa-contact-copy { position: relative; z-index: 1; }
.pa-contact h2 {
  font-size: clamp(26px, 6.6vw, 38px);
  line-height: 1.25;
  font-weight: 700;
  text-wrap: balance;
}
.pa-contact h2 a { color: var(--color-white-surface); text-decoration-color: var(--color-signal-orange) !important; }
.pa-contact p { margin-top: 14px; font-size: var(--text-body); line-height: 1.4; color: var(--color-white-surface); }
.pa-contact p a { color: var(--color-white-surface); }
.pa-contact-btn { margin-top: 26px; max-width: 100%; white-space: normal; min-height: 44px; }
@media (min-width: 640px) { .pa-contact { padding: 0 40px 40px; } }
@media (min-width: 900px) {
  .pa-contact { margin-top: 170px; min-height: 300px; justify-content: center; padding: 56px 64px; }
  .pa-contact-copy { max-width: calc(100% - 330px); }
  .pa-contact-art {
    position: absolute;
    right: 56px;
    bottom: 0;
    width: 300px;
    height: calc(100% + 96px);
    margin: 0;
  }
  .pa-contact-art .rs-char-slot { height: 100%; aspect-ratio: auto !important; }
}

/* ---------- FAQ ---------- */
.pa-faq-groups { max-width: 820px; margin-inline: auto; }
.pa-faq-group { scroll-margin-top: 88px; }
.pa-faq-group + .pa-faq-group { margin-top: 64px; }
.pa-faq-title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pa-faq-title .rs-card-icon { width: 48px; height: 48px; }
.pa-faq-title h2 {
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.2;
  font-weight: 700;
}
.pa-faq-list { display: grid; gap: 12px; }

.pa-faq-list details {
  border-radius: var(--radius-cards);
  background: var(--color-white-surface);
  box-shadow: var(--shadow-xl);
  transition: box-shadow var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.pa-faq-list details:hover { box-shadow: 0 10px 40px rgba(24, 61, 109, .09); }
.pa-faq-list summary {
  position: relative;
  display: block;
  padding: 20px 60px 20px 20px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-cards);
}
.pa-faq-list summary::-webkit-details-marker { display: none; }
/* A plus that turns to a cross when open */
.pa-faq-list summary::before,
.pa-faq-list summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 16px;
  height: 2.5px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--color-edge-navy);
  transition: transform var(--t-mid) var(--ease);
}
.pa-faq-list summary::after { transform: rotate(90deg); }
.pa-faq-list details[open] summary::before { transform: rotate(45deg); }
.pa-faq-list details[open] summary::after { transform: rotate(135deg); }
.pa-faq-list summary:focus-visible { outline-offset: 2px; }
.pa-faq-list details p {
  padding: 0 20px 22px;
  font-size: 16px;
  line-height: 1.55;
  animation: rs-reveal-down .3s ease-out both;
}
.pa-faq-list details[open] { box-shadow: 0 10px 40px rgba(24, 61, 109, .09), inset 3px 0 0 var(--color-signal-blue); }
@media (min-width: 640px) {
  .pa-faq-list summary { padding: 22px 64px 22px 28px; font-size: var(--text-card-title); line-height: var(--leading-card-title); }
  .pa-faq-list details p { padding: 0 64px 26px 28px; font-size: var(--text-body); }
}

.pa-stuck {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 96px;
  padding: 28px 20px;
  border-radius: var(--radius-cards);
  background: var(--color-white-surface);
  box-shadow: var(--shadow-xl);
}
.pa-stuck-art {
  width: 150px;
  margin-top: -90px;
  pointer-events: none;
}
.pa-stuck-art .rs-char-slot { min-height: 0; font-size: 12px; line-height: 16px; }
.pa-stuck p { flex: 1 1 100%; text-align: center; }
.pa-stuck .rs-btn { white-space: normal; }
@media (min-width: 640px) {
  .pa-stuck { flex-wrap: nowrap; justify-content: flex-start; padding: 24px 40px 24px 28px; }
  .pa-stuck p { flex: 1 1 auto; text-align: left; }
  .pa-stuck-art { width: 170px; margin-top: -80px; margin-bottom: -24px; align-self: flex-end; }
}

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  .pa-app-card:hover,
  .pa-arrow:hover .rs-chevron { transform: none; }
}

/* Character art replacing the placeholder slots */
@media (min-width: 900px) {
  .pa-head-art .rs-char-art { width: auto; height: 100%; }
  /* Original size, but sized by height so the square image is never stretched. */
  .pa-contact-art .rs-char-art { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: none; }
}
