/* =====================================================================
   Product Therapy — Design System
   Ported from the Claude Design prototype (index.html handoff bundle).
   ===================================================================== */

/* ---- Design tokens ------------------------------------------------- */
:root {
  --pt-coral:           #ED755F;
  --pt-coral-deep:      #E26952;
  --pt-coral-text:      #C95239;
  --pt-coral-cta:       #D55A40;
  --pt-coral-cta-hover: #C44E36;
  --pt-coral-soft:      #FBE8E3;
  --pt-coral-wash:      #FDF3EF;

  /* Warning palette — used for parity gaps and other non-blocking alerts */
  --pt-warning:      #B8731A;
  --pt-warning-soft: #FBEED2;
  --pt-warning-text: #8A5A1F;
  --warning:         var(--pt-warning);
  --warning-soft:    var(--pt-warning-soft);
  --warning-text:    var(--pt-warning-text);

  /* Success palette — used for the "Ready" / "Live" state and active indicators */
  --pt-success:      #1c9966;
  --pt-success-text: #16744d;
  --success:         var(--pt-success);
  --success-text:    var(--pt-success-text);

  --pt-soapstone:       #FEFBF7;
  --pt-soapstone-deep:  #F7F2EA;
  --pt-bluegrey:        #F2F5F9;
  --pt-bluegrey-deep:   #E4EAF1;
  --pt-grey-stroke:     #D0D0D0;
  --pt-grey-stroke-soft:#E6E2DB;
  --pt-ink:             #1E1E1E;
  --pt-ink-warm:        #2B2421;
  --pt-ink-mute:        #6F6762;
  --pt-ink-faint:       #9A938C;

  --bg:           var(--pt-soapstone);
  --bg-alt:       var(--pt-soapstone-deep);
  --bg-callout:   var(--pt-bluegrey);
  --bg-tint:      var(--pt-coral-soft);
  --fg:           var(--pt-ink-warm);
  --fg-mute:      var(--pt-ink-mute);
  --fg-faint:     var(--pt-ink-faint);
  --accent:       var(--pt-coral);
  --accent-text:  var(--pt-coral-deep);
  --accent-cta:   var(--pt-coral-cta);
  --accent-cta-hover: var(--pt-coral-cta-hover);
  --border:       var(--pt-grey-stroke-soft);
  --border-strong:var(--pt-grey-stroke);
  --border-coral: var(--pt-coral);

  --font-sans:    'Be Vietnam Pro', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Be Vietnam Pro', var(--font-sans);
  --font-marker:  'Permanent Marker', cursive;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --shadow-xs:    0 1px 2px rgba(43,36,33,0.04);
  --shadow-sm:    0 2px 6px rgba(43,36,33,0.06), 0 1px 2px rgba(43,36,33,0.04);
  --shadow-md:    0 8px 24px -8px rgba(43,36,33,0.10), 0 2px 6px rgba(43,36,33,0.05);
  --shadow-lg:    0 16px 40px -12px rgba(43,36,33,0.18), 0 4px 10px rgba(43,36,33,0.06);
  --shadow-coral: 0 8px 22px -10px rgba(213,94,72,0.22);

  --ease-out:   cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast:   140ms;
  --dur-base:   220ms;

  --radius-xs:  6px;
  --radius-sm:  10px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-pill:999px;

  --section-pad: clamp(72px, 11vw, 128px);
}

/* ---- Base overrides (scoped so authenticated app is unaffected) ---- */
body {
  background-color: var(--pt-soapstone);
}

/* ---- Container ----------------------------------------------------- */
.pt-container        { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.pt-container-narrow { max-width: 760px;  margin: 0 auto; padding: 0 24px; }
.pt-container-wide   { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ---- Header -------------------------------------------------------- */
.pt-site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254, 251, 247, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out);
}
.pt-site-header.scrolled { border-bottom-color: var(--border); }
.pt-site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: 1180px; margin: 0 auto; padding: 0 24px;
}
.pt-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--fg);
  font-family: var(--font-sans);
}
.pt-brand:hover { color: var(--fg); text-decoration: none; }
.pt-brand img { width: 38px; height: 38px; display: block; }
.pt-brand-name {
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  color: var(--fg); font-family: var(--font-sans);
}
.pt-nav-links { display: flex; gap: 4px; align-items: center; }
.pt-nav-link {
  font-family: var(--font-sans); font-weight: 500; font-size: 14px;
  color: var(--fg); text-decoration: none;
  padding: 10px 14px; border-radius: 12px;
  transition: background var(--dur-fast) var(--ease-out);
}
.pt-nav-link:hover {
  background: var(--bg-tint); color: var(--fg); text-decoration: none;
}
.pt-nav-cta {
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  background: var(--accent-cta); color: #fff; border: 0;
  padding: 10px 18px; border-radius: 12px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--dur-base) var(--ease-out);
}
.pt-nav-cta:hover {
  background: var(--accent-cta-hover); box-shadow: var(--shadow-coral);
  color: #fff; text-decoration: none;
}
.pt-menu-toggle {
  display: none; background: transparent; border: 0;
  padding: 8px; cursor: pointer; color: var(--fg);
}
@media (max-width: 760px) {
  .pt-nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; padding: 16px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    gap: 0; display: none;
  }
  .pt-nav-links.open { display: flex; }
  .pt-nav-link, .pt-nav-cta { width: 100%; text-align: center; padding: 14px; border-radius: 10px; }
  .pt-menu-toggle { display: inline-flex; }
}

/* ---- Buttons ------------------------------------------------------- */
.pt-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  margin: 0;
  padding: 14px 26px; border-radius: 14px; border: 0;
  cursor: pointer; text-decoration: none;
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap; color: #fff;
}
.pt-btn:hover { text-decoration: none; }
.pt-btn-primary { background: var(--accent-cta); color: #fff; }
.pt-btn-primary:hover {
  background: var(--accent-cta-hover); box-shadow: var(--shadow-coral); color: #fff;
}
.pt-btn-secondary {
  background: transparent; color: var(--fg);
  border: 1px solid var(--border-strong);
}
.pt-btn-secondary:hover {
  background: var(--bg-tint); border-color: var(--accent-text);
  color: var(--accent-text);
}
.pt-btn-ghost { background: transparent; color: var(--fg); }
.pt-btn-ghost:hover { color: var(--accent-text); }
.pt-btn-arrow::after {
  content: "→"; transition: transform var(--dur-fast) var(--ease-out);
}
.pt-btn-arrow:hover::after { transform: translateX(3px); }
.pt-btn-ink { background: #fff; color: var(--pt-ink-warm); }
.pt-btn-ink:hover { background: var(--bg-tint); color: var(--accent-text); }

/* ---- Eyebrow ------------------------------------------------------- */
.pt-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-mute);
  display: inline-block; font-weight: 400;
}
.pt-eyebrow.coral { color: var(--accent-text); }
.pt-eyebrow.with-bar::before {
  content: ""; display: inline-block; width: 18px; height: 1px;
  background: currentColor; margin-right: 10px; vertical-align: middle;
}

