/* Photoniq — phnq.css — EDA terminal aesthetic */

/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  --phnq-surface-deep:      #0E1117;
  --phnq-surface-mid:       #161C27;
  --phnq-surface-panel:     #1E2535;
  --phnq-surface-border:    #2A3347;
  --phnq-accent-wafer:      #00C9B1;
  --phnq-accent-wafer-dim:  #007E6F;
  --phnq-accent-coverage:   #1FD97A;
  --phnq-accent-uncovered:  #E8445A;
  --phnq-accent-partial:    #F5A623;
  --phnq-ink-primary-dark:  #EEF0F5;
  --phnq-ink-secondary-dark:#8896AE;
  --phnq-ink-muted-dark:    #4A5568;
  --phnq-ink-primary-light: #0E1117;
  --phnq-ink-secondary-light:#3D4B60;
  --phnq-ink-muted-light:   #7A8897;
  --phnq-surface-light:     #F5F5F0;
  --phnq-surface-light-alt: #ECEEF2;
  --phnq-surface-white:     #FFFFFF;
  --phnq-container:         1200px;
  --phnq-section-py:        96px;
  --phnq-section-py-sm:     64px;
  --phnq-gap:               32px;
  --phnq-ease:              cubic-bezier(0.25, 0.1, 0.25, 1.0);
  --phnq-font-head:         'Bricolage Grotesque', Inter, system-ui, sans-serif;
  --phnq-font-body:         'IBM Plex Sans', system-ui, sans-serif;
  --phnq-font-mono:         'IBM Plex Mono', 'Courier New', monospace;
}

/* ─── RESET / BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--phnq-font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  background: var(--phnq-surface-deep);
  color: var(--phnq-ink-primary-dark);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
button { cursor: pointer; border: none; font-family: inherit; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ─── SECTION BACKGROUNDS ─────────────────────────────────────── */
.phnq-section--dark {
  background: var(--phnq-surface-deep);
  color: var(--phnq-ink-primary-dark);
}
.phnq-section--dark-alt {
  background: var(--phnq-surface-mid);
  color: var(--phnq-ink-primary-dark);
}
.phnq-section--light {
  background: var(--phnq-surface-light);
  color: var(--phnq-ink-primary-light);
}
.phnq-section--white {
  background: var(--phnq-surface-white);
  color: var(--phnq-ink-primary-light);
}

