/* D1 — PREVIEW. The pin field as the background of every page.
   The copy is the live site's copy. Only the surfaces are restyled, so
   light-on-dark glass sits on the field instead of white-on-white. */

/* --- platform chrome ---------------------------------------------------
   The host injects a "Created by MiniMax Agent" badge into every page it
   serves: position fixed, bottom 20px, right 20px, z-index 9999, 230 x 40.
   That box lands exactly on the 44px NEXT edge button. Measured on the
   published preview: clicking NEXT timed out and the page never changed
   (hero -> hero), on desktop and on mobile — the badge swallowed the
   click. It is 230px wide, so on a 390px phone it cannot fit between the
   two corner buttons at all. The preview owns that corner, so the badge is
   hidden here. The live site keeps its badge. */

#minimax-floating-ball {
  display: none !important;
}

@font-face {
  font-family: 'Michroma';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/michroma-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  --pf-bg-0: #07090d;
  --pf-bg-1: #0b0e12;
  --pf-ink: #e8ecf2;
  --pf-ink-2: #8a93a3;
  --pf-blue: #1f6bff;
  --pf-blue-hi: #2e7bff;
  --pf-amber: #ffb547;
  --pf-gold: #c9a75a;
  --pf-line: rgba(232, 236, 242, 0.11);
  --pf-line-2: rgba(232, 236, 242, 0.2);
  --pf-panel: rgba(9, 12, 17, 0.88);
  --pf-glass: rgba(10, 14, 20, 0.62);
  --pf-glass-2: rgba(10, 14, 20, 0.78);
  --pf-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pf-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--pf-bg-0);
}

#pf-root {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--pf-bg-0) 0%, var(--pf-bg-1) 100%);
  color: var(--pf-ink);
  font-family: var(--pf-body);
  -webkit-font-smoothing: antialiased;
}

/* The field is the page ground. Edge to edge. No frame, no card, no border. */
#pf-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  touch-action: none;
}

#pf-ui {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* --- channel line + nav ------------------------------------------------ */

#pf-channel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--pf-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--pf-ink-2);
  pointer-events: none;
  z-index: 5;
  isolation: isolate;
}
/* The channel line sits directly on the field. A legibility gradient, not a
   frame — the field still runs edge to edge underneath it. */
#pf-channel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 78px;
  background: linear-gradient(
    180deg,
    rgba(4, 5, 8, 0.9) 0%,
    rgba(4, 5, 8, 0.64) 38%,
    rgba(4, 5, 8, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}
#pf-channel > * {
  position: relative;
  z-index: 1;
}
#pf-channel .pf-ch-left::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--pf-blue-hi);
  box-shadow: 0 0 10px rgba(46, 123, 255, 0.85);
  vertical-align: 1px;
}

#pf-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  pointer-events: auto;
}
#pf-nav button {
  appearance: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  background: none;
  color: var(--pf-ink-2);
  font-family: var(--pf-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  transition: color 220ms ease;
}
#pf-nav button:hover {
  color: var(--pf-ink);
}
#pf-nav button[aria-current='true'] {
  color: var(--pf-ink);
}

/* --- page stack -------------------------------------------------------- */

#pf-pages {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pf-page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  will-change: transform, opacity, filter;
}
#pf-out {
  z-index: 1;
}
#pf-liquid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}
#pf-in {
  z-index: 3;
}

/* The content column. It scrolls over the fixed field. */
.pf-page-scroll {
  position: absolute;
  inset: 0 0 76px 0;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
/* A soft vertical band over the content column only. The left and right
   edges of the screen keep the raw field, and the entity glow reads
   straight through the band. It sits UNDER the liquid sheet so the
   wavefront is never muted by it. */
#pf-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(5, 7, 11, 0) 0%,
    rgba(5, 7, 11, 0.46) 9%,
    rgba(5, 7, 11, 0.68) 26%,
    rgba(5, 7, 11, 0.68) 74%,
    rgba(5, 7, 11, 0.46) 91%,
    rgba(5, 7, 11, 0) 100%
  );
}

