/* ===== Home hero ===== */
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 18px;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin-bottom: 28px;
}

/* ===== Intro ===== */
.intro {
  padding: clamp(56px, 10vw, 112px) var(--pad);
  text-align: center;
}

.intro h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 18ch;
  margin: 0 auto 28px;
}

/* ===== Feature carousel ===== */
.features {
  padding: 0 0 72px;
}

.features__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - (var(--pad) * 2), var(--max));
  margin: 0 auto 28px;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: 18px;
  padding: 0 var(--pad);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.feature-card {
  flex: 0 0 min(78vw, 340px);
  scroll-snap-align: start;
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  min-height: 460px;
  display: flex;
  flex-direction: column;
}

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

.feature-card__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: rgba(10, 10, 10, 0.45);
}

.feature-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.feature-card__visual {
  flex: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #ececec;
  position: relative;
}

.feature-card__visual img,
.feature-card__visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.carousel-nav {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-btn img {
  width: 18px;
  height: 18px;
}

/* Feature card mock UI bits */
.mock-profile {
  padding: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #f7f7f7, #efefef);
}

.mock-profile__photo {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.mock-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}

.mock-profile__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.mock-profile__meta {
  color: rgba(10, 10, 10, 0.55);
  font-size: 0.875rem;
}

.mock-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mock-tags span {
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  font-size: 0.75rem;
}

/* ===== App showcase (Coorda-style sticky phones) ===== */
.app-showcase {
  background: #1a1a1a;
  color: #fff;
}

.app-showcase__container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 80px 20px;
}

.app-showcase__left {
  width: 100%;
}

