/* ============================================
   PHASE 3 — Sections 7-11 + modals
   ============================================ */

/* ============================================
   7 — Big dashboard demo
   ============================================ */

.dash-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.dash-frame {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 32px 64px -32px rgba(11, 11, 15, 0.18);
  position: relative;
  z-index: 1;
}

.dash-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--border);
  background: #fcfcfb;
}

.dash-chrome .lights {
  display: flex;
  gap: 6px;
}

.dash-chrome .light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
}

.dash-chrome .url {
  flex: 1;
  margin: 0 16px;
  text-align: center;
  background: var(--bg-warm);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
  max-width: 280px;
  margin-left: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.dash-chrome .bell {
  position: relative;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
}

.dash-chrome .bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  font-variant-numeric: tabular-nums;
}

.dash-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 540px;
}

/* Sidebar */
.dash-sidebar {
  border-right: 0.5px solid var(--border);
  padding: 16px 12px;
  background: #faf9f5;
}

.dash-sidebar-logo {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--ink-dark);
  padding: 4px 8px 12px;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 16px;
}

.dash-sidebar-section {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  font-weight: 500;
  padding: 12px 8px 6px;
}

.dash-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--text);
  border-radius: 6px;
  margin-bottom: 2px;
  cursor: default;
}

.dash-sidebar-item:hover {
  background: rgba(0,0,0,0.03);
}

.dash-sidebar-item.active {
  background: var(--bg-warm);
  color: var(--ink-dark);
  font-weight: 500;
}

.dash-sidebar-item.active svg { color: var(--accent); }

.dash-sidebar-item .si-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.dash-sidebar-item .si-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 1px 7px;
  border-radius: var(--r-pill);
}

/* Main */
.dash-main {
  padding: 24px 28px 28px;
  min-width: 0;
  background: #fff;
}

.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.dash-page-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink-dark);
}

.dash-integrations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-integration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text);
  border: 0.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  background: #fff;
}

.dash-integration .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.dash-kpi {
  border: 0.5px solid var(--border);
  border-radius: var(--r-small);
  padding: 16px 18px;
  background: #fff;
}

.dash-kpi .lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.dash-kpi .val {
  font-size: 28px;
  font-weight: 500;
  color: var(--ink-dark);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.dash-kpi .sfx {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 4px;
  font-weight: 400;
}

@media (max-width: 1023px) {
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .dash-kpis { grid-template-columns: 1fr; }
}

/* Orders table */
.dash-section-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dark);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}

.dash-orders {
  border: 0.5px solid var(--border);
  border-radius: var(--r-small);
  overflow: hidden;
  font-size: 13px;
}

.dash-orders-head,
.dash-orders-row {
  display: grid;
  grid-template-columns: 80px 140px 1fr 110px 90px 100px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}

.dash-orders-head {
  background: #fafaf9;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 0.5px solid var(--border);
}

.dash-orders-row {
  border-bottom: 0.5px solid var(--border);
  transition: background 200ms;
}

.dash-orders-row:last-child { border-bottom: none; }

.dash-orders-row .ord-id {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-size: 12px;
}

.dash-orders-row .ord-customer { color: var(--ink-dark); font-weight: 500; }
.dash-orders-row .ord-product { color: var(--text); }

.dash-orders-row .ord-delivery {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-warm);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-weight: 500;
  width: fit-content;
}

.dash-orders-row .ord-sum {
  font-variant-numeric: tabular-nums;
  color: var(--ink-dark);
  font-weight: 500;
  text-align: right;
}

.dash-orders-row .ord-status {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--bg-warm);
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  width: fit-content;
}

.dash-orders-row .ord-status.new {
  background: #E6F1FB;
  color: var(--accent);
}

.dash-orders-row.is-new {
  background: #E6F1FB;
}

/* Horizontal scroll on narrow */
@media (max-width: 880px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-orders { overflow-x: auto; }
  .dash-orders-head,
  .dash-orders-row { min-width: 700px; }
}

/* Callouts */
.dash-callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-dark);
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms var(--ease-spring), transform 600ms var(--ease-spring);
  pointer-events: none;
}