/* ─── CONTAINER ──────────────────────────────────────────────── */
.phnq-container {
  width: 100%;
  max-width: var(--phnq-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}

/* ─── SECTION PADDING ──────────────────────────────────────────── */
.phnq-section {
  padding-top: var(--phnq-section-py);
  padding-bottom: var(--phnq-section-py);
}
.phnq-section--sm {
  padding-top: var(--phnq-section-py-sm);
  padding-bottom: var(--phnq-section-py-sm);
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────── */
.phnq-display {
  font-family: var(--phnq-font-head);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.phnq-h1 {
  font-family: var(--phnq-font-head);
  font-weight: 900;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.phnq-h2 {
  font-family: var(--phnq-font-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.phnq-h3 {
  font-family: var(--phnq-font-head);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.phnq-subhead {
  font-family: var(--phnq-font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}
.phnq-label {
  font-family: var(--phnq-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.phnq-accent-text { color: var(--phnq-accent-wafer); }
.phnq-muted-text--dark { color: var(--phnq-ink-secondary-dark); }
.phnq-muted-text--light { color: var(--phnq-ink-secondary-light); }

/* ─── BUTTONS ─────────────────────────────────────────────────── */
.phnq-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--phnq-font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 0;
  transition: all 0.18s var(--phnq-ease);
  white-space: nowrap;
}
.phnq-btn--primary {
  background: var(--phnq-accent-wafer);
  color: var(--phnq-surface-deep);
  border: 2px solid var(--phnq-accent-wafer);
}
.phnq-btn--primary:hover {
  background: var(--phnq-accent-wafer-dim);
  border-color: var(--phnq-accent-wafer-dim);
  color: var(--phnq-ink-primary-dark);
}
.phnq-btn--outline-dark {
  background: transparent;
  color: var(--phnq-ink-primary-dark);
  border: 2px solid var(--phnq-surface-border);
}
.phnq-btn--outline-dark:hover {
  border-color: var(--phnq-accent-wafer);
  color: var(--phnq-accent-wafer);
}
.phnq-btn--outline-light {
  background: transparent;
  color: var(--phnq-ink-primary-light);
  border: 2px solid var(--phnq-ink-muted-light);
}
.phnq-btn--outline-light:hover {
  border-color: var(--phnq-accent-wafer);
  color: var(--phnq-accent-wafer-dim);
}
.phnq-btn--ghost-dark {
  background: transparent;
  color: var(--phnq-ink-secondary-dark);
  border: 2px solid transparent;
}
.phnq-btn--ghost-dark:hover {
  color: var(--phnq-ink-primary-dark);
  border-color: var(--phnq-surface-border);
}
.phnq-btn--ghost-light {
  background: transparent;
  color: var(--phnq-ink-secondary-light);
  border: 2px solid transparent;
}
.phnq-btn--ghost-light:hover {
  color: var(--phnq-ink-primary-light);
  border-color: var(--phnq-ink-muted-light);
}
.phnq-btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.phnq-btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ─── NAV ─────────────────────────────────────────────────────── */
.phnq-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.25s var(--phnq-ease), box-shadow 0.25s var(--phnq-ease);
}
.phnq-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--phnq-container);
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}
.phnq-nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.phnq-nav__logo-img {
  height: 32px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.phnq-nav__logo-light { display: block; }
.phnq-nav__logo-dark  { display: none; }
.phnq-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.phnq-nav__link {
  font-family: var(--phnq-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--phnq-ink-secondary-dark);
  transition: color 0.15s;
}
.phnq-nav__link:hover { color: var(--phnq-ink-primary-dark); }
.phnq-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.phnq-nav__signin {
  font-family: var(--phnq-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--phnq-ink-secondary-dark);
  padding: 0.5rem 0.75rem;
  border: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.phnq-nav__signin:hover {
  color: var(--phnq-ink-primary-dark);
  border-color: var(--phnq-surface-border);
}
.phnq-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  cursor: pointer;
}
.phnq-nav__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--phnq-ink-primary-dark);
  border-radius: 0;
  transition: all 0.2s var(--phnq-ease);
}

/* dark-top pages: transparent overlay nav */
.phnq-page--dark-top .phnq-nav {
  background: transparent;
}
.phnq-page--dark-top .phnq-nav--scrolled {
  background: rgba(14, 17, 23, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--phnq-surface-border);
}
.phnq-page--dark-top .phnq-nav__logo-light { display: block; }
.phnq-page--dark-top .phnq-nav__logo-dark  { display: none; }

/* light-top pages: white nav */
.phnq-page--light-top .phnq-nav {
  background: var(--phnq-surface-white);
  border-bottom: 1px solid var(--phnq-surface-light-alt);
}
.phnq-page--light-top .phnq-nav__logo-light { display: none; }
.phnq-page--light-top .phnq-nav__logo-dark  { display: block; }
.phnq-page--light-top .phnq-nav__link {
  color: var(--phnq-ink-secondary-light);
}
.phnq-page--light-top .phnq-nav__link:hover {
  color: var(--phnq-ink-primary-light);
}
.phnq-page--light-top .phnq-nav__signin {
  color: var(--phnq-ink-secondary-light);
}
.phnq-page--light-top .phnq-nav__signin:hover {
  color: var(--phnq-ink-primary-light);
  border-color: var(--phnq-ink-muted-light);
}
.phnq-page--light-top .phnq-nav__bar {
  background: var(--phnq-ink-primary-light);
}
.phnq-page--light-top .phnq-nav--scrolled .phnq-nav__signin {
  color: var(--phnq-ink-secondary-light);
}

/* scrolled state logo swap for light-top */
.phnq-page--light-top .phnq-nav--scrolled .phnq-nav__logo-dark  { display: block !important; }
.phnq-page--light-top .phnq-nav--scrolled .phnq-nav__logo-light { display: none !important; }

/* mobile menu */
.phnq-nav__mobile {
  display: none;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--phnq-surface-mid);
  border-top: 1px solid var(--phnq-surface-border);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
}
.phnq-nav__mobile--open { display: flex; }
.phnq-nav__mobile-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--phnq-ink-secondary-dark);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--phnq-surface-border);
  display: block;
}
.phnq-nav__mobile-link:hover { color: var(--phnq-ink-primary-dark); }
.phnq-nav__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
.phnq-footer {
  background: var(--phnq-surface-deep);
  border-top: 1px solid var(--phnq-surface-border);
  padding-top: 72px;
  padding-bottom: 32px;
  color: var(--phnq-ink-secondary-dark);
}
.phnq-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--phnq-gap);
  margin-bottom: 48px;
}
.phnq-footer__brand { }
.phnq-footer__logo-img {
  height: 28px;
  width: auto;
  margin-bottom: 1rem;
}
.phnq-footer__tagline {
  font-size: 0.875rem;
  color: var(--phnq-ink-muted-dark);
  line-height: 1.6;
  max-width: 260px;
  margin-bottom: 1.25rem;
}
.phnq-footer__col-head {
  font-family: var(--phnq-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--phnq-ink-muted-dark);
  margin-bottom: 1rem;
}
.phnq-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.phnq-footer__link {
  font-size: 0.875rem;
  color: var(--phnq-ink-secondary-dark);
  transition: color 0.15s;
}
.phnq-footer__link:hover { color: var(--phnq-accent-wafer); }
.phnq-footer__bottom {
  border-top: 1px solid var(--phnq-surface-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.phnq-footer__copy {
  font-size: 0.8125rem;
  color: var(--phnq-ink-muted-dark);
}
.phnq-footer__legal-links {
  display: flex;
  gap: 1.5rem;
}
.phnq-footer__legal-link {
  font-size: 0.8125rem;
  color: var(--phnq-ink-muted-dark);
}
.phnq-footer__legal-link:hover { color: var(--phnq-ink-secondary-dark); }

/* ─── HERO ────────────────────────────────────────────────────── */
.phnq-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--phnq-surface-deep);
  padding-top: 68px;
}
.phnq-hero__bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.phnq-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.phnq-hero__copy { }
.phnq-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--phnq-surface-border);
  font-family: var(--phnq-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--phnq-accent-wafer);
  margin-bottom: 1.5rem;
}
.phnq-hero__h1 {
  font-family: var(--phnq-font-head);
  font-weight: 900;
  font-size: clamp(2.6rem, 5.5vw, 4.75rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--phnq-ink-primary-dark);
  margin-bottom: 1.5rem;
}
.phnq-hero__sub {
  font-family: var(--phnq-font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
  color: var(--phnq-ink-secondary-dark);
  margin-bottom: 2.5rem;
  max-width: 480px;
}
.phnq-hero__ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.phnq-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── METRICS BAR ─────────────────────────────────────────────── */
.phnq-metrics {
  background: var(--phnq-surface-mid);
  border-top: 1px solid var(--phnq-surface-border);
  border-bottom: 1px solid var(--phnq-surface-border);
  padding-top: 48px;
  padding-bottom: 48px;
}
.phnq-metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--phnq-gap);
  text-align: center;
}
.phnq-metrics__item { }
.phnq-metrics__value {
  font-family: var(--phnq-font-head);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  color: var(--phnq-accent-wafer);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.phnq-metrics__label {
  font-size: 0.9375rem;
  color: var(--phnq-ink-secondary-dark);
  line-height: 1.4;
}

/* ─── PROBLEM STATEMENT ──────────────────────────────────────── */
.phnq-problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.phnq-problem__copy { }
.phnq-problem__h2 {
  font-family: var(--phnq-font-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 1.5rem;
}
.phnq-problem__p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--phnq-ink-secondary-light);
  margin-bottom: 1rem;
}
.phnq-problem__visual { }
.phnq-problem-chart {
  background: var(--phnq-surface-light-alt);
  border: 1px solid var(--phnq-surface-border);
  padding: 0;
  overflow: hidden;
}

