/* Mahjong Forward website. Colors and type come from the brand kit (brand/tokens.json). */
:root {
  --sun: #FFC83D;
  --tangerine: #FF9A3D;
  --red: #D42A45;
  --red-deep: #9A1B33;
  --green: #17A673;
  --green-deep: #0B7350;
  --ocean: #2450D6;
  --maroon: #7A1420;
  --ink: #331420;
  --ink-soft: #6E4A52;
  --porcelain: #FFFFFF;
  --canvas: #FFF6EC;
  --canvas-deep: #FCE6D2;
  --night: #2A0F2E;
  --cream: #FFEBD2;
  --burst: radial-gradient(circle at 50% 35%, #FFD44F, #FF9A3D 55%, #EE4E3A);
  --display: 'Baloo 2', ui-rounded, system-ui, sans-serif;
  --body: 'Nunito', ui-rounded, system-ui, sans-serif;
  --radius: 22px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
}
img, video { max-width: 100%; display: block; }
a { color: var(--ocean); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0 0 .4em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 246, 236, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--canvas-deep);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.site-header .logo img { height: 42px; width: auto; }
.site-header nav { display: flex; gap: 20px; align-items: center; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.site-header nav a:hover { color: var(--red); }
@media (max-width: 560px) { .site-header nav a.hide-sm { display: none; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 20px;
  background: var(--red); color: #fff; text-decoration: none;
  font: 800 18px/1 var(--display);
  box-shadow: 0 5px 0 var(--red-deep), 0 10px 24px rgba(154, 27, 51, .25);
  transition: transform .12s ease, box-shadow .12s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--red-deep), 0 14px 28px rgba(154, 27, 51, .3); }
.button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--red-deep); }
.button.quiet { background: #fff; color: var(--ink); box-shadow: 0 5px 0 var(--canvas-deep), 0 10px 24px rgba(51, 20, 32, .08); }
.button.small { padding: 10px 16px; font-size: 15px; box-shadow: 0 3px 0 var(--red-deep); }
.store-button svg { width: 22px; height: 22px; fill: currentColor; }
.store-button small { display: block; font: 700 11px/1 var(--body); letter-spacing: .02em; opacity: .85; margin-bottom: 3px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--burst);
  color: var(--ink);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 90px;
  background: var(--canvas);
  clip-path: ellipse(75% 100% at 50% 100%);
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  padding-top: 64px; padding-bottom: 120px;
}
.hero h1 { font-size: clamp(44px, 7vw, 80px); color: #fff; text-shadow: 0 4px 0 var(--red-deep), 0 10px 30px rgba(122, 20, 32, .35); }
.hero h1 span { color: var(--sun); display: block; }
.hero .lede { font-size: 20px; font-weight: 700; max-width: 30em; color: var(--maroon); margin: 0 0 28px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .note { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--maroon); }
.phone {
  justify-self: center;
  width: min(320px, 78vw);
  aspect-ratio: 886 / 1920;
  border-radius: 46px; padding: 10px;
  background: #1a0b1d;
  box-shadow: 0 0 0 2px rgba(255,255,255,.25) inset, 0 30px 60px rgba(122, 20, 32, .45);
  transform: rotate(2.5deg);
}
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: var(--night); }
.sound-toggle {
  position: absolute; right: 22px; bottom: 22px;
  border: 0; border-radius: 999px; padding: 8px 14px;
  background: rgba(255,255,255,.92); color: var(--ink); font: 800 13px/1 var(--body); cursor: pointer;
}
.phone-wrap { position: relative; justify-self: center; }

/* Floating tiles */
.tile {
  position: absolute; width: 54px; height: 70px; border-radius: 13px;
  background: #fff; box-shadow: 0 5px 0 #E9CDB4, 0 12px 20px rgba(122, 20, 32, .25);
  display: grid; place-items: center;
  font: 800 30px/1 var(--display);
  animation: bob 6s ease-in-out infinite;
  z-index: 0;
}
.tile.r { color: var(--red); }
.tile.g { color: var(--green); }
.tile.b { color: var(--ocean); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--rot, -8deg)); } 50% { transform: translateY(-14px) rotate(var(--rot, -8deg)); } }
@media (prefers-reduced-motion: reduce) { .tile { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .ctas { justify-content: center; }
  .tile { display: none; }
}

/* Sections */
section { padding: 72px 0; }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-title h2 { font-size: clamp(34px, 5vw, 52px); color: var(--maroon); }
.section-title p { color: var(--ink-soft); font-size: 19px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 26px;
  box-shadow: 0 4px 0 var(--canvas-deep);
}
.feature .badge {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font: 800 26px/1 var(--display); color: #fff; margin-bottom: 14px;
}
.feature h3 { font-size: 24px; color: var(--ink); }
.feature p { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Screenshot strip */
.shots-section { background: var(--night); color: var(--cream); }
.shots-section .section-title h2 { color: var(--sun); }
.shots-section .section-title p { color: var(--cream); opacity: .85; }
.shots {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 20px 24px; margin: 0 auto; max-width: 1400px;
  scrollbar-width: thin;
}
.shots img {
  flex: 0 0 auto; width: 240px; height: auto; border-radius: 18px;
  scroll-snap-align: center; box-shadow: 0 16px 30px rgba(0,0,0,.35);
}
.shots-hint { text-align: center; font-size: 14px; opacity: .7; margin: 4px 0 0; }

/* Download band */
.download { text-align: center; }
.download .card {
  background: var(--burst); border-radius: 32px; padding: 56px 24px;
  box-shadow: 0 8px 0 rgba(154, 27, 51, .25);
}
.download h2 { color: #fff; font-size: clamp(34px, 5vw, 54px); text-shadow: 0 3px 0 var(--red-deep); }
.download p { color: var(--maroon); font-weight: 700; font-size: 19px; margin: 0 0 24px; }
.download img.icon { width: 96px; height: 96px; margin: 0 auto 18px; filter: drop-shadow(0 8px 14px rgba(122,20,32,.3)); }

/* Footer */
.site-footer { background: var(--night); color: var(--cream); padding: 40px 0; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.site-footer img { height: 30px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--cream); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--sun); }
.site-footer .legal { width: 100%; opacity: .7; font-size: 13px; margin: 0; }

/* Text pages (privacy, support) */
.page-hero { background: var(--burst); padding: 56px 0 64px; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(38px, 6vw, 60px); text-shadow: 0 3px 0 var(--red-deep); }
.page-hero p { color: var(--maroon); font-weight: 700; margin: 0; }
.prose { max-width: 780px; margin: 0 auto; padding: 48px 20px 80px; }
.prose h2 { font-size: 30px; color: var(--maroon); margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; background: #fff; border-radius: 14px; overflow: hidden; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--canvas-deep); }
.prose th { background: var(--canvas-deep); font-weight: 800; }
.prose .table-scroll { overflow-x: auto; }
.prose .callout { background: #fff; border-left: 6px solid var(--tangerine); border-radius: 14px; padding: 16px 20px; margin: 1.4em 0; }
.prose li { margin-bottom: .4em; }

.faq details { background: #fff; border-radius: 16px; padding: 16px 20px; margin-bottom: 12px; box-shadow: 0 3px 0 var(--canvas-deep); }
.faq summary { font-weight: 800; cursor: pointer; font-size: 18px; }
.faq details p { margin: .7em 0 0; color: var(--ink-soft); }
.contact-card { background: #fff; border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: 0 4px 0 var(--canvas-deep); margin-bottom: 40px; }
.contact-card h2 { margin-top: 0; }
