/* =====================================================================
   JUNE — Website stylesheet
   Built on the June design tokens. Plain-CSS recreation of the UI-kit
   components (button, sticker, chip, marquee, nav, footer, cart) so the
   marketing site is fast, multi-page, and directly editable.
   ===================================================================== */
@import url('../colors_and_type.css');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: var(--june-sun); color: var(--june-ink); }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-tight { max-width: 920px; margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }
.band { background: var(--june-cream-deep); }
.band-paper { background: var(--june-paper); }
.band-ink { background: var(--june-ink); color: var(--june-cream); }
.band-coral { background: var(--june-coral); color: #fff; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--space-5); }

.eyebrow.on-dark { color: rgba(255,244,226,.6); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(2rem, 1rem + 4vw, 3.25rem); }
.section-head p { margin: 18px auto 0; color: var(--text-muted); font-size: var(--fs-body-lg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1;
  border: 0; border-radius: var(--r-pill); padding: 14px 26px; cursor: pointer;
  white-space: nowrap; text-decoration: none; color: inherit;
  transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .16s, background .16s, filter .16s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.03); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--lg { font-size: 18px; padding: 17px 32px; }
.btn--sm { font-size: 14px; padding: 10px 19px; }
.btn--primary { background: var(--june-ink); color: var(--june-cream); }
.btn--accent  { background: var(--june-coral); color: #fff; }
.btn--leaf    { background: var(--june-leaf); color: #fff; }
.btn--sun     { background: var(--june-sun); color: var(--june-ink); box-shadow: var(--shadow-pop); }
.btn--sun:hover { transform: translateY(-2px); }
.btn--sun:active { transform: translateY(4px); box-shadow: 0 0 0 0 var(--june-ink); }
.btn--ghost   { background: transparent; color: var(--june-ink); border: 2px solid var(--june-ink); }
.btn--ghost.on-dark { color: #fff; border-color: #fff; }
.btn--block { width: 100%; }

/* ---------- sticker badge ---------- */
.sticker {
  display: inline-flex; align-items: center; gap: 8px; background: var(--june-paper);
  border: 2px solid var(--june-ink); border-radius: var(--r-pill); padding: 8px 15px;
  box-shadow: var(--shadow-pop); font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--june-ink);
}
.sticker i { font-size: 16px; }
.sticker-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; border-radius: var(--r-pill);
  padding: 6px 13px; font-size: 13px; font-weight: 700;
  background: var(--june-coral-soft); color: var(--june-coral-deep);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--june-coral); }
.chip--restore { background: var(--june-leaf-soft); color: var(--june-leaf-deep); }
.chip--restore::before { background: var(--june-leaf); }
.chip--sun { background: var(--june-sun-soft); color: var(--june-sun-deep); }
.chip--sun::before { background: var(--june-sun); }
.chip--bare::before { display: none; }

/* ---------- stars ---------- */
.stars { color: var(--june-sun-deep); letter-spacing: 1px; font-size: 15px; }
.stars .empty { color: var(--june-line-strong); }

/* ---------- mark / highlight ---------- */
.mark { background: linear-gradient(180deg, transparent 58%, var(--june-sun) 58%); padding: 0 .06em; }
.coral { color: var(--june-coral); }
.leaf { color: var(--june-leaf); }
.berry { color: var(--june-berry); }

/* ---------- card ---------- */
.card {
  background: var(--june-paper); border-radius: var(--r-xl); box-shadow: var(--shadow-md);
  overflow: hidden;
}
.card-soft { background: var(--june-paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--june-line); }

/* ---------- image placeholder (prints its own prompt) ---------- */
.imgph {
  position: relative; width: 100%; border-radius: var(--r-xl); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--june-cream-deep) 0 14px, var(--june-sun-soft) 14px 28px);
  border: 2px dashed var(--june-line-strong);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--june-ink); padding: 18px;
}
.imgph::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,253,248,.55), transparent 70%);
  pointer-events: none;
}
.imgph__tag {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--june-ink); color: var(--june-cream); padding: 5px 11px; border-radius: 999px; font-weight: 500;
}
.imgph__id {
  position: absolute; top: 14px; right: 14px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; background: var(--june-paper); border: 1px solid var(--june-line-strong);
  color: var(--june-ink-2); padding: 5px 10px; border-radius: 999px;
}
.imgph__prompt {
  position: relative; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5;
  color: var(--june-ink); margin: 0; max-width: 52ch;
  background: rgba(255,253,248,.82); padding: 12px 14px; border-radius: var(--r-md);
  backdrop-filter: blur(2px);
}
.imgph__prompt b { color: var(--june-coral-deep); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 15px 0; display: flex; }
.marquee--sun { background: var(--june-sun); color: var(--june-ink); }
.marquee--ink { background: var(--june-ink); color: var(--june-cream); }
.marquee--cream { background: var(--june-cream-deep); color: var(--june-ink); }
.marquee__track { display: flex; flex: none; animation: j-scroll 26s linear infinite; }
.marquee__run {
  display: inline-flex; align-items: center; gap: 36px; padding-left: 36px;
  font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; white-space: nowrap;
}
.marquee__run .sep { font-size: 13px; }
@keyframes j-scroll { to { transform: translateX(-50%); } }

