/* Callie's Mahjong — shared styles */

:root {
  --forest-900: #081f17;
  --forest-800: #0b2c20;
  --forest-700: #113a29;
  --forest-600: #164a34;
  --felt-500: #1d5a3f;
  --gold-300: #f8dd93;
  --gold-400: #f3c65a;
  --gold-500: #ecb236;
  --pink-400: #f083b8;
  --pink-500: #ec5aa0;
  --pink-600: #cf4188;
  --blue-500: #4a63c9;
  --cream-100: #faf6ea;
  --cream-200: #ece4d0;
  --text-muted: #b9c8bd;
  --text-faint: #8ea497;
  --border-soft: rgba(250, 246, 234, 0.1);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-w: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--forest-900);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--forest-900);
  background-image: radial-gradient(120% 90% at 50% -10%, #123626 0%, var(--forest-900) 55%, #061810 100%);
  color: var(--cream-100);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Background texture: soft tile-glow blobs */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 85% 8%, rgba(236, 90, 160, 0.16), transparent 70%),
    radial-gradient(35% 28% at 8% 18%, rgba(243, 198, 90, 0.12), transparent 70%),
    radial-gradient(45% 35% at 50% 100%, rgba(29, 90, 63, 0.35), transparent 70%);
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(8, 31, 23, 0.72);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--cream-100);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-100);
  color: #10231a;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 100px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-cta:hover {
  background: var(--gold-300);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream-100);
  font-size: 22px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 6px 24px 18px;
  border-top: 1px solid var(--border-soft);
}

.mobile-menu a {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
}

.mobile-menu.open {
  display: flex;
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

/* ---------- Buttons / badges ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  padding: 10px 18px 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.appstore-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.appstore-badge svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.appstore-badge .lines {
  line-height: 1.05;
}

.appstore-badge .lines small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
}

.appstore-badge .lines strong {
  display: block;
  font-size: 19px;
  font-weight: 600;
  font-family: -apple-system, "SF Pro Display", sans-serif;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-soft);
  color: var(--cream-100);
  font-weight: 600;
  font-size: 14.5px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-ghost:hover {
  border-color: rgba(250, 246, 234, 0.3);
  background: rgba(250, 246, 234, 0.06);
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--forest-900);
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500));
  padding: 6px 13px;
  border-radius: 100px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-icon {
  width: 136px;
  height: 136px;
  border-radius: 32px;
  box-shadow: 0 20px 48px rgba(236, 90, 160, 0.35), 0 6px 14px rgba(0,0,0,0.35);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--cream-100) 40%, var(--gold-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .accent {
  background: linear-gradient(120deg, var(--gold-300), var(--pink-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
  font-size: 13.5px;
  color: var(--text-faint);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 54px;
}

.hero-visual .glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 198, 90, 0.22), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 272px;
  background: linear-gradient(160deg, #1a1a1a, #050505);
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-frame .notch {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 20px;
  background: #050505;
  border-radius: 12px;
  z-index: 2;
}

.phone-frame img {
  width: 100%;
  display: block;
  border-radius: 34px;
}

.stat-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(250, 246, 234, 0.96);
  color: var(--forest-900);
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.stat-chip .num {
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.stat-chip .label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--forest-700);
  line-height: 1.2;
}

.stat-chip.left {
  top: 18%;
  left: -6px;
}

.stat-chip.right {
  bottom: 20%;
  right: -6px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero .lede {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-icon {
    margin-left: auto;
    margin-right: auto;
  }
  .btn-row {
    justify-content: center;
  }
  .hero-meta {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 20px;
  }
}

@media (max-width: 460px) {
  .stat-chip {
    display: none;
  }
}

/* ---------- Sections ---------- */
section {
  padding: 88px 0;
  position: relative;
}

.section-head {
  max-width: 620px;
  margin: 0 0 52px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head .eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 12px;
  display: block;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--cream-100);
}

.section-head p {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: linear-gradient(160deg, rgba(250, 246, 234, 0.06), rgba(250, 246, 234, 0.02));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 198, 90, 0.35);
  background: linear-gradient(160deg, rgba(250, 246, 234, 0.09), rgba(250, 246, 234, 0.03));
}

.feature-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--felt-500), var(--forest-600));
  border: 1px solid var(--border-soft);
}

.feature-card h3 {
  font-size: 17px;
  margin: 0 0 9px;
  font-weight: 700;
  color: var(--cream-100);
}

.feature-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Screenshot showcase ---------- */
.shot-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 4px 26px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shot-scroll::-webkit-scrollbar {
  height: 8px;
}

.shot-scroll::-webkit-scrollbar-thumb {
  background: var(--border-soft);
  border-radius: 10px;
}

.shot-scroll img {
  scroll-snap-align: start;
  width: 240px;
  flex: 0 0 auto;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}


/* ---------- Trial / pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.price-card {
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(160deg, rgba(250, 246, 234, 0.06), rgba(250, 246, 234, 0.015));
}

.price-card.highlight {
  background: linear-gradient(160deg, rgba(243, 198, 90, 0.14), rgba(236, 90, 160, 0.08));
  border-color: rgba(243, 198, 90, 0.4);
  position: relative;
}

.price-card h3 {
  font-size: 20px;
  margin: 0 0 6px;
  font-weight: 800;
}

.price-card .price {
  font-size: 15px;
  color: var(--gold-300);
  font-weight: 700;
  margin-bottom: 18px;
}

.price-card ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.price-card li {
  font-size: 14.5px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  line-height: 1.5;
}

.price-card li .check {
  color: var(--gold-400);
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 22px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--cream-100);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--gold-400);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  background: radial-gradient(120% 160% at 50% 0%, rgba(243, 198, 90, 0.18), transparent 60%), linear-gradient(160deg, var(--forest-700), var(--forest-900));
  border: 1px solid var(--border-soft);
}

.cta-banner h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 14px;
  font-weight: 800;
}

.cta-banner p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: 15.5px;
}

.cta-banner .btn-row {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--cream-100);
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ---------- Simple/legal pages ---------- */
.legal-page {
  padding: 60px 0 100px;
}

.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.legal-page .back-link:hover {
  color: var(--cream-100);
}

.legal-page h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  margin: 0 0 10px;
}

.legal-page .eff-date {
  color: var(--text-faint);
  font-size: 13.5px;
  margin-bottom: 40px;
}

.legal-page .lede {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.legal-card {
  background: rgba(250, 246, 234, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 34px 36px;
}

.legal-card h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 30px 0 12px;
  color: var(--gold-300);
}

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

.legal-card p, .legal-card li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

.legal-card ul {
  padding-left: 20px;
}

.legal-card a {
  color: var(--gold-300);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 44px;
}

.contact-card {
  background: rgba(250, 246, 234, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 26px;
}

.contact-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--felt-500), var(--forest-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.contact-card h3 {
  font-size: 15.5px;
  margin: 0 0 6px;
}

.contact-card a.contact-value {
  color: var(--gold-300);
  font-weight: 600;
  font-size: 15px;
}

@media (max-width: 620px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .legal-card {
    padding: 26px 22px;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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