/* ============================================================
   Brick Blitz — landing page styles
   Candy-toy world: cream paper desk, sticker UI, hard shadows.
   ============================================================ */

:root {
  --cream: #fff6ec;
  --cream-deep: #ffefdc;
  --ink: #33302e;
  --ink-soft: rgba(51, 48, 46, 0.74);
  --coral: #ff6b57;
  --sunny: #ffc93c;
  --mint: #3ecfb2;
  --sky: #7ec8ff;
  --font-display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  border: 3px solid var(--ink);
  transition: transform 0.16s var(--bounce), box-shadow 0.16s var(--bounce);
  will-change: transform;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 5px 0 var(--ink);
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
}
.btn-sunny {
  background: var(--sunny);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--ink);
}
.btn-sm {
  padding: 9px 22px;
  font-size: 15px;
  box-shadow: 0 4px 0 var(--ink);
}
.btn-lg {
  padding: 15px 34px;
  font-size: 19px;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary:hover, .btn-ghost:hover, .btn-sunny:hover {
  box-shadow: 0 7px 0 var(--ink);
}
.btn:active {
  transform: translateY(3px);
}
.btn-primary:active, .btn-ghost:active, .btn-sunny:active {
  box-shadow: 0 1px 0 var(--ink);
}
.btn:focus-visible {
  outline: 3px dashed var(--coral);
  outline-offset: 3px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px max(24px, calc((100% - 1120px) / 2));
  background: rgba(255, 246, 236, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--ink);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.logo svg {
  width: 42px;
  height: 42px;
  padding: 6px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 3px 0 var(--ink);
}
.logo span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logo em {
  font-style: normal;
  color: var(--coral);
}

/* ---------- hero ---------- */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 84px) 24px clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  background-image: radial-gradient(rgba(51, 48, 46, 0.055) 2px, transparent 2.6px);
  background-size: 26px 26px;
}
.hero-badge {
  display: inline-block;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 0 var(--ink);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 74px);
  font-weight: 800;
}
.hero .accent {
  color: var(--coral);
  position: relative;
  display: inline-block;
}
.squiggle {
  position: absolute;
  left: 4%;
  bottom: -12px;
  width: 92%;
  height: 12px;
}
.hero-sub {
  margin: 26px 0 30px;
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 54ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.stars {
  display: inline-flex;
  gap: 3px;
}
.stars svg {
  width: 17px;
  height: 17px;
  fill: var(--sunny);
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

/* ---------- phone demo ---------- */
.hero-demo {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 12px 0;
}
.phone {
  width: min(292px, 82vw);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 44px;
  padding: 12px;
  position: relative;
  box-shadow: 0 10px 0 var(--ink), 0 26px 48px rgba(51, 48, 46, 0.16);
}
.phone::before {
  /* side buttons */
  content: "";
  position: absolute;
  right: -8px;
  top: 120px;
  width: 4px;
  height: 54px;
  border-radius: 3px;
  background: var(--ink);
  box-shadow: 0 70px 0 var(--ink);
}
.phone::after {
  /* glass glare */
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 32px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 28%);
  pointer-events: none;
  z-index: 5;
}
.notch {
  width: 96px;
  height: 20px;
  background: var(--ink);
  border-radius: 0 0 13px 13px;
  margin: 0 auto 8px;
}
.demo-screen {
  position: relative;
  height: 508px;
  border: 3px solid var(--ink);
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}
.demo-round {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.demo-chip {
  position: absolute;
  top: 208px;
  left: 50%;
  z-index: 3;
  background: var(--sunny);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  padding: 6px 15px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  opacity: 0;
  animation: chip-pop 3.6s linear infinite;
}
.demo-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.demo-svg text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  fill: #fff;
  text-anchor: middle;
  dominant-baseline: central;
  paint-order: stroke;
  stroke: rgba(51, 48, 46, 0.55);
  stroke-width: 3px;
}

/* demo timeline — one 3.6s loop drives everything in sync */
.d-ball {
  animation: d-fly 3.6s linear infinite;
}
@keyframes d-fly {
  0%, 2% { transform: translate(0, 0); }
  10% { transform: translate(-40px, 25px); }
  13% { transform: translate(-40px, 25px); }
  16% { transform: translate(-22px, -18px); }
  32% { transform: translate(-114px, -192px); }
  48% { transform: translate(80px, -336px); }
  60% { transform: translate(10px, -286px); }
  74% { transform: translate(98px, -118px); }
  88% { transform: translate(26px, -6px); }
  100% { transform: translate(0, 0); }
}
.band-idle {
  animation: band-idle-kf 3.6s linear infinite;
}
@keyframes band-idle-kf {
  0% { opacity: 1; }
  3% { opacity: 0; }
  13% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 1; }
}
.band-draw {
  opacity: 0;
  animation: band-draw-kf 3.6s linear infinite;
}
@keyframes band-draw-kf {
  0% { opacity: 0; }
  3% { opacity: 1; }
  13% { opacity: 1; }
  16% { opacity: 0; }
  100% { opacity: 0; }
}
.d-hit {
  animation: d-hit 3.6s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes d-hit {
  0%, 56%, 66%, 100% { transform: translate(0, 0) rotate(0deg); }
  58% { transform: translate(2px, 2px) rotate(2deg); }
  60% { transform: translate(-2px, -1px) rotate(-2deg); }
  62% { transform: translate(1.5px, 1.5px) rotate(1.5deg); }
  64% { transform: translate(-1px, 0) rotate(-1deg); }
}
@keyframes chip-pop {
  0%, 57% { opacity: 0; transform: translate(-50%, 0) scale(0.4) rotate(10deg); }
  61% { opacity: 1; transform: translate(-50%, 0) scale(1.12) rotate(-4deg); }
  70% { opacity: 1; transform: translate(-50%, 0) scale(1) rotate(-4deg); }
  78%, 100% { opacity: 0; transform: translate(-50%, 0) scale(0.4) rotate(10deg); }
}

/* floating decorations around the phone */
.deco {
  position: absolute;
  z-index: 2;
  filter: drop-shadow(0 4px 0 rgba(51, 48, 46, 0.85));
}
.deco-star {
  width: 34px;
  top: 4%;
  right: 8%;
  fill: var(--sunny);
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linejoin: round;
  animation: floaty 5s ease-in-out infinite;
}
.deco-cloud {
  width: 74px;
  bottom: 9%;
  left: 2%;
  animation: floaty 6.5s ease-in-out 0.8s infinite;
}
.deco-spark {
  width: 22px;
  top: 46%;
  right: 1%;
  animation: floaty 4.2s ease-in-out 0.4s infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--coral);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  padding: 13px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: 0.13em;
  color: #fff;
  white-space: nowrap;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- how (editorial, card-free) ---------- */
.how {
  padding: clamp(56px, 8vw, 96px) 24px;
}
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}
.kicker {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 10px;
}
.how h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 800;
}
.moves {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: 52px;
  text-align: left;
}
.move {
  border-top: 3px solid var(--ink);
  padding-top: 24px;
}
.move-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 5vw, 66px);
  line-height: 1;
  display: inline-block;
}
.c-coral { color: var(--coral); }
.c-sunny { color: var(--sunny); }
.c-mint { color: var(--mint); }
.move h3 {
  font-size: 23px;
  font-weight: 800;
  margin: 12px 0 8px;
}
.move p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ---------- feature strip ---------- */
.strip {
  background: #fff;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.strip-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 52px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
}
.strip-inner span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 2.5px 0 var(--ink);
}
.dot svg {
  width: 15px;
  height: 15px;
}
.d-coral { background: var(--coral); }
.d-sunny { background: var(--sunny); }
.d-mint { background: var(--mint); }
.d-sky { background: var(--sky); }

