/* ==========================================================================
   Tiki — Page sections
   Hero stage, metrics band, ecosystem flow, system stack, vision, use cases.
   ========================================================================== */

/* ------------------------------------------------------------------- Hero */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 7vw, 7rem) clamp(3rem, 2rem + 4vw, 5rem);
  overflow: clip;
}

/* Faint green bloom behind the headline. Static gradient, no animation. */
.hero::before {
  content: "";
  position: absolute;
  inset-block-start: -30%;
  /* Physical left: keeps the bloom centred under the headline in both
     directions; inset-inline-start would offset it by its own width in rtl. */
  left: 50%;
  translate: -50% 0;
  inline-size: min(150vw, 1600px);
  aspect-ratio: 2 / 1;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 107, 53, 0.06),
    transparent 62%
  );
  pointer-events: none;
  z-index: -1;
}

.hero__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.75rem;
  text-align: center;
  max-width: 60rem;
  margin-inline: auto;
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-display);
  line-height: var(--lh-display);
  max-width: 15ch;
}

.hero__title span {
  display: block;
}

.hero__sub {
  font-size: var(--fs-lead);
  line-height: 1.58;
  color: var(--muted);
  max-width: 54ch;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-block-start: 0.5rem;
}

.hero__trust-sep {
  color: var(--border-strong);
}

/* ------------------------------------------------------------------ Stage */

.stage {
  position: relative;
  margin-block-start: clamp(3rem, 1.5rem + 4vw, 5.5rem);
}

/* Both products are mobile apps, so the stage is two phones side by side
   rather than a desktop console with a phone in front of it. */
.stage__phones {
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 3rem);
  justify-items: center;
  max-inline-size: 52rem;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .stage__phones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.stage__unit {
  margin: 0;
  display: grid;
  gap: 0.875rem;
  justify-items: center;
  inline-size: 100%;
  max-inline-size: 15rem;
}

.stage__unit .device--sm {
  inline-size: 100%;
}

.stage__cap {
  display: grid;
  gap: 0.1875rem;
  justify-items: center;
  text-align: center;
}

.stage__cap-name {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-snug);
}

.stage__cap-mark {
  inline-size: 1.35em;
  block-size: 1.35em;
  flex: none;
  object-fit: contain;
}

.stage__cap-role {
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* The two phones sit at slightly different heights so the pair reads as a
   pair rather than a repeated component. */
@media (min-width: 720px) {
  .stage__unit:nth-child(2) {
    margin-block-start: clamp(1.5rem, 0.5rem + 3vw, 3.5rem);
  }
}

.stage__points {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.125rem;
}

.stage__point {
  display: grid;
  gap: 0.1875rem;
  padding-block: 1.0625rem;
  border-top: 1px solid var(--border);
}

.stage__point:last-child {
  border-bottom: 1px solid var(--border);
}

.stage__point-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-snug);
}

.stage__point-title svg {
  inline-size: 1.05em;
  block-size: 1.05em;
  color: var(--tiki-green);
  flex: none;
}

.stage__point-text {
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 46ch;
}

/* ------------------------------------------------------- Problem contrast */

.problem__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  margin-block-start: 2.5rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 700px) {
  .problem__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 1rem + 3vw, 4rem);
  }
}

.problem__item {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  padding-block: 1.125rem;
  border-bottom: 1px solid var(--border);
}

.problem__item svg {
  inline-size: 17px;
  block-size: 17px;
  flex: none;
  color: var(--muted-soft);
  translate: 0 0.1875rem;
}

.problem__text {
  font-size: var(--fs-body);
  color: var(--ink-soft);
}

/* ------------------------------------------------------------ Vision band */

.vision {
  position: relative;
  overflow: clip;
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(5rem, 3rem + 8vw, 9.5rem);
}

.vision__glow {
  position: absolute;
  inset-block-end: -55%;
  /* Physical left, for the same centring reason as .hero::before. */
  left: 50%;
  translate: -50% 0;
  inline-size: min(120vw, 1200px);
  aspect-ratio: 1;
  background: radial-gradient(
    circle at center,
    rgba(0, 107, 53, 0.55),
    transparent 60%
  );
  pointer-events: none;
}

.vision__inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.75rem;
  text-align: center;
}

.vision__title {
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-display);
  line-height: var(--lh-display);
  max-width: 18ch;
}

.vision__text {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 58ch;
}

.vision .eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

/* Horizon rule — the one deliberate green element. */
.vision__rule {
  inline-size: 1px;
  block-size: clamp(3rem, 2rem + 2vw, 4.5rem);
  background: linear-gradient(
    to bottom,
    transparent,
    var(--tiki-green),
    transparent
  );
}

/* ------------------------------------------------------- Mockup surfaces */
/* Tinted plane that hosts a product surface in editorial layouts. */

.surface {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--off-white);
  border: 1px solid var(--border-soft);
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.75rem);
}

.surface--mist {
  background: var(--tiki-green-mist);
  border-color: transparent;
}

.surface__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-block-start: 1.25rem;
  padding-block-start: 1rem;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* Vertical stack used on narrow screens for the solution section. */
.stack-vertical {
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 6rem);
}

/* -------------------------------------------------------------- Utilities */

.margin-top-lg {
  margin-block-start: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.margin-top-xl {
  margin-block-start: clamp(3.5rem, 2rem + 4vw, 5.5rem);
}
