/* Meld — meldplay.com
   Warm, honey-light, pillowy. Real assets: hand-drawn wordmark, cute sprites, meadow. */

:root {
  --cream:        #FFFBF2;
  --cream-card:   #FFFDF8;
  --butter:       #FFF1D6;
  --peach:        #FFE3CC;
  --coral:        #FF8C61;
  --coral-deep:   #F4733F;
  --sage:         #8FBF9F;
  --sky:          #8FC9E8;
  --berry:        #E0567A;
  --ink:          #4A3B30;
  --ink-soft:     #7A685B;
  --line:         #F0E2CC;
  --shadow:       0 18px 40px -20px rgba(120, 80, 40, 0.35);
  --shadow-sm:    0 8px 22px -14px rgba(120, 80, 40, 0.40);
  --radius:       26px;
  --radius-sm:    16px;
  --maxw:         1080px;
}

/* Fonts loaded via <link> in each page <head> (Fredoka = web match for the game's SF Pro Rounded). */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  line-height: 1.65;
  font-size: 18px;
  background:
    radial-gradient(1100px 600px at 50% -8%, var(--butter) 0%, rgba(255,241,214,0) 60%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- real wordmark logo (black PNG used as a tintable mask) ---------- */
.logo {
  display: inline-block;
  background-color: var(--coral-deep);
  -webkit-mask: url(/assets/wordmark_meld.png) left center / contain no-repeat;
          mask: url(/assets/wordmark_meld.png) left center / contain no-repeat;
  width: 132px; height: 56px;
  transition: transform 0.25s ease;
}
.logo:hover { transform: translateY(-2px) scale(1.03); }
.logo.lg { width: 230px; height: 100px; }
.logo.sm { width: 96px; height: 40px; }
.logo.cream { background-color: var(--cream); }

/* ---------- header row ---------- */
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.appicon {
  width: 84px; height: 84px; border-radius: 19px; flex: none;
  box-shadow: 0 8px 20px -6px rgba(120,80,40,0.5);
}
.brand .logo { width: 150px; height: 60px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0 0;
}
.topbar .links { display: flex; align-items: center; }
.topbar .links a {
  color: var(--ink); text-decoration: none; font-weight: 700;
  margin-left: 20px; font-size: 16px;
  text-shadow: 0 1px 6px rgba(255,251,242,0.8);
}
.topbar .links a:hover { color: var(--coral-deep); }
.music-btn {
  background: none; border: none; cursor: pointer; padding: 4px; margin: 0;
  color: var(--ink); display: inline-flex; align-items: center; line-height: 0;
  filter: drop-shadow(0 1px 6px rgba(255,251,242,0.8));
  transition: color 0.2s ease, transform 0.2s ease;
}
.music-btn:hover { color: var(--coral-deep); transform: translateY(-1px); }
.music-btn svg { width: 22px; height: 22px; display: block; }
.music-btn .ic-on { display: none; }
.music-btn .ic-off { display: block; }
.music-btn.playing .ic-on { display: block; }
.music-btn.playing .ic-off { display: none; }

/* ---------- hero on the meadow ---------- */
.hero-meadow {
  position: relative;
  background: url(/assets/meadow_day.jpg) center 48% / cover no-repeat;
  overflow: hidden;
}
.hero-meadow::after { /* soft light wash for legibility + fade into cream below */
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,251,242,0.28) 0%, rgba(255,251,242,0) 26%),
    linear-gradient(180deg, rgba(255,251,242,0) 80%, var(--cream) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px 54px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: 30px; margin-top: 28px;
}
.hero-copy .glow { /* gentle legibility halo behind copy */ }
.hero-copy h1 {
  font-family: 'Fredoka', system-ui, -apple-system, sans-serif; font-weight: 700;
  font-size: clamp(36px, 4.4vw, 46px); line-height: 1.12;
  color: var(--ink); margin: 22px 0 14px; max-width: 19ch;
  text-shadow: 0 2px 16px rgba(255,251,242,0.9), 0 1px 2px rgba(255,251,242,1);
}
.hero-copy p.sub {
  font-size: clamp(17px, 2vw, 20px); color: var(--ink);
  max-width: 47ch; margin: 0 0 26px; font-weight: 500;
  text-wrap: balance;
  text-shadow: 0 1px 10px rgba(255,251,242,0.95);
}
.nb { white-space: nowrap; }

