/* ==========================================
   IncludU Landing Page — Styles
   ========================================== */

:root {
  --blue: #2563EB;
  --cyan: #06B6D4;
  --green: #10B981;
  --dark: #1E293B;
  --mid: #475569;
  --muted: #64748B;
  --light: #F8FAFC;
  --border: #E2E8F0;
  --white: #FFFFFF;

  --grad: linear-gradient(90deg, var(--blue), var(--cyan));
  --grad-full: linear-gradient(135deg, var(--blue), var(--cyan), var(--green));

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
  --shadow-lg: 0 12px 48px rgba(37, 99, 235, 0.14);

  --font: 'Nunito', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ==========================================
   Layout
   ========================================== */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 100px;
  padding: 14px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: transparent;
}
.btn-ghost:hover { background: rgba(37, 99, 235, 0.06); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: rgba(37, 99, 235, 0.06); }

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }

/* ==========================================
   Nav
   ========================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { display: flex; align-items: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 600;
  color: var(--mid);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: 0.2s;
}

.mobile-menu {
  flex-direction: column;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  gap: 16px;
  display: none;
}
.mobile-menu:not([hidden]) {
  display: flex;
}
.mobile-menu a {
  font-weight: 600;
  color: var(--mid);
  font-size: 1.05rem;
}

/* ==========================================
   Hero
   ========================================== */

.hero {
  padding: 80px 0 64px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, rgba(37,99,235,0.08), rgba(6,182,212,0.08));
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Dashboard mock */
.hero-visual {
  position: relative;
}

.dashboard-mock {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.mock-bar {
  background: #F1F5F9;
  padding: 10px 14px;
  display: flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mock-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mock-score {
  display: flex;
  align-items: center;
  gap: 16px;
}

.score-ring {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.score-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
}

.score-label {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
}

.mock-stats {
  display: flex;
  gap: 16px;
}

.mock-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--light);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  flex: 1;
}

.stat-val {
  font-size: 1.4rem;
  font-weight: 800;
}
.stat-val.green { color: var(--green); }
.stat-val.blue { color: var(--blue); }
.stat-val.cyan { color: var(--cyan); }

.stat-key {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.mock-issues {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-issue {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--mid);
  background: var(--light);
  border-radius: 8px;
  padding: 8px 12px;
}

.issue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mock-issue.critical .issue-dot { background: #EF4444; }
.mock-issue.serious .issue-dot { background: #F97316; }
.mock-issue.moderate .issue-dot { background: #EAB308; }

/* Widget mock */
.widget-mock {
  position: absolute;
  bottom: -16px;
  right: -16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.widget-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.widget-tooltip {
  background: var(--dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ==========================================
   Section shared styles
   ========================================== */

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--muted);
}

/* ==========================================
   Features
   ========================================== */

.features {
  padding: 96px 0;
  background: var(--light);
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--icon-bg);
  color: var(--icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ==========================================
   How it works
   ========================================== */

.how-it-works {
  padding: 96px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: steps;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(100% - 16px);
  width: calc(100% - 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0.25;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  position: relative;
  z-index: 1;
}

.step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================
   Pricing
   ========================================== */

.pricing {
  padding: 96px 0;
  background: var(--light);
}

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

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  position: relative;
  transition: box-shadow 0.2s;
}

.pricing-card:hover { box-shadow: var(--shadow); }

.pricing-card.featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-lg);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.price-amt {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.55;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.plan-features li {
  font-size: 0.9rem;
  color: var(--mid);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--blue);
}

.plan-features li:nth-child(2)::before { background-color: #1D8FD8; }
.plan-features li:nth-child(3)::before { background-color: #0EA5C4; }
.plan-features li:nth-child(4)::before { background-color: #06B6D4; }
.plan-features li:nth-child(5)::before { background-color: #0BCBA8; }
.plan-features li:nth-child(6)::before { background-color: var(--green); }

.pricing-card .btn { width: 100%; }

.pricing-note {
  text-align: center;
  margin-top: 36px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ==========================================
   CTA
   ========================================== */

.cta {
  padding: 96px 0;
  background: linear-gradient(135deg, #EFF6FF 0%, #ECFEFF 50%, #ECFDF5 100%);
}

.cta-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 36px;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--blue); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-text { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { text-align: center; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .features-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 16px; }

  .risk-strip-inner { flex-direction: column; gap: 32px; }
  .risk-divider { width: 60px; height: 1px; }
  .risk-item { padding: 0 16px; }

  .demo-hints { flex-direction: column; align-items: center; }
}

/* ==========================================
   Legal Risk Strip
   ========================================== */

.risk-strip {
  background: #0F172A;
  padding: 40px 0;
}

.risk-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.risk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 48px;
  gap: 8px;
}

.risk-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.risk-label {
  color: #94A3B8;
  font-size: 0.875rem;
  max-width: 180px;
  line-height: 1.4;
}

.risk-divider {
  width: 1px;
  height: 60px;
  background: #1E293B;
  flex-shrink: 0;
}

/* ==========================================
   Live Widget Demo
   ========================================== */

.widget-demo {
  background: var(--light);
  padding: 80px 0;
}

.demo-hints {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.demo-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  box-shadow: var(--shadow);
}

.demo-hint-icon {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  min-width: 20px;
  text-align: center;
}

/* ==========================================
   Reduced motion
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feature-card, .pricing-card { transition: none; }
}

/* ==========================================
   Blog
   ========================================== */

.blog {
  padding: 96px 0;
  background: var(--light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: #EFF6FF;
  padding: 4px 10px;
  border-radius: 20px;
  align-self: flex-start;
}

.blog-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.blog-read {
  margin-left: auto;
}

@media (max-width: 768px) {
  .blog { padding: 64px 0; }
  .blog-grid { grid-template-columns: 1fr; }
}
