/* ============================================================
   Pharoah Forge Kit — COMPONENT LAYER  (forge-kit.css)
   Requires forge-kit-base.css. Semantic token contract: every
   product maps its own palette onto --pk-* in its :root block;
   defaults below are the Pharoah house theme (Forge dark-gold).
   Each product keeps its identity — the kit standardises the
   engineering underneath (visual-variety doctrine).
   Source of truth: products/_shared/. Run _shared/sync-kit.sh.
   ============================================================ */

:root {
  /* surfaces */
  --pk-bg: #0a0a0f;
  --pk-surface: #12121a;
  --pk-surface-hover: #1a1a26;
  --pk-border: #1e1e2e;
  --pk-border-accent: #2a2a3e;
  /* ink */
  --pk-text: #e4e4ed;
  --pk-text-muted: #8888a0;
  /* accent */
  --pk-accent: #c8a04a;
  --pk-accent-2: #e8c96a;
  --pk-accent-glow: rgba(200, 160, 74, 0.15);
  --pk-on-accent: #0a0a0f;
  --pk-focus: var(--pk-accent);
  /* type */
  --pk-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pk-font-display: var(--pk-font);
  --pk-font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  /* shape + depth */
  --pk-radius: 12px;
  --pk-radius-sm: 8px;
  --pk-shadow: 0 1px 3px rgba(0,0,0,.15), 0 8px 32px rgba(0,0,0,.2);
  --pk-shadow-lg: 0 8px 32px rgba(0,0,0,.3);
  /* layout */
  --pk-max: 1200px;
  --pk-pad: 32px;
}

body.pk {
  font-family: var(--pk-font);
  background: var(--pk-bg);
  color: var(--pk-text);
}

.pk a { color: var(--pk-accent); text-decoration: none; transition: opacity .2s; }
.pk a:hover { opacity: .85; }

/* --- Header ------------------------------------------------ */

.pk-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px var(--pk-pad);
  background: color-mix(in srgb, var(--pk-bg) 85%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--pk-border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.pk-logo {
  font-family: var(--pk-font-display);
  font-size: 20px; font-weight: 700; letter-spacing: .5px;
  color: var(--pk-text); white-space: nowrap;
}
.pk-logo span { color: var(--pk-accent); }
.pk-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.pk-header nav a {
  color: var(--pk-text-muted); margin-left: 28px; font-size: 14px; font-weight: 500;
  transition: color .2s;
}
.pk-header nav a:hover { color: var(--pk-text); opacity: 1; }

/* --- Hero -------------------------------------------------- */

.pk-hero {
  padding: 160px var(--pk-pad) 100px;
  text-align: center;
  position: relative;
}
.pk-hero--glow::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(600px, 100vw); height: 600px;
  background: radial-gradient(circle, var(--pk-accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.pk-hero > * { position: relative; }
.pk-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--pk-accent-glow);
  border: 1px solid color-mix(in srgb, var(--pk-accent) 30%, transparent);
  border-radius: 100px;
  font-size: 13px; font-weight: 500; color: var(--pk-accent);
  margin-bottom: 24px;
  letter-spacing: .5px;
}
.pk-hero h1 {
  font-family: var(--pk-font-display);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.pk-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--pk-accent), var(--pk-accent-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pk-hero > p {
  font-size: 18px; color: var(--pk-text-muted);
  max-width: 600px; margin: 0 auto 36px;
  line-height: 1.7;
}
.pk-stats {
  display: flex; justify-content: center; gap: 48px; margin-top: 48px;
  flex-wrap: wrap;
}
.pk-stat { text-align: center; }
.pk-stat .num {
  font-size: 36px; font-weight: 700; color: var(--pk-accent);
  display: block;
}
.pk-stat .label {
  font-size: 13px; color: var(--pk-text-muted); text-transform: uppercase;
  letter-spacing: 1px; margin-top: 4px;
}

/* --- Section ------------------------------------------------ */

.pk-section { padding: 80px var(--pk-pad); max-width: var(--pk-max); margin: 0 auto; }
.pk-section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--pk-accent); margin-bottom: 12px;
}
.pk-section-title {
  font-family: var(--pk-font-display);
  font-size: clamp(28px, 3vw, 40px); font-weight: 700;
  margin-bottom: 16px; letter-spacing: -.5px;
}
.pk-section-desc {
  font-size: 16px; color: var(--pk-text-muted); max-width: 600px; margin-bottom: 48px;
}

