@import url("https://fonts.googleapis.com/css2?family=Suez+One&family=Rubik:wght@300;400;600;700&display=swap");

/* ============================================================
   deLily Apps — Global Stylesheet
   Colors: purple #2D1B69, pink #F5A0C0, teal #3CEBC2,
           dark-navy #1A103F, white, light grays
   ============================================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple: #2d1b69;
  --purple-dark: #1a103f;
  --purple-light: #3d2b7a;
  --pink: #f5a0c0;
  --pink-light: #fddde6;
  --teal: #00ffa8;
  --teal-dark: #00cc86;
  --white: #ffffff;
  --off-white: #f8f7fc;
  --gray-light: #edeaf5;
  --gray: #9892a6;
  --text-dark: #2a2438;
  --text-body: #4a4458;

  --font-main: "Rubik", "Segoe UI", sans-serif;
  --font-display: "Suez One", Georgia, serif;

  --max-width: 1300px;
  --header-h: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(26, 16, 63, 0.12);
  --shadow-lg: 0 8px 40px rgba(26, 16, 63, 0.18);
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-weight: 300;
  color: var(--text-body);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--teal-dark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--teal);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.25;
}
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
}
h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
}
p {
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utility ---------- */
.text-center {
  text-align: center;
}
.text-white {
  color: var(--white);
}
.text-pink {
  color: var(--pink);
}
.text-teal {
  color: var(--teal);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-teal {
  background: var(--teal);
  color: var(--purple-dark);
}
.btn-teal:hover {
  background: #50f0d0;
  color: var(--purple-dark);
}
.btn-pink {
  background: var(--pink);
  color: var(--purple-dark);
}
.btn-pink:hover {
  background: #f7b0cc;
  color: var(--purple-dark);
}
.btn-purple {
  background: #5b2c92;
  color: var(--white);
}
.btn-purple:hover {
  background: #6e3aab;
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* ---------- Store Badges ---------- */
.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.store-badges img {
  width: 204px;
  height: 62px;
  border-radius: 0;
}
.store-badges a:hover img {
  transform: translateY(-2px);
  filter: brightness(1.1);
}
.store-badges a {
  transition: transform var(--transition);
}

/* ============================================================
   HEADER / NAV (removed — nav bar no longer used on home)
   ============================================================ */
.site-header {
  background: var(--purple);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(26, 16, 63, 0.3);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.site-logo img {
  width: 214px;
  height: 126px;
}
.site-logo:hover img {
  filter: brightness(1.15);
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition:
    background var(--transition),
    color var(--transition);
}
.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}
.nav-toggle svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--purple-dark);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 16px 24px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
  }
}

/* ============================================================
   HERO — used on home + app pages
   ============================================================ */
.hero {
  background: rgb(86, 33, 137);
  padding: 48px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-home {
  padding: 0;
  height: 600px;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gray-light);
}

/* ---------- Hero top bar: logo + language ---------- */
.hero-top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 30px;
  padding: 0;
  margin-left: 100px;
}

.hero-logo-bg {
  width: 295px;
  height: 190px;
  background: var(--purple-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 16px 16px;
}
.hero-logo-bg .site-logo img {
  width: 214px;
  height: 126px;
}

/* ---------- Language Dropdown ---------- */
.lang-dropdown {
  position: relative;
  margin-top: 20px;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-dark);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  color: var(--white);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition);
}
.lang-toggle:hover {
  background: var(--purple-light);
}
.lang-flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--purple-dark);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 100%;
  z-index: 20;
}
.lang-dropdown.open .lang-menu {
  display: block;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition);
}
.lang-option:hover {
  background: var(--purple-light);
  color: var(--white);
}
.lang-option.active {
  background: rgba(60, 235, 194, 0.15);
  color: var(--teal);
}

/* -- Shared hero container -- */
.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding-top: 20px;
}
.hero-text {
  flex: 1;
  color: var(--white);
  max-width: 600px;
}
.hero-text .label {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 5px;
  color: var(--teal);
  margin-bottom: 8px;
  margin-top: 24px;
}
.hero-text h1 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 72px;
  font-weight: 500;
}
.hero-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  margin-bottom: 24px;
  max-width: 450px;
}

/* -- Homepage hero: image is outside .container, absolutely positioned -- */
.hero-home .container {
  max-width: none;
  margin-left: 0;
  padding-left: 100px;
}
.hero-home > .hero-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: auto;
  z-index: 1;
}
.hero-home > .hero-image img {
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: right center;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
}

