/* ========= CSS Variables / Base ========= */
:root {
  --bg: #ffffff;
  --text: #0f172a; /* slate-900 */
  --muted: #475569; /* slate-600 */
  --line: #e2e8f0;  /* slate-200 */
  --pill: #10b981;  /* emerald-500 */
  --indigo-50: #eef2ff;
  --sky-50: #f0f9ff;
  --primary: #111827; /* slate-900 for buttons */
  --primary-contrast: #ffffff;
  --ring: rgba(165, 180, 252, .6); /* indigo ring */
  --shadow: 0 10px 25px rgba(2, 6, 23, .08);
  --radius-xl: 1rem; /* 16px */
  --radius-2xl: 1.5rem; /* 24px */
  --container: 72rem; /* 1152px */
  /* Sticky header height (logo + padding). Adjust if logo size changes */
  --header-h: 4rem;
  /* Extra nudge so anchors land a bit lower on the page */
  --anchor-gap: -30px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--anchor-gap)); }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.small { font-size: .9rem; }
.bold { font-weight: 600; }
.underline { text-decoration: underline; text-decoration-color: #c7d2fe; }

/* ========= Layout / Components ========= */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-radius: var(--radius-2xl); border: 1px solid var(--text); background: var(--text); color: var(--primary-contrast); font-weight: 600; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn:focus { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.btn-lg { padding: .9rem 1.25rem; font-size: 1rem; }
.buttons { display:flex; gap:.75rem; flex-wrap:wrap }
.buttons.center { justify-content:center; align-items:center; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); background: rgba(255,255,255,.8); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: .75rem; }
.logo-img { height: 4.5rem; width: auto; }
.logo-img1 { height: 3rem; width: auto; }
.logo-badge { width: 2.25rem; height: 2.25rem; border-radius: .9rem; display: grid; place-items: center; background: var(--text); color: #fff; font-weight: 800; }
.nav-links { display: none; gap: 1.25rem; font-size: .95rem; color: #334155; }
.nav-links a:hover { color: var(--text); }
@media (min-width: 768px) { .nav-links { display: flex; } }

/* Sections */
section { padding: 1rem 0 4rem 0; scroll-margin-top: calc(var(--header-h) + 8px); }
.muted { color: var(--muted); }
.h1 { font-weight: 800; font-size: clamp(1.5rem, 2.3vw + 0.70rem, 2.4rem); line-height: 1.1; letter-spacing: -0.02em; }
.h2 { font-weight: 700; font-size: clamp(1.75rem, 2.5vw + .5rem, 2.5rem); }
.lead { font-size: 1.125rem; color: #313233; }
.lead1 { font-size: 1rem; }

/* Hero */
/* Hero Background Video */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7); /* translucent white cover */
  z-index: 1;
}

/* Ensure text sits above overlay */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;           /* <-- this makes the two columns possible */
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.chip { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .6rem; color: #475569; font-size: .75rem; }
.demo-card { border: 1px solid var(--line); border-radius: var(--radius-2xl); padding: .5rem; box-shadow: var(--shadow); }
.demo-inner { height: 100%; border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--indigo-50), var(--sky-50)); display: grid; place-items: center; text-align: center; padding: 1.5rem; }
/* Animate play icon on hover */
.demo-card:hover .demo-inner svg {
  transform: scale(1.25);
  filter: drop-shadow(0 0 6px rgba(79, 70, 229, 0.6)); /* soft indigo glow */
}
.demo-inner svg {
  transition: transform 0.25s ease, filter 0.25s ease;
}
.aspect { position: relative; width: 100%; }
.aspect::before { content: ""; display: block; padding-bottom: 56.25%; } /* 16:9 default */
@media (max-width: 767px) { .aspect::before { padding-bottom: 177.77%; } } /* 9:16 on mobile */
.aspect > .demo-card { position: absolute; inset: 0; }

/* Demo video inside the hero card */
.demo-card {
  position: relative;
  overflow: hidden; /* clip inner corners */
}

/* Fit video to the card's interior (account for the .demo-card padding) */
.demo-video {
  position: absolute;
  /* if your .demo-card has padding: .5rem; match that here so video edges align */
  inset: .5rem;
  width: 97%;
  height: 95%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  z-index: 0;
}

/* Make overlay a clickable layer above the video */
.demo-inner {
  position: absolute;
  inset: .5rem;
  display: grid;
  place-items: center;
  text-align: center;
  height: 95%;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: rgba(35, 60, 118, 0.6); /* dark slate with transparency */
  color: #ffffff; /* make text white */
  z-index: 1;
  cursor: pointer;
  transition: opacity .25s ease, visibility .25s ease, background .3s ease;
}


/* Hide overlay while playing */
.demo-card.is-playing .demo-inner {
  opacity: 0;
  visibility: hidden;
}

/* Platform image styling */
.platform-img {
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  object-fit: cover;
  transition: transform .4s ease, box-shadow .4s ease;
}

.platform-img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}