/* ---------- App Store "coming soon" badge ---------- */
.appstore-soon {
  height: 56px; width: auto; display: block;
  border-radius: 9px; box-shadow: var(--shadow-sm);
}
.soon-note { display:block; margin-top: 12px; font-size: 14px; color: var(--ink-soft);
  font-weight: 600; text-shadow: 0 1px 8px rgba(255,251,242,0.9); }

/* ---------- iPhone mockup with real game board ---------- */
.phone-col { display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; height: 620px;
  background: #1c1714; border-radius: 52px; padding: 13px;
  box-shadow: 0 40px 80px -28px rgba(60,40,20,0.6), 0 0 0 2px rgba(255,255,255,0.06) inset;
}
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 40px; overflow: hidden; background: #bfe2f2;
}
.phone-screen .real-shot {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 103%; height: auto; display: block;   /* full status bar at top; ~bottom 3% (fps) clipped by frame */
  image-rendering: -webkit-optimize-contrast;
}

/* ---------- ladder of real animals ---------- */
.ladder-sec { text-align: center; padding: 56px 0 62px; }
.ladder-sec h2 {
  font-family:'Fredoka', system-ui, -apple-system, sans-serif; font-weight:700; color: var(--ink);
  font-size: clamp(24px, 4vw, 32px); margin: 0 0 6px;
}
.ladder-sec p { color: var(--ink-soft); margin: 0 0 26px; }
.ladder {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 6px; flex-wrap: wrap; max-width: 760px; margin: 0 auto;
}
.ladder img { filter: drop-shadow(0 8px 12px rgba(120,80,40,0.22)); }

/* ---------- feature cards ---------- */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px; margin: 44px 0;
}
.card {
  background: var(--cream-card); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
}
.card .ico { font-size: 30px; line-height: 1; }
.card h3 { font-family:'Fredoka', system-ui, -apple-system, sans-serif; font-weight:600; margin: 12px 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- hero promise chips ---------- */
.promises { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 26px; }
.promises li {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--cream-card); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-weight: 700; font-size: 15px; color: var(--ink); box-shadow: var(--shadow-sm);
}
.promises li::before { content: '✓'; color: var(--sage); font-weight: 900; }
.promises li strong { color: var(--coral-deep); }

