/* website/style.css — Peak Solutions Branding */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;800&display=swap');

:root {
  --primary:       #2563EB;
  --primary-hover: #1D4ED8;
  --secondary:     #0F172A;
  --accent:        #38BDF8;
  --slate-50:      #F8FAFC;
  --slate-200:     #E2E8F0;
  --slate-400:     #94A3B8;
  --slate-600:     #475569;
  --slate-800:     #1E293B;
  --white:         #FFFFFF;
  --grad-main:     linear-gradient(135deg, #2563EB, #38BDF8);
  --glass:         rgba(255,255,255,0.7);
  --glass-border:  rgba(255,255,255,0.4);
  --shadow:        0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--secondary);
}

/* ── Layout ────────────────────────────────────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--grad-main);
  color: var(--white);
  box-shadow: 0 10px 25px -5px rgba(37,99,235,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(37,99,235,0.6);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: var(--white);
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
}
.btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.6);
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */

nav {
  height: 80px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248,250,252,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-200);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: 0.05em;
}
.logo img { height: 40px; }

/* ── Nav Links ─────────────────────────────────────────────────────────────── */

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--slate-600);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links .nav-cta {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

a.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(248,250,252,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links .nav-cta {
    width: 100%;
    text-align: center;
  }
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */

.hero {
  padding: 7rem 0 9rem;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(56,189,248,0.12), transparent 60%),
    radial-gradient(circle at bottom left, rgba(37,99,235,0.07), transparent 60%);
}

.badge {
  display: inline-block;
  background: rgba(37,99,235,0.1);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(37,99,235,0.2);
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #0F172A 40%, #2563EB);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--slate-600);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 1.25rem;
  color: var(--slate-400);
  font-size: 0.9rem;
}

/* ── Stats ──────────────────────────────────────────────────────────────────── */

.stats {
  padding: 4rem 0;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--slate-600);
  font-size: 0.95rem;
}

/* ── Scrolling Reviews ──────────────────────────────────────────────────────── */

.reviews-section {
  padding: 4rem 0;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  overflow: hidden;
}

.reviews-header {
  text-align: center;
  margin-bottom: 2rem;
}

.reviews-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reviews-wrapper {
  overflow: hidden;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.reviews-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll-reviews 40s linear infinite;
}

