/* ============================================================================
   sustrax-2026.css — Sustrax landing page design system
   Ported from the CRISP/Net Zero Standard `site-src` design system, retokened
   to the Sustrax brand: Poppins typography (live site global font) and the
   logo palette — purple #9662CB, orange #FB9F28, teal #3EAC93 — plus the
   green #298F05 and black button/primary used on sustrax.com.
   ========================================================================== */

:root {
  --dark: #111111;          /* near-black (app primary, footer text, dark buttons) */
  --purple: #9662cb;        /* brand accent (Elementor global accent) */
  --purple-deep: #7a49ad;   /* hover / pressed purple */
  --orange: #fb9f28;        /* brand secondary (headline underline marker) */
  --teal: #3eac93;          /* logo teal */
  --green: #298f05;         /* green used on the live page */
  --gold: #c8a84b;           /* star rating gold, from the carbonfootprint.com review cards */
  --lilac: #f5effc;         /* pale purple tint (chips, alt sections) */
  --pale: #f7f7f9;          /* neutral pale tint */
  --white: #ffffff;
  --text: #1c1c24;
  --muted: #5b5b6b;
  --border: #e3dded;
  --grid-line: rgba(150, 98, 203, 0.06);
  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font-family: 'Poppins', 'Poppins Fallback', sans-serif; background: var(--white); color: var(--text); overflow-x: hidden; }
img { max-width: 100%; }

/* ── NAV ── */
#header-slot { position: sticky; top: 0; z-index: 1000; }
.site-nav { background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--border); padding: 0 40px; display: flex; align-items: center; height: 72px; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 52px; }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── SECTION INDEX NAV ── */
.section-nav { position: fixed; top: 88px; right: 24px; z-index: 500; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: rgba(255,255,255,0.65); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(227,221,237,0.7); border-radius: 18px; box-shadow: 0 12px 40px rgba(28,28,36,0.1); }
.section-nav a { display: flex; align-items: center; gap: 10px; padding: 6px 0; text-decoration: none; color: var(--muted); font-size: 0.78rem; font-weight: 500; white-space: nowrap; transition: color 0.2s; }
.section-nav a:hover, .section-nav a.is-active { color: var(--purple); }
.section-nav-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); flex-shrink: 0; transition: background 0.2s, transform 0.2s; }
.section-nav a:hover .section-nav-dot, .section-nav a.is-active .section-nav-dot { background: var(--purple); transform: scale(1.3); }
@media (max-width: 1100px) {
  .section-nav { display: none; }
}

/* ── BUTTONS ── */
.btn { display: inline-block; padding: 10px 22px; border-radius: 50px; font-family: inherit; font-weight: 500; font-size: 0.85rem; text-decoration: none; cursor: pointer; transition: all 0.2s; border: none; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-deep); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(150,98,203,0.35); }
.btn-outline { border: 1.5px solid var(--dark); color: var(--dark); background: transparent; }
.btn-outline:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.btn-white { background: #fff; color: var(--dark); }
.btn-white:hover { background: var(--lilac); }
.btn-lg { padding: 14px 32px; font-size: 0.95rem; }

/* ── SHARED: grid-line background + section header + tags ── */
.grid-bg { position: relative; overflow: hidden; }
.grid-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
.glow::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 20%, rgba(150,98,203,0.10) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 80% 80%, rgba(251,159,40,0.08) 0%, transparent 60%); pointer-events: none; }

.section-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; }
.section-header { text-align: center; max-width: 660px; margin: 0 auto 48px; position: relative; z-index: 1; }
.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; color: var(--dark); line-height: 1.2; margin-bottom: 14px; }
.section-header h2 em { color: var(--purple); font-style: normal; }
.section-header p { color: var(--muted); font-size: 1rem; line-height: 1.65; font-weight: 400; }