/* ---- Section layout ----------------------------------------------- */
.pt-section { padding: var(--section-pad) 0; }
.pt-section-tight { padding: calc(var(--section-pad) * 0.55) 0; }
.pt-section-alt { background: var(--bg-alt); }

/* ---- Section head -------------------------------------------------- */
.pt-section-head { max-width: 720px; margin-bottom: 56px; }
.pt-section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.02em;
  margin: 16px 0 0; color: var(--fg);
}
.pt-section-head p {
  font-size: 18px; line-height: 1.55; color: var(--fg-mute); margin-top: 16px;
}
.pt-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- Hero A -------------------------------------------------------- */
.pt-hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(72px, 10vw, 120px); }
.pt-hero .lockup { max-width: 920px; }
.pt-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 1.02; letter-spacing: -0.025em;
  margin: 0; color: var(--fg);
}
.pt-hero h1 .strike {
  position: relative; display: inline-block; color: var(--fg-mute);
}
.pt-hero h1 .strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 56%;
  height: 6px; background: var(--accent); border-radius: 3px;
  transform: rotate(-1deg);
}
.pt-hero h1 .ours { color: var(--accent-text); }
.pt-hero .sub {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--fg);
  max-width: 620px; margin-top: 28px;
}
.pt-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.pt-hero .meta {
  display: flex; gap: 28px; flex-wrap: wrap; margin-top: 56px;
  padding-top: 28px; border-top: 1px solid var(--border);
  color: var(--fg-mute); font-size: 14px;
  font-family: var(--font-sans);
}
.pt-hero .meta strong { color: var(--fg); font-weight: 600; }

/* ---- Hero B (split with photo card) -------------------------------- */
.pt-hero-b {
  background: var(--bg-alt);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(72px, 10vw, 120px);
}
.pt-hero-b .grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
@media (max-width: 880px) { .pt-hero-b .grid { grid-template-columns: 1fr; gap: 32px; } }
.pt-hero-b h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04;
  letter-spacing: -0.022em; margin: 0 0 20px; color: var(--fg);
}
.pt-hero-b h1 .accent { color: var(--accent-text); }
.pt-hero-b .lead {
  font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--fg);
  margin: 0 0 32px; max-width: 520px; font-family: var(--font-sans);
}
.pt-hero-b .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.pt-hero-b .stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.pt-hero-b .stat .num {
  font-family: var(--font-display); font-weight: 700; font-size: 32px;
  color: var(--fg); line-height: 1;
}
.pt-hero-b .stat .lbl {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-mute); margin-top: 6px;
}
.pt-photo-card {
  aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-md); background: var(--accent); position: relative;
}
/* Reusable duotone treatment — set --duotone-photo: url("...") on the element */
.duotone-img {
  background-image:
    linear-gradient(180deg, rgba(43,36,33,0.0) 50%, rgba(43,36,33,0.45) 100%),
    linear-gradient(150deg, rgba(237,117,95,0.45) 0%, rgba(237,117,95,0.85) 100%),
    var(--duotone-photo);
  background-size: cover; background-position: center;
  background-blend-mode: normal, multiply, normal;
  filter: saturate(1.05);
}
.pt-photo-card .duotone-img { position: absolute; inset: 0; }
.pt-photo-card .badge {
  position: absolute; top: 22px; left: 22px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #fff;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.25);
}
.pt-photo-card .caption {
  position: absolute; left: 22px; right: 22px; bottom: 22px; color: #fff;
}
.pt-photo-card .caption .title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; line-height: 1.2; letter-spacing: -0.01em;
}
.pt-photo-card .caption .sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.92; margin-top: 6px;
}

/* ---- Contrast section --------------------------------------------- */
.pt-contrast .grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 760px) { .pt-contrast .grid { grid-template-columns: 1fr; gap: 0; } }
.pt-contrast .col { padding: 48px 40px; }
.pt-contrast .col + .col { border-left: 1px solid var(--border); }
@media (max-width: 760px) {
  .pt-contrast .col { padding: 32px 0; }
  .pt-contrast .col + .col { border-left: 0; border-top: 1px solid var(--border); }
}
.pt-contrast .col h3 {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-mute); font-weight: 500;
  margin: 0 0 24px;
}
.pt-contrast ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.pt-contrast li {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25;
  color: var(--fg); display: flex; align-items: baseline; gap: 14px;
}
.pt-contrast .col-not li::before {
  content: "—"; color: var(--fg-faint); font-weight: 400; flex: 0 0 auto;
}
.pt-contrast .col-yes li::before {
  content: ""; width: 10px; height: 10px; border-radius: 999px;
  background: var(--accent); flex: 0 0 auto; transform: translateY(2px);
}
.pt-contrast .col-not li { color: var(--fg-faint); }
.pt-contrast .col-yes h3 { color: var(--accent-text); }

/* ---- How it works -------------------------------------------------- */
.pt-how .grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 800px) { .pt-how .grid { grid-template-columns: 1fr; } }
.pt-how-step {
  background: var(--bg); border: 1px solid var(--border); border-radius: 24px;
  padding: 36px 32px;
  transition: all var(--dur-base) var(--ease-out);
}
.pt-how-step:hover { box-shadow: var(--shadow-sm); border-color: var(--accent-text); }
.pt-how-step .num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--accent-text); margin-bottom: 16px;
}
.pt-how-step h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 26px; line-height: 1.15; letter-spacing: -0.01em;
  margin: 0 0 12px; color: var(--fg);
}
.pt-how-step p { color: var(--fg-mute); margin: 0; line-height: 1.55; font-family: var(--font-sans); }

