/* Bright Web Studio — shared styles */

:root {
  --indigo-dark: #3730a3;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --indigo-light: #eef2ff;
  --indigo-pale: #f7f7fd;
  --text: #1e1b2e;
  --text-muted: #5b5670;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(79, 70, 229, 0.12);
  --radius: 14px;
  --max-width: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #eceafb;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--indigo-dark);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; align-items: center; }

.nav-links a {
  font-weight: 600;
  color: var(--text);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--indigo);
  border-bottom-color: var(--indigo);
}

.nav-cta {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: none !important;
}

.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, #6d28d9 0%, #4338ca 45%, #312e81 100%);
}

.hero-content { max-width: 640px; padding: 100px 24px; }

.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 18px; }
.hero p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.92); margin: 0 0 32px; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  font-family: inherit;
}

.btn-primary { background: var(--white); color: var(--indigo-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.18); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-solid { background: linear-gradient(135deg, var(--indigo), var(--violet)); color: var(--white); }
.btn-solid:hover { filter: brightness(1.08); }
.btn-full { width: 100%; text-align: center; }

section { padding: 80px 0; }
.section-alt { background: var(--indigo-pale); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow { background: var(--indigo-light); color: var(--indigo-dark); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 12px; color: var(--indigo-dark); }
.section-head p { color: var(--text-muted); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 28px; border: 1px solid #eeecfb; }

.card .icon {
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--indigo-light); color: var(--indigo-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
}

.card h3 { margin: 0 0 10px; color: var(--text); }
.card p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }

.pricing-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px 28px; border: 1px solid #eeecfb; display: flex; flex-direction: column;
}
.pricing-card.featured { border: 2px solid var(--indigo); position: relative; }
.pricing-card .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff;
  padding: 4px 16px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
}
.pricing-card h3 { margin: 0 0 4px; }
.pricing-card .price { font-size: 2.2rem; font-weight: 800; color: var(--indigo-dark); margin: 10px 0; }
.pricing-card .price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex-grow: 1; }
.pricing-card li { padding: 8px 0; color: var(--text-muted); border-bottom: 1px solid #f1f0fa; font-size: 0.95rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--indigo-dark); }
.stat-label { color: var(--text-muted); font-size: 0.95rem; }

.review-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border: 1px solid #eeecfb; }
.stars { color: #f5b301; letter-spacing: 2px; margin-bottom: 12px; font-size: 1.05rem; }
.review-quote { color: var(--text); margin: 0 0 18px; font-style: italic; }
.review-author { font-weight: 700; color: var(--indigo-dark); }
.review-role { color: var(--text-muted); font-size: 0.9rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info-card { background: var(--indigo-dark); color: var(--white); border-radius: var(--radius); padding: 36px; }
.contact-info-card h3 { margin-top: 0; }
.contact-line { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-line .dot {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

form { display: flex; flex-direction: column; gap: 16px; }
label { font-weight: 600; font-size: 0.92rem; color: var(--text); }

input, textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #ddd9f5;
  font-family: inherit; font-size: 1rem; background: var(--indigo-pale);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--indigo); background: var(--white); }
textarea { min-height: 120px; resize: vertical; }

.placeholder-note {
  background: #fff8e6; border: 1px dashed #e2c46a; color: #7a5c00;
  padding: 10px 14px; border-radius: 10px; font-size: 0.85rem; margin-bottom: 20px;
}

.error-note {
  background: #fdecec; border: 1px solid #f3b8b8; color: #a33a3a;
  padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 16px; display: none;
}

.cta-banner {
  background: linear-gradient(120deg, var(--indigo-dark), var(--violet));
  color: var(--white); border-radius: var(--radius); padding: 48px; text-align: center;
}
.cta-banner h2 { margin: 0 0 12px; }
.cta-banner p { margin: 0 0 26px; color: rgba(255,255,255,0.9); }

.site-footer { background: #1e1b3a; color: rgba(255,255,255,0.85); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 36px; }
.footer-grid h4 { color: var(--white); margin: 0 0 16px; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.85rem; text-align: center; color: rgba(255,255,255,0.6); }

/* Auth pages */
.auth-wrap {
  min-height: calc(100vh - 74px);
  display: flex; align-items: center; justify-content: center;
  background: var(--indigo-pale);
  padding: 60px 20px;
}
.auth-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px; width: 100%; max-width: 420px; border: 1px solid #eeecfb;
}
.auth-card h1 { font-size: 1.6rem; color: var(--indigo-dark); margin: 0 0 6px; }
.auth-card .sub { color: var(--text-muted); margin: 0 0 24px; font-size: 0.95rem; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 0.92rem; color: var(--text-muted); }
.auth-switch a { color: var(--indigo); font-weight: 600; }

/* Dashboard */
.dash-wrap { max-width: 900px; margin: 0 auto; padding: 60px 24px; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.dash-header h1 { margin: 0; color: var(--indigo-dark); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dash-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border: 1px solid #eeecfb; }
.dash-card h3 { margin: 0 0 16px; color: var(--indigo-dark); font-size: 1.05rem; }
.dash-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f1f0fa; font-size: 0.95rem; }
.dash-row:last-child { border-bottom: none; }
.dash-row .label { color: var(--text-muted); }
.dash-row .value { font-weight: 600; }
.status-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.status-pending { background: #fff3cd; color: #8a6d00; }
.status-active { background: #d7f5e3; color: #147a3f; }
.status-past_due { background: #fde2e2; color: #a33a3a; }
.status-canceled { background: #eceaf5; color: #5b5670; }

/* Responsive */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 70px 20px; }
}
