/* ==========================================================================
   PGPony — landing page styles
   Dark hacker-privacy aesthetic. Mono throughout. Sharp 1px borders.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS variables
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — near-black with a faint green tint */
  --bg:           #0a0e0c;
  --bg-alt:       #0d1310;
  --bg-elev:      #11181400;
  --bg-card:      rgba(255, 255, 255, 0.018);
  --bg-card-hov:  rgba(95, 255, 175, 0.04);

  /* Borders */
  --line:         #1d2521;
  --line-strong:  #2a352f;
  --line-accent:  rgba(95, 255, 175, 0.35);

  /* Text */
  --text:         #e6eae7;
  --text-dim:     #8a918e;
  --text-faint:   #555c58;

  /* Accent — terminal green, single-use, with care */
  --accent:       #5fffaf;
  --accent-dim:   #2a8a5e;
  --accent-glow:  rgba(95, 255, 175, 0.18);

  /* Semantic */
  --ok:           #5fffaf;
  --warn:         #ffb547;
  --danger:       #ff6b6b;

  /* Type */
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'IBM Plex Mono',
          ui-monospace, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 820px;
  --gutter: 24px;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Faint grid backdrop */
  background-image:
    linear-gradient(rgba(95, 255, 175, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 255, 175, 0.014) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}

/* Subtle vignette at the top */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(95, 255, 175, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(95, 255, 175, 0.03), transparent 60%);
  z-index: 0;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #b5ffd7; }
code { font-family: var(--mono); font-size: 0.92em; color: var(--accent); background: rgba(95, 255, 175, 0.06); padding: 1px 6px; border: 1px solid var(--line); border-radius: var(--radius); }

::selection { background: var(--accent); color: var(--bg); }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--bg); padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.wrap-narrow { max-width: var(--maxw-narrow); }

.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 56px; max-width: 720px; }

.section-label {
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--accent); margin-bottom: 16px;
  text-transform: lowercase;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 58px); }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 8px; }

.section-sub { color: var(--text-dim); font-size: 15px; margin: 0; max-width: 600px; }
.dim { color: var(--text-dim); }
.accent { color: var(--accent); }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.wordmark {
  font-weight: 600; font-size: 16px; color: var(--text);
  display: inline-flex; align-items: center;
}
.wm-bracket { color: var(--accent); }
.wm-text { padding: 0 2px; }

