/* ============================================
   Rev.now - doodle aesthetic
   ============================================ */

:root {
  --cream: #fffaf0;
  --cream-2: #fdf6e3;
  --black: #1a1a1a;
  --pink: #ff5fa2;
  --pink-light: #ffb3d1;
  --yellow: #ffd84d;
  --yellow-light: #fff3a8;
  --purple: #7c5cff;
  --purple-dark: #5e3eff;
  --purple-light: #a78bfa;
  --green: #5fd97a;
  --green-dark: #22c55e;
  --blue: #5fb7ff;
  --blue-light: #a8d8ff;
  --cyan: #3eb8ff;
  --orange: #ff8a3c;
  --red: #ff3a5e;
  --gray-100: #f4f1ea;
  --gray-300: #d6d1c4;
  --gray-500: #8a8580;
  --gray-700: #4d4a45;

  --shadow-card: 4px 4px 0 var(--black);
  --shadow-card-hover: 6px 6px 0 var(--black);
  --border-thick: 3px solid var(--black);
  --border-med: 2.5px solid var(--black);
  --radius-card: 18px;
  --radius-pill: 999px;

  --font-display: 'Patrick Hand', 'Caveat', 'Comic Sans MS', cursive;
  --font-script: 'Caveat', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
*:before, *:after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ============= HEADER ============= */
.site-header {
  position: relative;
  z-index: 50;
  padding: 18px 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  position: relative;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo-crown {
  position: absolute;
  top: -16px;
  left: -2px;
  width: 28px;
  height: 20px;
  transform: rotate(-12deg);
}
.logo-crown svg { width: 100%; height: 100%; }
.logo-text { display: inline-block; }
.logo-now { color: var(--purple); }
.logo-dot { color: var(--purple); }

.main-nav { flex: 1; }
.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 36px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--black);
  padding: 6px 4px;
  position: relative;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--purple); }
.main-nav a.active { color: var(--purple); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--purple);
  border-radius: 2px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: var(--border-thick);
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--black);
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--black);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--black); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--black); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; padding: 12px 16px; }
.btn-ghost:hover { background: rgba(0,0,0,0.04); transform: none; box-shadow: none; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); }

.hamburger { display: none; background: transparent; border: none; padding: 8px; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 3px; background: var(--black); border-radius: 2px; }

/* ============= HERO ============= */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 460px);
  gap: 40px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 60px 48px 100px;
  overflow: visible;
}

.hero-content {
  position: relative;
  z-index: 10;
  margin: 0;
  padding: 0;
}
.hero-content > * { position: relative; z-index: 11; }
/* The search form needs a higher stacking context so its dropdown sits above example pills below */
.hero-content > .search-stack { z-index: 50; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  background: linear-gradient(transparent 50%, var(--yellow) 50%);
  padding: 0 6px;
  margin-bottom: 24px;
  transform: rotate(-1deg);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 0 0 28px;
  color: var(--black);
}

.hero-revenue {
  position: relative;
  display: inline-block;
  color: var(--purple);
  padding: 0 4px;
}
.hero-revenue::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -10px;
  height: 18px;
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 22' preserveAspectRatio='none'%3E%3Cpath d='M5 14 Q70 4 140 12 Q210 20 275 8' stroke='%237c5cff' stroke-width='6' fill='none' stroke-linecap='round'/%3E%3Cpath d='M8 18 Q80 10 150 16 Q220 22 270 14' stroke='%237c5cff' stroke-width='3' fill='none' stroke-linecap='round' opacity='0.6'/%3E%3C/svg%3E") no-repeat center;
  background-size: 100% 100%;
  pointer-events: none;
}

.hero-sparkle {
  display: inline-block;
  width: 28px;
  height: 28px;
  vertical-align: top;
  margin: 0 -6px 0 -2px;
  transform: translateY(-12px) rotate(15deg);
}
.hero-sparkle svg { width: 100%; height: 100%; display: block; }

.hero-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-700);
  max-width: 480px;
  margin: 0 0 36px;
  position: relative;
  z-index: 11;
}
.hl-yellow {
  background: linear-gradient(transparent 55%, var(--yellow) 55%);
  padding: 0 4px;
  font-weight: 600;
}

/* hidden attribute must always hide, even on flex elements */
[hidden] { display: none !important; }

