/* Page layout for new-design pages (feature pages, How our agents work, and
   later the home and platform rebuilds). Requires css/tokens.css (via the
   navbar include) and pairs with css/agentic.css for product visuals.

   Structure
     .pg-hero            dark hero with grid texture; .pg-hero-grid for copy + visual
     .pg-band            a full-width section; add .pg-dark or .pg-light (paper) or .pg-white
     .pg-in              1180px content column
     .pg-head            section label + heading + intro
     .pg-steps           numbered steps (only for real sequences)
     .pg-cards           auto-fit card grid; .pg-card
     .pg-split           two columns (e.g. "What agents do" / "What your people do")
     .pg-control         amber "You stay in control" callout
     .pg-related         links to the other features
     .pg-cta             closing call to action with pilot terms
*/

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--rp-sans); color: var(--rp-text-l); background: var(--rp-white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
.pg-in { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }

/* Type */
.pg h1, .pg h2, .pg h3 { margin: 0; text-wrap: balance; letter-spacing: -0.025em; }
.pg h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.07; }
.pg h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.12; }
.pg h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.pg p { margin: 0; }
.pg-label { font-family: var(--rp-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rp-violet); display: inline-flex; align-items: center; gap: 8px; }
.pg-dark .pg-label, .pg-hero .pg-label { color: var(--rp-violet-2); }
.pg-muted { color: var(--rp-muted-l); }
.pg-dark .pg-muted, .pg-hero .pg-muted { color: var(--rp-muted-d); }

