:root {
  --background: #fbf9f8;
  --surface: #ffffff;
  --surface-soft: #f5f3f3;
  --surface-muted: #efeded;
  --surface-strong: #e7e4e3;
  --text: #1b1c1c;
  --text-muted: #575d66;
  --text-soft: #737883;
  --accent: #0051ac;
  --accent-strong: #1469d5;
  --accent-soft: #d8e2ff;
  --note: #686c75;
  --note-text: #ebeef8;
  --shadow-soft: 0 12px 32px rgba(27, 28, 28, 0.06);
  --shadow-float: 0 20px 48px rgba(27, 28, 28, 0.1);
  --radius-sm: 1rem;
  --radius-md: 1.5rem;
  --radius-lg: 2rem;
  --page-width: min(1180px, calc(100% - 2rem));
  --page-width-home: min(1320px, calc(100% - clamp(2rem, 4vw, 4rem)));
  --page-width-apps: min(1680px, calc(100% - clamp(2rem, 4vw, 5rem)));
  --hero-width-home: min(1480px, calc(100% - clamp(2rem, 4vw, 4rem)));
  --content-width: min(860px, calc(100% - 2rem));
  --section-gap: clamp(4rem, 7vw, 7rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(20, 105, 213, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, var(--background) 14%, var(--background) 100%);
  line-height: 1.6;
}

.page--home {
  --page-width: var(--page-width-home);
}

.page--maker404-apps {
  --page-width: var(--page-width-apps);
}

body[data-menu-open="true"] {
  overflow: hidden;
}

::selection {
  background: var(--accent-soft);
  color: #001a40;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
}

.skip-link:focus {
  top: 1rem;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1rem 0 0;
  transition: padding 180ms ease;
}

body[data-scrolled="true"] .site-header {
  padding-top: 0.5rem;
}

.site-header__shell,
.mobile-menu {
  width: var(--page-width);
  margin: 0 auto;
  background: rgba(251, 249, 248, 0.82);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

.site-header__shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem 0.95rem 1.35rem;
  border-radius: 1.35rem;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.28rem;
  flex-shrink: 0;
}

.site-brand__mark {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  gap: 0.06rem;
  padding: 0.44rem 0.82rem 0.48rem 0.78rem;
  border-radius: 1.05rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(29, 82, 160, 0.96), rgba(74, 120, 196, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(0, 81, 172, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.site-brand__mark::before,
.site-brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
}

.site-brand__mark::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 13px 13px;
  opacity: 0.5;
}

.site-brand__mark::after {
  inset: 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.75rem;
}

.site-brand__maker,
.site-brand__digit,
.site-footer__wordmark {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.site-brand__maker,
.site-brand__digit {
  position: relative;
  z-index: 1;
  line-height: 0.88;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.site-brand__digits {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: flex-end;
  gap: 0.04rem;
  margin-left: 0.08rem;
}

.site-brand__digit--gold {
  color: #f6c33a;
}

.site-brand__digit--gear {
  position: relative;
  width: 0.88em;
  height: 0.88em;
  margin: 0 0.03em 0 0.01em;
  color: transparent;
}

.site-brand__digit--gear::before,
.site-brand__digit--gear::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.site-brand__digit--gear::before {
  inset: -0.08em;
  background:
    radial-gradient(circle at center, transparent 0 32%, #ffffff 33% 52%, transparent 53%),
    repeating-conic-gradient(
      from 0deg,
      #ffffff 0deg 13deg,
      transparent 13deg 30deg
    );
}

.site-brand__digit--gear::after {
  inset: 0.18em;
  border: 0.11em solid rgba(29, 82, 160, 0.96);
  background: rgba(29, 82, 160, 0.96);
}

.site-brand__digit--outline {
  color: transparent;
  -webkit-text-stroke: 1.7px rgba(255, 255, 255, 0.95);
}

.site-brand__tag {
  display: flex;
  padding-left: 0.52rem;
}

.site-brand__tag-stamp {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.56rem 0.18rem;
  border: 2px solid rgba(187, 77, 63, 0.72);
  border-radius: 0.72rem;
  background: linear-gradient(180deg, #fffdfa 0%, #f2ece6 100%);
  box-shadow: 0 6px 16px rgba(27, 28, 28, 0.08);
  transform: rotate(-2.2deg);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b5473c;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.site-brand:hover .site-brand__mark,
.site-brand:focus-visible .site-brand__mark {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 14px 28px rgba(0, 81, 172, 0.2);
}

.site-brand:hover .site-brand__tag-stamp,
.site-brand:focus-visible .site-brand__tag-stamp {
  transform: rotate(-1deg) translateY(-1px);
  box-shadow: 0 10px 20px rgba(27, 28, 28, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex: 1;
}

.site-nav__link,
.mobile-menu__link {
  position: relative;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(27, 28, 28, 0.68);
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav__link:hover,
.mobile-menu__link:hover {
  color: var(--accent);
}

.site-nav__link.is-active,
.mobile-menu__link.is-active {
  color: var(--accent);
}

.site-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header__toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.95rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  cursor: pointer;
}

.site-header__toggle-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-menu {
  margin-top: 0.65rem;
  padding: 1rem;
  border-radius: 1.35rem;
}

.mobile-menu__link,
.mobile-menu__button {
  display: block;
  padding: 0.9rem 0.95rem;
  border-radius: 1rem;
}

.mobile-menu__link.is-active {
  background: rgba(216, 226, 255, 0.9);
}

.mobile-menu__button {
  margin-top: 0.45rem;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
}

.site-main {
  padding: 1.5rem 0 5rem;
}

.site-main--home {
  padding-top: 0.85rem;
}

.page-shell {
  width: var(--content-width);
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.article-shell {
  width: var(--page-width);
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.page-panel,
.article-panel,
.feature-panel,
.story-card,
.pillar-card,
.challenge-card,
.resource-card,
.tool-card,
.apps-section,
.section-panel,
.app-card,
.directory-section,
.cta-band,
.tool-callout,
.article-aside .aside-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.page-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.page-panel__intro,
.section-head {
  margin-bottom: 2rem;
  max-width: 44rem;
}

.eyebrow,
.meta-pill,
.pill,
.story-card__meta,
.directory-anchor,
.aside-panel__label,
.tool-card__tag,
.app-card__eyebrow,
.resource-card__label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
}

.page-title,
.hero-title,
.section-head h2,
.directory-hero__title,
.feature-panel h2,
.cta-band h2,
.tool-callout h2,
.story-card h3,
.challenge-card h2,
.resource-card h3,
.tool-section h2,
.apps-section h2,
.article-title,
.page-panel h2,
.page-panel h3,
.article-panel h2,
.article-panel h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.page-title,
.article-title {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
}

.page-lede,
.hero-lede,
.directory-hero__lede,
.article-lede,
.section-head p {
  max-width: 62ch;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.meta-pills,
.pill-row,
.button-row,
.feature-meta,
.article-meta,
.hero-metrics,
.challenge-card__meta,
.resource-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.meta-pill,
.pill,
.hero-metric,
.challenge-card__meta span,
.resource-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.3rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(216, 226, 255, 0.65);
  color: #004492;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.9rem 1.3rem;
  border-radius: 1rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary,
.button--nav.is-active,
.mobile-menu__button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 81, 172, 0.18);
}

.button--secondary,
.button--ghost,
.button--nav {
  background: var(--surface-muted);
  color: var(--text);
}

.button--dark {
  background: var(--text);
  color: var(--background);
}

.button--nav {
  min-height: 2.75rem;
  padding-inline: 1.1rem;
}

.button--nav:not(.is-active):hover,
.button--secondary:hover,
.button--ghost:hover {
  background: var(--surface-strong);
}

.back-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
}

.back-link::before {
  content: "←";
}

.hero-section,
.section {
  padding: 0 0 var(--section-gap);
}

.section--compact {
  padding-bottom: 1.5rem;
}

.section--flush {
  padding-bottom: 0;
}

.section--muted {
  padding-top: clamp(2rem, 5vw, 3rem);
}

.section--muted .section-shell,
.section--soft .section-shell,
.directory-section,
.apps-section,
.tool-callout,
.cta-band {
  background: linear-gradient(180deg, rgba(239, 237, 237, 0.85), rgba(245, 243, 243, 0.92));
  border-radius: var(--radius-lg);
}

.section-shell,
.directory-shell,
.directory-section,
.apps-page,
.downloads-page,
.blog-page,
.challenges-page {
  width: var(--page-width);
  margin: 0 auto;
}

.page--home .hero-section > .section-shell {
  width: var(--hero-width-home);
}

.hero-grid,
.feature-grid,
.story-grid,
.downloads-grid,
.guidance-grid,
.tool-feature-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: center;
}

.hero-copy,
.hero-visual,
.section-shell,
.directory-section,
.apps-section,
.cta-band,
.tool-callout {
  position: relative;
}

.hero-copy > * {
  opacity: 0;
  animation: rise-in 700ms ease forwards;
}

.hero-copy > *:nth-child(1) {
  animation-delay: 80ms;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 160ms;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 240ms;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 320ms;
}

.hero-copy > *:nth-child(5) {
  animation-delay: 400ms;
}

.hero-title {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6.2rem);
}

.hero-title span,
.directory-hero__title span,
.tool-hero__title span {
  display: block;
  color: var(--accent);
}

.hero-copy .button-row {
  margin-top: 2rem;
}

.hero-metrics {
  margin-top: 1.5rem;
  align-items: center;
  row-gap: 0.45rem;
}

.hero-metric {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--text-soft);
}

.hero-metric::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(0, 81, 172, 0.28);
}

.hero-visual {
  min-height: 32rem;
  padding: 2rem;
}

.hero-visual__plane {
  position: absolute;
  inset: 0 0 0 18%;
  border-radius: 2rem;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.4), rgba(216, 226, 255, 0.55)),
    linear-gradient(180deg, rgba(239, 237, 237, 0.85), rgba(255, 255, 255, 0.7));
  transform: skewX(-11deg);
  box-shadow: var(--shadow-soft);
}

.hero-visual__stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  max-width: 22rem;
  margin-left: auto;
  padding-top: 2rem;
}