.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-reviews {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.review-card {
  flex-shrink: 0;
  width: 340px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.review-card p {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.65;
  font-style: italic;
}

.review-card p::before { content: '\201C'; }
.review-card p::after  { content: '\201D'; }

.review-card-highlight {
  background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(56,189,248,0.06));
  border-color: rgba(37,99,235,0.2);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-main);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-author strong {
  font-size: 0.9rem;
  color: var(--secondary);
  display: block;
}

.review-author span {
  font-size: 0.8rem;
  color: var(--slate-400);
}

/* ── How It Works ───────────────────────────────────────────────────────────── */

.features {
  padding: 6rem 0;
}

.section-sub {
  text-align: center;
  color: var(--slate-600);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  padding: 2.5rem;
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--slate-200);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
.card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

/* ── What We Score ──────────────────────────────────────────────────────────── */

.dimensions {
  padding: 6rem 0;
  background: var(--secondary);
}

.dimensions h2 {
  color: var(--white);
  text-align: center;
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.dimensions .section-sub {
  color: var(--slate-400);
}

.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.dimension-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: background 0.3s ease;
}
.dimension-card:hover {
  background: rgba(255,255,255,0.08);
}

.dimension-score {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.dimension-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.dimension-card p {
  color: var(--slate-400);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── Pricing ────────────────────────────────────────────────────────────────── */

.pricing {
  padding: 6rem 0;
  background: var(--slate-50);
}

.pricing h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  box-shadow: 0 20px 40px -10px rgba(37,99,235,0.15);
}

.pricing-card-alt {
  background: var(--white);
  border-color: var(--slate-200);
  box-shadow: var(--shadow);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-main);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.pricing-price {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.free-price {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-800);
}
.pricing-features li:last-child { border-bottom: none; }

/* ── Booking / Calendly ─────────────────────────────────────────────────────── */

.booking {
  padding: 6rem 0;
  background: var(--slate-800);
  color: var(--white);
}

.booking h2 {
  color: var(--white);
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.booking p {
  text-align: center;
  color: var(--slate-400);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.calendly-container {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  max-width: 900px;
  margin: 0 auto;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */

footer {
  padding: 3rem 0;
  border-top: 1px solid var(--slate-200);
  text-align: center;
  color: var(--slate-400);
  font-size: 0.9rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--slate-400);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* ── Animations ─────────────────────────────────────────────────────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-up.js-ready { opacity: 0; }
.animate-up.visible { animation: fadeInUp 0.7s ease forwards; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero h1    { font-size: 2.8rem; }
  .hero p     { font-size: 1.1rem; }
  .cta-group  { flex-direction: column; align-items: center; }
  .btn        { width: 100%; max-width: 320px; text-align: center; }
  .dimensions-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid    { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1              { font-size: 2.2rem; }
  .dimensions-grid      { grid-template-columns: 1fr; }
  .stats-grid           { grid-template-columns: 1fr 1fr; }
}

/* ── Sample Audit Preview ───────────────────────────────────────────────────── */

.sample-section {
  padding: 6rem 0;
  background: var(--white);
}

.sample-section h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.sample-audit {
  max-width: 780px;
  margin: 3rem auto 0;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.12);
}

/* Header */
.sample-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  gap: 1.5rem;
}

.sample-header-left h3 {
  font-size: 1.6rem;
  margin: 0.5rem 0 0.25rem;
  color: var(--secondary);
}

.sample-header-left p {
  color: var(--slate-400);
  font-size: 0.9rem;
}

.sample-badge-tier {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sample-badge-tier.critical {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

/* Score ring */
.sample-overall {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.sample-score-ring {
  position: relative;
  width: 110px;
  height: 110px;
}

.sample-score-ring svg {
  width: 110px;
  height: 110px;
}

.sample-score-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1;
}

.sample-score-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #dc2626;
  display: block;
}

.sample-score-out {
  font-size: 0.8rem;
  color: var(--slate-400);
  display: block;
}

.sample-score-sub {
  font-size: 0.8rem;
  color: var(--slate-400);
  margin-top: 0.4rem;
  text-align: center;
}

/* Revenue callout bar */
.sample-revenue-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2.5rem;
  background: rgba(220, 38, 38, 0.05);
  border-bottom: 1px solid rgba(220, 38, 38, 0.12);
  font-size: 0.95rem;
  color: var(--slate-600);
  flex-wrap: wrap;
}

.sample-revenue-bar strong {
  color: #dc2626;
  font-size: 1.1rem;
  white-space: nowrap;
}

/* Dimension score bars */
.sample-dims {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.sample-dims h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.sample-dim-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.dim-label {
  width: 140px;
  font-size: 0.9rem;
  color: var(--slate-600);
  flex-shrink: 0;
}

.dim-track {
  flex: 1;
  height: 8px;
  background: var(--slate-200);
  border-radius: 9999px;
  overflow: hidden;
}

.dim-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s ease;
}

.dim-score {
  width: 36px;
  text-align: right;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.critical-text { color: #dc2626; }
.orange-text   { color: #ea580c; }
.yellow-text   { color: #ca8a04; }

/* Executive summary */
.sample-summary {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.sample-summary h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.sample-summary p {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.7;
}

/* Opportunities */
.sample-opportunities {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.sample-opportunities h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.opp-card {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.opp-card:last-child { margin-bottom: 0; }

.opp-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
  width: 36px;
  line-height: 1.3;
}

.opp-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--secondary);
  margin-bottom: 0.3rem;
}

.opp-card p {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin: 0;
}

/* Footer / upsell */
.sample-footer {
  padding: 1.5rem 2.5rem;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.sample-upsell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--slate-600);
}

.upsell-dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--slate-200);
}

.dot.filled {
  background: var(--grad-main);
}

.upsell-label {
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.9rem;
}

.sample-disclaimer {
  font-size: 0.8rem;
  color: var(--slate-400);
  font-style: italic;
  margin: 0;
}

/* Responsive adjustments for sample audit */
@media (max-width: 768px) {
  .sample-header      { flex-direction: column; align-items: flex-start; }
  .sample-revenue-bar { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .dim-label          { width: 110px; }
  .sample-footer      { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .sample-header,
  .sample-revenue-bar,
  .sample-dims,
  .sample-summary,
  .sample-opportunities,
  .sample-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* ── AI Business OS Modal — Stage 1: Intro Popup ──────────────────────────── */

.os-popup-intro {
  padding: 3rem 2.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated glow blob in background */
.os-popup-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: translateX(-50%) scale(1);   opacity: 1; }
  50%       { transform: translateX(-50%) scale(1.15); opacity: 0.75; }
}

/* Robot / AI icon */
.os-popup-icon {
  position: relative;
  z-index: 1;
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  display: block;
  animation: iconBounce 3s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-6px); }
}

/* Heading */
.os-popup-intro h2 {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  background: linear-gradient(to right, #0F172A 30%, #2563EB);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Body copy */
.os-popup-intro p {
  position: relative;
  z-index: 1;
  color: var(--slate-600);
  font-size: 1rem;
  max-width: 420px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

/* Highlight chips row */
.os-popup-highlights {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.os-popup-highlights span {
  background: rgba(37,99,235,0.08);
  color: var(--primary);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 9999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Action buttons row */
.os-popup-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.os-popup-actions .btn {
  min-width: 220px;
  font-size: 1rem;
}

/* "Maybe later" dismiss link */
.os-popup-dismiss {
  background: none;
  border: none;
  color: var(--slate-400);
  font-size: 0.88rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s ease;
  padding: 0.25rem 0.5rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.os-popup-dismiss:hover {
  color: var(--slate-600);
}

/* Modal slide-in animation */
.os-modal {
  animation: modalSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Responsive */
@media (max-width: 600px) {
  .os-popup-intro { padding: 2.5rem 1.5rem 2rem; }
  .os-popup-intro h2 { font-size: 1.6rem; }
  .os-popup-actions .btn { min-width: unset; width: 100%; max-width: 320px; }
}

/* ── AI Business OS Modal ──────────────────────────────────────────────────── */

.os-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease;
}
.os-modal-overlay.open { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.os-modal {
  background: var(--white);
  border-radius: 24px;
  max-width: 980px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.4);
  position: relative;
}

.os-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--slate-600);
  transition: all 0.2s ease;
  z-index: 2;
}
.os-modal-close:hover {
  background: var(--slate-200);
  color: var(--secondary);
}

.os-modal-header {
  text-align: center;
  padding: 3rem 2.5rem 2rem;
  background: radial-gradient(circle at top right, rgba(56,189,248,0.08), transparent 60%),
              radial-gradient(circle at bottom left, rgba(37,99,235,0.05), transparent 60%);
  border-bottom: 1px solid var(--slate-200);
}
.os-modal-header .badge {
  margin-bottom: 1rem;
}
.os-modal-header h2 {
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  background: linear-gradient(to right, #0F172A 40%, #2563EB);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.os-modal-header p {
  color: var(--slate-600);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Pricing tiers */
.os-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 2.5rem;
}

.os-tier {
  border: 2px solid var(--slate-200);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.os-tier:hover {
  transform: translateY(-3px);
}
.os-tier-pop {
  border-color: var(--primary);
  box-shadow: 0 15px 40px -10px rgba(37,99,235,0.2);
}
.os-tier-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-main);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.os-tier-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.os-tier-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.15rem;
}
.os-tier-freq {
  font-size: 0.8rem;
  color: var(--slate-400);
  margin-bottom: 1.5rem;
}
.os-tier-list {
  list-style: none;
  margin-bottom: 1.75rem;
  flex: 1;
}
.os-tier-list li {
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--slate-600);
  border-bottom: 1px solid var(--slate-200);
  line-height: 1.5;
}
.os-tier-list li:last-child { border-bottom: none; }

.os-tier .btn {
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.85rem 1.5rem;
}

/* Modal footer */
.os-modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem 2.5rem;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-radius: 0 0 24px 24px;
}
.os-modal-footer span {
  font-size: 0.82rem;
  color: var(--slate-400);
}

/* Floating trigger button */
.os-float-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 8000;
  background: var(--grad-main);
  color: var(--white);
  border: none;
  border-radius: 9999px;
  padding: 0.9rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 30px -5px rgba(37,99,235,0.5);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: pulseFloat 3s ease-in-out infinite;
}
.os-float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -5px rgba(37,99,235,0.65);
}

/* Floating SMB App button on the left */
.smb-float-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 8000;
  background: linear-gradient(135deg, #10b981, #059669);
  color: var(--white);
  border: none;
  border-radius: 9999px;
  padding: 0.9rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.5);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  animation: pulseFloatGreen 3s ease-in-out infinite;
}
.smb-float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -5px rgba(16, 185, 129, 0.65);
  color: var(--white);
}

@keyframes pulseFloat {
  0%, 100% { box-shadow: 0 10px 30px -5px rgba(37,99,235,0.5); }
  50% { box-shadow: 0 10px 30px -5px rgba(37,99,235,0.5), 0 0 0 8px rgba(37,99,235,0.1); }
}

@keyframes pulseFloatGreen {
  0%, 100% { box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.5); }
  50% { box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.5), 0 0 0 8px rgba(16, 185, 129, 0.1); }
}

@media (max-width: 768px) {
  .os-tiers { grid-template-columns: 1fr; padding: 1.5rem; }
  .os-modal-header h2 { font-size: 1.75rem; }
  .os-modal-header { padding: 2.5rem 1.5rem 1.5rem; }
  .os-float-btn { bottom: 1.25rem; right: 1.25rem; font-size: 0.85rem; padding: 0.75rem 1.25rem; }
  .smb-float-btn { bottom: 1.25rem; left: 1.25rem; font-size: 0.85rem; padding: 0.75rem 1.25rem; }
}

@media (max-width: 580px) {
  .os-float-btn,
  .smb-float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    font-size: 1.35rem;
  }
  .os-float-btn span,
  .smb-float-btn span {
    display: none;
  }
}