.section.is-in .dash-callout.delay-1 { opacity: 1; transform: translateY(0); transition-delay: 400ms; }
.section.is-in .dash-callout.delay-2 { opacity: 1; transform: translateY(0); transition-delay: 700ms; }
.section.is-in .dash-callout.delay-3 { opacity: 1; transform: translateY(0); transition-delay: 1000ms; }

.dash-callout .line {
  position: relative;
  height: 1px;
  background: var(--text-muted);
}

.dash-callout .line::before,
.dash-callout .line::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  top: -2.5px;
}

.dash-callout .line::before { left: -3px; }
.dash-callout .line::after { right: -3px; }

.dash-callout .text {
  background: #fff;
  padding: 4px 8px;
}

.dash-callout-1 {
  left: -160px;
  top: 220px;
  width: 180px;
}
.dash-callout-1 .line { flex: 1; }

.dash-callout-2 {
  right: -180px;
  top: 410px;
  width: 220px;
}
.dash-callout-2 .line { flex: 1; }

.dash-callout-3 {
  right: -130px;
  top: 16px;
  width: 160px;
}
.dash-callout-3 .line { flex: 1; }

@media (max-width: 1480px) {
  .dash-callout { display: none; }
}

/* ============================================
   8 — Pricing
   ============================================ */

