/* 
  PHN Theme v2 - home-perfect10-locked.css
  Perfect 10 Locked Homepage - External CSS
  Location: /wp-content/themes/phn-theme-v2/assets/home-perfect10-locked.css?v=perfect10
  Fonts: Playfair Display 700/800/900 for DIN PATENT headings, Inter for badges/body
*/

   /* Fonts now system-hosted to comply with style-src 'self' */

:root{
  --bg:#ffffff;
  --ink:#0f172a;
  --muted:#475569;
  --muted2:#64748b;
  --muted3:#94a3b8;
  --border:#e2e8f0;
  --border2:#1e293b;
  --gold:#d4af37;
  --gold2:#b89a2a;
  --gold-light:#fef3c7;
  --gold-border:#fde68a;
  --dark:#0f172a;
  --dark2:#1e293b;
  --light:#f8fafc;
  --light2:#fcfbf9;
  --max:1280px;
}

*{ -webkit-font-smoothing:antialiased; box-sizing:border-box; }
html{ scroll-padding-top:78px; scroll-behavior:smooth; }
body{ margin:0; padding-top:78px !important; font-family:Inter,system-ui,-apple-system,sans-serif; background:var(--bg); color:var(--ink); overflow-x:hidden; line-height:1.5; }

/* HEADER 78px LOCKED FIXED */
.phn-header{
  position:fixed !important; top:0 !important; left:0 !important; right:0 !important;
  width:100% !important; height:78px !important; z-index:9999 !important;
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  background:rgba(255,255,255,0.95) !important; border-bottom:1px solid var(--border) !important;
}
.phn-header-inner{ max-width:var(--max); margin:0 auto; padding:0 24px; height:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.phn-brand{ display:flex; align-items:center; gap:12px; min-width:0; width:360px; flex-shrink:0; }
.phn-shield-wrap{ width:40px; height:40px; border-radius:10px; overflow:hidden; background:var(--dark); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.phn-shield-header{ width:100%; height:100%; object-fit:cover; display:block; }
.phn-brand-text{ display:flex; flex-direction:column; min-width:0; width:300px; }
.phn-brand-name{ font-family:'Playfair Display',serif; font-size:19px; font-weight:800; letter-spacing:-0.015em; color:var(--ink); line-height:1.05; white-space:nowrap; }
.phn-brand-sub{ margin-top:4px; font-size:8.5px; font-weight:600; letter-spacing:0.12em; text-transform:uppercase; color:var(--muted2); line-height:1.35; }
.phn-nav{ display:flex; flex:1; justify-content:flex-start; align-items:center; gap:20px; margin-left:48px; }
.phn-nav a{ font-size:13px; font-weight:500; color:#334155; text-decoration:none; white-space:nowrap; transition:opacity .2s; }
.phn-nav a:hover{ opacity:0.8; }
@media(max-width:1023px){ .phn-nav{ display:none; } .phn-brand{ width:auto; } .phn-brand-text{ width:220px; } }

/* SECTIONS */
.phn-section{ width:100%; }
.phn-container{ max-width:var(--max); margin:0 auto; padding:0 24px; }
.phn-hero-section{ background:#fff; }
.phn-hero{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:48px; max-width:var(--max); margin:0 auto; padding:24px 24px 56px; align-items:stretch; }
@media(max-width:1023px){ .phn-hero{ grid-template-columns:1fr; padding:16px 20px 40px; gap:32px; } }
.phn-hero-left{ height:auto; display:flex; flex-direction:column; justify-content:space-between; }
@media(min-width:1024px){ .phn-hero-left{ height:640px; } }

/* Badges + ticker */
.phn-badge-row{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:16px; }
.phn-badge-dark{ display:inline-flex; align-items:center; gap:8px; padding:6px 12px; border-radius:999px; background:var(--dark); color:#fff; font-size:10px; font-weight:600; letter-spacing:0.12em; text-transform:uppercase; line-height:1; }
.phn-dot{ width:6px; height:6px; border-radius:999px; background:var(--gold); display:inline-block; }
.phn-badge-light{ display:inline-flex; padding:6px 12px; border-radius:999px; border:1px solid var(--gold-border); background:var(--gold-light); color:#92400e; font-size:9px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; line-height:1; }
.phn-ticker{ border-left:2px solid var(--gold); padding:8px 12px; border-radius:0 8px 8px 0; background:#fcfbf9; font-size:9.5px; font-weight:600; letter-spacing:0.13em; text-transform:uppercase; color:var(--muted); line-height:1.5; }

/* Shield 68px + vertical stacked metrics */
.phn-shield-metrics{ display:flex; align-items:flex-start; gap:16px; margin-top:18px; padding:12px; border:1px solid var(--border); border-radius:12px; background:var(--light); }
.phn-shield{ width:68px; height:auto; object-fit:contain; display:block; border-radius:8px; flex-shrink:0; }
.phn-shield-stack{ display:flex; flex-direction:column; gap:10px; }
.phn-metric-v{ display:flex; flex-direction:column; line-height:1.2; }
.phn-metric-v b{ font-size:14px; font-weight:800; color:var(--ink); line-height:1; }
.phn-metric-v span{ font-size:8.5px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--muted2); margin-top:3px; line-height:1; }

/* Hero headlines - exact from React: Playfair 900 for DIN PATENT */
.phn-hero-middle{ flex:1; display:flex; flex-direction:column; justify-content:center; padding:12px 0; }
.phn-kicker{ font-size:24px; font-weight:500; line-height:1.25; color:var(--muted); margin-bottom:12px; }
@media(min-width:768px){ .phn-kicker{ font-size:28px; } }
.phn-h1-line1{ font-family:'Playfair Display',serif; font-weight:900; font-size:44px; line-height:0.9; letter-spacing:-0.02em; color:var(--ink); white-space:nowrap; margin-bottom:16px; }
@media(min-width:768px){ .phn-h1-line1{ font-size:54px; } }
@media(max-width:480px){ .phn-h1-line1{ white-space:normal; font-size:36px; } }
.phn-h1-gold{ font-family:'Playfair Display',serif; font-weight:900; font-size:44px; line-height:0.9; letter-spacing:-0.02em; color:var(--gold); }
@media(min-width:768px){ .phn-h1-gold{ font-size:54px; } }
.phn-h1-gold span{ display:block; line-height:0.9; }
.phn-h2{ margin-top:32px; font-size:20px; font-weight:600; line-height:1.25; color:var(--ink); }
@media(min-width:768px){ .phn-h2{ font-size:24px; } }
.phn-h2-bold{ font-size:28px; font-weight:700; line-height:1.1; letter-spacing:-0.01em; color:var(--ink); margin-top:12px; }
@media(min-width:768px){ .phn-h2-bold{ font-size:34px; } }
.phn-h2-bold span{ display:block; line-height:1.1; }
.phn-underline{ margin-top:16px; margin-bottom:24px; display:flex; align-items:center; gap:8px; }
.phn-underline-bar{ width:24px; height:4px; background:var(--gold); flex-shrink:0; }
.phn-underline-text{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.22em; color:var(--ink); line-height:1; }

/* Hero bottom */
.phn-hero-bottom{ margin-top:24px; }
.phn-stats{ border-top:1px solid var(--border); padding-top:20px; display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.phn-stats-title{ font-size:12px; font-weight:600; line-height:1.2; color:var(--ink); }
.phn-stats-sub{ margin-top:2px; font-size:11px; line-height:1.3; color:var(--muted2); }
.phn-cta-row{ margin-top:20px; display:flex; gap:12px; flex-wrap:wrap; }
.phn-btn-dark{ height:48px; background:var(--dark); color:#fff; padding:0 28px; border-radius:999px; font-size:13px; font-weight:600; display:inline-flex; align-items:center; justify-content:center; text-decoration:none; transition:background .2s; }
.phn-btn-dark:hover{ background:#000; }
.phn-btn-light{ height:48px; border:1px solid var(--border); color:var(--ink); padding:0 20px; border-radius:999px; font-size:13px; font-weight:500; display:inline-flex; align-items:center; justify-content:center; text-decoration:none; background:#fff; transition:background .2s; }
.phn-btn-light:hover{ background:#f8fafc; }

/* PERSON CARD - 560px mobile / 640px desktop - rounded 24 outer / 20 inner - cover 18% */
.phn-person-card{ height:560px; border-radius:24px; padding:6px; background:var(--dark); position:relative; }
@media(min-width:1024px){ .phn-person-card{ height:640px; } }
.phn-person-inner{ width:100%; height:100%; border-radius:20px; overflow:hidden; position:relative; background:var(--dark); }
.phn-person-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 18%; display:block; }
.phn-metrics-overlay{ position:absolute; bottom:16px; left:16px; right:16px; background:rgba(255,255,255,0.96); backdrop-filter:blur(6px); border-radius:12px; padding:14px; display:flex; justify-content:space-between; align-items:center; box-shadow:0 8px 32px rgba(0,0,0,0.18); }
.phn-live{ display:flex; align-items:center; gap:8px; font-size:10px; font-weight:700; letter-spacing:0.18em; text-transform:uppercase; color:var(--ink); }
.phn-pulse{ width:8px; height:8px; border-radius:999px; background:#10b981; display:inline-block; animation:phnPulse 1.5s infinite; }
@keyframes phnPulse{ 0%{ box-shadow:0 0 0 0 rgba(16,185,129,0.7);} 70%{ box-shadow:0 0 0 6px rgba(16,185,129,0);} 100%{ box-shadow:0 0 0 0 rgba(16,185,129,0);} }
.phn-metrics-grid{ margin-top:8px; display:flex; gap:12px; align-items:stretch; }
.phn-m-num{ font-size:15px; font-weight:700; color:var(--ink); line-height:1; }
.phn-m-label{ font-size:8.5px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--muted2); margin-top:4px; line-height:1; }
.phn-sep{ width:1px; background:var(--border); align-self:stretch; }
.phn-overlay-icon{ width:32px; height:32px; border-radius:999px; background:var(--dark); color:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-left:8px; font-size:16px; }

/* FOLD 2 - Board Question */
.phn-board-question{ background:var(--light); padding:56px 0; }
@media(min-width:768px){ .phn-board-question{ padding:64px 0; } }
.phn-eyebrow{ display:flex; align-items:center; gap:8px; margin-bottom:16px; font-size:10px; font-weight:600; letter-spacing:0.2em; text-transform:uppercase; color:var(--muted2); }
.phn-eyebrow-bar{ width:32px; height:2px; background:var(--gold); }
.phn-eyebrow-gold{ display:flex; align-items:center; gap:8px; font-size:10px; font-weight:600; letter-spacing:0.2em; text-transform:uppercase; color:var(--gold); }
.phn-eyebrow-bar-gold{ width:32px; height:2px; background:var(--gold); }
.phn-h2-serif{ max-width:800px; font-family:'Playfair Display',serif; font-size:32px; line-height:1.1; font-weight:700; color:var(--ink); margin:0 0 16px; }
@media(min-width:768px){ .phn-h2-serif{ font-size:48px; } }
.phn-h2-serif-36{ max-width:560px; font-family:'Playfair Display',serif; font-size:36px; line-height:44px; font-weight:700; color:var(--ink); margin:16px 0 0; }
.phn-lead{ max-width:640px; font-size:18px; line-height:1.6; color:var(--muted); margin:0 0 40px; }
.phn-lead-17{ max-width:560px; font-size:17px; line-height:1.6; color:var(--muted); margin:24px 0 0; }
.phn-cards-3{ display:grid; grid-template-columns:1fr; gap:32px; margin-top:40px; }
@media(min-width:768px){ .phn-cards-3{ grid-template-columns:repeat(3,1fr); } }
.phn-card{ background:#fff; border:1px solid var(--border); border-radius:16px; padding:32px; box-shadow:0 1px 2px rgba(0,0,0,0.04); transition:box-shadow .2s; }
.phn-card:hover{ box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.phn-card-icon{ width:40px; height:40px; border-radius:12px; background:var(--dark); display:flex; align-items:center; justify-content:center; color:#fff; font-size:20px; }
.phn-card h3{ margin:24px 0 0; font-family:'Playfair Display',serif; font-size:18px; font-weight:700; color:var(--ink); }
.phn-card p{ margin:12px 0 0; font-size:14px; line-height:1.6; color:var(--muted); }
.phn-pill-gold{ margin-top:24px; display:inline-flex; padding:4px 12px; border-radius:999px; background:var(--gold-light); border:1px solid var(--gold-border); color:#92400e; font-size:11px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; }
.phn-pill-dark{ margin-top:24px; display:inline-flex; padding:4px 12px; border-radius:999px; background:var(--dark); color:var(--gold); font-size:11px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; }
.phn-pill-light{ margin-top:24px; display:inline-flex; padding:4px 12px; border-radius:999px; background:var(--light); border:1px solid var(--border); color:var(--muted); font-size:11px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; }
.phn-dark-cta{ margin-top:40px; border-radius:16px; padding:32px; background:var(--dark); display:flex; flex-direction:column; gap:24px; }
@media(min-width:768px){ .phn-dark-cta{ flex-direction:row; justify-content:space-between; align-items:center; padding:40px; } }
.phn-dark-cta-text{ font-family:'Playfair Display',serif; font-size:22px; font-weight:700; color:#fff; }
@media(min-width:768px){ .phn-dark-cta-text{ font-size:24px; } }
.phn-btn-gold{ height:44px; padding:0 32px; border-radius:999px; background:var(--gold); color:var(--dark); font-size:13px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.phn-btn-gold:hover{ background:#c19b2e; }

/* FOLD 3 - Patents */
.phn-patents{ background:#fff; border-top:1px solid var(--border); padding:56px 0; }
@media(min-width:768px){ .phn-patents{ padding:64px 0; } }
.phn-grid-2{ display:grid; grid-template-columns:1fr; gap:64px; align-items:start; }
@media(min-width:1024px){ .phn-grid-2{ grid-template-columns:repeat(2,1fr); } }
.phn-stats-grid-2{ margin-top:40px; display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.phn-big-num{ font-size:32px; font-weight:700; line-height:1; color:var(--ink); }
.phn-small-label{ font-size:11px; font-weight:600; letter-spacing:0.12em; text-transform:uppercase; color:var(--muted2); margin-top:8px; }
.phn-small-sub{ font-size:13px; color:var(--muted); margin-top:8px; }
.phn-stack{ display:flex; flex-direction:column; gap:24px; }
.phn-qare-card{ border-radius:16px; padding:32px; background:var(--dark); color:#fff; }
.phn-qare-card h3{ margin:16px 0 0; font-family:'Playfair Display',serif; font-size:20px; font-weight:700; }
.phn-qare-card p{ margin:12px 0 0; font-size:14px; line-height:1.6; color:var(--muted3); }
.phn-qare-grid{ margin-top:24px; display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.phn-qare-box{ border-radius:12px; background:var(--dark2); border:1px solid #334155; padding:12px; }
.phn-qare-k{ font-size:12px; font-weight:700; color:var(--gold); }
.phn-qare-box div:last-child{ margin-top:4px; font-size:11px; color:#cbd5e1; line-height:1.4; }
.phn-patent-card{ border-radius:16px; padding:32px; background:var(--gold-light); border:1px solid var(--gold-border); }
.phn-patent-eyebrow{ display:flex; align-items:center; gap:8px; font-size:10px; font-weight:700; letter-spacing:0.18em; text-transform:uppercase; color:#92400e; }
.phn-patent-card h4{ margin:12px 0 0; font-family:'Playfair Display',serif; font-size:16px; font-weight:700; color:var(--ink); }
.phn-patent-rows{ margin-top:16px; display:flex; flex-direction:column; gap:8px; font-size:13px; color:#78350f; }
.phn-patent-rows div{ display:flex; justify-content:space-between; }
.phn-patent-note{ margin-top:12px; border-top:1px solid var(--gold-border); padding-top:12px; font-size:11px; line-height:1.5; color:#92400e; }

/* FOLD 5 - CDR 8 functions */
.phn-cdr{ background:#fff; padding:56px 0; }
@media(min-width:768px){ .phn-cdr{ padding:64px 0; } }
.phn-cdr-meta{ font-size:10px; font-weight:600; letter-spacing:0.2em; text-transform:uppercase; color:var(--muted); line-height:1.5; margin-bottom:24px; }
.phn-cdr-head{ display:grid; grid-template-columns:1fr; gap:32px; align-items:start; margin-bottom:40px; }
@media(min-width:1024px){ .phn-cdr-head{ grid-template-columns:1.05fr 0.95fr; gap:48px; } }
.phn-cdr-title{ font-family:'Playfair Display',serif; font-size:32px; line-height:1.05; letter-spacing:-0.02em; font-weight:700; color:var(--ink); margin:0; }
@media(min-width:768px){ .phn-cdr-title{ font-size:40px; } }
.phn-cdr-title span{ display:block; margin-top:4px; color:var(--gold); font-size:clamp(32px,3.2vw,40px); line-height:1.05; }
.phn-cdr-desc{ display:flex; flex-direction:column; gap:12px; padding-top:4px; }
.phn-cdr-desc p{ font-size:15px; line-height:1.6; color:#334155; margin:0; }
.phn-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.phn-tags span{ display:inline-flex; padding:4px 10px; border-radius:999px; border:1px solid var(--border); background:var(--light); color:#334155; font-size:10px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; }
.phn-divider{ border-top:1px solid var(--border); }
.phn-cdr-grid{ margin-top:40px; display:grid; grid-template-columns:1fr; gap:20px; }
@media(min-width:768px){ .phn-cdr-grid{ grid-template-columns:repeat(2,1fr); } }
@media(min-width:1024px){ .phn-cdr-grid{ grid-template-columns:repeat(4,1fr); } }
.phn-cdr-card{ border-radius:16px; border:1px solid var(--border); background:#fff; padding:24px; display:flex; flex-direction:column; justify-content:space-between; min-height:340px; transition:box-shadow .2s; }
.phn-cdr-card:hover{ box-shadow:0 2px 8px rgba(0,0,0,0.04); }
.phn-cdr-pill{ display:inline-flex; align-self:flex-start; padding:4px 12px; border-radius:999px; border:1px solid var(--gold-border); background:var(--gold-light); color:#92400e; font-size:9.5px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; line-height:1.3; }
.phn-cdr-t{ margin-top:16px; min-height:48px; font-size:18px; font-weight:700; line-height:1.25; color:var(--ink); }
.phn-cdr-d{ margin-top:12px; min-height:110px; font-size:14px; line-height:1.6; color:var(--muted); }
.phn-cdr-f{ margin-top:24px; border-top:1px solid var(--border); padding-top:16px; font-size:11px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; color:var(--muted2); line-height:1.4; min-height:36px; display:flex; align-items:flex-end; }
.phn-cdr-cta{ margin-top:32px; }
.phn-cdr-cta a{ display:inline-flex; font-size:11px; letter-spacing:0.16em; text-transform:uppercase; font-weight:700; color:var(--gold2); text-decoration:none; }
.phn-cdr-cta a:hover{ color:var(--ink); }

/* FOLD 6 - Final CTA */
.phn-final{ background:var(--light2); border-top:1px solid var(--border); padding:56px 0; }
@media(min-width:768px){ .phn-final{ padding:64px 0; } }
.phn-final-inner{ max-width:900px; margin:0 auto; padding:0 24px; text-align:center; }
.phn-final-inner h2{ font-family:'Playfair Display',serif; font-size:32px; line-height:1.05; font-weight:700; color:var(--ink); margin:0 0 16px; }
@media(min-width:768px){ .phn-final-inner h2{ font-size:40px; } }
.phn-final-inner p{ max-width:640px; margin:0 auto 32px; font-size:15px; line-height:1.6; color:var(--muted); }
.phn-final-btns{ display:flex; flex-direction:column; gap:16px; justify-content:center; }
@media(min-width:640px){ .phn-final-btns{ flex-direction:row; } }

/* Footer - bg #0f172a - one line nav desktop, wrap mobile */
.phn-footer{ background:var(--dark); color:var(--muted3); padding:40px 24px; border-top:1px solid var(--dark); }
.phn-footer-main{ max-width:var(--max); margin:0 auto; display:flex; flex-direction:column; gap:24px; align-items:flex-start; }
@media(min-width:1024px){ .phn-footer-main{ flex-direction:row; justify-content:space-between; gap:24px; } }
.phn-footer-left{ font-size:12px; line-height:1.6; max-width:560px; }
.phn-footer-left span{ color:#fff; font-weight:600; }
.phn-footer-right{ width:100%; display:flex; flex-direction:column; align-items:flex-start; }
@media(min-width:1024px){ .phn-footer-right{ flex:0 0 58%; max-width:58%; align-items:flex-end; } }
.phn-footer-nav{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; color:#cbd5e1; }
@media(min-width:1024px){ .phn-footer-nav{ flex-wrap:nowrap; white-space:nowrap; justify-content:flex-end; gap:14px; } }
.phn-footer-nav a{ color:#cbd5e1; text-decoration:none; font-size:12.5px; letter-spacing:0.02em; white-space:nowrap; transition:color .2s; }
.phn-footer-nav a:hover{ color:#fff; }
.phn-footer-nav span{ color:#334155; opacity:0.3; margin:0 2px; user-select:none; }
.phn-footer-copy{ margin-top:8px; font-size:11px; color:var(--muted2); text-align:left; width:100%; }
@media(min-width:1024px){ .phn-footer-copy{ text-align:right; } }

/* MODE TOGGLE - after Contact */
/* CSP-SAFE PILL TOGGLE - CORRECT IDs */
#phn2-toggle{
  width:62px!important;
  height:32px!important;
  border-radius:9999px!important;
  background:#eef2fb!important;
  border:1.5px solid #cbd5e1!important;
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  padding:0!important;
  overflow:hidden!important;
}
#phn2-knob{
  position:absolute!important;
  left:3px!important;
  top:3px!important;
  width:24px!important;
  height:24px!important;
  border-radius:50%!important;
  background:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-shadow:0 1px 3px rgba(0,0,0,.2)!important;
  transition:transform .28s ease!important;
}
body.phn-dark #phn2-toggle{background:#1e293b!important;border-color:#334155!important}
body.phn-dark #phn2-knob{transform:translateX(28px)!important}

.phn-footer{background:#0B1F3A;color:#fff;padding:20px;text-align:center}

/* PILL SLIDE - CSP self safe - single version */
#phn2-toggle{position:relative;width:56px;height:30px;background:#e5e7eb;border-radius:9999px;cursor:pointer;transition:background .3s;display:inline-flex;align-items:center;padding:2px;border:1px solid #d1d5db}
#phn2-knob{width:26px;height:26px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;transform:translateX(0);transition:transform .32s cubic-bezier(.4,0,.2,1);box-shadow:0 1px 3px rgba(0,0,0,.2)}
#phn2-toggle[data-dark="1"]{background:#0B1F3A;border-color:#0B1F3A}
#phn2-toggle[data-dark="1"] #phn2-knob{transform:translateX(26px)}
.phn-site-header{background:#0B1F3A;color:#fff;padding:14px}
.phn-main{max-width:1200px;margin:auto;padding:20px}

/* GLOBAL DARK - impacts all pages - fixes 4:39 PM invisible text */
body.phn-dark{background:#0B1F3A !important;color:#e2e8f0 !important}
body.phn-dark .phn-site-header, body.phn-dark .phn-footer{background:#020617 !important}
body.phn-dark section, body.phn-dark .phn-card, body.phn-dark .phn-final-btns{background:#0f172a !important;color:#e2e8f0 !important;border-color:#1e293b !important}
body.phn-dark h1, body.phn-dark h2, body.phn-dark h3, body.phn-dark p, body.phn-dark span, body.phn-dark div{color:#f1f5f9 !important}
body.phn-dark a{color:#93c5fd !important}

/* HEADER FIX - your 4:43 PM header stays lite */
body.phn-dark header,
body.phn-dark .phn-site-header,
body.phn-dark .site-header{background:#020617 !important}
body.phn-dark header a,
body.phn-dark .phn-site-header a,
body.phn-dark nav a{color:#e2e8f0 !important}

/* TOP LABELS above "AI makes companies go faster" - white-on-white fix */
body.phn-dark div[style*="background:#fff"],
body.phn-dark div[style*="background: #fff"],
body.phn-dark div[style*="background:white"]{
  background:#0f172a !important;
  color:#e2e8f0 !important;
  border:1px solid #1e293b !important
}
body.phn-dark div[style*="background:#fff"] span,
body.phn-dark div[style*="background:#fff"] div{
  color:#e2e8f0 !important
}

/* keep your gold pills readable */
body.phn-dark .phn-badge-gold,
body.phn-dark [class*="IICA"]{
  background:#1e293b !important;
  color:#fbbf24 !important;
  border-color:#334155 !important
}

/* FIX WHITE PATCHES - your 4:45 PM */
body.phn-dark div[style*="background:#fff"],
body.phn-dark div[style*="background: #fff"],
body.phn-dark div[style*="background:#ffffff"],
body.phn-dark div[style*="background-color:#fff"]{
  background:#0f172a !important;
  color:#e2e8f0 !important;
  border-color:#1e293b !important
}
body.phn-dark div[style*="background:#fff"] *,
body.phn-dark div[style*="background: #fff"] *{
  color:#cbd5e1 !important
}
/* keep gold left border on creator bar */
body.phn-dark div[style*="border-left"]{
  border-left:3px solid #D4AF37 !important
}
/* LIVE METRICS card specifically */
body.phn-dark .phn-metrics,
body.phn-dark [class*="LIVE"]{
  background:#0f172a !important;
  color:#f1f5f9 !important
}

/* 8 FUNCTIONS FOLD - fixes your 5:25 PM white-on-white */
body.phn-dark div[class*="F1"],
body.phn-dark div[class*="F2"],
body.phn-dark div[class*="F3"],
body.phn-dark div[class*="F4"],
body.phn-dark div[class*="F5"],
body.phn-dark div[class*="F6"],
body.phn-dark div[class*="F7"],
body.phn-dark div[class*="F8"],
body.phn-dark .phn-card,
body.phn-dark .elementor-column > div,
body.phn-dark section > div > div{
  background:#0f172a !important;
  color:#cbd5e1 !important;
  border:1px solid #1e293b !important
}
body.phn-dark .phn-card h3,
body.phn-dark .phn-card strong,
body.phn-dark div[class*="F"] h3,
body.phn-dark div[class*="F"] strong{
  color:#f1f5f9 !important
}
/* keep yellow pills readable in dark */
body.phn-dark div[style*="background:#FEF3C7"],
body.phn-dark div[style*="background: #FEF3C7"]{
  background:#1e293b !important;
  color:#fbbf24 !important;
  border-color:#334155 !important
}

/* PILLNOW37 - ONLY your orange pointers - fixes 5:55 PM white-on-dark */
.phn-ticker{background:#f8fafc !important;color:#0f172a !important;border-left:3px solid #D4AF37 !important}
.phn-metrics-overlay{background:#ffffff !important;color:#0f172a !important}

body.phn-dark .phn-ticker{
  background:#0f172a !important;
  color:#cbd5e1 !important;
  border-left:3px solid #D4AF37 !important;
}
body.phn-dark .phn-badge-light{
  background:#1e293b !important;
  color:#fbbf24 !important;
  border:1px solid #334155 !important;
}
body.phn-dark .phn-stats{
  border-top:1px solid #1e293b !important;
}
body.phn-dark .phn-stats-title{color:#f1f5f9 !important}
body.phn-dark .phn-stats-sub{color:#94a3b8 !important}
body.phn-dark .phn-metrics-overlay{
  background:#0f172a !important;
  color:#e2e8f0 !important;
  border:1px solid #1e293b !important;
}
body.phn-dark .phn-m-num, body.phn-dark .phn-live{color:#f1f5f9 !important}
body.phn-dark .phn-m-label{color:#94a3b8 !important}

/* PILLNOW37 - FIXES YOUR 5:55 PM WHITES */
body.phn-dark .phn-ticker{background:#0f172a !important;color:#cbd5e1 !important;border-left:3px solid #D4AF37 !important}
body.phn-dark .phn-badge-light{background:#1e293b !important;color:#fbbf24 !important}
body.phn-dark .phn-metrics-overlay{background:#0f172a !important;color:#e2e8f0 !important;border:1px solid #1e293b !important}
body.phn-dark .phn-m-num{color:#f1f5f9 !important}
body.phn-dark .phn-m-label, body.phn-dark .phn-stats-sub{color:#94a3b8 !important}

/* PILLNOW38 - REMAINING HIGHLIGHTS from your 6:12 PM marks */

/* tag pills - white bg white text */
body.phn-dark .phn-tags span,
body.phn-dark .phn-tag{
  background:#1e293b !important;
  color:#e2e8f0 !important;
  border:1px solid #334155 !important;
}

/* CDR 8 cards - white cards white text */
body.phn-dark .phn-cdr-card{
  background:#0f172a !important;
  border:1px solid #1e293b !important;
  color:#e2e8f0 !important;
}
body.phn-dark .phn-cdr-t{color:#f1f5f9 !important}
body.phn-dark .phn-cdr-d{color:#94a3b8 !important}
body.phn-dark .phn-cdr-f{color:#cbd5e1 !important}

/* yellow pills inside cards - F1-F4 */
body.phn-dark .phn-cdr-pill{
  background:#1e293b !important;
  color:#fbbf24 !important;
  border:1px solid #334155 !important;
}

/* yellow patent card */
body.phn-dark .phn-patent-card,
body.phn-dark .phn-qare-card{
  background:#0f172a !important;
  border:1px solid #1e293b !important;
}
body.phn-dark .phn-patent-card *,
body.phn-dark .phn-qare-card *{color:#e2e8f0 !important}
body.phn-dark .phn-patent-card b{color:#fbbf24 !important}

/* small gold/light/dark pills */
body.phn-dark .phn-pill-gold{
  background:#1e293b !important;
  color:#fde68a !important;
}
body.phn-dark .phn-pill-light,
body.phn-dark .phn-pill-dark{
  background:#1e293b !important;
  color:#e2e8f0 !important;
  border:1px solid #334155 !important;
}

/* CTA buttons */
body.phn-dark .phn-btn-light{
  background:#e2e8f0 !important;
  color:#0f172a !important;
}
body.phn-dark .phn-btn-gold{
  background:#D4AF37 !important;
  color:#0f172a !important;
}

/* PILLNOW40 - FIX MOBILE ☰ POSITION - your 6:24 PM overlap */
.phn-mob-toggle{display:none;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:8px 10px;font-size:18px;line-height:1;cursor:pointer;z-index:1001}
.phn-mob-drawer{display:none;position:absolute;top:78px;left:0;right:0;flex-direction:column;gap:0;background:#fff;border-top:1px solid #e2e8f0;box-shadow:0 10px 20px rgba(0,0,0,0.08);z-index:1000}
.phn-mob-drawer a{padding:14px 20px;text-decoration:none;color:#0f172a;font-weight:600;border-bottom:1px solid #f1f5f0}

@media(max-width:900px){
  .phn-header{position:relative}
  .phn-header-inner{display:flex !important;justify-content:space-between !important;align-items:center !important;gap:12px}
  .phn-nav{display:none !important}

/* PILLNOW48 - 6:55 PM FIX - ONLY HEADER LAYOUT, NO BALL OVERRIDE */
.phn-header{overflow:visible !important}
.phn-header-inner{overflow:visible !important}
#phn2-mob-menu,.phn-mob-panel,.phn-mobile-menu{
  position:fixed !important;
  top:64px !important;
  left:0 !important;
  right:0 !important;
  width:100vw !important;
  z-index:9999 !important;
  background:#fff !important;
  display:block !important;
}
body.phn-dark #phn2-mob-menu,
body.phn-dark .phn-mob-panel{
  background:#0f172a !important;
}
.phn-header-inner{
  display:flex !important;
  align-items:center !important;
  flex-wrap:nowrap !important;
  justify-content:space-between !important;
  padding:0 8px 0 10px !important;
  gap:0 !important;
}
.phn-brand{flex:1 1 auto !important;min-width:0 !important}
#phn2-toggle{
  flex:0 0 auto !important;
  margin-left:auto !important;
  margin-right:0 !important;
}
.phn-mob-toggle{
  display:flex !important;
  flex:0 0 36px !important;
  width:36px !important;
  height:36px !important;
  margin-left:8px !important;
  margin-right:0 !important;
  align-items:center !important;
  justify-content:center !important;
}
  .phn-mob-drawer.open{display:flex !important}
}

/* dark */
body.phn-dark .phn-mob-toggle{background:#0f172a;border-color:#334155;color:#e2e8f0}
body.phn-dark .phn-mob-drawer{background:#020617;border-color:#1e293b}
body.phn-dark .phn-mob-drawer a{color:#cbd5e1;border-color:#1e293b}