/* Public marketing pages (PUBLIC agent). Load via <Layout css={['/css/public.css']}>. */

/* ---------- Hero ---------- */
.hero { background: var(--slate); color: var(--paper); border-bottom: 3px solid var(--gold); --focus: var(--gold); }
.hero a { color: var(--paper); }
/* The gold button keeps slate text: cream on gold fails contrast. */
.hero a.btn--gold, .hero a.btn--gold:hover { color: var(--slate); }
.hero__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 88px var(--gutter) 96px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 56px; align-items: center;
}
.hero .eyebrow { color: var(--gold); margin-bottom: 22px; }
.hero h1 { font-size: clamp(46px, 6.4vw, 82px); line-height: 0.98; margin: 0 0 26px; color: var(--paper); }
.hero h1 em { color: var(--gold); }
.hero__lead { font-size: 19px; color: var(--cream); margin: 0 0 34px; max-width: 30em; }
.hero__note { font-size: 14px; color: var(--cream); margin: 22px 0 0; }
.hero .btn { font-size: 17px; padding: 14px 28px; }
.hero .link-arrow { color: var(--paper); text-decoration: none; padding: 0 4px; }
.hero .link-arrow:hover { color: var(--gold); text-decoration: underline; }

/* Brand crest with game previews. The previews are landscape framed panels, lightly tilted. */
/* Narrower than its column so the tilted panels stay inside the page gutter. */
.showcase { position: relative; width: calc(100% - 16px); max-width: 540px; aspect-ratio: 1 / 1; margin: 0 auto; }
.panel {
  position: absolute; background: var(--slate); border-radius: 6.5% / 4.6%; padding: 3.4%;
  box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.35), 0 22px 40px rgba(0, 0, 0, 0.45);
}
.panel--brand { left: 0; top: 6%; width: 52%; aspect-ratio: 5 / 7; transform: rotate(-3deg); }
.panel__outer { height: 100%; border: 2px solid var(--gold); border-radius: 9% / 6.5%; padding: 2.6%; }
.panel__inner {
  height: 100%; border: 1px solid var(--gold); border-radius: 7% / 5%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
}
.panel__inner svg { width: 40%; height: auto; }
.panel__word { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.22em; padding-left: 0.22em; color: var(--gold); font-size: clamp(14px, 2.4vw, 22px); }
.panel__family { font-family: var(--font-display); font-style: italic; font-weight: 500; color: var(--gold); font-size: clamp(12px, 2vw, 18px); }
.tile {
  position: absolute; left: 58%; width: 41%; aspect-ratio: 4 / 3; background: var(--paper); color: var(--slate);
  border-radius: 5% / 6%; padding: 2.4%; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}
.tile__outer { height: 100%; border: 2px solid var(--slate); border-radius: 6% / 8%; padding: 2%; }
.tile__inner {
  height: 100%; border: 1px solid var(--gold); border-radius: 5% / 7%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
}
.tile__inner svg { width: 24%; height: auto; }
.tile__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(12px, 1.9vw, 17px); line-height: 1.05; padding: 0 6%; }
.tile--1 { top: 3%; transform: rotate(1.5deg); }
.tile--2 { top: 35%; transform: rotate(-1deg); }
.tile--3 { top: 67%; transform: rotate(1deg); }

/* ---------- Section helpers ---------- */
.sect-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 48px; margin-bottom: 40px; }
.sect-head h2 { margin-bottom: 0; }
.sect-head p { max-width: 30em; margin: 0; color: var(--ink-muted); }
.sect-head .status-line { margin-top: 16px; }
.section--slate .sect-head p { color: var(--cream); }
.section h2 em { font-weight: 500; }
.on-slate-gold em { color: var(--gold); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps .frame__inner { padding-top: 24px; }
.step__num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--slate); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-bottom: 14px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0 0 8px; font-size: 16px; }

/* Roles band */
.roles {
  margin-top: 56px; background: var(--sand); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  border-radius: 12px; padding: 32px 28px; display: grid; gap: 28px 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center;
}
.roles h3 { font-size: 32px; }
.roles p { margin: 0; color: var(--ink-muted); }
.roles__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 22px; }
.roles__list li { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; font-size: 14px; font-weight: 600; }
.roles__list .bud { width: 52px; height: 52px; border-radius: 50%; background: var(--slate); display: grid; place-items: center; }
.roles__list .bud svg { width: 32px; height: 32px; }