/* ---------- manifesto band (night meadow) ---------- */
.manifesto {
  position: relative; overflow: hidden;
  background: url(/assets/meadow_night.jpg) center 28% / cover no-repeat;
  background-color: #161a3a;
}
.manifesto::before {  /* legibility veil over the starry night */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,16,46,0.62) 0%, rgba(12,16,46,0.40) 45%, rgba(12,16,46,0.66) 100%);
}
.manifesto .owl {
  position: absolute; z-index: 3; width: 124px; top: 10px; right: 22%;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,0.45));
  animation: owlfloat 6s ease-in-out infinite;
}
@keyframes owlfloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-14px) rotate(2deg); }
}
.manifesto .inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 70px 22px; text-align: left; }
.definition {
  max-width: 440px; margin: 0 auto 40px; padding: 22px 26px; text-align: left;
  background: var(--cream-card); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
/* footer colophon: plain, centered, no card chrome — the wordmark above is the headword */
.footer-def {
  background: transparent; border: none; box-shadow: none;
  max-width: 680px; margin: 0 auto 22px; padding: 0; text-align: center;
}
.footer-def .dl-word { margin: 0 0 8px; }
.footer-def .dl-def { color: var(--ink); font-size: 16px; }
.footer-def .dl-ety { color: var(--ink-soft); font-size: 14px; }
.definition .dl-word { font-family: 'Fredoka', system-ui, -apple-system, sans-serif;
  font-weight: 700; font-size: 26px; color: var(--coral-deep); margin: 0 0 9px; }
.definition .dl-phon { font-weight: 600; font-size: 16px; color: var(--ink-soft); margin-left: 5px; }
.definition .dl-pos { font-style: italic; font-weight: 600; font-size: 15px; color: var(--ink-soft); margin-left: 3px; }
.definition .dl-def { margin: 0 0 7px; font-size: 17px; color: var(--ink); line-height: 1.5; }
.definition .dl-ety { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.definition .dl-ety em { color: var(--coral-deep); font-style: italic; font-weight: 600; }
.manifesto .kicker { text-transform: uppercase; letter-spacing: 2.5px; font-weight: 800;
  font-size: 13px; color: #FFB98F; margin: 0 0 12px; }
.manifesto h2 { font-family: 'Fredoka', system-ui, -apple-system, sans-serif; font-weight: 700;
  color: #FFF6EA; font-size: clamp(30px, 5.2vw, 35px); line-height: 1.15; margin: 0 0 22px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.manifesto p { font-size: 18px; color: rgba(255,250,242,0.92); margin: 0 0 16px; max-width: 858px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.3); }
.manifesto p strong { color: #FFD79A; font-weight: 700; }

/* ---------- "what you'll never find" ---------- */
.never { padding: 58px 0 8px; }
.never h2 { text-align: center; font-family: 'Fredoka', system-ui, -apple-system, sans-serif;
  font-weight: 700; color: var(--ink); font-size: clamp(24px, 4vw, 32px); margin: 0 0 6px; }
.never .sub2 { text-align: center; color: var(--ink-soft); margin: 0 0 30px; font-weight: 600; }
.never-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.never-grid .item {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--cream-card); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow);
}
.never-grid .x {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: #FFE1D6;
  color: var(--coral-deep); font-weight: 900; font-size: 13px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
}
.never-grid .item p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.never-grid .item b { color: var(--ink); }

.closing { font-family: 'Fredoka', system-ui, -apple-system, sans-serif; font-weight: 600;
  font-size: clamp(19px, 3vw, 24px); color: var(--ink); max-width: 24ch; margin: 0 auto; }

/* ---------- doc pages (privacy/support) ---------- */
header.site { padding: 22px 0 8px; }
.nav { max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav .links a { color: var(--ink-soft); text-decoration:none; font-weight:600; margin-left:18px; font-size:16px; }
.nav .links a:hover { color: var(--coral-deep); }
main.doc {
  background: var(--cream-card); border: 1.5px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 52px); margin: 24px auto 40px; max-width: 860px;
}
main.doc h1 { font-family:'Fredoka', system-ui, -apple-system, sans-serif; font-weight:700; color: var(--coral-deep);
  font-size: clamp(30px, 5vw, 40px); margin: 0 0 4px; }
main.doc .eyebrow { color: var(--ink-soft); font-weight:700; text-transform:uppercase;
  letter-spacing:1.5px; font-size:13px; margin: 0 0 18px; }
main.doc h2 { font-family:'Fredoka', system-ui, -apple-system, sans-serif; font-weight:600; color: var(--ink); font-size:23px; margin: 34px 0 10px; }
main.doc h3 { font-size:19px; color: var(--ink); margin: 22px 0 6px; }
main.doc p, main.doc li { color: var(--ink); }
main.doc a { color: var(--coral-deep); font-weight:600; }
main.doc ul { padding-left: 22px; }
main.doc li { margin: 7px 0; }
main.doc .callout { background: var(--butter); border:1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 22px 0; }
main.doc .callout strong { color: var(--coral-deep); }
.faq { border:1.5px solid var(--line); border-radius: var(--radius-sm); margin:12px 0; overflow:hidden; background: var(--cream); }
.faq summary { cursor:pointer; font-family:'Fredoka', system-ui, -apple-system, sans-serif; font-weight:600; font-size:18px; padding:16px 20px; list-style:none; color: var(--ink); }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:'＋'; float:right; color: var(--coral); font-weight:700; }
.faq[open] summary::after { content:'－'; }
.faq .body { padding: 0 20px 18px; color: var(--ink-soft); }
.faq .body p { margin: 6px 0; }
.mailbtn, main.doc a.mailbtn { display:inline-block; background: var(--coral); color:#fff; text-decoration:none;
  font-weight:700; padding:13px 26px; border-radius:999px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, background .2s ease; }
.mailbtn:hover, main.doc a.mailbtn:hover { transform: translateY(-2px); background: var(--coral-deep); color:#fff; }

/* ---------- footer ---------- */
footer.site { border-top:1.5px solid var(--line); margin-top:30px; padding:30px 22px 50px;
  text-align:center; color: var(--ink-soft); font-size:15px; }
footer.site .links { margin: 12px 0 6px; }
footer.site a { color: var(--ink-soft); text-decoration:none; font-weight:600; margin:0 10px; }
footer.site a:hover { color: var(--coral-deep); }

.center { text-align:center; } .muted { color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; } .phone-col { order: 1; margin-bottom: 10px; }
  .hero-copy h1, .hero-copy p.sub { margin-left: auto; margin-right: auto; }
  .logo.lg { width: 200px; height: 86px; }
  .ladder img { transform: scale(0.85); }
  .manifesto .owl { width: 88px; top: 18px; right: 14px; }
  .manifesto .inner { padding: 60px 22px; }
  .hero-copy h1 { max-width: 100%; font-size: clamp(34px, 8.5vw, 44px); }
  .hero-copy p.sub { max-width: 100%; }
  .hero-copy .promises { justify-content: center; }
  .hero-copy .appstore-soon { margin-left: auto; margin-right: auto; }
  .hero-copy .soon-note { text-align: center; }
  /* shrink the header so brand + music + links fit one row on phones */
  .appicon { width: 46px; height: 46px; border-radius: 11px; }
  .brand { gap: 9px; }
  .brand .logo { width: 92px; height: 38px; }
  .topbar { padding-top: 18px; }
  .topbar .links a { margin-left: 13px; font-size: 15px; }
  .music-btn svg { width: 20px; height: 20px; }
}

/* ---- FAQ (AEO/SEO) — collapsible ---- */
.faq-block { margin: 0; padding: 46px 0 58px; }
.faq-block h2 { text-align: center; margin: 0 0 24px; }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--coral-deep);
  font-size: 1.35rem;
  line-height: 1;
}
.faq-item[open] > summary::after { content: "\2013"; }
.faq-item > summary:hover { color: var(--coral-deep); }
.faq-item > p {
  margin: 0;
  padding: 2px 20px 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
.faq-item a { color: var(--coral-deep); }

/* ---- FAQ outer collapsible (whole section folds under the heading) ---- */
.faq-section { max-width: 760px; margin: 0 auto; }
.faq-section > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.faq-section > summary::-webkit-details-marker { display: none; }
.faq-section > summary h2 { margin: 0; }
.faq-section > summary::after {
  content: "+";
  color: var(--coral-deep);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}
.faq-section[open] > summary::after { content: "\2013"; }
.faq-section > summary:hover h2 { color: var(--coral-deep); }
.faq-section[open] .faq-list { margin-top: 24px; }

/* ---- footer IP / trademark note ---- */
.ip-note {
  max-width: 520px;
  margin: 14px auto 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--ink-soft);
  opacity: 0.85;
  text-wrap: balance;
}
