/* Section 1 — Hero */
.hero {
  position: relative;
  padding-top: 9rem;
  padding-bottom: 6rem;
  min-height: 88vh;
  background: var(--bg-page);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero__content {
  padding-right: 2rem;
  text-align: left;
}

.hero__content .eyebrow {
  display: block;
}

.hero__content h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.hero__sub {
  margin-top: 2rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 50ch;
}

.hero__cta {
  display: inline-block;
  margin-top: 3rem;
}

.hero__strip {
  margin-top: 4rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.hero__strip .dot {
  color: var(--color-accent);
  margin: 0 0.35rem;
}

.hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__illus-card {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  padding: 0;
  background: #ffffff;
  border-radius: 32px;
  border: 1px solid var(--color-divider);
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.06), 0 2px 8px rgba(26, 26, 26, 0.04);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}

.hero__illus-card:hover {
  transform: rotate(0deg);
}

.hero__illus {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.hero__dots {
  position: absolute;
  top: 6rem;
  right: 30%;
  width: 84px;
  height: 84px;
  background-image: radial-gradient(circle, rgba(232, 93, 47, 0.15) 3px, transparent 3px);
  background-size: 21px 21px;
  pointer-events: none;
}

.doodle {
  position: absolute;
  fill: none;
  stroke: rgba(232, 93, 47, 0.65);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  z-index: 1;
  pointer-events: none;
}

.doodle--hero-arrow {
  top: 35%;
  left: 52%;
  width: 140px;
  height: 90px;
  transform: rotate(0deg);
}

/* Section 2 — What we do */
.section-what {
  margin: 4rem auto;
}

.section-what .paper-card {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem);
  overflow: hidden;
}

.section-what__decor {
  position: absolute;
  top: -2.8rem;
  left: -2.9rem;
  width: 256px;
  height: 256px;
  pointer-events: none;
}

.section-what__decor-item {
  display: none;
}

.section-what[data-decor-variant="arrow"] .section-what__decor-item--arrow {
  display: block;
}

.section-what[data-decor-variant="dots"] .section-what__decor-item--dots {
  display: block;
}

.section-what[data-decor-variant="stamp"] .section-what__decor-item--stamp {
  display: inline-flex;
}

.section-what__decor-item--arrow {
  transform: rotate(-10deg);
}

.section-what__decor-item--dots {
  width: 256px;
  height: 256px;
  border-radius: 50%;
  background-image: radial-gradient(circle, rgba(232, 93, 47, 0.2) 1.75px, transparent 1.75px);
  background-size: 16px 16px;
}

.section-what__decor-item--stamp {
  padding: 0.28rem 0.65rem;
  border: 1.5px solid rgba(232, 93, 47, 0.28);
  border-radius: 999px;
  color: rgba(232, 93, 47, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-9deg);
}

.section-what__inner {
  max-width: 720px;
  margin-left: auto;
  margin-right: 5%;
}

.section-what__body {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--color-muted);
}

/* Section 3 — Numbers */
.section-numbers {
  padding-top: clamp(7rem, 14vw, 11rem);
  padding-bottom: clamp(7rem, 14vw, 11rem);
  background: var(--bg-page);
}

.section-numbers__top {
  max-width: 600px;
  margin-left: 5%;
}

.section-numbers__top .subtitle {
  margin-top: 1rem;
  max-width: 35ch;
}

.section-numbers__top h2 {
  margin-top: 1rem;
}