.site-nav { display: flex; gap: 16px; flex-wrap: nowrap; }
.site-nav a {
  color: var(--text-dim); font-size: 13px;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.nav-cta {
  color: var(--accent);
  border: 1px solid var(--line-accent);
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}
.nav-cta:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

@media (max-width: 880px) {
  .site-nav { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 80px 0 96px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

.hero-title { margin-bottom: 24px; }
.cursor {
  display: inline-block; width: 0.55em; height: 0.95em;
  background: var(--accent); vertical-align: -0.05em; margin-left: 4px;
  animation: blink 1.05s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

.hero-sub {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.65;
  max-width: 540px;
  margin: 0 0 32px;
}

/* Store buttons */
.store-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 32px;
}
.store-row-center { justify-content: center; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: all 0.15s;
  min-width: 200px;
}
.store-btn:hover {
  border-color: var(--accent);
  background: var(--bg-card-hov);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.store-icon { color: var(--accent); display: flex; align-items: center; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-pre { font-size: 10px; color: var(--text-dim); letter-spacing: 0.04em; }
.store-name { font-size: 15px; font-weight: 600; margin-top: 2px; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  color: var(--text-faint); font-size: 12px;
}
.trust-item { display: inline-flex; align-items: center; gap: 6px; }
.check { color: var(--accent); }

/* Terminal panel */
.hero-terminal {
  background: #06090700;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 12px;
  background: linear-gradient(180deg, rgba(95, 255, 175, 0.02), transparent 30%);
  box-shadow:
    0 0 0 1px rgba(95, 255, 175, 0.05),
    0 20px 60px -20px rgba(0, 0, 0, 0.8);
}
.term-chrome {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.term-title { margin-left: auto; color: var(--text-faint); font-size: 11px; }
.term-body {
  margin: 0; padding: 18px 20px;
  font-family: var(--mono); font-size: 12px;
  color: var(--text); line-height: 1.7;
  white-space: pre-wrap; word-break: break-all;
}
.t-dim { color: var(--text-faint); }
.t-accent { color: var(--accent); }
.t-ok { color: var(--accent); font-weight: 600; }

/* --------------------------------------------------------------------------
   Feature grid
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feat {
  background: var(--bg);
  padding: 28px 24px;
  transition: background 0.15s;
}
.feat:hover { background: var(--bg-card-hov); }
.feat-icon {
  font-size: 22px;
  margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line-accent);
  filter: grayscale(0.3);
}
.feat h3 { color: var(--accent); font-size: 15px; }
.feat p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.how-step {
  border: 1px solid var(--line);
  padding: 28px 24px;
  background: var(--bg);
  position: relative;
}
.how-num {
  font-size: 28px; font-weight: 600; color: var(--accent);
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.how-step h3 { font-size: 16px; }
.how-step p { color: var(--text-dim); font-size: 13px; margin: 8px 0 0; }
.how-step strong { color: var(--text); font-weight: 600; }

.ascii-diagram {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 24px;
  overflow-x: auto;
  margin-top: 32px;
}
.ascii-diagram pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
  white-space: pre;
}
@media (max-width: 720px) { .ascii-diagram pre { font-size: 9px; } }

/* --------------------------------------------------------------------------
   Use cases
   -------------------------------------------------------------------------- */
.use-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.use-card {
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--bg);
  transition: all 0.15s;
}
.use-card:hover {
  border-color: var(--line-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
}
.use-tag {
  font-size: 11px; color: var(--accent); margin-bottom: 12px;
}
.use-card h3 { font-size: 18px; margin-bottom: 10px; }
.use-card p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Screenshots
   -------------------------------------------------------------------------- */
.screen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.phone-frame { text-align: center; }
.phone-screen {
  aspect-ratio: 9 / 19.5;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.8);
}
.phone-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  background:
    repeating-linear-gradient(
      45deg,
      var(--bg),
      var(--bg) 8px,
      var(--bg-alt) 8px,
      var(--bg-alt) 16px
    );
}
.phone-label { color: var(--accent); font-size: 12px; }
.phone-sub { color: var(--text-faint); font-size: 10px; }
.phone-caption {
  margin-top: 14px; color: var(--text-dim); font-size: 12px;
}

.video-cta {
  border: 1px solid var(--line);
  background: var(--bg);
}
.video-placeholder {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--text-faint); font-size: 13px;
  background:
    repeating-linear-gradient(
      45deg,
      var(--bg),
      var(--bg) 12px,
      var(--bg-alt) 12px,
      var(--bg-alt) 24px
    );
}
.play-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border: 1px solid var(--line-accent);
  border-radius: 50%; color: var(--accent); font-size: 22px;
}

/* --------------------------------------------------------------------------
   Privacy
   -------------------------------------------------------------------------- */
.privacy-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 32px;
}
@media (max-width: 760px) { .privacy-split { grid-template-columns: 1fr; } }

.priv-col { background: var(--bg); padding: 32px; }
.priv-stays { border-right: 1px solid var(--line); }
.priv-h {
  font-size: 13px; margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.priv-stays .priv-h { color: var(--accent); }
.priv-leaves .priv-h { color: var(--warn); }
.priv-col ul {
  margin: 0; padding: 0; list-style: none;
}
.priv-col li {
  padding: 8px 0; border-top: 1px dashed var(--line);
  color: var(--text-dim); font-size: 13px;
}
.priv-col li:first-child { border-top: 0; padding-top: 0; }
.priv-note {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text); font-size: 13px; line-height: 1.65;
}
.priv-note strong { color: var(--accent); }

.priv-pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.pillar { background: var(--bg); padding: 28px 24px; }
.pillar-h {
  font-size: 16px; color: var(--accent); font-weight: 600;
  margin-bottom: 8px;
}
.pillar p { margin: 0; color: var(--text-dim); font-size: 13px; }

/* --------------------------------------------------------------------------
   Technical specs
   -------------------------------------------------------------------------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.tech-card {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 24px;
}
.tech-h {
  color: var(--accent);
  font-size: 13px; letter-spacing: 0.04em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.kv {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 16px;
  font-size: 12px;
}
.kv dt {
  color: var(--text); font-weight: 600;
}
.kv dd {
  margin: 0; color: var(--text-dim);
}
.kv code { font-size: 11px; padding: 0 4px; }

/* --------------------------------------------------------------------------
   Compare table
   -------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); }
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--bg);
  min-width: 720px;
}
.compare th, .compare td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  color: var(--text-dim);
}
.compare th {
  font-weight: 600; font-size: 12px;
  color: var(--text); letter-spacing: 0.02em;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line-strong);
}
.compare th.us, .compare td.us {
  color: var(--accent);
  background: rgba(95, 255, 175, 0.04);
  font-weight: 600;
}
.compare tbody td:first-child {
  text-align: left; color: var(--text);
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare-foot {
  margin-top: 20px; color: var(--text-dim); font-size: 13px;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.quote {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 28px;
  position: relative;
}
.quote::before {
  content: '"';
  position: absolute; top: 8px; left: 16px;
  font-size: 48px; color: var(--accent); opacity: 0.3;
  line-height: 1;
}
.quote blockquote {
  margin: 0 0 16px; font-size: 14px; line-height: 1.65;
  color: var(--text);
}
.quote figcaption {
  color: var(--text-faint); font-size: 12px;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { border: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 15px; font-weight: 500;
  color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 18px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--bg-card-hov); }
.faq-body {
  padding: 0 24px 24px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
}
.faq-body p { margin: 0; }
.faq-body em { color: var(--text); font-style: normal; font-weight: 500; }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.final-cta {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(95, 255, 175, 0.06), transparent 60%),
    var(--bg);
  text-align: center;
}
.final-inner .section-label {
  display: inline-block;
}
.final-cta h2 { margin: 12px 0 12px; }
.final-cta p {
  color: var(--text-dim); margin: 0 0 32px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 56px 0 32px;
  margin-top: 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-logo { color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.foot-tag { color: var(--text-dim); font-size: 13px; margin: 0; }
.foot-h {
  color: var(--text-faint); font-size: 11px; letter-spacing: 0.06em;
  margin-bottom: 8px; text-transform: lowercase;
}
.foot-col a {
  color: var(--text-dim); font-size: 13px;
  padding: 2px 0; transition: color 0.15s;
}
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px dashed var(--line);
  gap: 16px; flex-wrap: wrap;
}
.foot-meta { color: var(--text-faint); font-size: 11px; }
.foot-copy { color: var(--text-faint); font-size: 11px; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .cursor { animation: none; }
}

/* ==========================================================================
   ICON INTEGRATION — added when the brand icon was wired through.
   Purple is a secondary "brand glow" accent paired with the terminal green.
   ========================================================================== */

:root {
  --brand-purple:      #9470db;
  --brand-purple-soft: rgba(148, 112, 219, 0.22);
  --brand-purple-faint:rgba(148, 112, 219, 0.10);
}

/* --- Header brand icon ----------------------------------------------------- */
.wordmark { gap: 10px; }
.brand-icon {
  width: 28px; height: 28px;
  display: inline-block;
  /* PNG has transparent corners; drop-shadow follows the rounded shape */
  filter: drop-shadow(0 2px 6px rgba(148, 112, 219, 0.30));
}

/* --- Hero visual: icon + terminal stacked --------------------------------- */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 8px;
}
.hero-icon {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 320px;
  height: auto;
  /* PNG carries the rounded iOS shape with transparent corners.
     drop-shadow respects alpha so the shadow follows the silhouette. */
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.04))
    drop-shadow(0 25px 50px rgba(0, 0, 0, 0.55));
  animation: iconFloat 6s ease-in-out infinite;
}
.hero-icon-glow {
  position: absolute; inset: -40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--brand-purple-soft) 0%, transparent 60%);
  filter: blur(20px);
  z-index: 1;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.05); }
}

