/* Pigeon Rewards: Screw Puzzle — teal workshop + wooden planks + purple pigeon accents */

:root {
  --teal: #0e7c86;
  --teal-deep: #0a4f5c;
  --mint: #e6fbf8;
  --mint-2: #c9f3ee;
  --purple: #7b4fd6;
  --purple-soft: #efe8ff;
  --sun: #ffc93c;
  --sun-dark: #e79a00;
  --wood: #e9b872;
  --wood-dark: #b97a3a;
  --wood-light: #f8dcae;
  --ink: #18323a;
  --muted: #47636a;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(10, 79, 92, 0.16);
  --radius: 1.25rem;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --header-h: 4.4rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mint);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 9999; padding: .75rem 1rem; background: var(--ink); color: var(--white); }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Background ---------- */
.bg-glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 85% 8%, rgba(255, 238, 120, .45), transparent 60%),
    radial-gradient(ellipse 55% 40% at 8% 30%, rgba(123, 79, 214, .14), transparent 60%),
    linear-gradient(180deg, #dff8f4 0%, var(--mint) 45%, #d6f4ef 100%);
}
.bg-screws { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* Screw head (reused for decoration + card corners) */
.screw, .bolt {
  position: absolute;
  border-radius: 50%;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 3px 6px rgba(0,0,0,.15);
}
.screw::before, .screw::after, .bolt::before, .bolt::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: rgba(255,255,255,.85); border-radius: 2px;
  transform: translate(-50%, -50%);
}
.screw { width: 2.6rem; height: 2.6rem; opacity: .55; animation: float 7s ease-in-out infinite; }
.screw::before { width: 56%; height: 16%; }
.screw::after { width: 16%; height: 56%; }
.screw--green { background: #3cc35a; }
.screw--pink { background: #e14fb4; animation-delay: -2s; }
.screw--yellow { background: #f5b800; animation-delay: -4s; }
.screw--blue { background: #3b8cf0; animation-delay: -1s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(25deg); } }

.bolt { width: 1rem; height: 1rem; background: radial-gradient(circle at 35% 35%, #d9dde2, #8b939c); }
.bolt::before { width: 60%; height: 2px; }
.bolt::after { width: 2px; height: 60%; }
.bolt.tl { top: .7rem; left: .7rem; } .bolt.tr { top: .7rem; right: .7rem; }
.bolt.bl { bottom: .7rem; left: .7rem; } .bolt.br { bottom: .7rem; right: .7rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; text-decoration: none;
  border: none; border-radius: 999px; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg, .btn i { width: 1.15rem; height: 1.15rem; }
.btn--sun {
  background: linear-gradient(180deg, #ffe07a 0%, var(--sun) 100%);
  color: #4a2b00;
  box-shadow: 0 6px 0 var(--sun-dark), 0 12px 26px rgba(231, 154, 0, .3);
}
.btn--sun:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--sun-dark), 0 16px 30px rgba(231, 154, 0, .38); }
.btn--sun:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--sun-dark); }
.btn--ghost { background: var(--white); color: var(--purple); border: 2px solid var(--purple-soft); box-shadow: 0 6px 16px rgba(123, 79, 214, .12); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--purple); }
.btn--sm { padding: .5rem 1rem; font-size: .88rem; }
.btn--lg { padding: .85rem 1.5rem; font-size: 1.02rem; }
.btn--block { width: 100%; padding: .8rem 1rem; }

/* ---------- Navbar ---------- */
.plank-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 4px solid var(--wood);
  transition: box-shadow .25s ease;
}
.plank-nav.is-scrolled { box-shadow: var(--shadow); }
.plank-nav__bar { max-width: 72rem; margin: 0 auto; padding: .6rem 1.25rem; display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.plank-nav__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.plank-nav__brand img { border-radius: .8rem; box-shadow: 0 4px 12px rgba(123, 79, 214, .3); }
.plank-nav__links { display: none; gap: 1.6rem; margin-left: auto; margin-right: .75rem; }
.plank-nav__links a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: .94rem; position: relative; }
.plank-nav__links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 3px; border-radius: 3px; background: var(--purple); transition: width .2s ease; }
.plank-nav__links a:hover { color: var(--purple); }
.plank-nav__links a:hover::after { width: 100%; }
.plank-nav__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.plank-nav__burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 2.6rem; height: 2.6rem; padding: 0; border: none; border-radius: .75rem; background: var(--wood-light); cursor: pointer; }
.plank-nav__burger span { display: block; width: 1.15rem; height: 2.5px; margin: 0 auto; background: var(--wood-dark); border-radius: 2px; }

.nav-sheet { position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99; padding: 1.25rem; background: var(--white); display: flex; flex-direction: column; gap: .5rem; box-shadow: var(--shadow); border-bottom: 4px solid var(--wood); }
.nav-sheet[hidden] { display: none !important; }
.nav-sheet a { text-decoration: none; font-weight: 700; color: var(--ink); padding: .7rem 0; border-bottom: 1px solid var(--mint-2); }