/* -- Full-width hero image (Wagie, Cyber Kanji, Koala Chat) -- */
.hero-fullwidth > .hero-image {
  left: 0;
  right: 0;
  width: 100%;
}
.hero-fullwidth > .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.3;
}
.hero-fullwidth.hero-opaque > .hero-image img {
  opacity: 1;
}

/* -- App page hero: image is inside .container as a flex child -- */
.hero .container .hero-image {
  flex: 0 0 auto;
  width: 340px;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero .container .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Hero < 1300px: homepage faded static background ---------- */
@media (max-width: 1299px) {
  .hero-home > .hero-image {
    transform: none !important;
  }
  .hero-home > .hero-image img {
    opacity: 0.15;
  }
  .hero-fullwidth > .hero-image img {
    opacity: 0.3;
  }
  .hero-fullwidth.hero-opaque > .hero-image img {
    opacity: 1;
  }
  .hero-top-bar {
    margin-left: 0;
    justify-content: center;
  }
  .lang-dropdown {
    display: none;
  }
  .hero-home .container {
    padding-left: 24px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 0;
  }
  .hero-home {
    padding: 0 0 60px;
  }
  .hero .container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .hero .container .hero-image {
    width: 220px;
  }
  .hero-text {
    align-items: center;
    display: flex;
    flex-direction: column;
  }
  .store-badges {
    justify-content: center;
  }
  .hero-top-bar {
    justify-content: center;
    margin-left: 0;
  }
  .lang-dropdown {
    display: none;
  }
  .hero-logo-bg {
    width: 200px;
    height: 130px;
  }
  .hero-logo-bg .site-logo img {
    width: 150px;
    height: auto;
  }
}

/* ============================================================
   SECTION DIVIDER — white border + downward triangle
   ============================================================ */
.section-divider {
  position: relative;
  height: 0;
  border-top: 9px solid var(--white);
  z-index: 5;
}
.section-divider .divider-triangle {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 42px solid transparent;
  border-right: 42px solid transparent;
  border-top: 36px solid var(--white);
}
.section-divider.divider-dark .divider-triangle {
  border-top-color: var(--white);
}

.torn-edge {
  position: relative;
  border-top: 2px solid var(--gray-light);
}

/* ============================================================
   HOME — App Grid
   ============================================================ */
.apps-section {
  padding: 80px 0;
  background-color: var(--white);
  background-image: url("/images/shared/purple-background.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.apps-section h2 {
  text-align: center;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 50px;
  font-weight: 500;
}
.apps-section .subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--white);
  font-size: 18px;
}

.app-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.app-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  display: flex;
  flex-direction: row;
  border: 4px solid var(--white);
  width: 610px;
  flex-shrink: 0;
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.app-card-image {
  flex: 0 0 35%;
  aspect-ratio: 1;
  overflow: hidden;
  width: 310px;
  height: 405px;
}
.app-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.app-card-body .app-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.app-card-body .app-card-header img {
  display: none;
}
.app-card-body h3 {
  margin-bottom: 0;
  font-size: 32px;
  letter-spacing: 1.7px;
  font-weight: 400;
}
.app-card-body h3 a {
  color: #000000;
}
.app-card-body h3 a:hover {
  color: var(--teal-dark);
}
.app-card-body p {
  font-size: 18px;
  color: #000000;
  margin-bottom: 36px;
}

.app-card .store-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.app-card .store-badges img {
  width: 204px;
  height: 62px;
}

/* Featured app card — larger */
.app-card.featured {
  grid-column: 1 / -1;
}