/* ── Floating Ava Widget ─────────────────────────────────────────────────── */

.ava-widget-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  cursor: pointer;
  animation: float-bot 3s ease-in-out infinite;
}

.ava-widget-bubble {
  background: white;
  color: #7c3aed;
  padding: 0.75rem 1.25rem;
  border-radius: 20px;
  border-bottom-right-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15), 0 8px 10px -6px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.ava-widget-container:hover .ava-widget-bubble {
  opacity: 1;
  transform: translateY(0);
}

.ava-widget-avatar {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  box-shadow: 0 15px 35px -5px rgba(124, 58, 237, 0.4), 0 0 0 4px rgba(255,255,255,0.2);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ava-widget-container:hover .ava-widget-avatar {
  transform: scale(1.1);
}

@keyframes float-bot {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
  .ava-widget-container {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .ava-widget-avatar {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
}

/* ── Ava Voice Modal Custom Styles ── */
.voice-modal {
  max-width: 500px !important;
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(124, 58, 237, 0.3) !important;
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.25) !important;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.voice-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
}
.voice-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, rgba(124,58,237,0) 70%);
  pointer-events: none;
  z-index: 1;
}
.voice-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #0D9488);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}
.voice-avatar-large.pulse {
  animation: voiceAvatarPulse 1.5s infinite ease-in-out;
}
@keyframes voiceAvatarPulse {
  0% { transform: scale(1); box-shadow: 0 8px 30px rgba(124,58,237,0.4); }
  50% { transform: scale(1.08); box-shadow: 0 8px 45px rgba(124,58,237,0.7), 0 0 0 15px rgba(124,58,237,0.2); }
  100% { transform: scale(1); box-shadow: 0 8px 30px rgba(124,58,237,0.4); }
}
.voice-modal h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.25rem;
  color: white;
}
.voice-subtitle {
  font-size: 0.9rem;
  color: #a78bfa;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.voice-controls {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  z-index: 2;
}
.toggle-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
}
/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #334155;
  transition: .4s;
  border-radius: 20px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #7c3aed;
}
input:checked + .slider:before {
  transform: translateX(20px);
}
.voice-bubble-container {
  width: 100%;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  z-index: 2;
}
.voice-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.5;
  width: 100%;
  max-height: 180px;
  overflow-y: auto;
}
.voice-cta {
  width: 100%;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 20px rgba(124,58,237,0.3);
}
.mic-button-container {
  margin-bottom: 1rem;
  z-index: 2;
}
.mic-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #7c3aed;
  color: white;
  border: none;
  font-size: 1.8rem;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mic-btn:hover {
  transform: scale(1.05);
}
.voice-transcript {
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
  min-height: 2.5em;
  max-width: 90%;
  margin: 0;
}