/* Search stack - primary input first, optional second below */
.search-stack {
  margin-bottom: 22px;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-stack .search-box { max-width: none; margin-bottom: 0; width: 100%; }
.search-secondary { animation: slideDown 0.25s ease; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.add-platform-toggle {
  background: transparent;
  border: none;
  color: var(--purple);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 4px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.15s;
}
.add-platform-toggle:hover { color: var(--purple-dark); text-decoration: underline; }
.add-platform-toggle.active svg { transform: rotate(45deg); }
.add-platform-toggle svg { transition: transform 0.15s; }
.search-secondary .search-submit { display: none; }
.search-secondary .search-icon svg { stroke: var(--gray-500); }
.search-secondary { box-shadow: 3px 3px 0 var(--black); padding-right: 22px; }

/* Search box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 22px;
  max-width: 600px;
  box-shadow: 5px 5px 0 var(--black);
  margin-bottom: 0;
}
.search-secondary { box-shadow: 3px 3px 0 var(--black); }
.search-secondary .search-icon svg { width: 18px; height: 18px; }

/* Search suggest dropdown */
.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: var(--border-thick);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--black);
  max-height: 340px;
  overflow-y: auto;
  z-index: 200;
  font-family: var(--font-body);
}
.search-suggest:empty { display: none; }
.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f3efe5;
  transition: background 0.12s;
  text-decoration: none;
  color: var(--black);
  background: #fff;
}
.suggest-item:hover, .suggest-item.active { background: #fff7d4; }
.suggest-item:last-child { border-bottom: none; }
.suggest-item:first-child { border-top-left-radius: 13px; border-top-right-radius: 13px; }
.suggest-item:last-child { border-bottom-left-radius: 13px; border-bottom-right-radius: 13px; }
.suggest-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
  background: #f0f0f0;
}
.suggest-meta { flex: 1; min-width: 0; }
.suggest-name {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggest-dev {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  letter-spacing: 0;
}
.suggest-platform { flex-shrink: 0; display: flex; align-items: center; }
.suggest-platform svg { width: 18px; height: 18px; display: block; }
.suggest-empty {
  padding: 18px 16px;
  text-align: center;
  color: var(--gray-500);
  font-size: 13px;
}

/* Custom scrollbar for the dropdown */
.search-suggest::-webkit-scrollbar { width: 8px; }
.search-suggest::-webkit-scrollbar-track { background: transparent; }
.search-suggest::-webkit-scrollbar-thumb { background: #d6d1c4; border-radius: 4px; }
.search-suggest::-webkit-scrollbar-thumb:hover { background: var(--purple); }
.search-icon {
  display: flex;
  align-items: center;
  margin-right: 4px;
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  background: transparent;
  padding: 12px 4px;
  color: var(--black);
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}
.search-box input::placeholder { color: #b3afa6; }
.search-box input:focus { outline: none; box-shadow: none; }
.search-clear {
  background: transparent;
  border: none;
  color: var(--gray-500);
  font-size: 22px;
  padding: 4px 10px;
  display: none;
}
.search-box.has-value .search-clear { display: block; }
.search-submit {
  padding: 13px 26px;
  font-size: 15px;
}

/* Examples */
.examples-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}
.examples-label {
  font-family: var(--font-display);
  font-size: 19px;
  position: relative;
  padding-right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.examples-arrow {
  display: inline-block;
  width: 50px;
  height: 36px;
}
.examples-arrow svg { width: 100%; height: 100%; transform: rotate(8deg); }
.example-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.example-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  box-shadow: 3px 3px 0 var(--black);
  transition: transform 0.12s, box-shadow 0.12s;
  cursor: pointer;
  color: var(--black);
}
.example-pill:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--black); }
.example-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f0f0;
  border: 1px solid rgba(0,0,0,0.08);
  display: block;
}
.example-name { line-height: 1; }

/* Platform badges (Apple App Store / Google Play) */
.plat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 2px;
  flex-shrink: 0;
}
.plat-badge svg { width: 100%; height: 100%; display: block; }
.plat-ios { color: var(--black); }
.plat-ios svg { width: 14px; height: 14px; }

/* ============= HERO PHONE MOCKUP ============= */
.hero-phone {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 460px;
  justify-self: end;
  align-self: center;
}
.hero-phone > img {
  width: 100%;
  height: auto;
  display: block;
}
.phone-checkered {
  position: absolute;
  top: 8%;
  right: -28px;
  width: 70px;
  height: 70px;
  z-index: 6;
  transform: rotate(10deg);
}
.phone-cursor {
  position: absolute;
  bottom: -10px;
  right: 12%;
  width: 60px;
  height: 60px;
  z-index: 6;
  transform: rotate(-15deg);
  pointer-events: none;
}
.phone-checkered img, .phone-cursor img {
  width: 100%; height: 100%; display: block; object-fit: contain;
}

