/* CoupleBites site — warm neo-brutalism, in the app's own palette. */
:root {
  --paper: #FBF1EC;
  --paper-raised: #FFFFFF;
  --paper-deep: #F3E2D8;
  --ink: #2B1B24;
  --ink-soft: #7A6068;
  --outline: #4A3238;
  --cherry: #D62A47;
  --cherry-deep: #A81E38;
  --butter: #E8A429;
  --butter-soft: #FBE3A9;
  --sage: #5C7A5D;
  --sage-soft: #D3E3CF;
  --dusk: #6758AB;
  --dusk-soft: #DCD6F3;
  --pink-soft: #F9D3D9;
  --line: 2.5px solid var(--outline);
  --shadow: 5px 5px 0 var(--outline);
  --shadow-sm: 3px 3px 0 var(--outline);
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(74, 50, 56, 0.09) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--cherry-deep); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
img { max-width: 100%; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Top bar */
.topbar { padding: 18px 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
}
.brand img { width: 40px; height: 40px; border-radius: 11px; border: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 0.9rem;
  padding: 6px 12px; border: var(--line); border-radius: 999px; background: var(--paper-raised);
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--butter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border: var(--line); border-radius: 16px;
  background: var(--paper-raised); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--outline); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--outline); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.cherry { background: var(--cherry); color: #fff; }
.btn svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.btn .two-line { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn .two-line small { font-family: var(--body); font-size: 0.72rem; font-weight: 700; opacity: 0.8; }

/* Hero */
.hero { padding: 28px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 16px; padding: 4px 12px;
  background: var(--butter); border: var(--line); border-radius: 999px;
  font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em;
  transform: rotate(-2deg);
}
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 700; letter-spacing: -0.02em; }
.hero h1 .mark {
  display: inline-block; padding: 0 10px; margin: 4px 0;
  background: var(--cherry); color: #fff; border: var(--line); border-radius: 14px;
  box-shadow: var(--shadow); transform: rotate(-1.5deg);
}
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 520px; margin: 22px 0 28px; font-weight: 600; }
.hero .hand { font-family: var(--hand); font-size: 1.5rem; color: var(--cherry-deep); margin: 18px 0 0; transform: rotate(-2deg); }

/* Sticker pile (hero art) */
.pile { position: relative; aspect-ratio: 1; max-width: 380px; width: 100%; margin: 0 auto; }
.pile .app {
  position: absolute; inset: 22%; border-radius: 26%; border: 3px solid var(--outline);
  box-shadow: 8px 8px 0 var(--outline); background: var(--paper-raised); overflow: hidden;
}
.pile .app img { width: 100%; height: 100%; display: block; }
.sticker {
  position: absolute; display: grid; place-items: center;
  width: 23%; aspect-ratio: 1; font-size: clamp(1.8rem, 5vw, 2.6rem);
  background: var(--paper-raised); border: var(--line); border-radius: 50%;
  box-shadow: var(--shadow-sm);
  animation: bob 3.2s ease-in-out infinite alternate;
}
.sticker:nth-child(2) { top: 2%; left: 8%; background: var(--butter-soft); --r: -10deg; animation-delay: -0.4s; }
.sticker:nth-child(3) { top: 0; right: 10%; background: var(--pink-soft); --r: 8deg; animation-delay: -1.1s; }
.sticker:nth-child(4) { bottom: 6%; left: 2%; background: var(--sage-soft); --r: 6deg; animation-delay: -1.8s; }
.sticker:nth-child(5) { bottom: 2%; right: 4%; background: var(--dusk-soft); --r: -7deg; animation-delay: -2.4s; }
.sticker:nth-child(6) { top: 40%; right: -4%; width: 18%; --r: 12deg; animation-delay: -0.9s; }
.sticker:nth-child(7) { top: 44%; left: -4%; width: 18%; background: var(--butter-soft); --r: -12deg; animation-delay: -2s; }
@keyframes bob {
  from { transform: translateY(-5px) rotate(var(--r, 0deg)); }
  to { transform: translateY(6px) rotate(calc(var(--r, 0deg) * -0.5)); }
}