.mini-panel,
.tool-card,
.apps-section,
.directory-section,
.resource-card,
.feature-panel {
  padding: 1.4rem;
}

.mini-panel {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 1.3rem;
  box-shadow: var(--shadow-soft);
}

.mini-panel p:last-child,
.feature-panel p:last-child {
  margin-bottom: 0;
}

.expert-note {
  padding: 1.35rem;
  border-radius: 1.3rem;
  box-shadow: var(--shadow-float);
}

.expert-note--floating {
  position: relative;
  justify-self: end;
  width: min(18rem, 100%);
  margin-top: 0.35rem;
  background: rgba(104, 108, 117, 0.94);
  color: var(--note-text);
  transform: translateX(1rem) rotate(2deg);
}

.expert-note--dark {
  background: rgba(104, 108, 117, 0.96);
  color: var(--note-text);
}

.expert-note p {
  margin: 0.55rem 0 0;
}

.section--muted .section-shell,
.section--soft .section-shell {
  padding: clamp(1.7rem, 4vw, 2.6rem);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-head--split {
  max-width: none;
}

.section-head--split,
.directory-hero,
.cta-band,
.tool-callout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}

.pillar-grid,
.challenge-grid,
.apps-grid,
.story-grid,
.downloads-grid,
.tool-list-grid {
  display: grid;
  gap: 1.25rem;
}

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