/* Game list: plain framed panels */
.games { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.games > li { flex: 0 1 100%; }
.games > li.frame { height: auto; } /* let flex stretch each row's panels to equal height */
@media (min-width: 560px) { .games > li { flex-basis: calc((100% - 20px) / 2); } }
@media (min-width: 860px) { .games > li { flex-basis: calc((100% - 40px) / 3); } }
@media (min-width: 1100px) { .games > li { flex-basis: calc((100% - 80px) / 5); } }
.games .frame { height: 100%; }
.games .frame__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; height: 100%; }
.games svg { width: 56px; height: 56px; }
.games h3 { font-size: 24px; margin: 0; color: var(--paper); }
.games p { margin: 0; font-size: 15px; color: var(--cream); }
.game__levels { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

/* Calendar sample */
.cal { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: center; }
.cal__feed { margin-top: 24px; max-width: 30em; }
.cal__feed .frame__inner { display: flex; gap: 14px; align-items: center; }
.cal__feed svg { width: 40px; height: 40px; flex: none; }
.cal__feed p { margin: 0; font-size: 16px; }
.cal__panel { background: var(--paper-2); border: 2px solid var(--slate); border-radius: 16px; padding: 5px; }
.cal__panel-in { border: 1px solid var(--gold); border-radius: 11px; padding: 20px; }
.cal__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cal__month { font-family: var(--font-display); font-weight: 700; font-size: 28px; }
.cal__tag { font-size: 13px; color: var(--ink-muted); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.cal__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cal__item { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid rgba(47, 62, 70, 0.25); border-radius: 10px; padding: 10px 14px; }
.cal__date { flex: none; width: 52px; text-align: center; background: var(--slate); color: var(--paper); border-radius: 8px; padding: 6px 0; line-height: 1; }
.cal__date small { display: block; font-size: 11px; letter-spacing: 0.12em; color: var(--gold); font-weight: 600; }
.cal__date b { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.cal__item span.txt { flex: 1; font-size: 15px; }
.cal__item svg { width: 22px; height: 22px; flex: none; }
.cal__note { font-size: 14px; color: var(--ink-muted); margin: 14px 0 0; }

/* Trust */
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
/* Three cards: never leave one alone on a row. Two columns put the odd last card across both; three columns from 1024px. */
@media (min-width: 640px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .trust { grid-template-columns: repeat(3, 1fr); }
  .trust > li:last-child:nth-child(odd) { grid-column: auto; }
}
.trust .frame { height: 100%; }
.trust svg { width: 40px; height: 40px; margin-bottom: 10px; }
.trust p { margin: 0; }

/* FAQ teaser + CTA */
.faq-teaser { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.faq-list { display: grid; gap: 16px; }
.faq-list h3 { font-size: 24px; margin-bottom: 6px; }
.faq-list p { margin: 0; font-size: 16px; }
.cta-wrap { margin-top: 72px; }
.cta .frame__inner { padding: 56px 24px; }
.cta svg { margin-bottom: 14px; }
.cta h2 { max-width: 16em; margin-left: auto; margin-right: auto; color: var(--paper); }
.cta h2 em { color: var(--gold); }
.cta p { color: var(--cream); max-width: 32em; margin: 0 auto 28px; }
.cta .btn { font-size: 17px; padding: 14px 28px; }

/* ---------- Inner pages ---------- */
.page-header .lead { margin-top: 16px; }
.inner { padding-bottom: 80px; }
.two-col { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.two-col--roles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); } /* four role cards: one column or a 2x2 grid, never 3 + 1 */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.feature-list .frame__inner h2, .feature-list .frame__inner h3 { margin-bottom: 8px; }
.feature-list p:last-child { margin-bottom: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; padding: 0; margin: 12px 0 0; }
.meta li { margin: 0; }
.definition { display: grid; gap: 6px; margin: 0; }
.definition dt { font-weight: 600; }
.definition dd { margin: 0 0 10px; color: var(--ink-muted); }
.faq-all details { border-bottom: 1px solid rgba(47, 62, 70, 0.3); padding: 4px 0; }
.faq-all summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; padding: 12px 0; min-height: 44px; }
.faq-all details p { margin: 0 0 16px; max-width: 42em; }
.legal-note { font-size: 15px; color: var(--ink-muted); }
.toc { background: var(--sand); border-radius: 10px; padding: 16px 22px; max-width: 42em; }
.toc ol { margin: 6px 0 0; padding-left: 1.3em; columns: 2 220px; }
.toc a { display: inline-block; padding: 4px 0; min-height: 32px; }
.status-note { margin-top: 24px; }
@media (max-width: 640px) {
  /* Phone: crest plus two previews, so nothing is smaller than 12px or overlaps. */
  .tile--3 { display: none; }
  .tile--1 { top: 6%; }
  .tile--2 { top: 42%; }
  .hero__inner { padding-top: 40px; padding-bottom: 56px; }
  .roles { padding: 24px 18px; }
}