/* ---------- Hero ---------- */
.hero { max-width: 72rem; margin: 0 auto; padding: 3rem 1.25rem 2.5rem; display: grid; gap: 2.5rem; align-items: center; }
.hero__tag { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .9rem; border-radius: 999px; background: var(--purple-soft); color: var(--purple); font-weight: 800; font-size: .82rem; }
.hero__tag svg { width: 1rem; height: 1rem; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.05; margin: 1rem 0 .9rem; color: var(--teal-deep); }
.hero h1 span { color: var(--purple); }
.hero__brief { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--teal); margin: 0 0 .6rem; }
.hero__lead { color: var(--muted); margin: 0 0 1.5rem; max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero__chips { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero__chips li { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; background: var(--white); border-radius: .7rem; font-weight: 700; font-size: .88rem; color: var(--teal-deep); box-shadow: 0 4px 12px rgba(10, 79, 92, .08); }
.hero__chips svg { width: 1rem; height: 1rem; color: var(--sun-dark); }

.hero__phone { position: relative; margin: 0 auto; width: min(17rem, 78vw); }
.hero__phone-frame {
  position: relative; z-index: 1;
  aspect-ratio: 1080 / 1920;
  padding: .6rem;
  border-radius: 2.2rem;
  background: linear-gradient(160deg, var(--wood-light), var(--wood) 55%, var(--wood-dark));
  box-shadow: 0 30px 60px rgba(10, 79, 92, .28), inset 0 2px 0 rgba(255,255,255,.5);
  transform: rotate(3deg);
}
.hero__phone-frame img { width: 100%; height: 100%; object-fit: contain; border-radius: 1.7rem; background: var(--teal-deep); }
.hero__bolt { position: absolute; z-index: 2; width: 3.2rem; height: 3.2rem; border-radius: 50%; box-shadow: inset 0 -4px 0 rgba(0,0,0,.2), 0 8px 18px rgba(0,0,0,.18); }
.hero__bolt::before, .hero__bolt::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 3px; transform: translate(-50%, -50%); }
.hero__bolt::before { width: 55%; height: 16%; } .hero__bolt::after { width: 16%; height: 55%; }
.hero__bolt--a { background: #3cc35a; top: 8%; left: -1.6rem; animation: float 6s ease-in-out infinite; }
.hero__bolt--b { background: #e14fb4; bottom: 10%; right: -1.4rem; animation: float 6s ease-in-out -3s infinite; }

.banner-strip { max-width: 64rem; margin: 0 auto 1rem; padding: 0 1.25rem; }
.banner-strip img { width: 100%; border-radius: var(--radius); border: 6px solid var(--white); box-shadow: var(--shadow); }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.25rem; padding: 0 1.25rem; }
.section-head--left { text-align: left; margin: 0; padding: 0; }
.eyebrow { display: inline-block; margin: 0 0 .5rem; padding: .25rem .8rem; border-radius: 999px; background: var(--wood-light); color: var(--wood-dark); font-weight: 800; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow--light { background: rgba(255,255,255,.16); color: var(--sun); }
.section-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.1; margin: 0; color: var(--teal-deep); }
.section-head h2 span { color: var(--purple); }
.section-head__lead { color: var(--muted); margin: .7rem 0 0; }

/* ---------- Features: wooden plank cards ---------- */
.features { padding: 3.5rem 0 3rem; }
.features__grid { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; display: grid; gap: 1.25rem; }
.plank-card {
  position: relative;
  padding: 2rem 1.6rem 1.7rem;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(92deg, rgba(185, 122, 58, .07) 0 2px, transparent 2px 22px),
    linear-gradient(170deg, #fdeccd 0%, var(--wood-light) 100%);
  border: 2px solid #f0c98d;
  box-shadow: 0 8px 0 #dcae6c, 0 18px 30px rgba(185, 122, 58, .18);
  transition: transform .25s ease;
}
.plank-card:hover { transform: translateY(-6px) rotate(-.5deg); }
.plank-card__icon { width: 3rem; height: 3rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; background: var(--purple); color: var(--white); margin-bottom: .9rem; box-shadow: 0 6px 14px rgba(123, 79, 214, .35); }
.plank-card__icon svg { width: 1.4rem; height: 1.4rem; }
.plank-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 .4rem; color: #5a3410; }
.plank-card p { margin: 0; color: #7a5531; font-size: .97rem; }

/* ---------- How to play ---------- */
.how { padding: 1rem 1.25rem 3.5rem; }
.how__inner {
  max-width: 72rem; margin: 0 auto;
  padding: 2.75rem 1.75rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal) 100%);
  color: var(--white);
  display: grid; gap: 2rem; align-items: center;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.how__inner::after { content: ""; position: absolute; right: -6rem; top: -6rem; width: 18rem; height: 18rem; border-radius: 50%; background: radial-gradient(circle, rgba(255, 201, 60, .28), transparent 70%); }
.how .section-head h2 { color: var(--white); }
.how .section-head h2 span { color: var(--sun); }
.how .section-head__lead { color: rgba(255,255,255,.82); }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; position: relative; z-index: 1; }
.how__steps li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: 1.1rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.how__num { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; background: var(--sun); color: #4a2b00; box-shadow: 0 4px 0 var(--sun-dark); }
.how__steps h3 { font-family: var(--font-display); margin: 0 0 .2rem; font-size: 1.12rem; }
.how__steps p { margin: 0; color: rgba(255,255,255,.85); font-size: .96rem; }

/* ---------- Screenshots rail ---------- */
.screens { padding: 1rem 0 3.5rem; }
.screens__rail {
  display: flex; gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem max(1.25rem, calc((100vw - 72rem) / 2 + 1.25rem)) 1.5rem;
  scrollbar-width: none;
}
.screens__rail::-webkit-scrollbar { display: none; }
.screens__rail:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.shot { flex: none; margin: 0; width: min(14rem, 62vw); scroll-snap-align: center; }
.shot img {
  width: 100%; aspect-ratio: 1080 / 1920; object-fit: contain;
  border-radius: 1.4rem; border: 5px solid var(--white);
  background: var(--teal-deep);
  box-shadow: 0 16px 34px rgba(10, 79, 92, .2);
  transition: transform .25s ease;
}
.shot:hover img { transform: translateY(-6px); }
.shot figcaption { text-align: center; margin-top: .7rem; font-family: var(--font-display); font-weight: 700; color: var(--teal-deep); }
.screens__nav { display: flex; justify-content: center; gap: .75rem; }
.round-btn { width: 3rem; height: 3rem; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center; background: var(--white); color: var(--purple); box-shadow: 0 6px 16px rgba(10, 79, 92, .14); transition: transform .2s ease, background .2s ease; }
.round-btn:hover { transform: translateY(-2px); background: var(--purple); color: var(--white); }

/* ---------- Download ---------- */
.download { padding: 1rem 1.25rem 4rem; }
.download__board {
  position: relative; max-width: 38rem; margin: 0 auto; text-align: center;
  padding: 2.75rem 1.75rem 2.5rem;
  border-radius: 1.75rem;
  background:
    repeating-linear-gradient(92deg, rgba(185, 122, 58, .07) 0 2px, transparent 2px 26px),
    linear-gradient(170deg, #fdeccd 0%, var(--wood-light) 100%);
  border: 2px solid #f0c98d;
  box-shadow: 0 10px 0 #dcae6c, var(--shadow);
}
.download__icon { margin: 0 auto 1rem; border-radius: 1.4rem; box-shadow: 0 10px 22px rgba(123, 79, 214, .3); }
.download h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.05rem); margin: 0 0 .4rem; color: #5a3410; }
.download p { color: #7a5531; margin: 0 0 1.5rem; }
.gp-badge {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .7rem 1.4rem .7rem 1.1rem;
  border: none; border-radius: .9rem; cursor: pointer;
  background: #111; color: #fff; text-align: left;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.gp-badge:hover { transform: translateY(-2px); }
.gp-badge span { display: flex; flex-direction: column; font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; line-height: 1.1; }
.gp-badge small { font-size: .66rem; letter-spacing: .08em; font-weight: 600; opacity: .85; }

/* ---------- Footer ---------- */
.footer { padding: 2.25rem 1.25rem; background: var(--teal-deep); color: rgba(255,255,255,.85); border-top: 6px solid var(--wood); }
.footer__inner { max-width: 72rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer__brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 800; color: var(--white); }
.footer__brand img { border-radius: .6rem; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.4rem; }
.footer__links a { color: var(--sun); font-weight: 700; font-size: .92rem; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__copy { margin: 0; font-size: .85rem; }

/* ---------- Modal ---------- */
.modal[hidden] { display: none !important; }
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 47, 56, .55); backdrop-filter: blur(3px); }
.modal__panel { position: relative; max-width: 23rem; width: 100%; padding: 2.2rem 1.7rem 1.8rem; background: var(--white); border-radius: 1.5rem; text-align: center; box-shadow: 0 26px 60px rgba(10, 47, 56, .35); border-top: 8px solid var(--purple); animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal__close { position: absolute; top: .8rem; right: .8rem; width: 2.2rem; height: 2.2rem; border: none; border-radius: 50%; background: var(--mint); color: var(--teal-deep); cursor: pointer; display: grid; place-items: center; }
.modal__icon { margin: 0 auto 1rem; border-radius: 1.1rem; }
.modal__panel h2 { font-family: var(--font-display); margin: 0 0 .5rem; color: var(--teal-deep); }
.modal__panel p { color: var(--muted); margin: 0 0 1.25rem; font-size: .97rem; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .plank-nav__links { display: flex; }
  .plank-nav__actions { margin-left: 0; }
  .plank-nav__burger { display: none; }
  .nav-sheet { display: none !important; }
  .hero { grid-template-columns: 1.15fr .85fr; padding-top: 4rem; }
  .hero__phone { margin-right: 1.5rem; }
  .how__inner { grid-template-columns: .9fr 1.1fr; padding: 3.25rem 3rem; }
}
@media (min-width: 1024px) {
  .features__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screw, .hero__bolt { animation: none; }
  .btn:hover, .plank-card:hover, .shot:hover img { transform: none; }
}
