:root {
  /* Light default (app-like). Dark mode applied via prefers-color-scheme below. */
  --bg: #f7faf8;
  --bg2: #ffffff;
  --card: rgba(15, 24, 20, 0.04);
  --card2: rgba(15, 24, 20, 0.06);
  --text: rgba(6, 12, 10, 0.92);
  --muted: rgba(6, 12, 10, 0.62);
  --border: rgba(15, 24, 20, 0.12);
  --primary: #013220; /* app brand green */
  --primaryText: rgba(255, 255, 255, 0.98);
  --shadow: 0 12px 36px rgba(2, 10, 7, 0.1);
  --ring: rgba(1, 50, 32, 0.22);
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark app-like palette with Tripvio green accent (no gradients) */
    --bg: #050a08;
    --bg2: #07110d;
    --card: rgba(255, 255, 255, 0.04);
    --card2: rgba(255, 255, 255, 0.06);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.68);
    --border: rgba(255, 255, 255, 0.1);
    --primary: #013220;
    --primaryText: rgba(255, 255, 255, 0.95);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    --ring: rgba(120, 255, 200, 0.22);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  background: var(--bg);
  color-scheme: light dark;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, Apple Color Emoji, Segoe UI Emoji;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  z-index: 0;
}

a {
  color: inherit;
}

.bg {
  position: fixed;
  inset: 0;
  background: var(--bg);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

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

.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 10px 26px rgba(2, 10, 7, 0.12);
}

.logoImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.name {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tag {
  color: var(--muted);
  font-size: 13px;
}

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

.link {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.link:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.link.primary {
  color: var(--text);
  border-color: rgba(1, 50, 32, 0.6);
  background: rgba(1, 50, 32, 0.35);
}

.main {
  padding: 18px 0 60px;
}

.hero {
  padding: 30px 0 28px;
}

.heroCopy {
  max-width: 720px;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

.sub {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 22px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}

.pillRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  margin-bottom: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
}

.ctaRow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  box-shadow: none;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.07);
}

.btn.primary {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--primary);
  color: var(--primaryText);
}

.btn.primary:hover {
  filter: brightness(1.1);
}

.btn:focus-visible,
.link:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.btn.ghost {
  background: transparent;
}

.btn.small {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.btnIcon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btnIcon svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.note a {
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 26px rgba(2, 10, 7, 0.06);
}

.cardTitle {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.cardBody {
  color: var(--muted);
}

.section {
  margin-top: 46px;
}

.sectionHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.sectionTitle {
  margin: 0;
  letter-spacing: -0.02em;
  font-size: 22px;
}

.sectionSub {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 720px;
}

.featureGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}

.featureIcon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(1, 50, 32, 0.08);
  color: var(--primary);
}

.featureIcon svg {
  width: 20px;
  height: 20px;
}

.featureTitle {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.featureBody {
  margin: 0;
  color: var(--muted);
}

.featureProof {
  margin-top: 64px;
}

.proofLabel {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

/* Carousel (See it in action) */
.carouselTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.carouselControls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.carouselBtn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.carouselBtn:hover {
  background: var(--card2);
}

.carouselViewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 18px;
}

.carouselViewport:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

.carouselTrack {
  display: flex;
  gap: 18px;
  align-items: stretch;
}

.carouselSlide {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.carouselSlide img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(2, 10, 7, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carouselSlide img:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(2, 10, 7, 0.18);
}

@media (prefers-color-scheme: dark) {
  .carouselSlide {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
  }

  .carouselSlide img {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }

  .carouselSlide img:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  }
}

.howGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.howStep {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
}

.howNum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--muted);
  font-weight: 750;
}

.split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  align-items: start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.storeBadge {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: none;
  background: transparent;
  padding: 0;
}

.storeBadge img {
  height: 40px;
  width: auto;
  display: block;
}