.section-numbers__stats {
  margin-top: 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 6rem;
  row-gap: 5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.number-stat--offset {
  margin-top: 2rem;
}

.number-stat__value {
  margin: 0;
  font-weight: 600;
  font-size: 4rem;
  color: var(--color-text);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.number-stat__label {
  margin: 0.75rem 0 0;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.number-stat__desc {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
  max-width: 28ch;
}

.number-stat__circled {
  position: relative;
  display: inline-block;
}

.doodle--numbers-circle {
  top: -0.6rem;
  left: -1rem;
  width: 180px;
  height: 80px;
  stroke-width: 2.5px;
}

.section-numbers__caption {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--color-muted);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

/* Section 4 — Who we help */
.section-who {
  margin: 4rem auto;
}

.section-who .paper-card {
  padding: clamp(5rem, 10vw, 8rem);
}

.section-who__inner {
  max-width: 760px;
  margin-left: 5%;
  margin-right: auto;
}

.section-who__lead {
  margin-top: 2rem;
}

.section-who__reasons {
  margin-top: 3rem;
}

.section-who__closing {
  margin-top: 3rem;
  font-size: 1.0625rem;
  color: var(--color-muted);
}

/* Section 5 — Steps */
.section-steps {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  background: var(--bg-page);
}

.section-steps__inner {
  position: relative;
  max-width: 680px;
  margin-left: auto;
  margin-right: 8%;
}

.section-steps__flow {
  position: relative;
  margin-top: 4rem;
}

.section-steps__mini-label {
  position: absolute;
  left: -10.75rem;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 600;
  font-size: 55px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 93, 47, 0.3);
  pointer-events: none;
}

.section-steps__sub {
  margin-top: 1rem;
}

.section-steps__list {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  list-style: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
}

.section-steps__caption {
  margin-top: 3rem;
  font-style: italic;
  color: var(--color-muted);
  max-width: 50ch;
}

/* Section 6 — After apply */
.section-after {
  margin: 4rem auto;
}

.section-after .paper-card {
  padding: clamp(5rem, 10vw, 8rem);
}

.section-after__inner {
  max-width: 700px;
}

.section-after__sub {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}

.section-after__body {
  margin-top: 3rem;
  color: var(--color-muted);
}

.section-after__body p + p {
  margin-top: 1.5rem;
}

.section-after__illus-card {
  float: right;
  width: min(40%, 380px);
  margin: 0 0 1rem 2rem;
  background: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible;
}

.section-after__illus {
  width: 100%;
  height: auto;
  display: block;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  mix-blend-mode: multiply;
}

/* Section 7 — Everyday people */
.section-everyday {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  background: var(--bg-page);
}

.section-everyday__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.section-everyday h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-everyday__body {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-everyday__body p:last-child {
  color: var(--color-muted);
}

/* Section 8 — Stand for */
.section-stand {
  margin: 4rem auto;
}

.section-stand .paper-card {
  padding: clamp(5rem, 10vw, 8rem);
}

.section-stand__header {
  position: relative;
  max-width: 600px;
}

.section-stand__header .subtitle {
  margin-top: 1rem;
}

.section-stand__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 5rem;
  row-gap: 3rem;
}

.section-stand__grid .principle-card:nth-child(2),
.section-stand__grid .principle-card:nth-child(4) {
  margin-top: 3rem;
}

/* Section 9 — App */
.section-app {
  margin: 4rem auto;
  background: var(--color-accent-soft);
  border-radius: var(--radius-xl);
  padding: clamp(5rem, 10vw, 8rem);
}

.section-app__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-app h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-app__left {
  max-width: 620px;
  justify-self: start;
}

.section-app__heading {
  position: relative;
  display: inline-block;
}

.doodle--app-check {
  top: 0;
  right: -36px;
  width: 32px;
  height: 32px;
  transform: rotate(-12deg);
}

.highlight {
  background: linear-gradient(120deg, transparent 0%, rgba(232, 93, 47, 0.22) 25%, rgba(232, 93, 47, 0.22) 75%, transparent 100%);
  padding: 0.1em 0.15em;
  color: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.section-app__body {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 52ch;
}

.section-app__features {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.section-app__right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-app__phone-frame {
  position: relative;
  width: 280px;
  padding: 12px;
  background: #1a1a1a;
  border-radius: 40px;
}

.section-app__phone-frame::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 22px;
  border-radius: 12px;
  background: #1a1a1a;
}

.section-app__phone-frame img {
  display: block;
  width: 100%;
  border-radius: 30px;
  background: #f0f0f0;
}

.section-app__phone-placeholder {
  display: none;
  min-height: 500px;
  border-radius: 30px;
  border: 1px dashed rgba(26, 26, 26, 0.2);
  background: #ffffff;
  color: var(--color-muted);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: 0.875rem;
}

.section-app__phone-frame.is-missing img {
  display: none;
}

.section-app__phone-frame.is-missing .section-app__phone-placeholder {
  display: flex;
}

.section-app__actions {
  margin-top: 3rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
}

.app-store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-badge svg {
  display: block;
  width: 168px;
  height: 56px;
}

.app-store-badge:hover,
.app-store-badge:focus-visible {
  opacity: 0.85;
  transform: translateY(-1px);
}

.section-app__link {
  margin-top: 0;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-accent);
}

/* Mobile */
@media (max-width: 1023px) {
  .hero {
    min-height: auto;
    padding-top: 7rem;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .hero__content {
    max-width: 100%;
    padding-right: 0;
  }

  .hero__media {
    justify-content: center;
  }

  .hero__illus-card {
    position: static;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    transform: none;
  }

  .hero__illus-card:hover {
    transform: none;
  }

  .hero__dots {
    display: none;
  }

  .doodle {
    display: none;
  }

  .section-what__inner,
  .section-who__inner,
  .section-steps__inner {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .section-steps__mini-label {
    display: none;
  }

  .section-what__decor {
    display: none;
  }

  .section-after__inner {
    max-width: 100%;
  }

  .section-numbers__stats {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3.5rem;
  }

  .number-stat--offset {
    margin-top: 0;
  }

  .section-after__illus-card {
    float: none;
    width: 100%;
    max-width: 260px;
    margin: 2rem auto 0;
  }

  .section-stand__grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .section-stand__grid .principle-card:nth-child(2),
  .section-stand__grid .principle-card:nth-child(4) {
    margin-top: 0;
  }

  .section-app__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-app__left {
    max-width: 100%;
  }

  .section-app__right {
    width: 100%;
    align-items: center;
  }

  .section-app__actions {
    margin-top: 2rem;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
  }

  .section-app__phone-frame {
    width: 280px;
  }

  .section-what .paper-card,
  .section-who .paper-card,
  .section-after .paper-card,
  .section-stand .paper-card {
    padding: clamp(3rem, 8vw, 5rem);
  }
}