/* In the hero, the terminal becomes supporting evidence — narrower than before */
.hero-visual .hero-terminal {
  width: 100%;
  max-width: 440px;
}

/* Stack icon above terminal on narrower hero column */
@media (max-width: 920px) {
  .hero-visual { gap: 32px; }
  .hero-icon { max-width: 220px; }
  .hero-visual .hero-terminal { max-width: 100%; }
}

/* --- Final CTA centerpiece icon ------------------------------------------- */
.final-icon-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px;
  width: 128px;
  height: 128px;
}
.final-icon {
  position: relative; z-index: 2;
  width: 128px; height: 128px;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.04))
    drop-shadow(0 18px 35px rgba(0, 0, 0, 0.6));
}
.final-icon-glow {
  position: absolute; inset: -30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--brand-purple-soft) 0%, transparent 60%);
  filter: blur(18px);
  z-index: 1;
  animation: glowPulse 6s ease-in-out infinite;
}

/* Subtle purple wash on the final-cta backdrop so it harmonizes with the icon */
.final-cta {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, var(--brand-purple-faint), transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 100%, var(--accent-glow), transparent 70%),
    var(--bg);
}

/* --- Footer logo --------------------------------------------------------- */
.foot-logo {
  display: inline-flex; align-items: center; gap: 8px;
}
.foot-logo img {
  width: 24px; height: 24px;
  filter: drop-shadow(0 1px 3px rgba(148, 112, 219, 0.25));
}