/* ---- Logos --------------------------------------------------------- */
.pt-logos {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pt-logos .label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-mute);
  text-align: center; margin-bottom: 36px;
}
.pt-logo-strip {
  display: flex; flex-wrap: wrap; gap: 40px 56px;
  align-items: center; justify-content: center;
}
.pt-logo-strip .logo {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: var(--fg-mute); letter-spacing: -0.01em;
  filter: grayscale(1) opacity(0.6);
  transition: filter var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  display: flex; align-items: center;
}
.pt-logo-strip .logo img { height: 80px; width: auto; display: block; }
.pt-logo-strip .logo:hover { filter: none; color: var(--fg); }

/* ---- Sessions ------------------------------------------------------ */
.pt-sessions .head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
}
.pt-sessions .head h2 {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4vw, 48px); color: var(--fg);
}
.pt-sessions .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .pt-sessions .grid { grid-template-columns: 1fr; } }

.pt-session-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  transition: all var(--dur-base) var(--ease-out);
  text-decoration: none; color: inherit;
}
.pt-session-card:hover {
  box-shadow: var(--shadow-sm); transform: translateY(-2px);
  border-color: var(--accent-text); color: inherit; text-decoration: none;
}
.pt-session-card .meta-line { display: flex; align-items: center; gap: 8px; }
.pt-session-card .city {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.01em; color: var(--fg);
}
.pt-session-card .date {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-mute);
}
.pt-session-card .place { color: var(--fg-mute); font-size: 14px; line-height: 1.5; font-family: var(--font-sans); }
.pt-session-card .footer-line {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border);
}
.pt-session-card .spots {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--accent-text); text-transform: uppercase;
}
.pt-session-card .arrow {
  font-size: 18px; color: var(--fg);
  transition: transform var(--dur-fast) var(--ease-out);
}
.pt-session-card:hover .arrow { transform: translateX(4px); color: var(--accent-text); }
.pt-session-card.soon .spots { color: var(--fg-mute); }
.pt-session-card.soon { opacity: 0.85; }

/* ---- Testimonials -------------------------------------------------- */
.pt-quotes { background: var(--bg-alt); }
.pt-quotes .grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 880px) { .pt-quotes .grid { grid-template-columns: 1fr; } }
.pt-quote {
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
  padding: 32px 28px; display: flex; flex-direction: column; gap: 20px;
}
.pt-quote.featured { background: var(--bg-tint); border-color: transparent; }
.pt-quote.featured .body { color: var(--pt-coral-text); }
.pt-quote .body {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; line-height: 1.32; letter-spacing: -0.01em; color: var(--fg);
}
.pt-quote .who {
  display: flex; align-items: center; gap: 12px; margin-top: auto;
  padding-top: 16px; border-top: 1px solid rgba(0,0,0,0.06);
}
.pt-quote .avatar {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--bg-callout); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.pt-quote .name { font-weight: 600; font-size: 14px; font-family: var(--font-sans); color: var(--fg); }
.pt-quote .role { font-size: 12px; color: var(--fg-mute); margin-top: 2px; font-family: var(--font-sans); }

/* ---- Duo CTA cards ------------------------------------------------- */
.pt-duo .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .pt-duo .grid { grid-template-columns: 1fr; } }
.pt-duo-card {
  border-radius: 24px; padding: 40px; min-height: 320px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: all var(--dur-base) var(--ease-out);
}
.pt-duo-card.host { background: var(--pt-ink-warm); color: #fff; }
.pt-duo-card.host h3, .pt-duo-card.host p { color: #fff; }
.pt-duo-card.host .pt-eyebrow { color: rgba(255,255,255,0.7); }
.pt-duo-card.chapter {
  color: #fff;
  background-image:
    radial-gradient(circle at 80% -20%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(circle at 0% 110%, rgba(43,36,33,0.18), transparent 60%),
    linear-gradient(135deg, var(--pt-coral) 0%, var(--pt-coral-deep) 100%);
}
.pt-duo-card.chapter h3, .pt-duo-card.chapter p { color: #fff; }
.pt-duo-card.chapter .pt-eyebrow { color: rgba(255,255,255,0.85); }
.pt-duo-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 32px; line-height: 1.1; letter-spacing: -0.02em;
  margin: 16px 0 12px; max-width: 320px;
}
.pt-duo-card p { line-height: 1.55; max-width: 380px; font-family: var(--font-sans); }

/* ---- Closing strip ------------------------------------------------- */
.pt-closing { padding: clamp(80px, 12vw, 140px) 0; }
.pt-closing .center { max-width: 760px; margin: 0 auto; text-align: center; }
.pt-closing h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 5.4vw, 72px); line-height: 1.05;
  letter-spacing: -0.025em; margin: 0 0 24px; color: var(--fg);
}
.pt-closing h2 .accent { color: var(--accent-text); }
.pt-closing p { font-size: 19px; color: var(--fg-mute); margin-bottom: 32px; font-family: var(--font-sans); }

/* ---- Footer -------------------------------------------------------- */
.pt-site-footer {
  background: var(--bg-alt); padding: 80px 0 32px;
  border-top: 1px solid var(--border);
}
.pt-site-footer .grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 720px) { .pt-site-footer .grid { grid-template-columns: 1fr 1fr; } }
.pt-site-footer h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-mute); font-weight: 500;
  margin: 0 0 16px;
}
.pt-site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pt-site-footer a {
  color: var(--fg); text-decoration: none; font-size: 15px;
  font-family: var(--font-sans); font-weight: 400;
  transition: color var(--dur-fast) var(--ease-out);
}
.pt-site-footer a:hover { color: var(--accent-text); text-decoration: none; }
.pt-site-footer .colophon {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px; color: var(--fg-mute); font-family: var(--font-sans);
}
@media (max-width: 600px) {
  .pt-site-footer .colophon { flex-direction: column; align-items: flex-start; }
}

/* ---- Pills --------------------------------------------------------- */
.pt-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-weight: 500; font-size: 13px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border); color: var(--fg-mute);
}
.pt-pill.coral { background: var(--bg-tint); color: var(--accent-text); border-color: transparent; }
.pt-pill .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* ---- Animations ---------------------------------------------------- */
@keyframes ptFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pt-fade-up   { animation: ptFadeUp 0.6s var(--ease-out) both; }
.pt-fade-up-2 { animation-delay: 0.08s; }
.pt-fade-up-3 { animation-delay: 0.16s; }
.pt-fade-up-4 { animation-delay: 0.24s; }

