/* Tokens match the home page */
:root {
  --ink: #12141a;
  --body: #3a3f4b;
  --muted: #5d6270;
  --accent: #bef164;
  --white: #ffffff;
  --pad: clamp(24px, 5vw, 72px);
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body, "Diatype"), sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Hero */
.about-hero {
  background: var(--white);
}

.about-hero__banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 80vh;
  padding: 48px var(--pad);
  background:
    linear-gradient(0deg, rgb(0 0 0 / 58%), rgb(0 0 0 / 8%) 65%),
    url("assets/testimonial2.png") center / cover no-repeat;
}

.about-hero__banner-title {
  max-width: 20ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.about-hero__intro {
  display: flex;
  justify-content: center;
  padding: 96px var(--pad);
}

.about-hero__content {
  width: min(100%, 900px);
}

.about-hero__title {
  max-width: 22ch;
  margin: 0 auto 32px;
  margin-bottom: 1.25em;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
}

.about-hero__description p {
  max-width: 60ch;
  margin: 0 auto 1.25em;
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-align: justify;
}

.about-hero__description p:last-child {
  margin-bottom: 0;
}

.feature-accordion {
  --fa-top: 96px; /* set this to your navbar's height (use 0 if the navbar isn't fixed) */
  --fa-ease: cubic-bezier(0.4, 0, 0.2, 1);
  padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 72px) clamp(64px, 10vw, 140px);
  background: #fff;
  color: #12141a;
  font-family: "Poppins", system-ui, sans-serif;
}

.fa-list {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid #e2e5ea;
}

.fa-item {
  border-bottom: 1px solid #e2e5ea;
  scroll-margin-top: var(--fa-top); /* keeps shared links clear of a fixed navbar */
}

.fa-heading { margin: 0; font: inherit; }

.fa-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: clamp(22px, 3vw, 34px) 0;
  border: 0;
  background: none;
  color: #5d6270;
  font: inherit;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-align: left;
  cursor: pointer;
  transition: color 0.4s var(--fa-ease);
}
.fa-item.is-open .fa-trigger,
.fa-trigger:hover { color: #12141a; }
.fa-trigger:focus-visible { outline: 3px solid #2438ff; outline-offset: 2px; border-radius: 6px; }

/* Plus turns into a minus when open */
.fa-icon {
  flex: 0 0 auto;
  width: clamp(24px, 2.6vw, 32px);
  height: clamp(24px, 2.6vw, 32px);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.fa-icon-v {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.5s var(--fa-ease);
}
.fa-item.is-open .fa-icon-v { transform: scaleY(0); }

/* Smooth open and close: animate the row height from 0fr to 1fr */
.fa-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.6s var(--fa-ease), visibility 0s linear 0.6s;
}
.fa-item.is-open .fa-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}

.fa-body {
  min-height: 0;
  overflow: hidden;
}

.fa-content {
  padding-bottom: clamp(28px, 4vw, 48px);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--fa-ease), transform 0.5s var(--fa-ease);
}
.fa-item.is-open .fa-content {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}

/* Product screenshot, then the description below it */
.fa-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  border: 1px solid #e2e5ea;
  border-radius: 4px;
  background: #eceef2;
}

.fa-text {
  max-width: 60ch;
  margin: 24px 0 0;
  color: #3a3f4b;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.7;
}

/* Used briefly on page load so the right feature is open without animating */
.feature-accordion.is-instant * { transition: none !important; }

@media (max-width: 640px) {
  .fa-image { border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .fa-trigger,
  .fa-icon-v,
  .fa-panel,
  .fa-content { transition: none; }
}