/* Many Many Things */

:root {
  --bg: #2F5468;
  --bg-deep: #254555;
  --ink: #1E2A30;
  --white: #FFFFFF;
  --gold: #DDB66B;
  --sage: #8BA38E;
  --rose: #CE7F85;
  --pink: #E298B1;
  --blush: #D98A92;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
  text-shadow: 0.05em 0.05em 0 var(--blush);
}

.lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 500; line-height: 1.4; margin: 0; max-width: 34ch; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
a.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.btn--gold { background: var(--gold); }
.btn--pink { background: var(--pink); }
.btn--white { background: var(--white); min-height: 46px; padding: 0 26px; }

/* ---- Header ---- */
.site-head { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 8px; }
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 0.9;
  text-decoration: none;
  -webkit-text-stroke: 4px var(--blush);
  paint-order: stroke fill;
  text-shadow: 2px 3px 0 var(--blush);
}
.nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.nav a { font-weight: 600; text-decoration: none; opacity: 0.85; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 24px;
  padding-top: clamp(32px, 7vw, 88px);
  padding-bottom: clamp(48px, 8vw, 96px);
}
.hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); margin-bottom: 28px; }
.hero .lead { margin-bottom: 36px; }
.mascot { filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.25)); }
.hero__mascot { width: min(100%, 340px); justify-self: center; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }

/* ---- Things ---- */
.things { padding-top: clamp(32px, 6vw, 64px); padding-bottom: clamp(48px, 8vw, 96px); }
.things h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 36px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 32px 28px 36px;
  border: 2px solid var(--ink);
  border-radius: 36px;
  color: var(--ink);
}
.card--sage { background: var(--sage); }
.card--pink { background: var(--rose); }
.card--gold { background: var(--gold); }
.card__art { width: 150px; height: 150px; margin-bottom: 8px; transition: transform 0.4s var(--ease); }
.card:hover .card__art { transform: translateY(-6px) rotate(-3deg); }
.card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.8rem; margin: 0; }
.card p { margin: 0 0 14px; max-width: 34ch; font-size: 1.05rem; }
.btn--static { cursor: default; }
.note { margin: 28px 0 0; text-align: center; font-weight: 500; opacity: 0.8; }

/* ---- About ---- */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 24px;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
}
.about h2 { font-size: clamp(2.6rem, 7vw, 5.2rem); margin-bottom: 28px; }
.about .lead { max-width: 40ch; margin-bottom: 24px; }
.pill {
  display: inline-block;
  padding: 6px 18px;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
}
.about__mascot { width: min(100%, 340px); justify-self: center; }

/* ---- Advice ---- */
.advice {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  column-gap: 24px;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
}
.advice h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 28px; }
.advice .lead { max-width: 38ch; margin-bottom: 40px; }
.advice__copy { align-self: center; }
.advice__mascot { width: min(100%, 300px); justify-self: center; margin-bottom: -12px; position: relative; z-index: 1; }
.hello {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 22px 24px 22px 34px;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 24px;
  color: var(--ink);
}
.hello__title { font-family: var(--font-body); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--bg); }
.hello__email { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.hello .btn { margin-left: auto; }

/* ---- Footer ---- */
.site-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 28px;
  padding-bottom: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.95rem;
  opacity: 0.8;
}
.site-foot p { margin: 0; }

/* ---- App pages ---- */
.nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.app-icon { width: 112px; border-radius: 26px; border: 2px solid var(--ink); margin-bottom: 24px; }
.phone-shot { width: 100%; max-width: 300px; border: 6px solid var(--ink); border-radius: 40px; box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25); }
.hero__shot { justify-self: center; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.5vw, 28px); padding-bottom: clamp(48px, 8vw, 96px); }
.feature { padding: 28px; background: var(--white); border: 2px solid var(--ink); border-radius: 28px; color: var(--ink); }
.feature:nth-child(4n + 1) { background: var(--sage); }
.feature:nth-child(4n + 2) { background: var(--rose); }
.feature:nth-child(4n + 3) { background: var(--gold); }
.feature:nth-child(4n + 4) { background: var(--pink); }
.feature h2 { margin: 0 0 8px; font-size: 1.6rem; }
.feature p { margin: 0; }
.shots { display: flex; justify-content: center; gap: clamp(16px, 4vw, 48px); padding-bottom: clamp(48px, 8vw, 96px); }
.shots .phone-shot { width: calc(50% - 24px); }
.small-print { padding-bottom: 32px; font-size: 0.85rem; opacity: 0.7; }
.doc { max-width: 760px; padding-top: clamp(32px, 6vw, 64px); padding-bottom: clamp(48px, 8vw, 96px); }
.doc h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 24px; }
.doc .lead { margin-bottom: 32px; }
.doc h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.doc h3 { font-size: 1.2rem; margin: 28px 0 6px; }
.doc p, .doc li { max-width: 65ch; }
.doc a:not(.hello__email) { color: var(--gold); }
.doc .hello { margin-bottom: 8px; }
.meta { opacity: 0.75; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Small screens ---- */
@media (max-width: 760px) {
  .hero, .about, .advice { grid-template-columns: 1fr; }
  .hero__mascot { width: 140px; grid-row: 1; justify-self: end; margin-bottom: -8px; }
  .about__mascot { width: 220px; }
  .advice__mascot { width: 180px; justify-self: end; margin-top: 8px; }
  .cards, .features { grid-template-columns: 1fr; }
  .hero__shot { grid-row: auto; max-width: 240px; }
  .hello { padding: 22px; }
  .hello .btn { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__mascot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card__art { transition: none; }
}