/* legacy SVG mockup (still used by app page widgets if needed) */
.phone-mockup { position: relative; filter: drop-shadow(8px 12px 0 rgba(0,0,0,0.85)); }
.phone-frame {
  background: #fff;
  border: var(--border-thick);
  border-radius: 44px;
  padding: 18px 14px 22px;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: var(--black);
  border-radius: 12px;
}
.phone-screen {
  background: var(--cream);
  border-radius: 28px;
  padding: 36px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-card-rev {
  background: #fff;
  border: 1.5px solid #e6e1d4;
  border-radius: 18px;
  padding: 18px 16px;
}
.phone-label {
  font-size: 11px;
  font-weight: 600;
  color: #888;
  margin-bottom: 4px;
}
.phone-revenue {
  font-size: 28px;
  font-weight: 800;
  color: #2bbf60;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.phone-arrow {
  font-size: 20px;
  color: #2bbf60;
}
.phone-growth {
  font-size: 13px;
  color: #2bbf60;
  font-weight: 600;
  margin-top: -2px;
}
.phone-chart {
  width: 100%;
  height: 80px;
  margin-top: 8px;
}

.phone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e6e1d4;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  color: #555;
}
.phone-row small { color: #999; font-size: 11px; }
.phone-stat {
  font-weight: 700;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.phone-stat.green { color: #2bbf60; }

/* ============= HERO DECORATIONS ============= */
.hero-decorations,
.faq-decorations,
.app-hero-deco,
.static-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.deco { position: absolute; }
.deco svg, .deco img { width: 100%; height: 100%; display: block; object-fit: contain; }

/* Background blobs - kept small + tucked into corners so they never cross text */
.deco-blob-pink-tl { top: -100px; left: -90px; width: 180px; height: 180px; opacity: 0.85; z-index: 0; }
.deco-blob-yellow-br { bottom: -100px; right: -100px; width: 220px; height: 220px; opacity: 0.6; z-index: 0; }
.deco-blob-blue-l { bottom: -60px; left: -100px; width: 140px; height: 140px; opacity: 0.4; z-index: 0; }

/* Tiny accents that sit safely above the title (in the top whitespace) */
.deco-asterisk-tl { top: 100px; left: 16px; width: 26px; height: 26px; z-index: 2; }
.deco-squiggle-tl { top: 90px; left: 280px; width: 70px; height: 18px; transform: rotate(-12deg); z-index: 2; }

/* Green smiling character - moved to bottom-left margin (below search box, away from text) */
.deco-green-char { bottom: 80px; left: -32px; width: 96px; height: 96px; transform: rotate(-12deg); z-index: 2; }

/* Curved arrow - placed in the empty zone right of the title, away from description */
.deco-arrow-revenue { top: 200px; right: 12px; width: 60px; height: 44px; transform: rotate(-30deg); z-index: 2; }

/* Mid-area stars - pushed into the column gap between content and phone */
.deco-star-pink-mid { top: 280px; right: 4%; width: 48px; height: 48px; transform: rotate(20deg); z-index: 2; }
.deco-star-red-mid { display: none; }

/* Down-arrow - small, between examples and CTA */
.deco-arrow-down { display: none; }

/* Around the example pills */
.deco-asterisk-pills { display: none; }
.deco-arrow-pills { bottom: 80px; left: 165px; width: 50px; height: 36px; transform: rotate(20deg); z-index: 2; }
.deco-checkered-pills { display: none; }

/* Drop the random mid-area accents that landed on text */
.deco-squiggle-mid { display: none; }
.deco-asterisk-mid { display: none; }

/* Speech bubble shared style */
.speech-bubble {
  background: #fff;
  border: var(--border-thick);
  border-radius: 22px;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
  position: relative;
  box-shadow: 3px 3px 0 var(--black);
}
.heart-pink { color: var(--pink); }

/* ============= FEATURE CARDS ============= */
.features-section {
  padding: 80px 0 60px;
  position: relative;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 28px 26px 30px;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}
.feature-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-card-hover); }

.feature-icon {
  width: 64px;
  height: 64px;
}
.feature-icon svg { width: 100%; height: 100%; }

.feature-h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.feature-body {
  font-size: 14px;
  color: var(--gray-700);
  margin: 0;
  flex: 1;
}

.feature-arrow {
  position: absolute;
  bottom: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: var(--border-med);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  box-shadow: 2px 2px 0 var(--black);
}

/* ============= RECENTLY CHECKED ============= */
.recent-section {
  padding: 60px 0;
  background: linear-gradient(180deg, transparent, #fff8e8 50%, transparent);
  position: relative;
}
.recent-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.recent-head {
  text-align: center;
  margin-bottom: 32px;
}
.recent-h2 {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}
.recent-pulse {
  display: inline-block;
  vertical-align: middle;
  width: 12px;
  height: 12px;
  background: #ff3a5e;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 1.6s infinite;
  box-shadow: 0 0 0 0 rgba(255,58,94,0.6);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,58,94,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(255,58,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,58,94,0); }
}
.recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.recent-card {
  background: #fff;
  border: var(--border-thick);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 3px 3px 0 var(--black);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.12s, box-shadow 0.12s;
  text-decoration: none;
  color: var(--black);
}
.recent-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--black);
  background: var(--yellow-light);
}
.recent-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: #f0f0f0;
  flex-shrink: 0;
}
.recent-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.recent-name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.recent-rev {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--green-dark);
}
.recent-per { font-size: 12px; color: var(--gray-500); font-weight: 500; margin-left: 2px; }
.recent-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1.5px dashed var(--gray-300);
}
.recent-ago { font-size: 11px; color: var(--gray-500); font-weight: 500; }

/* ============= POPULAR SECTION ============= */
.popular-section {
  padding: 60px 0 80px;
  position: relative;
}
.popular-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.section-h2 {
  font-family: var(--font-display);
  font-size: 44px;
  margin: 0 0 12px;
  letter-spacing: -1px;
}
.section-sub {
  font-size: 16px;
  color: var(--gray-700);
  margin: 0 auto 36px;
  max-width: 560px;
}
.popular-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.popular-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  color: var(--black);
  box-shadow: 3px 3px 0 var(--black);
  transition: transform 0.12s, box-shadow 0.12s;
}
.popular-pill:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--black); background: var(--yellow-light); }
.popular-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f0f0;
  border: 1px solid rgba(0,0,0,0.08);
  display: block;
}
.popular-name { line-height: 1; }

/* ============= FAQ ============= */
.faq-section {
  position: relative;
  padding: 80px 0 100px;
  background: var(--cream);
  overflow: hidden;
}
.faq-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 5;
}

.faq-heading {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
  position: relative;
}
.faq-word {
  font-family: var(--font-display);
  font-size: 64px;
  letter-spacing: -1px;
  line-height: 1;
}
.faq-word-1 { color: var(--black); }
.faq-word-2 { color: var(--purple); transform: rotate(-2deg); display: inline-block; }
.faq-word-3 { color: var(--black); }
.faq-decoration-mini { display: inline-block; width: 60px; height: 14px; }
.faq-underline-mini { position: absolute; bottom: -8px; left: 200px; width: 90px; height: 18px; }

.deco-faq-q { top: 30px; right: 60px; width: 90px; height: 130px; transform: rotate(8deg); }
.deco-faq-cloud { bottom: 100px; right: 30px; width: 150px; height: 100px; }
.deco-faq-star { bottom: 200px; left: 60px; width: 50px; height: 50px; transform: rotate(20deg); }
.deco-faq-checker { top: 60px; left: 60px; width: 50px; height: 50px; opacity: 0.6; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: var(--border-thick);
  border-radius: 14px;
  padding: 0;
  box-shadow: 3px 3px 0 var(--black);
  overflow: hidden;
  transition: transform 0.12s;
}
.faq-item:hover { transform: translate(-1px,-1px); }
.faq-item summary {
  list-style: none;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev {
  font-size: 22px;
  color: var(--gray-500);
  transition: transform 0.2s;
}
.faq-item[open] .faq-chev { transform: rotate(180deg); color: var(--purple); }
.faq-answer {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.6;
}

.faq-cta {
  text-align: center;
  margin-top: 36px;
}
.faq-link {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--purple);
}
.faq-link:hover { color: var(--purple-dark); }

