/* Public home visibility stays independent of the collection and account screens. */
body.site.landing-active { margin: 0; height: auto; min-height: 100%; overflow: auto; }
body.site.landing-active > :not(#landingPage):not(script):not(template) { display: none; }
html body.site.landing-active { user-select: text; -webkit-user-select: text; touch-action: auto; -webkit-touch-callout: default; }
body.site.landing-active::before, body.site.landing-active::after { display: none; }
body.site.landing-active #binderApp, body.site #landingPage[hidden] { display: none; }
/* app-loader.js: a visit that opens the app never paints the homepage on the way in. */
html.app-entry { background-color: var(--entry-bg, #1b1d27); }
html.app-entry body.site.landing-active > #landingPage { display: none; }

/* ---------- Home: the shared sticker look (public.css) plus the home's own scenes ---------- */
#landingPage { --home-hand: var(--public-hand); position: relative; overflow: clip; }
#landingPage .public-skip { position: absolute; top: -100px; left: 16px; z-index: 4; padding: 12px 16px; border: 3px solid var(--ink); border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 700; }
#landingPage .public-skip:focus { top: 8px; }
#landingPage .home-game-entry :focus-visible { outline-color: var(--ink); }
#landingPage .home-invitation .public-button { background: var(--ink); color: var(--label-white); }

/* ---------- Hero: big lettering beside a real sample binder ---------- */
#landingPage .home-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-block: 56px 88px; }
#landingPage .home-hero-copy { position: relative; z-index: 2; }
#landingPage .home-hero h1 { font-size: clamp(3rem, 7.2vw, 7.25rem); line-height: .98; margin: 0 0 36px; }
/* The plain one-line definition answer engines quote, kept quieter than the slogan below it. */
#landingPage .home-hero-copy .home-definition { max-width: 46ch; margin: 0 0 16px; color: var(--label-white); font: 700 16px/1.45 var(--sans); }
#landingPage .home-hero-copy .public-lead { max-width: 34ch; color: var(--label-white); font: 600 21px/1.45 var(--sans); }
#landingPage .home-hero-copy .public-note { margin-top: 18px; color: var(--public-muted); font-size: 14px; font-weight: 500; }
#landingPage .home-hero-copy .public-note[role="status"] { display: inline-block; padding: 10px 14px; border: 3px solid var(--ink); border-radius: 14px; background: var(--cream); color: var(--ink); box-shadow: var(--pop-sm); }
#landingPage .home-hero-copy .public-note[role="status"][hidden] { display: none; }

#landingPage .home-binder-demo { min-width: 0; margin: 0; position: relative; }
#landingPage .home-table-scene { position: relative; padding: 110px 28px 40px; }
#landingPage .home-loose-cards { position: absolute; inset: 0; pointer-events: none; }
#landingPage .home-loose-cards img { position: absolute; width: 22%; height: auto; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 6px 6px 0 var(--ink); }
#landingPage .home-loose-cards img:first-child { top: 0; left: 16%; transform: rotate(-16deg); }
#landingPage .home-loose-cards img:last-child { top: 10px; right: 9%; transform: rotate(14deg); }
#landingPage .home-table-note {
  position: absolute; z-index: 3; right: -6px; top: 92px; padding: 8px 18px;
  border: 3px solid var(--ink); border-radius: 12px; background: var(--blush); color: var(--ink);
  font: 700 21px/1.25 var(--home-hand); transform: rotate(7deg); box-shadow: var(--pop);
}
#landingPage .home-table-note::before { content: ''; position: absolute; top: -13px; left: 50%; width: 58px; height: 15px; margin-left: -29px; background: #fff8ecc7; border: 2px solid #0d0e1440; transform: rotate(-4deg); }
#landingPage .home-sticker {
  position: absolute; z-index: 3; left: -4px; bottom: 6px; padding: 8px 14px;
  border: 3px solid var(--ink); border-radius: 999px; background: var(--mint); color: var(--ink);
  box-shadow: var(--pop); font: 800 15px/1 var(--sans); transform: rotate(-6deg); white-space: nowrap;
}
/* The sample binder matches the app's spread: an ink-outlined cover, stitched seam,
   dark inserts and the app's sunflower ring stubs. */
#landingPage .sample-binder {
  position: relative; padding: 14px; border: 4px solid var(--ink); border-radius: 24px;
  background: linear-gradient(180deg, #ffffff14, transparent 35%), #3b4250; box-shadow: var(--float); transform: rotate(-3deg);
}
#landingPage .sample-binder::before { content: ''; position: absolute; inset: 6px; border: 2px dashed #8590a3b3; border-radius: 18px; pointer-events: none; }
#landingPage .sample-spread { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 3.4% minmax(0, 1fr); }
#landingPage .sample-page { position: relative; padding: 8px; border: 3px solid var(--ink); border-radius: 12px; background: #1b1d27; }
#landingPage .sample-pockets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
#landingPage .sample-pocket { position: relative; aspect-ratio: 63 / 88; min-width: 0; border-radius: 6px; background: #ffffff08; box-shadow: inset 0 0 0 1.5px #ffffff1a; overflow: hidden; }
#landingPage .sample-pocket::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #ffffff2e 0 1.5px, transparent 1.5px); pointer-events: none; }
#landingPage .sample-pocket img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
#landingPage .sample-empty { display: flex; align-items: center; justify-content: center; color: #ffffff4d; }
#landingPage .sample-empty span { font: 700 16px/1 var(--sans); }
#landingPage .sample-rings { --ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='13'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe08a'/%3E%3Cstop offset='.55' stop-color='%23ffc93c'/%3E%3Cstop offset='1' stop-color='%23e0a514'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='1.25' y='1.25' width='19.5' height='10.5' rx='5.25' fill='url(%23g)' stroke='%230d0e14' stroke-width='2.5'/%3E%3C/svg%3E"); background: var(--ring) center 16% / 100% auto no-repeat, var(--ring) center 50% / 100% auto no-repeat, var(--ring) center 84% / 100% auto no-repeat, linear-gradient(90deg, #0000006b, #ffffff12 50%, #0000006b); border-radius: 4px; }
#landingPage .home-binder-demo figcaption { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 22px; color: var(--public-muted); font-size: 14px; font-weight: 500; }
#landingPage .home-binder-demo figcaption > span:last-child { max-width: 30ch; text-align: right; }
#landingPage .home-handwritten { font: 700 24px/1.3 var(--home-hand); color: var(--label-white); }

/* ---------- Sheets ---------- */
#landingPage .public-section { margin-bottom: 48px; padding: 56px; }
#landingPage .home-collection, #landingPage .home-start, #landingPage .home-faq { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; }
#landingPage :is(.home-collection, .home-start, .home-faq) h2 { font-size: clamp(2.4rem, 4.4vw, 4.25rem); line-height: 1.02; margin: 0; }
#landingPage .home-collection-copy > p:first-child { color: var(--ink); font: 700 clamp(1.4rem, 2vw, 1.9rem)/1.3 var(--sans); }
/* The benefits are three sticker strips in the app's colours. */
#landingPage .home-benefits { list-style: none; display: grid; gap: 12px; margin: 28px 0; padding: 0; }
#landingPage .home-benefits li { padding: 14px 18px; border: 3px solid var(--ink); border-radius: 16px; background: var(--mint); color: var(--ink); box-shadow: var(--pop-sm); font-weight: 600; }
#landingPage .home-benefits li:nth-child(4n+2) { background: var(--sky); }
#landingPage .home-benefits li:nth-child(4n+3) { background: var(--lilac); }
#landingPage .home-benefits li:nth-child(4n+4) { background: var(--sun); }

/* ---------- Games: one coloured sheet per game ---------- */
#landingPage .home-shelves { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--label-white); }
#landingPage .home-shelves > h2 { color: var(--label-white); -webkit-text-stroke: 10px var(--ink); text-shadow: 0 6px 0 var(--ink); }
#landingPage .home-shelves > h2 { font-size: clamp(2.6rem, 5.4vw, 5.25rem); line-height: 1; margin: 8px 0 40px; }
#landingPage .home-game-entry {
  position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center;
  margin-bottom: 32px; padding: 40px 48px 56px; border: 3px solid var(--ink); border-radius: 28px;
  background: var(--sun); color: var(--ink); box-shadow: var(--float);
}
#landingPage .home-game-onepiece { background: var(--blush); }
#landingPage .home-game-entry p { color: var(--ink); }
#landingPage .home-game-art { position: relative; min-height: 300px; }
#landingPage .home-game-art img { position: absolute; width: 36%; height: auto; top: 8px; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 6px 6px 0 var(--ink); }
#landingPage .home-game-art img:first-child { left: 14%; transform: rotate(-11deg); }
#landingPage .home-game-art img:last-child { left: 40%; transform: rotate(10deg); }
#landingPage .home-game-onepiece .home-game-art img:first-child { transform: rotate(-7deg); }
#landingPage .home-game-onepiece .home-game-art img:last-child { transform: rotate(15deg); }
#landingPage .home-game-entry h3 { font-size: clamp(2.5rem, 4.4vw, 4.25rem); line-height: 1.05; margin: 0 0 18px; }
#landingPage .home-game-entry h3 a { color: var(--ink); text-decoration: underline 5px; text-underline-offset: 8px; }
#landingPage .home-game-entry > div > p { font-size: 18px; font-weight: 500; }
#landingPage .home-game-entry .home-game-more { margin: 20px 0 0; font-size: 16px; }
#landingPage .home-game-more a { color: var(--ink); font-weight: 700; text-decoration: underline 2px; text-underline-offset: 3px; }
#landingPage .home-game-entry > .home-handwritten {
  position: absolute; left: 28px; bottom: -18px; margin: 0; padding: 6px 14px; border: 3px solid var(--ink); border-radius: 12px;
  background: var(--cream); color: var(--ink); box-shadow: var(--pop-sm); font-size: 18px; transform: rotate(-3deg);
}

