/* R2P2 color system: Dark Premium + Enterprise Light.
   Matches the existing www.r2p2.io direction: dark navy/black, white, amber/gold/orange.
   Uses premium dark and enterprise light without neon grid dependency. */
:root {
  color-scheme: dark;
  --bg: #070b12;
  --bg-2: #0b1220;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.04);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.52);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(245, 158, 11, 0.48);
  --accent: #f59e0b;
  --accent-2: #ea580c;
  --accent-3: #fcd34d;
  --gold: #fcd34d;
  --success: #f59e0b;
  --danger: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 26px;
  --radius-sm: 16px;
  --max: 1280px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-2: #e2e8f0;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-2: rgba(255, 255, 255, 0.76);
  --text: #0f172a;
  --muted: #475569;
  --faint: #64748b;
  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(194, 65, 12, 0.38);
  --accent: #c2410c;
  --accent-2: #ea580c;
  --accent-3: #9a3412;
  --gold: #9a3412;
  --success: #c2410c;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(920px 460px at 65% 0%, rgba(245, 158, 11, 0.24), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  z-index: -3;
}
html[data-theme="light"] body::before {
  background:
    radial-gradient(920px 460px at 65% 0%, rgba(249, 115, 22, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

.site-bg {
  display: none;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-3); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--line);
}
.inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: fit-content;
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 34px rgba(245, 158, 11, 0.16);
  overflow: hidden;
}
.brand-mark img { width: 40px; height: 40px; object-fit: contain; }
.name { display: block; font-weight: 900; letter-spacing: 0.08em; font-size: 15px; }
.tag { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.nav a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
}
.nav a:hover { color: var(--text); background: rgba(245, 158, 11, 0.10); }
.actions { display: flex; align-items: center; gap: 10px; }
.btn {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 82%, transparent), color-mix(in srgb, var(--panel-2) 88%, transparent));
  border-radius: 999px;
  padding: 11px 17px;
  font-weight: 850;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); color: var(--text); border-color: var(--accent); box-shadow: 0 16px 45px rgba(245, 158, 11, 0.16); }
.btn.primary {
  border-color: rgba(245, 158, 11, 0.78);
  background: linear-gradient(135deg, #f59e0b, #ea580c 55%, #fcd34d);
  color: #1f1304;
  text-shadow: 0 1px 0 rgba(255,255,255,0.28);
}
.btn.ghost { background: transparent; }
.theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}
.theme-pill button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.theme-pill button[aria-pressed="true"] { background: rgba(245, 158, 11, 0.16); color: var(--accent-3); }
.icon { width: 19px; height: 19px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 46px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(500px, 1.14fr);
  gap: 22px;
  align-items: start;
  padding: 22px 0 8px;
}
.hero-copy { min-width: 0; }
.hero-wrap {
  display: block;
  padding: 20px 0 4px;
}
.hero-wrap .hero-top {
  width: 100%;
  margin-bottom: 10px;
}
.hero-wrap h1 {
  max-width: none;
  margin-bottom: 16px;
  font-size: clamp(36px, 4.35vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  white-space: nowrap;
}
.hero-flow {
  display: flow-root;
}
.hero-wrap .hero-visual {
  float: right;
  width: min(58vw, 770px);
  max-width: 60%;
  margin: 2px 0 16px 28px;
}
.hero-wrap .sub {
  max-width: none;
}
.hero-wrap .hero-actions {
  clear: both;
  flex-wrap: nowrap;
  align-items: center;
}
.hero-wrap .trust-row {
  clear: both;
  flex-wrap: nowrap;
}
.hero-wrap .trust-row span {
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 179, 44, 0.38);
  border-radius: 999px;
  background: rgba(255, 179, 44, 0.09);
  color: color-mix(in srgb, var(--gold) 85%, var(--text));
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pill.small { font-size: 12px; padding: 7px 10px; }
h1, .h1, h2, h3, h4, p { margin-top: 0; }
h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.065em;
  font-weight: 950;
}
h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 14px;
}
h3 { font-size: 21px; line-height: 1.12; margin-bottom: 10px; }
h4 { font-size: 18px; margin-bottom: 8px; }
.sub {
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 20px);
  max-width: 62ch;
  margin-bottom: 16px;
}
.sub-tight { font-size: 16px; }
.hero-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.trust-row span, .panel-grid span, .bullet-grid span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 750;
}
.hero-visual {
  position: relative;
  min-height: 0;
  aspect-ratio: 1600 / 837;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px;
  overflow: hidden;
  cursor: zoom-in;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.24), transparent 35%),
    color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: var(--shadow), inset 0 0 80px rgba(245, 158, 11, 0.08);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 65%, color-mix(in srgb, var(--bg) 50%, transparent));
}
.theme-image {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  border-radius: calc(var(--radius) - 10px);
}
.theme-image-light { display: none; }
html[data-theme="light"] .theme-image-dark { display: none; }
html[data-theme="light"] .theme-image-light { display: block; }
.hero-visual:focus-visible { outline: 3px solid var(--accent-3); outline-offset: 4px; }
.hero-visual .zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--accent) 54%, var(--line));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  opacity: 0.88;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 58px 16px 18px;
  background: rgba(3, 7, 18, 0.94);
  backdrop-filter: blur(12px);
}
.image-lightbox[hidden] { display: none; }
.image-lightbox img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 94px);
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.62);
}
.lightbox-close {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  border-radius: 999px;
  min-height: 42px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}
body.lightbox-open { overflow: hidden; }