/* ─── HOW IT WORKS TEASER ─────────────────────────────────────── */
.phnq-hiw__eyebrow {
  font-family: var(--phnq-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--phnq-accent-wafer);
  margin-bottom: 1rem;
}
.phnq-hiw__h2 {
  font-family: var(--phnq-font-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--phnq-ink-primary-dark);
  margin-bottom: 1rem;
}
.phnq-hiw__sub {
  font-size: 1rem;
  color: var(--phnq-ink-secondary-dark);
  margin-bottom: 3rem;
  max-width: 560px;
}
.phnq-hiw__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--phnq-gap);
  position: relative;
}
.phnq-hiw__step {
  background: var(--phnq-surface-panel);
  border: 1px solid var(--phnq-surface-border);
  padding: 2rem;
  position: relative;
}
.phnq-hiw__step-num {
  font-family: var(--phnq-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--phnq-accent-wafer);
  margin-bottom: 1.25rem;
  display: block;
}
.phnq-hiw__step-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
}
.phnq-hiw__step-title {
  font-family: var(--phnq-font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--phnq-ink-primary-dark);
  margin-bottom: 0.75rem;
}
.phnq-hiw__step-desc {
  font-size: 0.9rem;
  color: var(--phnq-ink-secondary-dark);
  line-height: 1.65;
}
.phnq-hiw__cta {
  margin-top: 2.5rem;
}
.phnq-hiw__cta-link {
  font-family: var(--phnq-font-mono);
  font-size: 0.875rem;
  color: var(--phnq-accent-wafer);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.15s;
}
.phnq-hiw__cta-link:hover { gap: 0.7rem; }

/* ─── FEATURE ALTERNATING ─────────────────────────────────────── */
.phnq-feature-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--phnq-surface-light-alt);
}
.phnq-feature-panel:last-child {
  border-bottom: none;
}
.phnq-feature-panel--reverse .phnq-feature-panel__copy {
  order: 2;
}
.phnq-feature-panel--reverse .phnq-feature-panel__visual {
  order: 1;
}
.phnq-feature-panel__eyebrow {
  font-family: var(--phnq-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--phnq-accent-wafer-dim);
  margin-bottom: 1rem;
}
.phnq-feature-panel__h3 {
  font-family: var(--phnq-font-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 1rem;
}
.phnq-feature-panel__p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--phnq-ink-secondary-light);
  margin-bottom: 1rem;
}
.phnq-feature-panel__visual { }
.phnq-feature-panel__svg-wrap {
  background: var(--phnq-surface-light-alt);
  border: 1px solid var(--phnq-surface-border);
  overflow: hidden;
}

/* terminal mock inside feature panel */
.phnq-terminal {
  background: var(--phnq-surface-deep);
  border: 1px solid var(--phnq-surface-border);
  overflow: hidden;
}
.phnq-terminal__bar {
  background: var(--phnq-surface-panel);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--phnq-surface-border);
}
.phnq-terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.phnq-terminal__dot--red   { background: var(--phnq-accent-uncovered); }
.phnq-terminal__dot--amber { background: var(--phnq-accent-partial); }
.phnq-terminal__dot--green { background: var(--phnq-accent-coverage); }
.phnq-terminal__title {
  font-family: var(--phnq-font-mono);
  font-size: 0.7rem;
  color: var(--phnq-ink-muted-dark);
  margin-left: auto;
}
.phnq-terminal__body {
  padding: 1.25rem;
  font-family: var(--phnq-font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--phnq-ink-primary-dark);
  overflow-x: auto;
}
.phnq-terminal__body pre {
  font-family: var(--phnq-font-mono);
  font-size: 0.8125rem;
  white-space: pre;
  color: var(--phnq-ink-primary-dark);
}
.phnq-terminal__body code {
  font-family: var(--phnq-font-mono);
  background: transparent;
  color: inherit;
}
.phnq-term-prompt { color: var(--phnq-accent-wafer); }
.phnq-term-cmd    { color: var(--phnq-ink-primary-dark); }
.phnq-term-out    { color: var(--phnq-ink-secondary-dark); }
.phnq-term-ok     { color: var(--phnq-accent-coverage); }
.phnq-term-warn   { color: var(--phnq-accent-partial); }
.phnq-term-err    { color: var(--phnq-accent-uncovered); }
.phnq-term-key    { color: var(--phnq-accent-wafer); }

/* ─── USE CASES TEASER ────────────────────────────────────────── */
.phnq-uc-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: var(--phnq-gap);
}
.phnq-uc-card {
  background: var(--phnq-surface-panel);
  border: 1px solid var(--phnq-surface-border);
  padding: 2.5rem;
}
.phnq-uc-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.25rem;
  color: var(--phnq-accent-wafer);
}
.phnq-uc-card__title {
  font-family: var(--phnq-font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--phnq-ink-primary-dark);
  margin-bottom: 0.75rem;
}
.phnq-uc-card__body {
  font-size: 0.9375rem;
  color: var(--phnq-ink-secondary-dark);
  line-height: 1.7;
}

/* ─── TESTIMONIALS ────────────────────────────────────────────── */
.phnq-testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--phnq-gap);
  margin-top: 2.5rem;
}
.phnq-testi-card {
  background: var(--phnq-surface-white);
  border: 1px solid var(--phnq-surface-light-alt);
  padding: 2rem;
}
.phnq-testi-card__quote {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 1.5rem;
  position: relative;
}
.phnq-testi-card__quote::before {
  content: '"';
  font-family: var(--phnq-font-head);
  font-size: 2.5rem;
  color: var(--phnq-accent-wafer);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.phnq-testi-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.phnq-testi-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--phnq-surface-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--phnq-font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--phnq-accent-wafer);
  flex-shrink: 0;
}
.phnq-testi-card__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--phnq-ink-primary-light);
  line-height: 1.3;
}
.phnq-testi-card__role {
  font-size: 0.8125rem;
  color: var(--phnq-ink-muted-light);
}