/* ---- Utils (scoped to marketing pages) ----------------------------- */
.pt-mt-4 { margin-top: 16px; }
.pt-mt-5 { margin-top: 24px; }
.pt-mt-6 { margin-top: 32px; }
.pt-mt-3 { margin-top: 12px; }

/* ---- Flash notifications ------------------------------------------- */
.pt-flash {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%);
  z-index: 200; display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 14px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-md);
  min-width: 280px; max-width: min(480px, calc(100vw - 48px));
  animation: ptFadeUp 0.3s var(--ease-out) both;
}
.pt-flash-notice { background: #F1F5F9; color: #334155; border: 1px solid #CBD5E1; }
.pt-flash-alert  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.pt-flash-error  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.pt-flash-notice .pt-flash-icon::before { content: "✓ "; }
.pt-flash-alert  .pt-flash-icon::before,
.pt-flash-error  .pt-flash-icon::before { content: "! "; font-weight: 700; }
.pt-flash-msg  { flex: 1; }
.pt-flash-close {
  background: none; border: none; cursor: pointer;
  font-size: 20px; line-height: 1; color: currentColor;
  opacity: 0.5; padding: 0 2px; flex-shrink: 0;
}
.pt-flash-close:hover { opacity: 1; }

/* =====================================================================
   Chapters page
   ===================================================================== */

/* ---- Chapters hero ------------------------------------------------- */
.pt-ch-hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(48px, 6vw, 72px); }
.pt-ch-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 6vw, 80px); line-height: 1.04;
  letter-spacing: -0.025em; margin: 16px 0 0; max-width: 880px; color: var(--fg);
}
.pt-ch-hero h1 .accent { color: var(--accent-text); }
.pt-ch-hero .lead {
  font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; color: var(--fg-mute);
  margin-top: 24px; max-width: 620px; font-family: var(--font-sans);
}
.pt-ch-hero .stats { display: flex; gap: 48px; margin-top: 56px; flex-wrap: wrap; }
.pt-ch-hero .stat .num {
  font-family: var(--font-display); font-weight: 700; font-size: 40px;
  color: var(--fg); line-height: 1; letter-spacing: -0.02em;
}
.pt-ch-hero .stat .lbl {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-mute); margin-top: 8px;
}

/* ---- Marquee ribbon ------------------------------------------------ */
.pt-map-ribbon {
  background: var(--bg-alt); padding: 28px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.pt-map-track {
  display: flex; gap: 48px; flex-wrap: nowrap; width: max-content;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: var(--fg-mute); letter-spacing: -0.01em; align-items: center;
  animation: ptMarquee 40s linear infinite;
}
.pt-map-track .pt-city-mark { white-space: nowrap; display: flex; align-items: center; gap: 12px; }
.pt-map-track .pt-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); flex: 0 0 auto; }
@keyframes ptMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- City grid ----------------------------------------------------- */
.pt-cities .cities-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
}
.pt-cities .cities-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1;
  letter-spacing: -0.02em; margin: 12px 0 0; color: var(--fg);
}
.pt-cities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .pt-cities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .pt-cities-grid { grid-template-columns: 1fr; } }

/* ---- City card ----------------------------------------------------- */
.pt-city-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 24px;
  background: var(--bg); display: flex; flex-direction: column;
  transition: all var(--dur-base) var(--ease-out);
  text-decoration: none; color: inherit;
}
.pt-city-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-3px);
  border-color: var(--accent-text); color: inherit; text-decoration: none;
}
.pt-city-card .pt-banner {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
}
.pt-city-card .pt-banner-art {
  position: absolute; inset: 0;
}
.pt-city-card .pt-banner-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(43,36,33,0.0) 40%, rgba(43,36,33,0.50) 100%),
    linear-gradient(160deg, rgba(237,117,95,0.45), rgba(217,95,74,0.75));
}
/* When a real photo is present, the duotone blend modes handle the overlay */
.pt-city-card .pt-banner-art.duotone-img::after { display: none; }
.pt-banner-1 { background: linear-gradient(135deg, #ED755F, #B53C2C); }
.pt-banner-2 { background: linear-gradient(135deg, #ED755F, #D95F4A); }
.pt-banner-3 { background: linear-gradient(135deg, #F2A28E, #ED755F); }
.pt-banner-4 { background: linear-gradient(135deg, #ED755F, #C9482F); }
.pt-banner-5 { background: linear-gradient(135deg, #F4B49E, #ED755F); }
.pt-banner-6 { background: linear-gradient(135deg, #ED9D86, #B53C2C); }
.pt-banner-svg { position: absolute; inset: 0; opacity: 0.55; mix-blend-mode: overlay; }

.pt-city-card .pt-flag-row {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #fff;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.18); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.25);
}
.pt-city-card .pt-status {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.95); color: var(--fg-mute);
}
.pt-city-card .pt-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--fg-mute);
}
.pt-city-card .pt-status.active  { color: var(--success-text); }
.pt-city-card .pt-status.active::before  { background: var(--success); }
.pt-city-card .pt-status.growing { color: var(--accent-text); }
.pt-city-card .pt-status.growing::before { background: var(--accent); }

.pt-city-card .pt-city-name {
  position: absolute; bottom: 18px; left: 18px; right: 18px; z-index: 1;
}
.pt-city-card .pt-city-name h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 32px; line-height: 1.05; letter-spacing: -0.02em; margin: 0; color: #fff;
}
.pt-city-card .pt-city-name .country {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.85); margin-top: 4px;
}
.pt-city-card .pt-card-body {
  padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1;
}
.pt-city-card .pt-stats-line {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--fg-mute);
}
.pt-city-card .pt-stats-line .sep { color: var(--pt-grey-stroke); }
.pt-city-card .pt-footer-line {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.pt-city-card .pt-next-event .lbl {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-mute); margin-bottom: 2px;
}
.pt-city-card .pt-next-event .val {
  font-weight: 600; color: var(--fg); font-size: 13px; font-family: var(--font-sans);
}
.pt-city-card .pt-cta-arrow {
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  color: var(--accent-text); display: inline-flex; align-items: center; gap: 6px;
}
.pt-city-card .pt-cta-arrow .arrow { transition: transform var(--dur-fast) var(--ease-out); display: inline-block; }
.pt-city-card:hover .pt-cta-arrow .arrow { transform: translateX(3px); }

/* ---- Start a chapter ---------------------------------------------- */
.pt-start-chapter { background: var(--bg-alt); }
.pt-start-chapter .grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
@media (max-width: 880px) { .pt-start-chapter .grid { grid-template-columns: 1fr; gap: 32px; } }
.pt-start-chapter h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05;
  letter-spacing: -0.02em; margin: 16px 0; color: var(--fg);
}
.pt-start-chapter h2 .accent { color: var(--accent-text); }
.pt-start-chapter p { font-size: 18px; line-height: 1.55; color: var(--fg); font-family: var(--font-sans); margin: 0 0 16px; }
.pt-start-chapter .muted { font-size: 15px !important; color: var(--fg-mute) !important; }

.pt-what-you-get {
  background: var(--bg); border: 1px solid var(--border); border-radius: 24px; padding: 32px;
}
.pt-what-you-get h3 {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-mute); font-weight: 500; margin: 0 0 24px;
}
.pt-what-you-get ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.pt-what-you-get li {
  position: relative; padding-left: 30px;
  font-size: 15px; line-height: 1.55; color: var(--fg); font-family: var(--font-sans);
}
.pt-what-you-get li strong { display: block; margin-bottom: 2px; }
.pt-what-you-get li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--bg-tint);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B53C2C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-position: center; background-repeat: no-repeat; background-size: 12px;
}

.pt-what-you-give h3 {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-text); font-weight: 500;
  margin: 32px 0 16px;
}
.pt-what-you-give ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pt-what-you-give li {
  color: var(--fg); font-size: 16px; line-height: 1.5;
  padding-left: 18px; position: relative; font-family: var(--font-sans);
}
.pt-what-you-give li::before { content: "—"; position: absolute; left: 0; color: var(--accent-text); }

/* ---- FAQ ----------------------------------------------------------- */
.pt-faq .list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.pt-faq details {
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 24px; transition: all var(--dur-base) var(--ease-out);
}
.pt-faq details[open] { background: var(--bg-callout); border-color: transparent; }
.pt-faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--fg);
}
.pt-faq summary::-webkit-details-marker { display: none; }
.pt-faq summary::after {
  content: "+"; font-size: 24px; color: var(--accent-text);
  transition: transform var(--dur-base) var(--ease-out); flex-shrink: 0; margin-left: 16px;
}
.pt-faq details[open] summary::after { content: "−"; }
.pt-faq details p { color: var(--fg); margin: 16px 0 0; line-height: 1.6; font-family: var(--font-sans); }