.pf-shell {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(84px, 13vh, 132px) clamp(22px, 4vw, 56px) 48px;
}
.pf-narrow {
  width: min(760px, 100%);
}
.pf-centered {
  text-align: center;
}

/* --- type -------------------------------------------------------------- */

.pf-display {
  margin: 0 0 14px;
  font-family: 'Michroma', var(--pf-body);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.6vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--pf-ink);
  text-shadow: 0 2px 34px rgba(5, 7, 11, 0.9);
}
.pf-display-sm {
  font-family: 'Michroma', var(--pf-body);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1;
  color: var(--pf-ink);
}
.pf-display-sm.is-dim {
  opacity: 0.62;
}
.pf-sub {
  margin: 0 0 26px;
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
  letter-spacing: 0.015em;
  color: var(--pf-ink-2);
  text-shadow: 0 1px 16px rgba(5, 7, 11, 0.85);
}
.pf-h2 {
  margin: 0 0 22px;
  max-width: 22ch;
  font-family: 'Michroma', var(--pf-body);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.7vw, 1.95rem);
  line-height: 1.14;
  color: var(--pf-ink);
  text-shadow: 0 2px 26px rgba(5, 7, 11, 0.9);
}
.pf-lede {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--pf-ink-2);
  text-shadow: 0 1px 16px rgba(5, 7, 11, 0.85);
}
.pf-dim {
  color: var(--pf-ink-2);
}
.pf-bright {
  color: var(--pf-ink);
}
.pf-accent {
  color: var(--pf-blue-hi);
}
.pf-micro {
  font-family: var(--pf-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--pf-ink-2);
  text-shadow: 0 1px 12px rgba(5, 7, 11, 0.8);
}
.pf-mono-inline {
  font-family: var(--pf-mono);
  color: var(--pf-ink);
}
.pf-num {
  font-variant-numeric: tabular-nums;
}
.pf-note {
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: none;
}
.pf-over {
  color: #ff8f72;
}

/* --- section head ------------------------------------------------------ */

.pf-head {
  margin-bottom: clamp(26px, 4vh, 46px);
}
.pf-eyebrow {
  margin: 0 0 12px;
  font-family: var(--pf-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--pf-ink-2);
  text-shadow: 0 1px 12px rgba(5, 7, 11, 0.8);
}
.pf-eyebrow-i {
  margin-right: 12px;
  color: var(--pf-blue-hi);
}

/* --- cards ------------------------------------------------------------- */

.pf-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pf-card {
  position: relative;
  padding: 22px 22px 24px;
  border: 1px solid var(--pf-line);
  border-radius: 14px;
  background: var(--pf-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.9);
}
.pf-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.pf-card-n {
  font-family: var(--pf-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--pf-blue-hi);
}
.pf-card-h {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--pf-ink);
}
.pf-card-p {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--pf-ink-2);
}
.pf-card.is-off {
  opacity: 0.62;
}

/* --- honest limit ------------------------------------------------------ */