/* ─── CTA BANNER ──────────────────────────────────────────────── */
.phnq-cta-banner__inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.phnq-cta-banner__h2 {
  font-family: var(--phnq-font-head);
  font-weight: 900;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--phnq-ink-primary-dark);
  margin-bottom: 1.25rem;
}
.phnq-cta-banner__sub {
  font-size: 0.9375rem;
  color: var(--phnq-ink-secondary-dark);
  margin-bottom: 2rem;
  line-height: 1.65;
}
.phnq-cta-banner__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── PAGE HERO (sub-pages) ──────────────────────────────────── */
.phnq-page-hero {
  padding-top: calc(68px + 80px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.phnq-page-hero--dark {
  background: var(--phnq-surface-deep);
}
.phnq-page-hero--light {
  background: var(--phnq-surface-light);
}
.phnq-page-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.phnq-page-hero__inner--centered {
  display: block;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.phnq-page-hero__eyebrow {
  font-family: var(--phnq-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.phnq-page-hero--dark .phnq-page-hero__eyebrow  { color: var(--phnq-accent-wafer); }
.phnq-page-hero--light .phnq-page-hero__eyebrow { color: var(--phnq-accent-wafer-dim); }
.phnq-page-hero__h1 {
  font-family: var(--phnq-font-head);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.phnq-page-hero--dark .phnq-page-hero__h1  { color: var(--phnq-ink-primary-dark); }
.phnq-page-hero--light .phnq-page-hero__h1 { color: var(--phnq-ink-primary-light); }
.phnq-page-hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.phnq-page-hero--dark .phnq-page-hero__sub  { color: var(--phnq-ink-secondary-dark); }
.phnq-page-hero--light .phnq-page-hero__sub { color: var(--phnq-ink-secondary-light); }
.phnq-page-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── PRODUCT PAGE ────────────────────────────────────────────── */
.phnq-product-arch__diagram {
  background: var(--phnq-surface-light-alt);
  border: 1px solid var(--phnq-surface-border);
  margin-top: 2.5rem;
}
.phnq-product-caps__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--phnq-gap);
  margin-top: 2.5rem;
}
.phnq-cap-card {
  background: var(--phnq-surface-white);
  border: 1px solid var(--phnq-surface-light-alt);
  padding: 2rem;
}
.phnq-cap-card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  color: var(--phnq-accent-wafer-dim);
}
.phnq-cap-card__title {
  font-family: var(--phnq-font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 0.75rem;
}
.phnq-cap-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.phnq-cap-card__list li {
  font-size: 0.9rem;
  color: var(--phnq-ink-secondary-light);
  padding-left: 1rem;
  position: relative;
}
.phnq-cap-card__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--phnq-accent-wafer-dim);
}
.phnq-integrations__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.phnq-badge {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--phnq-surface-border);
  font-family: var(--phnq-font-mono);
  font-size: 0.8rem;
  color: var(--phnq-ink-secondary-dark);
  background: var(--phnq-surface-panel);
}

/* ─── HOW IT WORKS PAGE ──────────────────────────────────────── */
.phnq-hiw-section__h2 {
  font-family: var(--phnq-font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.phnq-hiw-section--light .phnq-hiw-section__h2 { color: var(--phnq-ink-primary-light); }
.phnq-hiw-section--dark .phnq-hiw-section__h2  { color: var(--phnq-ink-primary-dark); }
.phnq-hiw-section--dark-alt .phnq-hiw-section__h2 { color: var(--phnq-ink-primary-dark); }
.phnq-hiw-section__p {
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.phnq-hiw-section--light .phnq-hiw-section__p { color: var(--phnq-ink-secondary-light); }
.phnq-hiw-section--dark .phnq-hiw-section__p  { color: var(--phnq-ink-secondary-dark); }
.phnq-hiw-section--dark-alt .phnq-hiw-section__p { color: var(--phnq-ink-secondary-dark); }
.phnq-hiw-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.phnq-hiw-pipe-step {
  border-left: 2px solid var(--phnq-accent-wafer);
  padding: 0 0 0 1.25rem;
}
.phnq-hiw-pipe-step__num {
  font-family: var(--phnq-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--phnq-accent-wafer-dim);
  margin-bottom: 0.5rem;
}
.phnq-hiw-pipe-step__title {
  font-family: var(--phnq-font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 0.4rem;
}
.phnq-hiw-pipe-step__desc {
  font-size: 0.85rem;
  color: var(--phnq-ink-secondary-light);
  line-height: 1.6;
}
.phnq-accuracy-stat {
  text-align: center;
  padding: 3rem 0;
}
.phnq-accuracy-stat__value {
  font-family: var(--phnq-font-head);
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 6rem);
  color: var(--phnq-accent-coverage);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.phnq-accuracy-stat__label {
  font-size: 1rem;
  color: var(--phnq-ink-secondary-dark);
}

/* ─── USE CASES PAGE ──────────────────────────────────────────── */
.phnq-uc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.phnq-uc-split__copy { }
.phnq-uc-split__h2 {
  font-family: var(--phnq-font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 1.25rem;
}
.phnq-uc-split__problem-label {
  font-family: var(--phnq-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--phnq-accent-uncovered);
  margin-bottom: 0.5rem;
}
.phnq-uc-split__solution-label {
  font-family: var(--phnq-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--phnq-accent-coverage);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}
.phnq-uc-split__p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--phnq-ink-secondary-light);
  margin-bottom: 0.75rem;
}
.phnq-uc-split__visual { }

/* ─── PRICING ─────────────────────────────────────────────────── */
.phnq-pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.phnq-pricing-toggle__label {
  font-size: 0.9375rem;
  color: var(--phnq-ink-secondary-light);
}
.phnq-pricing-toggle__label--active {
  color: var(--phnq-ink-primary-light);
  font-weight: 500;
}
.phnq-pricing-toggle__switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--phnq-surface-panel);
  border: 1px solid var(--phnq-surface-border);
  cursor: pointer;
  transition: background 0.2s;
}
.phnq-pricing-toggle__switch--on { background: var(--phnq-accent-wafer); border-color: var(--phnq-accent-wafer); }
.phnq-pricing-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--phnq-surface-white);
  transition: transform 0.2s;
}
.phnq-pricing-toggle__switch--on .phnq-pricing-toggle__knob {
  transform: translateX(20px);
}
.phnq-pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--phnq-gap);
}
.phnq-tier {
  background: var(--phnq-surface-white);
  border: 1px solid var(--phnq-surface-light-alt);
  padding: 2rem;
  position: relative;
}
.phnq-tier--featured {
  border: 2px solid var(--phnq-accent-wafer);
}
.phnq-tier__badge {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: var(--phnq-accent-wafer);
  color: var(--phnq-surface-deep);
  font-family: var(--phnq-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
}
.phnq-tier__name {
  font-family: var(--phnq-font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 0.5rem;
}
.phnq-tier__price {
  font-family: var(--phnq-font-head);
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--phnq-ink-primary-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.phnq-tier__price-note {
  font-size: 0.8125rem;
  color: var(--phnq-ink-muted-light);
  margin-bottom: 0.75rem;
}
.phnq-tier__cap {
  font-size: 0.8125rem;
  color: var(--phnq-ink-secondary-light);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--phnq-surface-light-alt);
}
.phnq-tier__features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.phnq-tier__feature {
  font-size: 0.875rem;
  color: var(--phnq-ink-secondary-light);
  padding-left: 1.25rem;
  position: relative;
}
.phnq-tier__feature::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--phnq-accent-coverage);
  font-size: 0.8rem;
}
.phnq-faq__list {
  margin-top: 2rem;
}
.phnq-faq__item {
  border-bottom: 1px solid var(--phnq-surface-light-alt);
}
.phnq-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: transparent;
  font-family: var(--phnq-font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--phnq-ink-primary-light);
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}
.phnq-faq__question:hover { color: var(--phnq-accent-wafer-dim); }
.phnq-faq__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--phnq-ink-muted-light);
  transition: transform 0.2s var(--phnq-ease);
}
.phnq-faq__item--open .phnq-faq__icon { transform: rotate(45deg); }
.phnq-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--phnq-ease);
}
.phnq-faq__item--open .phnq-faq__answer { max-height: 300px; }
.phnq-faq__answer-inner {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--phnq-ink-secondary-light);
  line-height: 1.7;
}

