/* Hungry Chess landing page. Builds on /styles.css (fonts, --sky, --ink, --white).
   Every text/background pair here meets WCAG AA (4.5:1 body, 3:1 large). */
:root {
  --go-ink: #1b6b3a;      /* green text: 4.98:1 on sky, 6.2:1 on cream */
  --go-btn: #1f7a42;      /* green fills with white text: 5.36:1 */
  --go-btn-edge: #155c32;
  --ink-2: #2f3f70;
  --sun: #ffd76a;
  --cream: #fff8e6;
  --mist: #eef3f8;
  --line: rgba(35, 49, 90, .1);
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px; --space-5: 48px; --space-6: 72px;
  --radius-s: 16px; --radius-m: 24px; --radius-l: 32px; --curve: 48px;
  --shadow-1: 0 2px 0 rgba(35, 49, 90, .06), 0 8px 24px rgba(35, 49, 90, .08);
  --shadow-2: 0 4px 0 rgba(35, 49, 90, .06), 0 18px 40px rgba(35, 49, 90, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

main.lp { max-width: none; padding: 0; overflow: clip; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--space-2); }
.lp h1, .lp h2, .lp h3 { letter-spacing: -.01em; }
.lp p { text-wrap: pretty; }
.lp h1, .lp h2 { text-wrap: balance; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.solid { fill: currentColor; stroke: none; }

/* Focus and buttons */
a:focus-visible, summary:focus-visible { outline: 3px solid var(--go-ink); outline-offset: 3px; border-radius: 8px; }
.band.ink a:focus-visible, .band.green a:focus-visible { outline-color: var(--sun); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; background: var(--go-btn); border-bottom-color: var(--go-btn-edge); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.pill .icon { width: 22px; height: 22px; }
.pill.small { min-height: 44px; font-size: 16px; padding: 10px 18px; margin: 0; }
.pill.big { font-size: 21px; padding: 16px 28px; min-height: 60px; }
.pill.on-green { background: var(--white); color: var(--go-btn); border-bottom-color: #cfe9d9; }

/* Sticky header */
.site-head { display: block; margin: 0; position: sticky; top: 0; z-index: 20; background: rgba(191, 230, 255, .82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.site-head .brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.site-head .brand img { border-radius: 10px; }

/* Bands stack like cards: each one curves over the bottom of the one before */
.band { position: relative; padding: var(--space-6) 0 calc(var(--space-6) + var(--curve)); border-radius: var(--curve) var(--curve) 0 0; margin-top: calc(-1 * var(--curve)); }
.band.white { background: var(--white); }
.band.sky { background: var(--sky); }
.band.ink { background: var(--ink); color: var(--white); }
.band.cream { background: var(--cream); }
.band.green { background: var(--go-btn); color: var(--white); }
.band.last { padding: var(--space-4) 0 var(--space-5); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 800 14px/1 "Nunito", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--go-ink); margin-bottom: var(--space-2); }
.ink .eyebrow { color: var(--sun); }
.green .eyebrow { color: #dff5e7; }
.band h2 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin-bottom: var(--space-2); }
.band .sub { font-size: 19px; max-width: 640px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { position: relative; padding: var(--space-4) 0 calc(var(--space-6) + var(--curve)); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: conic-gradient(rgba(255, 255, 255, .45) 25%, transparent 0 50%, rgba(255, 255, 255, .45) 0 75%, transparent 0) 0 0 / 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 0%, transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--space-5); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.02; margin: 0 0 var(--space-3); }
.hero h1 em { font-style: normal; color: var(--go-ink); }
.hero .sub { font-size: 20px; max-width: 540px; margin-bottom: var(--space-3); }
.trust { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; margin: 0; background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 8px 14px 8px 10px; font-weight: 800; font-size: 15px; }
.trust .icon { width: 20px; height: 20px; color: var(--go-ink); }
.stage { position: relative; height: 580px; }
.stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--white) 0%, rgba(255, 255, 255, .55) 45%, transparent 70%); }
.stage .phone { position: absolute; width: 250px; }
.stage .p1 { left: 0; top: 56px; transform: rotate(-6deg); }
.stage .p2 { right: 0; top: 0; transform: rotate(5deg); }
.chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: var(--white); border-radius: 999px; padding: 10px 16px 10px 12px; font-weight: 800; font-size: 15px; box-shadow: var(--shadow-1); }
.chip .dot { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; color: var(--white); }
.chip .icon { width: 18px; height: 18px; }
.chip.c1 { left: 0; bottom: 60px; }
.chip.c2 { right: 0; top: 64px; }

/* Phone frame around real screenshots */
.phone { background: var(--ink); border-radius: 38px; padding: 9px; box-shadow: var(--shadow-2); }
.phone img { display: block; width: 100%; height: auto; border-radius: 30px; aspect-ratio: 506 / 1100; }

/* Science band */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: var(--space-5) 0 var(--space-4); }
.stat { background: var(--ink-2); border-radius: var(--radius-m); padding: 28px 24px 18px; border: 1px solid rgba(255, 255, 255, .08); }
.stat .big { font: 800 clamp(34px, 4.4vw, 48px)/1.05 "Baloo 2", system-ui, sans-serif; color: var(--sun); margin-bottom: 12px; }
.ink sup a, .ink a { color: var(--sky); }
.kicker { display: flex; gap: 16px; align-items: flex-start; font: 800 22px/1.35 "Baloo 2", system-ui, sans-serif; max-width: 760px; background: rgba(255, 255, 255, .06); border-radius: var(--radius-m); padding: 22px 24px; }
.kicker .icon { width: 32px; height: 32px; color: var(--sun); margin-top: 2px; }

