/* ===================================
   Main Styles — Calculx (Lovable prototype parity)
   =================================== */

/* ===== Layout ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding: var(--section-padding);
}

.section-alt {
  background: var(--secondary);
}

.section-header {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 4rem;
}

.section-header > .section-subtitle {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-header-with-cta {
  margin-bottom: 0;
}

.section-header-with-cta .btn {
  margin-top: 1.75rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

.text-left { text-align: left; }
.text-center { text-align: center; }
.mt-8 { margin-top: 2rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(252, 252, 253, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.logo-accent {
  color: var(--primary);
}

.nav-main {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foreground);
  border-radius: var(--radius-md);
  transition: color var(--transition-base), background var(--transition-base);
}

.nav-link:hover {
  background: var(--secondary);
}

.nav-link svg {
  opacity: 0.6;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  color: var(--foreground);
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem var(--container-pad) 1.5rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--section-padding);
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(at 50% 0%, rgba(36, 97, 219, 0.06), transparent 70%);
  pointer-events: none;
}

.hero-container {
  position: relative;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  border: 0.8px solid var(--primary-light-2);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-badge svg {
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-grad-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

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

.hero-image {
  margin-top: 4rem;
}

.hero-image-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--radius-2xl);
  border: 0.8px solid var(--border);
  background: linear-gradient(135deg, rgba(36, 97, 219, 0.04), rgba(84, 84, 212, 0.04));
  padding: 1rem;
  box-shadow: 0 24px 48px -12px rgba(20, 24, 31, 0.1);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-2xl) - 6px);
}

/* ===== Trust Bar ===== */
.trust-bar {
  padding: 3rem 0;
  background: rgba(243, 245, 247, 0.3);
}

.trust-bar-inner {
  text-align: center;
}

.trust-bar-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.trust-bar-text strong {
  color: var(--foreground);
  font-weight: 600;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  opacity: 0.5;
}

.trust-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

/* ===== Benefits Grid ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  padding: 2rem;
  border-radius: var(--radius-2xl);
  border: 0.8px solid var(--border);
  background: var(--card);
  transition: box-shadow var(--transition-slow), transform var(--transition-slow);
}

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

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.benefit-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.benefit-desc {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 0.8px solid var(--border);
  background: var(--card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.feature-icon {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.feature-name {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}

.feature-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

/* ===== Why Different ===== */
.different-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.different-content .section-title {
  text-align: left;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.checklist-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.checklist-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.checklist-item p {
  color: var(--foreground);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.time-savings-card {
  border-radius: var(--radius-2xl);
  border: 0.8px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card-hover);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--secondary);
}

.time-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foreground);
}

.time-values {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.time-old {
  color: var(--muted-foreground);
  text-decoration: line-through;
}

.time-new {
  font-weight: 600;
  color: var(--accent);
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  padding: 1.75rem;
  border-radius: var(--radius-2xl);
  border: 0.8px solid var(--border);
  background: var(--card);
}

.stars {
  display: flex;
  gap: 0.125rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.testimonial-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* ===== Security ===== */
.security-icon-large {
  color: var(--primary);
  display: block;
  margin: 0 auto 1.25rem;
}

.security-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 0.8px solid var(--border);
  background: var(--card);
  font-size: 0.875rem;
  color: var(--foreground);
}

.security-badge svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== Comparison Table ===== */
.compare-table-wrapper {
  border-radius: var(--radius-2xl);
  border: 0.8px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card-hover);
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.compare-table th {
  padding: 1.25rem 1rem;
  text-align: center;
  vertical-align: top;
  background: var(--secondary);
  font-weight: 500;
}

.compare-feature-col {
  text-align: left !important;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  background: var(--card) !important;
  font-weight: 500;
}

.compare-highlight {
  background: rgba(36, 97, 219, 0.06) !important;
}

.compare-brand {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--foreground);
}

th.compare-highlight .compare-brand {
  color: var(--primary);
}

.compare-tagline {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-weight: 400;
  line-height: 1.4;
}

.compare-table tbody td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--foreground);
}

.compare-table tbody td:first-child {
  text-align: left;
  font-weight: 400;
  color: var(--foreground);
}

.compare-category td {
  padding: 0.875rem 1rem !important;
  font-weight: 700 !important;
  background: var(--secondary) !important;
  font-size: 0.9375rem !important;
  text-align: left !important;
  color: var(--foreground) !important;
  border-top: 1px solid var(--border);
}

.badge-included,
.badge-limited,
.badge-missing {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.badge-included {
  background: hsl(165, 60%, 92%);
  color: hsl(165, 70%, 28%);
}

.badge-included::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23198463' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
}

.badge-limited {
  background: var(--secondary);
  color: var(--muted-foreground);
}

.badge-limited::before {
  content: '—';
  margin-right: 0.125rem;
}

.badge-missing {
  background: var(--secondary);
  color: var(--muted-foreground);
}

/* Compare CTA below table */
.compare-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.compare-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* ===== CTA Banner ===== */
.section-cta-banner {
  padding: 0 0 7rem;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #2461DB, #5454D4);
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-banner-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-banner-text {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--foreground);
  color: #fff;
}

.footer-inner {
  padding: 4rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-logo {
  color: #fff;
}

.footer-brand-desc {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links li + li {
  margin-top: 0.625rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-social-links {
  display: flex;
  gap: 1.5rem;
}

.footer-social {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-base);
}

.footer-social:hover {
  color: #fff;
}
