/* ============================================================
   Binky Block — global design system
   ============================================================ */

:root {
  --yellow: #FFD100;
  --yellow-deep: #E6BC00;
  --yellow-soft: #FFF1A8;
  --navy: #162879;
  --navy-deep: #0E1B57;
  --cream: #FFFAEE;
  --cream-deep: #F6EFD9;
  --orange: #FF8C00;
  --red: #E23C2A;
  --ink: #1A1A1A;
  --ink-soft: #4B4B55;
  --muted: #8A8A93;
  --line: #E8E2CE;

  --shadow-card: 0 6px 0 rgba(22, 40, 121, 0.06), 0 12px 24px rgba(22, 40, 121, 0.08);
  --shadow-pop:  0 8px 0 rgba(22, 40, 121, 0.10), 0 18px 32px rgba(22, 40, 121, 0.14);
  --shadow-sticker: 0 18px 30px rgba(0, 0, 0, 0.22);

  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;

  --font-display: "Nunito", system-ui, -apple-system, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;

  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html, body { background: var(--cream); color: var(--ink); font-family: var(--font-body); }
body { font-size: 17px; line-height: 1.55; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* selection */
::selection { background: var(--navy); color: var(--yellow); }

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

/* ---------- TYPOGRAPHY ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--navy);
}
.h1 { font-size: clamp(44px, 6.4vw, 84px); }
.h2 { font-size: clamp(34px, 4.4vw, 56px); }
.h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; }
.lead { font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-soft); line-height: 1.5; max-width: 56ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--navy);
  background: var(--cream);
  padding: 8px 14px; border-radius: 999px;
  border: 2px solid var(--navy);
}
.eyebrow.on-yellow { background: rgba(255,255,255,0.55); }
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 17px;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy); color: var(--cream);
  box-shadow: 0 6px 0 rgba(0,0,0,0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(0,0,0,0.20); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.18); }

.btn-secondary {
  background: var(--cream); color: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 6px 0 var(--navy);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--navy); }
.btn-secondary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--navy); }

.btn-yellow {
  background: var(--yellow); color: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 6px 0 var(--navy);
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--navy); }

.btn-ghost { color: var(--navy); }
.btn-ghost:hover { background: rgba(22,40,121,0.06); }

.btn-lg { padding: 20px 32px; font-size: 19px; }
.btn-sm { padding: 11px 18px; font-size: 14px; }

/* Apple-mark — a stylized "iPhone" leaf, NOT the official Apple logo */
.iphone-glyph {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- BANANA TEXTURE ---------- */
.banana-bg {
  background-image: url('assets/banana-tile.svg');
  background-size: 120px 120px;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 2px solid rgba(22,40,121,0.06);
}
.card-strong {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-pop);
  border: 2px solid var(--navy);
}

/* ---------- SPEECH BUBBLES ---------- */
.bubble {
  position: relative;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 22px;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  box-shadow: 0 6px 0 rgba(22,40,121,0.12);
  max-width: 320px;
}
.bubble.bubble-binky {
  background: #fff;
}
.bubble.bubble-user {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
  box-shadow: 0 6px 0 rgba(0,0,0,0.18);
}
.bubble-tail-l::before,
.bubble-tail-r::before {
  content: ""; position: absolute; bottom: -16px;
  width: 22px; height: 22px;
  background: inherit;
  border: 3px solid var(--navy);
  border-top: none; border-right: none;
  transform: rotate(-45deg);
}
.bubble-tail-l::before { left: 28px; }
.bubble-tail-r::before { right: 28px; transform: rotate(-45deg); }

/* ---------- STICKY HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 238, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 2px solid rgba(22,40,121,0.08);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
}
.site-header .logo img { height: 38px; width: auto; }
.site-header nav {
  display: flex; align-items: center; gap: 22px;
  white-space: nowrap;
}
.site-header nav a.nav-link {
  font-weight: 700; color: var(--navy);
  font-size: 15px;
  white-space: nowrap;
}
.site-header nav a.btn-primary { color: var(--cream); }
.site-header nav a.btn-primary:hover { color: var(--yellow); }
.site-header .container.inner { padding-right: 16px; padding-left: 24px; }
.site-header nav a:hover { color: var(--orange); }

@media (max-width: 800px) {
  .site-header nav .nav-link { display: none; }
}

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--navy); color: var(--yellow);
  border-top: 3px solid var(--navy-deep);
  border-bottom: 3px solid var(--navy-deep);
  overflow: hidden; white-space: nowrap;
  font-family: var(--font-display); font-weight: 900;
  font-size: 22px; letter-spacing: 0.06em;
  padding: 14px 0;
}
.marquee .track {
  display: inline-flex; gap: 36px;
  animation: scroll 32s linear infinite;
  padding-right: 36px;
}
.marquee .track span { display: inline-flex; align-items: center; gap: 36px; }
.marquee .dot {
  display: inline-block; width: 12px; height: 12px;
  background: var(--orange); border-radius: 50%;
  vertical-align: middle;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy); color: var(--cream);
  padding: 60px 0 30px;
}
.footer a { color: var(--cream); opacity: 0.85; }
.footer a:hover { opacity: 1; color: var(--yellow); }

/* ---------- FOCUS ---------- */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- UTILS ---------- */
.center { text-align: center; }
.stack-1 > * + * { margin-top: 8px; }
.stack-2 > * + * { margin-top: 16px; }
.stack-3 > * + * { margin-top: 24px; }
.stack-4 > * + * { margin-top: 36px; }
.row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--muted); }