/* ---------- nav (injected by june.js) ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; background: rgba(255,244,226,.86);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--june-line);
}
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 13px 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.045em; color: var(--june-ink); line-height: 1; user-select: none; white-space: nowrap; }
.logo .dot { color: var(--june-coral); }
.nav__links { display: flex; gap: 26px; font-weight: 600; font-size: 15.5px; align-items: center; }
.nav__links a { position: relative; padding: 4px 0; transition: color .15s; }
.nav__links a:hover { color: var(--june-coral-deep); }
.nav__links a.active { color: var(--june-coral-deep); }
.nav__links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--june-coral); border-radius: 2px; }
.nav__right { display: flex; align-items: center; gap: 12px; }
.cart-btn {
  position: relative; border: 2px solid var(--june-ink); background: var(--june-sun); border-radius: 999px;
  width: 46px; height: 46px; cursor: pointer; display: grid; place-items: center; flex: none;
  transition: transform .15s cubic-bezier(.34,1.56,.64,1);
}
.cart-btn:hover { transform: translateY(-2px); }
.cart-btn i { font-size: 20px; color: var(--june-ink); }
.cart-count {
  position: absolute; top: -6px; right: -6px; background: var(--june-coral); color: #fff; border-radius: 999px;
  min-width: 22px; height: 22px; font-size: 12px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--june-cream); padding: 0 5px;
}
.cart-count[hidden] { display: none; }
.nav__burger { display: none; border: 2px solid var(--june-ink); background: var(--june-paper); border-radius: 999px; width: 46px; height: 46px; cursor: pointer; place-items: center; }
.nav__burger i { font-size: 22px; }

/* mobile menu sheet */
.mobile-menu { position: fixed; inset: 0; z-index: 70; background: var(--june-cream); transform: translateX(100%); transition: transform .3s cubic-bezier(.34,1.2,.64,1); display: flex; flex-direction: column; padding: 22px 28px; overflow-y: auto; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.mobile-menu a { font-family: var(--font-display); font-weight: 700; font-size: 30px; padding: 12px 0; border-bottom: 1px solid var(--june-line); }
.mobile-menu a:last-of-type { border-bottom: 0; }
.icon-btn { border: 0; background: var(--june-paper); border-radius: 999px; width: 44px; height: 44px; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.icon-btn i { font-size: 20px; }

/* ---------- footer (injected by june.js) ---------- */
.footer { background: var(--june-ink); color: var(--june-cream); padding: 72px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,244,226,.55); margin-bottom: 16px; font-weight: 500; }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col a { color: var(--june-cream); opacity: .82; font-size: 15px; transition: opacity .15s, color .15s; }
.footer__col a:hover { opacity: 1; color: var(--june-sun); }
.footer__lede { opacity: .8; margin: 16px 0 18px; max-width: 280px; font-size: 15px; }
.footer__social { display: flex; gap: 12px; }
.footer__social span { width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,244,226,.3); display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.footer__social span:hover { background: rgba(255,244,226,.12); }
.footer__social i { font-size: 18px; }
.footer__bar { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,244,226,.18); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: rgba(255,244,226,.6); }

