/* PowerBiz Home — page-specific styles */

/* =================== HERO common =================== */
.hero { padding-top: calc(var(--section-pad) * 0.8); padding-bottom: var(--section-pad); position: relative; overflow: hidden; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Variant switching */
.hero[data-variant] { display: none; }
:root[data-hero-variant="split"] .hero[data-variant="split"],
:root[data-hero-variant="overlay"] .hero[data-variant="overlay"],
:root[data-hero-variant="canvas"] .hero[data-variant="canvas"] { display: block; }
/* Fallback if attr not set */
:root:not([data-hero-variant]) .hero[data-variant="split"] { display: block; }

.hero[hidden] { display: none; }
:root[data-hero-variant="split"] .hero[data-variant="split"][hidden],
:root[data-hero-variant="overlay"] .hero[data-variant="overlay"][hidden],
:root[data-hero-variant="canvas"] .hero[data-variant="canvas"][hidden] { display: block; }

/* =================== HERO SPLIT =================== */
.hero-split {
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(75, 191, 236, 0.10), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(238, 139, 61, 0.08), transparent 70%),
    var(--bg);
}
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  align-items: center;
  gap: 56px;
}
.hero-copy { max-width: 560px; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lede { margin-bottom: 32px; }
.hero-ctas { margin-bottom: 36px; }
.hero-trust { display: flex; align-items: center; gap: 14px; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars span {
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 2px solid var(--bg);
  margin-left: -8px;
}
.hero-trust .avatars span:first-child { margin-left: 0; }
.hero-trust p { font-size: 13.5px; color: var(--ink-muted); line-height: 1.4; }
.hero-trust strong { color: var(--ink); font-weight: 700; }

/* Visual side */
.hero-visual {
  position: relative;
  perspective: 1400px;
}

/* Dashboard mockup */
.dashmock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
  transform: rotateY(-3deg) rotateX(2deg);
  transform-origin: left center;
}
.dashmock-side {
  background: var(--bg-alt);
  padding: 18px 14px;
  border-right: 1px solid var(--border);
}
.dashmock-logo { margin-bottom: 22px; padding: 4px; }
.dashmock-logo img { height: 18px; width: auto; }
.dashmock-nav { display: flex; flex-direction: column; gap: 2px; }
.dn-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 600;
}
.dn-item.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }
.dn-item svg { width: 15px; height: 15px; }

