/* =================================================================
   PapaDevApps — Apps for Kids
   ================================================================= */

:root {
  --orange-1: #ff9a4d;
  --orange-2: #ff6a2f;
  --orange-3: #e8511f;
  --green-1: #8bd17c;
  --green-2: #4caf50;
  --green-3: #2e7d32;
  --green-cream: #f2f7ea;
  --pink-1: #ffb3d1;
  --pink-2: #f0699e;
  --pink-3: #d1447e;
  --pink-cream: #fff1ee;
  --dgreen-1: #6f9d6a;
  --dgreen-2: #3c6b45;
  --dgreen-3: #1f4229;
  --dgreen-cream: #eef3e6;
  --red-1: #f38b7c;
  --red-2: #e2503d;
  --red-3: #b23324;
  --red-cream: #fdf0ee;
  --dblue-1: #6f8fb3;
  --dblue-2: #33587e;
  --dblue-3: #17324d;
  --dblue-cream: #eef2f6;
  --forest-1: #9dc07c;
  --forest-2: #55803f;
  --forest-3: #3b3020;
  --forest-cream: #f5f1e4;
  --cream: #fff8ef;
  --ink: #3a2a1e;
  --ink-soft: #6b5847;
  --blue: #4f7c99;
  --blue-deep: #35566b;
  --lavender: #f3f2f8;
  --white: #ffffff;
  --shadow-sm: 0 6px 18px rgba(58, 42, 30, 0.08);
  --shadow-md: 0 16px 40px rgba(58, 42, 30, 0.14);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --font: "Nunito", "Quicksand", "Comic Neue", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Error pages (404, etc.): let the hero fill the space above the footer
   instead of leaving a blank gap when there's no content below it. */
.error-page .page-hero {
  flex: 1;
  display: flex;
  align-items: center;
}

.error-page .app-hero-inner {
  padding-top: 110px;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
}

p {
  margin: 0;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}

.skip-link:focus {
  left: 0;
}

section {
  position: relative;
}

/* -------------------- Header -------------------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: inline-flex;
}

.logo-img {
  height: 46px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.nav-link {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--cream);
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-link:hover {
  background: rgba(255, 241, 232, 0.92);
  color: var(--orange-3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------------------- Hero -------------------- */

.hero {
  position: relative;
  background: radial-gradient(120% 140% at 12% 0%, var(--orange-1) 0%, var(--orange-2) 52%, var(--orange-3) 100%);
  padding-bottom: 90px;
  overflow: hidden;
}

.doodle {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.doodle-leaf-1 {
  width: 130px;
  top: 12%;
  left: 4%;
  transform: rotate(-12deg);
}

.doodle-star-1 {
  width: 70px;
  top: 8%;
  right: 12%;
}

.doodle-leaf-2 {
  width: 150px;
  top: 30%;
  right: -2%;
  transform: rotate(8deg);
}

.doodle-constellation {
  width: 380px;
  top: 18%;
  right: 30%;
}

.doodle-paw-1 {
  width: 64px;
  bottom: 6%;
  left: 3%;
  transform: rotate(-10deg);
}

.doodle-paw-2 {
  width: 50px;
  bottom: 3%;
  right: 20%;
  transform: rotate(18deg);
}

.doodle-paw-3 {
  width: 32px;
  top: 9%;
  right: 40%;
  transform: rotate(-25deg);
}

.doodle-paw-4 {
  width: 110px;
  bottom: -3%;
  left: 46%;
  transform: rotate(8deg);
}

.doodle-paw-5 {
  width: 26px;
  top: 24%;
  left: 51%;
  transform: rotate(20deg);
}

.doodle-leaf-3 {
  width: 160px;
  bottom: -6%;
  right: 4%;
  transform: rotate(20deg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 128px 32px 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 24px;
}

.hero-title {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.hero-title-kicker {
  display: block;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  letter-spacing: 0.01em;
  opacity: 0.92;
  margin-bottom: 20px;
}

.hero-title-line {
  display: block;
}

.hero-sub {
  color: var(--cream);
  max-width: 460px;
  margin: 26px 0 34px;
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--white);
  color: var(--orange-3);
  box-shadow: 0 10px 24px rgba(120, 40, 10, 0.28);
}

.btn-primary:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 14px 30px rgba(120, 40, 10, 0.34);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.btn-light {
  background: var(--cream);
  color: var(--orange-3);
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
}

.btn-light:hover {
  transform: translateY(-3px) rotate(1deg);
  box-shadow: var(--shadow-md);
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 360px;
}

.lion-img {
  position: relative;
  z-index: 2;
  width: min(495px, 96%);
  transform: rotate(-2deg);
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.18));
}

/* -------------------- Reveal animation -------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- Apps section -------------------- */

.apps {
  background: var(--cream);
  padding: 50px 32px 50px;
}

.section-head {
  max-width: 600px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-kicker {
  color: var(--orange-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-kicker.light {
  color: rgba(255, 255, 255, 0.85);
}

.apps h2,
.contact h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.apps h2 {
  color: #ee7844;
  font-size: clamp(2.35rem, 4.7vw, 3.3rem);
}

.about .section-head h2 {
  color: #ee7844;
  font-size: clamp(2.35rem, 4.7vw, 3.3rem);
  letter-spacing: -0.01em;
}

.about .section-head {
  margin-bottom: 56px;
}

.contact h2 {
  color: var(--white);
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.section-sub em {
  color: var(--orange-3);
  font-style: normal;
}

.section-sub.light {
  color: rgba(255, 255, 255, 0.9);
}

.strengths h2 {
  color: var(--white);
  font-size: clamp(2.35rem, 4.7vw, 3.3rem);
}

.apps-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.app-card {
  flex: 0 1 268px;
  width: 268px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 11px 11px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 57px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.app-card:nth-child(3n+1) {
  transform: rotate(-1.4deg);
}

.app-card:nth-child(3n+2) {
  transform: rotate(0.8deg);
}

.app-card:nth-child(3n) {
  transform: rotate(-0.6deg);
}

.app-card:hover {
  transform: translateY(-8px) rotate(0deg);
  box-shadow: var(--shadow-md);
}

.app-icon-img {
  width: 128px;
  height: 128px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(58, 42, 30, 0.2);
  margin: 0 auto 20px;
  margin-top: -76px;
}

.app-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.app-tag {
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 20px;
  min-height: 66px;
}

.app-link {
  color: var(--orange-3);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* -------------------- Strengths section -------------------- */

.strengths {
  background: radial-gradient(120% 140% at 50% 0%, var(--orange-1) 0%, var(--orange-2) 55%, var(--orange-3) 100%);
  padding: 50px 32px 50px
}

.strengths .section-head {
  max-width: 720px;
}

.strengths-list {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.strength-block {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 28px;
}

.strength-block--reverse {
  grid-template-columns: 1.2fr 0.8fr;
}

.strength-block--reverse .strength-media {
  order: 2;
}

.strength-block--reverse .strength-card {
  order: 1;
}

.strength-block--reverse .strength-mascot {
  right: auto;
  left: -120px;
}

.strength-block--reverse .strength-card {
  padding-bottom: 170px;
}

.strength-media img {
  display: block;
  width: 90%;
  margin: 0 auto;
  aspect-ratio: 10 / 11;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.strength-media img.media-landscape {
  object-position: 32% center;
}

.strength-card {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  box-shadow: var(--shadow-md);
}

.strength-card h3 {
  font-size: clamp(1.68rem, 2.88vw, 2.16rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.strength-card p {
  color: var(--ink-soft);
  font-size: 1.26rem;
  line-height: 1.65;
  max-width: 46ch;
}

.strength-mascot {
  position: absolute;
  bottom: -120px;
  right: -120px;
  width: 240px;
  z-index: 2;
  filter: drop-shadow(0 14px 20px rgba(58, 42, 30, 0.25));
}

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

.about {
  max-width: 1240px;
  margin: 0 auto;
  padding: 50px 32px 50px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.about-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-photo {
  position: relative;
  z-index: 1;
  width: min(420px, 92%);
  filter: drop-shadow(0 20px 24px rgba(58, 42, 30, 0.16));
}

.about-text h3 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 22px;
}

.about-text p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 18px;
  font-size: 1.05rem;
  max-width: 54ch;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.about-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.about-stats strong {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange-3);
}

.about-stats span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

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

.contact {
  background: radial-gradient(120% 140% at 88% 100%, var(--orange-1) 0%, var(--orange-2) 55%, var(--orange-3) 100%);
  padding: 80px 32px;
  overflow: hidden;
  text-align: center;
}

.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
}

.contact-sub {
  color: var(--cream);
  margin: 20px 0 36px;
  font-size: 1.08rem;
  line-height: 1.6;
}

.contact-social {
  justify-content: center;
  margin-top: 30px;
}

/* -------------------- Footer -------------------- */

.site-footer {
  background: var(--orange-3);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 34px;
  opacity: 0.92;
}

.footer-nav {
  display: flex;
  gap: 26px;
}

.footer-nav a {
  color: var(--cream);
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--cream);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.28);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-copy {
  color: rgba(255, 248, 239, 0.75);
  font-size: 0.85rem;
}

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

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-media {
    margin-top: 0px;
  }

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

  .about-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .about-stats {
    justify-content: center;
  }

  .strengths .section-head {
    margin-bottom: 44px;
  }

  .strengths-list {
    max-width: 700px;
    gap: 56px;
  }

  .strength-block {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .strength-media {
    display: none;
  }

  .strength-card {
    padding: 32px 24px 150px;
  }

  .strength-card p {
    max-width: none;
    margin: 0 auto;
  }

  .strength-mascot {
    width: 184px;
    bottom: -20px;
    right: -10px;
  }

  .strength-block--reverse .strength-mascot {
    right: auto;
    left: -10px;
  }

  .contact {
    padding: 50px 32px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 22px 20px 0;
  }

  .main-nav {
    position: absolute;
    top: 84px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    background: var(--orange-3);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-md);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    text-align: center;
    padding: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-bottom: 20px;
  }

  .hero-inner {
    padding: 150px 20px 0;
  }

  .apps {
    padding: 30px 20px;
  }

  .strengths {
    padding: 30px 20px;
  }

  .about {
    padding: 30px 20px;
  }

  .about-grid {
    gap: 20px;
  }

  .about .section-head {
    margin-bottom: 0px;
  }

  .apps-grid {
    flex-direction: column;
    align-items: center;
  }

  .app-card {
    width: 100%;
    max-width: 380px;
    transform: none !important;
    flex: 0 1 240px;
  }

  .app-tag {
    margin-bottom: 0px;
  }

  .contact {
    padding: 30px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
/* -------------------- App detail page -------------------- */

.app-hero {
  position: relative;
  background: radial-gradient(120% 140% at 12% 0%, var(--orange-1) 0%, var(--orange-2) 52%, var(--orange-3) 100%);
  padding-bottom: 90px;
  overflow: hidden;
}

/* Simple content-page hero (Support, Privacy Policy, etc.) - shorter than .app-hero */
.page-hero {
  position: relative;
  background: radial-gradient(120% 140% at 12% 0%, var(--orange-1) 0%, var(--orange-2) 52%, var(--orange-3) 100%);
  padding-bottom: 30px;
  overflow: hidden;
}

.app-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 128px 32px 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 48px;
}

.app-phone {
  position: relative;
  display: flex;
  justify-content: center;
}

.app-phone::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  max-width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

.phone-mock {
  position: relative;
  z-index: 1;
  width: min(280px, 78%);
  background: #ffffff;
  border: 1px solid rgba(58, 42, 30, 0.08);
  border-radius: 46px;
  padding: 14px 12px;
  box-shadow: var(--shadow-md);
}

.phone-mock-screen-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1179 / 2556;
  border-radius: 32px;
  overflow: hidden;
  background: var(--cream);
}

.phone-mock-screen-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6.5%;
  background: #fdf6e9;
  z-index: 3;
}

.phone-mock-screen-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 32px;
}

/* Landscape screenshot variant (e.g. tablet-style app UI) */
.phone-mock--landscape {
  width: min(630px, 92%);
  padding: 12px 14px;
  border-radius: 40px;
}

.phone-mock-screen-wrap--landscape {
  aspect-ratio: 2556 / 1179;
  border-radius: 26px;
}

.phone-mock-screen-wrap--landscape img {
  border-radius: 26px;
}

.app-hero-inner--landscape {
  grid-template-columns: 1.2fr 1fr;
}

/* No-phone variant: single centered column (e.g. no screenshot available yet) */
.app-hero-inner--solo {
  grid-template-columns: 1fr;
  max-width: 640px;
}

.app-info {
  text-align: center;
}

.app-info-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.app-info-icon {
  width: 168px;
  height: 168px;
  border-radius: 34px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(58, 42, 30, 0.25);
  flex-shrink: 0;
}

.app-info-title {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.app-info-subtitle {
  color: var(--cream);
  font-size: 1.1rem;
  line-height: 1.5;
  opacity: 0.95;
}

.app-info-meta {
  color: var(--cream);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  margin: 0px 0 26px;
  opacity: 0.95;
}

.app-store-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.app-store-badges img {
  height: 48px;
  width: auto;
  transition: transform 0.2s ease;
}

.app-store-badges a:hover img {
  transform: translateY(-3px);
}

/* -------- Story / description -------- */

.app-story {
  background: var(--cream);
  padding: 40px 32px;
}

.app-story-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.app-story-inner p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 22px;
}

.app-story-inner p:last-child {
  margin-bottom: 0;
}

/* -------- What's inside -------- */

.app-features {
  background: radial-gradient(120% 140% at 50% 0%, var(--orange-1) 0%, var(--orange-2) 55%, var(--orange-3) 100%);
  padding: 40px 32px;
}

.app-features .section-head h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 2.9rem);
}

.app-features-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.app-feature-card {
  flex: 1 1 240px;
  max-width: 280px;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.app-feature-card .feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(232, 81, 31, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--orange-3);
}

.app-feature-card .feature-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.app-feature-card p {
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 0.98rem;
}

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

.app-faq {
  background: var(--cream);
  padding: 40px 32px;
}

.app-faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.app-faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
}

.app-faq-item h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 10px;
  font-weight: 800;
}

.app-faq-item p {
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 1rem;
}

/* -------- CTA -------- */

.app-cta {
  background: radial-gradient(120% 140% at 88% 100%, var(--orange-1) 0%, var(--orange-2) 55%, var(--orange-3) 100%);
  padding: 40px 32px;
  overflow: hidden;
  text-align: center;
}

.app-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
}