/* ─── DOCS ────────────────────────────────────────────────────── */
.phnq-docs-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--phnq-gap);
  margin-top: 2.5rem;
}
.phnq-docs-card {
  background: var(--phnq-surface-white);
  border: 1px solid var(--phnq-surface-light-alt);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s;
  color: inherit;
}
.phnq-docs-card:hover { border-color: var(--phnq-accent-wafer); }
.phnq-docs-card__icon {
  width: 32px;
  height: 32px;
  color: var(--phnq-accent-wafer-dim);
}
.phnq-docs-card__title {
  font-family: var(--phnq-font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--phnq-ink-primary-light);
}
.phnq-docs-card__desc {
  font-size: 0.875rem;
  color: var(--phnq-ink-secondary-light);
  line-height: 1.6;
}
.phnq-docs-search {
  position: relative;
  max-width: 560px;
  margin: 2rem auto;
}
.phnq-docs-search__input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: var(--phnq-surface-white);
  border: 1px solid var(--phnq-surface-light-alt);
  font-family: var(--phnq-font-body);
  font-size: 0.9375rem;
  color: var(--phnq-ink-primary-light);
  outline: none;
  border-radius: 0;
}
.phnq-docs-search__input:focus { border-color: var(--phnq-accent-wafer); }
.phnq-docs-search__icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--phnq-ink-muted-light);
}
.phnq-docs-sections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--phnq-gap);
  margin-top: 2rem;
}
.phnq-docs-section {
  padding: 1.5rem;
  border: 1px solid var(--phnq-surface-light-alt);
  background: var(--phnq-surface-white);
}
.phnq-docs-section__title {
  font-family: var(--phnq-font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.phnq-docs-section__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.phnq-docs-section__link {
  font-size: 0.875rem;
  color: var(--phnq-ink-secondary-light);
  transition: color 0.15s;
}
.phnq-docs-section__link:hover { color: var(--phnq-accent-wafer-dim); }

/* docs layout (sidebar + content) */
.phnq-docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.phnq-docs-sidebar {
  position: sticky;
  top: calc(68px + 2rem);
}
.phnq-docs-sidebar__nav { }
.phnq-docs-sidebar__section {
  margin-bottom: 1.5rem;
}
.phnq-docs-sidebar__section-title {
  font-family: var(--phnq-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--phnq-ink-muted-light);
  margin-bottom: 0.5rem;
}
.phnq-docs-sidebar__link {
  display: block;
  font-size: 0.875rem;
  color: var(--phnq-ink-secondary-light);
  padding: 0.3rem 0;
  transition: color 0.15s;
}
.phnq-docs-sidebar__link:hover,
.phnq-docs-sidebar__link--active { color: var(--phnq-accent-wafer-dim); }
.phnq-docs-content {
  min-width: 0;
  background: var(--phnq-surface-white);
  padding: 2.5rem;
}
.phnq-docs-content h1,
.phnq-docs-content h2,
.phnq-docs-content h3 {
  font-family: var(--phnq-font-head);
  color: var(--phnq-ink-primary-light);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.phnq-docs-content h1 { font-size: 1.75rem; font-weight: 700; margin-top: 0; }
.phnq-docs-content h2 { font-size: 1.3rem; font-weight: 600; }
.phnq-docs-content h3 { font-size: 1.05rem; font-weight: 600; }
.phnq-docs-content p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--phnq-ink-secondary-light);
  margin-bottom: 1rem;
}
.phnq-docs-content ul,
.phnq-docs-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.phnq-docs-content li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--phnq-ink-secondary-light);
  margin-bottom: 0.3rem;
}
.phnq-docs-content ul { list-style: disc; }
.phnq-docs-content ol { list-style: decimal; }
.phnq-docs-content a { color: var(--phnq-accent-wafer-dim); text-decoration: underline; }
.phnq-docs-content code {
  font-family: var(--phnq-font-mono);
  font-size: 0.85em;
  background: var(--phnq-surface-light-alt);
  color: var(--phnq-ink-primary-light);
  padding: 0.1em 0.35em;
  border: 1px solid var(--phnq-surface-border);
}
.phnq-docs-content pre {
  background: var(--phnq-surface-deep);
  border: 1px solid var(--phnq-surface-border);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.phnq-docs-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--phnq-ink-primary-dark);
}

