/* ───────────────────────────────────────────────────────────────
   landing.css — layout for index.html
   ─────────────────────────────────────────────────────────────── */
.landing main { position: relative; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: linear-gradient(var(--paper) 70%, rgba(8, 8, 10, 0));
}
.logo {
  font-family: var(--font-title); font-size: 1.45rem; font-weight: 700; letter-spacing: .04em;
  color: var(--red); text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.logo-mark { height: 2.2em; width: auto; filter: drop-shadow(0 0 10px rgba(220, 224, 232, .18)); }
.nav-links { display: flex; gap: clamp(12px, 2.5vw, 30px); }
.nav-links a { text-decoration: none; font-size: 1.05rem; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2.5px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
  border-radius: 2px;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(48px, 9vh, 110px) clamp(16px, 4vw, 48px) 64px;
}
.hero-copy { position: relative; z-index: 1; }
.kicker { margin: 0 0 10px; font-size: 1.15rem; color: var(--pencil); font-style: italic; display: inline-block; }
.hero-title { font-size: clamp(2.6rem, 6.4vw, 5.4rem); color: var(--red); letter-spacing: .03em; }
.hero-title .doodle { bottom: -0.05em !important; }
.tagline { font-family: var(--font-title); font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 700; margin: 18px 0 6px; color: var(--ink); }
.blurb { max-width: 30em; font-size: 1.25rem; margin: 0 0 26px; color: var(--pencil); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.sketch-btn.big { font-size: 1.35rem; padding: .3em 1.2em .4em; }
.free-note { display: flex; align-items: center; gap: 6px; margin-top: 18px; margin-left: 8px; color: var(--ink); font-size: 1.05rem; font-style: italic; }
.free-note .doodle { position: relative; width: 70px; transform: scaleY(-1) rotate(10deg); }

.hero-board { padding: 6% 6% 4%; transform: rotate(1.6deg); }
.hero-art { display: grid; place-items: center; position: relative; }
.hero-logo { width: min(150px, 22vw); position: absolute; left: -9%; bottom: -6%; z-index: 3; transform: rotate(-8deg); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .9)) drop-shadow(0 0 22px rgba(220, 224, 232, .12)); pointer-events: none; }
.hero-board .board { width: 100%; }
.demo-caption { margin: 14px 0 0; text-align: center; font-size: 1.15rem; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.demo-caption small { opacity: .6; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 2px solid; }
.dot.sunny { background: #d6d8dd; border-color: #f4f5f7; }
.dot.inky { background: #2b2e34; border-color: #b9bdc6; }

/* sections */
.section { position: relative; max-width: 1200px; margin: 0 auto; padding: 72px clamp(16px, 4vw, 48px); text-align: center; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.2rem); color: var(--ink); }
.section-sub { max-width: 34em; margin: 10px auto 40px; font-size: 1.25rem; }

/* cast */
.cast-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; text-align: left; }
.cast-card { transform: rotate(var(--tilt)); transition: transform .25s ease; }
.cast-card:hover { transform: rotate(0) translateY(-6px); }
.cast-art { display: flex; justify-content: center; gap: 4px; height: 120px; margin-bottom: 6px; }
.cast-piece { width: 112px; height: 112px; }
.cast-piece svg { width: 100%; height: 100%; overflow: visible; }
.cast-card:hover .cast-piece:first-child svg { animation: hop .5s ease-out; }
.cast-card:hover .cast-piece:last-child svg { animation: hop .5s .12s ease-out; }
.cast-card h3 { font-size: 1.4rem; color: var(--ink); }
.cast-card h3 small { font-family: var(--font-hand); font-size: 1rem; color: var(--pencil); font-style: italic; font-weight: 400; }
.cast-card p { margin: 6px 0 0; font-size: 1.1rem; color: var(--pencil); }

/* steps */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: left; }
.steps li { padding-top: 2.4rem; }
.steps li:nth-child(2) { transform: rotate(1.2deg) translateY(16px); }
.steps li:nth-child(3) { transform: rotate(-1deg); }
.steps h3 { font-size: 1.35rem; color: var(--ink); }
.steps p { margin: 6px 0 0; font-size: 1.15rem; line-height: 30px; }
.step-num {
  position: absolute; top: -18px; left: 18px;
  width: 52px; height: 52px; display: grid; place-items: center;
  font-family: var(--font-title); font-size: 1.5rem; font-weight: 700; color: #0b0b0d;
  background: var(--metal); border-radius: 50%;
  border: 2.5px solid #f4f5f7;
  filter: url(#wobble-sm);
}

/* levels */
.levels-note { max-width: 640px; margin: 0 auto; text-align: left; padding: 1.4rem 1.6rem; }
.level-list { list-style: none; margin: 0; padding: 0; }
.level-list li {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 16px; align-items: center; padding: 10px 0;
  border-bottom: 2px dashed rgba(220, 224, 232, .12);
}
.level-list li:last-child { border-bottom: 0; }
.lvl-stars { display: flex; grid-row: span 2; }
.mini-star { width: 26px; height: 26px; }
.mini-star.off svg path { fill: transparent; stroke: #4a4e57; }
.lvl-name { font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; color: var(--red); line-height: 1; }
.lvl-desc { font-size: 1.1rem; color: var(--pencil); }

/* community */
.community { max-width: 620px; margin: 30px auto 0; padding: 1.6rem; transform: rotate(-.8deg); }
.ticker { font-family: var(--font-title); font-size: 2.2rem; font-weight: 700; color: var(--red); margin: 0 0 8px; }
.ca-row { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.ca {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem;
  padding: 8px 14px; background: rgba(220, 224, 232, .04); border: 2px dashed rgba(220, 224, 232, .25); border-radius: 10px;
  word-break: break-all; max-width: 100%;
}
.social { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* final */
.final { padding-bottom: 110px; }
.final .section-title { margin-bottom: 28px; color: var(--red); }
.final-logo { width: 84px; margin: 0 auto 18px; filter: drop-shadow(0 0 18px rgba(220, 224, 232, .15)); }

.footer { position: relative; text-align: center; padding: 40px 16px 30px; border-top: 2px dashed rgba(220, 224, 232, .14); margin: 0 clamp(16px, 4vw, 48px); }
.footer p { margin: 0; font-size: 1.1rem; color: var(--pencil); }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .hero-cta, .free-note { justify-content: center; }
  .blurb { margin-left: auto; margin-right: auto; }
  .hero-board { max-width: 480px; margin: 0 auto; width: 100%; }
  .hero-art { width: 100%; }
  .hero-logo { left: -2%; width: min(110px, 24vw); }
  .cast-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .steps li:nth-child(2) { transform: rotate(1deg); }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .cast-grid { grid-template-columns: 1fr; }
  .cast-piece { width: 96px; height: 96px; }
  .hero .doodle[data-doodle="garland"] { display: none; }
  .lvl-stars .mini-star { width: 20px; height: 20px; }
}
