/* ════════════════════════════════════════
   FITHEO — Shared stylesheet · Light theme
   ════════════════════════════════════════ */

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

:root {
  --bg:           #ffffff;
  --surface:      #f6f7f9;
  --surface2:     #ffffff;
  --surface3:     #eef0f3;
  --border:       #e5e7eb;
  --border2:      #d1d5db;
  --text:         #111827;
  --text-muted:   #6b7280;
  --text-faint:   #9ca3af;
  --accent:       #7C5CF6;
  --accent-dim:   rgba(124,92,246,.08);
  --accent-glow:  rgba(124,92,246,.22);
  --accent-light: #6d4ee5;
  --success:      #16a34a;
  --warn:         #d97706;
  --radius:       10px;
  --radius-lg:    14px;
  --radius-xl:    20px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:       0 4px 16px rgba(0,0,0,.07);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

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

/* ── NAV ── */
nav.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}

.nav-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-login {
  font-size: 14px;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-login:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius);
  transition: opacity .2s, transform .15s, background .2s, color .2s, box-shadow .2s;
  cursor: pointer;
  white-space: nowrap;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124,92,246,.3);
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(124,92,246,.4); }

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { color: var(--text); border-color: #9ca3af; background: var(--surface); }

.btn-lg {
  font-size: 16px;
  padding: 13px 28px;
  border-radius: var(--radius);
}

/* ── SECTIONS ── */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--text);
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
}

/* ── HERO ── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(124,92,246,.09) 0%, transparent 65%);
  pointer-events: none;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(38px, 6.5vw, 72px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -2.5px;
  max-width: 860px;
  margin: 0 auto 24px;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 44px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  row-gap: 24px;
}

.trust-item {
  text-align: center;
  padding: 0 36px;
}
.trust-item strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.trust-item span {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.4;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── GRID LAYOUTS ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
  box-shadow: var(--shadow-sm);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
  box-shadow: var(--shadow-sm);
}

/* Light theme: cells in white sections are light gray; cells in gray sections are white */
.grid-cell {
  background: var(--surface);
  padding: 36px 32px;
}
.section-alt .grid-cell { background: var(--surface2); }

.cell-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.cell-icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 18px;
}

.grid-cell h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
  color: var(--text);
}

.grid-cell p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.72;
}

.cell-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  background: rgba(22,163,74,.08);
  border: 1px solid rgba(22,163,74,.2);
  padding: 3px 10px;
  border-radius: 100px;
}

.cell-tag-accent {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}
.section-alt .testimonial { background: var(--surface2); }

.stars {
  color: var(--warn);
  font-size: 12px;
  letter-spacing: 2px;
}

.testimonial blockquote {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.75;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.author-info span {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.4;
}

/* ── PRICING CARDS ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.plan-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.section-alt .plan-card { background: var(--surface2); }

.plan-card.featured {
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(124,92,246,.14);
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

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

.plan-price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 2px;
}
.plan-price sub {
  font-size: 14px;
  font-weight: 500;
  vertical-align: baseline;
  letter-spacing: 0;
}

.plan-period { font-size: 12px; color: var(--text-faint); margin-bottom: 2px; }
.plan-iva { font-size: 11px; color: var(--text-faint); margin-bottom: 4px; }
.plan-usd { font-size: 11px; color: var(--text-faint); margin-bottom: 18px; }

.plan-cta {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface3);
  color: var(--text);
  transition: background .2s, box-shadow .2s;
  margin-bottom: 22px;
  border: 1px solid var(--border);
}
.plan-cta:hover { background: var(--border2); }

.plan-card.featured .plan-cta {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(124,92,246,.3);
}
.plan-card.featured .plan-cta:hover { opacity: .9; }

.plan-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 16px 0 8px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.plan-features li {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.5;
}

.plan-features li::before {
  content: '✓';
  color: var(--success);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 700;
}
.plan-features li.no::before { content: '—'; color: var(--text-faint); font-weight: 400; }
.plan-features li.soon { color: var(--text-faint); }
.plan-features li.soon::before { content: '◎'; color: var(--warn); }

/* Enterprise line */
.enterprise-line {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.enterprise-line p {
  font-size: 14px;
  color: var(--text-muted);
}

.enterprise-line a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  transition: opacity .2s;
}
.enterprise-line a:hover { opacity: .75; }

/* Enterprise card (full) */
.enterprise-card {
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.enterprise-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 6px 0 18px;
}

.enterprise-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.enterprise-link:hover { gap: 10px; }

.enterprise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.enterprise-tag {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
}

/* Pricing banner */
.pricing-banner {
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}
.pricing-banner strong { color: var(--text); }

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
  margin-top: 52px;
  box-shadow: var(--shadow-sm);
}