/* =====================================================================
   Host page
   ===================================================================== */

.pt-ho-hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(48px, 6vw, 72px); }
.pt-ho-hero .grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: end; }
@media (max-width: 880px) { .pt-ho-hero .grid { grid-template-columns: 1fr; gap: 40px; } }
.pt-ho-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 6vw, 80px); line-height: 1.04;
  letter-spacing: -0.025em; margin: 16px 0 0; max-width: 640px; color: var(--fg);
}
.pt-ho-hero h1 .accent { color: var(--accent-text); }
.pt-ho-hero .lead { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; color: var(--fg); margin-top: 24px; max-width: 540px; font-family: var(--font-sans); }
.pt-ho-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.pt-room-card {
  background: var(--pt-ink-warm); color: #fff; border-radius: 24px;
  padding: 32px; box-shadow: var(--shadow-md);
}
.pt-room-card .pt-eyebrow { color: rgba(255,255,255,0.7); }
.pt-room-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: #fff; margin: 12px 0 20px; line-height: 1.3;
}
.pt-room-card .row {
  display: flex; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.pt-room-card .row:last-child { border-bottom: 0; }
.pt-room-card .row .k {
  color: rgba(255,255,255,0.65); font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
}
.pt-room-card .row .v { color: #fff; font-weight: 600; font-size: 14px; font-family: var(--font-sans); }

.pt-room-card.color-accent { background: var(--accent-cta); }
.pt-room-card.color-light {
  background: #fff; color: var(--fg);
  border: 1px solid var(--border);
}
.pt-room-card.color-light .pt-eyebrow { color: var(--fg-mute); }
.pt-room-card.color-light h3 { color: var(--fg); }
.pt-room-card.color-light .row { border-bottom-color: var(--border); }
.pt-room-card.color-light .row .k { color: var(--fg-mute); }
.pt-room-card.color-light .row .v { color: var(--fg); }

.pt-sort-handle:hover { color: var(--fg); }
.pt-sort-handle:active { cursor: grabbing; }
.pt-sort-ghost { opacity: 0.4; background: var(--bg-alt); }

.pt-hosted-by { padding: 80px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pt-hosted-by .label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-mute); text-align: center; margin-bottom: 36px;
}

.pt-why .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .pt-why .grid { grid-template-columns: 1fr; } }
.pt-why-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 24px; padding: 32px;
}
.pt-why-card .num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-text);
}
.pt-why-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  margin: 14px 0 10px; line-height: 1.2; letter-spacing: -0.01em; color: var(--fg);
}
.pt-why-card p { color: var(--fg-mute); margin: 0; line-height: 1.55; font-size: 15px; font-family: var(--font-sans); }

.pt-timeline { background: var(--bg-alt); }
.pt-timeline .grid { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .pt-timeline .grid { grid-template-columns: 1fr; gap: 32px; } }
.pt-timeline h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 16px 0 16px; color: var(--fg);
}
.pt-timeline-list { display: flex; flex-direction: column; }
.pt-timeline-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 24px;
  padding: 24px 0; border-bottom: 1px solid var(--border);
}
.pt-timeline-row:last-child { border-bottom: 0; }
.pt-timeline-row .when {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent-text);
}
.pt-timeline-row .what h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0 0 6px; color: var(--fg);
}
.pt-timeline-row .what p { color: var(--fg-mute); margin: 0; line-height: 1.55; font-size: 15px; font-family: var(--font-sans); }

.pt-host-quote { background: var(--bg-tint); }
.pt-host-quote .center { max-width: 820px; margin: 0 auto; text-align: center; }
.pt-host-quote .body {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3.6vw, 40px); line-height: 1.25; letter-spacing: -0.015em;
  color: var(--pt-coral-text);
}
.pt-host-quote .who {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-text); margin-top: 28px;
}

.pt-apply { background: var(--bg-alt); }
.pt-apply .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .pt-apply .grid { grid-template-columns: 1fr; gap: 32px; } }
.pt-apply h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 16px 0; color: var(--fg);
}
.pt-apply h2 .accent { color: var(--accent-text); }
.pt-apply > .pt-container > .grid > div > p {
  font-family: var(--font-sans); line-height: 1.55; color: var(--fg);
}

