/* kids like us · link page + preorder
   Follows KID - HQ "08 — Brand Zone" and the live website build (KID-website-full/index-v22):
   forest green + teal-charcoal, gold #ffd883 for the KIDS wordmark and highlight boxes, sage + white for text.
   Gliker for KIDS only, Poppins for everything else. Square corners, hairlines, grounded photos. Never cartoony. */

@font-face {
  font-family: 'Gliker';
  src: url('/fonts/gliker-black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

:root {
  --forest: #062015;      /* deepest anchor, square logo background */
  --primary: #283d3b;     /* teal-charcoal, the website's base */
  --primary-deep: #1c2b29;
  --sage: #c5d1c9;
  --sky: #bde3ef;         /* pale accent, sparingly */
  --gold: #ffd883;
  --white: #ffffff;
  --hair: rgba(197, 209, 201, .22);
  --f: 'Poppins', system-ui, sans-serif;
  --kids: 'Gliker', 'Poppins', sans-serif;
  --gut: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--forest); color: var(--white);
  font: 300 16px/1.6 var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--gold); color: var(--forest); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- shared pieces ---------- */
.cap { font-weight: 500; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow { color: var(--gold); margin-bottom: 1rem; }
/* the house move: ALL CAPS, bold, dark green on gold. Everything outside it stays lowercase. */
.hl {
  display: inline-block; background: var(--gold); color: var(--forest);
  font-weight: 900; text-transform: uppercase; letter-spacing: .02em; padding: .05em .3em; line-height: 1.15;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.5rem; border: 1px solid var(--hair);
  font-weight: 600; font-size: .9rem; letter-spacing: .02em; transition: background .3s, border-color .3s, color .3s;
}
.btn:hover { border-color: var(--white); }
.btn.primary { background: var(--gold); color: var(--forest); border-color: var(--gold); font-weight: 700; }
.btn.primary:hover { background: var(--white); border-color: var(--white); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }

.grain {
  position: absolute; inset: -50%; pointer-events: none; z-index: 5; opacity: .08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- top bar ---------- */
.bar {
  position: relative; z-index: 10; display: flex; align-items: center; justify-content: center; gap: .7rem;
  padding: .65rem var(--gut); background: var(--primary); border-bottom: 1px solid var(--hair); font-size: .82rem; font-weight: 500;
}
.bar .hl { font-size: .7rem; letter-spacing: .14em; }
.bar__t { color: var(--white); }
.bar__go { color: var(--gold); font-weight: 700; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: calc(100svh - 42px); display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% center;
  filter: saturate(.55) contrast(1.06) brightness(.9);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1.16) translate(-2%, -1%); } }
.hero__shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 40%, transparent 30%, rgba(6, 32, 21, .55) 100%),
    linear-gradient(to top, var(--forest) 4%, rgba(6, 32, 21, .82) 38%, rgba(6, 32, 21, .35) 70%, rgba(6, 32, 21, .55) 100%);
}

