/* The Kit Room home page. Layout: prototype C, "the yellow sign" (owner, 2026-10-31), with the richer step band. */
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }
.soft { display: block; font-weight: 500; }

/* the sign: always yellow with black, in light and dark */
.sign { background: var(--kr-yellow); color: var(--kr-black); padding: 1.25rem 0 3rem; }
@media (min-width: 48rem) { .sign { padding: 1.5rem 0 4.5rem; } }
.sign .logo { height: 34px; width: auto; margin-bottom: 3rem; }
.sign h1 { font-size: clamp(3rem, 11vw, 7.5rem); line-height: .95; letter-spacing: -0.035em; }
.sign .soft { margin-top: .1em; }
.sign .sub { margin: 1.75rem 0 2rem; max-width: 33rem; font-size: 1.1875rem; }
.sign .buy { background: var(--kr-black); color: var(--kr-yellow); }
.sign :focus-visible { outline-color: var(--kr-black); }

/* the kits, as rows */
.kits { padding: 3.5rem 0 3rem; }
.kits h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.row { display: grid; grid-template-columns: 4rem 1fr; gap: .75rem 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); align-items: start; }
@media (min-width: 52rem) { .row { grid-template-columns: 5rem 1fr 15rem; gap: 1.5rem; align-items: center; padding: 1.5rem 0; } }
.row .sym { width: 4rem; height: 4rem; border-radius: 12px; display: grid; place-items: center; }
@media (min-width: 52rem) { .row .sym { width: 5rem; height: 5rem; } }
.row .sym img { width: 76%; }
.row.seo .sym { background: var(--kit-seo); } .row.setup .sym { background: var(--kit-setup); }
.row h3 { font-size: 1.5rem; margin-bottom: .25rem; }
.row p { margin: 0; }
.row .line { font-weight: 700; } .row .detail { color: var(--muted); }
.row .act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
@media (min-width: 52rem) { .row .act { grid-column: auto; justify-content: flex-end; } }
.price { font-weight: 700; }
.soon { display: inline-block; padding: .375rem .75rem; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 700; font-size: .9375rem; }

/* how a kit works: a black band, four numbered cards; the numbers are the brand yellow */
.how { background: var(--kr-black); color: var(--kr-white); padding: 3.5rem 0; }
@media (min-width: 48rem) { .how { padding: 5rem 0; } }
.how h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 2rem; }
.how ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: .75rem; }
@media (min-width: 40rem) { .how ol { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .how ol { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.how li { counter-increment: step; background: #222220; border-radius: 16px; padding: 1.25rem 1.25rem 1.5rem; display: grid; align-content: start; gap: .5rem; }
.how li::before { content: counter(step); font: 800 3.5rem/1 var(--font-display); color: var(--kr-yellow); letter-spacing: -0.03em; margin-bottom: .5rem; }
.how li b { font: 800 1.375rem/1.15 var(--font-display); letter-spacing: -0.01em; }
.how li span { color: #CFCDC6; }
.how .need { margin: 2rem 0 0; color: #CFCDC6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .how { background: var(--surface); } :root:not([data-theme="light"]) .how li { background: var(--tile); } }

/* plain terms */
.terms { background: var(--tile); border-radius: 16px; padding: 1.5rem; display: grid; gap: 1.25rem; margin: 3rem 0; }
@media (min-width: 52rem) { .terms { grid-template-columns: 1fr 1fr; padding: 2rem; gap: 2rem; } }
.terms p { margin: 0; }
.terms b { display: block; font-family: var(--font-display); font-size: 1.25rem; }

/* free guides: the newest three as cover cards, then the way to all of them (copy/home-page.md 3b) */
.guides { padding: 3.5rem 0; }
@media (min-width: 48rem) { .guides { padding: 5rem 0; } }
.guides h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 2rem; }
.guides ul { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .guides ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guides a:not(.buy) { display: grid; gap: .6rem; height: 100%; padding: .75rem .75rem 1rem; border-radius: 16px; background: var(--tile); color: var(--fg); text-decoration: none; line-height: 1.3; transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s cubic-bezier(.16,1,.3,1); }
.guides a:not(.buy):hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,20,20,.12); }
.guides img { width: 100%; height: auto; border-radius: 10px; }
.guides b { font: 800 1.1875rem/1.2 var(--font-display); margin: 0 .25rem; }
.guides span { margin: 0 .25rem; color: var(--muted); font-size: .9375rem; }
/* all guides are in the list so the sort can pick; the home page shows the first three */
.guides ul > li:nth-child(n+4) { display: none; }
/* Newest | Most read switch (components/guide/SortGuides.astro) */
.sort { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 1rem; border-radius: 999px; background: var(--tile); }
.sort button { min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: 999px; background: transparent; color: var(--fg); font: 700 1rem/1 var(--font-body); cursor: pointer; }
.sort button[aria-pressed="true"] { background: var(--button-bg); color: var(--button-fg); }