.dashmock-main { padding: 22px 24px 24px; min-width: 0; }
.dashmock-topbar { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.topbar-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); font-weight: 700; }
.topbar-title { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--ink); margin-top: 4px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.topbar-actions .chip { font-size: 11.5px; padding: 4px 9px; }
.topbar-btn {
  background: var(--primary); color: white;
  font-size: 12.5px; font-weight: 700;
  padding: 7px 12px; border-radius: var(--r-pill);
}
.dashmock-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.stat {
  background: var(--bg-alt);
  border-radius: var(--r-md);
  padding: 12px 14px;
  border: 1px solid var(--border);
}
.stat-label { font-size: 11px; color: var(--ink-muted); font-weight: 600; }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink); margin-top: 4px; letter-spacing: -0.02em; }
.stat-delta { font-size: 11px; font-weight: 700; margin-top: 2px; }
.stat-delta.up { color: #1F8A5B; }

.dashmock-chart {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px 4px;
  margin-bottom: 12px;
}
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.chart-title { font-weight: 700; font-size: 13px; color: var(--ink); }
.chart-sub { font-size: 11px; color: var(--ink-muted); margin-top: 2px; }
.chart-legend { display: flex; gap: 12px; font-size: 11px; color: var(--ink-muted); }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.chart-svg { width: 100%; height: 100px; }

.dashmock-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.dm-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.dm-card-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.dm-card-head .muted { color: var(--ink-muted); font-weight: 600; }
.dm-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.dm-list li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.dm-list li i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.dm-list li i.d1 { background: var(--orange); }
.dm-list li i.d2 { background: var(--blue); }
.dm-list li i.d3 { background: #BDA8E0; }
.dm-list li span { flex: 1; }
.dm-list li b { font-size: 11.5px; color: #1F8A5B; font-weight: 700; }

.ab-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; }
.ab-row span { font-weight: 700; width: 14px; color: var(--ink-muted); }
.ab-row .bar { flex: 1; height: 8px; background: var(--surface); border-radius: 999px; border: 1px solid var(--border); overflow: hidden; }
.ab-row .bar i { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.ab-row .bar.b2 i { background: var(--blue); }
.ab-row b { font-size: 11.5px; color: var(--ink); font-weight: 700; min-width: 38px; text-align: right; }
.ab-winner { font-size: 11.5px; color: #1F8A5B; font-weight: 700; margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--border-strong); }

/* Floating popup card */
.float-popup {
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 250px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop), var(--shadow-md);
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  transform: rotate(2deg);
}
.fp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.fp-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--primary-700); background: var(--primary-50); padding: 3px 8px; border-radius: 999px; }
.fp-x { color: var(--ink-muted); font-size: 12px; cursor: pointer; }
.fp-title { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.fp-sub { font-size: 12.5px; color: var(--ink-muted); margin-bottom: 12px; line-height: 1.4; }
.fp-btn {
  width: 100%;
  background: var(--primary); color: white;
  border: none;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-body);
}

/* =================== HERO OVERLAY =================== */
.hero-overlay {
  background:
    radial-gradient(50% 50% at 50% 0%, rgba(238, 139, 61, 0.08), transparent 70%),
    var(--bg);
}
.hero-overlay .eyebrow { display: inline-flex; }
.overlay-stage {
  position: relative;
  margin-top: 56px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.overlay-browser .body.fakesite { min-height: 460px; padding: 0; background: var(--surface); }
.fs-header {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
}
.fs-nav { display: flex; gap: 14px; flex: 1; margin-left: 24px; }
.fs-nav span {
  width: 56px; height: 10px;
  background: var(--bg-alt);
  border-radius: 999px;
}
.fs-cart {
  width: 32px; height: 32px;
  background: var(--bg-alt);
  border-radius: 999px;
}
.fs-product {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  padding: 32px;
}
.fs-buy {
  margin-top: 22px;
  padding: 14px 22px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: var(--r-pill);
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}
.overlay-popup {
  position: absolute;
  right: 32px; bottom: 32px;
  width: 290px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop), var(--shadow-md);
  padding: 22px;
  border: 1px solid color-mix(in oklab, var(--primary) 30%, var(--border));
  z-index: 2;
}
.op-eyebrow { font-size: 10.5px; letter-spacing: 0.1em; color: var(--primary-700); font-weight: 800; }
.overlay-popup h3 { font-family: var(--font-display); font-size: 20px; margin: 10px 0 6px; color: var(--ink); }
.overlay-popup p { font-size: 13px; color: var(--ink-muted); margin-bottom: 14px; }
.overlay-popup button {
  width: 100%; padding: 11px 16px; background: var(--primary); color: white;
  border: none; border-radius: var(--r-pill); font-weight: 700; font-size: 13.5px; cursor: pointer;
  font-family: var(--font-body);
}
.overlay-toast {
  position: absolute;
  left: 20px; top: 90px;
  display: flex; gap: 10px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 10px 14px 10px 10px;
  border-radius: var(--r-pill);
  z-index: 2;
}
.overlay-toast i { width: 28px; height: 28px; border-radius: 999px; background: linear-gradient(135deg, var(--blue), var(--orange)); display: block; }
.overlay-toast strong { display: block; font-size: 12.5px; color: var(--ink); }
.overlay-toast span { display: block; font-size: 11px; color: var(--ink-muted); }

.overlay-tags { display: flex; gap: 8px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.tagchip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--ink-2);
}