/* ── Mobile Responsive Overhaul ───────────────────────────────────────────── */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem 1.25rem 2rem;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 999;
  }
  
  .nav-links.open {
    display: flex;
    animation: fadeInDown 0.25s ease-out;
  }

  @keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links a {
    color: #F8FAFC !important;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    transition: background 0.2s ease;
  }
  .nav-links a:hover, .nav-links a.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent) !important;
  }
  .nav-links .nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 0.5rem;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  h1, .hero h1 {
    font-size: clamp(2rem, 7.5vw, 2.75rem) !important;
    line-height: 1.15;
  }

  h2, .section-header h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    line-height: 1.25;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .grid-2, .grid-3, .grid-4, .hero-grid, .services-grid, .pricing-grid,
  .stats-grid, .step-card, .testimonial-grid, .audit-grid, .for-grid, .about-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
  }

  input[type="text"], input[type="email"], input[type="url"], input[type="tel"], select, textarea {
    font-size: 16px !important;
    padding: 0.85rem 1rem;
    min-height: 48px;
    border-radius: 12px;
  }

  .audit-form-card, .vsl-placeholder, iframe {
    max-width: 100% !important;
    width: 100% !important;
  }

  .vsl-play-btn {
    width: 64px;
    height: 64px;
  }
  .vsl-play-btn svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .logo span {
    font-size: 1.1rem;
  }
  .logo img {
    height: 34px;
  }
  nav {
    height: 70px;
  }
  .nav-links {
    top: 70px;
  }
}