.pf-honest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 20px;
  row-gap: 8px;
  margin-top: 26px;
  padding: 18px 24px;
  border: 1px solid var(--pf-line);
  border-radius: 14px;
  background: var(--pf-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.pf-honest-rule {
  width: 1px;
  height: 14px;
  background: var(--pf-line-2);
}
.pf-honest-line {
  margin: 0;
  font-family: 'Michroma', var(--pf-body);
  font-size: clamp(1rem, 1.9vw, 1.35rem);
  color: var(--pf-ink);
}

/* --- grid page --------------------------------------------------------- */

.pf-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.pf-grid-readout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.pf-aside {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 22px 24px;
  border: 1px solid var(--pf-line);
  border-radius: 16px;
  background: var(--pf-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.pf-aside-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}
.pf-aside-block > .pf-micro {
  display: block;
  margin-bottom: 10px;
}
.pf-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pf-blue-hi);
  box-shadow: 0 0 8px rgba(46, 123, 255, 0.9);
}
.pf-legend {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.pf-legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--pf-mono);
  font-size: 11.5px;
  color: var(--pf-ink-2);
}
.pf-swatch {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border-radius: 3px;
}
.pf-swatch-hairline {
  box-shadow: inset 0 0 0 1px rgba(232, 236, 242, 0.24);
}
.pf-swatch-quartz {
  background: linear-gradient(180deg, #96e1ff, #1a9bd7);
  box-shadow: 0 0 7px rgba(111, 211, 255, 0.85);
}
.pf-swatch-split {
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(26, 155, 215, 0.45);
}
.pf-swatch-split::before {
  content: '';
  display: block;
  width: 50%;
  height: 100%;
  background: linear-gradient(180deg, #96e1ff, #1a9bd7);
  box-shadow: 0 0 6px rgba(111, 211, 255, 0.8);
}
.pf-swatch-hatch {
  background: repeating-linear-gradient(
    45deg,
    rgba(232, 236, 242, 0.26) 0 1px,
    rgba(232, 236, 242, 0.05) 1px 4px
  );
}
.pf-swatch-gold {
  box-shadow: inset 0 0 0 1.5px var(--pf-gold);
  background: rgba(243, 227, 181, 0.4);
}
.pf-aside-block {
  padding-left: 28px;
  border-left: 1px solid var(--pf-line);
}
.pf-aside-block:first-child {
  padding-left: 0;
  border-left: 0;
}
.pf-aside-copy {
  margin: 9px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--pf-ink-2);
}

/* --- ledger ------------------------------------------------------------ */

.pf-ledger {
  columns: 3;
  column-gap: 18px;
}
@media (max-width: 1080px) {
  .pf-ledger {
    columns: 2;
  }
}
.pf-ledger-card {
  display: block;
  break-inside: avoid;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--pf-line);
  border-radius: 16px;
  background: var(--pf-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px -26px rgba(0, 0, 0, 0.9);
}
.pf-ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--pf-line);
  font-family: var(--pf-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--pf-ink-2);
}
.pf-ledger-coord {
  white-space: nowrap;
  color: var(--pf-ink-2);
}
.pf-ledger-msg {
  margin: 18px 0 0;
  font-size: 16.5px;
  line-height: 1.6;
  letter-spacing: -0.008em;
  color: var(--pf-ink);
}
.pf-ledger-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.pf-react {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--pf-line-2);
  border-radius: 999px;
  background: rgba(232, 236, 242, 0.05);
  color: var(--pf-ink-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.pf-react:hover {
  color: var(--pf-ink);
}
.pf-react.is-on {
  border-color: rgba(46, 123, 255, 0.45);
  background: rgba(46, 123, 255, 0.18);
  color: var(--pf-ink);
}
.pf-react-n {
  font-family: var(--pf-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--pf-ink-2);
}

/* --- odds meter -------------------------------------------------------- */

.pf-meter {
  padding: 28px 24px 30px;
  border: 1px solid var(--pf-line);
  border-radius: 20px;
  background: var(--pf-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
}
.pf-meter-svg {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: block;
}
.pf-meter-readout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 22px;
  row-gap: 10px;
  margin-top: 24px;
}
.pf-dot-sep {
  width: 1px;
  height: 16px;
  background: rgba(232, 236, 242, 0.3);
}
.pf-meter-readout .pf-micro {
  white-space: nowrap;
}
.pf-meter-note {
  max-width: 36rem;
  margin: 22px auto 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--pf-ink-2);
}

/* --- pricing ----------------------------------------------------------- */