/* ============= FOOTER ============= */
.site-footer {
  position: relative;
  margin-top: 60px;
  padding-top: 80px;
  background: var(--purple);
  color: #fff;
  overflow: hidden;
}
.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
  transform: scaleY(-1);
}
.footer-wave svg { width: 100%; height: 100%; display: block; }

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.footer-note {
  background: var(--pink);
  color: #fff;
  font-family: var(--font-display);
  padding: 8px 14px;
  border-radius: 8px;
  border: 2px solid var(--black);
  font-size: 17px;
  transform: rotate(-3deg);
  white-space: nowrap;
}
.footer-note .heart { color: #fff; }
.footer-copy {
  margin: 0;
  font-size: 13px;
  text-align: center;
  opacity: 0.9;
}
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  transition: background 0.15s;
}
.footer-social a:hover { background: rgba(255,255,255,0.3); }

.footer-bubble {
  display: inline-block;
  width: 200px;
  flex-shrink: 0;
}
.footer-bubble img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============= APP DETAIL PAGE ============= */
.app-page {
  padding: 40px 0 80px;
  position: relative;
}

.back-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--purple);
  margin-bottom: 24px;
}

.app-hero { position: relative; padding: 30px 0 40px; }
.app-hero-deco .deco-blob-yellow-tr { top: -40px; right: -60px; width: 220px; height: 220px; opacity: 0.7; z-index: 0; }
.app-hero-deco .deco-star-mini { top: 20px; right: 200px; width: 60px; height: 60px; transform: rotate(15deg); }
.app-hero-deco .deco-asterisk-corner { top: 120px; right: 80px; width: 28px; height: 28px; }