/* Grid / Cards */
.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.two-cols { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid var(--line); border-radius: var(--radius-2xl); background: #fff; box-shadow: var(--shadow); }
.card-body { padding: 1.25rem; }
.card-title { margin-top: .5rem; font-weight: 600; }
.icon-box { width: 2.5rem; height: 2.5rem; border-radius: .9rem; background: var(--text); color: #fff; display: grid; place-items: center; }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .35rem .7rem; font-size: .9rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.check { width: 1rem; height: 1rem; display: inline-block; background: var(--pill); -webkit-mask: url('#check') no-repeat center / contain; mask: url('#check') no-repeat center / contain; }

/* Alt section bg */
.alt { background: #f8fafc; }

/* Team / Carousel */
.team { position: relative; }
.carousel { position: relative; overflow: hidden; margin-top: 1.25rem; }
.slides { display: flex; transition: transform .45s ease; will-change: transform; }
.slide { min-width: 100%; display: grid; place-items: center; padding: 1rem 0; }

.member-card {
  width: 100%;
  max-width: 44rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.avatar {
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 6px 18px rgba(2, 6, 23, .12);
  margin: 0 auto .75rem;
}

.member-name { font-weight: 700; margin: .25rem 0 0; }
.member-role { color: var(--muted); margin: .1rem 0 .6rem; font-weight: 500; }
.member-blurb { color: var(--muted); font-size: .98rem; margin: 0 auto 1rem; max-width: 36rem; }
.member-link {
  display: inline-block; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem .9rem; color: var(--text);
}
.member-link:hover { border-color: var(--text); }

/* Carousel controls */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.25rem; height: 2.25rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  box-shadow: var(--shadow); cursor: pointer;
}
.carousel-btn:hover { filter: brightness(0.97); }
.carousel-btn.prev { left: .5rem; }
.carousel-btn.next { right: .5rem; }

/* Dots */
.dots { display: flex; gap: .4rem; justify-content: center; margin-top: 1rem; }
.dots button {
  width: .5rem; height: .5rem; border-radius: 999px; border: 0;
  background: #cbd5e1; cursor: pointer;
}
.dots button.is-active { background: #0f172a; }


/* CTA */
.cta { text-align: center; }
.input { width: 100%; border: 1px solid #cbd5e1; border-radius: var(--radius-2xl); padding: .9rem 1rem; font: inherit; }
.input:focus { outline: none; box-shadow: 0 0 0 4px var(--ring); border-color: transparent; }
.form-row { max-width:36rem; margin:0 auto; display:flex; gap:.75rem; flex-wrap:wrap }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-links { text-align: right; color:#475569; font-size:.9rem }

/* Utilities */
.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-10{margin-top:2.5rem}
.mb-4{margin-bottom:1rem}
.py-0{padding-top:0;padding-bottom:0}.py-16{padding-top:4rem;padding-bottom:4rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-24{padding-top:6rem;padding-bottom:6rem}
.pr-1 { padding-right: 0.4rem; }
.mr-5 { margin-right: 5px; }
.ml-20 { margin-left: 20px; }

/* ========= Responsive tweaks ========= */
@media (max-width: 768px) {
.logo-img { height: 3rem; }
html { scroll-padding-top: calc(3.5rem + var(--anchor-gap)); }
section { scroll-margin-top: calc(3.5rem + var(--anchor-gap)); }
}
@media (max-width: 767px) {
  .demo-card {
    height: 340px;
  }

  .demo-video {
    height: 320px;
    object-fit: cover; /* keep the video nicely cropped */
  }

  /* Since the .demo-inner overlay is absolute, make sure it matches the new height */
  .demo-inner {
    height: 320px;
  }

  .aspect { height: 340px; }
}


/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;  /* stack vertically */
  justify-content: center;
  align-items: center;
  background: transparent;
  border: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .75rem;
  gap: 5px;                /* space between bars */
  cursor: pointer;
}
.hamburger:focus { outline: none; box-shadow: 0 0 0 4px var(--ring); }
.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

/* Optional animated transform when menu opens */
.hamburger.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* Mobile nav drawer (fixed below sticky header) */
.mobile-nav {
  position: fixed;
  top: calc(var(--header-h) + 10px);
  left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 49; /* just under header (50) */
  display: none;
  padding: .5rem 1rem 1rem;
}
.mobile-nav.open { display: block; }
.mobile-link {
  display: block;
  padding: .75rem .25rem;
  border-radius: .75rem;
  color: var(--text);
  border: 1px solid transparent;
}
.mobile-link:hover { background: #f8fafc; border-color: var(--line); }
.mobile-link.ext { font-weight: 700; }

/* Responsive header behavior */
@media (max-width: 767px) {
  /* Hide desktop nav & Open App button on small screens */
  .nav-links { display: none !important; }
  .header .btn { display: none !important; }

  /* Show hamburger on small screens */
  .hamburger { display: inline-flex; }
}

/* Product image styling */
.product-img {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0.75rem auto 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  object-fit: cover;
  transition: transform .3s ease, box-shadow .3s ease;
}

.product-img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

/* How it Works section gallery */
.works-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap; /* stacks vertically on mobile */
}

.works-img {
  display: block;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  object-fit: cover;
  transition: transform .4s ease, box-shadow .4s ease;
}

.works-img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

/* Mobile tweak: stack images full width */
@media (max-width: 767px) {
  .works-gallery {
    flex-direction: column;
    align-items: center;
  }

  .works-img {
    max-width: 90%;
  }
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  color: #111;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  color: #E1306C; /* Instagram accent */
  transform: translateY(-1px);
}

/* ===== Links (bio) page ===== */
.links-page {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.links-main {
  min-height: calc(100vh - var(--header-h));
}

.links-hero {
  padding: 1.5rem 0 4rem;
}

.links-wrap {
  display: grid;
  place-items: center;
}

.links-card {
  width: 100%;
  max-width: 36rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.links-top {
  padding: .5rem .25rem 1rem;
  border-bottom: 1px solid var(--line);
}

.links-brand {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.links-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
}

.links-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.links-subtitle {
  margin: .1rem 0 0;
}

.links-blurb {
  margin: .75rem 0 0;
}

.links-list {
  display: grid;
  gap: .75rem;
  padding: 1rem .25rem;
}

.links-btn {
  justify-content: center;
  width: 100%;
}

.links-social {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .25rem;
  justify-content: center;
}

.links-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem .85rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  font-weight: 600;
}

.links-social-btn:hover {
  border-color: var(--text);
}

.links-footer {
  text-align: center;
  padding: 1rem .25rem .25rem;
}


/* Social icon row (Links page) */

.social-icons {
  display: inline-flex;
  align-items: center;
  gap: .75rem; /* adjust to .15rem if you want tighter */
}

.social-icons .social-icon {
  margin-right: 0; /* overrides the existing 0.75rem */
}

.links-social-icons {
  display: flex;
  justify-content: center;
  gap: .85rem;
  padding: .95rem .25rem .2rem;
}

.social-icon-btn {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;

  /* Brand color */
  border: 2px solid #3d5c9d;
  background: rgba(61, 92, 157, 0.06);

  /* More prominent */
  box-shadow:
    0 6px 14px rgba(61, 92, 157, 0.18),
    0 2px 4px rgba(0, 0, 0, 0.04);

  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}

.social-icon-btn:hover {
  transform: translateY(-2px);
  background: rgba(61, 92, 157, 0.12);
  box-shadow:
    0 10px 20px rgba(61, 92, 157, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.05);
}

.social-icon-btn svg {
  width: 30px;
  height: 30px;
  fill: #3d5c9d;
}

/* ===== Links page: Social rows ===== */
.links-social-rows{
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

.social-row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
}

.social-left{
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 9.5rem; /* keeps labels aligned on wider screens */
}

.social-title{
  font-weight: 800;
  line-height: 1.1;
}

.social-sub{
  margin-top: .1rem;
}

.social-icon-badge{
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid #3d5c9d;
  background: rgba(61, 92, 157, 0.06);
  box-shadow:
    0 6px 14px rgba(61, 92, 157, 0.18),
    0 2px 4px rgba(0, 0, 0, 0.04);
}

.social-icon-badge svg{
  width: 22px;
  height: 22px;
  fill: #3d5c9d;
}

.social-links{
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}

.social-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  color: #3d5c9d;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  white-space: nowrap;
}

.social-link:hover{
  border-color: #3d5c9d;
  background: rgba(61, 92, 157, 0.06);
}

/* Mobile: stack left and links vertically for easy tapping */
@media (max-width: 520px){
  .social-row{
    flex-direction: column;
    align-items: stretch;
  }
  .social-links{
    justify-content: flex-start;
  }
}

.nav-right{
  display:flex;
  align-items:center;
  gap:.75rem;
}

.tips-link{
  margin-left: .75rem;
  color: #334155;
  text-decoration: none;
  white-space: nowrap;
  font-size: .95rem;
  font-weight: 400;
  line-height: 1;
}

.tips-link:hover{
  color: var(--text);
  opacity: 1;
}

.nav-sep{
  color:rgba(0,0,0,.6);
  font-weight:600;
}

@media (max-width: 900px){
  .tips-link,
  .nav-sep{
    display:none;
  }
}


@media (max-width: 767px) {
  #why,
  .mobile-nav a[href="#why"],
  .footer-links a[href="#why"] {
    display: none;
  }
}

.legal-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #334155;
  font-weight: 700;
  text-decoration: none;
}
.legal-hero .back-link:hover {
  color: var(--text);
}

/* Terms page */
.legal-page main {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 36%);
}
.legal-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at top left, rgba(199, 210, 254, .45), transparent 38%), #ffffff;
}
.legal-eyebrow {
  margin: 1rem 0 0;
  color: #475569;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.legal-intro {
  max-width: 48rem;
}
.legal-updated {
  color: #475569;
  font-size: .95rem;
  font-weight: 700;
}
.legal-section {
  padding: 3rem 0 5rem;
}
.legal-card {
  max-width: 58rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: #fff;
  box-shadow: var(--shadow);
  line-height: 1.75;
}
.legal-card h2 {
  margin: 2rem 0 .75rem;
  font-size: clamp(1.2rem, 1.1vw + .95rem, 1.55rem);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.legal-card h2:first-child {
  margin-top: 0;
}
.legal-card p {
  margin: 0 0 1rem;
  color: #334155;
}
.legal-card ul {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
  color: #334155;
}
.legal-card li {
  margin: .45rem 0;
}
.legal-card a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 767px) {
  .legal-hero {
    padding: 3rem 0 2rem;
  }
  .legal-section {
    padding: 2rem 0 4rem;
  }
}