.pf-tier {
  display: flex;
  flex-direction: column;
}
.pf-tier-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.pf-tier-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0 0;
}
.pf-chip {
  padding: 3px 8px;
  border: 1px solid var(--pf-line-2);
  border-radius: 6px;
  font-family: var(--pf-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--pf-ink-2);
}
.pf-hr {
  height: 1px;
  width: 100%;
  background: var(--pf-line);
}
.pf-tier-body {
  flex: 1;
  margin-top: 18px;
}
.pf-cta-wide {
  width: 100%;
  margin-top: 22px;
  text-align: center;
}
.pf-coming {
  margin-top: 22px;
  padding: 12px 18px;
  border: 1px solid var(--pf-line);
  border-radius: 11px;
  background: rgba(232, 236, 242, 0.04);
  text-align: center;
  font-family: var(--pf-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--pf-ink-2);
}

.pf-founder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  padding: 24px 26px;
  border: 1px solid rgba(201, 167, 90, 0.4);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(201, 167, 90, 0.16) 0%,
    rgba(201, 167, 90, 0.06) 100%
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.pf-founder-badge {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  border: 1px solid rgba(201, 167, 90, 0.5);
  background: rgba(243, 227, 181, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.pf-founder-badge-sm {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}
.pf-founder-copy {
  flex: 1;
  min-width: 240px;
}
.pf-founder-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
}
.pf-founder-top .pf-micro {
  color: rgba(232, 236, 242, 0.72);
}
.pf-founder-body {
  margin: 8px 0 0;
  max-width: 46rem;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(232, 236, 242, 0.82);
}
.pf-founder-count {
  text-align: right;
}
.pf-founder-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px solid var(--pf-line);
  border-radius: 12px;
  background: rgba(232, 236, 242, 0.04);
  font-size: 13.5px;
  color: var(--pf-ink-2);
}

/* --- message flow ------------------------------------------------------ */

