:root {
  --white: #ffffff;
  --soft: #fbf6ee;
  --ink: #3b2618;
  --muted: #7d6450;
  --tomato: #e8573a;
  --gold: #ffcf4a;
  --cream: #fff4e0;
  --night: #2a1a16;
  --line: #efe3d1;
  --outline: #5a3a22;
  --sea: #4fa3d6;
  --leaf: #6cbb5a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 18px/1.6 "Nunito", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, .display {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}

a { color: var(--tomato); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 3px 0 rgba(90, 58, 34, 0.25); }
.brand span { font-family: "Fredoka", sans-serif; font-size: 22px; font-weight: 600; }
.top nav a { margin-left: 20px; color: var(--ink); text-decoration: none; font-weight: 800; }
.top nav a:hover { color: var(--tomato); }

/* Key art */
.keyart {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(42, 26, 22, 0.55);
  background: var(--night);
}
.keyart-img { width: 100%; }
.keyart-logo {
  position: absolute;
  right: 4%;
  top: 6%;
  width: 40%;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35)) drop-shadow(0 0 30px rgba(255, 190, 90, 0.35));
  transform: rotate(-3deg);
}
.byline { text-align: center; margin: 22px 0 14px; color: var(--muted); font-size: 19px; }
.byline strong { color: var(--ink); }

.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; flex-direction: column; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--tomato);
  color: #fffaf0;
  font-family: "Fredoka", sans-serif;
  font-size: 21px;
  font-weight: 600;
  text-decoration: none;
  border: 3px solid var(--outline);
  box-shadow: 0 5px 0 var(--outline);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--outline); }
.btn:active { transform: translateY(4px) scale(0.98); box-shadow: 0 1px 0 var(--outline); }
.btn small { font-family: "Nunito", sans-serif; font-size: 14px; font-weight: 800; opacity: 0.9; }
.soon { color: var(--muted); font-size: 15px; }

/* Feature banners: like store screenshots, one idea each */
.banners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 56px 0 24px;
}
.banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  min-height: 320px;
  padding: 26px 22px 0 30px;
  border-radius: 22px;
  overflow: hidden;
  color: var(--cream);
  background: linear-gradient(160deg, #3a2320 0%, var(--night) 55%, #22140f 100%);
  isolation: isolate;
}
.banner::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: url("/assets/keyart_small.jpg") center / cover;
  filter: blur(14px) saturate(1.1);
  opacity: 0.32;
  z-index: -1;
}
.banner:nth-child(2)::before { background-position: 80% 40%; }
.banner:nth-child(3)::before { background-position: 10% 70%; }
.banner:nth-child(4)::before { background-position: 60% 90%; }
.banner h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.banner h2 em { font-style: normal; color: var(--gold); }
.banner-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.pose { width: 72%; max-width: 230px; margin-top: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35)); }
.banner-phone {
  align-self: end;
  border: 5px solid #1a0f0b;
  border-bottom: none;
  border-radius: 26px 26px 0 0;
  overflow: hidden;
  box-shadow: 0 -4px 30px rgba(255, 200, 120, 0.15);
  transform: rotate(2deg) translateY(10px);
  transform-origin: bottom center;
  max-height: 300px;
}
.banner:nth-child(even) .banner-phone { transform: rotate(-2deg) translateY(10px); }
.blurb { max-width: 820px; margin: 8px auto 0; color: var(--muted); text-align: center; }

/* Sections */
section { padding: 88px 0; }
.powers-section { background: var(--soft); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); margin-top: 72px; }
.section-title { font-size: 40px; text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 34em; }

/* Powers */
.powers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.power {
  background: var(--white);
  border: 2px solid var(--line);
  border-top: 5px solid var(--leaf);
  border-radius: 18px;
  padding: 16px 8px 14px;
  text-align: center;
  transition: transform 0.18s cubic-bezier(.2, .8, .3, 1.3);
}
.power.attack { border-top-color: var(--tomato); }
.power:hover { transform: translateY(-4px) rotate(-1.5deg); }
.power img { width: 72px; height: 72px; margin: 0 auto 6px; }
.power b { display: block; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 17px; }
.power span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.legend { text-align: center; color: var(--muted); font-size: 15px; margin-top: 22px; }
.key { display: inline-block; width: 22px; height: 6px; border-radius: 3px; margin: 0 8px 2px 18px; vertical-align: middle; }
.key.help { background: var(--leaf); }
.key.hurt { background: var(--tomato); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--white); border: 2px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 20px;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; color: var(--tomato); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; color: var(--muted); }

/* Closing call to action */
.cta-section { background: var(--soft); border-top: 2px solid var(--line); }
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-icon { width: 120px; border-radius: 30px; box-shadow: 0 6px 0 rgba(90, 58, 34, 0.25); margin-bottom: 20px; }

footer { padding: 32px 0 40px; text-align: center; color: var(--muted); font-size: 15px; }

/* Docs (privacy) */
.doc { background: var(--white); border: 2px solid var(--line); border-radius: 22px; padding: 12px 32px 32px; max-width: 760px; margin: 0 auto; }
.doc h2 { font-size: 24px; margin: 30px 0 6px; }
.doc ul { padding-left: 22px; }
.summary { background: #eef8ea; border: 2px solid #c6e5bd; border-radius: 16px; padding: 14px 20px; margin-top: 24px; }
.page-head { text-align: center; padding: 24px 0 28px; }
.page-head h1 { font-size: 44px; }
.page-head p { color: var(--muted); margin: 6px 0 0; }

/* Join the test */
.join-steps { list-style: none; padding: 0; margin: 0 auto 28px; max-width: 760px; display: grid; gap: 14px; }
.join-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: 22px 26px;
}
.join-step h2 { font-size: 24px; }
.join-step p { margin: 4px 0 14px; color: var(--muted); }
.join-step .btn { font-size: 18px; padding: 10px 22px; }
.join-num {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gold);
  border: 3px solid var(--outline);
  box-shadow: 0 4px 0 var(--outline);
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 24px;
}
.join-help h2 { margin-top: 18px; }

/* Keyboard focus */
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--sea); outline-offset: 4px; border-radius: 12px; }

/* Motion, only for people who haven't asked for less */
@media (prefers-reduced-motion: no-preference) {
  @keyframes float { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-6px); } }
  @keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-3deg); } }
  @keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) translateY(-4px); } }
  .keyart-logo { animation: float 5s ease-in-out infinite; }
  .pose { transform-origin: 50% 100%; animation: sway 4s ease-in-out infinite; }
  .banner:nth-child(2n) .pose { animation-delay: -2s; }
  .power img { animation: bob 3.4s ease-in-out infinite; }
  .power:nth-child(3n+1) img { animation-delay: -1.1s; }
  .power:nth-child(3n+2) img { animation-delay: -2.2s; }
  .banner { transition: transform 0.25s cubic-bezier(.2, .8, .3, 1.3); }
  .banner:hover { transform: translateY(-4px); }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.7s cubic-bezier(.2, .8, .3, 1.1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .banners { grid-template-columns: 1fr; }
  .powers { grid-template-columns: repeat(3, 1fr); }
  .section-title { font-size: 32px; }
  section { padding: 64px 0; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .top nav a { margin-left: 12px; font-size: 15px; }
  .keyart { border-radius: 18px; }
  .banner { padding: 20px 14px 0 18px; min-height: 260px; }
  .doc { padding: 6px 18px 24px; }
  .page-head h1 { font-size: 36px; }
}