/* Contrast */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: var(--space-5); text-align: left; }
.versus > div { border-radius: var(--radius-m); padding: 26px 26px 12px; }
.versus .them { background: var(--mist); color: var(--muted); }
.versus .us { background: var(--white); box-shadow: 0 0 0 4px var(--go-btn), var(--shadow-2); }
.versus h3 { font-size: 22px; margin-bottom: 8px; }
.versus .us h3 { color: var(--go-ink); }
.versus ul { list-style: none; padding: 0; margin: 0; }
.versus li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; margin: 0; }
.versus li:last-child { border-bottom: 0; }
.versus .icon { width: 22px; height: 22px; margin-top: 2px; }
.versus .them .icon { color: #6b7590; }
.versus .us .icon { color: var(--go-btn); stroke-width: 3; }
.versus .us li { font-weight: 800; color: var(--ink); }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: var(--space-5); text-align: left; }
.card-soft { background: var(--white); border-radius: var(--radius-m); box-shadow: var(--shadow-1); }
.skill { padding: 24px 22px 14px; }
.skill .badge { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 18px; margin-bottom: 14px; color: var(--white); }
.skill .badge .icon { width: 28px; height: 28px; }
.skill h3 { font-size: 22px; margin-top: 0; }
.skill .tag { display: inline-block; font-size: 13px; font-weight: 800; color: var(--muted); background: var(--mist); border-radius: 999px; padding: 4px 10px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-5); counter-reset: step; }
.step .phone { width: 230px; margin: 0 auto var(--space-3); }
.step .num { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--go-btn); color: var(--white); font: 800 22px/1 "Baloo 2", sans-serif; align-items: center; justify-content: center; margin-bottom: 10px; box-shadow: 0 0 0 6px #dff5e7; }
.step h3 { font-size: 22px; margin-top: 0; }
.step p { max-width: 300px; margin: 0 auto 8px; }