.pf-rail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--pf-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--pf-ink-2);
}
.pf-rail .is-on {
  color: var(--pf-ink);
}
.pf-rail-sep {
  color: var(--pf-ink-2);
}
.pf-plans {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}
.pf-plan {
  display: block;
  padding: 16px;
  border: 1px solid var(--pf-line);
  border-radius: 14px;
  background: rgba(232, 236, 242, 0.04);
  color: var(--pf-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
}
.pf-plan:hover:not(.is-off) {
  border-color: rgba(46, 123, 255, 0.45);
  background: rgba(46, 123, 255, 0.1);
}
.pf-plan.is-on {
  border-color: rgba(46, 123, 255, 0.6);
  background: rgba(46, 123, 255, 0.16);
}
.pf-plan.is-off {
  opacity: 0.42;
  cursor: not-allowed;
}
.pf-plan-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.pf-plan-name {
  font-size: 14px;
  font-weight: 500;
}
.pf-plan-sub {
  display: block;
  margin-top: 8px;
  font-family: var(--pf-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--pf-ink-2);
}

.pf-field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.pf-field-row-tight {
  margin-top: 22px;
}
.pf-field-label {
  font-size: 14px;
  color: var(--pf-ink-2);
}
.pf-input {
  padding: 9px 12px;
  border: 1px solid var(--pf-line);
  border-radius: 10px;
  background: rgba(232, 236, 242, 0.05);
  color: var(--pf-ink);
  font-family: var(--pf-body);
  font-size: 14px;
  outline: none;
}
.pf-input:focus {
  border-color: rgba(46, 123, 255, 0.6);
}
.pf-input-num {
  width: 76px;
}
.pf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.pf-chip-btn {
  padding: 6px 13px;
  border: 1px solid var(--pf-line);
  border-radius: 999px;
  background: rgba(232, 236, 242, 0.05);
  color: var(--pf-ink-2);
  font-size: 13px;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
}
.pf-chip-btn:hover {
  border-color: rgba(46, 123, 255, 0.45);
  color: var(--pf-ink);
}
.pf-textarea {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--pf-line);
  border-radius: 14px;
  background: rgba(232, 236, 242, 0.05);
  color: var(--pf-ink);
  font-family: var(--pf-body);
  font-size: 15px;
  line-height: 1.55;
  resize: none;
  outline: none;
}
.pf-textarea:focus {
  border-color: rgba(46, 123, 255, 0.6);
}
.pf-textarea::placeholder {
  color: rgba(138, 147, 163, 0.7);
}
.pf-textmeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  font-family: var(--pf-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--pf-ink-2);
}
.pf-gender {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--pf-line);
  border-radius: 9px;
  background: rgba(232, 236, 242, 0.05);
}
.pf-gender-btn {
  width: 32px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--pf-ink-2);
  font-size: 12px;
  cursor: pointer;
}
.pf-gender-btn.is-on {
  background: rgba(232, 236, 242, 0.9);
  color: #0a0f1a;
}
.pf-publish {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--pf-line);
  border-radius: 14px;
  background: rgba(232, 236, 242, 0.04);
}
.pf-publish-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--pf-ink);
}
.pf-publish-body {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--pf-ink-2);
}
.pf-switch {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(232, 236, 242, 0.4);
  border-radius: 999px;
  background: rgba(10, 15, 26, 0.4);
  cursor: pointer;
  transition: background 300ms ease;
}
.pf-switch.is-on {
  background: linear-gradient(180deg, #2aa6de, #1a9bd7);
}
.pf-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(10, 15, 26, 0.35);
  transition: left 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pf-switch.is-on span {
  left: 25px;
}
.pf-sealed {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}

.pf-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}
.pf-ghost {
  appearance: none;
  cursor: pointer;
  padding: 12px 20px;
  border: 1px solid var(--pf-line-2);
  border-radius: 10px;
  background: rgba(232, 236, 242, 0.05);
  color: var(--pf-ink);
  font-family: var(--pf-body);
  font-weight: 500;
  font-size: 14.5px;
  transition: border-color 200ms ease, background 200ms ease;
}
.pf-ghost:hover {
  border-color: rgba(46, 123, 255, 0.5);
  background: rgba(46, 123, 255, 0.12);
}

/* --- review ------------------------------------------------------------ */

.pf-review {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--pf-line);
  border-radius: 16px;
  background: var(--pf-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.pf-review-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--pf-line);
}
.pf-review-msg {
  margin-top: 12px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(232, 236, 242, 0.06);
}
.pf-review-body {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--pf-ink);
}
.pf-done-mark {
  width: 92px;
  height: 92px;
  margin: 0 auto 26px;
  border: 1px solid rgba(46, 123, 255, 0.5);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 40%, rgba(46, 123, 255, 0.4), rgba(46, 123, 255, 0.05) 70%);
  box-shadow: 0 0 60px -14px rgba(46, 123, 255, 0.7);
}

/* --- faq --------------------------------------------------------------- */