@media (max-width: 1280px) {
  .app-card {
    width: 610px;
  }
}
@media (max-width: 660px) {
  .app-card {
    width: 100%;
  }
  .app-card-image {
    display: none;
  }
  .app-card-body .app-card-header img {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }
  .app-card-body h3 {
    font-size: 22px;
  }
  .app-card-body p {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .app-card .store-badges img {
    width: 130px;
    height: 40px;
  }
}

/* ============================================================
   APP DETAIL — Tagline / Quote Section
   ============================================================ */
.tagline-section {
  padding: 64px 0;
  background: var(--white);
  text-align: center;
}
.tagline-section .quote {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  font-style: italic;
  color: var(--purple);
  max-width: 700px;
  margin: 0 auto 12px;
}
.tagline-section .quote-sub {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto 16px;
}
.tagline-section .disclaimer {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 16px;
}

/* ============================================================
   APP DETAIL — 3-Screenshot Row
   ============================================================ */
.screenshots-section {
  padding: 64px 0;
  background-color: var(--purple);
  background-image: url("/images/shared/purple-background.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.screenshots-section h2 {
  color: var(--white);
}
.screenshots-section ul {
  color: var(--white);
}
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.screenshot-item {
  text-align: center;
}
.screenshot-item h3 {
  margin-bottom: 16px;
  color: var(--white);
}
.screenshot-item .phone-frame {
  width: 220px;
  margin: 0 auto 20px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--white);
}
.screenshot-item .phone-frame img {
  width: 100%;
  display: block;
}
.screenshot-item p {
  font-size: 0.92rem;
  max-width: 320px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .screenshots-section {
    background-attachment: scroll;
  }
}

/* ============================================================
   APP DETAIL — Content Blocks (alternating)
   ============================================================ */
.content-block {
  padding: 80px 0;
}
.content-block .container {
  display: flex;
  align-items: center;
  gap: 60px;
}
.content-block .block-text {
  flex: 1;
}
.content-block .block-text h2 {
  margin-bottom: 16px;
}
.content-block .block-image {
  flex: 0 0 360px;
}

/* Placeholder for stock photos */
.placeholder-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.placeholder-img.purple-grad {
  background: linear-gradient(135deg, var(--purple) 0%, #5b3fa0 100%);
  color: rgba(255, 255, 255, 0.4);
}
.placeholder-img.teal-grad {
  background: linear-gradient(135deg, #1abfa0 0%, var(--teal) 100%);
  color: rgba(255, 255, 255, 0.4);
}
.placeholder-img.pink-grad {
  background: linear-gradient(135deg, #e088a8 0%, var(--pink-light) 100%);
  color: rgba(255, 255, 255, 0.4);
}
.placeholder-img.blue-grad {
  background: linear-gradient(135deg, #2d5fa0 0%, #6b9fe0 100%);
  color: rgba(255, 255, 255, 0.4);
}

/* Reverse layout for even blocks */
.content-block.reverse .container {
  flex-direction: row-reverse;
}

/* Background color variants */
.content-block.bg-white {
  background: var(--white);
}
.content-block.bg-light {
  background: var(--off-white);
}
.content-block.bg-teal {
  background: #e8fbf6;
}
.content-block.bg-pink {
  background: #fff0f5;
}
.content-block.bg-purple {
  background: var(--purple);
}
.content-block.bg-purple h2,
.content-block.bg-purple p {
  color: var(--white);
}

@media (max-width: 768px) {
  .content-block .container {
    flex-direction: column !important;
    text-align: center;
  }
  .content-block .block-image {
    flex: none;
    width: 280px;
    order: -1;
  }
}

/* ============================================================
   CTA — Bottom of App Pages
   ============================================================ */
.cta-section {
  padding: 64px 0;
  padding-bottom: calc(64px + 8.33vw);
  background: var(--purple);
  text-align: center;
  position: relative;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}
.cta-section h2 {
  color: var(--white);
  margin-bottom: 8px;
}
.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
}
.cta-section .store-badges {
  justify-content: center;
}
.cta-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 0;
  padding-bottom: 8.33%; /* 200/2400 aspect ratio */
  background: url("/images/shared/clouds.png") center / 100% 100% no-repeat;
  transform: scaleY(-1);
}

/* ============================================================
   FORMS — Tester Sign-up + Delete Data
   ============================================================ */
.form-section {
  padding: 80px 0;
  padding-bottom: calc(80px + 8.33vw);
  background: var(--off-white);
  background-image: url("/images/shared/tester-background.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}
.form-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 0;
  padding-bottom: 8.33%; /* 200/2400 aspect ratio */
  background: url("/images/shared/clouds.png") center / 100% 100% no-repeat;
  transform: scaleY(-1);
}
.form-section .container {
  display: flex;
  gap: 0;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.form-left {
  flex: 0 0 500px;
  width: 500px;
}
.tester-heading {
  color: var(--teal) !important;
  font-size: 42px;
  margin-bottom: 16px;
  font-weight: 500;
}
.form-text {
  position: absolute;
  left: clamp(548px, 50vw, 650px);
  right: 24px;
  top: var(--form-top-offset, 141px);
}
.form-text p {
  color: var(--white);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.3;
}

.form-wrapper {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-group .hint {
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: 4px;
}

.form-wrapper .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1024px) {
  .form-left {
    flex: 1;
    width: auto;
  }
  .form-text {
    position: static;
    margin-top: 32px;
    text-align: center;
  }
  .form-section .container {
    flex-direction: column;
    align-items: center;
  }
  .tester-heading {
    text-align: center;
  }
}

/* ---------- Delete data form (on privacy pages) ---------- */
.delete-form-section {
  padding: 60px 0;
  background: var(--off-white);
}
.delete-form-section h2 {
  text-align: center;
  margin-bottom: 12px;
}
.delete-form-section .subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 0.95rem;
}
.delete-form-section .form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   PRIVACY POLICY — Content
   ============================================================ */
.privacy-section {
  padding: 60px 0 40px;
  background: var(--white);
}
.privacy-section .container {
  max-width: 800px;
}
.privacy-section h1 {
  margin-bottom: 8px;
}
.privacy-section .last-updated {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.privacy-section h2 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 8px;
}
.privacy-section h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 8px;
}
.privacy-section p,
.privacy-section li {
  font-size: 0.95rem;
}
.privacy-section ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
.privacy-section li {
  margin-bottom: 6px;
}
.privacy-section a {
  color: var(--teal-dark);
  text-decoration: underline;
}
.privacy-section hr {
  border: none;
  border-top: 2px solid var(--gray-light);
  margin: 40px 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--white);
  color: var(--text-body);
  padding: 60px 0 0;
  position: relative;
  margin-top: -1px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

/* Logo card */
.footer-logo-card {
  width: 290px;
  background: var(--purple);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  margin-bottom: 32px;
}
.footer-logo-card .site-logo img {
  width: 200px;
  height: auto;
}

/* Footer headings */
.footer-heading {
  color: var(--purple-dark);
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 16px;
}

/* Social links list with text labels */
.social-links-list {
  list-style: none;
  margin-bottom: 32px;
}
.social-links-list li {
  margin-bottom: 12px;
}
.social-links-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-body);
  font-size: 0.95rem;
  text-decoration: underline;
  transition: color var(--transition);
}
.social-links-list a:hover {
  color: var(--teal-dark);
}
.social-links-list svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--purple);
  color: var(--white);
  padding: 7px;
  border-radius: 8px;
}

