/* Landing page (welcome.html): hero, features, how it works. */
body.landing {
  --gold-l: #e8c26f; --cream: #f6f0e1; --ink: #1c2924;
  background: #0a211d; color: #eef1ea;
}
.landing section { padding-inline: clamp(16px, 5vw, 64px); }
.landing .eyebrow { margin: 0 0 18px; font: 600 12px var(--ui); letter-spacing: .32em; text-transform: uppercase; color: #93aea4; }
.landing h1, .landing h2, .landing h3 { font-family: var(--heading); font-weight: 600; margin: 0; }

/* nav */
.landing-nav { position: absolute; z-index: 5; inset: 0 0 auto 0; display: flex; align-items: center; gap: 28px;
  padding: 18px clamp(16px, 5vw, 64px); }
.landing-nav .grow { flex: 1; }
.landing-nav .nav-link { color: #e6ece6; text-decoration: none; font-size: 14px; white-space: nowrap; }
.landing-nav .nav-link:hover { color: var(--gold-l); }
.landing-nav .signin { margin-left: 8px; }
.btn.gold { background: linear-gradient(180deg, #ebc572, #d6a548); color: #2a2110; border-color: #d6a548; font-weight: 600; }
.btn.gold:hover { filter: brightness(1.07); border-color: #e8c26f; }
.landing-nav .btn.gold { padding: 11px 20px; font-size: 14px; border-radius: 7px; white-space: nowrap; }
.btn.outline { background: rgba(0, 0, 0, .15); color: var(--gold-l); border: 1px solid rgba(232, 194, 111, .7); }
.btn.outline:hover { border-color: var(--gold-l); background: rgba(232, 194, 111, .1); }
.btn.big { padding: 15px 28px; font-size: 16px; border-radius: 7px; display: inline-flex; align-items: center; gap: 12px; }
.btn.outline svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* hero */
.hero-section { position: relative; overflow: hidden; display: flex; align-items: flex-start;
  min-height: clamp(620px, 50vw, 800px); padding-top: clamp(110px, 8vw, 140px); padding-bottom: 80px;
  background: linear-gradient(180deg, rgba(7, 23, 20, .75), transparent 22%), linear-gradient(90deg, rgba(7, 23, 20, .55), transparent 55%), #0a211d url(../img/landing-hero.jpg) right center / cover no-repeat;
  border-bottom: 2px solid #1d4a40; }
.hero-copy { max-width: 560px; }
.hero-copy h1 { font-size: clamp(44px, 5.4vw, 78px); line-height: 1.02; color: #f6f0e1; }
.hero-copy h1 em { font-style: normal; color: var(--gold-l); }
.hero-copy .lead { margin: 30px 0 0; max-width: 470px; font: 400 clamp(17px, 1.5vw, 21px)/1.5 var(--heading); color: #e8ede6; }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 26px; }
.hero-copy .motto { margin: 0; color: #a9bdb4; font: italic 19px var(--heading); }


/* boards (drawn by js/landing-boards.js) */
.board { display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1; width: 100%; line-height: 1; container-type: inline-size; }
.board .sq { display: grid; place-items: center; position: relative; }
.board .sq.l { background: #d7c9a2; }
.board .sq.d { background: #9d916f; }
.board .sq.hi::after { content: ""; position: absolute; inset: 0; background: rgba(226, 184, 98, .55); }
.board piece { display: block; width: 100%; height: 100%; background-size: cover; background-repeat: no-repeat; position: relative; z-index: 1; }
.hero-board { width: 88%; border: 1px solid #6c6248; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }

/* features */
.features-section { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(24px, 4vw, 56px);
  align-items: start; padding-top: 80px; padding-bottom: 90px;
  position: relative; isolation: isolate; background: #0a211d; }
.features-section::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(-1);
  background: url(../img/landing-features.jpg) center / cover no-repeat; }
.features-intro h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.12; color: #f6f0e1; }
.features-intro p:last-child { margin: 18px 0 0; font: 18px/1.5 var(--heading); color: #cdd8d0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature { position: relative; padding: 0 0 4px; }
.feature .mock { aspect-ratio: 1 / 1.05; border: 1px solid #28564b; border-radius: 10px; background: #0f332c; padding: 10px;
  overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.f-icon { display: grid; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 14px; position: relative;
  border-radius: 50%; background: #0a211d; border: 1px solid #d6a548; color: var(--gold-l); }
.f-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 14px 0 8px; font-size: 22px; line-height: 1.15; color: #f6f0e1; }
.feature:first-child h3 { color: var(--gold-l); }
.feature p { margin: 0; font: 16px/1.45 var(--heading); color: #cdd8d0; }

.mock-detect { position: relative; background: #dccfa8; }
.mini-page { background: #efe4c8; height: 100%; padding: 10px; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.mini-page span { height: 3px; background: #b3a77f; border-radius: 2px; }
.mini-page .board { width: 70%; align-self: center; margin-top: 4px; }
.corner { position: absolute; width: 18px; height: 18px; border: 0 solid var(--gold-l); }
.corner.tl { top: 22%; left: 14%; border-width: 2px 0 0 2px; }
.corner.tr { top: 22%; right: 14%; border-width: 2px 2px 0 0; }
.corner.bl { bottom: 12%; left: 14%; border-width: 0 0 2px 2px; }
.corner.br { bottom: 12%; right: 14%; border-width: 0 2px 2px 0; }
.mock-board { padding: 6px; background: #0b2420; }
.mock-engine { color: #dfe6df; font: 12px var(--ui); background: #0b2420; align-items: stretch; }
.eng-head { display: flex; justify-content: space-between; color: #93aea4; font-size: 11px; }
.eng-eval { font: 600 26px var(--ui); margin: 6px 0; }
.eng-bars { display: flex; align-items: flex-end; gap: 3px; height: 36px; margin-bottom: 8px; }
.eng-bars i { flex: 1; background: #b98a2f; border-radius: 1px; }
.eng-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.eng-lines li { display: flex; justify-content: space-between; border-top: 1px solid #1f4a41; padding-top: 4px; }
.eng-lines b { font-weight: 600; }
.eng-lines span { color: #7fd6a2; }

.mock-library { background: #0b2420; justify-content: flex-start; }
.lib-head { display: flex; justify-content: space-between; align-items: center; font: 600 12px var(--ui); margin-bottom: 12px; }
.lib-head b { background: #c99a3f; color: #1b2a22; padding: 4px 8px; border-radius: 4px; font-size: 11px; }
.lib-books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bk { aspect-ratio: 3 / 4.2; border-radius: 3px; padding: 6px 4px; display: flex; flex-direction: column; justify-content: space-between;
  text-align: center; font-family: var(--heading); color: #f3ecd9; box-shadow: 2px 3px 6px rgba(0, 0, 0, .4); }
.bk small { font: 700 9px var(--heading); letter-spacing: .04em; overflow: hidden; }
.bk span { font-size: 9px; line-height: 1.15; }
.bk.b1 { background: linear-gradient(160deg, #6b7a62, #3f4c3a); }
.bk.b2 { background: linear-gradient(160deg, #4a4f6b, #2d3350); }
.bk.b3 { background: linear-gradient(160deg, #7a6a52, #4d4130); }

/* how it works */
.how-section { background: var(--cream) url(../img/landing-how.jpg) center / cover no-repeat; color: var(--ink); padding-top: 150px; padding-bottom: 90px; }
.how-section .eyebrow { color: #6a6a58; }
.how-intro { max-width: 460px; margin-bottom: 48px; }
.how-intro h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.08; }
.how-intro p:last-child { margin: 18px 0 0; font: 19px/1.5 var(--heading); color: #4a554e; }
.how-steps { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; align-items: end; }
.arrow { align-self: end; padding-bottom: 60px; font-size: 26px; color: #8a8a74; }
.step-head { display: flex; gap: 14px; margin-bottom: 18px; min-height: 120px; }
.num { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, #ebc572, #c99a3f); color: #fff; font: 600 24px var(--heading); }
.step-head h3 { font-size: 26px; margin-bottom: 4px; }
.step-head p { margin: 0; font: 16px/1.4 var(--heading); color: #4a554e; }
.step-mock { border-radius: 10px; padding: 14px; border: 1px solid #ddd2b6; background: #fffdf6;
  box-shadow: 0 8px 24px rgba(60, 50, 20, .12); aspect-ratio: 16 / 10; overflow: hidden; }
.lib-title { font: 600 13px var(--ui); margin-bottom: 10px; }
.lib-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; align-items: center; }
.drop { border: 1.5px dashed #c9bd9c; border-radius: 8px; padding: 12px 8px; text-align: center; font: 11px/1.35 var(--ui); color: #4a554e;
  display: flex; flex-direction: column; align-items: center; gap: 6px; }
.drop svg { width: 26px; height: 26px; fill: none; stroke: #4a554e; stroke-width: 1.5; }
.drop b { background: linear-gradient(180deg, #ebc572, #d6a548); color: #2a2110; border-radius: 5px; padding: 6px 18px; font-size: 12px; }
.bk.tall { aspect-ratio: 3 / 4; }
.step-page { background: #e9dcba; display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; align-items: center; }
.mini-text { display: grid; gap: 6px; }
.mini-text span { height: 3px; background: #b3a77f; border-radius: 2px; }
.framed { padding: 6px; background: #d9c89a; border: 2px solid #c99a3f; border-radius: 3px; }
.step-analyse { background: #0b2420; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; color: #dfe6df; }
.step-analyse .mock-engine { padding: 0; }
.save-pos { margin-top: 8px; border: 1px solid #d6a548; color: var(--gold-l); border-radius: 5px; padding: 5px; text-align: center; font-size: 11px; }
.cta-row { margin-top: 56px; text-align: center; }

@media (max-width: 1100px) {
  .features-section { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-section { padding-top: 120px; background-position: 70% center; }
  .hero-copy { text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
  .landing-nav { gap: 14px; }
  .landing-nav .nav-link:not(.signin) { display: none; }
  .how-steps { grid-template-columns: minmax(0, 1fr); }
  .arrow { display: none; }
  .step-head { min-height: 0; }
  .step { margin-bottom: 28px; }
}
@media (max-width: 520px) {
  .landing-nav { gap: 12px; padding-inline: 14px; }
  .landing-nav .auth-brand { gap: 8px; font-size: 15px; letter-spacing: .1em; }
  .landing-nav .auth-brand img { width: 36px; height: 36px; }
  .landing-nav .nav-link { font-size: 13px; }
  .landing-nav .signin { margin-left: 0; }
  .landing-nav .btn.gold { padding: 9px 13px; font-size: 13px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature .mock { aspect-ratio: 16 / 10; }
  .hero-copy .actions .btn { width: 100%; justify-content: center; }
}
body.landing { overflow-x: hidden; }