.app-id-card {
  position: relative;
  z-index: 5;
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}
.app-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  border: 2px solid var(--black);
  flex-shrink: 0;
}
.app-id-meta { flex: 1; min-width: 240px; }
.app-title {
  font-family: var(--font-display);
  font-size: 38px;
  margin: 0 0 4px;
  letter-spacing: -1px;
  line-height: 1.05;
}
.app-developer {
  font-size: 15px;
  color: var(--gray-700);
  margin: 0 0 12px;
}
.app-cat { color: var(--purple); font-weight: 600; }
.app-id-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--black);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-ios { background: var(--blue); color: #fff; }
.badge-android { background: var(--green); color: #fff; }
.badge-stars { background: var(--yellow); color: var(--black); }
.badge-free { background: var(--cream-2); color: var(--black); }
.badge-paid { background: var(--orange); color: #fff; }

.result-card {
  position: relative;
  z-index: 5;
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 28px;
  margin-top: 24px;
  box-shadow: var(--shadow-card);
}

/* App page summary text */
.app-summary {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.55;
  margin: 8px 0 12px;
  max-width: 640px;
}

/* Hero revenue (giant headline) */
.hero-rev-card {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a, #2a2438);
  color: #fff;
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 20px;
  border: var(--border-thick);
  box-shadow: var(--shadow-card);
}
.rev-watermark {
  position: absolute;
  top: 22px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}
.rev-watermark-crown {
  display: inline-flex;
  width: 26px;
  height: 20px;
  transform: rotate(-10deg) translateY(-2px);
  filter: brightness(1.05);
}
.rev-watermark-crown svg { width: 100%; height: 100%; }
.rev-watermark-text { font-weight: 700; }
.rev-watermark-dot { color: #a78bfa; }
.hero-rev-label {
  font-family: var(--font-display);
  font-size: 18px;
  color: #ccc;
  margin-bottom: 4px;
}
.hero-rev-value {
  font-family: var(--font-body);
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-rev-per { font-size: 0.4em; color: #7cd6ff; font-weight: 600; letter-spacing: 0; }
.hero-rev-range { font-size: 14px; color: #aaa; margin-top: 8px; }

/* IAP badge */
.badge-iap { background: var(--purple); color: #fff; }

.rev-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.rev-card.rev-daily { background: linear-gradient(135deg, #fff4d4, #fff); }
.rev-card.rev-weekly { background: linear-gradient(135deg, #ffe4d4, #fff); }
.rev-card {
  background: var(--cream-2);
  border: var(--border-med);
  border-radius: 14px;
  padding: 20px 22px;
  text-align: left;
  position: relative;
}
.rev-card.rev-monthly { background: linear-gradient(135deg, #fff7d4, #fff); }
.rev-card.rev-annual { background: linear-gradient(135deg, #d4ffd9, #fff); }
.rev-card.rev-lifetime { background: linear-gradient(135deg, #e7d4ff, #fff); }
.rev-label {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gray-700);
  margin-bottom: 10px;
}
.rev-mid {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 6px;
}
.rev-range {
  font-size: 13px;
  color: var(--gray-700);
  font-weight: 500;
}

.share-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1.5px dashed var(--gray-300);
}

/* Social share icon row */
.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1.5px dashed var(--gray-300);
  align-items: center;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  min-width: 44px;
  border: var(--border-thick);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--black);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--black);
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.social-btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--black); }
.social-btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--black); }
.social-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.social-btn span { line-height: 1; }
.social-copy { background: var(--purple); color: #fff; padding: 0 18px; }
.social-copy:hover { background: var(--purple-dark); }
.social-image { background: var(--cream); }
.social-image:hover { background: var(--yellow-light); }
.social-x:hover { background: var(--black); color: #fff; }
.social-linkedin:hover { background: #0a66c2; color: #fff; }
.social-reddit:hover { background: #ff4500; color: #fff; }
.social-facebook:hover { background: #1877f2; color: #fff; }
.social-whatsapp:hover { background: #25d366; color: #fff; }
.social-mail:hover { background: var(--gray-700); color: #fff; }

.share-meta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 8px;
}
.share-meta code { background: var(--cream-2); padding: 1px 6px; border-radius: 4px; font-size: 11px; }

/* Fun shareable stats */
.fun-stats-card {
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 28px;
  margin-top: 28px;
  box-shadow: var(--shadow-card);
}
.fun-stats-card h2 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}
.fun-stats-card .muted { color: var(--gray-500); font-size: 18px; font-weight: 400; }
.fun-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.fun-tile {
  border: var(--border-thick);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 3px 3px 0 var(--black);
  text-align: center;
}
.fun-tile-purple { background: linear-gradient(135deg, #c4b5ff, #ddd5ff); }
.fun-tile-pink   { background: linear-gradient(135deg, #ffb3d1, #ffd5e8); }
.fun-tile-yellow { background: linear-gradient(135deg, #ffe888, #fff3a8); }
.fun-tile-green  { background: linear-gradient(135deg, #b8edc4, #d6f5dc); }
.fun-num {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--black);
}
.fun-label {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--gray-700);
  margin-top: 6px;
}
.fun-comparisons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}
.fun-comparisons li {
  font-size: 15px;
  color: var(--gray-700);
  padding: 6px 0;
}
.fun-comparisons strong { color: var(--black); }

/* Cross-platform compare prompt */
.cross-platform-card {
  background: var(--cream-2);
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin-top: 28px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.cross-platform-card h2 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 6px;
}
.cross-platform-card .muted { color: var(--gray-500); font-size: 14px; margin-bottom: 16px; }
.search-box.compact {
  margin: 14px auto 0;
  max-width: 560px;
  box-shadow: 3px 3px 0 var(--black);
}
.search-box.compact .search-icon { padding-left: 8px; }

/* Multi-platform combined view */
.multi-page { padding-top: 30px; }
.multi-hero {
  text-align: center;
  padding: 32px 0;
  position: relative;
}
.multi-hero-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}
.multi-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  border: var(--border-thick);
  box-shadow: 4px 4px 0 var(--black);
  background: #fff;
}
.multi-plus {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--purple);
  font-weight: 700;
}
.multi-h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 60px);
  margin: 8px 0;
  letter-spacing: -1px;
  line-height: 1;
}
.multi-sub { color: var(--gray-700); font-size: 17px; margin: 0; }

.multi-platforms {
  margin-top: 28px;
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.multi-platforms h2 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0 0 18px;
}
.multi-plat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.multi-plat-grid:has(.multi-plat-card:only-child) { grid-template-columns: 1fr; }
.multi-plat-card {
  background: var(--cream-2);
  border: var(--border-med);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.multi-plat-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.multi-plat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1.5px solid rgba(0,0,0,0.1);
}
.multi-plat-store {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.multi-plat-title { font-weight: 700; font-size: 17px; }
.multi-plat-rev {
  padding: 14px 0;
  border-top: 1.5px dashed var(--gray-300);
  border-bottom: 1.5px dashed var(--gray-300);
}
.multi-plat-monthly {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--green-dark);
  line-height: 1;
}
.multi-plat-monthly span { font-size: 14px; color: var(--gray-500); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.multi-plat-meta {
  font-size: 13px;
  color: var(--gray-700);
  margin-top: 8px;
  line-height: 1.5;
}
.multi-plat-cta { align-self: flex-start; }

/* Per-app FAQ section on app pages */
.app-faq-card {
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 28px;
  margin-top: 28px;
  box-shadow: var(--shadow-card);
}
.app-faq-card h2 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}

.chart-card,
.stats-grid,
.histogram-card,
.methodology-card {
  margin-top: 28px;
}
.chart-card,
.histogram-card,
.methodology-card {
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.chart-card h2,
.histogram-card h2,
.methodology-card h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.chart-sub {
  font-size: 14px;
  color: var(--gray-500);
  margin: 0 0 24px;
}
.projection-chart {
  width: 100%;
  height: auto;
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  background: #fff;
  border: var(--border-thick);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 3px 3px 0 var(--black);
}
.stat-label {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.stat-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}
.stat-sub {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

.histogram { display: flex; flex-direction: column; gap: 8px; }
.histo-row { display: grid; grid-template-columns: 32px 1fr 64px; align-items: center; gap: 12px; }
.histo-star { font-size: 14px; font-weight: 600; }
.histo-bar { height: 16px; background: var(--gray-100); border-radius: 8px; overflow: hidden; }
.histo-bar span { display: block; height: 100%; border-radius: 8px; transition: width 0.5s; }
.histo-num { font-size: 13px; color: var(--gray-700); text-align: right; }

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-bottom: 18px;
}
.method-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--cream-2);
  border-radius: 8px;
  font-size: 14px;
}
.method-item strong { color: var(--gray-700); font-weight: 600; }
.method-disclaimer {
  font-size: 13px;
  color: var(--gray-500);
  font-style: italic;
  border-top: 1.5px dashed var(--gray-300);
  padding-top: 16px;
  margin: 0;
  line-height: 1.6;
}

/* ============= STATIC PAGES ============= */
.static-page {
  position: relative;
  padding: 60px 0 80px;
  min-height: 600px;
}
.static-decorations { z-index: 0; }
.static-decorations .deco-blob-pink-tl { top: -40px; left: -60px; width: 160px; height: 160px; opacity: 0.7; }
.static-decorations .deco-star-yellow-tr { top: 60px; right: 80px; width: 60px; height: 60px; opacity: 0.7; }
.static-decorations .deco-squiggle-1 { top: 40px; right: 200px; width: 80px; height: 20px; transform: rotate(-12deg); }
.static-decorations .deco-asterisk-1 { bottom: 100px; left: 80px; width: 28px; height: 28px; }

.static-container {
  position: relative;
  z-index: 5;
  max-width: 820px;
}
.static-h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  margin: 0 0 24px;
  letter-spacing: -1.5px;
  line-height: 1.05;
}
.static-container .lead {
  font-size: 19px;
  color: var(--gray-700);
  margin: 0 0 36px;
  line-height: 1.55;
}
.static-container h2 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 36px 0 14px;
  letter-spacing: -0.5px;
}
.static-container p {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.7;
}
.static-container ul {
  list-style: disc;
  padding-left: 24px;
  margin: 14px 0;
  color: var(--gray-700);
}
.static-container li { margin: 6px 0; }
.static-container code {
  background: var(--cream-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}
.static-container pre {
  background: var(--black);
  color: #efe;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
}
.static-container article {
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}
.feature-list, .blog-grid, .pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.blog-card { display: flex; flex-direction: column; gap: 6px; }
.blog-meta { font-family: var(--font-display); font-size: 16px; color: var(--purple); margin-top: 8px; }

.price-card {
  background: #fff;
  border: var(--border-thick);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}
.price-card-featured {
  background: linear-gradient(180deg, #fff, #fdf6e3);
}
.price-tag { font-family: var(--font-display); font-size: 84px; font-weight: 700; letter-spacing: -3px; color: var(--purple); line-height: 1; }
.price-period { font-size: 16px; color: var(--gray-500); margin-bottom: 24px; }
.price-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 24px 0;
}
.price-card li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 15px;
}
.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 18px;
}

/* ============= UTILITIES ============= */
.tape-yellow {
  background: var(--yellow);
  padding: 0 8px;
  display: inline-block;
  transform: rotate(-1deg);
  font-weight: 600;
}

/* ============= LOADING / ERROR (homepage tool) ============= */
.tool-loading, .tool-error {
  max-width: 780px;
  margin: 32px auto 0;
  padding: 0 32px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 20px;
}
.tool-error {
  background: #ffe5e5;
  border: var(--border-thick);
  border-radius: 14px;
  padding: 16px 20px;
  color: #c0392b;
  box-shadow: 3px 3px 0 var(--black);
}
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--gray-300);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.copied-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--black);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  z-index: 999;
  transition: transform 0.3s;
}
.copied-toast.show { transform: translateX(-50%) translateY(0); }

/* ============= RESPONSIVE ============= */
/* ============= RESPONSIVE ============= */

/* Tablet (1100px and below) */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding: 50px 32px 80px; }
  .hero-phone { max-width: 320px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet portrait + small laptops (900px and below) */
@media (max-width: 900px) {
  .header-inner { gap: 12px; padding: 0 20px; }
  .main-nav { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  body.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    padding: 16px 24px;
    border-bottom: var(--border-thick);
    z-index: 60;
  }
  body.nav-open .main-nav ul { flex-direction: column; gap: 14px; align-items: flex-start; }

  /* Tablets: 2-column with phone shrunk on the right */
  .hero { grid-template-columns: minmax(0, 1fr) minmax(180px, 260px); gap: 20px; padding: 28px 20px 48px; }
  .hero-content { padding: 0; min-width: 0; }
  .hero-phone { max-width: 260px; margin: 0; justify-self: end; }

  /* Hide all hero decorations that crowd content on mobile */
  .deco-arrow-revenue, .deco-arrow-down, .deco-star-pink-mid,
  .deco-star-red-mid, .deco-squiggle-mid, .deco-asterisk-mid,
  .deco-asterisk-pills, .deco-arrow-pills, .deco-checkered-pills,
  .deco-asterisk-tl, .deco-squiggle-tl, .phone-checkered, .phone-cursor { display: none; }
  .deco-blob-pink-tl { width: 130px; height: 130px; top: -60px; left: -60px; }
  .deco-blob-yellow-br { width: 180px; height: 180px; bottom: -80px; right: -60px; }
  .deco-blob-blue-l { display: none; }
  .deco-green-char { bottom: 40px; left: -20px; width: 80px; height: 80px; }

  .features-grid { grid-template-columns: 1fr; gap: 16px; padding: 0 20px; }
  .feature-card { min-height: auto; padding: 24px 22px; }

  .recent-grid { grid-template-columns: repeat(2, 1fr); }
  .popular-grid { gap: 8px; }

  .faq-word { font-size: 44px; }
  .deco-faq-q { width: 60px; height: 90px; right: 20px; }
  .deco-faq-cloud { display: none; }
  .faq-inner { padding: 0 20px; }

  .footer-inner { padding: 24px 20px 36px; gap: 16px; }
  .footer-bubble { width: 170px; }

  /* App detail page */
  .app-page { padding: 24px 0 60px; }
  .container { padding: 0 20px; }
  .app-hero-deco { display: none; }
  .app-id-card { padding: 20px; gap: 14px; }
  .app-icon { width: 72px; height: 72px; }
  .app-title { font-size: 26px; }
  .app-id-meta { min-width: 0; flex: 1 1 100%; }
  .app-id-actions { flex-basis: 100%; margin-top: 8px; }

  .hero-rev-card { padding: 24px 22px; }
  .hero-rev-value { font-size: 52px; }
  .rev-watermark { font-size: 14px; top: 16px; right: 18px; }
  .rev-watermark-crown { width: 20px; height: 16px; }
  .result-card { padding: 22px 18px; }
  .rev-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rev-card { padding: 16px 18px; }
  .rev-mid { font-size: 28px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .fun-stats-card, .chart-card, .histogram-card, .app-faq-card { padding: 22px 18px; }
  .fun-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .fun-tile { padding: 18px 14px; }
  .fun-num { font-size: 24px; }
  .fun-label { font-size: 14px; }
  .fun-comparisons { grid-template-columns: 1fr; gap: 4px; }

  .multi-icon { width: 64px; height: 64px; }
  .multi-h1 { font-size: 36px; }
  .multi-plat-grid { grid-template-columns: 1fr; }

  .blog-grid { grid-template-columns: 1fr; }
}

/* Phone (600px and below) */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; gap: 8px; }
  .logo { font-size: 26px; }
  .logo-crown { width: 22px; height: 16px; top: -12px; }
  .site-header { padding: 14px 0; }

  /* PHONES: single column with phone as accent in top-right corner.
     Search bar + examples get full viewport width below. */
  .hero {
    display: block;
    position: relative;
    padding: 20px 16px 36px;
    min-height: auto;
    overflow: hidden;
  }
  .hero-content { min-width: 0; max-width: 100%; padding: 0; }
  .hero-content > * { max-width: 100%; }

  /* Phone: bigger accent in top-right - 170px instead of cramped 130px */
  .hero-phone {
    position: absolute;
    top: 16px;
    right: 8px;
    width: 170px;
    max-width: 170px;
    margin: 0;
    z-index: 4;
    pointer-events: none;
  }

  /* Eyebrow + title shrink to fit the area LEFT of the phone (use max-width, not padding-right,
     so the inline-block yellow highlight only spans the actual text width) */
  .eyebrow {
    font-size: 16px;
    margin-bottom: 12px;
    max-width: calc(100% - 180px);
  }
  .hero-title {
    font-size: 36px;
    letter-spacing: -1px;
    line-height: 1.05;
    margin-bottom: 14px;
    max-width: calc(100% - 180px);
  }
  .hero-sparkle { width: 20px; height: 20px; transform: translateY(-8px) rotate(15deg); }
  /* Description + form + examples reclaim full viewport width (sit BELOW the phone) */
  .hero-desc { font-size: 15px; margin-bottom: 18px; line-height: 1.55; max-width: 100%; padding-right: 0; }
  .search-stack { max-width: 100%; }
  .examples-row { width: 100%; }

  /* Hide background decorations that crowd the small viewport */
  .deco-green-char { display: none; }
  .deco-blob-pink-tl { display: none; }
  .deco-blob-yellow-br { display: none; }
  .deco-blob-blue-l { display: none; }

  /* Search box stays on ONE row, full width */
  .search-box { padding: 6px 6px 6px 16px; box-shadow: 4px 4px 0 var(--black); }
  .search-box .search-icon { margin-right: 2px; }
  .search-box .search-icon svg { width: 18px; height: 18px; }
  .search-box input { font-size: 14px; padding: 11px 4px; min-width: 0; }
  .search-box input::placeholder { font-size: 13px; }
  .search-submit { padding: 11px 16px; font-size: 13.5px; flex-shrink: 0; }
  .search-stack { gap: 10px; max-width: 100%; }
  .add-platform-toggle { font-size: 13px; padding: 2px 0; }
  .examples-row { gap: 10px; flex-direction: column; align-items: flex-start; }
  .examples-arrow { display: none; }
  .examples-label { font-size: 16px; }
  .example-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
  }
  .example-pill {
    padding: 6px 10px 6px 5px;
    font-size: 13px;
    width: 100%;
    justify-content: flex-start;
    box-shadow: 2px 2px 0 var(--black);
  }
  .example-pill .example-icon { width: 26px; height: 26px; }
  .example-pill .example-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Features cards */
  .features-section { padding: 40px 0 30px; }
  .feature-card { min-height: auto; padding: 22px 20px 24px; }
  .feature-h2 { font-size: 21px; }
  .feature-icon { width: 52px; height: 52px; }

  /* Recent + popular */
  .recent-section { padding: 40px 0; }
  .recent-grid { grid-template-columns: 1fr; }
  .recent-inner, .popular-inner { padding: 0 16px; }
  .section-h2 { font-size: 32px; }
  .section-sub { font-size: 14px; margin-bottom: 24px; }

  /* FAQ */
  .faq-section { padding: 50px 0 60px; }
  .faq-heading { gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
  .faq-word { font-size: 36px; }
  .faq-decoration-mini, .faq-underline-mini { display: none; }
  .faq-inner { padding: 0 16px; }
  .faq-item summary { padding: 14px 18px; font-size: 15px; }
  .faq-answer { padding: 0 18px 18px; font-size: 14px; }
  .deco-faq-q { display: none; }
  .deco-faq-star, .deco-faq-checker { display: none; }

  /* Footer */
  .footer-inner { gap: 14px; padding: 20px 16px 32px; }
  .footer-note { white-space: normal; font-size: 14px; padding: 6px 12px; transform: rotate(-2deg); }
  .footer-copy { font-size: 12px; }
  .footer-bubble { width: 150px; }

  /* App detail page */
  .back-link { font-size: 16px; margin-bottom: 16px; }
  .app-id-card { flex-direction: row; align-items: flex-start; padding: 16px; gap: 12px; flex-wrap: wrap; }
  .app-icon { width: 64px; height: 64px; border-radius: 16px; }
  .app-title { font-size: 22px; line-height: 1.1; }
  .app-developer { font-size: 13px; margin-bottom: 8px; }
  .app-summary { font-size: 13px; }
  .app-id-badges { gap: 6px; }
  .badge { font-size: 11px; padding: 3px 9px; }
  .app-id-actions { flex-basis: 100%; margin-top: 4px; }
  .app-id-actions .btn { width: 100%; padding: 10px 16px; font-size: 14px; }

  .hero-rev-card { padding: 20px 18px; }
  .hero-rev-label { font-size: 15px; }
  .hero-rev-value { font-size: 34px; flex-direction: column; align-items: flex-start; gap: 0; letter-spacing: -1px; }
  .hero-rev-per { font-size: 18px; }
  .hero-rev-range { font-size: 12px; }
  .rev-watermark { position: static; justify-content: flex-end; margin-bottom: 8px; }

  .result-card { padding: 18px 14px; }
  .rev-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rev-card { padding: 12px 14px; }
  .rev-label { font-size: 13px; margin-bottom: 4px; }
  .rev-mid { font-size: 22px; letter-spacing: -1px; }
  .rev-range { font-size: 11px; }

  /* Social row stays compact - icon-only buttons on phone */
  .social-row { gap: 8px; padding-top: 14px; }
  .social-btn { padding: 0 12px; height: 40px; min-width: 40px; font-size: 13px; }
  .social-btn span { display: none; }
  .social-copy span, .social-image span { display: inline; }
  .social-copy, .social-image { padding: 0 14px; }

  /* Stats + fun cards */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 14px 14px; }
  .stat-label { font-size: 11px; }
  .stat-value { font-size: 18px; }
  .stat-sub { font-size: 11px; }

  .fun-stats-card h2, .chart-card h2, .histogram-card h2, .app-faq-card h2 { font-size: 22px; }
  .fun-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fun-tile { padding: 14px 12px; }
  .fun-num { font-size: 20px; }
  .fun-label { font-size: 13px; }
  .fun-comparisons li { font-size: 13px; padding: 4px 0; }

  /* Multi page */
  .multi-icon { width: 56px; height: 56px; border-radius: 14px; }
  .multi-plus { font-size: 32px; }
  .multi-h1 { font-size: 28px; }
  .multi-sub { font-size: 14px; }
  .multi-plat-card { padding: 16px 18px; }
  .multi-plat-monthly { font-size: 28px; }

  /* Static / blog / api */
  .static-page { padding: 32px 0 48px; }
  .static-h1 { font-size: 36px; margin-bottom: 18px; }
  .static-container .lead { font-size: 16px; margin-bottom: 24px; }
  .static-container article { padding: 18px 20px; }
  .static-container h2 { font-size: 22px; margin: 22px 0 10px; }

  .copied-toast { bottom: 16px; font-size: 13px; padding: 10px 18px; }
}

/* Tiny phones (380px and below) */
@media (max-width: 380px) {
  .hero { padding: 16px 12px 24px; }
  .hero-phone { width: 130px; max-width: 130px; right: 4px; top: 12px; }
  .hero-title { font-size: 30px; letter-spacing: -1px; max-width: calc(100% - 140px); }
  .hero-desc { font-size: 14px; }
  .eyebrow { font-size: 14px; max-width: calc(100% - 140px); }
  .examples-label { font-size: 15px; }
  .example-pill { font-size: 12px; padding: 5px 8px 5px 4px; }
  .example-pill .example-icon { width: 22px; height: 22px; }
  .rev-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .fun-grid { grid-template-columns: 1fr; }
  .social-btn { height: 36px; min-width: 36px; padding: 0 8px; }
  .social-btn svg { width: 16px; height: 16px; }
  .social-copy span, .social-image span { display: none; }
  .social-copy, .social-image { padding: 0 10px; min-width: 36px; }
  .example-pill { font-size: 12px; }
  .hero-rev-value { font-size: 32px; }
  .rev-mid { font-size: 19px; letter-spacing: -0.8px; }
  .stat-value { font-size: 16px; }
  .fun-num { font-size: 18px; }
}

/* ============= GLOBAL OVERFLOW PROTECTION ============= */
/* Stop horizontal page scroll on phones */
html, body { max-width: 100vw; overflow-x: hidden; }

/* Prevent ANY long text from breaking mobile layouts */
.hero-desc, .app-title, .multi-h1, .static-h1, .feature-h2, .section-h2,
.recent-name, .popular-name, .example-name, .suggest-name, .suggest-dev,
.app-developer, .app-summary, .hero-rev-label, .hero-rev-range,
.rev-label, .rev-range, .stat-label, .stat-sub, .multi-plat-title,
.faq-item summary {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}
.hero-title { overflow-wrap: break-word; word-wrap: break-word; }

/* Money values: shrink with the box, don't overflow */
.hero-rev-value, .rev-mid, .stat-value, .multi-plat-monthly, .fun-num {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
/* Cards must clip + allow children to shrink */
.app-id-card, .rev-card, .stat-card, .fun-tile, .multi-plat-card,
.recent-card, .hero-rev-card, .result-card, .feature-card {
  min-width: 0;
  overflow: hidden;
}
.app-id-card .app-id-meta, .recent-card .recent-meta { min-width: 0; }
/* Make sure all containers respect viewport */
.hero, .container, .static-container, .features-grid, .recent-grid,
.popular-grid, .hero-content, .stats-grid, .rev-grid, .fun-grid {
  max-width: 100%;
  min-width: 0;
}