/* ---------- cart drawer (injected by june.js) ---------- */
.cart-scrim { position: fixed; inset: 0; background: rgba(43,32,23,.4); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
.cart-scrim.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw; background: var(--june-cream); box-shadow: var(--shadow-lg); z-index: 91; transform: translateX(100%); transition: transform .3s cubic-bezier(.34,1.2,.64,1); display: flex; flex-direction: column; }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__head { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--june-line); }
.cart-drawer__head h3 { font-size: 22px; }
.cart-meter { padding: 16px 24px; background: var(--june-cream-deep); }
.cart-meter__label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.cart-meter__track { height: 8px; border-radius: 999px; background: var(--june-paper); overflow: hidden; }
.cart-meter__fill { height: 100%; background: var(--june-sun); border-radius: 999px; transition: width .35s cubic-bezier(.34,1.4,.64,1); }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-empty { text-align: center; padding: 60px 0; color: var(--june-ink-2); }
.cart-empty i { font-size: 46px; color: var(--june-line-strong); }
.cart-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--june-line); }
.cart-item__img { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex: none; box-shadow: var(--shadow-sm); }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-weight: 700; font-size: 15px; }
.cart-item__plan { font-size: 12px; color: var(--june-ink-2); font-family: var(--font-mono); letter-spacing: .04em; margin-bottom: 8px; }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--june-line-strong); border-radius: 999px; }
.qty button { border: 0; background: none; width: 30px; height: 30px; cursor: pointer; font-size: 16px; font-weight: 700; color: var(--june-ink); }
.qty span { width: 26px; text-align: center; font-weight: 700; font-size: 14px; }
.cart-foot { padding: 20px 24px 24px; border-top: 1px solid var(--june-line); background: var(--june-paper); }
.cart-foot__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--june-ink-2); margin-bottom: 6px; }
.cart-foot__fine { text-align: center; margin-top: 12px; font-size: 12px; color: var(--june-ink-3); font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------- generic grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ---------- pill list / data ---------- */
.kv { display: flex; align-items: baseline; gap: 12px; }
.kv__k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--june-ink-3); white-space: nowrap; }

/* ---------- accordion ---------- */
.acc { border-top: 1px solid var(--june-line); }
.acc-item { border-bottom: 1px solid var(--june-line); }
.acc-q { width: 100%; background: none; border: 0; padding: 20px 2px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--june-ink); }
.acc-q i { font-size: 18px; color: var(--june-ink-2); transition: transform .2s; flex: none; }
.acc-item.open .acc-q i { transform: rotate(45deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .28s ease, padding .28s ease; }
.acc-item.open .acc-a { padding: 0 2px 22px; }
.acc-a p { margin: 0; color: var(--june-ink-2); font-size: 15.5px; max-width: 64ch; }

/* ---------- pill tag inline ---------- */
.tag-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: var(--june-ink); color: var(--june-cream); padding: 5px 11px; border-radius: 999px; }

/* ---------- numbered step ---------- */
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--june-line-strong); line-height: 1; }
.icon-disc { width: 54px; height: 54px; border-radius: 999px; background: var(--june-sun); display: grid; place-items: center; flex: none; }
.icon-disc i { font-size: 26px; color: var(--june-ink); }
.icon-disc--coral { background: var(--june-coral); }
.icon-disc--coral i { color: #fff; }
.icon-disc--leaf { background: var(--june-leaf); }
.icon-disc--leaf i { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__right .btn { display: none; }
  .nav__burger { display: grid; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hide-mobile { display: none !important; }
}
@media (max-width: 600px) {
  .wrap, .wrap-tight { padding: 0 20px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}