.pf-faq {
  border: 1px solid var(--pf-line);
  border-radius: 18px;
  background: var(--pf-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.pf-faq-item + .pf-faq-item {
  border-top: 1px solid var(--pf-line);
}
.pf-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  padding: 18px 24px;
  border: 0;
  background: none;
  color: var(--pf-ink);
  font-family: var(--pf-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.012em;
  text-align: left;
  cursor: pointer;
}
.pf-faq-q:hover {
  background: rgba(232, 236, 242, 0.05);
}
.pf-faq-chev {
  flex: 0 0 auto;
  color: var(--pf-ink-2);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pf-faq-item.is-open .pf-faq-chev {
  transform: rotate(180deg);
}
.pf-faq-a {
  margin: 0;
  max-width: 64ch;
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--pf-ink-2);
}

/* --- help / status rows ------------------------------------------------ */

.pf-rows {
  margin: 0;
  max-width: 62ch;
}
.pf-rowline {
  display: grid;
  grid-template-columns: minmax(120px, 22%) 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--pf-line);
  font-size: 13.5px;
  line-height: 1.5;
}
.pf-rowline:last-child {
  border-bottom: 0;
}
.pf-rowline dt {
  padding-top: 3px;
  font-family: var(--pf-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--pf-ink-2);
}
.pf-rowline dd {
  margin: 0;
  color: var(--pf-ink);
}

/* --- footer ------------------------------------------------------------ */

.pf-footer {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--pf-line);
}
.pf-footer-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pf-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(232, 236, 242, 0.3);
  border-radius: 9px;
  font-family: 'Michroma', var(--pf-body);
  font-size: 12px;
  color: var(--pf-ink);
}
.pf-footer-copy {
  margin: 16px 0 0;
  max-width: 34rem;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--pf-ink-2);
}
.pf-footer-stats {
  margin-top: 16px;
  font-family: var(--pf-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--pf-ink-2);
}
.pf-footer-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-bottom: 8px;
}
.pf-footer-rule .pf-micro {
  flex: 0 0 auto;
  white-space: nowrap;
}
.pf-footer-rule .pf-hr {
  flex: 1 1 auto;
}

/* --- hero -------------------------------------------------------------- */

.pf-hero-shell {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100vh - 190px);
  padding-bottom: 40px;
}
.pf-hero-copy {
  max-width: 760px;
}
.pf-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 26px;
  row-gap: 12px;
}
.pf-wafer-label {
  margin: 30px 0 0;
  font-family: var(--pf-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--pf-ink-2);
}
.pf-counters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 34px;
  row-gap: 12px;
  margin-top: 42px;
  padding: 16px 22px;
  border: 1px solid var(--pf-line);
  border-radius: 14px;
  background: var(--pf-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.pf-counter-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.pf-counter-k {
  font-family: var(--pf-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--pf-ink-2);
}
.pf-counter-v {
  font-family: var(--pf-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--pf-ink);
  font-variant-numeric: tabular-nums;
}

/* --- CTA --------------------------------------------------------------- */

.pf-cta {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 14px 26px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--pf-blue-hi) 0%, var(--pf-blue) 100%);
  color: #fff;
  font-family: var(--pf-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px -10px rgba(31, 107, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: filter 200ms ease;
}
.pf-cta:hover {
  filter: brightness(1.08);
}

/* --- edge buttons: 44px, inset from the edges -------------------------- */

.pf-edges {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  pointer-events: none;
  z-index: 6;
}
.pf-edge {
  appearance: none;
  cursor: pointer;
  height: 44px;
  min-width: 44px;
  padding: 0 18px;
  border: 1px solid var(--pf-line-2);
  border-radius: 10px;
  background: rgba(9, 12, 17, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--pf-ink-2);
  font-family: var(--pf-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  pointer-events: auto;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.pf-edge:hover {
  color: var(--pf-ink);
  border-color: rgba(46, 123, 255, 0.6);
  background: rgba(31, 107, 255, 0.16);
}
.pf-edge-next {
  color: var(--pf-ink);
  border-color: rgba(46, 123, 255, 0.45);
}
.pf-edge-spacer {
  width: 44px;
  height: 44px;
}

/* --- floating TEST claim tag ------------------------------------------ */

#pf-tag {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 0;
  transform: translate3d(-50%, -160%, 0);
  opacity: 0;
  pointer-events: none;
  padding: 3px 7px;
  border: 1px solid rgba(46, 123, 255, 0.5);
  border-radius: 4px;
  background: rgba(31, 107, 255, 0.16);
  font-family: var(--pf-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--pf-ink);
  white-space: nowrap;
}

/* --- tweak controls ---------------------------------------------------- */

#pf-dot {
  position: absolute;
  right: 20px;
  top: 84px;
  z-index: 8;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid rgba(232, 236, 242, 0.28);
  border-radius: 50%;
  background: rgba(232, 236, 242, 0.06);
  cursor: pointer;
}
#pf-dot:hover {
  border-color: var(--pf-blue-hi);
  background: rgba(46, 123, 255, 0.2);
}