.app-cta h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.01em;
  margin-bottom: 30px;
}

.app-cta-kicker {
  display: block;
  font-size: 0.72em;
  font-weight: 700;
  opacity: 0.92;
  margin-bottom: 8px;
}

.app-cta-title-line {
  display: block;
}

.app-cta .app-store-badges {
  justify-content: center;
}

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

@media (max-width: 980px) {
  .app-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .app-phone {
    display: none;
  }

  .app-info-head {
    flex-direction: column;
    text-align: center;
  }

  .app-store-badges {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .app-hero-inner {
    padding: 150px 20px 0;
  }

  .app-hero {
    padding-bottom: 40px;
  }

  .app-story,
  .app-features,
  .app-faq {
    padding: 50px 20px;
  }

  .app-cta {
    padding: 50px 20px;
  }

  .phone-mock {
    width: min(240px, 72%);
  }
}


/* -------------------- App detail page: green variant (Anmix) -------------------- */

.app-hero--green {
  background: radial-gradient(120% 140% at 12% 0%, var(--green-1) 0%, var(--green-2) 52%, var(--green-3) 100%);
}

.app-features--green {
  background: radial-gradient(120% 140% at 50% 0%, var(--green-1) 0%, var(--green-2) 55%, var(--green-3) 100%);
}

.app-features--green .feature-icon {
  background: rgba(46, 125, 50, 0.12);
  color: var(--green-3);
}

.app-cta--green {
  background: radial-gradient(120% 140% at 88% 100%, var(--green-1) 0%, var(--green-2) 55%, var(--green-3) 100%);
}

.phone-mock-screen-wrap--green::before {
  background: #5daf63;
  height: 6.2%;
}

.site-footer--green {
  background: var(--green-3);
}

.app-story--green,
.app-faq--green {
  background: var(--green-cream);
}

.site-header--green .nav-link:hover {
  background: rgba(242, 247, 234, 0.92);
  color: var(--green-3);
}

@media (max-width: 760px) {
  .site-header--green .main-nav {
    background: var(--green-3);
  }
}

/* -------------------- App detail page: pink variant (Closer) -------------------- */

.app-hero--pink {
  background: radial-gradient(120% 140% at 12% 0%, var(--pink-1) 0%, var(--pink-2) 52%, var(--pink-3) 100%);
}

.app-features--pink {
  background: radial-gradient(120% 140% at 50% 0%, var(--pink-1) 0%, var(--pink-2) 55%, var(--pink-3) 100%);
}

.app-features--pink .feature-icon {
  background: rgba(209, 68, 126, 0.12);
  color: var(--pink-3);
}

.app-cta--pink {
  background: radial-gradient(120% 140% at 88% 100%, var(--pink-1) 0%, var(--pink-2) 55%, var(--pink-3) 100%);
}

.phone-mock-screen-wrap--pink::before {
  background: #ffffff;
  height: 6.5%;
}

.site-footer--pink {
  background: var(--pink-3);
}

.app-story--pink,
.app-faq--pink {
  background: var(--pink-cream);
}

.site-header--pink .nav-link:hover {
  background: rgba(255, 241, 238, 0.92);
  color: var(--pink-3);
}

@media (max-width: 760px) {
  .site-header--pink .main-nav {
    background: var(--pink-3);
  }
}

/* -------------------- App detail page: dark green variant (Encyclopedia) -------------------- */

.app-hero--dgreen {
  background: radial-gradient(120% 140% at 12% 0%, var(--dgreen-1) 0%, var(--dgreen-2) 52%, var(--dgreen-3) 100%);
}

.app-features--dgreen {
  background: radial-gradient(120% 140% at 50% 0%, var(--dgreen-1) 0%, var(--dgreen-2) 55%, var(--dgreen-3) 100%);
}

.app-features--dgreen .feature-icon {
  background: rgba(31, 66, 41, 0.12);
  color: var(--dgreen-3);
}

.app-cta--dgreen {
  background: radial-gradient(120% 140% at 88% 100%, var(--dgreen-1) 0%, var(--dgreen-2) 55%, var(--dgreen-3) 100%);
}

/* app5_screen.png is a landscape screenshot with no separate top status bar to mask,
   but it has a rotated Dynamic Island pill baked into the right edge of the image. */
.phone-mock-screen-wrap--dgreen::before {
  content: none;
}

.phone-mock-screen-wrap--dgreen::after {
  content: "";
  position: absolute;
  top: 30%;
  right: 0;
  width: 7%;
  height: 40%;
  background: #cbe3b8;
  z-index: 3;
}

.site-footer--dgreen {
  background: var(--dgreen-3);
}

.app-story--dgreen,
.app-faq--dgreen {
  background: var(--dgreen-cream);
}

.site-header--dgreen .nav-link:hover {
  background: rgba(238, 243, 230, 0.92);
  color: var(--dgreen-3);
}

@media (max-width: 760px) {
  .site-header--dgreen .main-nav {
    background: var(--dgreen-3);
  }
}

/* -------------------- App detail page: red variant (Motor Skills) -------------------- */

.app-hero--red {
  background: radial-gradient(120% 140% at 12% 0%, var(--red-1) 0%, var(--red-2) 52%, var(--red-3) 100%);
}

.app-features--red {
  background: radial-gradient(120% 140% at 50% 0%, var(--red-1) 0%, var(--red-2) 55%, var(--red-3) 100%);
}

.app-features--red .feature-icon {
  background: rgba(178, 51, 36, 0.12);
  color: var(--red-3);
}

.app-cta--red {
  background: radial-gradient(120% 140% at 88% 100%, var(--red-1) 0%, var(--red-2) 55%, var(--red-3) 100%);
}

/* app6_screen.png has no baked-in status bar or notch to mask, and its
   aspect ratio differs slightly from the shared portrait default. */
.phone-mock-screen-wrap--red {
  aspect-ratio: 800 / 1722;
}

.phone-mock-screen-wrap--red::before {
  content: none;
}

.site-footer--red {
  background: var(--red-3);
}

.app-story--red,
.app-faq--red {
  background: var(--red-cream);
}

.site-header--red .nav-link:hover {
  background: rgba(253, 240, 238, 0.92);
  color: var(--red-3);
}

@media (max-width: 760px) {
  .site-header--red .main-nav {
    background: var(--red-3);
  }
}

/* -------------------- App detail page: dark blue variant (Lullami) -------------------- */

.app-hero--dblue {
  background: radial-gradient(120% 140% at 12% 0%, var(--dblue-1) 0%, var(--dblue-2) 52%, var(--dblue-3) 100%);
}

.app-features--dblue {
  background: radial-gradient(120% 140% at 50% 0%, var(--dblue-1) 0%, var(--dblue-2) 55%, var(--dblue-3) 100%);
}

.app-features--dblue .feature-icon {
  background: rgba(23, 50, 77, 0.12);
  color: var(--dblue-3);
}

.app-cta--dblue {
  background: radial-gradient(120% 140% at 88% 100%, var(--dblue-1) 0%, var(--dblue-2) 55%, var(--dblue-3) 100%);
}

.site-footer--dblue {
  background: var(--dblue-3);
}

.app-story--dblue,
.app-faq--dblue {
  background: var(--dblue-cream);
}

.site-header--dblue .nav-link:hover {
  background: rgba(238, 242, 246, 0.92);
  color: var(--dblue-3);
}

@media (max-width: 760px) {
  .site-header--dblue .main-nav {
    background: var(--dblue-3);
  }
}

/* -------------------- App detail page: forest variant (Catch the Wolf) -------------------- */

.app-hero--forest {
  background: radial-gradient(120% 140% at 12% 0%, var(--forest-1) 0%, var(--forest-2) 52%, var(--forest-3) 100%);
}

.app-features--forest {
  background: radial-gradient(120% 140% at 50% 0%, var(--forest-1) 0%, var(--forest-2) 55%, var(--forest-3) 100%);
}

.app-features--forest .feature-icon {
  background: rgba(59, 48, 32, 0.12);
  color: var(--forest-3);
}

.app-cta--forest {
  background: radial-gradient(120% 140% at 88% 100%, var(--forest-1) 0%, var(--forest-2) 55%, var(--forest-3) 100%);
}

.phone-mock-screen-wrap--forest::before {
  content: none;
}

.site-footer--forest {
  background: var(--forest-3);
}

.app-story--forest,
.app-faq--forest {
  background: var(--forest-cream);
}

.site-header--forest .nav-link:hover {
  background: rgba(245, 241, 228, 0.92);
  color: var(--forest-3);
}

@media (max-width: 760px) {
  .site-header--forest .main-nav {
    background: var(--forest-3);
  }
}

/* -------------------- App-to-app pager (prev/next, lives inside .app-cta) -------------------- */

.app-pager {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 55px;
}

.app-pager-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  text-align: left;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: 1 1 220px;
  max-width: 280px;
}

.app-pager-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.app-pager-link--next {
  flex-direction: row-reverse;
  text-align: right;
}

.app-pager-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.app-pager-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.app-pager-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-pager-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .app-pager {
    flex-direction: column;
  }
  .app-pager-link,
  .app-pager-link--next {
    max-width: none;
    width: 100%;
    flex: none;
    flex-direction: row;
    text-align: left;
  }
}

/* -------------------- Legal / policy pages -------------------- */

.legal-section {
  background: var(--cream);
  padding: 56px 32px 90px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.legal-content h2 {
  font-size: 1.25rem;
  color: var(--orange-3);
  margin: 40px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.05rem;
  color: var(--orange-2);
  margin: 18px 0 8px;
}

.legal-content p {
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content a {
  color: var(--orange-3);
  font-weight: 700;
  text-decoration: underline;
}