/* ── HERO ── */
.hero { background: var(--lilac); position: relative; padding: 80px 40px 72px; overflow: hidden; }
.hero-layout { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; gap: 44px; position: relative; z-index: 1; }
.hero-copy { text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 600; line-height: 1.12; color: var(--dark); max-width: 640px; margin: 0 auto 22px; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.14em; border-radius: 0.08em; background: var(--orange); z-index: -1; transform-origin: left center; animation: hl-draw 0.9s cubic-bezier(0.6, 0, 0.3, 1) 0.3s backwards; }
@keyframes hl-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hero h1 .hl::after { animation: none; } }
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--muted); max-width: 560px; line-height: 1.65; margin: 0 auto 36px; font-weight: 400; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: -60px; }
.hero .video-frame { width: 100%; }

/* ── VIDEO FRAME ── */
.video-frame { border-radius: 20px; overflow: hidden; background: var(--dark); border: 1px solid var(--border); box-shadow: 0 18px 60px rgba(28,28,36,0.18); }
.video-frame video { display: block; width: 100%; height: auto; }
.video-section { background: var(--lilac); padding: 72px 40px; }
.video-section-layout { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 44px; align-items: center; }
.video-section-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; color: var(--dark); line-height: 1.2; margin-bottom: 14px; }
.video-section-copy h2 em { color: var(--purple); font-style: normal; }
.video-section-text { font-size: 1rem; color: var(--muted); line-height: 1.65; font-weight: 400; }
.video-section-text strong { color: var(--purple); font-weight: 600; }