.storeBadge[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.storeNote {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.mutedLink {
  color: var(--muted);
  text-decoration: none;
}

.mutedLink:hover {
  color: var(--text);
  text-decoration: underline;
}

.faq {
  margin-top: 38px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.faq h2 {
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

details {
  border: 1px solid var(--border);
  background: var(--card2);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 0;
}

summary {
  cursor: pointer;
  font-weight: 650;
}

.detailsBody {
  color: var(--muted);
  margin-top: 10px;
}

.footer {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.footerRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footerLinks {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sep {
  opacity: 0.4;
}

@media (max-width: 880px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .nav .link:not(.primary) {
    display: none;
  }

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

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

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

  .heroImage img {
    max-width: 280px;
  }

  .proofGrid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .proofItem img {
    max-width: 240px;
  }
}

/* Sticky header */
.header.sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin: -14px auto 0;
  width: min(1060px, calc(100% - 40px));
  transition: background 0.2s ease, border-color 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  .header.sticky {
    background: rgba(5, 10, 8, 0.85);
  }
}

/* Brand link styling */
.brand {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.8;
}

/* CTA subtext */
.ctaSubtext {
  font-size: 0.85em;
  opacity: 0.85;
  font-weight: 400;
  margin-left: 4px;
}

/* Enhanced button hover states */
.btn {
  transition: all 0.2s ease;
  transform: translateY(0);
}

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

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(1, 50, 32, 0.3);
}

.btn:active {
  transform: translateY(0);
}

/* Feature card hover enhancements */
.feature {
  transition: all 0.2s ease;
  cursor: default;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: var(--card2);
  box-shadow: 0 8px 24px rgba(2, 10, 7, 0.1);
}

@media (prefers-color-scheme: dark) {
  .feature:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

.featureIcon {
  transition: all 0.2s ease;
}

.feature:hover .featureIcon {
  transform: scale(1.05);
  background: rgba(1, 50, 32, 0.15);
}

/* Carousel dots */
.carouselDots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.carouselDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--muted);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  opacity: 0.4;
}

.carouselDot:hover {
  opacity: 0.7;
  transform: scale(1.2);
}

.carouselDot.active {
  opacity: 1;
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* Store note link */
.storeNote a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

.storeNote a:hover {
  opacity: 0.8;
}

/* FAQ expand/collapse icon enhancement */
details summary {
  position: relative;
  padding-right: 24px;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

details[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(0deg);
}

details summary:hover::after {
  color: var(--text);
}

/* Smooth scroll offset for anchor links */
section[id] {
  scroll-margin-top: 80px;
}

/* Mobile menu toggle */
.mobileMenuToggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: -8px 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  z-index: 101;
  transition: background 0.2s ease;
}

.mobileMenuToggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mobileMenuToggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.mobileMenuToggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobileMenuToggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobileMenuToggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero visual */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 30px 0 28px;
}

.heroVisual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.heroVisualPlaceholder {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 12px 40px rgba(2, 10, 7, 0.1);
}

.heroVisualPlaceholder svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Social proof section */
.socialProof {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metricsRow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  text-align: center;
}

.metric {
  padding: 20px;
}

.metricValue {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1;
}

.metricLabel {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

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

.testimonial {
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.testimonial:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(2, 10, 7, 0.1);
}

.testimonialContent {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonialAuthor {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonialName {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.testimonialLocation {
  font-size: 13px;
  color: var(--muted);
}

/* Scroll animations */
[data-animate] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
  opacity: 1;
}

[data-animate="fade-up"] {
  transform: translateY(30px);
}

[data-animate="fade-up"].animate-fade-up {
  transform: translateY(0);
}

[data-animate="fade-in"] {
  transform: scale(0.95);
}

[data-animate="fade-in"].animate-fade-in {
  transform: scale(1);
}

/* Nav overlay (mobile only) */
.navOverlay {
  display: none;
}

/* Mobile responsive */
@media (max-width: 880px) {
  .mobileMenuToggle {
    display: flex;
  }

  .navOverlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  body.menuOpen .navOverlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.menuOpen .header {
    z-index: 101;
    position: relative;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(280px, 85vw);
    max-width: 100%;
    height: 100vh;
    background: var(--bg2);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    gap: 8px;
    transition: right 0.25s ease;
    z-index: 100;
    overflow-y: auto;
  }

  .nav.mobileOpen {
    right: 0;
  }

  .nav .link {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    text-align: left;
  }

  body.menuOpen {
    overflow: hidden;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .heroVisual {
    order: -1;
  }

  .heroVisualPlaceholder {
    max-width: 100%;
  }

  .metricsRow {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .testimonials {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .metricValue {
    font-size: 28px;
  }
}