/* ─── API REFERENCE ───────────────────────────────────────────── */
.phnq-api-endpoint {
  background: var(--phnq-surface-white);
  border: 1px solid var(--phnq-surface-light-alt);
  margin-bottom: 2rem;
}
.phnq-api-endpoint__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--phnq-surface-light-alt);
  background: var(--phnq-surface-light);
}
.phnq-api-method {
  font-family: var(--phnq-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 0;
  letter-spacing: 0.06em;
}
.phnq-api-method--post { background: var(--phnq-accent-coverage); color: var(--phnq-surface-deep); }
.phnq-api-method--get  { background: var(--phnq-accent-wafer); color: var(--phnq-surface-deep); }
.phnq-api-method--del  { background: var(--phnq-accent-uncovered); color: var(--phnq-surface-white); }
.phnq-api-path {
  font-family: var(--phnq-font-mono);
  font-size: 0.9rem;
  color: var(--phnq-ink-primary-light);
}
.phnq-api-endpoint__body { padding: 1.5rem; }
.phnq-api-endpoint__desc {
  font-size: 0.9rem;
  color: var(--phnq-ink-secondary-light);
  margin-bottom: 1.25rem;
}

/* ─── BLOG ────────────────────────────────────────────────────── */
.phnq-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--phnq-gap);
  margin-top: 2.5rem;
}
.phnq-blog-card {
  background: var(--phnq-surface-white);
  border: 1px solid var(--phnq-surface-light-alt);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
  color: inherit;
}
.phnq-blog-card:hover { border-color: var(--phnq-accent-wafer); }
.phnq-blog-card__cover-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.phnq-blog-card__cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s var(--phnq-ease);
}
.phnq-blog-card:hover .phnq-blog-card__cover { transform: scale(1.03); }
.phnq-blog-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.phnq-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.phnq-blog-card__category {
  font-family: var(--phnq-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--phnq-accent-wafer-dim);
}
.phnq-blog-card__date {
  font-size: 0.8rem;
  color: var(--phnq-ink-muted-light);
}
.phnq-blog-card__title {
  font-family: var(--phnq-font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 0.6rem;
}
.phnq-blog-card:hover .phnq-blog-card__title { color: var(--phnq-accent-wafer-dim); }
.phnq-blog-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--phnq-ink-secondary-light);
  flex: 1;
  margin-bottom: 1rem;
}
.phnq-blog-card__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--phnq-surface-light-alt);
}
.phnq-blog-card__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--phnq-surface-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--phnq-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--phnq-accent-wafer);
  flex-shrink: 0;
}
.phnq-blog-card__author-name {
  font-size: 0.8rem;
  color: var(--phnq-ink-secondary-light);
}
.phnq-blog-card__read-time {
  font-size: 0.75rem;
  color: var(--phnq-ink-muted-light);
  margin-left: auto;
}

/* blog article */
.phnq-article-hero {
  padding-top: calc(68px + 64px);
  padding-bottom: 48px;
  background: var(--phnq-surface-light);
}
.phnq-article-hero__inner {
  max-width: 800px;
  margin: 0 auto;
}
.phnq-article-hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.phnq-article-hero__cat {
  font-family: var(--phnq-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--phnq-accent-wafer-dim);
}
.phnq-article-hero__date {
  font-size: 0.875rem;
  color: var(--phnq-ink-muted-light);
}
.phnq-article-hero__h1 {
  font-family: var(--phnq-font-head);
  font-weight: 900;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 1.25rem;
}
.phnq-article-hero__author-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.phnq-article-hero__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--phnq-surface-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--phnq-font-mono);
  font-size: 0.8rem;
  color: var(--phnq-accent-wafer);
}
.phnq-article-hero__author-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--phnq-ink-secondary-light);
}
.phnq-article-cover-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.phnq-article-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.phnq-blog-post-body {
  background: var(--phnq-surface-white);
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.phnq-article-content {
  max-width: 720px;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.phnq-article-content h2 {
  font-family: var(--phnq-font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--phnq-ink-primary-light);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}
.phnq-article-content h3 {
  font-family: var(--phnq-font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--phnq-ink-primary-light);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.phnq-article-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--phnq-ink-secondary-light);
  margin-bottom: 1.2rem;
}
.phnq-article-content ul,
.phnq-article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.phnq-article-content li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--phnq-ink-secondary-light);
  margin-bottom: 0.35rem;
}
.phnq-article-content ul { list-style: disc; }
.phnq-article-content ol { list-style: decimal; }
.phnq-article-content a { color: var(--phnq-accent-wafer-dim); text-decoration: underline; }
.phnq-article-content blockquote {
  border-left: 3px solid var(--phnq-accent-wafer);
  padding-left: 1.25rem;
  font-style: italic;
  color: var(--phnq-ink-secondary-light);
  margin: 1.5rem 0;
}
.phnq-article-content code {
  font-family: var(--phnq-font-mono);
  font-size: 0.85em;
  background: var(--phnq-surface-light-alt);
  color: var(--phnq-ink-primary-light);
  padding: 0.1em 0.35em;
  border: 1px solid var(--phnq-surface-border);
}
.phnq-article-content pre {
  background: var(--phnq-surface-deep);
  border: 1px solid var(--phnq-surface-border);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.phnq-article-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--phnq-ink-primary-dark);
}
.phnq-related-articles {
  background: var(--phnq-surface-light);
  padding-top: 64px;
  padding-bottom: 64px;
}
.phnq-related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--phnq-gap);
  margin-top: 2rem;
}

/* ─── ABOUT ───────────────────────────────────────────────────── */
.phnq-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--phnq-gap);
  margin-top: 2.5rem;
}
.phnq-team-card {
  background: var(--phnq-surface-white);
  border: 1px solid var(--phnq-surface-light-alt);
}
.phnq-team-card__portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  height: auto;
  display: block;
}
.phnq-team-card__body {
  padding: 1.25rem;
}
.phnq-team-card__name {
  font-family: var(--phnq-font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 0.25rem;
}
.phnq-team-card__title {
  font-family: var(--phnq-font-mono);
  font-size: 0.75rem;
  color: var(--phnq-accent-wafer-dim);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}
.phnq-team-card__bio {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--phnq-ink-secondary-light);
}

