/* ProxyBox marketing pages. Builds on the tokens in site-shell.css.
   One image carries the brand: a lit window. Lamp amber appears only where
   the light is (the thread, the home address, the primary action). */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body.pb-page {
  margin: 0;
  color: var(--pb-ink);
  background: var(--pb-paper);
  font: 400 17px/1.6 var(--pb-font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:where(.pb-page) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:where(.pb-page) :where(ul, ol) { padding: 0; list-style: none; }
:where(.pb-page) :where(img, svg) { display: block; max-width: 100%; }
:where(.pb-page) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.pb-page) a { color: inherit; }

.pb-sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important;
}

.pb-skip {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px;
  color: var(--pb-lamp-ink); background: var(--pb-lamp); font-weight: 600; text-decoration: none;
}
.pb-skip:focus { top: 12px; }

/* ── Layout ─────────────────────────────────────────────────────────── */

.pb-wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.pb-section { padding-block: clamp(64px, 8.5vw, 112px); }
.pb-section + .pb-section.pb-flush { padding-top: 0; }

.pb-night {
  color: var(--pb-night-text);
  background: var(--pb-night);
}

.pb-rule { border: 0; border-top: 1px solid var(--pb-line); margin: 0; }

/* ── Type ───────────────────────────────────────────────────────────── */