/* Footer resources */
.footer-resources {
  list-style: none;
}
.footer-resources li {
  margin-bottom: 10px;
}
.footer-resources a {
  color: var(--text-body);
  font-size: 0.95rem;
  text-decoration: underline;
}
.footer-resources a:hover {
  color: var(--teal-dark);
}

/* Footer app list */
.footer-apps .footer-heading {
  font-size: 1.4rem;
  font-weight: 300;
}
.footer-app-list {
  list-style: none;
}
.footer-app-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.footer-app-list img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
}
.footer-app-list a {
  color: var(--text-dark);
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}
.footer-app-list a:hover {
  color: var(--teal-dark);
}
.footer-app-list .app-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  display: block;
  line-height: 1.4;
  max-width: 450px;
}

.footer-bottom {
  position: relative;
  background: #120822;
  color: var(--teal);
  text-align: center;
  font-size: 0.85rem;
  padding: calc(8.33vw + 10px) 0 40px;
}
.footer-bottom::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0;
  padding-bottom: 8.33%; /* 200/2400 aspect ratio */
  background: url("/images/shared/clouds.png") center / 100% 100% no-repeat;
}

/* -- App page footer: .footer-brand, .social-links, .footer-links -- */
.footer-brand .site-logo img {
  width: 200px;
  height: auto;
  margin-bottom: 24px;
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--purple);
  color: var(--white);
  border-radius: 8px;
  transition: background var(--transition);
}
.social-links a:hover {
  background: var(--purple-light);
  color: var(--white);
}
.social-links svg {
  width: 20px;
  height: 20px;
}
.footer-links h4 {
  color: var(--purple-dark);
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 16px;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--text-body);
  font-size: 0.95rem;
  text-decoration: underline;
}
.footer-links a:hover {
  color: var(--teal-dark);
}
.footer-apps h4 {
  color: var(--purple-dark);
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 16px;
}
/* App page .footer-grid with 3 columns */
.footer-grid:has(.footer-links) {
  grid-template-columns: 1fr 1fr 1fr;
}
/* App page .footer-bottom inside container (no clouds) */
.site-footer .container > .footer-bottom {
  border-top: 1px solid var(--gray-light);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
  background: none;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid:has(.footer-links) {
    grid-template-columns: 1fr;
  }
  .footer-left,
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
  .social-links-list a {
    justify-content: center;
  }
  .footer-links {
    text-align: center;
  }
  .footer-apps {
    text-align: center;
  }
  .footer-app-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ============================================================
   COMING SOON — Koala Chat
   ============================================================ */
.coming-soon-section {
  padding: 80px 0;
  text-align: center;
}
.coming-soon-section .badge {
  display: inline-block;
  background: var(--pink-light);
  color: var(--purple);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

/* Google Fonts loaded via @import at top of file */
