/* v3.8.42 the home page ("Design your own box"): two box cards, each a picture gallery, facts and the base price; uses style.css + orders.css (dialog) */
body.home { display: block; height: auto; min-height: 100%; }          /* (style.css makes body a flex row for the designer) */
body.home main.homepage { max-width: 1120px; margin: 0 auto; padding: 22px 18px 40px; display: block; }          /* (orders.css: .cust main = 720 px grid) */
.hero { text-align: center; margin: 6px auto 20px; max-width: 720px; }
.hero h1 { font-size: 30px; margin: 0 0 8px; color: var(--accent); }
.hero .lead { margin: 0; font-size: 15.5px; color: var(--text); opacity: .9; }
.notice { max-width: 720px; margin: 0 auto 16px; padding: 8px 12px; border: 1px solid var(--warn); border-radius: 8px; color: var(--warn); font-size: 13px; text-align: center; }
.notice[hidden] { display: none; }

.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; align-items: start; }
.boxcard { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s; }
/* the box lights up when the mouse is over it (or a key reaches it) */
.boxcard:hover, .boxcard:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 34px rgba(212, 175, 55, .16); transform: translateY(-3px); }
.boxcard .stage { all: unset; position: relative; display: block; cursor: pointer; border-radius: 10px; overflow: hidden; background: #15161a; line-height: 0; }
.boxcard .stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.boxcard .main { width: 100%; height: auto; aspect-ratio: 4 / 3; display: block; transition: filter .15s, transform .25s; filter: brightness(.9) saturate(.95); }
.boxcard:hover .main, .boxcard:focus-within .main { filter: brightness(1.08) saturate(1.1); transform: scale(1.02); }
.boxcard .hint { position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 6px); padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #1a1508;
  font: 600 12px/1.2 system-ui, "Segoe UI", sans-serif; opacity: 0; transition: opacity .15s, transform .15s; pointer-events: none; white-space: nowrap; }
.boxcard:hover .hint, .boxcard .stage:focus-visible .hint { opacity: 1; transform: translate(-50%, 0); }

.thumbs { display: flex; gap: 8px; }
.thumb { all: unset; box-sizing: border-box; cursor: pointer; flex: 1 1 0; max-width: 92px; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; line-height: 0; background: #15161a; opacity: .7;
  transition: opacity .12s, border-color .12s; }
.thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; display: block; }
.thumb:hover, .thumb:focus-visible { opacity: 1; border-color: #6b6338; }
.thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.thumb.on { opacity: 1; border-color: var(--accent); }

.boxcard h2 { margin: 4px 0 0; font-size: 22px; text-transform: none; letter-spacing: 0; color: var(--text); }
.boxcard .tag { margin: -4px 0 0; color: var(--accent); font-size: 14px; }
.price { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #191b20; }
.price[hidden] { display: none; }
.price .k { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.price .v { font-size: 24px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.price .u { font-size: 12px; color: var(--muted); margin-left: 6px; }
.price .alt { font-size: 12.5px; color: var(--ok); }
.boxcard .desc { margin: 0; font-size: 13.5px; opacity: .92; }
.facts { margin: 0; display: grid; gap: 0; font-size: 13px; }
.facts > div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.boxcard .choose { margin-top: 4px; padding: 9px 14px; font-size: 14px; font-weight: 600; background: var(--accent); color: #1a1508; border-color: var(--accent); }
.boxcard .choose:hover { filter: brightness(1.08); }

.howto { margin: 34px 0 14px; }
.howto h2 { font-size: 13px; text-align: center; margin-bottom: 12px; }
.howto ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; counter-reset: st; }
.howto li { counter-increment: st; padding: 12px 14px 12px 50px; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 3px; }
.howto li::before { content: counter(st); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #1a1508; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.howto li span { font-size: 12.5px; color: var(--muted); }
.more { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.more a { color: var(--accent); }

#startDialog form { display: grid; gap: 10px; }
#startDialog label { display: grid; gap: 4px; font-size: 13px; }
#startDialog input, #startDialog select { width: 100%; box-sizing: border-box; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 7px 8px; font: inherit; }
#startDialog #stCmdRow[hidden], #startDialog #stAuth[hidden] { display: none; }
#startDialog .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
#startDialog .primary { background: var(--accent); color: #1a1508; border-color: var(--accent); font-weight: 600; }
#stMsg.err { color: var(--bad); } #stMsg.ok { color: var(--ok); }

@media (max-width: 760px) {
  .hero h1 { font-size: 25px; }
  .boxes { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 96px 1fr; }
}
@media (hover: none) { .boxcard .hint { opacity: 1; transform: translate(-50%, 0); } .boxcard:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .boxcard, .boxcard .main, .boxcard .hint { transition: none; } .boxcard:hover, .boxcard:focus-within { transform: none; } }

/* v3.9.20 the e-mail list ("Be the first to know") */
.wl { margin: 28px auto 8px; max-width: 640px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); text-align: center; }
.wl h2 { margin: 0 0 6px; font-size: 20px; color: var(--accent); }
.wl p { margin: 4px 0 12px; color: var(--muted); }
.wlrow { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; position: relative; }
.wlrow input[type=email] { flex: 1 1 240px; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-size: 16px; }
.wlrow button { min-height: 44px; padding: 8px 18px; }
.wlc { display: flex; gap: 8px; align-items: flex-start; justify-content: center; margin-top: 10px; font-size: 13px; color: var(--muted); text-align: left; }
.wlc input { margin-top: 3px; }