/* Buttons */
.pg-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--rp-sans); font-weight: 700; font-size: 0.94rem; padding: 12px 20px; border-radius: 9px; text-decoration: none; transition: background .15s, border-color .15s, color .15s; border: 1px solid transparent; }
.pg-btn-primary { background: var(--rp-violet); color: #fff; }
.pg-btn-primary:hover { background: var(--rp-violet-hover); }
.pg-btn-ghost { border-color: var(--rp-ink-line); color: var(--rp-text-d); }
.pg-btn-ghost:hover { border-color: var(--rp-violet-2); }
.pg-light .pg-btn-ghost, .pg-white .pg-btn-ghost { border-color: var(--rp-paper-line); color: var(--rp-text-l); }
.pg-light .pg-btn-ghost:hover, .pg-white .pg-btn-ghost:hover { border-color: var(--rp-violet); color: var(--rp-violet); }
.pg-btn:focus-visible, .pg a:focus-visible { outline: 2px solid var(--rp-amber); outline-offset: 3px; }
.pg-link { font-weight: 700; color: var(--rp-violet); text-decoration: none; }
.pg-dark .pg-link { color: var(--rp-violet-2); }
.pg-link:hover { text-decoration: underline; }

/* Hero */
.pg-hero { background-color: var(--rp-ink); color: var(--rp-text-d); padding-block: 80px 96px;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px; }
.pg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.pg-hero-copy { display: flex; flex-direction: column; gap: 22px; }
.pg-hero-copy .pg-sub { font-size: 1.08rem; color: var(--rp-muted-d); max-width: 58ch; }
.pg-hero h1 .accent { color: var(--rp-violet-2); }
.pg-hero h1 .person { color: var(--rp-amber); }
/* Heading accents (rule in CLAUDE.md): violet by default; amber only for a phrase
   about a person deciding, confirming or holding authority. Bright amber is for
   dark backgrounds only — on light backgrounds it fails contrast, so use amber ink. */
.pg-dark :is(h1, h2, h3) .accent { color: var(--rp-violet-2); }
.pg-light :is(h1, h2, h3) .accent, .pg-white :is(h1, h2, h3) .accent { color: var(--rp-violet); }
.pg-dark :is(h1, h2, h3) .person, .pg-cta :is(h1, h2, h3) .person { color: var(--rp-amber); }
.pg-light :is(h1, h2, h3) .person, .pg-white :is(h1, h2, h3) .person { color: var(--rp-amber-ink); }
.pg-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.pg-hero-vis { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pg-hero-vis .rp-illus { text-align: right; }
.pg-crumb { font-family: var(--rp-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rp-faint-d); }
.pg-crumb a { color: var(--rp-muted-d); text-decoration: none; }
.pg-crumb a:hover { color: var(--rp-violet-2); }

/* Bands */
.pg-band { padding-block: 96px; }
.pg-dark { background: var(--rp-ink); color: var(--rp-text-d); }
.pg-light { background: var(--rp-paper); }
.pg-white { background: var(--rp-white); }
.pg-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 48px; }
.pg-head p { font-size: 1.05rem; }
.pg-head.center { margin-inline: auto; text-align: center; align-items: center; }

/* Numbered steps — only for a real sequence */
.pg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: pgstep; }
.pg-steps li { counter-increment: pgstep; background: var(--rp-white); border: 1px solid var(--rp-paper-line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.pg-steps li::before { content: counter(pgstep, decimal-leading-zero); font-family: var(--rp-mono); font-size: 0.74rem; font-weight: 600; color: var(--rp-violet); }
.pg-steps li p { color: var(--rp-muted-l); font-size: 0.93rem; }
.pg-steps li.person::before { color: var(--rp-amber-ink); }
.pg-steps li.person { border-color: rgba(245, 184, 65, 0.55); background: #FFFBF3; }
.pg-dark .pg-steps li { background: var(--rp-ink-2); border-color: var(--rp-ink-line); }
.pg-dark .pg-steps li p { color: var(--rp-muted-d); }
.pg-dark .pg-steps li::before { color: var(--rp-violet-2); }

/* Cards */
.pg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pg-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-card { background: var(--rp-white); border: 1px solid var(--rp-paper-line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pg-card p { color: var(--rp-muted-l); font-size: 0.94rem; }
.pg-card .ico { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--rp-violet-soft); color: var(--rp-violet); font-size: 0.9rem; }
.pg-card .ico.person { background: var(--rp-amber-soft); color: var(--rp-amber-ink); }
.pg-card .ico.record { background: var(--rp-green-soft); color: var(--rp-green-ink); }
.pg-dark .pg-card { background: var(--rp-ink-2); border-color: var(--rp-ink-line); }
.pg-dark .pg-card p { color: var(--rp-muted-d); }
.pg-dark .pg-card .ico { background: rgba(124, 58, 237, 0.18); color: var(--rp-violet-2); }
.pg-dark .pg-card .ico.person { background: rgba(245, 184, 65, 0.14); color: var(--rp-amber); }
.pg-dark .pg-card .ico.record { background: rgba(52, 211, 153, 0.12); color: var(--rp-green); }

/* Two columns */
.pg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.pg-split > div { border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pg-split .agent { background: var(--rp-ink); color: var(--rp-text-d); }
.pg-split .agent .pg-label { color: var(--rp-violet-2); }
.pg-split .person { background: var(--rp-amber-soft); color: var(--rp-text-l); border: 1px solid rgba(245, 184, 65, 0.55); }
.pg-split .person .pg-label { color: var(--rp-amber-ink); }
.pg-split ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 8px; }
.pg-split .agent li { color: #C9C7D8; }
.pg-split.media { align-items: center; }
.pg-split.media > div { padding: 0; border-radius: 0; background: none; border: 0; color: inherit; }

/* "You stay in control" */
.pg-control { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; background: var(--rp-amber-soft); border: 1px solid rgba(245, 184, 65, 0.55); border-radius: 16px; padding: 26px 28px; }
.pg-control .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--rp-amber); color: #1A1405; display: flex; align-items: center; justify-content: center; }
.pg-control h3 { margin-bottom: 6px; }
.pg-control p { color: var(--rp-text-l); }
.pg-control a { color: var(--rp-amber-ink); font-weight: 700; }

/* Related features */
.pg-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pg-related a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--rp-paper-line); border-radius: 12px; background: var(--rp-white); text-decoration: none; transition: border-color .15s; }
.pg-related a:hover { border-color: #C4B5FD; }
.pg-related .n { font-family: var(--rp-mono); font-size: 0.68rem; color: var(--rp-violet); font-weight: 600; }
.pg-related b { font-size: 0.95rem; color: var(--rp-text-l); }
.pg-related span.d { font-size: 0.84rem; color: var(--rp-muted-l); }

/* Closing CTA */
.pg-cta { background: var(--rp-ink); color: var(--rp-text-d); padding-block: 88px; }
.pg-cta .pg-in { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.pg-cta p { color: var(--rp-muted-d); max-width: 60ch; font-size: 1.05rem; }
.pg-terms { font-family: var(--rp-mono); font-size: 0.74rem; color: var(--rp-green); }

/* Prose block (e.g. "Why we built it this way") */
.pg-prose { max-width: 68ch; display: flex; flex-direction: column; gap: 16px; font-size: 1.05rem; }

@media (max-width: 1000px) {
  .pg-hero-grid, .pg-split { grid-template-columns: minmax(0, 1fr); }
  .pg-cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pg-band { padding-block: 64px; }
  .pg-hero { padding-block: 56px 64px; }
  .pg-control { grid-template-columns: minmax(0, 1fr); }
  .pg-cards.three, .pg-cards.two { grid-template-columns: minmax(0, 1fr); }
}