/* ---------- Steps, FAQ and the closing invitation ---------- */
#landingPage .home-start h2 { margin-bottom: 20px; }
#landingPage .home-start .public-button { margin-top: 8px; }
#landingPage .home-start .public-note { margin-top: 16px; }
#landingPage .public-steps { counter-reset: home-step; list-style: none; display: grid; gap: 22px; margin: 0; padding: 0; }
#landingPage .public-steps li { counter-increment: home-step; position: relative; min-height: 52px; margin: 0; padding: 4px 0 0 72px; }
#landingPage .public-steps li::before {
  content: counter(home-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 52px; height: 52px;
  border: 3px solid var(--ink); border-radius: 50%; background: var(--sun); color: var(--ink); box-shadow: var(--pop-sm); font: 800 22px/1 var(--sans);
}
#landingPage .public-steps li:nth-child(2)::before { background: var(--mint); }
#landingPage .public-steps li:nth-child(3)::before { background: var(--sky); }
#landingPage .public-steps strong { color: var(--ink); font-size: 21px; font-weight: 800; }
#landingPage .public-steps p { margin: 6px 0 0; }
#landingPage .home-faq details p { font-size: 17px; }
#landingPage .home-invitation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; background: var(--sun); }
#landingPage .home-invitation h2 { font-size: clamp(2.6rem, 6vw, 6rem); line-height: 1; margin: 0; }
#landingPage .home-invitation h2 em { background: var(--tomato); }
#landingPage .home-invitation .public-actions { margin: 0; }

