/* Concept 5 — Kit Builder Journey
   The homepage is a guided tool: a 4-step wizard builds the school's full uniform list.
   Deep purple as the primary, sunshine yellow for key moments, soft lilac surfaces. */
:root {
  --purple: #4b3a8c;
  --purple-2: #6a55c2;
  --purple-dark: #2e2260;
  --lilac: #f3f0fb;
  --lilac-2: #e6e0f7;
  --yellow: #ffd23f;
  --red: #e4332d;
  --ink: #1f1a3a;
  --muted: #6b6788;
  --line: #e4e0f1;
  --green: #1f9d55;
  --r: 20px;
  --font: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 600; }
p { margin: 0; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--purple); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.muted { color: var(--muted); }
.eyebrow { font-size: .8rem; font-weight: 600; color: var(--purple-2); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.eyebrow--y { color: var(--yellow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 14px; border: 2px solid transparent; font-weight: 600; white-space: nowrap; transition: background .15s, transform .15s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--purple); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--purple-dark); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--green { background: var(--green); color: #fff; }
.more { font-weight: 600; color: var(--purple); white-space: nowrap; }
.more::after { content: ' →'; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand img { height: 62px; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--lilac); }
.nav__cta { background: var(--lilac); color: var(--purple); font-weight: 600 !important; }
.tools { display: flex; gap: 6px; margin-left: auto; }
.tool { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; }
.tool:hover { background: var(--lilac); }
.tool svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool b { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: .68rem; display: grid; place-items: center; }
.tool b:empty { display: none; }
.menu-btn { display: none; }

.hero { background: linear-gradient(160deg, var(--lilac) 0%, #fff 70%); padding: 56px 0 72px; }
.hero__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.hero__copy { position: relative; padding-top: 20px; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 700; }
.hero h1 span { color: var(--purple); background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.lead { font-size: 1.08rem; color: var(--muted); margin: 18px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.ticks li::before { content: '✓'; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .8rem; flex: none; }
.hero__photos { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; max-width: 460px; }
.hero__photos img { width: 100%; height: 150px; object-fit: cover; border-radius: 16px; }
.hero__photos img:first-child { height: 190px; align-self: end; }

.wizard { background: #fff; border-radius: 28px; box-shadow: 0 30px 70px rgba(46, 34, 96, .16); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 560px; }
.stepper { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: s; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; color: var(--muted); padding-bottom: 10px; border-bottom: 3px solid var(--line); }
.stepper span { width: 28px; height: 28px; border-radius: 50%; background: var(--lilac-2); display: grid; place-items: center; font-weight: 600; font-size: .8rem; flex: none; }
.stepper .is-active { color: var(--ink); border-color: var(--purple); }
.stepper .is-active span { background: var(--purple); color: #fff; }
.stepper .is-done { border-color: var(--green); }
.stepper .is-done span { background: var(--green); color: #fff; }
.panel { flex: 1; animation: in .35s ease; }
@keyframes in { from { opacity: 0; transform: translateX(14px); } }
.panel h2 { font-size: 1.4rem; margin-bottom: 16px; }
.panel h2 small { font-size: .85rem; color: var(--muted); font-weight: 400; }
.field { width: 100%; height: 50px; border-radius: 14px; border: 2px solid var(--line); padding: 0 16px; margin-bottom: 14px; outline: none; }
.field:focus { border-color: var(--purple); }
.options { display: grid; gap: 10px; }
.options button { border: 2px solid var(--line); background: #fff; border-radius: 14px; text-align: left; transition: border-color .15s, background .15s; }
.options button:hover { border-color: var(--purple-2); }
.options button[aria-pressed="true"] { border-color: var(--purple); background: var(--lilac); box-shadow: inset 0 0 0 1px var(--purple); }
.options--schools { grid-template-columns: 1fr 1fr; max-height: 336px; overflow: auto; padding: 2px; }
.options--schools button { display: flex; align-items: center; gap: 12px; padding: 12px; }
.options--schools img { width: 48px; height: 48px; flex: none; border-radius: 10px; object-fit: cover; }
.options--schools strong { display: block; font-size: .92rem; line-height: 1.3; }
.options--schools small { color: var(--muted); font-size: .78rem; }
.options--chips { grid-template-columns: repeat(4, 1fr); }
.options--chips button { padding: 14px 10px; text-align: center; font-weight: 500; }
.options--big { grid-template-columns: 1fr 1fr; }
.options--big button { padding: 22px; display: grid; gap: 4px; font-weight: 600; font-size: 1.1rem; }
.options--big img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.options--big small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.season { display: flex; gap: 10px; align-items: center; margin-top: 18px; font-weight: 500; }
.season input { width: 20px; height: 20px; accent-color: var(--purple); }
.sizes { display: grid; gap: 14px; }
.size-row { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
.size-row img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.size-row strong { display: block; font-size: .92rem; margin-bottom: 6px; }
.size-row .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.size-row .opts button { min-width: 44px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: .82rem; }
.size-row .opts button[aria-pressed="true"] { background: var(--purple); color: #fff; border-color: var(--purple); }
.help-link { display: inline-block; margin-top: 14px; color: var(--purple); font-weight: 500; text-decoration: underline; }
.done__head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.done__head img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.done__head h2 { margin: 0; }
.done__head p { color: var(--muted); font-size: .9rem; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; background: var(--lilac); }
.list img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.list small { display: block; color: var(--muted); font-size: .78rem; }
.list b { font-weight: 600; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px dashed var(--line); margin-top: 14px; padding-top: 14px; }
.total s { color: var(--muted); font-size: .85rem; margin-left: 6px; }
.total strong { font-size: 1.7rem; color: var(--purple); }
.saving { color: var(--green); font-weight: 600; font-size: .9rem; }
.wizard__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.wizard__foot .btn--primary { flex: 1; max-width: 300px; margin-left: auto; }

.strip { background: var(--purple-dark); color: #e8e4fb; font-size: .9rem; }
.strip__row { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }

.section { padding: 80px 0; }
.section--soft { background: var(--lilac); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }

.school-kits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sk { border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px 20px; display: grid; gap: 12px; background: #fff; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.sk:hover { box-shadow: 0 16px 40px rgba(46, 34, 96, .12); transform: translateY(-3px); }
.sk__top { display: grid; gap: 12px; margin: 0 -20px; }
.sk__top img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sk__top strong { font-size: .95rem; line-height: 1.3; padding: 0 20px; }
.sk__items { display: flex; gap: 6px; }
.sk__items span { flex: 1; aspect-ratio: 1; background: var(--lilac); border-radius: 10px; overflow: hidden; }
.sk__items img { width: 100%; height: 100%; object-fit: cover; }
.sk__price { display: flex; justify-content: space-between; align-items: center; }
.sk__price strong { font-size: 1.2rem; }
.sk__price small { color: var(--muted); display: block; font-size: .78rem; }
.sk .btn { min-height: 42px; padding: 0 16px; font-size: .9rem; }

.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat { background: #fff; border-radius: 18px; padding: 10px 10px 14px; display: grid; justify-items: center; gap: 8px; text-align: center; font-weight: 500; font-size: .9rem; transition: transform .2s; }
.cat:hover { transform: translateY(-3px); }
.cat img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

.addons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ad { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.ad__img { aspect-ratio: 4 / 3; background: var(--bg); overflow: hidden; position: relative; }
.ad__img img { width: 100%; height: 100%; object-fit: cover; }
.ad__img em { position: absolute; top: 12px; left: 12px; font-style: normal; background: var(--red); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 8px; }
.ad__body { padding: 16px; display: grid; gap: 4px; flex: 1; }
.ad__body h3 { font-size: 1rem; font-weight: 600; }
.ad__body .row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.ad__body s { color: var(--muted); font-size: .85rem; margin-left: 6px; }
.ad__add { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--purple); color: #fff; font-size: 1.4rem; }

.offers { padding: 0 0 80px; }
.offers__box { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--purple-dark), var(--purple)); color: #e8e4fb; border-radius: 28px; padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.offers__box h2 { color: #fff; margin-bottom: 6px; }
.offers__box strong { color: var(--yellow); }
.offers__box img { position: absolute; top: 0; right: 0; width: 45%; height: 100%; object-fit: cover; opacity: .5; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.offers__box > *:not(img) { position: relative; z-index: 1; }

.help { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center; }
.help .muted { margin-top: 10px; }
.measure { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.measure li { background: var(--lilac); border-radius: var(--r); padding: 22px; }
.measure b { width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); display: grid; place-items: center; margin-bottom: 12px; }
.measure h3 { font-size: 1.1rem; margin-bottom: 4px; }
.measure p { color: var(--muted); font-size: .9rem; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rv { margin: 0; background: #fff; border-radius: var(--r); padding: 24px; display: grid; gap: 12px; align-content: start; }
.rv span { color: #f5a623; letter-spacing: 2px; }
.rv footer { color: var(--muted); font-size: .88rem; }
.rv footer strong { color: var(--ink); display: block; }
.creators { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 28px; }
.creators a:not(.more) { background: #fff; border-radius: 999px; padding: 6px 14px; font-size: .88rem; color: var(--purple); font-weight: 500; }

.wa { padding: 56px 0; background: #e9f8ef; }
.wa__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.wa h2 { font-size: 1.5rem; }
.wa p { color: var(--muted); }
.wa form { display: flex; gap: 10px; }
.wa input { height: 50px; border-radius: 14px; border: 2px solid #c3e9d2; padding: 0 16px; width: 260px; outline: none; }

.footer { background: var(--purple-dark); color: #c9c3ea; padding: 56px 0 24px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.footer__logo { display: inline-block; background: #fff; border-radius: 18px; padding: 8px 14px; margin-bottom: 12px; }
.footer__logo img { height: 70px; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer__grid a { display: block; padding: 3px 0; }
.footer__grid a:hover { color: var(--yellow); }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 36px; padding-top: 18px; font-size: .85rem; }
.sample-note { text-align: center; font-size: .75rem; opacity: .6; margin-top: 14px; padding: 0 16px; }

.kitbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); color: #fff; animation: up .3s ease; }
.kitbar[hidden] { display: none; }
@keyframes up { from { transform: translateY(100%); } }
.kitbar__row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.kitbar img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.kitbar p { flex: 1; min-width: 0; }
.kitbar strong { display: block; }
.kitbar span { font-size: .85rem; opacity: .8; }

.toast { position: fixed; top: 92px; left: 50%; transform: translate(-50%, -200%); background: var(--green); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; transition: transform .3s; z-index: 70; }
.toast:empty { visibility: hidden; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .menu-btn { display: grid; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__photos { display: none; }
  .school-kits, .addons { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .help { grid-template-columns: 1fr; gap: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .header__row { height: 66px; gap: 10px; }
  .brand img { height: 50px; }
  .nav { top: 66px; }
  .tool { width: 40px; height: 40px; }
  .tools > .tool:nth-child(1), .tools > .tool:nth-child(3) { display: none; }
  .hero { padding: 28px 0 48px; }
  .ticks { display: none; }
  .wizard { padding: 18px; border-radius: 22px; min-height: 0; }
  .stepper li { flex-direction: column; font-size: .72rem; gap: 4px; }
  .options--schools { grid-template-columns: 1fr; max-height: 300px; }
  .options--chips { grid-template-columns: repeat(3, 1fr); }
  .options--big button { padding: 16px; }
  .wizard__foot .btn { padding: 0 18px; }
  .school-kits, .addons, .reviews, .measure { grid-template-columns: 1fr; }
  .addons { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .offers__box { padding: 30px 22px; }
  .wa form { width: 100%; flex-direction: column; }
  .wa input { width: 100%; }
  .section { padding: 56px 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .kitbar span { display: none; }
  .sk:nth-child(n+5) { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