details { background: var(--bg); }
.section-alt details { background: var(--surface2); }

details summary {
  font-size: 15px;
  font-weight: 600;
  padding: 20px 26px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color .2s;
  color: var(--text);
}
details summary::-webkit-details-marker { display: none; }
details summary:hover { color: var(--accent); }

details summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform .25s;
}
details[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.78;
  padding: 0 26px 22px;
}

/* ── CTA SECTION ── */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(124,92,246,.1) 0%, transparent 65%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 18px;
  color: var(--text);
}

.cta-section p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 38px;
}

.cta-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-faint);
}
.cta-note a { color: var(--accent); }
.cta-note a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer.main-footer {
  background: var(--text);
  border-top: 1px solid var(--border);
  padding: 52px 0 32px;
}

footer.main-footer * { color: rgba(255,255,255,.55); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-logo img { height: 26px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }

.footer-brand p {
  font-size: 13px;
  line-height: 1.65;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,.8) !important;
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 13px;
  transition: color .2s;
}
.footer-col ul a:hover { color: rgba(255,255,255,.8) !important; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 12px; }

.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 12px;
  transition: color .2s;
}
.footer-legal a:hover { color: rgba(255,255,255,.8) !important; }

/* ── COMPARISON TABLE ── */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 52px;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.compare-table thead th {
  background: var(--surface);
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.compare-table thead th.highlight {
  background: var(--accent-dim);
  color: var(--accent);
}

.compare-table tbody tr {
  border-bottom: 1px solid var(--border);
}
.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table tbody tr:nth-child(even) td { background: rgba(0,0,0,.015); }

.compare-table td {
  padding: 14px 20px;
  color: var(--text-muted);
  vertical-align: middle;
}

.compare-table td.feature-name {
  font-weight: 500;
  color: var(--text);
  font-size: 13px;
}

.compare-table td.highlight {
  background: var(--accent-dim);
  color: var(--text);
  font-weight: 600;
}

.check { color: var(--success); font-size: 15px; font-weight: 700; }
.cross { color: var(--text-faint); }
.partial { color: var(--warn); font-size: 12px; }

/* ── BREADCRUMB ── */
.breadcrumb { padding: 20px 0 0; }
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
}
.breadcrumb ol li a { color: var(--text-faint); transition: color .2s; }
.breadcrumb ol li a:hover { color: var(--text-muted); }
.breadcrumb ol li::after { content: '/'; margin-left: 8px; }
.breadcrumb ol li:last-child::after { content: ''; }
.breadcrumb ol li:last-child { color: var(--text-muted); }

/* ── PAGE HERO (subpages) ── */
.page-hero {
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 20% 50%, rgba(124,92,246,.07) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}
.page-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ── INLINE BADGES ── */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  vertical-align: middle;
}
.badge-soon { background: rgba(217,119,6,.12); color: var(--warn); }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 32px;
}
.highlight-box p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.highlight-box strong { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .enterprise-card { grid-template-columns: 1fr; }
  .enterprise-tags { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 56px; }
  .trust-item { padding: 0 20px; }
  .trust-divider { display: none; }
  .section { padding: 64px 0; }
  .compare-table { font-size: 12px; }
  .compare-table td, .compare-table thead th { padding: 10px 12px; }
}