.pb-h1 {
  font: 650 clamp(2.5rem, 5.4vw, 4.25rem)/1.02 var(--pb-font-display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.pb-h2 {
  font: 650 clamp(1.9rem, 3.5vw, 2.75rem)/1.08 var(--pb-font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.pb-h3 {
  font: 650 clamp(1.4rem, 2.3vw, 1.85rem)/1.14 var(--pb-font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.pb-h4 { font: 600 1.06rem/1.35 var(--pb-font-text); letter-spacing: -0.005em; }

.pb-lede {
  font-size: clamp(1.06rem, 1.45vw, 1.25rem);
  line-height: 1.55;
  color: var(--pb-ink-muted);
  max-width: 58ch;
  text-wrap: pretty;
}
.pb-night .pb-lede { color: var(--pb-night-muted); }

.pb-copy { color: var(--pb-ink-muted); max-width: 60ch; text-wrap: pretty; }
.pb-copy + .pb-copy { margin-top: 0.9em; }
.pb-night .pb-copy { color: var(--pb-night-muted); }

.pb-small { font-size: 0.875rem; line-height: 1.55; color: var(--pb-ink-muted); }
.pb-night .pb-small { color: var(--pb-night-dim); }

.pb-mono { font-family: var(--pb-font-mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.pb-kind {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--pb-lamp-on-day);
  font: 600 0.95rem/1.2 var(--pb-font-text);
}
.pb-night .pb-kind { color: var(--pb-lamp); }

.pb-text-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--pb-lamp-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 600;
}
.pb-text-link:hover { text-decoration-color: currentColor; }

.pb-page :focus-visible { outline: 2px solid var(--pb-lamp-deep); outline-offset: 3px; border-radius: 6px; }
.pb-night :focus-visible { outline-color: var(--pb-lamp); }

/* ── Buttons ────────────────────────────────────────────────────────── */

.pb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 14px;
  font: 600 1rem/1 var(--pb-font-text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.pb-btn:active { transform: translateY(1px); }
.pb-btn[disabled], .pb-btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }

.pb-btn-lamp {
  color: var(--pb-lamp-ink);
  background: linear-gradient(180deg, #ffc069, #f0a23a);
  box-shadow: 0 10px 30px rgba(240, 162, 58, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.pb-btn-lamp:hover { background: linear-gradient(180deg, #ffcb82, #f4ab48); }

.pb-btn-ink { color: var(--pb-paper); background: var(--pb-ink); }
.pb-btn-ink:hover { background: #1b2c52; }

.pb-btn-quiet { color: var(--pb-ink); background: transparent; border-color: #cfcbc1; }
.pb-btn-quiet:hover { border-color: var(--pb-ink); }
.pb-night .pb-btn-quiet { color: var(--pb-night-text); border-color: rgba(242, 239, 230, 0.22); }
.pb-night .pb-btn-quiet:hover { border-color: rgba(242, 239, 230, 0.5); }

/* ── Hero ───────────────────────────────────────────────────────────── */

.pb-hero {
  position: relative;
  overflow: hidden;
  padding: calc(72px + clamp(28px, 3.4vw, 44px)) 0 0;
  background:
    radial-gradient(900px 420px at 50% 100%, rgba(255, 180, 84, 0.10), transparent 70%),
    linear-gradient(180deg, #0a1222 0%, #0c1526 40%, #111c33 100%);
}

.pb-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 48px;
  row-gap: 22px;
  align-items: end;
}
.pb-hero-top .pb-h1 { grid-column: 1 / -1; max-width: 21ch; }
.pb-hero-lede { max-width: 54ch; }
.pb-hero-lede strong { color: var(--pb-night-text); font-weight: 600; }

.pb-hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pb-hero-actions .pb-btn { min-width: 232px; }
.pb-hero-note { color: var(--pb-night-dim); font-size: 0.9rem; }
.pb-hero-note a { color: var(--pb-night-muted); }

/* On the homepage the hero carries the action, so the header's copy of it
   stays quiet until the hero has scrolled away. */
.pb-home:not(.pb-past-hero) .pb-site-header .pb-site-actions .pb-site-action-primary {
  color: var(--pb-night-text) !important;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(242, 239, 230, 0.26);
}
.pb-home:not(.pb-past-hero) .pb-site-header .pb-site-actions .pb-site-action-primary:hover { background: rgba(242, 239, 230, 0.08); }

/* The scene: wherever a request starts, it leaves from your house. */

.pb-scene { margin-top: clamp(30px, 3.6vw, 44px); }
.pb-scene-head { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; }

.pb-scene-tabs {
  display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--pb-night-line); border-radius: 14px;
  background: rgba(242, 239, 230, 0.03);
}
.pb-scene-tab {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent;
  color: var(--pb-night-muted); font: 500 0.94rem/1 var(--pb-font-text); cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.pb-scene-tab:hover { color: var(--pb-night-text); }
.pb-scene-tab[aria-selected="true"] { color: var(--pb-night-text); background: rgba(242, 239, 230, 0.10); }

.pb-scene-caption {
  flex: 1 1 420px; min-height: 3.1em; max-width: 62ch; color: var(--pb-night-muted); font-size: 1rem; line-height: 1.55;
  display: flex; align-items: center;
}
.pb-scene-caption strong { color: var(--pb-night-text); font-weight: 600; }

.pb-scene-art { margin-top: 8px; }
.pb-scene-art svg { width: 100%; height: auto; }
.pb-scene-wide { display: block; }
.pb-scene-tall { display: none; }

.pb-scene .sc-house { fill: #15213b; }
.pb-scene .sc-house-far { fill: #121c33; }
.pb-scene .sc-home { fill: #1c2b4b; }
.pb-scene .sc-pane { fill: #1d2c4d; }
.pb-scene .sc-ground { stroke: #26365a; stroke-width: 1.5; }
.pb-scene .sc-star { fill: #f2efe6; opacity: 0.32; }
.pb-scene .sc-lit { fill: var(--pb-lamp); }
.pb-scene .sc-mullion { stroke: #b9781f; stroke-width: 1.6; }
.pb-scene .sc-tile { fill: rgba(242, 239, 230, 0.05); stroke: rgba(242, 239, 230, 0.20); stroke-width: 1.2; }
.pb-scene .sc-icon { fill: none; stroke: var(--pb-night-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pb-scene .sc-label { fill: var(--pb-night-text); font: 600 14px var(--pb-font-text); }
.pb-scene .sc-sub { fill: var(--pb-night-muted); font: 400 13px var(--pb-font-text); }
.pb-scene .sc-ip { fill: var(--pb-lamp); font: 500 15px var(--pb-font-mono); letter-spacing: -0.01em; }
.pb-scene .sc-thread-base { fill: none; stroke: var(--pb-lamp); stroke-width: 1.6; opacity: 0.26; }
.pb-scene .sc-thread-flow {
  fill: none; stroke: var(--pb-lamp); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1 15;
  animation: pb-thread 1.15s linear infinite;
}
@keyframes pb-thread { to { stroke-dashoffset: -16; } }

/* State: which source is shown, and whether the web side is in play. */
.pb-scene [data-source] { display: none; }
.pb-scene[data-mode="apps"] [data-source="apps"],
.pb-scene[data-mode="travel"] [data-source="travel"],
.pb-scene[data-mode="files"] [data-source="files"] { display: inline; }
.pb-scene[data-mode="apps"] .pb-scene-caption [data-source="apps"],
.pb-scene[data-mode="travel"] .pb-scene-caption [data-source="travel"],
.pb-scene[data-mode="files"] .pb-scene-caption [data-source="files"] { display: block; }
.pb-scene .sc-web { transition: opacity 240ms ease; }
.pb-scene[data-mode="files"] .sc-web { opacity: 0.16; }
.pb-scene[data-mode="files"] .sc-web .sc-thread-flow { animation: none; opacity: 0; }

/* ── Product intro ──────────────────────────────────────────────────── */

.pb-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.pb-intro-art { position: relative; border-radius: 28px; background: linear-gradient(160deg, #15223c, #0e1830); padding: clamp(24px, 4vw, 44px); }
.pb-intro-art svg { width: 100%; height: auto; }
.pb-intro .pb-h2 { max-width: 16ch; }
.pb-intro .pb-lede { margin-top: 18px; }

.pb-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 34px; border-top: 1px solid var(--pb-line); }
.pb-facts > div { padding: 18px 18px 0 0; }
.pb-facts > div + div { padding-left: 18px; border-left: 1px solid var(--pb-line); }
.pb-facts dt { color: var(--pb-ink-muted); font-size: 0.875rem; }
.pb-facts dd { margin-top: 4px; font: 600 1.06rem/1.3 var(--pb-font-text); }

/* ── Jobs ───────────────────────────────────────────────────────────── */

.pb-jobs-head { max-width: 720px; }
.pb-jobs-head .pb-lede { margin-top: 16px; }

.pb-job {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px);
  align-items: center; padding-block: clamp(40px, 5.5vw, 72px); border-top: 1px solid var(--pb-line);
}
.pb-job:first-of-type { margin-top: clamp(36px, 5vw, 60px); }
.pb-job .pb-copy { margin-top: 14px; }

.pb-job-points { margin-top: 22px; display: grid; gap: 10px; }
.pb-job-points li { position: relative; padding-left: 22px; color: var(--pb-ink); font-size: 0.97rem; line-height: 1.5; }
.pb-job-points li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--pb-lamp-deep);
}

.pb-job-needs {
  margin-top: 20px; padding: 14px 16px; border-radius: 12px;
  background: #ece8df; color: var(--pb-ink); font-size: 0.93rem; line-height: 1.5; max-width: 60ch;
}

/* Figures: plain interface fragments, not decoration. */
.pb-fig {
  border: 1px solid var(--pb-line); border-radius: 22px; background: var(--pb-card);
  box-shadow: 0 1px 0 rgba(19, 32, 60, 0.03), 0 24px 48px -28px rgba(19, 32, 60, 0.22);
  padding: clamp(20px, 3vw, 30px);
}
.pb-fig-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 1rem/1.3 var(--pb-font-text); }
.pb-fig-title small { color: var(--pb-ink-muted); font-weight: 400; font-size: 0.875rem; }

.pb-codeline {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--pb-night-ink); color: var(--pb-night-text);
  font: 500 0.9rem/1.5 var(--pb-font-mono); overflow-x: auto; white-space: nowrap;
}
.pb-codeline em { font-style: normal; color: var(--pb-lamp); }

.pb-fields { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pb-fields > div { padding: 10px 12px; border: 1px solid var(--pb-line); border-radius: 12px; }
.pb-fields dt { color: var(--pb-ink-muted); font-size: 0.78rem; }
.pb-fields dd { margin-top: 2px; font: 500 0.88rem/1.3 var(--pb-font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pb-verified { margin-top: 16px; display: flex; align-items: center; gap: 10px; font-size: 0.93rem; color: var(--pb-ink); }
.pb-verified::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--pb-verified-on-day);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 0a9 9 0 100 18A9 9 0 009 0zm4.2 6.9l-4.8 5a.8.8 0 01-1.1 0L4.8 9.4a.8.8 0 011.1-1.1l1.9 1.9 4.2-4.4a.8.8 0 011.2 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 0a9 9 0 100 18A9 9 0 009 0zm4.2 6.9l-4.8 5a.8.8 0 01-1.1 0L4.8 9.4a.8.8 0 011.1-1.1l1.9 1.9 4.2-4.4a.8.8 0 011.2 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pb-verified b { font-weight: 600; }

.pb-seg { display: inline-flex; padding: 3px; border-radius: 11px; background: #ece8df; }
.pb-seg span { padding: 7px 14px; border-radius: 8px; font-size: 0.875rem; font-weight: 500; color: var(--pb-ink-muted); }
.pb-seg span[data-on] { color: var(--pb-ink); background: var(--pb-card); box-shadow: 0 1px 2px rgba(19, 32, 60, 0.12); }

.pb-rows { margin-top: 16px; display: grid; }
.pb-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--pb-line); font-size: 0.95rem; }
.pb-rows li span:last-child { color: var(--pb-ink-muted); font-size: 0.875rem; }
.pb-fig-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--pb-line); color: var(--pb-ink-muted); font-size: 0.875rem; }
.pb-fig-foot .pb-mono { color: var(--pb-ink); }

/* ── Setup ──────────────────────────────────────────────────────────── */

.pb-setup { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.pb-setup .pb-lede { margin-top: 16px; }

.pb-steps { margin-top: 36px; counter-reset: step; position: relative; }
.pb-steps::before {
  content: ""; position: absolute; left: 19px; top: 20px; bottom: 44px; width: 2px;
  background: linear-gradient(180deg, var(--pb-lamp-deep), rgba(232, 154, 43, 0.25));
}
.pb-steps li { position: relative; padding: 0 0 30px 62px; counter-increment: step; }
.pb-steps li:last-child { padding-bottom: 0; }
.pb-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--pb-lamp-ink); background: var(--pb-lamp);
  font: 650 1.05rem/1 var(--pb-font-display); box-shadow: 0 0 0 6px var(--pb-paper);
}
.pb-steps .pb-h4 { padding-top: 7px; }
.pb-steps p { margin-top: 6px; color: var(--pb-ink-muted); font-size: 0.97rem; max-width: 46ch; }

.pb-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); align-items: start; }
.pb-phone { margin: 0; }
.pb-phone:nth-child(2) { margin-top: 56px; }
.pb-phone img {
  width: 100%; height: auto; border-radius: clamp(22px, 3vw, 34px); border: 1px solid rgba(19, 32, 60, 0.14);
  box-shadow: 0 30px 60px -30px rgba(19, 32, 60, 0.45); background: #fff;
}
.pb-phone figcaption { margin-top: 12px; color: var(--pb-ink-muted); font-size: 0.875rem; text-align: center; }

/* ── Compare ────────────────────────────────────────────────────────── */

.pb-compare-head { max-width: 760px; }
.pb-compare-head .pb-lede { margin-top: 16px; }

.pb-table { width: 100%; margin-top: clamp(28px, 4vw, 44px); border-collapse: collapse; font-size: 0.97rem; }
.pb-table th, .pb-table td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--pb-line); }
.pb-table thead th { padding-top: 0; color: var(--pb-ink-muted); font-weight: 500; font-size: 0.9rem; }
.pb-table tbody th { width: 26%; font-weight: 500; color: var(--pb-ink-muted); padding-left: 0; }
.pb-table td { color: var(--pb-ink); }
.pb-table .pb-ours { background: rgba(255, 180, 84, 0.13); font-weight: 600; }
.pb-table thead .pb-ours { color: var(--pb-ink); font-weight: 650; padding-top: 16px; border-radius: 14px 14px 0 0; }
.pb-table tbody tr:last-child .pb-ours { border-radius: 0 0 14px 14px; border-bottom-color: transparent; }
.pb-compare-note { margin-top: 20px; }

/* ── Hardware ───────────────────────────────────────────────────────── */

.pb-hw-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.pb-hw-head .pb-lede { margin-top: 16px; }

.pb-models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(28px, 4vw, 44px); }
.pb-model {
  display: flex; flex-direction: column; border: 1px solid var(--pb-line); border-radius: 24px; background: var(--pb-card);
  padding: clamp(22px, 3vw, 32px);
}
.pb-model-art { height: 176px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 16px; background: linear-gradient(160deg, #15223c, #0e1830); }
.pb-model-art svg { height: 150px; width: auto; }
.pb-model-fit { color: var(--pb-ink-muted); font-size: 0.93rem; }
.pb-model .pb-h3 { margin-top: 4px; }
.pb-model-desc { margin-top: 10px; color: var(--pb-ink-muted); font-size: 0.97rem; max-width: 40ch; }
.pb-price { margin-top: 22px; display: flex; align-items: baseline; gap: 10px; }
.pb-price strong { font: 650 3rem/1 var(--pb-font-display); letter-spacing: -0.03em; }
.pb-price span { color: var(--pb-ink-muted); font-size: 0.9rem; }
.pb-model-list { margin: 22px 0 26px; display: grid; gap: 10px; }
.pb-model-list li { position: relative; padding-left: 26px; font-size: 0.95rem; line-height: 1.45; }
.pb-model-list li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 16px; height: 16px; background: var(--pb-verified-on-day);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6L2.9 8.3l1.2-1.2 2.1 2.1 5.7-5.7 1.2 1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6L2.9 8.3l1.2-1.2 2.1 2.1 5.7-5.7 1.2 1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pb-model .pb-btn { margin-top: auto; width: 100%; }

.pb-addon {
  margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 20px clamp(20px, 3vw, 32px); border: 1px solid var(--pb-line); border-radius: 20px; background: var(--pb-card);
}
.pb-addon p { margin-top: 4px; color: var(--pb-ink-muted); font-size: 0.95rem; max-width: 70ch; }
.pb-addon-price { font: 650 1.6rem/1 var(--pb-font-display); white-space: nowrap; }

.pb-service { margin-top: 20px; padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: #ece8df; }
.pb-service p { margin-top: 8px; color: var(--pb-ink); max-width: 76ch; font-size: 0.97rem; }

/* ── Privacy ────────────────────────────────────────────────────────── */

.pb-privacy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.pb-privacy .pb-lede { margin-top: 16px; }
.pb-ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--pb-line); }
.pb-ledger > div { padding: 22px 24px 0 0; }
.pb-ledger > div + div { padding-left: 24px; border-left: 1px solid var(--pb-line); }
.pb-ledger ul { margin-top: 14px; display: grid; gap: 12px; }
.pb-ledger li { font-size: 0.97rem; line-height: 1.45; color: var(--pb-ink-muted); }
.pb-ledger li b { display: block; color: var(--pb-ink); font-weight: 600; }

/* ── Founder ────────────────────────────────────────────────────────── */

.pb-founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.pb-founder blockquote { margin: 0; }
.pb-founder blockquote p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--pb-ink); max-width: 58ch; }
.pb-founder blockquote p + p { margin-top: 1em; }
.pb-founder-sign { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 0.95rem; color: var(--pb-ink-muted); }
.pb-founder-sign b { color: var(--pb-ink); font-weight: 600; }

.pb-tally { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--pb-line); }
.pb-tally > div { padding: 18px 16px 0 0; }
.pb-tally > div + div { padding-left: 18px; border-left: 1px solid var(--pb-line); }
.pb-tally dt { color: var(--pb-ink-muted); font-size: 0.875rem; }
.pb-tally dd { margin-top: 2px; font: 650 1.7rem/1.1 var(--pb-font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ── FAQ ────────────────────────────────────────────────────────────── */

.pb-faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.pb-faq-layout .pb-lede { margin-top: 16px; }
.pb-qa { border-top: 1px solid var(--pb-line); }
.pb-qa details { border-bottom: 1px solid var(--pb-line); }
.pb-qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer;
  list-style: none; font: 600 1.06rem/1.35 var(--pb-font-text);
}
.pb-qa summary::-webkit-details-marker { display: none; }
.pb-qa summary::after {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px; border-right: 2px solid var(--pb-ink-muted); border-bottom: 2px solid var(--pb-ink-muted);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 160ms ease;
}
.pb-qa details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.pb-qa details p { padding: 0 0 22px; color: var(--pb-ink-muted); max-width: 64ch; }

/* ── Invitation ─────────────────────────────────────────────────────── */

.pb-invite {
  background:
    radial-gradient(700px 360px at 22% 0%, rgba(255, 180, 84, 0.10), transparent 70%),
    linear-gradient(180deg, #101a2e, #0a1222);
}
.pb-invite-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.pb-invite .pb-lede { margin-top: 18px; }
.pb-invite-points { margin-top: 28px; display: grid; gap: 14px; }
.pb-invite-points li { position: relative; padding-left: 24px; color: var(--pb-night-muted); font-size: 0.97rem; }
.pb-invite-points li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--pb-lamp); }
.pb-invite-points b { color: var(--pb-night-text); font-weight: 600; }
.pb-invite-art { width: min(100%, 420px); height: auto; margin-top: 44px; }

.pb-form {
  padding: clamp(22px, 3.2vw, 34px); border: 1px solid rgba(255, 180, 84, 0.18); border-radius: 24px;
  background: linear-gradient(160deg, #15223c, #0e1830);
}
.pb-field + .pb-field, .pb-field + .pb-fieldset, .pb-fieldset + .pb-field, .pb-fieldset + .pb-fieldset { margin-top: 18px; }
.pb-field label, .pb-fieldset legend { display: block; margin-bottom: 8px; padding: 0; color: var(--pb-night-text); font: 600 0.93rem/1.3 var(--pb-font-text); }
.pb-field label small, .pb-fieldset legend small { color: var(--pb-night-dim); font-weight: 400; }
.pb-input {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(242, 239, 230, 0.18); border-radius: 12px;
  background: rgba(10, 18, 34, 0.6); color: var(--pb-night-text); font-size: 1rem; outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.pb-input::placeholder { color: var(--pb-night-dim); }
.pb-input:focus { border-color: var(--pb-lamp); box-shadow: 0 0 0 3px rgba(255, 180, 84, 0.18); }
textarea.pb-input { min-height: 88px; resize: vertical; line-height: 1.5; }
.pb-fieldset { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.pb-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-choice { position: relative; }
.pb-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pb-choice span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1px solid rgba(242, 239, 230, 0.18);
  border-radius: 11px; color: var(--pb-night-muted); font-size: 0.93rem; font-weight: 500; transition: all 140ms ease;
}
.pb-choice input:checked + span { color: var(--pb-lamp-ink); background: var(--pb-lamp); border-color: var(--pb-lamp); }
.pb-choice input:focus-visible + span { outline: 2px solid var(--pb-lamp); outline-offset: 3px; }
.pb-form .pb-btn { width: 100%; margin-top: 24px; }
.pb-form-note { margin-top: 14px; color: var(--pb-night-dim); font-size: 0.85rem; line-height: 1.5; }
.pb-form-note a { color: var(--pb-night-muted); }
.pb-form-status { margin-top: 14px; min-height: 1.4em; font-size: 0.93rem; color: var(--pb-night-muted); }
.pb-form-status[data-kind="error"] { color: #ffb4a3; }
.pb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.pb-form-done { text-align: left; }
.pb-form-done .pb-h3 { color: var(--pb-night-text); }
.pb-form-done p { margin-top: 12px; color: var(--pb-night-muted); }
.pb-form-done .pb-lit { width: 54px; height: 54px; margin-bottom: 18px; }

/* ── Inner-page hero and shared bits ────────────────────────────────── */

.pb-subhero {
  padding: calc(72px + clamp(40px, 6vw, 80px)) 0 clamp(44px, 6vw, 80px);
  background:
    radial-gradient(700px 320px at 78% 100%, rgba(255, 180, 84, 0.10), transparent 70%),
    linear-gradient(180deg, #0a1222 0%, #0c1526 45%, #111c33 100%);
}
.pb-subhero .pb-lede { margin-top: 20px; max-width: 60ch; }
.pb-subhero-facts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 0; color: var(--pb-night-text); font-size: 0.95rem; font-weight: 500; }
.pb-subhero-facts li { padding-right: 20px; margin-right: 20px; border-right: 1px solid var(--pb-night-line); }
.pb-subhero-facts li:last-child { padding-right: 0; margin-right: 0; border-right: 0; }

.pb-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.pb-split .pb-lede + .pb-lede, .pb-split .pb-h2 + .pb-lede { margin-top: 16px; }

.pb-table-scroll { overflow-x: auto; }
.pb-table-plain { margin-top: 0; }
.pb-table-plain td:first-child { width: 46%; padding-left: 0; color: var(--pb-ink-muted); }
.pb-table-plain thead th:first-child { padding-left: 0; }
.pb-table-plain td { font-weight: 500; }

.pb-lost { min-height: min(86vh, 760px); display: flex; align-items: center; }
.pb-lost-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.pb-lost-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.pb-lost-art { width: 100%; height: auto; }

/* ── Welcome (first page after the QR code in the box) ──────────────── */

.pb-welcome-art { width: 100%; height: auto; }

.pb-lights { margin-top: 26px; border-top: 1px solid var(--pb-line); }
.pb-lights > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--pb-line); }
.pb-lights dt { font-weight: 600; font-size: 0.97rem; }
.pb-lights dd { color: var(--pb-ink-muted); font-size: 0.97rem; }

.pb-way {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 5vw, 88px);
  padding-block: clamp(28px, 4vw, 44px); border-top: 1px solid var(--pb-line);
}
.pb-way:first-of-type { margin-top: clamp(28px, 4vw, 44px); }
.pb-way-steps { counter-reset: way; display: grid; gap: 12px; }
.pb-way-steps li { position: relative; padding-left: 38px; counter-increment: way; font-size: 1rem; line-height: 1.5; }
.pb-way-steps li::before {
  content: counter(way); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: #ece8df; color: var(--pb-ink); font: 600 0.82rem/1 var(--pb-font-text);
}

.pb-next-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 6px; }
.pb-next-actions .pb-btn { min-width: 220px; }

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .pb-intro, .pb-job, .pb-setup, .pb-privacy, .pb-founder, .pb-faq-layout, .pb-invite-grid, .pb-split, .pb-lost-grid, .pb-way { grid-template-columns: minmax(0, 1fr); }
  .pb-hero-top { grid-template-columns: minmax(0, 1fr); }
  .pb-hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
  .pb-intro-art { order: -1; max-width: 520px; }
  .pb-phones { max-width: 560px; }
}

@media (max-width: 720px) {
  body.pb-page { font-size: 16px; }
  .pb-wrap { width: min(100% - 40px, 1160px); }
  .pb-hero { padding-top: calc(64px + 32px); }
  .pb-hero-actions .pb-btn { width: 100%; }
  .pb-scene-tabs { display: flex; width: 100%; }
  .pb-scene-tab { flex: 1 1 0; padding: 0 8px; font-size: 0.88rem; }
  .pb-scene-wide { display: none; }
  .pb-scene-tall { display: block; }
  .pb-scene-caption { flex-basis: 100%; min-height: 4.7em; align-items: flex-start; }
  .pb-facts, .pb-tally { grid-template-columns: minmax(0, 1fr); }
  .pb-facts > div, .pb-tally > div { padding: 14px 0; border-bottom: 1px solid var(--pb-line); display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
  .pb-facts > div + div, .pb-tally > div + div { padding-left: 0; border-left: 0; }
  .pb-facts dd, .pb-tally dd { margin-top: 0; text-align: right; }
  .pb-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pb-models { grid-template-columns: minmax(0, 1fr); }
  .pb-addon { grid-template-columns: minmax(0, 1fr); }
  .pb-ledger { grid-template-columns: minmax(0, 1fr); }
  .pb-ledger > div + div { padding-left: 0; border-left: 0; margin-top: 22px; border-top: 1px solid var(--pb-line); }
  .pb-phone:nth-child(2) { margin-top: 28px; }
  .pb-invite-art { display: none; }

  /* The comparison becomes one block per question. */
  .pb-table:not(.pb-table-plain) thead { position: absolute; left: -9999px; }
  .pb-table:not(.pb-table-plain), .pb-table:not(.pb-table-plain) tbody, .pb-table:not(.pb-table-plain) tr,
  .pb-table:not(.pb-table-plain) th, .pb-table:not(.pb-table-plain) td { display: block; width: 100%; }
  .pb-table:not(.pb-table-plain) tr { padding: 18px 0; border-bottom: 1px solid var(--pb-line); }
  .pb-table:not(.pb-table-plain) tbody th { width: 100%; padding: 0 0 8px; border: 0; color: var(--pb-ink); font-weight: 600; }
  .pb-table:not(.pb-table-plain) td { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 7px 10px; border: 0; }
  .pb-table:not(.pb-table-plain) td::before { content: attr(data-label); color: var(--pb-ink-muted); font-weight: 400; }
  .pb-table .pb-ours, .pb-table tbody tr:last-child .pb-ours { border-radius: 10px; }
  .pb-table-plain th, .pb-table-plain td { padding: 13px 10px; font-size: 0.9rem; }
  .pb-subhero-facts { flex-direction: column; }
  .pb-lights > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pb-subhero-facts li { border-right: 0; margin-right: 0; padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pb-scene .sc-thread-flow { animation: none; stroke-dasharray: none; stroke-width: 2; }
  .pb-btn, .pb-input, .pb-scene-tab { transition: none; }
}