.pt-form-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 24px; padding: 32px;
}
.pt-form-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 0 0 8px; color: var(--fg); }
.pt-form-card .sub { color: var(--fg-mute); font-size: 14px; margin-bottom: 24px; font-family: var(--font-sans); }
.pt-field-group { display: flex; flex-direction: column; gap: 14px; }
.pt-field-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-mute); margin-bottom: 6px; display: block;
}
.pt-field {
  font-family: var(--font-sans); font-size: 15px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--fg);
  width: 100%; outline: none; box-shadow: none; margin: 0;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.pt-field:focus { border-color: var(--border-coral); box-shadow: 0 0 0 3px rgba(237,117,95,0.15); }
.pt-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .pt-field-grid { grid-template-columns: 1fr; } }

.pt-host-faq { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.pt-host-faq details {
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 24px; transition: all var(--dur-base) var(--ease-out);
}
.pt-host-faq details[open] { background: var(--bg-callout); border-color: transparent; }
.pt-host-faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--fg);
}
.pt-host-faq summary::-webkit-details-marker { display: none; }
.pt-host-faq summary::after { content: "+"; font-size: 22px; color: var(--accent-text); flex-shrink: 0; margin-left: 12px; }
.pt-host-faq details[open] summary::after { content: "−"; }
.pt-host-faq details p { color: var(--fg); margin: 14px 0 0; font-size: 14px; line-height: 1.6; font-family: var(--font-sans); }

/* =====================================================================
   About page
   ===================================================================== */

.pt-ab-hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(48px, 6vw, 80px); }
.pt-ab-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 6.4vw, 84px); line-height: 1.04; letter-spacing: -0.025em;
  margin: 16px 0 0; max-width: 880px; color: var(--fg);
}
.pt-ab-hero h1 .accent { color: var(--accent-text); }
.pt-ab-hero h1 .marker { font-family: var(--font-marker); color: var(--accent); font-weight: 400; font-size: 0.92em; }
.pt-ab-hero .lead {
  font-size: clamp(18px, 1.9vw, 22px); line-height: 1.5; color: var(--fg);
  margin-top: 32px; max-width: 720px; font-family: var(--font-sans);
}

.pt-story { padding: clamp(72px, 9vw, 112px) 0; }
.pt-story .grid { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start; }
@media (max-width: 760px) { .pt-story .grid { grid-template-columns: 1fr; gap: 16px; } }
.pt-stamp {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-mute);
  position: sticky; top: 96px;
}
.pt-story h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 24px; color: var(--fg);
}
.pt-story p {
  font-size: 18px; line-height: 1.65; color: var(--fg); margin: 0 0 20px;
  max-width: 680px; font-family: var(--font-sans);
}
.pt-story p strong { color: var(--fg); font-weight: 600; }
.pt-story p em { font-style: normal; color: var(--accent-text); }
.pt-prose-body blockquote,
.pt-prose-body blockquote p {
  /* Lexical's quote node serializes to <blockquote><p>...</p></blockquote>.
     Override .pt-story p (18px, max-width:680px, margin-bottom:20px) so
     the pull-quote size and layout win on the inner <p> too. */
  font-family: var(--font-display); font-weight: 700;
  font-size: 24px; line-height: 1.25; letter-spacing: -0.015em;
  color: var(--fg); max-width: none; margin: 0;
}
.pt-prose-body blockquote {
  padding: 24px 0 24px 28px;
  border-left: 3px solid var(--accent); margin: 24px 0;
}
.pt-pull {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.25; letter-spacing: -0.015em;
  color: var(--fg); padding: 24px 0 24px 28px;
  border-left: 3px solid var(--accent); margin: 24px 0;
}

.pt-nums { background: var(--bg-alt); }
.pt-nums .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 760px) { .pt-nums .grid { grid-template-columns: repeat(2, 1fr); } }
.pt-num-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 28px;
}
.pt-num-card .v {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.02em;
  color: var(--accent-text);
}
.pt-num-card .l {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-mute); margin-top: 12px;
}

.pt-princ .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 760px) { .pt-princ .grid { grid-template-columns: 1fr; } }
.pt-princ-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 32px;
}
.pt-princ-card .num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--accent-text);
}
.pt-princ-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  margin: 12px 0 12px; line-height: 1.2; color: var(--fg);
}
.pt-princ-card p { color: var(--fg); margin: 0; line-height: 1.55; font-size: 15px; font-family: var(--font-sans); }

.pt-people { background: var(--bg-alt); }
.pt-people .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 880px) { .pt-people .grid { grid-template-columns: repeat(2, 1fr); } }
.pt-person { display: flex; flex-direction: column; gap: 12px; }
.pt-person .ph {
  aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
  background-image: linear-gradient(160deg, rgba(237,117,95,0.55), rgba(217,95,74,0.85));
  background-color: var(--accent);
  position: relative;
}
.pt-person .ph .initials {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 56px;
  color: rgba(255,255,255,0.85); letter-spacing: -0.02em;
}
.pt-person .name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--fg); }
.pt-person .role { font-size: 13px; color: var(--fg-mute); margin-top: 2px; line-height: 1.4; font-family: var(--font-sans); }

.pt-code { padding: clamp(72px, 9vw, 112px) 0; }
.pt-code .grid { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start; }
@media (max-width: 760px) { .pt-code .grid { grid-template-columns: 1fr; gap: 16px; } }
.pt-code h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 16px; color: var(--fg);
}
.pt-code__sub {
  font-family: var(--font-sans); font-size: 16px; line-height: 1.5;
  color: var(--fg-mute); margin: 0 0 32px; max-width: 640px;
}
.pt-code-list { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.pt-code-item {
  display: grid; grid-template-columns: 28px 1fr; gap: 16px; align-items: start;
  padding: 20px 24px; background: var(--bg-callout); border-radius: 16px;
}
.pt-code-item .n {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--accent-text); padding-top: 4px;
}
.pt-code-item .body h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 0 0 4px; color: var(--fg);
}
.pt-code-item .body p { color: var(--fg); margin: 0; line-height: 1.55; font-size: 14px; font-family: var(--font-sans); }