.clouds { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cloud { position: absolute; height: auto; width: 60vw; max-width: 560px; opacity: .55; filter: brightness(1.05); will-change: transform, translate; }
.cloud.c1 { top: 4%;  left: -20%; width: 70vw; opacity: .22; animation: float 70s linear infinite; }
.cloud.c2 { top: 22%; left: 40%;  opacity: .35; animation: float 52s linear infinite -20s; }
.cloud.c3 { top: 46%; left: -10%; width: 80vw; opacity: .28; animation: float 44s linear infinite -8s; }
.cloud.c4 { bottom: -6%; left: 10%; width: 110vw; max-width: 900px; opacity: .5; animation: float 36s linear infinite -14s; }
@keyframes float { from { transform: translateX(-25vw); } to { transform: translateX(45vw); } }

.hero__in { position: relative; z-index: 6; width: 100%; max-width: 560px; margin: 0 auto; padding: 0 var(--gut) clamp(4.5rem, 12vh, 6.5rem); }
.kicker { display: flex; align-items: center; gap: .7rem; color: var(--sage); margin-bottom: 1.4rem; }
.kicker .dot { width: 6px; height: 6px; background: var(--gold); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.logo { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.logo__kids {
  font-family: var(--kids); font-weight: 900; color: var(--gold);
  font-size: clamp(6.2rem, 33vw, 11rem); line-height: .82; letter-spacing: -.01em;
  animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
.logo__like {
  font-family: var(--f); font-weight: 400; font-size: clamp(1.9rem, 10vw, 3.4rem); line-height: 1; margin-top: .35rem;
  animation: rise 1.1s .15s cubic-bezier(.2, .8, .2, 1) both;
}
.tagline {
  margin-top: 1.4rem; font-weight: 900; font-style: italic; font-size: clamp(1.25rem, 5.6vw, 1.7rem); line-height: 1.2;
  animation: rise 1.1s .3s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
.hero__ctas { display: grid; grid-template-columns: 1.4fr 1fr; gap: .7rem; margin-top: 1.8rem; animation: rise 1.1s .45s cubic-bezier(.2, .8, .2, 1) both; }

.cue { position: absolute; z-index: 6; left: 50%; bottom: 1.2rem; width: 1px; height: 42px; background: var(--hair); overflow: hidden; }
.cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- main column ---------- */
main { position: relative; max-width: 560px; margin: 0 auto; padding: 2.5rem var(--gut) 8rem; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* drop */
.drop { border: 1px solid var(--hair); background: var(--primary); }
.drop__rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #f2f0ea; }
.drop__rail::-webkit-scrollbar { display: none; }
.drop__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1 / 1; }
.drop__slide img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 6%; }
.drop__slide--worn img { object-fit: cover; mix-blend-mode: normal; padding: 0; filter: saturate(.75) contrast(1.04); }

.drop__slide figcaption {
  position: absolute; left: .9rem; bottom: .9rem; background: rgba(28, 43, 41, .82); color: var(--sage);
  border: 1px solid var(--hair); padding: .35rem .6rem; font-size: .58rem;
}
.drop__dots { display: flex; gap: 2px; justify-content: center; padding: .4rem 0 0; }
.drop__dots button { width: 34px; height: 24px; position: relative; }
.drop__dots button::after { content: ''; position: absolute; left: 8px; right: 8px; top: 11px; height: 2px; background: var(--hair); transition: background .3s; }
.drop__dots button.on::after { background: var(--gold); }
.drop__body { padding: 1.4rem 1.3rem 1.5rem; }
.h2 { font-weight: 900; font-size: clamp(1.9rem, 8.4vw, 2.6rem); line-height: 1.02; letter-spacing: -.02em; }
.h2 .hl { padding: 0 .18em; margin: .08em 0; }
.body { color: var(--sage); margin: 1rem 0 1.4rem; font-size: .95rem; line-height: 1.7; }
.fine { color: var(--sage); opacity: .8; margin-top: .9rem; font-size: .78rem; text-align: center; }

/* definition */
.define { padding: 5.5rem 0 4.5rem; }
.define__t { font-weight: 900; font-size: clamp(1.9rem, 8.6vw, 2.7rem); line-height: 1.08; letter-spacing: -.02em; }
.define__t span { color: rgba(255, 255, 255, .16); transition: color .5s; }
.define__t span.lit { color: var(--white); }

/* join the list */
.join { margin-top: 1rem; padding: 1.6rem 1.3rem 1.5rem; border: 1px solid var(--hair); background: var(--primary); }
.join .body { margin-bottom: 1.2rem; }
.join .form { gap: .9rem; }
.join .fine { margin-top: 0; }
.join__done .h2 { margin-bottom: .2rem; }
.join__done .body { margin: .6rem 0 0; }

/* chapters */
.chap { padding-top: 3.5rem; }
.chap__head { display: flex; align-items: baseline; gap: .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--hair); }
.chap__head .cap { color: var(--gold); }
.chap__t { font-weight: 900; font-size: clamp(1.7rem, 7.5vw, 2.3rem); line-height: 1; letter-spacing: -.02em; }
.chap__sub { color: var(--sage); font-size: .9rem; margin-top: .9rem; }
.rows { display: grid; }
.row {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: 't go' 's go';
  align-items: center; column-gap: 1rem; padding: 1.15rem .2rem; border-bottom: 1px solid var(--hair);
  transition: background .3s, padding-left .3s;
}
.row:hover { background: rgba(40, 61, 59, .6); padding-left: .8rem; }
.row__t { grid-area: t; font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.row__s { grid-area: s; color: var(--sage); font-size: .82rem; }
.row__go { grid-area: go; color: var(--sage); font-size: 1.1rem; transition: transform .3s, color .3s; }
.row:hover .row__go { transform: translate(5px, -4px); color: var(--gold); }

/* feature */
.feature { position: relative; display: block; margin-top: 4rem; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--hair); }
.feature__media { position: absolute; inset: 0; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; filter: saturate(.5) contrast(1.05) brightness(.8); transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.feature:hover .feature__media img { transform: scale(1.05); }
.feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--forest) 0%, rgba(6, 32, 21, .55) 45%, rgba(6, 32, 21, .15) 100%); }
.feature__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 1.5rem 1.3rem; }
.feature__q { font-weight: 900; font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1.08; letter-spacing: -.015em; max-width: 14ch; }
.feature__cta { display: inline-block; margin-top: 1rem; color: var(--gold); }