.signal-strip {
  margin: 18px 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  box-shadow: 0 20px 60px rgba(0,0,0,0.16);
}
.signal-strip div {
  padding: 18px;
  border-right: 1px solid var(--line);
}
.signal-strip div:last-child { border-right: 0; }
.signal-strip b { display: block; color: var(--text); font-size: 15px; letter-spacing: 0.01em; }
.signal-strip span { color: var(--muted); font-size: 13px; }

.section {
  padding: 74px 0 0;
}
.section-kicker {
  color: var(--accent-3);
  letter-spacing: 0.14em;
  font-weight: 950;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}
.section-head {
  max-width: 860px;
  margin-bottom: 24px;
}
.section-head p, .media-copy p, .google-note p, .control-panel p, .planner-output p, .form-intro, .mini p, .footer span, .footer-note {
  color: var(--muted);
}
.split-head {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.cards-3up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .mini, .control-panel, .planner-card, .google-note, .video-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 90%, transparent), color-mix(in srgb, var(--panel-2) 90%, transparent));
  box-shadow: 0 18px 55px rgba(0,0,0,0.14);
}
.mini { padding: 21px; position: relative; overflow: hidden; }
.mini::before, .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
}
.icon-card .card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  color: var(--accent-3);
  background: rgba(245, 158, 11, 0.11);
  font-weight: 950;
  margin-bottom: 14px;
}
.control-panel {
  margin-top: 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
  gap: 22px;
  align-items: center;
}
.panel-grid, .bullet-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.media-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 0.52fr);
  gap: 22px;
  align-items: center;
}
.video-card {
  padding: 10px;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 0%, rgba(255,179,44,0.15), transparent 34%), color-mix(in srgb, var(--panel) 92%, transparent);
}
.video-card video {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 10px);
  background: #000;
}
.planner-card {
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 16px;
  border-color: rgba(255, 179, 44, 0.28);
}
.planner-inputs {
  display: grid;
  gap: 10px;
}
.planner-inputs div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .planner-inputs div { background: rgba(255, 255, 255, 0.58); }
.planner-inputs span { display: block; color: var(--faint); text-transform: uppercase; font-size: 11px; letter-spacing: 0.12em; font-weight: 900; }
.planner-inputs b { color: var(--text); }
.framework {
  position: relative;
}
.intent-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.intent-flow div {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  position: relative;
  min-height: 210px;
}
.intent-flow span {
  display: inline-block;
  color: var(--gold);
  font-weight: 950;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.intent-flow p { color: var(--muted); margin-bottom: 0; }
.google-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.35fr);
  gap: 18px;
  padding: 26px;
  border-color: rgba(255, 179, 44, 0.28);
}
.note-card {
  border: 1px solid rgba(255, 179, 44, 0.32);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 179, 44, 0.08);
  align-self: center;
}
.note-card b, .note-card span { display: block; }
.note-card span { color: var(--muted); margin-top: 4px; }
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.contact-meta a, .contact-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  font-weight: 750;
}
.forms-grid { align-items: start; }
.form-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.form { display: grid; gap: 13px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
  font: inherit;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}
textarea { resize: vertical; min-height: 118px; }
.status {
  min-height: 22px;
  color: var(--success);
  font-weight: 800;
  font-size: 14px;
}
.status.error { color: var(--danger); }
.next-steps {
  margin-top: 18px;
  border: 1px solid rgba(255, 179, 44, 0.32);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 179, 44, 0.08);
}
.eyebrow {
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 950;
}
.footer {
  margin-top: 70px;
  padding: 26px 0 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 12px;
  font-size: 14px;
}
.footer a { color: var(--text); font-weight: 750; }
.footer-note { font-size: 12px; max-width: 980px; }

/* Legal pages */
.simple-hero {
  padding: 54px 0 18px;
  max-width: 900px;
}
.prose {
  max-width: 920px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
}
.prose h2 { font-size: 24px; letter-spacing: -0.02em; margin-top: 28px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--accent-3); }

@media (max-width: 1120px) {
  .inner { flex-wrap: wrap; padding: 12px 0; }
  .nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; }
  .theme-image { min-height: 0; }
  .signal-strip { grid-template-columns: repeat(2, 1fr); }
  .signal-strip div:nth-child(2) { border-right: 0; }
  .signal-strip div:nth-child(1), .signal-strip div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .cards-4up, .cards-3up, .intent-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-section, .google-note { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .hero-wrap h1 {
    white-space: normal;
    font-size: clamp(38px, 10vw, 54px);
  }
  .hero-wrap .hero-visual {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 18px 0 16px;
  }
  .hero-wrap .hero-actions,
  .hero-wrap .trust-row {
    flex-wrap: wrap;
  }
  .hero-wrap .trust-row span {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .wrap, .inner { width: min(100% - 22px, var(--max)); }
  .topbar { position: static; }
  .actions { width: 100%; justify-content: space-between; }
  .actions .btn { flex: 1; }
  .hero { padding-top: 22px; }
  h1 { font-size: clamp(38px, 12vw, 56px); }
  .split-head, .control-panel, .planner-card, .grid, .cards, .cards-4up, .cards-3up, .intent-flow { grid-template-columns: 1fr; }
  .signal-strip { grid-template-columns: 1fr; }
  .signal-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-strip div:last-child { border-bottom: 0; }
  .hero-actions .btn, .form-actions .btn, .hero-actions button, .form-actions button { width: 100%; }
  .theme-image { object-fit: contain; }
  .hero-visual { padding: 6px; border-radius: 18px; }
  .hero-visual .zoom-hint { right: 10px; bottom: 10px; font-size: 11px; padding: 6px 8px; }
  .section { padding-top: 52px; }
}