/* Reduced motion: no float/pulse on the icon */
@media (prefers-reduced-motion: reduce) {
  .hero-icon, .hero-icon-glow, .final-icon-glow {
    animation: none;
  }
}

/* ----------------------------------------------------------------------------
   Sister-app band — AgePony cross-link (teal accent against PGPony green)
   Added for cross-promotion between the two sibling apps.
---------------------------------------------------------------------------- */
.sister-band { border-top: 1px solid var(--line); background: var(--bg-alt); }
.sister-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 40px 0; }
.sister-mark { width: 58px; height: 58px; border-radius: 14px; border: 1px solid rgba(46,201,214,0.35); display: flex; align-items: center; justify-content: center; background: rgba(46,201,214,0.06); overflow: hidden; flex-shrink: 0; }
.sister-mark img { width: 42px; height: 42px; border-radius: 9px; display: block; }
.sister-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #2ec9d6; margin-bottom: 8px; }
.sister-h { font-size: clamp(20px, 3vw, 28px); margin-bottom: 8px; color: var(--fg); }
.sister-h .ag { color: #2ec9d6; }
.sister-text p { font-size: 14.5px; line-height: 1.6; color: var(--fg-muted); max-width: 640px; }
.sister-text strong { color: var(--fg); font-weight: 500; }
.sister-cta { flex-shrink: 0; font-family: var(--mono); font-size: 13px; color: #2ec9d6; border: 1px solid rgba(46,201,214,0.45); border-radius: var(--radius); padding: 11px 18px; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.sister-cta:hover { background: rgba(46,201,214,0.1); color: #7fecf2; }
@media (max-width: 760px) {
  .sister-inner { grid-template-columns: 1fr; gap: 18px; }
  .sister-cta { justify-self: start; }
}

/* ----------------------------------------------------------------------------
   Sister-app pill in the header nav — prominent AgePony cross-link (teal)
---------------------------------------------------------------------------- */
.nav-sister {
  font-family: var(--mono); font-size: 12.5px; color: #2ec9d6;
  border: 1px solid rgba(46,201,214,0.45); border-radius: var(--radius);
  padding: 7px 13px; flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nav-sister:hover { background: rgba(46,201,214,0.1); color: #7fecf2; border-color: rgba(46,201,214,0.7); }
.nav-sister-dot { width: 6px; height: 6px; border-radius: 50%; background: #2ec9d6; box-shadow: 0 0 6px rgba(46,201,214,0.6); }
@media (max-width: 880px) { .nav-sister { order: 2; } }

/* ===================== Pony family components (added) ==================== */
/* PGPony aesthetic: monospace, sharp 2px corners, green accent, no serif.   */
/* Bridge a few variable names this block expects to PGPony's own tokens.    */
.nav-family, .family-band, .family-card, .app-card, .apps-principle {
  --fg: var(--text); --fg-muted: var(--text-dim); --fg-dim: var(--text-faint);
  --accent-bright: #a8ffd0; --bg-card-2: rgba(255,255,255,0.03); --radius-sm: var(--radius);
}

/* Header family dropdown */
.nav-family { position: relative; margin-left: auto; }
.nav-family-btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px;
  color: var(--text-dim); background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 7px 13px; cursor: pointer; transition: border-color .15s, color .15s;
}
.nav-family-btn:hover, .nav-family[data-open] .nav-family-btn { color: var(--text); border-color: var(--line-accent); }
.nav-family-dots { display: inline-flex; gap: 3px; }
.nav-family-dots span { width: 7px; height: 7px; border-radius: 50%; display: block; }
.nav-family-caret { font-size: 10px; transition: transform .18s; }
.nav-family[data-open] .nav-family-caret { transform: rotate(180deg); }
.nav-family-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 320px; background: #111814;
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px; z-index: 60;
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
}
.nav-family-menu a { display: flex; gap: 11px; align-items: flex-start; padding: 10px 11px; border-radius: var(--radius); color: var(--text); }
.nav-family-menu a:hover { background: var(--bg-card-hov); }
.fam-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; }
.fam-meta { display: flex; flex-direction: column; gap: 2px; }
.fam-name { font-size: 13.5px; font-weight: 600; }
.fam-arrow { color: var(--text-faint); font-size: 11px; }
.fam-tag { font-size: 12px; color: var(--text-dim); line-height: 1.45; }
.fam-all { justify-content: center; font-size: 12px; color: var(--accent) !important; margin-top: 4px; border-top: 1px solid var(--line); }

/* Footer family band */
.family-band { padding: 72px 0; border-top: 1px solid var(--line); background: var(--bg-alt); }
.family-band-head { max-width: var(--maxw-narrow); margin: 0 0 34px; }
.family-eyebrow { font-size: 12px; letter-spacing: 0.04em; text-transform: lowercase; color: var(--accent); margin: 0 0 16px; }
.family-h { font-size: clamp(26px, 4vw, 38px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 14px; color: var(--text); }
.family-h .accent { color: var(--accent); }
.family-sub { color: var(--text-dim); font-size: 14.5px; max-width: 64ch; }
.family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.family-card { display: flex; flex-direction: column; gap: 7px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--text); transition: border-color .15s, transform .15s, background .15s; }
.family-card:hover { border-color: var(--line-accent); transform: translateY(-2px); background: rgba(255,255,255,0.03); color: var(--text); }
.family-card-dot { width: 11px; height: 11px; border-radius: 50%; }
.family-card-name { font-size: 16px; font-weight: 600; }
.family-card-plat { font-size: 11px; color: var(--text-faint); letter-spacing: 0.02em; }
.family-card-tag { color: var(--text-dim); font-size: 13.5px; line-height: 1.45; }
.family-all-link { display: inline-block; font-size: 12.5px; color: var(--accent); margin: 24px 0 0; }

/* Family page (/apps.php) */
.apps-wrap { padding: 64px 0 80px; }
.apps-head { max-width: 720px; margin: 0 0 40px; }
.apps-head .section-label { font-size: 12px; letter-spacing: 0.04em; text-transform: lowercase; color: var(--accent); margin-bottom: 16px; }
.apps-head h1 { font-size: clamp(34px, 6vw, 54px); margin-bottom: 16px; }
.apps-head h1 .accent { color: var(--accent); }
.apps-head p { color: var(--text-dim); font-size: 16px; max-width: 60ch; }
.apps-list { display: grid; gap: 16px; margin: 0; }
.app-card { display: grid; grid-template-columns: 72px 1fr auto; gap: 22px; align-items: center; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; position: relative; overflow: hidden; transition: border-color .15s, transform .15s; }
.app-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--app-accent, var(--accent)); }
.app-card:hover { border-color: var(--line-accent); transform: translateY(-2px); }
.app-card.is-self { background: rgba(95,255,175,0.03); }
.app-card-icon { width: 72px; height: 72px; border-radius: 12px; }
.app-card-body h3 { font-size: 20px; font-weight: 600; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-card-plat { font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--app-accent, var(--accent)); border: 1px solid currentColor; border-radius: 999px; padding: 2px 9px; }
.app-card-here { font-size: 10.5px; color: var(--text-faint); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 9px; text-transform: uppercase; letter-spacing: 0.04em; }
.app-card-body p { color: var(--text-dim); font-size: 14.5px; margin: 0; max-width: 60ch; }
.app-card-cta { font-size: 12.5px; white-space: nowrap; color: var(--accent); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 9px 16px; }
.app-card-cta:hover { border-color: var(--line-accent); background: var(--bg-card-hov); }
.apps-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.apps-principle { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.apps-principle h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.apps-principle p { color: var(--text-dim); font-size: 14px; margin: 0; }

@media (max-width: 880px) {
  .nav-family { margin-left: 0; order: 2; }
  .family-grid, .apps-principles { grid-template-columns: 1fr; }
  .app-card { grid-template-columns: 56px 1fr; gap: 16px; padding: 20px; }
  .app-card-icon { width: 56px; height: 56px; }
  .app-card-cta { grid-column: 1 / -1; text-align: center; }
}
