/* Public home page. Builds on auth.css tokens (Noir Art Deco). */
body.home { background: radial-gradient(ellipse at 50% 0%, #2a2014 0%, var(--bg) 60%) fixed; }

.topbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 20px 12px; background: rgba(14, 12, 10, 0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--brass-line); }
.mark { font: 700 18px var(--display); letter-spacing: 2px; color: var(--gilt); text-decoration: none; }
.topbar nav { display: flex; gap: 10px; align-items: center; }
.topbar nav a { display: inline-block; padding: 9px 16px; border-radius: 2px; font-weight: 600; letter-spacing: .5px; text-decoration: none; color: var(--text); border: 1px solid var(--brass-line); }
.topbar .nav-login { border-color: var(--gilt); color: var(--gilt); }
.topbar .nav-login:hover { background: rgba(233, 210, 154, .08); }
.topbar .nav-join { background: var(--oxblood); border-color: var(--gold); }
.topbar .nav-join:hover { background: #941f2c; }

.landing { max-width: 1040px; margin: 0 auto; padding: 0 20px 40px; }

/* Hero: the crest is the page's one big gesture */
.hero { text-align: center; padding: 48px 0 30px; }
.crest-big { display: flex; justify-content: center; }
.crest-big .sun { width: 190px; height: auto; }
/* The heading holds both words so search engines read the full name; display: contents keeps the crest layout unchanged. */
.crest-big h1 { display: contents; font-weight: normal; }
.crest-big .word { margin: 0; font: 700 clamp(36px, 7.5vw, 58px)/1 var(--display); letter-spacing: .18em; margin-right: -.18em; color: var(--gilt); text-transform: uppercase; }
.crest-big .sub { margin: 0; color: var(--gold); letter-spacing: 6px; font-size: 15px; }
.lede { max-width: 34em; margin: 30px auto 26px; font-size: 20px; line-height: 1.6; color: var(--text); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .button { width: auto; min-width: 210px; margin: 0; }

/* Sections, separated by a brass rule with a diamond */
.band { padding: 44px 0 10px; }
.band > h2 { border: 0; padding: 0; margin: 0 0 22px; text-align: center; font: 700 clamp(26px, 4vw, 34px)/1.2 var(--display); color: var(--gilt); }
.band > h2::after { content: ""; display: block; width: 150px; height: 10px; margin: 14px auto 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='10'%3E%3Cpath d='M0 5H62M88 5H150' stroke='%23C8A45D'/%3E%3Cpath d='M75 0L80 5L75 10L70 5Z' fill='%23C8A45D'/%3E%3C/svg%3E") center / contain no-repeat; }
.band > p { max-width: 40em; margin: 0 auto 16px; font-size: 17px; line-height: 1.7; color: #e3d9c3; }
.intro > p:first-of-type::first-letter { float: left; font: 700 54px/0.9 var(--display); color: var(--gold); margin: 6px 10px 0 0; }

.grid { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.tile { position: relative; padding: 22px 22px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 2px; }
.tile::before, .tile::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--gold); }
.tile::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.tile::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.tile h3, .step h3 { display: block; }
.tile h3::after, .step h3::after { content: none; }
.tile h3 { margin: 0 0 8px; font: 600 19px/1.3 var(--display); color: var(--gilt); }
.tile p { margin: 0; color: #d8cdb5; line-height: 1.6; }
.note { text-align: center; margin-top: 22px !important; font-size: 15px !important; color: var(--muted) !important; }

.plan-card { max-width: 560px; margin: 0 auto; text-align: center; padding: 34px 30px 30px; background: var(--card); border: 1px solid var(--gold);
  outline: 1px solid rgba(200, 164, 93, .38); outline-offset: -8px; }
.plan-card .price { font-size: 40px; margin: 0 0 14px; }
.plan-card p { line-height: 1.7; color: #e3d9c3; }
.plan-card .button { max-width: 320px; margin: 22px auto 0; }

.steps-row { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: step; }
.step { counter-increment: step; text-align: center; padding: 8px 14px; }
.step::before { content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52'%3E%3Cpath d='M26 1L51 26L26 51L1 26Z' fill='none' stroke='%23C8A45D'/%3E%3Cpath d='M26 6L46 26L26 46L6 26Z' fill='none' stroke='%23C8A45D' stroke-opacity='.4'/%3E%3C/svg%3E") center / contain no-repeat; font: 700 20px var(--display); color: var(--gilt); }
.step h3 { margin: 0 0 6px; font: 600 18px var(--display); color: var(--text); }
.step p { margin: 0; color: var(--muted); }

.requests { text-align: center; }
.requests .button { width: auto; display: inline-block; min-width: 220px; }

.home .site-footer { margin-top: 40px; }
.footer-mark { font: 700 16px var(--display); letter-spacing: 2px; color: var(--gold); }

@media (max-width: 520px) {
  .topbar { padding-left: 16px; padding-right: 16px; }
  .mark { font-size: 15px; }
  .topbar nav a { padding: 8px 12px; font-size: 14px; }
  .landing { padding: 0 16px 30px; }
  .lede { font-size: 18px; }
  .cta .button { min-width: 0; flex: 1 1 100%; }
}

/* Languages (see auth.css): no drop cap or wide spacing outside Latin scripts. */
.topbar .nav-lang { border-color: transparent; color: var(--gold); font-weight: 500; padding-inline: 8px; }
.topbar .nav-lang:hover { border-color: var(--brass-line); }
.nonlatin .crest-big .word { letter-spacing: .04em; margin-right: 0; text-transform: none; }
.nonlatin .crest-big .sub, .nonlatin .mark, .nonlatin .footer-mark { letter-spacing: 1px; }
.nonlatin .intro > p:first-of-type::first-letter { float: none; font: inherit; color: inherit; margin: 0; }
@media (max-width: 480px) { .topbar .nav-lang { padding-inline: 4px; font-size: 13px; } }

/* The "What is Mafia?" story video (intro_html), under the game's description. */
.intro-video { max-width: 560px; margin: 26px auto 0; }
/* The trailer, in the hero under the buttons. */
.trailer { max-width: 760px; margin: 30px auto 0; }
.trailer video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--gold); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.trailer figcaption { margin-top: 10px; text-align: center; font: 700 13px var(--body); letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.intro-video .intro-open { margin: 0; }