/* =================== HERO CANVAS =================== */
.hero-canvas {
  background: var(--bg);
  padding-bottom: 0;
}
.canvas-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 32px 48px;
  align-items: end;
  min-height: 70vh;
  padding-bottom: 56px;
  position: relative;
}
.canvas-meta { padding-bottom: 24px; }
.canvas-kicker {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  line-height: 1.3;
  margin-top: 24px;
  font-weight: 700;
  max-width: 24ch;
}
.canvas-headline {
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 900;
  text-align: left;
  align-self: end;
}
.canvas-headline .line { display: block; }
.canvas-headline em { font-weight: 900; }
.canvas-aside { padding-bottom: 28px; }
.canvas-aside .lede { font-size: 17px; margin-bottom: 24px; }
.canvas-marquee {
  grid-column: 1 / -1;
  background: var(--ink);
  color: var(--bg);
  margin: 56px calc(-1 * var(--gutter)) 0;
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  border-radius: 0;
}
.marquee-track {
  display: flex;
  gap: 28px;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  animation: marquee 28s linear infinite;
}
.marquee-track i { color: var(--orange); font-style: normal; font-size: 32px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =================== LOGO STRIP =================== */
.logo-strip { padding: 56px 0 32px; background: var(--bg); }
.logo-strip-label {
  text-align: center;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: 28px;
}
.logo-strip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 52px;
  align-items: center;
}
.lg {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-muted);
  opacity: 0.55;
  letter-spacing: -0.02em;
  transition: opacity .2s ease;
}
.lg:hover { opacity: 1; }
.lg span, .lg i { color: var(--primary); font-style: normal; }

/* =================== SECTION HEAD shared =================== */
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 18px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { margin-left: auto; margin-right: auto; }

/* =================== FEATURES =================== */
.features-section { background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* =================== HOW IT WORKS =================== */
.how-section { background: var(--bg-alt); }
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.how-head .eyebrow { margin-bottom: 22px; }
.how-head h2 { margin-bottom: 18px; }
.how-head code { font-family: var(--font-mono); background: var(--surface); padding: 2px 7px; border-radius: 6px; font-size: 0.85em; border: 1px solid var(--border); }

.how-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.how-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  align-items: start;
}
.step-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.04em;
}
.step-body h3 { font-size: 22px; margin-bottom: 8px; }
.step-body p { color: var(--ink-muted); font-size: 15px; line-height: 1.55; margin-bottom: 16px; }
.step-body code { font-family: var(--font-mono); background: var(--bg-alt); padding: 1px 6px; border-radius: 5px; font-size: 0.85em; }

.codeblock {
  background: #1F1B17;
  color: #E4D9C7;
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
}
.codeblock pre { margin: 0; white-space: pre; }
.codeblock .cm { color: #7A6F5E; }
.codeblock .kw { color: #F4A893; }
.codeblock .at { color: #F5D58A; }
.codeblock .st { color: #A5D5C9; }

.step-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.step-chips code { font-family: var(--font-mono); font-size: 11.5px; background: var(--bg-alt); padding: 0 4px; border-radius: 4px; }

.step-metric {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-alt);
  border-radius: var(--r-md);
  padding: 14px 18px;
}
.sm-label { font-size: 12px; color: var(--ink-muted); font-weight: 600; }
.sm-val { font-family: var(--font-display); font-size: 28px; font-weight: 900; color: var(--primary); letter-spacing: -0.02em; margin-top: 2px; }

/* =================== METRICS =================== */
.metrics-section {
  background: var(--bg);
  padding-top: calc(var(--section-pad) * 0.6);
  padding-bottom: calc(var(--section-pad) * 0.6);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metric {
  padding: 36px 24px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.metric:last-child { border-right: none; }
.metric-value {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}
.metric-label { font-size: 14px; color: var(--ink-muted); line-height: 1.5; max-width: 28ch; }
.metric-label code { font-family: var(--font-mono); font-size: 12.5px; background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; }

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .hero-split-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 24px; max-width: 720px; }
  .dashmock, .float-popup { display: none; }
  .hero-preview-mobile { display: block; }
  .canvas-grid { grid-template-columns: 1fr; gap: 24px; min-height: auto; padding-bottom: 32px; }
  .canvas-headline { font-size: clamp(54px, 14vw, 110px); }
  .how-grid { grid-template-columns: 1fr; gap: 36px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { border-right: none; border-bottom: 1px solid var(--border); }
  .metric:last-child { border-bottom: none; }
  .how-step { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .step-num { font-size: 36px; }
  .fs-product { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .cta-card { padding: 56px 24px; }
  .float-popup { display: none; }
  .overlay-toast { display: none; }
  .overlay-popup { position: relative; right: auto; bottom: auto; width: auto; margin: 18px; }
}