.pricing-banner {
  max-width: 720px;
  margin: 0 auto 48px;
  background: var(--accent);
  border-radius: var(--r-card);
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.pricing-banner-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 1023px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

.pricing-card {
  position: relative;
  background: #161620;
  border: 0.5px solid var(--border-dark);
  border-radius: var(--r-card);
  padding: 32px 28px 28px;
  color: #F5F4EE;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pricing-card.hit {
  border: 2px solid var(--accent);
  padding-top: 32px;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.pricing-title {
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  margin: 0;
  letter-spacing: -0.005em;
}

.pricing-tagline {
  font-size: 14px;
  color: #B5B5B5;
  margin: -10px 0 0;
}

.pricing-price {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 6px;
}

.pricing-price .old {
  font-size: 14px;
  color: #6e6e6e;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.pricing-price .now {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.pricing-price .one-time-note {
  font-size: 12px;
  color: #B5B5B5;
  margin-top: 2px;
}

.pricing-monthly {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 0;
}

.pricing-monthly .amt {
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.pricing-monthly .per {
  font-size: 14px;
  color: #B5B5B5;
}

.pricing-divider {
  height: 0.5px;
  background: var(--border-dark);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #E8E6DF;
}

.pricing-features li .marker {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 200ms, color 200ms, border-color 200ms;
  border: 1px solid #FAFAF7;
  background: transparent;
  color: #FAFAF7;
  margin-top: 8px;
}

.pricing-btn:hover {
  background: #FAFAF7;
  color: var(--ink-dark);
}

.pricing-card.hit .pricing-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pricing-card.hit .pricing-btn:hover {
  background: #1F3DB8;
  border-color: #1F3DB8;
  color: #fff;
}

.pricing-footnote {
  font-size: 12px;
  color: #888;
  margin: 0;
  line-height: 1.55;
}

.pricing-compare {
  text-align: center;
  margin-top: 40px;
}

.pricing-compare a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

/* ============================================
   9 — FAQ
   ============================================ */

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  border-top: 0.5px solid var(--border);
}

.faq-item {
  border-bottom: 0.5px solid var(--border);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  width: 100%;
  text-align: left;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-dark);
  background: transparent;
  letter-spacing: -0.005em;
  font-family: inherit;
  cursor: pointer;
}

.faq-q .marker {
  color: var(--text-muted);
  transition: transform 250ms var(--ease-spring), color 200ms;
  flex-shrink: 0;
}

.faq-item.open .faq-q .marker {
  color: var(--accent);
  transform: rotate(180deg);
}

.faq-a-wrap {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 350ms cubic-bezier(.16,1,.3,1), opacity 250ms ease;
}

.faq-item.open .faq-a-wrap {
  max-height: 360px;
  opacity: 1;
}

.faq-a {
  padding: 0 0 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 720px;
}

/* ============================================
   10 — Final CTA
   ============================================ */

.final-cta {
  padding: 140px 0;
  text-align: center;
}

.final-cta .eyebrow {
  color: var(--accent);
  margin-bottom: 20px;
}

.final-cta-title {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.0;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 auto 24px;
  max-width: 900px;
  text-wrap: balance;
}

.final-cta-sub {
  font-size: 20px;
  line-height: 1.5;
  color: #B5B5B5;
  max-width: 600px;
  margin: 0 auto 40px;
}

.final-cta .btn {
  padding: 18px 36px;
  font-size: 18px;
}

.final-cta-foot {
  font-size: 14px;
  color: #B5B5B5;
  margin-top: 24px;
}

.final-cta-foot a {
  color: #F5F4EE;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 0.5px;
}

@media (max-width: 768px) {
  .final-cta { padding: 80px 0; }
}

/* ============================================
   11 — Footer
   ============================================ */

.footer {
  background: var(--ink-dark);
  color: #B5B5B5;
  padding: 80px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

@media (max-width: 1023px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 16px; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-brand-logo {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: #F5F4EE;
  margin-bottom: 16px;
}

.footer-brand-logo .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #F5F4EE;
  margin: 0 5px;
  transform: translateY(-3px);
}

.footer-tagline {
  font-size: 15px;
  color: #B5B5B5;
  margin: 0 0 24px;
  max-width: 280px;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6e6e6e;
  background: transparent;
  border: 0.5px solid var(--border-dark);
  transition: color 180ms, border-color 180ms, background 180ms;
}

.footer-social a:hover {
  color: #F5F4EE;
  border-color: #444;
  background: #161620;
}

.footer-col-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
  color: #6e6e6e;
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: #B5B5B5;
  transition: color 180ms;
}

.footer-col a:hover { color: #F5F4EE; }

.footer-bottom {
  border-top: 0.5px solid var(--border-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: #6e6e6e;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .footer-bottom { justify-content: flex-start; }
}

/* ============================================
   Sticky bottom CTA (mobile only)
   ============================================ */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--accent);
  color: #fff;
  padding: 14px 16px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: inherit;
  transform: translateY(100%);
  transition: transform 250ms var(--ease-spring);
}

.sticky-cta.show { transform: translateY(0); }

@media (max-width: 768px) {
  .sticky-cta { display: inline-flex; }
}

body.has-sticky-cta {
  padding-bottom: 64px;
}

/* ============================================
   Modal
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 15, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: var(--r-card);
  padding: 32px;
  position: relative;
  transform: scale(0.96);
  transition: transform 280ms var(--ease-spring);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.modal-overlay.show .modal-card { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 180ms, background 180ms;
}

.modal-close:hover {
  color: var(--ink-dark);
  background: var(--bg-warm);
}

.modal-card h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink-dark);
}

.modal-card .modal-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin: 8px 0 24px;
  line-height: 1.5;
}

.modal-field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-field label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.modal-field input,
.modal-field select {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 0.5px solid var(--border);
  border-radius: var(--r-small);
  background: #fff;
  color: var(--text);
  transition: border-color 200ms;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}

.modal-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236E6E6E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.modal-field input:focus,
.modal-field select:focus {
  outline: none;
  border-color: var(--accent);
}

.modal-field .hint {
  font-size: 12px;
  color: var(--text-muted);
}

.modal-field input.invalid,
.modal-field select.invalid {
  border-color: var(--danger);
}

.modal-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
  transition: background 180ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-submit:hover { background: var(--accent-hover); }

.modal-disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.4;
}

.modal-success {
  text-align: center;
  padding: 16px 0;
}

.modal-success .check-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-success h3 { font-size: 28px; margin-bottom: 12px; }
.modal-success p { font-size: 15px; color: var(--text-muted); max-width: 340px; margin: 0 auto 24px; line-height: 1.5; }

.modal-success .btn { width: 100%; max-width: 240px; margin: 0 auto; }

/* Exit popup specific */
.exit-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.exit-actions .btn { flex: 1; }