.pillar-grid--home {
  align-items: stretch;
}

.pillar-card,
.challenge-card,
.app-card,
.story-card,
.resource-card,
.tool-card {
  position: relative;
  overflow: hidden;
  padding: 1.45rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
}

.pillar-grid--home .pillar-card {
  min-height: 16.5rem;
  border: 1px solid rgba(0, 81, 172, 0.08);
  box-shadow: 0 16px 32px rgba(27, 28, 28, 0.05);
}

.pillar-grid--home .pillar-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.25rem;
  background: linear-gradient(90deg, rgba(0, 81, 172, 0.92), rgba(20, 105, 213, 0.18), transparent);
}

.pillar-card--tinted {
  background:
    radial-gradient(circle at top right, rgba(20, 105, 213, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(216, 226, 255, 0.74), rgba(255, 255, 255, 0.97) 46%, rgba(239, 237, 237, 0.95));
}

.pillar-card--tinted-light {
  background:
    radial-gradient(circle at top right, rgba(20, 105, 213, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(246, 248, 255, 0.98), rgba(255, 255, 255, 0.95));
}

.pillar-card:hover,
.challenge-card:hover,
.app-card:hover,
.story-card:hover,
.resource-card:hover,
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.pillar-card__icon,
.app-card__icon,
.tool-card__icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: rgba(216, 226, 255, 0.7);
  color: var(--accent);
}

.pillar-card h3,
.app-card h3,
.tool-card h3,
.downloads-grid h3 {
  margin: 0 0 0.75rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.pillar-card p,
.story-card p,
.app-card p,
.tool-card p,
.resource-card p {
  margin: 0;
  color: var(--text-muted);
}

.pillar-card__kicker {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.pillar-grid--home .pillar-card h3 {
  margin: 0;
  max-width: 12ch;
}

.pillar-grid--home .pillar-card p:not(.pillar-card__kicker) {
  max-width: 31ch;
}

.pillar-card__action {
  margin-top: auto;
  padding-top: 0.35rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent);
}

.pillar-card__action::after {
  content: "↗";
  margin-left: 0.4rem;
  font-size: 0.95em;
}

.pill-row {
  margin-top: 1rem;
}

.feature-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.7fr);
  align-items: stretch;
}