.app-showcase__sticky {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.app-showcase__heading {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.app-showcase__heading h2 {
  margin: 0;
  font-family: "Open Runde", var(--font-logo);
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -0.01em;
  line-height: 1.4;
  text-wrap: balance;
}

.app-showcase__highlight {
  display: inline-block;
  background: #fff;
  color: #050505;
  border-radius: 12px;
  padding: 6px 8px;
  line-height: 1;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.app-showcase__tabs {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.app-showcase__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.app-showcase__tab.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 500;
}

.app-showcase__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.app-showcase__cta p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: #fff;
  max-width: 36ch;
}

.app-showcase__visuals {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
  width: 100%;
}

.app-showcase__frame {
  width: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  transform: scale(0.7);
  opacity: 0.7;
  transform-origin: center center;
  will-change: transform, opacity;
}

.app-showcase__frame.is-active {
  transform: scale(1);
  opacity: 1;
}

.app-showcase__frame figure {
  margin: 0;
  width: min(280px, 68vw);
  aspect-ratio: 280 / 565;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.app-showcase__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 810px) {
  .app-showcase__container {
    gap: 56px;
    padding: 100px 30px;
  }

  .app-showcase__frame {
    min-height: 665px;
  }

  .app-showcase__visuals {
    gap: 64px;
  }
}

@media (min-width: 1100px) {
  .app-showcase__container {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 96px;
    padding: 120px 40px;
  }

  .app-showcase__left,
  .app-showcase__visuals {
    width: min(632px, calc(50% - 48px));
    flex: 1 1 0;
  }

  /* Tall column required so sticky can pin while phones scroll */
  .app-showcase__left {
    align-self: stretch;
    min-height: 100%;
  }

  .app-showcase__sticky {
    position: sticky;
    top: 96px;
    height: min(720px, calc(100vh - 120px));
    max-height: calc(100vh - 120px);
    justify-content: space-between;
    gap: 0;
  }

  .app-showcase__heading h2 {
    font-size: 42px;
  }

  .app-showcase__tabs {
    display: flex;
  }

  .app-showcase__visuals {
    gap: 120px;
  }

  .app-showcase__frame {
    width: 100%;
    min-height: 720px;
  }
}

/* ===== Stats / communities ===== */
.communities {
  padding: clamp(64px, 9vw, 100px) var(--pad);
}

.communities__top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.stat-card,
.quote-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  min-height: 220px;
}

.stat-card--large {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat-label {
  color: var(--text-muted);
  margin-top: 10px;
}

.quote-card h5 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.quote-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.quote-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.quote-card__author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.quote-card__author strong {
  display: block;
  font-size: 0.9375rem;
}

.quote-card__author span {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* ===== Marquee ===== */
.marquee {
  overflow: hidden;
  padding: 28px 0 56px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee__track span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===== Mid CTA ===== */
.mid-cta {
  margin: 12px;
  border-radius: var(--radius-xl);
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 48px 24px;
}

.mid-cta__bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero-bg.webp") center / cover no-repeat;
  filter: brightness(0.4) blur(1px);
  transform: scale(1.05);
}

.mid-cta__content {
  position: relative;
  z-index: 1;
}

.mid-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

/* ===== Desktop section ===== */
.desktop {
  padding: clamp(64px, 9vw, 110px) var(--pad);
  text-align: center;
}

.desktop h2 {
  max-width: 16ch;
  margin: 0 auto 40px;
}

.desktop__frame {
  width: min(100%, 980px);
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: var(--shadow-soft);
}

.desktop__frame img,
.desktop__frame video {
  width: 100%;
}

/* ===== Alongside life ===== */
.alongside {
  padding: 0 var(--pad) 80px;
}

.alongside__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.alongside__main {
  background: #fff;
  border-radius: 28px;
  padding: clamp(28px, 4vw, 44px);
}

.alongside__main h2 {
  margin-bottom: 16px;
}

.alongside__main > p {
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 36rem;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-list article {
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-list h6 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-list p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.metrics {
  background: #0f0f0f;
  color: #fff;
  border-radius: 28px;
  padding: clamp(28px, 4vw, 40px);
  display: grid;
  gap: 28px;
  align-content: start;
}

.metrics__label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

.metric {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.metric span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

/* ===== Social realtime ===== */
.realtime {
  padding: 40px var(--pad) 80px;
  text-align: center;
}

.realtime h2 {
  margin-bottom: 36px;
}

.social-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.social-row figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 3/4;
  position: relative;
}

.social-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-row figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  color: #fff;
  font-size: 0.75rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  text-align: left;
}

/* ===== Pricing ===== */
.pricing {
  padding: 40px var(--pad) 80px;
  text-align: center;
}

.pricing h2 {
  margin-bottom: 28px;
}

.pricing-toggle {
  display: inline-flex;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 5px;
  margin-bottom: 36px;
}

.pricing-toggle button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-toggle button.is-active {
  background: #0a0a0a;
  color: #fff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}

.price-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.price-card__num {
  color: rgba(10, 10, 10, 0.4);
  font-size: 0.8125rem;
  margin-bottom: 10px;
}

.price-card h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.price-card__amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.price-card__amount .currency {
  font-size: 1.25rem;
}

.price-card__amount .value {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.price-card__amount .period {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.price-card ul {
  margin: 22px 0 28px;
  display: grid;
  gap: 10px;
  flex: 1;
}

.price-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: rgba(10, 10, 10, 0.78);
}

.price-card li::before {
  content: "✓";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  font-size: 0.85rem;
  line-height: 18px;
  text-align: center;
  color: #0a0a0a;
  opacity: 0.7;
}

.price-card .btn {
  width: 100%;
}

.price-card--featured {
  background: #0f0f0f;
  color: #fff;
}

.price-card--featured .price-card__num,
.price-card--featured .period,
.price-card--featured li {
  color: rgba(255, 255, 255, 0.72);
}

.price-card--featured li::before {
  color: #fff;
  opacity: 0.85;
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 40px var(--pad) 80px;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 36px;
}

.testimonial-carousel .carousel__track {
  padding-bottom: 8px;
}

.t-card {
  flex: 0 0 min(82vw, 360px);
  scroll-snap-align: start;
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.t-card blockquote {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.t-card__person {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: auto;
}

.t-card__person img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.t-card__person strong {
  display: block;
}

.t-card__person span {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.ceo-quote {
  margin-top: 28px;
  background: #fff;
  border-radius: 28px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 28px;
  align-items: center;
}

.ceo-quote h5 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 20px;
}

.ceo-quote__person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ceo-quote__person img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.ceo-quote__visual {
  width: min(220px, 40vw);
  border-radius: 20px;
  overflow: hidden;
}

/* ===== FAQ ===== */
.faq {
  padding: 40px var(--pad) 80px;
  max-width: 820px;
  margin: 0 auto;
}

.faq h2 {
  text-align: center;
  margin-bottom: 36px;
}

.faq-item {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-item button {
  width: 100%;
  text-align: left;
  padding: 22px 8px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.05rem;
}

.faq-item button::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: rgba(10, 10, 10, 0.45);
}

.faq-item.is-open button::after {
  content: "–";
}

.faq-item__body {
  display: none;
  padding: 0 8px 22px;
  color: var(--text-muted);
}

.faq-item.is-open .faq-item__body {
  display: block;
}

/* ===== Insights ===== */
.insights {
  padding: 40px var(--pad) 80px;
}

.insights__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.insight-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease;
}

.insight-card:hover {
  transform: translateY(-2px);
}

.insight-card__media {
  aspect-ratio: 16/11;
  overflow: hidden;
  background: #ddd;
}

.insight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insight-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.insight-card h5 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.insight-card__meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* ===== Brands row ===== */
.brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
  padding: 20px var(--pad) 60px;
  opacity: 0.55;
}

.brands img {
  height: 28px;
  width: auto;
  filter: grayscale(1);
}

@media (max-width: 980px) {
  .stat-grid,
  .pricing-grid,
  .insight-grid,
  .alongside__grid {
    grid-template-columns: 1fr;
  }

  .social-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .ceo-quote {
    grid-template-columns: 1fr;
  }

  .ceo-quote__visual {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 640px) {
  .social-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card {
    flex-basis: min(88vw, 300px);
    min-height: 420px;
  }

  .app-showcase__frame {
    min-height: 480px;
  }

  .app-showcase__frame figure {
    width: min(220px, 62vw);
  }
}