/* ---------- final CTA (brick wall) ---------- */
.cta-banner {
  background-color: var(--coral);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28'%3E%3Crect width='56' height='28' fill='%23FF6B57'/%3E%3Cpath d='M0 1h56M0 15h56M0 29h56M29 1v14M1 15v14M57 15v14' stroke='%2333302E' stroke-width='2.5' fill='none'/%3E%3C/svg%3E");
  background-size: 56px 28px;
  border-top: 3px solid var(--ink);
  padding: clamp(72px, 10vw, 116px) 24px;
  text-align: center;
}
.cta-inner {
  display: inline-block;
  background: rgba(255, 246, 236, 0.12);
  border: 3px solid var(--ink);
  border-radius: 26px;
  padding: clamp(32px, 5vw, 52px) clamp(28px, 6vw, 72px);
  box-shadow: 0 8px 0 var(--ink);
}
.cta-banner h2 {
  color: #fff;
  font-size: clamp(32px, 5.2vw, 52px);
  font-weight: 800;
  text-shadow: 0 4px 0 var(--ink);
}
.cta-banner p {
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  margin: 12px 0 28px;
  text-shadow: 0 2px 0 rgba(51, 48, 46, 0.55);
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 3px solid var(--ink);
  background: var(--cream);
  padding: 30px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 700;
}
.site-footer nav {
  display: flex;
  gap: 22px;
}
.site-footer a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2.5px solid var(--sunny);
}
.site-footer a:hover {
  border-bottom-color: var(--coral);
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s var(--bounce);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-sub {
    margin-inline: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-meta {
    justify-content: center;
  }
  .moves {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }
}
@media (max-width: 560px) {
  .logo span {
    font-size: 19px;
  }
  .btn-lg {
    padding: 14px 28px;
    font-size: 17.5px;
  }
  .strip-inner {
    gap: 12px 30px;
    font-size: 15.5px;
  }
  .demo-screen {
    height: 470px;
  }
  .site-footer {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .reveal {
    transition: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .marquee-track {
    animation: none;
  }
  .d-ball,
  .band-idle,
  .band-draw,
  .d-hit,
  .demo-chip,
  .deco {
    animation: none;
  }
  .demo-chip {
    display: none;
  }
}