/* --- Card grid ---------------------------------------------- */

.pk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 20px;
}
.pk-card {
  background: var(--pk-surface);
  border: 1px solid var(--pk-border);
  border-radius: var(--pk-radius);
  padding: 28px;
  transition: border-color .3s, transform .2s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.pk-card:hover {
  border-color: var(--pk-border-accent);
  transform: translateY(-2px);
  box-shadow: var(--pk-shadow-lg);
}
.pk-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.pk-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.pk-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 100px;
  text-transform: uppercase;
}
.pk-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.pk-card .desc {
  font-size: 14px; color: var(--pk-text-muted); line-height: 1.6;
  margin-bottom: 20px; flex: 1;
}
.pk-card .features { list-style: none; margin-bottom: 24px; }
.pk-card .features li {
  font-size: 13px; color: var(--pk-text-muted); padding: 4px 0 4px 20px;
  position: relative;
}
.pk-card .features li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pk-accent);
}
.pk-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--pk-border);
}

/* --- Price + buttons ----------------------------------------- */

.pk-price { font-size: 24px; font-weight: 700; }
.pk-price .currency { font-size: 16px; font-weight: 500; }
.pk-price .period { font-size: 13px; color: var(--pk-text-muted); font-weight: 400; }

.pk-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--pk-accent);
  color: var(--pk-on-accent);
  font-size: 13px; font-weight: 600;
  border: 0; border-radius: var(--pk-radius-sm);
  letter-spacing: .3px;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.pk-btn:hover { opacity: .9; transform: translateY(-1px); }
.pk-btn--outline {
  background: transparent;
  border: 1px solid var(--pk-border-accent);
  color: var(--pk-text);
}
.pk-btn--outline:hover { border-color: var(--pk-accent); color: var(--pk-accent); }
.pk-btn--sm { padding: 6px 14px; font-size: 12px; }
.pk-btn--lg { padding: 14px 32px; font-size: 15px; }

/* --- Lifetime row -------------------------------------------- */

.pk-lifetime-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--pk-border);
}
.pk-lifetime-row .pk-btn { margin-left: auto; }
.pk-lifetime-badge {
  font-size: 11px; font-weight: 600; padding: 3px 8px;
  background: rgba(52, 211, 153, .12); color: #34d399;
  border-radius: 4px; letter-spacing: .5px;
}
.pk-lifetime-price { font-size: 14px; font-weight: 600; color: var(--pk-text); }

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

.pk-cta {
  text-align: center; padding: 100px var(--pk-pad);
  position: relative;
}
.pk-cta--glow::before {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(800px, 100vw); height: 400px;
  background: radial-gradient(circle, var(--pk-accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.pk-cta > * { position: relative; }
.pk-cta h2 {
  font-family: var(--pk-font-display);
  font-size: clamp(28px, 3vw, 44px); font-weight: 700;
  margin-bottom: 16px;
}
.pk-cta p { font-size: 16px; color: var(--pk-text-muted); margin-bottom: 32px; }

/* --- Grain overlay (opt-in) ----------------------------------- */

.pk-grain::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: .4;
}

/* --- Responsive baseline --------------------------------------- */

@media (max-width: 768px) {
  :root { --pk-pad: 20px; }
  .pk-header { padding: 12px 16px; }
  .pk-header nav a { margin-left: 16px; font-size: 13px; }
  .pk-hero { padding: 120px var(--pk-pad) 60px; }
  .pk-section { padding: 60px var(--pk-pad); }
  .pk-stats { gap: 24px; }
}

@media (max-width: 480px) {
  .pk-hero h1 { letter-spacing: -.5px; }
  .pk-stats { gap: 16px 24px; }
  .pk-stat .num { font-size: 28px; }
  .pk-cta { padding: 72px var(--pk-pad); }
}
