/*
 * File: pages.css
 * Purpose: Supporting-page layouts using the landing page's shared brand tokens.
 * Responsibilities: Support disclosures, Pro comparisons and the founder story.
 */

/* FAQ answers use native disclosures, with visible keyboard focus and touch space. */
.support-faqs {
  max-width: 850px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.support-faqs > h2 {
  margin: 16px 0 40px;
  font-size: var(--type-section-title);
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.faq-group + .faq-group {
  margin-top: 40px;
}
.faq-group > h3 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: var(--type-lead);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  background: var(--surface-soft);
  padding: 16px 20px;
  border-radius: 10px;
}
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 20px 4px;
  list-style: none;
  cursor: pointer;
  font-size: var(--type-body);
  font-weight: 600;
  line-height: 1.5;
}
.faq-item > summary::-webkit-details-marker {
  display: none;
}
.faq-item > summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 400;
}
.faq-item[open] > summary::after {
  content: "−";
}
.faq-item > summary:focus-visible {
  outline-color: var(--ink);
  outline-offset: 2px;
}
.faq-answer {
  max-width: 720px;
  padding: 0 32px 24px 4px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.9;
}
.faq-answer p + p {
  margin-top: 16px;
}
.faq-answer a {
  color: var(--ink);
}

/* Shared supporting-page rhythm reuses the landing page palette and type. */
.section-shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}
.page-hero {
  width: min(1280px, calc(100% - 48px));
  margin: 8px auto 0;
  padding: clamp(32px, 6vw, 88px);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
}
.split-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 56px;
}
.page-hero h1 {
  margin: 28px 0;
  font-size: var(--type-page-title);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.page-hero h1 span,
.section-title span {
  color: var(--heading-accent);
}
/* Only page-level H1 accents use brand green; secondary headings keep muted lavender. */
.page-hero h1 .heading-accent,
.support-intro h1 .heading-accent {
  color: var(--hero-heading-accent);
}
.page-hero-copy > p {
  max-width: 550px;
  margin-bottom: 32px;
  color: var(--muted);
  line-height: 1.9;
  font-size: var(--type-body);
}
.page-hero .text-link {
  display: block;
  width: fit-content;
  margin-top: 24px;
  font-size: var(--type-support);
}
.page-hero a:focus-visible,
.story-body a:focus-visible {
  outline-color: var(--ink);
}
.section-title {
  margin: 24px 0 48px;
  font-size: var(--type-section-title);
  letter-spacing: -0.04em;
  line-height: 1.2;
}
/* Static artwork complements the homepage badge without adding another animation. */
.pro-art {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #eeebf6;
  min-height: 360px;
  align-content: center;
}
.pro-icon-wrap {
  position: relative;
  width: min(100%, 320px);
}
.pro-icon-wrap img {
  display: block;
  border-radius: 24%;
  box-shadow: 0 24px 40px #17152f25;
}
.pro-stamp {
  position: absolute;
  right: -12px;
  bottom: 12px;
  padding: 8px 20px;
  border: 4px solid #eeebf6;
  border-radius: 40px;
  background: var(--green);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}
.pro-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-block: 88px;
}
.benefit-card .eyebrow {
  color: var(--green);
}
.benefit-card h2 {
  margin: 24px 0 20px;
  font-size: var(--type-card-title);
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.benefit-card p {
  color: var(--lavender);
  font-size: var(--type-body);
  line-height: 1.9;
}
/* Real table semantics keep the comparison understandable without CSS. */
.comparison-section {
  padding-block: 80px;
  background: var(--paper);
  color: var(--ink);
}
.pro-comparison {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
  font-size: var(--type-body);
  line-height: 1.6;
}
.pro-comparison caption {
  margin-bottom: 20px;
  text-align: left;
  color: var(--muted);
  font-size: var(--type-support);
}
.pro-comparison th,
.pro-comparison td {
  padding: 24px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.pro-comparison th:first-child {
  width: 44%;
  padding-left: 0;
}
.pro-comparison thead th:last-child {
  background: var(--green);
}
.pro-comparison tbody td:last-child {
  background: #5def7b14;
  font-weight: 600;
}
.section-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: var(--type-support);
  line-height: 1.8;
}
.competition-section {
  padding-block: 88px;
}
.competition-section .section-title span {
  color: var(--green);
}
.competition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.competition-card {
  padding: 32px 28px;
  border: 1px solid #b5b5df55;
  border-radius: 20px;
}
.access-label {
  color: var(--lavender);
  font-size: var(--type-label);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.competition-card h3 {
  margin: 20px 0;
  font-size: 28px;
  letter-spacing: -0.035em;
}
.competition-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: var(--type-body);
  line-height: 2.2;
}
.competition-card-pro {
  border-color: var(--green);
}
.competition-card-pro .access-label {
  color: var(--green);
}
.competition-future {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #b5b5df55;
}
.competition-future h3 {
  font-size: 22px;
  font-weight: 600;
}
.competition-future p {
  color: var(--lavender);
  font-size: var(--type-body);
  line-height: 1.9;
}
.page-closing {
  padding: 80px 24px;
  background: #292345;
  text-align: center;
}
.page-closing h2 {
  max-width: 750px;
  margin: 28px auto;
  font-size: var(--type-section-title);
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.page-closing > p {
  max-width: 600px;
  margin: 0 auto 32px;
  color: var(--lavender);
  line-height: 1.9;
}
.page-closing .subscription-note {
  max-width: 580px;
  margin: 28px auto 0;
  font-size: var(--type-support);
}
/* The founder story stays fully visible, with a compact optional contents list. */
.about-hero {
  padding-bottom: 64px;
}
.about-hero h1 {
  max-width: 880px;
  font-size: var(--type-section-title);
}
.about-hero > p {
  max-width: 700px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.9;
}
.story-shell {
  margin-top: 24px;
  padding: 72px max(24px, calc((100vw - 1120px) / 2)) 88px;
  background: var(--navy);
  color: var(--paper);
}
.story-layout {
  display: grid;
  grid-template-columns: clamp(260px, 27%, 310px) minmax(0, 760px);
  justify-content: space-between;
  gap: 40px;
}
.story-contents {
  align-self: start;
  position: sticky;
  top: 32px;
  background: #29214a;
  padding: 24px;
  border-radius: 18px;
}
.story-contents ol {
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--lavender);
  font-size: var(--type-body);
  line-height: 1.7;
}
.story-contents li {
  padding: 0 0 16px 4px;
}
.story-body section + section {
  margin-top: 24px;
}
.story-body h2 {
  margin-bottom: 28px;
  font-size: var(--type-subheading);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.story-body p {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.95;
}
.story-body p + p {
  margin-top: 22px;
}
@media (max-width: 800px) {
  .split-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pro-art {
    max-width: 480px;
    width: 100%;
    justify-self: center;
    gap: 0;
    padding: 36px;
    min-height: 360px;
    align-content: center;
  }
  .pro-benefits,
  .competition-grid,
  .competition-future,
  .story-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .pro-benefits {
    gap: 40px;
    padding-block: 56px;
  }
  .benefit-card + .benefit-card {
    padding-top: 32px;
    border-top: 1px solid #b5b5df55;
  }
  .benefit-card h2 br {
    display: none;
  }
  .competition-future {
    gap: 16px;
  }
  .story-layout {
    gap: 40px;
  }
  .story-contents {
    position: static;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    background: #29214a;
    padding: 24px;
    border-radius: 18px;
  }
  .story-contents ol {
    columns: 2;
    column-gap: 32px;
    font-size: var(--type-body);
    color: var(--lavender);
  }
}
@media (max-width: 580px) {
  .page-hero {
    width: calc(100% - 24px);
    padding: 36px 24px;
    border-radius: 18px;
  }
  .page-hero h1 {
    font-size: var(--type-page-title);
  }
  .page-hero-copy > p,
  .about-hero > p {
    font-size: var(--type-body);
  }
  .pro-comparison {
    font-size: var(--type-body);
  }
  .pro-comparison th,
  .pro-comparison td {
    padding: 20px 8px;
  }
  .pro-comparison th:first-child {
    width: 40%;
  }
  .comparison-section,
  .competition-section,
  .page-closing,
  .story-shell {
    padding-block: 56px;
  }
  .story-contents ol {
    columns: 1;
    font-size: var(--type-body);
    color: var(--lavender);
  }
}

/* Story and support cards use one readable body role and deliberate tonal grouping. */
.story-body section {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
}
.story-body section:nth-child(even) {
  background: var(--surface-soft);
}
.story-contents .eyebrow {
  font-size: var(--type-support);
}
.story-contents a:focus-visible {
  outline-color: var(--green);
}
.support-intro {
  max-width: 1120px;
  padding: clamp(24px, 4vw, 48px);
  margin-bottom: 24px;
  border-radius: 18px;
  background: var(--surface-soft);
}
.support-intro h1 {
  margin-top: 20px;
}
.support-intro p {
  max-width: 700px;
}
.support-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
  max-width: 1120px;
  margin-bottom: 48px;
}
.support-sections section {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}
/* Paired help cards share an edge; the lighter request panel closes the row. */
.support-sections section > .button {
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 0;
}
.support-sections section > p:last-of-type:not(:last-child) {
  margin-bottom: 24px;
}
.support-sections #launch-requests {
  grid-column: 1 / -1;
  background: var(--surface-soft);
}
.support-sections #launch-requests p {
  max-width: 760px;
}
.support-sections section:first-child {
  background: var(--navy);
  color: var(--paper);
}
.support-sections section:first-child p,
.support-sections section:first-child li {
  color: var(--lavender);
}
.support-sections section:first-child a:not(.button) {
  color: var(--paper);
}
.support-sections section:first-child .button {
  background: var(--green);
  color: var(--ink);
}
.support-intro a:focus-visible,
.support-sections section:not(:first-child) a:focus-visible {
  outline-color: var(--ink);
}
.support-faqs {
  max-width: 1120px;
}
@media (max-width: 800px) {
  .story-layout,
  .support-sections {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-contents {
    padding: 24px;
  }
  .pro-art {
    min-height: 0;
  }
}
@media (max-width: 580px) {
  .pro-comparison {
    font-size: var(--type-support);
  }
  .story-body section {
    padding: 24px 20px;
  }
  .about-hero h1 {
    font-size: var(--type-section-title);
  }
}

/* Policy text remains readable without scripts, in the shared web hierarchy. */
.policy-main { background: var(--paper); color: var(--ink); padding-block: 24px 80px; }
.policy-hero { padding-block: 40px; }
.policy-hero h1 { font-size: var(--type-section-title); }
.policy-hero > p { max-width: 760px; font-size: var(--type-body); line-height: 1.8; }
.policy-switcher { margin-top: 24px; font-size: var(--type-body); line-height: 2; }
.policy-switcher a[aria-current] { font-weight: 700; }
.policy-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 40px; justify-content: space-between; align-items: start; padding-top: 32px; }
.policy-contents { position: sticky; top: 24px; padding: 24px; background: var(--surface-soft); border-radius: 16px; max-height: calc(100vh - 48px); overflow-y: auto; }
.policy-contents h2 { font-size: var(--type-lead); margin-bottom: 20px; }
.policy-contents ul { padding-left: 18px; font-size: var(--type-body); line-height: 1.7; }
.policy-contents li + li { margin-top: 12px; }
.policy-body { min-width: 0; }
.policy-body section { padding-block: 28px; border-top: 1px solid var(--line); }
.policy-body h2 { font-size: var(--type-subheading); line-height: 1.3; letter-spacing: -0.025em; margin-bottom: 20px; }
.policy-body p, .policy-body li { font-size: var(--type-body); line-height: 1.9; color: var(--muted); }
.policy-body p + p { margin-top: 16px; }
.policy-body ul { padding-left: 24px; margin-block: 16px; }
.policy-body a, .policy-contents a, .policy-switcher a { color: var(--ink); }
.policy-main a:focus-visible { outline-color: var(--ink); }
.policy-support { margin-top: 24px; }
@media (max-width: 800px) {
  .policy-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .policy-contents { position: static; max-height: none; }
  .policy-contents ul { columns: 2; column-gap: 32px; }
  .policy-contents li { break-inside: avoid; }
}
@media (max-width: 580px) {
  .policy-contents ul { columns: 1; }
  .policy-hero { padding: 24px 12px; }
}

/* Compliance reference tables remain readable on narrow screens. */
.policy-table-scroll { max-width: 100%; overflow-x: auto; margin-block: 20px; }
.policy-table-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.policy-table { width: 100%; border-collapse: collapse; font-size: var(--type-support); line-height: 1.65; text-align: left; }
.policy-table th, .policy-table td { padding: 12px; border: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.policy-table thead th { background: var(--navy); color: var(--paper); }
.policy-table tbody th { background: var(--surface-soft); color: var(--ink); }
.support-sections #safety { grid-column: 1 / -1; }