@media (max-width: 1100px) {
  #landingPage .home-hero { gap: 28px; }
  #landingPage .home-table-scene { padding: 92px 16px 36px; }
  #landingPage .home-table-note { font-size: 17px; }
  #landingPage .home-game-entry { gap: 32px; padding: 36px 36px 52px; }
  #landingPage .home-game-art { min-height: 250px; }
  #landingPage .public-section { padding: 44px; }
}
@media (max-width: 850px) {
  #landingPage .home-hero { grid-template-columns: 1fr; padding-block: 40px 56px; }
  #landingPage .home-hero h1 { font-size: clamp(3rem, 13vw, 6.5rem); }
  #landingPage .home-hero-copy { max-width: 640px; }
  #landingPage .home-binder-demo { width: min(100%, 640px); margin: 24px auto 0; }
  #landingPage .home-collection, #landingPage .home-start, #landingPage .home-faq { grid-template-columns: 1fr; gap: 28px; }
  #landingPage .home-table-note { right: 0; }
}
@media (max-width: 700px) {
  #landingPage .home-hero h1, #landingPage .home-shelves > h2 { -webkit-text-stroke-width: 7.5px; text-shadow: 0 4px 0 var(--ink); }
  #landingPage .home-hero { padding-block: 28px 40px; gap: 8px; }
  #landingPage .home-hero h1 { font-size: clamp(2.6rem, 14.5vw, 5rem); margin-bottom: 26px; }
  #landingPage .home-hero-copy .public-lead { font-size: 18px; }
  #landingPage .home-table-scene { padding: 76px 6px 34px; }
  #landingPage .home-table-note { top: 40px; font-size: 15px; padding: 6px 10px; }
  #landingPage .home-sticker { font-size: 13px; padding: 6px 10px; bottom: 0; }
  #landingPage .sample-binder { padding: 8px; border-width: 3px; border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); transform: rotate(-2deg); }
  #landingPage .sample-binder::before { inset: 3px; border-radius: 12px; }
  #landingPage .sample-page { padding: 4px; border-width: 2px; border-radius: 8px; }
  #landingPage .sample-pockets { gap: 3px; }
  #landingPage .sample-pocket { border-radius: 4px; }
  #landingPage .home-binder-demo figcaption { flex-direction: column; align-items: flex-start; gap: 6px; }
  #landingPage .home-binder-demo figcaption > span:last-child { text-align: left; }
  #landingPage .home-binder-demo .home-handwritten { font-size: 21px; }
  #landingPage :is(.home-collection, .home-start, .home-faq) h2 { font-size: clamp(2.1rem, 10vw, 3rem); }
  #landingPage .home-shelves { padding: 0; box-shadow: none !important; }
  #landingPage .public-section:not(.home-shelves) { padding: 28px 20px; }
  #landingPage .home-shelves > h2 { font-size: clamp(2.4rem, 12vw, 3.5rem); margin-bottom: 28px; }
  #landingPage .home-game-entry { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 40px; padding: 24px 20px 48px; border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); }
  #landingPage .home-game-art { min-width: 0; min-height: 0; aspect-ratio: 1.6; }
  #landingPage .home-game-entry h3 { font-size: 44px; }
  #landingPage .home-game-entry > .home-handwritten { left: 16px; bottom: -16px; font-size: 16px; }
  #landingPage .home-game-entry > .home-handwritten br { display: none; }
  #landingPage .public-steps li { padding-left: 64px; }
  #landingPage .public-steps li::before { width: 46px; height: 46px; font-size: 19px; }
}
@media (min-width: 851px) and (max-height: 750px) {
  #landingPage .home-hero { align-items: start; padding-block: 24px 56px; }
  #landingPage .home-hero h1 { font-size: clamp(3rem, 6.2vw, 6rem); margin-bottom: 24px; }
}
