/* BlankCanvas Software — homepage sections: apps, approach, about, contact (after hero.css) */

/* ---------- App showcase ---------- */

.app {
  --app-ink: #f5f7fa;
  --app-muted: rgb(245 247 250 / 0.7);
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(28px, 5.5vw, 76px);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-xl);
  color: var(--app-ink);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06), var(--shadow-soft);
}

.app + .app {
  margin-top: 24px;
}

.app--driveiq {
  --app-accent: #c8f43a;
  background:
    radial-gradient(90% 80% at 88% 8%, rgb(37 99 235 / 0.55), transparent 60%),
    linear-gradient(155deg, #0a1433 0%, #0a1f4d 55%, #0d3aa8 130%);
}

.app--vipera {
  --app-accent: #35d39a;
  grid-template-columns: 0.92fr 1.08fr;
  background:
    radial-gradient(70% 70% at 15% 18%, rgb(53 211 154 / 0.22), transparent 62%),
    radial-gradient(70% 70% at 90% 92%, rgb(124 108 242 / 0.3), transparent 62%),
    #070b17;
}

.app--vipera .app__visual {
  order: -1;
}

.app__id {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app__icon {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 22.5%;
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.6);
}

.app__icon--round {
  border-radius: 50%;
}

.app__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.app__meta {
  margin-top: 6px;
  color: var(--app-muted);
  font-size: 0.9375rem;
}

.rating {
  white-space: nowrap;
}

.rating__star {
  color: #fbbf24;
}

.app__tagline {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.024em;
  text-wrap: balance;
}

.app__desc {
  max-width: 34em;
  margin-top: 14px;
  color: var(--app-muted);
  text-wrap: pretty;
}

.app__features {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.app__features li {
  position: relative;
  padding-left: 18px;
  color: var(--app-muted);
  font-size: 1rem;
}

.app__features li::before {
  content: "";
  position: absolute;
  top: calc(0.775em - 3px); /* centred on the first line */
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--app-accent);
}

.app__features strong {
  color: var(--app-ink);
  font-weight: 600;
}

.app__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 34px;
}

.play-badge {
  display: block;
  border-radius: 10px;
  transition: transform 0.3s var(--ease-out);
}

.play-badge img {
  width: auto;
  height: 52px;
}

.play-badge:active {
  transform: scale(0.96);
  transition-duration: 0.1s;
}

.app .link-arrow {
  color: var(--app-ink);
}

.app__fine {
  margin-top: 18px;
  color: rgb(245 247 250 / 0.62); /* ≥4.5:1 across the whole DriveIQ gradient */
  font-size: 0.8125rem;
}

.app__fine a {
  color: rgb(245 247 250 / 0.85);
}

/* Price, monetisation and freshness, stated plainly next to the download button. */
.app__facts {
  margin-top: 26px;
  color: rgb(245 247 250 / 0.75);
  font-size: 0.875rem;
  font-weight: 500;
}

.app__facts + .app__cta {
  margin-top: 16px;
}

.app__visual {
  position: relative;
  display: grid;
  place-items: center;
}

.app__visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--app-accent);
  filter: blur(90px);
  opacity: 0.24;
}

.phone {
  width: min(300px, 72vw);
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(150deg, #34373f, #0d0e11 38%, #1d1f25);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.14),
    inset 0 0 0 3px #050506,
    0 50px 90px -30px rgb(0 0 0 / 0.75),
    0 20px 40px -20px rgb(0 0 0 / 0.6);
}

.phone img {
  width: 100%;
  border-radius: 37px;
  background: #0b1220;
}

/* "Next up": a blank canvas waiting for its first coat of paint. */
.next {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 28px;
  margin-top: 24px;
  padding: 28px clamp(24px, 4vw, 40px);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow-soft);
}

.next__art {
  position: relative;
  width: 64px;
  height: 64px;
  border: 1.5px dashed var(--hairline-strong);
  border-radius: 22.5%;
}

.next__art::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.next__title {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 650;
  letter-spacing: -0.022em;
}

.next__desc {
  max-width: 40em;
  margin-top: 6px;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Approach ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
}

.step {
  padding: 28px 26px 30px;
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline);
}

.step__art {
  width: 56px;
  height: 56px;
  margin-bottom: 44px;
  color: var(--ink);
}

.art-dash,
.art-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.art-dash {
  stroke: var(--hairline-strong);
  stroke-dasharray: 4 4;
}

.art-accent {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art-fill {
  fill: var(--ink);
}

.art-star {
  fill: var(--accent);
}

.step__num {
  color: var(--muted);
  font: 500 0.8125rem/1 var(--font-mono);
}

.step__title {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.step p {
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
  align-items: start;
  gap: clamp(40px, 7vw, 104px);
}

.portrait {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

/* A mounted print on a gallery wall, with its wall label underneath. */
.portrait__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 10px;
  border-radius: 6px;
  background: var(--surface);
  object-fit: cover;
  box-shadow:
    0 0 0 1px var(--hairline),
    0 1px 2px rgb(0 0 0 / 0.06),
    0 30px 60px -28px rgb(0 0 0 / 0.35);
}

.portrait__label {
  display: grid;
  gap: 2px;
  margin-top: 20px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 0.875rem;
}

.portrait__label strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
}

.about__copy .h2 {
  margin-top: 14px;
}

.about__copy .lede {
  margin-top: 24px;
}

/* A plain third-person summary: the sentence AI answers can quote verbatim. */
.glance {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline);
  color: var(--ink-soft);
  font-size: 1rem;
}

.glance__label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.values {
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
}

.values li {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) 1fr;
  gap: 8px 24px;
  padding-block: 22px;
  border-bottom: 1px solid var(--hairline);
}

.values h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.values p {
  color: var(--muted);
  font-size: 1rem;
}

.about .actions {
  margin-top: 36px;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: clamp(36px, 5vw, 56px);
}

.faq__item {
  padding: 26px 26px 28px;
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline);
}

.faq__item h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.018em;
}

.faq__item p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 760px) {
  .faq {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */

.contact {
  overflow: clip;
  text-align: center;
}

.canvas-grid--contact {
  inset: 0;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 25%, transparent 75%);
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact .h2 {
  margin-top: 14px;
}

.contact .lede {
  margin-top: 20px;
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 18px;
  margin-top: 36px;
}

.email {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 0.95rem + 1.5vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}


/* ---------- Responsive ---------- */

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

@media (max-width: 900px) {
  .app,
  .app--vipera {
    grid-template-columns: 1fr;
  }

  .app--vipera .app__visual {
    order: 0;
  }

  .phone {
    width: min(270px, 70vw);
  }

  .about {
    grid-template-columns: 1fr;
  }

  .portrait {
    position: static;
    width: min(100%, 340px);
  }
}

@media (max-width: 720px) {
  .next {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .values li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .step__art {
    margin-bottom: 28px;
  }

  .app__tagline {
    margin-top: 26px;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .phone {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }

    @keyframes rise {
      from {
        transform: translateY(56px);
      }
    }
  }
}