.feature-panel {
  padding: clamp(1.7rem, 4vw, 2.8rem);
  min-height: 24rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(239, 237, 237, 0.86)),
    radial-gradient(circle at top right, rgba(20, 105, 213, 0.08), transparent 26%);
}

.feature-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.feature-panel .button-row,
.feature-meta {
  margin-top: 1.5rem;
}

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

.story-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.story-card__meta {
  color: var(--accent);
}

.story-card h3 {
  font-size: 1.45rem;
  margin: 0;
}

.story-card__link {
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
}

.cta-band {
  padding: clamp(1.7rem, 4vw, 2.4rem);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-band p {
  max-width: 46rem;
  margin: 0.8rem 0 0;
  color: var(--text-muted);
}

.tool-callout p {
  max-width: 44rem;
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

.directory-shell {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.directory-rail {
  position: sticky;
  top: 6.6rem;
  padding: 1.4rem;
  background: linear-gradient(180deg, rgba(239, 237, 237, 0.85), rgba(245, 243, 243, 0.96));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.directory-rail__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.directory-rail__nav {
  display: grid;
  gap: 0.4rem;
  margin-top: 1.3rem;
}

.directory-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  color: var(--text-muted);
}

.directory-anchor:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent);
}

.directory-main {
  display: grid;
  gap: 1.5rem;
}

.directory-section,
.apps-section {
  padding: clamp(1.6rem, 3vw, 2.1rem);
}

.directory-hero__title {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}

.directory-hero__cta {
  margin-top: 1.6rem;
}

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

.challenge-card {
  display: flex;
  flex-direction: column;
  min-height: 21rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 249, 248, 0.94)),
    radial-gradient(circle at top right, rgba(20, 105, 213, 0.08), transparent 30%);
}

.challenge-card__accent {
  margin: -1.45rem -1.45rem 1.25rem;
  padding: 1.15rem 1.45rem;
  border-radius: 1.5rem 1.5rem 1rem 1rem;
  background: linear-gradient(135deg, rgba(216, 226, 255, 0.82), rgba(255, 255, 255, 0.7));
}

.challenge-card:nth-child(4n + 2) .challenge-card__accent {
  background: linear-gradient(135deg, rgba(239, 237, 237, 0.92), rgba(255, 255, 255, 0.7));
}