/* footer */
.foot { margin-top: 5rem; display: grid; justify-items: center; gap: 1rem; color: var(--sage); text-align: center; }
.foot__logo { width: 96px; height: 96px; border: 1px solid var(--hair); }

/* sticky preorder */
.sticky {
  position: fixed; z-index: 20; left: 50%; bottom: calc(12px + var(--safe-b)); width: min(528px, calc(100% - 2 * var(--gut)));
  display: flex; align-items: center; gap: .8rem; padding: .75rem .8rem .75rem .9rem;
  background: rgba(28, 43, 41, .92); border: 1px solid var(--hair);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translate(-50%, 160%); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.sticky.on { transform: translate(-50%, 0); }
.sticky .hl { font-size: .72rem; letter-spacing: .12em; }
.sticky__t { flex: 1; min-width: 0; font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky__go { display: grid; place-items: center; width: 40px; height: 40px; background: var(--gold); color: var(--forest); font-weight: 900; }

/* =========================================================
   preorder
   ========================================================= */
.po { min-height: 100svh; background: radial-gradient(120% 60% at 50% 0%, var(--primary) 0%, var(--forest) 60%); }
.po__top {
  position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  max-width: 560px; margin: 0 auto; padding: .8rem var(--gut) 0; background: linear-gradient(var(--forest) 70%, transparent);
}
.po__back { width: 44px; height: 44px; border: 1px solid var(--hair); font-size: 1.1rem; }
.po__back:hover { border-color: var(--white); }
.po__home { justify-self: center; display: flex; align-items: baseline; gap: .35rem; }
.po__home b { font-family: var(--kids); font-weight: 900; color: var(--gold); font-size: 1.5rem; line-height: 1; }
.po__home span { font-size: .9rem; }
.po__prog { grid-column: 1 / -1; height: 2px; margin-top: .8rem; background: var(--hair); }
.po__prog i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .6s cubic-bezier(.2, .8, .2, 1); }

.po__main { max-width: 560px; padding-top: 1rem; padding-bottom: 4rem; }
.stage { position: relative; aspect-ratio: 5 / 4; margin-bottom: 1.6rem; border: 1px solid var(--hair); overflow: hidden; background: var(--primary-deep); }
.stage.pop > * { animation: settle .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes settle { from { opacity: 0; transform: scale(1.04); } }
.stage__photo { position: absolute; inset: 0; background: #f2f0ea; }
.stage__photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 4%; }
.stage__flip { position: absolute; right: .8rem; bottom: .8rem; z-index: 2; display: flex; border: 1px solid var(--hair); background: rgba(28, 43, 41, .85); }
.stage__flip button { padding: .45rem .7rem; font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.stage__flip button[aria-pressed="true"] { background: var(--gold); color: var(--forest); }
/* no product shot yet: a fabric swatch in the picked color with the chest print on it */
.stage__swatch {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .3rem;
  background: radial-gradient(90% 80% at 35% 25%, rgba(255, 255, 255, .18), transparent 60%), var(--c, var(--primary));
}
.stage__swatch b { font-family: var(--kids); font-weight: 900; font-size: clamp(3rem, 14vw, 4.6rem); line-height: .9; color: var(--ink, var(--white)); }
.stage__swatch span { font-size: clamp(.9rem, 4vw, 1.2rem); color: var(--ink, var(--white)); }
.stage__swatch::after {
  content: ''; position: absolute; inset: 0; opacity: .14; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.stage__tag { position: absolute; left: .8rem; bottom: .8rem; z-index: 2; background: rgba(28, 43, 41, .85); border: 1px solid var(--hair); color: var(--sage); padding: .35rem .6rem; font-size: .58rem; }

.step { animation: step-in .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes step-in { from { opacity: 0; transform: translateY(14px); } }
.q { margin: .2rem 0 1.4rem; font-weight: 900; font-size: clamp(1.9rem, 8.4vw, 2.5rem); line-height: 1.04; letter-spacing: -.02em; }
.q--done { font-size: clamp(2.2rem, 10vw, 3rem); }
.note { margin-top: 1rem; font-size: .82rem; color: var(--sage); }

.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.opt { display: grid; align-content: end; gap: .15rem; min-height: 112px; padding: 1rem; text-align: left; background: var(--forest); transition: background .3s; }
.opt:hover { background: var(--primary-deep); }
.opt[aria-checked="true"] { background: var(--gold); color: var(--forest); }
.opt[aria-checked="true"] .opt__s { color: var(--primary); }
.opt__n { font-size: .6rem; font-weight: 500; letter-spacing: .18em; color: var(--gold); }
.opt[aria-checked="true"] .opt__n { color: var(--forest); }
.opt__t { font-weight: 800; font-size: 1.1rem; line-height: 1.15; }
.opt__s { font-size: .78rem; color: var(--sage); line-height: 1.3; }
.opts .opt:last-child:nth-child(odd) { grid-column: 1 / -1; }

.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; }
.sw { aspect-ratio: 1 / 1; background: var(--c); border: 1px solid var(--hair); position: relative; transition: transform .25s; }
.sw:hover { transform: translateY(-2px); }
.sw[aria-checked="true"] { outline: 2px solid var(--gold); outline-offset: 3px; }
.sw-name { margin-top: 1rem; font-weight: 700; font-size: 1.05rem; min-height: 1.6em; }

.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); margin-bottom: 1.2rem; }
.sizes__l { grid-column: 1 / -1; background: var(--forest); padding: .7rem .2rem .5rem; color: var(--gold); }
.sz { height: 56px; background: var(--forest); font-weight: 700; font-size: 1rem; transition: background .3s; }
.sz:hover { background: var(--primary-deep); }
.sz[aria-checked="true"] { background: var(--gold); color: var(--forest); }

.bag { list-style: none; display: grid; border-top: 1px solid var(--hair); margin-bottom: 1.4rem; }
.bag__i { display: flex; align-items: center; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--hair); }
.bag__chip { flex: none; width: 44px; height: 44px; background: var(--c); border: 1px solid var(--hair); }
.bag__t { flex: 1; font-size: .9rem; line-height: 1.35; }
.bag__t b { display: block; font-weight: 700; font-size: 1rem; }
.bag__t span { color: var(--sage); }
.qty { display: flex; align-items: center; gap: .6rem; }
.qty b { min-width: 1ch; text-align: center; font-weight: 700; }
.qty button { width: 34px; height: 34px; border: 1px solid var(--hair); font-weight: 600; }
.qty button:hover { border-color: var(--white); }
.qty button:disabled { opacity: .3; cursor: default; }
.po__row { display: grid; gap: .7rem; }

.form { display: grid; gap: 1.1rem; }
.fld { display: grid; gap: .45rem; }
.fld .cap { color: var(--sage); }
.fld .cap small { text-transform: none; letter-spacing: 0; opacity: .8; }
.req { font-style: normal; color: var(--gold); margin-left: .4rem; }
.fld input[aria-invalid="true"] { border-color: var(--gold); }
.fld__msg { min-height: 1.3em; font-size: .8rem; color: var(--gold); }
.fld__msg button { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.privacy { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.fld input {
  height: 54px; padding: 0 1rem; font: 500 1rem var(--f); color: var(--white);
  background: rgba(28, 43, 41, .6); border: 1px solid var(--hair); outline: none; transition: border-color .3s;
}
.fld input:focus { border-color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chk { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; font-size: .85rem; color: var(--sage); }
.chk input { position: absolute; opacity: 0; }
.chk__box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border: 1px solid var(--sage); color: transparent; font-size: .8rem; font-weight: 900; }
.chk input:checked + .chk__box { background: var(--gold); border-color: var(--gold); color: var(--forest); }
.chk input:focus-visible + .chk__box { outline: 3px solid var(--gold); outline-offset: 2px; }
.err { padding: .7rem .9rem; border: 1px solid var(--gold); color: var(--gold); font-size: .85rem; font-weight: 500; }

.step--done .bag { margin-top: 1.4rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