.pt-ab-closing {
  background:
    radial-gradient(circle at 80% -20%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(circle at 0% 110%, rgba(43,36,33,0.15), transparent 60%),
    linear-gradient(135deg, var(--pt-coral) 0%, var(--pt-coral-deep) 100%);
  color: #fff;
  padding: clamp(80px, 12vw, 140px) 0;
}
.pt-ab-closing .center { max-width: 760px; margin: 0 auto; text-align: center; }
.pt-ab-closing h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(36px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.025em;
  color: #fff; margin: 0 0 24px;
}
.pt-ab-closing p { color: rgba(255,255,255,0.9); font-size: 19px; margin-bottom: 32px; font-family: var(--font-sans); }
.pt-ab-closing .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pt-ab-closing .pt-btn-primary { background: #fff; color: var(--pt-coral-text); }
.pt-ab-closing .pt-btn-primary:hover { background: var(--bg-tint); color: var(--pt-coral-text); }
.pt-ab-closing .pt-btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.pt-ab-closing .pt-btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

/* =====================================================================
   Admin UI
   ===================================================================== */

.pt-admin-page { max-width: 1180px; margin: 0 auto; padding: 24px 24px 64px; }

.pt-admin-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  position: sticky; top: 72px; z-index: 30;
  background: var(--bg);
  padding: 16px 0;
  margin: -16px 0 16px;
  border-bottom: 1px solid transparent;
  transition: box-shadow 200ms var(--ease-out), border-bottom-color 200ms var(--ease-out);
}
.pt-admin-header.scrolled { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04); border-bottom-color: var(--border); }
.pt-admin-header h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; color: var(--fg); margin: 0; }
.pt-admin-header .sub { font-size: 13px; color: var(--fg-mute); margin-top: 4px; }

.pt-admin-header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pt-admin-header-actions .pt-locale-toggle { margin-bottom: 0; }

.pt-admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pt-admin-table th { text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-mute); border-bottom: 1px solid var(--border); padding: 0 12px 10px 0; }
.pt-admin-table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 14px; }
.pt-admin-table tr:last-child td { border-bottom: none; }
.pt-admin-table tr:hover td { background: var(--bg-alt); }
.pt-admin-table .col-actions { text-align: right; white-space: nowrap; }

.pt-admin-form { max-width: 640px; }
.pt-admin-field { margin-bottom: 20px; }
.pt-admin-field label { display: block; font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.pt-admin-field .hint { font-size: 12px; color: var(--fg-mute); margin-top: 4px; }
.pt-admin-input, .pt-admin-select, .pt-admin-textarea {
  display: block; width: 100%; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 14px; color: var(--fg);
  transition: border-color var(--dur-fast);
}
.pt-admin-input:focus, .pt-admin-select:focus, .pt-admin-textarea:focus { outline: none; border-color: var(--accent); }
.pt-admin-textarea { resize: vertical; min-height: 100px; }
.pt-admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pt-admin-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.pt-admin-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg); }
.pt-admin-field-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pt-admin-field-row label { margin-bottom: 0; }

.pt-admin-errors { background: #fef2f2; color: #991b1b; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin-bottom: 20px; }

/* Required marker */
.pt-admin-required { color: var(--accent); margin-left: 2px; font-weight: 700; }

/* Inline field error */
.pt-admin-field-error { font-size: 12px; color: #dc2626; margin-top: 4px; }

/* Rails wraps errored fields in <div class="field_with_errors">.
   display:contents makes it invisible to layout so it doesn't break flex/grid. */
.field_with_errors { display: contents; }
.field_with_errors .pt-admin-input,
.field_with_errors .pt-admin-select,
.field_with_errors .pt-admin-textarea { border-color: #dc2626; }

.pt-admin-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius-sm); padding: 8px 16px; margin: 0; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: background var(--dur-fast), border-color var(--dur-fast); }
.pt-admin-btn-primary { background: var(--accent-cta); color: #fff; }
.pt-admin-btn-primary:hover { background: var(--accent-cta-hover); }
.pt-admin-btn-secondary { background: var(--bg-alt); color: var(--fg); border-color: var(--border); }
.pt-admin-btn-secondary:hover { border-color: var(--border-strong); }
.pt-admin-btn-danger { background: transparent; color: #dc2626; border: none; font-size: 13px; font-weight: 500; cursor: pointer; padding: 0; }

.pt-admin-section { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; margin-top: 24px; }
.pt-admin-section > h2 { font-size: 15px; font-weight: 700; color: var(--fg); margin: 0 0 16px; display: flex; justify-content: space-between; align-items: center; }
.pt-admin-back { font-size: 13px; color: var(--fg-mute); text-decoration: none; }
.pt-admin-back:hover { color: var(--fg); }

.pt-admin-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-sm); border: none; cursor: pointer; background: transparent; transition: background var(--dur-fast); text-decoration: none; padding: 0; }
.pt-admin-icon-btn:hover { background: var(--bg-alt); }
.pt-admin-icon-btn svg { width: 13px; height: 13px; display: block; }
.pt-admin-icon-btn.edit svg { fill: var(--accent); }
.pt-admin-icon-btn.del svg { fill: #dc2626; }
.pt-admin-actions { display: inline-flex; gap: 2px; align-items: center; }

/* ---- Section-item picker (page-builder sections with members/items lists) -- */
.pt-admin-picks {
  display: flex; flex-direction: column; gap: 6px;
  margin: 12px 0 16px;
}
.pt-admin-pick-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: var(--font-sans); font-size: 14px;
}
.pt-admin-pick-row__handle {
  color: var(--fg-mute); cursor: grab;
  font-size: 14px; line-height: 1;
  user-select: none;
}
.pt-admin-pick-row__title { flex: 1; color: var(--fg); }
.pt-admin-pick-row form { display: inline; margin: 0; }

.pt-admin-picker { margin-top: 20px; }
.pt-admin-picker__head { margin-bottom: 8px; }
.pt-admin-picker__head h2 {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: var(--fg); margin: 0;
  letter-spacing: 0; text-transform: none;
}
.pt-admin-picker__foot { margin-top: 12px; }

#section_items_search_results {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 8px;
}
.pt-admin-search-result {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  font-family: var(--font-sans); font-size: 14px;
  border-radius: var(--radius-sm); cursor: pointer;
}
.pt-admin-search-result:hover { background: var(--bg-alt); }
.pt-admin-search-result input[type="checkbox"] { margin: 0; flex-shrink: 0; }
.pt-admin-search-result strong { font-weight: 500; color: var(--fg); }
.pt-admin-search-result__hint {
  color: var(--fg-mute); font-size: 12px;
  margin-left: 4px;
}