/* ── COMPLIANCE / LOGO CAROUSEL ── */
.compliance { background: var(--lilac); padding: 72px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.compliance .section-header { margin-bottom: 40px; padding: 0 40px; }
.logo-carousel { position: relative; }
.logo-carousel-viewport { overflow: hidden; cursor: grab; touch-action: pan-y; }
.logo-carousel-viewport.is-dragging { cursor: grabbing; }
.logo-carousel-track { display: flex; align-items: center; width: max-content; will-change: transform; user-select: none; }
.logo-tile { flex: 0 0 auto; padding: 0 28px; }
.logo-tile img { height: 72px; width: auto; max-width: 180px; object-fit: contain; display: block; pointer-events: none; -webkit-user-drag: none; }

/* ── FEATURES ── */
.features { padding: 72px 40px; }
.features-inner { max-width: var(--maxw); margin: 0 auto; }
.img-frame { position: relative; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(28,28,36,0.08); }
.img-frame img { width: 100%; height: auto; display: block; }
.img-frame.natural img { object-fit: contain; }
.feature-compare-wrap { border: 1px solid var(--border); border-radius: 20px; overflow-x: auto; background: #fff; box-shadow: 0 12px 40px rgba(28,28,36,0.08); }
.feature-compare { width: 100%; min-width: 720px; table-layout: fixed; border-collapse: collapse; font-size: 0.86rem; }
.feature-compare thead th { background: #fff; color: var(--text); font-weight: 600; text-align: left; padding: 18px 14px; vertical-align: top; border-bottom: 2px solid var(--border); }
.feature-compare thead th.ph-feature { background: var(--purple-deep); color: #fff; vertical-align: bottom; }
.feature-compare thead th.ph-popular { position: relative; border-bottom: 3px solid var(--purple); }
.feature-compare thead th:not(.ph-feature) { position: relative; padding-top: 30px; }
.ph-title { display: block; font-size: 1.05rem; font-weight: 600; color: var(--purple-deep); line-height: 1.2; }
.ph-strap { display: block; margin: 6px 0 12px; font-size: 0.74rem; font-weight: 400; color: var(--muted); line-height: 1.35; }
.ph-price { display: block; font-size: 1.4rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.ph-per { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.ph-per-accent { color: var(--purple); }
.ph-badge { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); background: #f59e0b; color: #fff; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.ph-cta { display: inline-block; margin-top: 12px; font-size: 0.82rem; font-weight: 600; color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.ph-cta:hover { color: var(--purple-deep); }
.feature-compare thead th:nth-child(4),
.feature-compare tbody td:nth-child(4),
.feature-compare tfoot td:nth-child(4) { background: #f4f3f8; }
.feature-compare tbody th,
.feature-compare tbody td { border-top: 1px solid var(--border); padding: 12px; text-align: left; vertical-align: top; color: var(--text); }
.feature-compare tbody th { font-weight: 500; }
.feature-compare .compare-group th { background: var(--lilac); color: var(--purple-deep); border-top: 1px solid var(--border); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.feature-compare tfoot td { border-top: 1px solid var(--border); padding: 16px 12px; text-align: center; vertical-align: top; }
.feature-compare tfoot th { background: var(--purple-deep); border-top: 1px solid var(--border); }
.compare-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding-top: 8px; padding-bottom: 8px; text-align: center; white-space: normal; line-height: 1.25; }

/* ── PRICING ── */
.pricing { padding: 72px 40px; }
.price-wrap { max-width: 860px; margin: 0 auto; overflow-x: auto; border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: 0 12px 40px rgba(28,28,36,0.08); }
.price-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.92rem; }
.price-table thead th { background: var(--purple); color: #fff; font-weight: 600; text-align: left; padding: 16px 24px; }
.price-table tbody td { padding: 16px 24px; border-top: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.price-table tbody tr:nth-child(even) td { background: var(--lilac); }
.price-table td:first-child { font-weight: 600; color: var(--dark); }
.price-table .price { font-weight: 700; color: var(--purple); white-space: nowrap; }
.price-link { display: inline-flex; align-items: center; gap: 6px; border: none; background: none; padding: 0; font-family: inherit; font-size: inherit; color: var(--purple); font-weight: 500; cursor: pointer; }
.price-link::after { content: '\2192'; transition: transform 0.2s; }
.price-link:hover::after { transform: translateX(4px); }

/* ── SLIDE DECK FORM ── */
.slide-deck-section { background: var(--lilac); padding: 72px 40px; }
.slide-deck-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; position: relative; z-index: 1; }
.slide-deck-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 36px; box-shadow: 0 18px 60px rgba(28,28,36,0.10); }
.slide-deck-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; color: var(--dark); line-height: 1.2; margin-bottom: 14px; }
.slide-deck-copy h2 em { color: var(--purple); font-style: normal; }
.slide-deck-copy p { font-size: 1rem; color: var(--muted); line-height: 1.65; font-weight: 400; margin-bottom: 24px; }
.slide-deck-preview { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(28,28,36,0.1); }

/* ── FORM FIELDS (shared: slide deck + demo modal) ── */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 0.8rem; font-weight: 500; color: var(--text); }
.form-field input, .form-field select, .form-field textarea { font-family: inherit; font-size: 0.9rem; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px; transition: border-color 0.2s, box-shadow 0.2s; width: 100%; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(150,98,203,0.15); }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.form-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--purple); flex-shrink: 0; }
.form-check label { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.form-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.85rem; margin: 0 0 12px; min-height: 1.2em; }
.form-status.is-success { color: var(--green); }
.form-status.is-error { color: #c0392b; }
.form-submit { width: 100%; }
form.is-submitting { opacity: 0.7; pointer-events: none; }

/* ── TESTIMONIALS ── */
.testimonials { padding: 72px 40px; }

/* ── TESTIMONIAL CAROUSEL ── */
.tc { position: relative; max-width: var(--maxw); margin: 0 auto; }
.tc-track { display: flex; align-items: stretch; justify-content: center; gap: 24px; }
.tc-card { position: relative; overflow: hidden; flex: 0 0 auto; height: 400px; background: var(--pale); border: 1px solid var(--border); border-radius: 16px; padding: 30px 34px 36px; text-align: center; display: flex; flex-direction: column; transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease; }
.tc-card--active { width: min(480px, 100%); opacity: 1; transform: scale(1); filter: none; }
.tc-card--prev, .tc-card--next { width: min(280px, 40%); opacity: 0.55; transform: scale(0.86); filter: grayscale(0.5); cursor: pointer; }
.tc-card--prev:hover, .tc-card--next:hover { opacity: 0.8; }
.tc-card-logo-banner { flex-shrink: 0; margin: -30px -34px 22px; padding: 20px 24px; min-height: 86px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.tc-card-logo-img { height: 50px; max-width: 160px; object-fit: contain; transition: transform 0.3s ease; }
.tc-card:hover .tc-card-logo-img { transform: scale(1.12); }
.tc-card-stars { flex-shrink: 0; color: var(--gold); font-size: 0.85rem; letter-spacing: 3px; margin-bottom: 4px; }
.tc-card-quote-wrap { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tc-card-quote { font-size: 0.95rem; font-style: italic; line-height: 1.7; color: var(--text); margin: 0; }
.tc-card-quote::before, .tc-card-quote::after { color: var(--green); font-style: normal; font-weight: 600; font-size: 1.35em; line-height: 0; vertical-align: -0.28em; }
.tc-card-quote::before { content: '\201C'; margin-right: 2px; }
.tc-card-quote::after { content: '\201D'; margin-left: 2px; }
.tc-card--prev .tc-card-quote, .tc-card--next .tc-card-quote { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.85rem; }
.tc-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--dark); font-size: 1.3rem; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 24px rgba(28,28,36,0.12); transition: background 0.2s, color 0.2s; z-index: 5; }
.tc-nav:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.tc-prev { left: -8px; }
.tc-next { right: -8px; }
.tc-dots { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.tc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; padding: 0; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.tc-dot--active { background: var(--purple); transform: scale(1.3); }
@media (prefers-reduced-motion: reduce) { .tc-card { transition: none; } }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--border); padding: 48px 40px 40px; }
.footer-layout { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.footer-logo img { height: 60px; margin-bottom: 18px; display: block; }
.footer-legal { color: var(--muted); font-size: 0.82rem; line-height: 1.8; max-width: 520px; }
.footer-legal a { color: var(--text); font-weight: 500; text-decoration: none; }
.footer-legal a:hover { color: var(--purple); }
.footer-copyright { margin-top: 16px; color: var(--muted); font-size: 0.78rem; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-links-title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); margin-bottom: 2px; }
.footer-link { display: inline-block; border: none; background: none; padding: 0; font-family: inherit; color: var(--text); font-weight: 500; font-size: 0.9rem; text-decoration: none; cursor: pointer; transition: color 0.2s; }
.footer-link:hover { color: var(--purple); }

/* ── DEMO MODAL ── */
.modal-backdrop { position: fixed; inset: 0; z-index: 2000; background: rgba(17,17,17,0.55); display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
.modal-backdrop.is-open { display: flex; }
/* Deep links (/?request-a-demo) dim the page from first paint, before the modal
   fragment loads; demo-modal.js removes the class as the real backdrop takes over. */
html.demo-modal-preopen { overflow: hidden; }
html.demo-modal-preopen body::after { content: ''; position: fixed; inset: 0; z-index: 2000; background: rgba(17,17,17,0.55); }
.modal { background: #fff; border-radius: 20px; padding: 36px; max-width: 560px; width: 100%; position: relative; box-shadow: 0 24px 80px rgba(0,0,0,0.3); animation: modal-in 0.18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px); } }
.modal h2 { font-size: 1.4rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.modal .modal-sub { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 24px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; transition: all 0.2s; }
.modal-close:hover { background: var(--lilac); color: var(--dark); }
body.modal-open { overflow: hidden; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .site-nav { padding: 0 20px; }
  .hero, .video-section, .features, .slide-deck-section, .testimonials, .pricing, .site-footer { padding-left: 20px; padding-right: 20px; }
  .hero-layout { display: flex; flex-direction: column; gap: 28px; }
  .hero h1, .hero-sub { max-width: 100%; }
  .hero-actions { margin-top: -50px; }
  .video-section-layout { grid-template-columns: 1fr; }
  .video-section-copy { text-align: center; }
  .slide-deck-inner { grid-template-columns: 1fr; }
  .slide-deck-copy { text-align: center; }
  .footer-layout { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .footer-links { align-items: center; }
  .footer-legal { margin: 0 auto; }
  .tc-card--prev, .tc-card--next { display: none; }
  .tc-card--active { width: 100%; height: 460px; }
  .tc-prev { left: 0; }
  .tc-next { right: 0; }
}
@media (max-width: 560px) {
  .nav-logo img { height: 42px; }
  .nav-actions .btn { padding: 8px 14px; font-size: 0.78rem; }
  .slide-deck-card, .modal { padding: 26px 20px; }
  .logo-tile { padding: 0 18px; }
  .logo-tile img { height: 56px; }
  .feature-compare { min-width: 640px; font-size: 0.82rem; }
}
