body.app-shell {
  --content-max: 1360px;
}

.app-shell .wrap {
  width: min(calc(100% - (var(--layout-gutter, 1rem) * 2)), var(--content-max));
}

.app-home {
  background:
    radial-gradient(circle at top left, rgba(226, 0, 21, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(12, 95, 79, 0.08), transparent 24%),
    linear-gradient(180deg, #fcfcfc 0%, #f3f3f3 54%, #ececec 100%);
}

.app-home .hero {
  position: relative;
  padding: clamp(1.8rem, 3vw, 2.7rem);
  border-radius: 1.2rem;
  border-left-width: 7px;
  box-shadow: 0 18px 34px rgba(18, 28, 43, 0.08);
  overflow: hidden;
}

.app-home .hero::after {
  content: "";
  position: absolute;
  inset: auto -4rem -4rem auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 95, 79, 0.12), transparent 70%);
  pointer-events: none;
}

.app-home .hero h1 {
  max-width: 20ch;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.app-home .hero p {
  max-width: 66ch;
  font-size: 1.02rem;
}

.app-shell .button {
  min-height: 2.85rem;
}

.app-section-head {
  display: grid;
  gap: 0.42rem;
  margin-bottom: 1.1rem;
}

.app-section-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0c5f4f;
}

.app-section-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.1;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  color: #18202a;
}

.app-section-head p {
  margin: 0;
  max-width: 72ch;
}

.app-grid {
  display: grid;
  gap: 1rem;
}

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

.app-grid--process {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-card {
  border-radius: 1.05rem;
  padding: 1.35rem;
  box-shadow: 0 12px 28px rgba(17, 26, 39, 0.08);
}

.app-card h3 {
  font-size: 1.18rem;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.app-card p,
.app-card li,
.app-card label,
.app-card .field-tip,
.app-card .calc-disclaimer summary,
.app-card .calc-explanation-intro,
.app-card .calc-explanation-note,
.app-card .calc-explanation-list {
  font-size: 0.96rem;
}

.app-card input,
.app-card select {
  font-size: 0.98rem;
}

.app-card .actions {
  margin-top: 1.1rem;
}

.app-card .button.secondary {
  min-width: 9rem;
}

.app-card .calc-disclaimer {
  margin-top: 0.45rem;
}

.app-card .calc-disclaimer summary {
  padding: 0.84rem 0.95rem;
}

.app-card--quick {
  display: flex;
  flex-direction: column;
}

.app-card--quick .actions {
  margin-top: auto;
}

.app-card--process {
  align-content: start;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.app-card--process p strong,
.app-card--quick p strong {
  color: #1f2a36;
}

.app-card--process [data-output],
.app-card--quick [data-output] {
  color: #405062;
}

.app-cobra-home {
  background:
    radial-gradient(circle at top right, rgba(18, 125, 92, 0.1), transparent 26%),
    linear-gradient(180deg, #f6faf8 0%, #eff5f3 100%);
}

.app-cobra-home .cobra-hero {
  padding: clamp(1.3rem, 2.2vw, 1.9rem);
  box-shadow: 0 22px 36px rgba(7, 43, 36, 0.12);
}

.app-cobra-home .cobra-hero h1 {
  max-width: 20ch;
  margin-bottom: 0.6rem;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  line-height: 1.06;
}

.app-cobra-home .cobra-hero p {
  max-width: 58ch;
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
}

.app-cobra-home .cobra-eyebrow {
  padding: 0.34rem 0.72rem;
  font-size: 0.74rem;
}

.app-cobra-home .hero-actions {
  margin-top: 0.2rem;
}

.app-cobra-home .cobra-guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.app-cobra-home .cobra-guide-card {
  padding: 0.82rem 0.9rem;
  border-radius: 0.9rem;
}

.app-cobra-home .cobra-guide-card strong {
  margin-bottom: 0.12rem;
  font-size: 0.92rem;
}

.app-cobra-home .cobra-guide-card p {
  font-size: 0.88rem;
  line-height: 1.42;
}

@media (max-width: 1180px) {
  .app-grid--quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .app-home .hero h1 {
    max-width: 16ch;
  }

  .app-cobra-home .cobra-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-card {
    padding: 1rem;
  }

  .app-home .hero {
    padding: 1.2rem 1rem 1.25rem;
  }

  .app-home .hero p {
    font-size: 0.94rem;
  }
}