/* Section preview panel — suppress animations so re-renders don't flicker */
#section-preview { transition: opacity .08s ease; }
#section-preview * { animation-duration: 0s !important; animation-delay: 0s !important; }

/* ---- Status chips (admin) ----------------------------------------- */
.pt-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid transparent; background: transparent;
  white-space: nowrap;
}
/* Filled neutral pill — used for the variant indicator (white/contrast/accent) */
.pt-chip-variant {
  background: var(--bg-alt); border-color: var(--border);
  color: var(--fg-mute);
  font-family: var(--font-sans); text-transform: none; letter-spacing: 0;
}
/* Outlined state chip */
.pt-chip-state-ready { border-color: var(--success-text); color: var(--success-text); }
.pt-chip-state-draft { border-color: var(--fg-mute); color: var(--fg-mute); }
/* Warning chip — parity gaps */
.pt-chip-warning {
  background: var(--warning-soft); border-color: var(--warning);
  color: var(--warning-text);
}

/* Clickable chip — used for state toggle (Ready ↔ Draft) */
.pt-chip-form { display: inline; margin: 0; }
.pt-chip-clickable {
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.pt-chip-clickable:hover { background: var(--bg-alt); }
.pt-chip-state-ready.pt-chip-clickable:hover { background: var(--bg-tint); border-color: var(--accent-text); color: var(--accent-text); }

/* Dirty dot — Mac unsaved-doc style, appears left of section name */
.pt-dirty-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent); margin-right: 2px; flex-shrink: 0;
}

/* ---- Admin breadcrumb -------------------------------------------- */
.pt-breadcrumb {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-mute);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.pt-breadcrumb a { color: var(--fg-mute); text-decoration: none; }
.pt-breadcrumb a:hover { color: var(--accent-text); }
.pt-breadcrumb .sep { color: var(--fg-faint); }
.pt-breadcrumb .current { color: var(--fg); }

/* ---- Admin section row (page builder) ---------------------------- */
.pt-section-row {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.pt-section-row > summary {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; cursor: pointer; list-style: none;
}
.pt-section-row > summary::-webkit-details-marker { display: none; }
.pt-section-row .data-cluster {
  flex: 1; display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; min-width: 0;
}
.pt-section-row .data-cluster .name {
  font-size: 14px; font-weight: 500; color: var(--fg);
}
.pt-section-row .action-cluster {
  display: flex; gap: 4px; align-items: center;
}
.pt-section-row .expand-caret {
  font-size: 18px; color: var(--fg-mute);
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-fast) var(--ease-out);
  line-height: 1;
  padding: 0 4px;
}
.pt-section-row > summary:hover .expand-caret { color: var(--fg); }
.pt-section-row[open] .expand-caret { transform: rotate(90deg); color: var(--fg); }

/* Admin button-group dropdown menu */
.pt-admin-btn-menu summary::-webkit-details-marker { display: none; }
.pt-admin-btn-menu summary::marker { content: ''; }

/* ---- Admin page-builder canvas — always-open section blocks --------- */
.pt-section-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}
.pt-section-block-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.pt-section-block-row .data-cluster {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.pt-section-block-row .data-cluster .name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  /* Reset default h3 margin since this is an inline-ish label inside a flex row */
  margin: 0;
  line-height: 1.4;
  font-family: var(--font-sans);
}
.pt-section-block-row .action-cluster {
  display: flex;
  gap: 4px;
  align-items: center;
}
.pt-section-block-preview {
  /* The actual rendered section. Inherits the section's own padding/colors. */
  position: relative;
}

/* ---- Page-builder layout (canvas + side panel) -------------------- */
/* When the admin page contains the page-builder, break out of the
   max-width constraint so the panel can sit on the right edge of the
   viewport. */
.pt-admin-page:has(.pt-page-builder-layout) {
  max-width: none;
  padding-left: 32px;
  padding-right: 32px;
}
/* When the panel is open, reserve space on the right side of the page
   so the canvas isn't covered by the fixed panel. */
.pt-admin-page:has(.pt-page-builder-layout[data-panel-open]) {
  padding-right: 472px; /* 420 panel + 24 right offset + 24 + 4 buffer */
}
.pt-admin-page {
  transition: padding-right var(--dur-base) var(--ease-out);
}

.pt-page-builder-layout {
  position: relative;
}
.pt-canvas {
  /* Canvas keeps its natural max-width — no shrinking when panel opens. */
  max-width: 1180px;
  margin: 0 auto;
}
.pt-canvas > .pt-breadcrumb {
  margin-bottom: 20px;
}

/* Active section outline while editing */
.pt-section-block[data-editing] {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ---- Side panel — fixed drawer on the right ----------------------- */
.pt-side-panel {
  position: fixed;
  top: 24px;
  bottom: 24px;
  right: 24px;
  width: 420px;
  z-index: 50;
  transform: translateX(calc(100% + 48px));
  transition: transform var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.pt-page-builder-layout[data-panel-open] .pt-side-panel {
  transform: translateX(0);
  pointer-events: auto;
}

/* ---- Side panel frame chrome -------------------------------------- */
.pt-side-panel-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.pt-side-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.pt-side-panel-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 4px 0 0;
  color: var(--fg);
}
.pt-side-panel-locale {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.pt-side-panel-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.pt-side-panel-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}
.pt-side-panel-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Inline text link utility ------------------------------------- */
/* Use for in-paragraph text links (e.g. "see the docs"). Replaces the */
/* legacy `text-brand` class. For nav links use .pt-nav-link instead.  */
.pt-link {
  color: var(--accent-text);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.pt-link:hover {
  color: var(--accent-cta-hover);
  text-decoration: underline;
}

/* ---- Preview collapse (per-section <details>) -------------------- */
.pt-preview-collapse { position: relative; }
.pt-preview-collapse > summary {
  list-style: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-mute);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast), color var(--dur-fast);
  z-index: 1;
}
.pt-preview-collapse > summary::-webkit-details-marker { display: none; }
.pt-preview-collapse > summary:hover {
  background: var(--bg-alt);
  color: var(--fg);
}
.pt-preview-collapse > summary svg {
  transition: transform var(--dur-fast) var(--ease-out);
}
.pt-preview-collapse[open] > summary svg {
  transform: rotate(180deg);
}
.pt-section-block { position: relative; }