/* Ticker */
.ticker {
  background: var(--ink); color: var(--paper); border-block: var(--line);
  overflow: hidden; white-space: nowrap; transform: rotate(-1deg); margin: 0 -20px;
}
.ticker .track {
  display: inline-block; padding: 12px 0;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.02em;
  animation: scroll 32s linear infinite;
}
.ticker span { margin: 0 18px; }
.ticker .dot { color: var(--butter); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
section { padding: 64px 0; }
.section-title { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 10px; }
.section-sub { color: var(--ink-soft); font-weight: 600; margin: 0 0 32px; max-width: 560px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile {
  background: var(--paper-raised); border: var(--line); border-radius: 22px;
  padding: 22px; box-shadow: var(--shadow);
}
.tile .emoji {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 14px;
  font-size: 1.7rem; border: var(--line); border-radius: 16px; background: var(--paper);
}
.tile h3 { font-size: 1.3rem; margin-bottom: 6px; }
.tile p { margin: 0; color: var(--ink-soft); font-weight: 600; font-size: 0.98rem; }
.tile.butter { background: var(--butter-soft); }
.tile.pink { background: var(--pink-soft); }
.tile.sage { background: var(--sage-soft); }
.tile.dusk { background: var(--dusk-soft); }
.tile:nth-child(3n+1) { transform: rotate(-0.6deg); }
.tile:nth-child(3n) { transform: rotate(0.6deg); }

/* Slime stages */
.stages { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.stage {
  padding: 6px 12px; border: var(--line); border-radius: 999px; background: var(--paper-raised);
  font-weight: 800; font-size: 0.85rem;
}
.stage b { color: var(--cherry-deep); }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan { background: var(--paper-raised); border: var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.plan.pro { background: var(--butter); }
.plan h3 { font-size: 1.8rem; }
.plan .tag {
  display: inline-block; margin: 6px 0 16px; padding: 2px 10px; border: var(--line); border-radius: 999px;
  background: var(--paper); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-weight: 700; }
.plan li::before {
  content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px;
  border: 2px solid var(--outline); border-radius: 8px; background: var(--paper-raised); font-size: 0.8rem;
}
.plan.pro li::before { content: "★"; }
.plan .fine { margin: 18px 0 0; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.plan.pro .fine { color: var(--ink); }

/* Callout */
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
  background: var(--sage); color: #fff; border: var(--line); border-radius: 26px; padding: 28px;
  box-shadow: var(--shadow);
}
.callout .big { font-size: 3rem; line-height: 1; }
.callout h2 { font-size: 1.9rem; margin-bottom: 6px; }
.callout p { margin: 0; font-weight: 600; opacity: 0.95; }

.cta-band {
  text-align: center; background: var(--cherry); color: #fff;
  border: var(--line); border-radius: 30px; padding: 44px 22px; box-shadow: var(--shadow);
}
.cta-band h2 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 10px; }
.cta-band p { margin: 0 0 26px; font-weight: 700; opacity: 0.92; }
.cta-band .row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Legal pages */
.doc-head { padding: 24px 0 8px; }
.doc-head h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); }
.doc-head .meta {
  display: inline-block; margin-top: 14px; padding: 4px 12px; border: var(--line); border-radius: 999px;
  background: var(--paper-raised); font-weight: 800; font-size: 0.85rem;
}
.summary {
  margin: 28px 0 8px; padding: 22px; background: var(--butter-soft);
  border: var(--line); border-radius: 22px; box-shadow: var(--shadow); font-weight: 600;
}
.doc { padding: 24px 0 40px; }
.doc section {
  padding: 22px; margin: 0 0 22px; background: var(--paper-raised);
  border: var(--line); border-radius: 22px; box-shadow: var(--shadow-sm);
}
.doc h2 { font-size: 1.45rem; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.doc h2 .n {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px;
  background: var(--cherry); color: #fff; border: var(--line); border-radius: 12px; font-size: 1rem;
}
.doc p, .doc li { color: var(--ink); }
.doc p { margin: 0 0 12px; }
.doc p:last-child, .doc ul:last-child { margin-bottom: 0; }
.doc ul { padding-left: 20px; margin: 0 0 12px; }
.doc li { margin: 6px 0; }
.table-wrap { overflow-x: auto; margin: 6px 0 4px; border: var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 2px solid var(--outline); }
tr:last-child td { border-bottom: 0; }
th { background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; }
td:first-child { font-weight: 800; }
tbody tr:nth-child(even) td { background: var(--paper); }

/* Footer */
footer { padding: 40px 0 48px; }
footer .wrap {
  display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between;
  border-top: var(--line); padding-top: 24px; font-weight: 700; color: var(--ink-soft);
}
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--ink); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .pile { max-width: 300px; order: -1; }
  .grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .tile:nth-child(n) { transform: none; }
  .callout { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .nav a { padding: 5px 10px; font-size: 0.82rem; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sticker, .ticker .track { animation: none; }
  .btn { transition: none; }
}
