/* One shared composition: real text, soft light, and an unframed phone. */
.hero-cinematic {
  --text: #f5f3ee;
  --muted: #bab9b5;
  --orange: #ff6a29;
  --accent-text: #ff925f;
  --focus: #ffb089;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #090a0c;
  color: var(--text);
}

.hero-cinematic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 76% 68%, #ad47151f, transparent 50%);
}

.cinematic-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
  align-items: center;
  min-height: 760px;
  padding-top: 30px;
  padding-bottom: 48px;
}

.hero-cinematic .hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding-bottom: 20px;
}

.hero-cinematic .eyebrow {
  color: #ff925f;
  letter-spacing: .18em;
}

.hero-cinematic h1 {
  margin: 22px 0 26px;
  font-size: clamp(52px, 6.6vw, 82px);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.hero-cinematic h1 span {
  color: #ff793e;
}

.hero-cinematic .lead {
  max-width: 460px;
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: #c6c3be;
}

.hero-cinematic .buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 30px 0 20px;
}

.hero-cinematic .btn.primary {
  min-height: 50px;
  padding: 14px 23px;
  background: #ff6a29;
  color: #150c08;
  border-color: #ff6a29;
}

/* Keep both actions readable on the dark artwork in either site theme. */
html[data-theme] .hero-cinematic .btn.hero-secondary {
  min-height: 50px;
  padding: 14px 23px;
  background: #17181b;
  color: #f5f3ee;
  border-color: #59595b;
}

.hero-cinematic .hero-note span {
  display: block;
  margin-top: 3px;
}

.hero-cinematic .hero-copy .hero-note {
  max-width: 360px;
  margin: 0;
  color: #aaa8a4;
  font-size: 12px;
  line-height: 1.7;
}

.hero-art {
  position: relative;
  z-index: 1;
  width: calc(100% + 64px);
  max-width: 620px;
  min-width: 0;
  margin: -20px -54px -28px -10px;
}

.hero-art picture {
  display: block;
  /* Fade the image edges, keeping the phone and its reflection intact. */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 83%, transparent 100%), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 83%, transparent 100%), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1122 / 1402;
  object-fit: contain;
}

.hero-art-caption {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  margin: -76px auto 0;
  padding: 10px 20px 24px;
  text-align: center;
  color: #f5f3ee;
  text-shadow: 0 2px 18px #090a0c;
}

.hero-art-caption span {
  display: block;
}

.hero-art-caption span:first-child {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.hero-art-caption span + span {
  margin-top: 6px;
  color: #c6c3be;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .cinematic-inner {
    min-height: 660px;
  }

  .hero-cinematic .buttons {
    gap: 8px 20px;
  }
}

@media (max-width: 800px) {
  .hero-cinematic::before {
    background: radial-gradient(ellipse at 50% 70%, #ad47151f, transparent 60%);
  }

  .cinematic-inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 54px;
    padding-bottom: 34px;
  }

  .hero-cinematic .hero-copy {
    padding: 0;
    text-align: center;
  }

  .hero-cinematic h1 {
    margin: 18px 0 20px;
    font-size: clamp(44px, 8vw, 64px);
  }

  .hero-cinematic .lead,
  .hero-cinematic .hero-copy .hero-note {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cinematic .buttons {
    justify-content: center;
    margin: 24px 0 14px;
  }

  .hero-art {
    width: 460px;
    max-width: calc(100% + 56px);
    margin: -10px 0 0;
    justify-self: center;
  }

  .hero-art-caption {
    margin-top: -60px;
    padding-bottom: 0;
  }
}

@media (max-width: 600px) {
  .cinematic-inner {
    padding-top: 38px;
    padding-bottom: 30px;
  }

  .hero-cinematic h1 {
    font-size: clamp(40px, 10vw, 56px);
  }

  .hero-cinematic .lead {
    max-width: 340px;
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-cinematic .buttons {
    gap: 4px 18px;
  }

  .hero-art {
    width: 420px;
    max-width: calc(100% + 40px);
    margin-top: 0;
  }

  .hero-art-caption {
    margin-top: -52px;
  }
}

@media (forced-colors: active) {
  .hero-cinematic .hero-copy,
  .hero-art-caption {
    color: CanvasText;
    text-shadow: none;
  }

  .hero-cinematic::before {
    display: none;
  }
}

/* The four photos keep the same framing, with the instructions below. */
.steps.steps-illustrated {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.steps-illustrated .step {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: var(--card-bg);
}

html[data-theme="light"] .steps-illustrated .step {
  border-color: var(--card-border);
  background: var(--card-bg);
}

.steps-illustrated .step-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #0c0d0f;
}

.steps-illustrated .step-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.steps-illustrated .step-copy {
  padding: 22px 20px 24px;
}

.steps-illustrated .step h2,
.steps-illustrated .step h3 {
  margin: 16px 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.steps-illustrated .step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .steps.steps-illustrated {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 600px) {
  .steps.steps-illustrated {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps-illustrated .step-copy {
    padding: 22px;
  }
}

/* Homepage summary; the full illustrated sequence lives on How it works. */
.flow-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 64px); align-items: center; }
.flow-photo { margin: 0; min-width: 0; }
.flow-photo picture { display: block; overflow: hidden; border-radius: 22px; background: var(--panel); }
.flow-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.flow-photo figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.flow-list { list-style: none; padding: 0; margin: 0; }
.flow-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.flow-list li:first-child { border-top: 1px solid var(--line); }
.flow-list li > span { padding-top: 3px; color: var(--accent-text); font-size: 13px; font-weight: 700; }
.flow-list h3 { margin: 0 0 5px; font-size: 21px; line-height: 1.2; }
.flow-list p { margin: 0; font-size: 15px; line-height: 1.55; }
@media (max-width: 800px) { .flow-overview { grid-template-columns: minmax(0, 1fr); gap: 24px; } .flow-list li { padding: 16px 0; } }

/* Homepage features and frequently asked questions. */
.hero-cinematic .hero-explainer { max-width: 400px; margin: 16px 0 0; color: #f5f3ee; font-size: 15px; line-height: 1.6; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card { min-width: 0; overflow: hidden; border: 1px solid var(--card-border); border-radius: 20px; background: var(--card-bg); }
.feature-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.feature-card:first-child img { object-position: center 45%; }
.feature-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; }
.feature-copy h3 { margin: 0 0 10px; font-size: 23px; }
.feature-copy p { margin: 0 0 18px; font-size: 15px; line-height: 1.6; }
.feature-copy a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 70px); }
.faq-layout .faq { width: 100%; }
.faq-layout .faq a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.faq-layout summary { min-height: 44px; display: list-item; line-height: 1.5; }
#faq { scroll-margin-top: 90px; }
.steps-viewport:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 20px; }
@media (max-width: 800px) {
  .hero-cinematic .hero-explainer { margin-left: auto; margin-right: auto; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .steps-viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 12px; }
  .steps-viewport .steps.steps-illustrated { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 16px; }
  .steps-viewport .step { scroll-snap-align: start; }
}