.challenge-card:nth-child(4n + 3) .challenge-card__accent {
  background: linear-gradient(135deg, rgba(20, 105, 213, 0.12), rgba(216, 226, 255, 0.35));
}

.challenge-card:nth-child(4n + 4) .challenge-card__accent {
  background: linear-gradient(135deg, rgba(104, 108, 117, 0.1), rgba(255, 255, 255, 0.7));
}

.challenge-card__tag,
.challenge-card__time {
  margin: 0;
  color: #004492;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.challenge-card__time {
  margin-top: 0.55rem;
}

.challenge-card h2 {
  margin: 0 0 0.8rem;
  font-size: 1.6rem;
}

.challenge-card p {
  color: var(--text-muted);
}

.challenge-card .button,
.app-card .button,
.resource-card .button,
.tool-card .button {
  margin-top: auto;
}

.challenge-card--cta {
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.16) 1px, transparent 0),
    linear-gradient(135deg, var(--accent), var(--accent-strong));
  background-size: 24px 24px, auto;
  color: #ffffff;
}

.challenge-card--cta .eyebrow,
.challenge-card--cta p {
  color: rgba(255, 255, 255, 0.82);
}

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

.section-panel {
  padding: 1.5rem;
}

.section-panel h3 {
  margin: 0 0 1rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.section-panel ul,
.resource-list,
.tool-list {
  margin: 0;
  padding-left: 1.15rem;
}

.section-panel li,
.resource-list li,
.tool-list li {
  margin-top: 0.65rem;
}

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

.downloads-grid,
.tool-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.app-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-card__media {
  display: block;
  margin: -1.45rem -1.45rem 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 81, 172, 0.08);
  background:
    radial-gradient(circle at top right, rgba(20, 105, 213, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(246, 248, 255, 0.98), rgba(239, 237, 237, 0.95));
}

.app-card__media:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.app-card__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.app-card__eyebrow,
.resource-card__label,
.tool-card__tag {
  color: var(--accent);
}

.app-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.downloads-grid {
  align-items: start;
}

.resource-card {
  display: grid;
  gap: 0.9rem;
}

.resource-card h3 {
  font-size: 1.5rem;
  margin: 0;
}

.resource-card__meta {
  margin-top: 0.3rem;
}

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

.tool-card {
  display: grid;
  gap: 0.9rem;
}

.tool-card__price {
  color: var(--accent);
  font-weight: 700;
}

.tool-callout {
  padding: clamp(1.6rem, 4vw, 2.2rem);
}

.tool-section h2 {
  margin: 0 0 0.3rem;
  font-size: 2.2rem;
}

.tool-section p,
.apps-section__intro {
  color: var(--text-muted);
}

.tool-list a,
.resource-list a,
.prose a,
.aside-panel a {
  color: var(--accent);
}

.article-shell__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 1.5rem;
  align-items: start;
}

.article-panel,
.article-aside .aside-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.article-meta {
  margin-top: 1rem;
  color: var(--text-soft);
}