#pf-panel {
  position: absolute;
  right: 18px;
  top: 110px;
  bottom: auto;
  z-index: 8;
  width: 286px;
  max-height: min(68vh, 560px);
  overflow-y: auto;
  padding: 12px 14px 10px;
  border: 1px solid var(--pf-line);
  border-radius: 12px;
  background: var(--pf-panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-family: var(--pf-mono);
  font-size: 11px;
  color: var(--pf-ink);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
}
#pf-panel[hidden] {
  display: none;
}

.pf-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pf-line);
}
.pf-panel-title {
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--pf-ink-2);
}
#pf-close {
  appearance: none;
  border: 0;
  padding: 0 2px;
  background: none;
  color: var(--pf-ink-2);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
#pf-close:hover {
  color: var(--pf-ink);
}

.pf-group {
  margin: 0 0 4px;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(138, 147, 163, 0.72);
}
.pf-group + .pf-group {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--pf-line);
}

.pf-slider {
  display: grid;
  grid-template-columns: 58px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.pf-slider .pf-key {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--pf-ink-2);
}
.pf-slider .pf-val {
  font-size: 10px;
  text-align: right;
  color: var(--pf-ink);
  font-variant-numeric: tabular-nums;
}

#pf-panel input[type='range'] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 14px;
  background: none;
  cursor: pointer;
}
#pf-panel input[type='range']::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: rgba(232, 236, 242, 0.2);
}
#pf-panel input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--pf-blue-hi);
  box-shadow: 0 0 8px rgba(46, 123, 255, 0.7);
}

.pf-panel-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--pf-line);
}
.pf-panel-actions button {
  flex: 1;
  appearance: none;
  cursor: pointer;
  padding: 7px 10px;
  border: 1px solid var(--pf-line);
  border-radius: 7px;
  background: rgba(232, 236, 242, 0.05);
  color: var(--pf-ink);
  font-family: var(--pf-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}
.pf-panel-actions button:hover {
  border-color: rgba(46, 123, 255, 0.65);
  background: rgba(46, 123, 255, 0.14);
}

.pf-panel-hint {
  margin: 9px 0 0;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(138, 147, 163, 0.8);
}

/* --- narrow screens ---------------------------------------------------- */

@media (max-width: 900px) {
  .pf-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pf-aside-block:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  #pf-channel {
    padding: 12px 16px;
    font-size: 9px;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  #pf-nav {
    gap: 12px;
    justify-content: flex-start;
  }
  #pf-nav button {
    font-size: 9px;
    letter-spacing: 0.12em;
  }
  .pf-shell {
    padding: 72px 20px 36px;
  }
  .pf-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .pf-card {
    padding: 16px 17px 18px;
  }
  .pf-card p {
    font-size: 13.5px;
  }
  .pf-plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .pf-ledger {
    columns: 1;
  }
  .pf-aside {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .pf-aside-block {
    padding-left: 0;
    border-left: 0;
    padding-top: 16px;
    border-top: 1px solid var(--pf-line);
  }
  .pf-aside-block:first-child {
    padding-top: 0;
    border-top: 0;
  }
  .pf-rowline {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .pf-edges {
    padding: 0 16px;
    height: 76px;
  }
  .pf-page-scroll {
    inset: 0 0 68px 0;
  }
  .pf-hero-shell {
    min-height: calc(100vh - 120px);
  }
  #pf-panel {
    right: 12px;
    left: 12px;
    top: 132px;
    width: auto;
  }
  #pf-dot {
    right: 14px;
    top: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #pf-nav button,
  .pf-edge,
  .pf-react,
  .pf-faq-chev,
  .pf-switch span {
    transition: none;
  }
}
