/* ==========================================================================
   Alkando — feature pages (/modes, /day-plan, /activities, /focus, /goals,
   /gamification). Laid out after structured.app's feature pages: a light
   hero, facts in alternating rows beside soft blobs of colour, questions,
   and a row of the other features. Light pastels throughout, like the home
   page — flow.css moves the page colour between sections and supplies the
   dark ink. --t / --t2 are the feature's two app colours.
   ========================================================================== */

.feat {
  width: 100%;
  font-family: var(--ak-font-ui);
}

/* --- hero --- */

.feat__hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  min-height: min(78vh, 720px);
  margin: 0 auto;
  padding: 170px 24px 70px;
  text-align: center;
  justify-content: center;
}

/* A soft, blurred wash of the feature colour behind the hero — the same
   device structured.app puts behind its illustrations. */
.feat__blob {
  position: absolute;
  top: 12%;
  left: 50%;
  z-index: -1;
  width: min(620px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--t) 34%, transparent), transparent 62%),
    radial-gradient(circle at 68% 62%, color-mix(in srgb, var(--t2) 30%, transparent), transparent 60%);
  filter: blur(40px);
  transform: translateX(-50%);
}

.feat__icon {
  display: grid;
  place-items: center;
  width: 108px;
  aspect-ratio: 1;
  border-radius: 22.37%;
  background: linear-gradient(145deg, var(--t), var(--t2));
  box-shadow: 0 18px 38px color-mix(in srgb, var(--t) 32%, transparent);
  color: #fff;
}

.feat__icon svg {
  width: 46%;
  height: 46%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feat__title {
  margin: 30px 0 0;
  font: 800 clamp(2.8rem, 7.4vw, 5rem)/1.02 var(--ak-font-rounded);
  letter-spacing: -0.03em;
}

.feat__lead {
  max-width: 600px;
  margin: 18px auto 0;
  color: var(--ak-text-2);
  font: 400 clamp(1.1rem, 2vw, 1.4rem)/1.45 var(--ak-font-ui);
}

.feat__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.feat__cta {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: #6b3fe8;
  color: #fff;
  font: 700 16.5px/1 var(--ak-font-ui);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(107, 63, 232, 0.3);
  transition: transform var(--ak-dur-tap) var(--ak-ease-out);
}

.feat__cta:active {
  transform: scale(0.97);
}

.feat__beta {
  padding: 7px 12px;
  border: 1px solid rgba(107, 63, 232, 0.25);
  border-radius: 999px;
  background: rgba(107, 63, 232, 0.08);
  color: #6b3fe8;
  font: 700 12.5px/1 var(--ak-font-ui);
}

/* --- facts, in alternating rows --- */

.feat__facts-sec {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 110px) 24px;
}

.feat__h2 {
  margin: 0 0 clamp(30px, 5vh, 54px);
  text-align: center;
  font: 800 clamp(2rem, 5vw, 3.2rem)/1.06 var(--ak-font-rounded);
  letter-spacing: -0.03em;
}

.feat__note {
  margin: -20px 0 30px;
  text-align: center;
  color: var(--ak-text-3);
  font: 400 14.5px/1.5 var(--ak-font-ui);
}

.feat__facts {
  display: grid;
  gap: clamp(26px, 5vh, 54px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: fact;
}

.feat__fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  counter-increment: fact;
}

/* Every other row mirrors, as the benchmark's rows do. */
.feat__fact:nth-child(even) .feat__orb {
  order: 2;
}

.feat__orb {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 250px);
  aspect-ratio: 1;
}

.feat__orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%, color-mix(in srgb, var(--t) 42%, transparent), transparent 64%),
    radial-gradient(circle at 70% 68%, color-mix(in srgb, var(--t2) 40%, transparent), transparent 62%);
  filter: blur(22px);
}

.feat__orb::after {
  content: counter(fact, decimal-leading-zero);
  position: relative;
  display: grid;
  place-items: center;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 22.37%;
  background: linear-gradient(145deg, var(--t), var(--t2));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--t) 30%, transparent);
  color: #fff;
  font: 800 clamp(1.5rem, 3vw, 2.2rem)/1 var(--ak-font-rounded);
}

.feat__fact p {
  margin: 0;
  color: var(--ak-text);
  font: 600 clamp(1.25rem, 2.5vw, 1.85rem)/1.3 var(--ak-font-ui);
  letter-spacing: -0.01em;
}

/* --- questions and the other features: home components, spaced for here --- */

.feat__faq {
  margin-top: 0;
  padding: clamp(60px, 10vh, 110px) 24px;
}

.feat__more {
  margin-top: 0;
  padding: clamp(60px, 10vh, 110px) 24px clamp(90px, 14vh, 150px);
}

.exp__row--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* The modes tiles, on this page without the home sheet's backdrop, its
   slide over the sky, or the shadow that goes with it. */
.feat .modes::before {
  display: none;
}

.feat .modes {
  margin-top: 0;
  z-index: 1;
  padding: 0 24px clamp(60px, 10vh, 110px);
  overflow: visible;
}

.feat .modes__bgs {
  display: none;
}

.feat .modes__head {
  margin-bottom: 30px;
}

.feat .visually-hidden,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.feat a:focus-visible {
  outline: 2px solid #6b3fe8;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .feat__hero {
    padding-top: 130px;
  }

  .feat__fact {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    justify-items: start;
  }

  .feat__fact:nth-child(even) .feat__orb {
    order: 0;
  }

  .feat__orb {
    justify-self: start;
    width: 110px;
  }

  .exp__row--five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .feat__cta {
    transition: none;
  }
}