.article-lede {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.article-featured-image {
  margin: 1.6rem 0 0;
}

.article-featured-image img,
.prose img {
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.article-prose {
  margin-top: 1.6rem;
}

.article-aside {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 6.6rem;
}

.aside-panel__label {
  margin: 0 0 0.9rem;
  color: var(--text-soft);
}

.aside-panel a {
  display: block;
  margin-top: 0.7rem;
  font-weight: 600;
}

.prose {
  color: var(--text);
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2,
.prose h3 {
  margin: 2.2rem 0 0.8rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.prose p,
.prose ul,
.prose ol,
.prose table,
.prose blockquote {
  margin: 1rem 0;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li {
  margin-top: 0.45rem;
}

.prose hr {
  height: 1px;
  border: 0;
  margin: 2.2rem 0;
  background: rgba(114, 119, 133, 0.16);
}

.prose strong {
  color: var(--text);
}

.prose blockquote {
  padding: 1.2rem 1.35rem;
  border-radius: 1.2rem;
  background: rgba(239, 237, 237, 0.86);
  color: var(--text-muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  padding: 0.9rem 1rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.88);
}

.prose tr + tr td,
.prose tr + tr th {
  border-top: 0.75rem solid transparent;
}

.prose iframe {
  width: 100%;
  min-height: 56rem;
  border: 0;
  border-radius: 1.4rem;
  box-shadow: var(--shadow-soft);
}

.site-footer {
  padding: 0 0 2.2rem;
}

.site-footer__shell,
.site-footer__meta {
  width: var(--page-width);
  margin: 0 auto;
}

.site-footer__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(239, 237, 237, 0.86), rgba(245, 243, 243, 0.96));
  border-radius: var(--radius-lg);
}

.site-footer__brand p {
  max-width: 28rem;
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

.site-footer__heading {
  margin: 0 0 0.8rem;
  color: var(--text-soft);
}

.site-footer__column {
  display: grid;
  gap: 0.45rem;
}

.site-footer__column a:hover,
.site-footer__wordmark:hover {
  color: var(--accent);
}

.site-footer__meta {
  padding-top: 1rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.92rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1280px) {
  .page--home .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    gap: clamp(2rem, 4vw, 4rem);
  }

  .page--home .hero-visual {
    min-height: 36rem;
    padding: 2.4rem 1rem 2rem 3rem;
  }

  .page--home .hero-visual__stack {
    max-width: 24rem;
  }
}

@media (min-width: 1400px) {
  .page--maker404-apps .directory-shell {
    grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
    gap: clamp(1.5rem, 2vw, 2.5rem);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .feature-grid,
  .article-shell__grid {
    grid-template-columns: 1fr;
  }

  .story-grid,
  .pillar-grid,
  .challenge-grid,
  .tool-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-shell {
    grid-template-columns: 1fr;
  }

  .directory-rail,
  .article-aside {
    position: static;
  }
}

@media (max-width: 860px) {
  .site-header__shell {
    padding-inline: 1rem;
  }

  .site-nav,
  .site-header__actions .button--nav {
    display: none;
  }

  .site-header__toggle {
    display: inline-flex;
  }

  .hero-visual {
    min-height: 22rem;
    padding: 1rem 0;
  }

  .hero-visual__plane {
    inset: 0;
    transform: none;
  }

  .hero-visual__stack {
    margin: 0;
    max-width: none;
    padding: 1.5rem;
  }

  .expert-note--floating {
    justify-self: stretch;
    width: auto;
    margin: 0;
    transform: rotate(0deg);
  }

  .story-grid,
  .pillar-grid,
  .challenge-grid,
  .downloads-grid,
  .tool-feature-grid,
  .guidance-grid,
  .apps-grid,
  .apps-grid--compact,
  .tool-list-grid,
  .site-footer__shell {
    grid-template-columns: 1fr;
  }

  .pillar-grid--home .pillar-card {
    min-height: auto;
  }

  .section-head--split,
  .directory-hero,
  .cta-band,
  .tool-callout {
    align-items: start;
  }

  .site-footer__shell {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 0.75rem;
  }

  .site-brand__tag {
    padding-left: 0.35rem;
  }

  .site-brand__mark {
    padding: 0.38rem 0.68rem 0.42rem 0.66rem;
  }

  .site-brand__maker,
  .site-brand__digit {
    font-size: 1.16rem;
  }

  .site-brand__tag-stamp {
    padding: 0.18rem 0.46rem 0.16rem;
    font-size: 0.45rem;
  }

  .page-shell,
  .article-shell {
    width: min(100% - 1rem, 54rem);
  }

  .page-panel,
  .article-panel,
  .directory-section,
  .apps-section,
  .cta-band,
  .tool-callout {
    padding: 1.2rem;
  }

  .hero-title,
  .directory-hero__title,
  .page-title,
  .article-title {
    font-size: clamp(2.3rem, 12vw, 4rem);
  }

  .button,
  .button-row > .button {
    width: 100%;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .prose iframe {
    min-height: 48rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