/* ─── CAREERS ─────────────────────────────────────────────────── */
.phnq-jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.phnq-job-card {
  background: var(--phnq-surface-white);
  border: 1px solid var(--phnq-surface-light-alt);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.phnq-job-card__info { }
.phnq-job-card__title {
  font-family: var(--phnq-font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 0.4rem;
}
.phnq-job-card__meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.phnq-job-card__location {
  font-family: var(--phnq-font-mono);
  font-size: 0.75rem;
  color: var(--phnq-ink-muted-light);
}
.phnq-job-card__type {
  font-family: var(--phnq-font-mono);
  font-size: 0.75rem;
  color: var(--phnq-accent-coverage);
}
.phnq-job-card__desc {
  font-size: 0.875rem;
  color: var(--phnq-ink-secondary-light);
  margin-top: 0.5rem;
  line-height: 1.6;
}
.phnq-culture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.phnq-culture-col__h3 {
  font-family: var(--phnq-font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 1.25rem;
}
.phnq-culture-values {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.phnq-culture-value {
  padding-left: 1rem;
  border-left: 2px solid var(--phnq-accent-wafer);
}
.phnq-culture-value__label {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 0.2rem;
}
.phnq-culture-value__desc {
  font-size: 0.875rem;
  color: var(--phnq-ink-secondary-light);
  line-height: 1.6;
}

/* ─── CONTACT ─────────────────────────────────────────────────── */
.phnq-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.phnq-contact-sidebar {
  background: var(--phnq-surface-light);
  border: 1px solid var(--phnq-surface-light-alt);
  padding: 2rem;
}
.phnq-contact-sidebar__h3 {
  font-family: var(--phnq-font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 1.25rem;
}
.phnq-contact-sidebar__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.phnq-contact-sidebar__label {
  font-family: var(--phnq-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--phnq-ink-muted-light);
  width: 50px;
  flex-shrink: 0;
  padding-top: 2px;
}
.phnq-contact-sidebar__value {
  font-size: 0.875rem;
  color: var(--phnq-ink-secondary-light);
  line-height: 1.5;
}
.phnq-contact-sidebar__value a {
  color: var(--phnq-accent-wafer-dim);
}
.phnq-contact-form-panel { }
.phnq-contact-form-panel__h2 {
  font-family: var(--phnq-font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 1.5rem;
}
.phnq-form-group {
  margin-bottom: 1.25rem;
}
.phnq-form-group__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--phnq-ink-secondary-light);
  margin-bottom: 0.4rem;
}
.phnq-form-group__input,
.phnq-form-group__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--phnq-surface-white);
  border: 1px solid var(--phnq-surface-light-alt);
  font-family: var(--phnq-font-body);
  font-size: 0.9375rem;
  color: var(--phnq-ink-primary-light);
  outline: none;
  border-radius: 0;
  transition: border-color 0.15s;
}
.phnq-form-group__input:focus,
.phnq-form-group__textarea:focus { border-color: var(--phnq-accent-wafer); }
.phnq-form-group__textarea { resize: vertical; min-height: 120px; }

/* ─── AUTH PAGES ──────────────────────────────────────────────── */
.phnq-auth-page {
  min-height: 100vh;
  background: var(--phnq-surface-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.phnq-auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.phnq-auth-card {
  position: relative;
  z-index: 1;
  background: var(--phnq-surface-white);
  border: 1px solid var(--phnq-surface-light-alt);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}
.phnq-auth-card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.phnq-auth-card__logo-img {
  height: 28px;
  width: auto;
}
.phnq-auth-card__h1 {
  font-family: var(--phnq-font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--phnq-ink-primary-light);
  text-align: center;
  margin-bottom: 0.4rem;
}
.phnq-auth-card__sub {
  font-size: 0.875rem;
  color: var(--phnq-ink-secondary-light);
  text-align: center;
  margin-bottom: 2rem;
}
.phnq-auth-card__form { }
.phnq-auth-form { display: block; width: 100%; }
.phnq-auth-card__footer {
  margin-top: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--phnq-surface-light-alt);
  padding-top: 1.25rem;
}
.phnq-auth-card__footer-text {
  font-size: 0.8125rem;
  color: var(--phnq-ink-secondary-light);
}
.phnq-auth-card__footer-link {
  color: var(--phnq-accent-wafer-dim);
  font-weight: 500;
}
.phnq-auth-card__legal {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--phnq-ink-muted-light);
}
.phnq-auth-card__legal a {
  color: var(--phnq-ink-muted-light);
  text-decoration: underline;
}
.phnq-login-card,
.phnq-register-card,
.phnq-forgot-card { }

/* ─── LEGAL PAGES ─────────────────────────────────────────────── */
.phnq-legal-wrap {
  background: var(--phnq-surface-white);
  min-height: 80vh;
}
.phnq-legal-wrap main {
  background: var(--phnq-surface-white);
  padding-top: calc(68px + 64px);
  padding-bottom: 80px;
}
.legal-article {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  color: var(--phnq-ink-primary-light);
}
.legal-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--phnq-surface-light-alt);
}
.legal-header h1 {
  font-family: var(--phnq-font-head);
  font-weight: 700;
  font-size: 2rem;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 0.5rem;
}
.legal-meta {
  font-size: 0.875rem;
  color: var(--phnq-ink-muted-light);
}
.legal-article section {
  margin-bottom: 2.5rem;
}
.legal-article h2 {
  font-family: var(--phnq-font-head);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 0.75rem;
  margin-top: 0;
}
.legal-article h3 {
  font-family: var(--phnq-font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--phnq-ink-primary-light);
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}
.legal-article p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--phnq-ink-secondary-light);
  margin-bottom: 0.75rem;
}
.legal-article ul,
.legal-article ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-article li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--phnq-ink-secondary-light);
  margin-bottom: 0.35rem;
}
.legal-article ul { list-style: disc; }
.legal-article ol { list-style: decimal; }
.legal-article address {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--phnq-ink-secondary-light);
}
.legal-article a { color: var(--phnq-accent-wafer-dim); }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.legal-table th,
.legal-table td {
  padding: 0.75rem;
  border: 1px solid var(--phnq-surface-light-alt);
  font-size: 0.875rem;
  color: var(--phnq-ink-secondary-light);
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  background: var(--phnq-surface-light);
  font-weight: 600;
  color: var(--phnq-ink-primary-light);
}