/* ============================================================
   LEGAL PAGES (privacy + terms)
   ============================================================ */
.legal-hero {
  background: var(--yellow);
  position: relative; overflow: hidden;
  padding: 80px 0 60px;
  border-bottom: 3px solid var(--navy);
}
.legal-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url('assets/banana-tile.svg');
  background-size: 130px 130px;
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.legal-hero .container { position: relative; }
.legal-hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(40px, 6vw, 72px);
  color: var(--navy); letter-spacing: -0.02em; line-height: 0.95;
}
.legal-hero p.eff {
  margin-top: 16px;
  font-weight: 700; color: var(--navy-deep);
}
.legal-hero .kicker-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px; flex-wrap: wrap;
}

.legal-body { background: var(--cream); padding: 70px 0 110px; }
.legal-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 800px) { .legal-grid { grid-template-columns: 1fr; gap: 24px; } }

.legal-toc {
  position: sticky; top: 100px;
  font-size: 14px;
}
.legal-toc h6 {
  font-family: var(--font-display); font-weight: 900;
  color: var(--navy); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.legal-toc ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.legal-toc a {
  font-weight: 700; color: var(--ink-soft);
  border-left: 2px solid transparent; padding-left: 10px;
  display: block;
}
.legal-toc a:hover { color: var(--navy); border-left-color: var(--orange); }
@media (max-width: 800px) {
  .legal-toc { position: static; padding: 16px 18px; background: var(--cream-deep); border-radius: 14px; }
}

.legal-content {
  max-width: 720px;
  font-size: 16px; line-height: 1.65;
  color: var(--ink);
}
.legal-content h2 {
  font-family: var(--font-display); font-weight: 900;
  color: var(--navy); font-size: 28px;
  margin: 48px 0 14px;
  letter-spacing: -0.01em;
  scroll-margin-top: 90px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: var(--font-display); font-weight: 800;
  color: var(--navy); font-size: 19px;
  margin: 28px 0 10px;
}
.legal-content p { margin-bottom: 14px; }
.legal-content ul {
  margin: 8px 0 18px 0;
  list-style: none;
}
.legal-content ul li {
  position: relative; padding-left: 22px;
  margin-bottom: 10px;
}
.legal-content ul li::before {
  content: "🍌"; position: absolute; left: 0;
  font-size: 13px; line-height: 1.4;
}
.legal-content a { color: var(--navy); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--orange); }
.legal-content strong { color: var(--navy); font-weight: 800; }
.legal-callout {
  background: var(--cream-deep);
  border: 2px solid var(--navy);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 18px 0;
  font-size: 15px; font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}
.legal-callout strong { color: var(--orange); }

/* ============================================================
   REFERRAL PAGE
   ============================================================ */
.ref-hero {
  background:
    radial-gradient(120% 80% at 50% 0%, var(--yellow) 0%, var(--yellow-deep) 100%);
  position: relative; overflow: hidden;
  padding: 80px 0 100px;
  text-align: center;
}
.ref-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url('assets/banana-tile.svg');
  background-size: 130px 130px;
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.ref-hero .container { position: relative; max-width: 720px; }
.ref-binky {
  max-width: 280px; margin: 0 auto 24px;
  filter: drop-shadow(0 22px 24px rgba(0,0,0,0.18));
  animation: floatY3 4.5s ease-in-out infinite;
}
@keyframes floatY3 {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-4deg) translateY(-14px); }
}
.ref-hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(40px, 6vw, 72px);
  color: var(--navy); letter-spacing: -0.02em; line-height: 0.95;
}
.ref-hero p.sub {
  margin: 18px auto 32px;
  font-size: 19px; font-weight: 600; color: var(--navy-deep);
  max-width: 50ch;
}
.ref-code-card {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  background: #fff;
  border: 3px dashed var(--navy);
  border-radius: 22px;
  padding: 22px 36px;
  margin: 8px auto 28px;
  box-shadow: 0 8px 0 var(--navy);
}
.ref-code-label {
  font-family: var(--font-display); font-weight: 800;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange);
}
.ref-code {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--navy); letter-spacing: 0.04em;
}
.ref-cta-row {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-top: 16px;
}
.ref-perks {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 36px;
}
.ref-perk {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.6);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800; color: var(--navy);
  font-size: 14px;
}
.ref-perk .emoji { font-size: 18px; }

.ref-instructions { background: var(--cream); padding: 70px 0; }
.ref-instructions .container { max-width: 720px; }
.ref-instructions h2 {
  font-family: var(--font-display); font-weight: 900;
  color: var(--navy); font-size: clamp(28px, 3.6vw, 42px);
  text-align: center; margin-bottom: 30px;
}
.ref-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 700px) { .ref-steps { grid-template-columns: 1fr; } }
.ref-step {
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 6px 0 var(--navy);
}
.ref-step .num {
  width: 38px; height: 38px;
  background: var(--yellow);
  border: 3px solid var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900;
  color: var(--navy); font-size: 17px;
  margin-bottom: 14px;
  box-shadow: 0 3px 0 var(--navy);
}
.ref-step h4 {
  font-family: var(--font-display); font-weight: 900;
  font-size: 19px; color: var(--navy); margin-bottom: 6px;
}
.ref-step p {
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  line-height: 1.4;
}

/* Shared site-header logo height (for legal/referral pages) */
.site-header .logo img { height: 42px; width: auto; }