/* Path */
.path { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; position: relative; }
.path::before { content: ""; position: absolute; left: 7%; right: 7%; top: 34px; height: 6px; background: repeating-linear-gradient(90deg, var(--sky-deep) 0 14px, transparent 14px 22px); border-radius: 3px; }
.path li { position: relative; text-align: center; font-weight: 800; font-size: 15px; line-height: 1.3; margin: 0; }
.path .node { display: flex; width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 5px var(--sky-deep); align-items: center; justify-content: center; color: var(--ink); }
.path .node .icon { width: 30px; height: 30px; }
.path li:last-child .node { background: var(--sun); box-shadow: 0 0 0 5px var(--go-btn); }
.path .stage-no { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.counts { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: var(--space-5); }
.counts div { background: var(--white); border-radius: var(--radius-s); padding: 16px 24px; text-align: center; min-width: 150px; box-shadow: var(--shadow-1); }
.counts b { display: block; font: 800 36px/1.1 "Baloo 2", sans-serif; color: var(--go-ink); }
.gallery { display: flex; gap: var(--space-3); justify-content: center; margin-top: var(--space-5); }
.gallery figure { margin: 0; width: 210px; text-align: center; }
.gallery .phone { border-radius: 32px; padding: 7px; }
.gallery .phone img { border-radius: 26px; }
.gallery figcaption { font-weight: 800; margin-top: 14px; }

/* Price */
.price-card { position: relative; background: var(--white); color: var(--ink); border-radius: var(--radius-l); padding: 40px 32px 28px; max-width: 580px; margin: var(--space-4) auto 0; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .18); }
.price-card .ribbon { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: var(--sun); color: var(--ink); font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.price { font: 800 68px/1 "Baloo 2", sans-serif; margin: 8px 0 6px; }
.price small { font-size: 22px; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; text-align: left; display: inline-flex; flex-direction: column; gap: 10px; margin: var(--space-3) 0 var(--space-1); }
.price-card li { display: flex; gap: 10px; margin: 0; }
.price-card .icon { color: var(--go-btn); stroke-width: 3; width: 22px; height: 22px; margin-top: 2px; }

/* Get it */
.get { display: grid; grid-template-columns: 1fr auto; gap: var(--space-5); align-items: center; background: var(--white); border-radius: var(--radius-l); padding: 40px; box-shadow: var(--shadow-2); }
.get h2 { margin-top: 0; }
.qr-placeholder { width: 200px; height: 200px; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; border: 3px dashed var(--sky-deep); border-radius: var(--radius-m); color: var(--muted); font-weight: 800; background: repeating-linear-gradient(45deg, #f6fbff 0 10px, var(--white) 10px 20px); }
.qr-placeholder .icon { width: 40px; height: 40px; color: var(--sky-deep); }

/* FAQ */
.faq { max-width: 760px; margin: var(--space-4) auto 0; text-align: left; }
.faq details { background: var(--mist); border-radius: var(--radius-s); margin-bottom: 12px; transition: background .2s var(--ease); }
.faq details[open] { background: var(--white); box-shadow: 0 0 0 2px var(--sky-deep); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px; font: 800 19px/1.35 "Baloo 2", system-ui, sans-serif; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s var(--ease); color: var(--go-ink); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; }

/* Closing */
.closing h2 { font-size: clamp(34px, 6vw, 58px); max-width: 820px; margin-left: auto; margin-right: auto; }

.sources { font-size: 14px; color: var(--muted); padding: var(--space-5) 0 var(--space-1); }
.sources h3 { font-size: 16px; }
.sources ol { padding-left: 20px; }
.sources a { overflow-wrap: anywhere; }
.lp footer { padding-bottom: var(--space-5); }
.lp footer a, .sources a { display: inline-block; min-height: 24px; }
sup a { text-decoration: none; font-weight: 800; padding: 0 3px; }
:target { scroll-margin-top: 84px; }
html { scroll-behavior: smooth; }

/* Motion: calm, short, and only when the viewer allows it */
@media (hover: hover) {
  .pill:hover { transform: translateY(-2px); }
  .lift { transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
  .lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
}
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .pill, .lift, .faq summary .icon { transition: none; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .trust { justify-content: center; }
  .stage { height: 470px; max-width: 440px; margin: 0 auto; width: 100%; }
  .stage::before { width: 380px; height: 380px; }
  .stage .phone { width: 200px; }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .path { grid-template-columns: 1fr; gap: 6px; max-width: 360px; margin-left: auto; margin-right: auto; }
  .path::before { left: 33px; right: auto; top: 30px; bottom: 30px; width: 6px; height: auto; background: repeating-linear-gradient(180deg, var(--sky-deep) 0 14px, transparent 14px 22px); }
  .path li { display: flex; align-items: center; gap: 18px; text-align: left; }
  .path .node { margin: 0; flex: none; }
}
@media (max-width: 640px) {
  :root { --curve: 32px; --space-6: 56px; }
  .stats, .versus, .steps, .get, .skills { grid-template-columns: 1fr; }
  .get { text-align: center; padding: 32px 22px; justify-items: center; }
  .stage { height: 400px; }
  .stage::before { width: 300px; height: 300px; }
  .stage .phone { width: 160px; }
  .chip { font-size: 13px; padding: 8px 12px 8px 8px; }
  .chip .dot { width: 26px; height: 26px; }
  .chip.c1 { bottom: 24px; }
  .chip.c2 { top: 20px; }
  .step .phone { width: 180px; }
  .counts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .counts div { min-width: 0; padding: 12px; }
  .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .gallery figure { width: auto; }
  .gallery .phone { border-radius: 20px; padding: 4px; }
  .gallery .phone img { border-radius: 17px; }
  .gallery figcaption { font-size: 13px; line-height: 1.3; }
  .kicker { font-size: 19px; padding: 18px; }
  .pill.big { font-size: 18px; padding: 14px 20px; min-height: 56px; }
  .price { font-size: 56px; }
  .price-card { padding: 36px 20px 22px; }
}