/* ─── COOKIE BANNER ───────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--phnq-surface-panel);
  border-top: 1px solid var(--phnq-surface-border);
}
.cookie-banner__inner {
  max-width: var(--phnq-container);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner__text {
  font-size: 0.875rem;
  color: var(--phnq-ink-secondary-dark);
  line-height: 1.5;
}
.cookie-banner__text a {
  color: var(--phnq-accent-wafer);
  text-decoration: underline;
}
.cookie-banner__actions { flex-shrink: 0; }
.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1px solid var(--phnq-accent-wafer);
  color: var(--phnq-accent-wafer);
  font-family: var(--phnq-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
}
.cookie-banner__btn:hover {
  background: var(--phnq-accent-wafer);
  color: var(--phnq-surface-deep);
}
.cookie-banner__btn--primary {
  background: var(--phnq-accent-wafer);
  color: var(--phnq-surface-deep);
  border-color: var(--phnq-accent-wafer);
}
.cookie-banner__btn--primary:hover {
  background: var(--phnq-accent-wafer-dim);
  border-color: var(--phnq-accent-wafer-dim);
  color: var(--phnq-ink-primary-dark);
}

/* ─── FADE-IN ANIMATION ───────────────────────────────────────── */
.phnq-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--phnq-ease), transform 0.55s var(--phnq-ease);
}
.phnq-fade--visible {
  opacity: 1;
  transform: none;
}

/* ─── UTILITY ─────────────────────────────────────────────────── */
.phnq-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.phnq-section-eyebrow {
  font-family: var(--phnq-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.phnq-section-eyebrow--dark  { color: var(--phnq-accent-wafer); }
.phnq-section-eyebrow--light { color: var(--phnq-accent-wafer-dim); }
.phnq-section-headline--dark  { color: var(--phnq-ink-primary-dark); }
.phnq-section-headline--light { color: var(--phnq-ink-primary-light); }
.phnq-divider {
  border: none;
  border-top: 1px solid var(--phnq-surface-border);
  margin: 2rem 0;
}
.phnq-divider--light {
  border-top-color: var(--phnq-surface-light-alt);
}

/* ─── SUPPLEMENTAL CLASSES ───────────────────────────────────── */
.phnq-contact-form { }
.phnq-page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.phnq-pricing-toggle__label--monthly { }
.phnq-pricing-toggle__label--annual { }

/* ─── 404 PAGE ────────────────────────────────────────────────── */
.phnq-404 {
  min-height: 100vh;
  background: var(--phnq-surface-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.phnq-404__code {
  font-family: var(--phnq-font-mono);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 500;
  color: var(--phnq-surface-border);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.phnq-404__h1 {
  font-family: var(--phnq-font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--phnq-ink-primary-dark);
  margin-bottom: 1rem;
}
.phnq-404__p {
  font-size: 1rem;
  color: var(--phnq-ink-secondary-dark);
  margin-bottom: 2rem;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .phnq-footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .phnq-footer__brand { grid-column: 1 / -1; }
  .phnq-team-grid { grid-template-columns: repeat(2, 1fr); }
  .phnq-hiw__steps { grid-template-columns: 1fr; }
  .phnq-hiw-pipeline-grid { grid-template-columns: repeat(2, 1fr); }
  .phnq-docs-sections-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --phnq-section-py: 64px;
    --phnq-section-py-sm: 48px;
  }
  .phnq-nav__links,
  .phnq-nav__actions { display: none; }
  .phnq-nav__hamburger { display: flex; }
  .phnq-hero__inner { grid-template-columns: 1fr; }
  .phnq-hero__visual { display: none; }
  .phnq-metrics__grid { grid-template-columns: 1fr; gap: 2rem; }
  .phnq-problem__grid { grid-template-columns: 1fr; }
  .phnq-feature-panel { grid-template-columns: 1fr; }
  .phnq-feature-panel--reverse .phnq-feature-panel__copy { order: 0; }
  .phnq-feature-panel--reverse .phnq-feature-panel__visual { order: 0; }
  .phnq-uc-grid { grid-template-columns: 1fr; }
  .phnq-testi-grid { grid-template-columns: 1fr; }
  .phnq-page-hero__inner { grid-template-columns: 1fr; }
  .phnq-product-caps__grid { grid-template-columns: 1fr; }
  .phnq-pricing-tiers { grid-template-columns: 1fr; }
  .phnq-docs-card-grid { grid-template-columns: 1fr; }
  .phnq-docs-sections-grid { grid-template-columns: 1fr; }
  .phnq-docs-layout { grid-template-columns: 1fr; }
  .phnq-docs-sidebar { position: static; }
  .phnq-blog-grid { grid-template-columns: 1fr; }
  .phnq-related-articles__grid { grid-template-columns: 1fr; }
  .phnq-team-grid { grid-template-columns: repeat(2, 1fr); }
  .phnq-culture-grid { grid-template-columns: 1fr; }
  .phnq-contact-grid { grid-template-columns: 1fr; }
  .phnq-uc-split { grid-template-columns: 1fr; }
  .phnq-hiw-pipeline-grid { grid-template-columns: 1fr; }
  .phnq-footer__top { grid-template-columns: 1fr 1fr; }
  .phnq-footer__bottom { flex-direction: column; align-items: flex-start; }
  .phnq-footer__legal-links { flex-direction: column; gap: 0.5rem; }
  .phnq-job-card { flex-direction: column; align-items: flex-start; }
  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .phnq-team-grid { grid-template-columns: 1fr; }
  .phnq-footer__top { grid-template-columns: 1fr; }
  .phnq-auth-card { padding: 2rem 1.5rem; }
  .phnq-cta-banner__actions { flex-direction: column; }
  .phnq-hero__ctas { flex-direction: column; align-items: flex-start; }
}
