/* ===========================================================
   glow by flow — design tokens & base styles
   Built from the byflow brand guide (60-30-10, 1.6 type scale)
   =========================================================== */

:root {
  /* --- Brand palette --- */
  --ink:       #081A26;
  --slate:     #505B88;
  --periwinkle:#A5ACCA;
  --mist:      #DDE0E4;
  --cream:     #FFF7C2;
  --pink:      #FEC3E3;
  --mint:      #C2EAD2;
  --yellow:    #FFDF01;
  --green:     #45BF76;
  --coral:     #FC5F5F;
  --magenta:   #E5037F;
  --white:     #FFFFFF;

  /* --- Roles (60-30-10) --- */
  --bg:        #FFFFFF;   /* 60 % */
  --bg-soft:   #F6F7F9;
  --bg-mist:   #EEF0F4;
  --fg:        #081A26;   /* 30 % ink */
  --fg-soft:   #5A6672;
  --line:      #E3E6EA;

  /* --- The glow gradient (10 % accent / signature device) --- */
  --glow: linear-gradient(95deg,
      #E5037F 0%,
      #8E5C9E 14%,
      #505B88 26%,
      #A5ACCA 38%,
      #45BF76 52%,
      #C2EAD2 64%,
      #FFDF01 78%,
      #FFF7C2 88%,
      #FC5F5F 100%);
  --glow-soft: linear-gradient(95deg,
      #FCE3F0 0%, #E7E9F2 30%, #DDF0E5 55%, #FFF9D6 78%, #FFE4E4 100%);

  /* --- Type --- */
  --f-logo: "Montserrat Alternates", sans-serif;
  --f-head: "Poppins", sans-serif;
  --f-body: "Montserrat", sans-serif;
  --f-accent: "Caveat", cursive;

  /* 1.6 golden-ratio modular scale (base 17px) */
  --t-body: 17px;
  --t-sub:  27px;
  --t-head: 43px;
  --t-hero: 67px;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(8,26,38,.06);
  --shadow:    0 14px 40px -18px rgba(8,26,38,.28);
  --shadow-lg: 0 30px 70px -30px rgba(8,26,38,.40);
  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--yellow); color: var(--ink); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

/* ---------- type helpers ---------- */
.h-hero { font-family: var(--f-head); font-weight: 700; font-size: clamp(40px, 6.2vw, 84px); line-height: .98; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.h1 { font-family: var(--f-head); font-weight: 700; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.h2 { font-family: var(--f-head); font-weight: 700; font-size: clamp(26px, 3vw, 40px); line-height: 1.06; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.h3 { font-family: var(--f-head); font-weight: 600; font-size: var(--t-sub); line-height: 1.15; margin: 0; }
.eyebrow { font-family: var(--f-body); font-weight: 700; font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--fg-soft); margin: 0; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--fg-soft); margin: 0; }
.accent { font-family: var(--f-accent); font-weight: 500; font-size: var(--t-sub); color: var(--slate); line-height: 1; }
.muted { color: var(--fg-soft); }

/* gradient text */
.glow-text {
  background: var(--glow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 180% 100%;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.btn--glow { color: #fff; background: var(--ink); position: relative; overflow: hidden; }
.btn--glow::before { content:""; position:absolute; inset:0; background: var(--glow); background-size: 200% 100%; opacity:0; transition: opacity .3s; }
.btn--glow span { position: relative; z-index: 1; }
.btn--glow:hover::before { opacity: 1; }
.btn--glow:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.btn--lg { padding: 17px 32px; font-size: 16px; }
.btn--block { width: 100%; justify-content: center; }

/* gradient ring / pill */
.glow-ring { background: var(--glow); padding: 2px; border-radius: 999px; display:inline-flex; }
.glow-ring > * { background: var(--bg); border-radius: 999px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 13px; padding: 7px 15px; border-radius: 999px;
  background: var(--bg-mist); color: var(--fg);
}
.pill .dot { width: 9px; height: 9px; border-radius: 50%; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hdr__bar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr__nav { display: flex; align-items: center; gap: 30px; }
.hdr__link { font-weight: 600; font-size: 15px; color: var(--fg); position: relative; padding: 4px 0; transition: color .2s; }
.hdr__link:hover { color: var(--magenta); }
.hdr__link.is-active { color: var(--ink); }
.hdr__link.is-active::after { content:""; position:absolute; left:0; right:0; bottom:-2px; height:3px; border-radius:3px; background: var(--glow); }
.hdr__actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background .2s, transform .2s; position: relative; }
.icon-btn:hover { background: var(--bg-mist); transform: translateY(-1px); }
.cart-count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--magenta); color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 11px; display: grid; place-items: center; }

/* gradient top hairline on header */
.hdr__rainbow { height: 4px; background: var(--glow); }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: #fff; padding: 72px 0 36px; }
.ftr a { color: rgba(255,255,255,.72); transition: color .2s; }
.ftr a:hover { color: #fff; }
.ftr__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.ftr__col h4 { font-family: var(--f-head); font-weight: 600; font-size: 14px; letter-spacing: .04em; margin: 0 0 16px; color: #fff; }
.ftr__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 14.5px; }
.ftr__bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- cards / products ---------- */
.card { background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }

.product {
  display: flex; flex-direction: column;
  background: var(--bg); border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product__media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.product__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.product__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product__name { font-family: var(--f-head); font-weight: 600; font-size: 18px; }
.product__price { font-family: var(--f-head); font-weight: 700; font-size: 18px; white-space: nowrap; }
.product__type { font-size: 13.5px; color: var(--fg-soft); }
.product__tag { position: absolute; top: 14px; left: 14px; z-index: 2; }
.product__add {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; opacity: 0; transform: translateY(8px) scale(.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s;
}
.product:hover .product__add { opacity: 1; transform: translateY(0) scale(1); }
.product__add:hover { background: var(--magenta); }
.product__add.is-added { background: var(--green); opacity: 1; transform: translateY(0) scale(1); }

/* product "print" placeholder — message typeset on a tinted swatch */
.merch {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(8,26,38,.025) 0 10px, transparent 10px 20px),
    var(--merch-bg, var(--bg-soft));
  padding: 22px;
  text-align: center;
}
.merch__label {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-body); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(8,26,38,.42); white-space: nowrap;
}
.merch__msg {
  font-family: var(--f-head); font-weight: 700; line-height: .98; letter-spacing: -.01em;
  font-size: clamp(20px, 3vw, 30px); text-wrap: balance;
}
.merch__msg .key { text-transform: uppercase; }

/* surface variants for mugs / poster framing */
.merch--poster { box-shadow: inset 0 0 0 12px #fff, inset 0 0 0 13px rgba(8,26,38,.08); }
.merch--cup    { border-radius: 0; }
.merch--cup::after { content:""; position:absolute; right:-2px; top:30%; width:34px; height:38%; border:6px solid rgba(8,26,38,.18); border-left:none; border-radius:0 40px 40px 0; }
.merch--sweat  { }

/* ---------- carousel ---------- */
.carousel { position: relative; }
.carousel__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 24px; -ms-overflow-style: none; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { scroll-snap-align: start; flex: 0 0 clamp(240px, 26vw, 320px); }
.carousel__nav { display: flex; gap: 10px; }
.cbtn { width: 50px; height: 50px; border-radius: 50%; background: var(--bg); box-shadow: var(--shadow-sm); color: var(--ink); display: grid; place-items: center; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.cbtn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cbtn:disabled { opacity: .35; cursor: default; transform: none; box-shadow: var(--shadow-sm); }

/* ---------- message hero ---------- */
.mhero { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.mhero__bg { position: absolute; inset: 0; opacity: .16; }

/* ---------- agreements ---------- */
.agreement { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); transition: padding-left .35s var(--ease); }
.agreement:hover { padding-left: 14px; }
.agreement__num { font-family: var(--f-head); font-weight: 700; font-size: 40px; line-height: 1; width: 64px; }
.agreement__chip { font-family: var(--f-accent); font-size: 24px; }

/* ---------- cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(8,26,38,.42); backdrop-filter: blur(3px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--bg); z-index: 95; transform: translateX(100%); transition: transform .42s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.is-open { transform: translateX(0); }
.drawer__head { padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 26px; }
.drawer__foot { padding: 22px 26px; border-top: 1px solid var(--line); }
.citem { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.citem__thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; position: relative; }
.qty { display: inline-flex; align-items: center; gap: 12px; }
.qty button { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-mist); display: grid; place-items: center; font-weight: 700; transition: background .2s; }
.qty button:hover { background: var(--mist); }

/* ---------- misc fx ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

.marquee { overflow: hidden; white-space: nowrap; }
.marquee__inner { display: inline-flex; gap: 40px; align-items: center; animation: scroll-x 26s linear infinite; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.marquee__inner .star { color: var(--magenta); }

@keyframes glow-pan { to { background-position: 200% 0; } }
.glow-anim { animation: glow-pan 8s linear infinite; }

/* swatch chooser (shop filter) */
.msgtabs { display: flex; flex-wrap: wrap; gap: 10px; }
.msgtab { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; font-family: var(--f-head); font-weight: 600; font-size: 14.5px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); transition: all .25s var(--ease); white-space: nowrap; }
.msgtab .dot { width: 12px; height: 12px; border-radius: 50%; }
.msgtab:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-1px); }
.msgtab.is-active { background: var(--ink); color: #fff; box-shadow: none; }

.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

/* ---------- reusable layout grids (replace React inline styles) ---------- */
.glow-page { animation: pageIn .5s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.home-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.story-band { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.essay { display: grid; grid-template-columns: auto 1fr; gap: 40px; }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.msg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--fg-soft); }
.crumbs a { cursor: pointer; }
.crumbs .here { color: var(--ink); font-weight: 600; }

/* ---------- mobile nav toggle ---------- */
.hdr__toggle { display: none; }

@media (max-width: 1080px) {
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .home-hero, .story-band, .pdp, .essay { grid-template-columns: 1fr; }
  .essay { gap: 16px; }
  .msg-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hdr__nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; box-shadow: var(--shadow);
    display: none;
  }
  .hdr__nav.is-open { display: flex; }
  .hdr__link { padding: 10px 0; font-size: 17px; width: 100%; }
  .hdr__toggle { display: grid; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .grid-products { grid-template-columns: 1fr 1fr; gap: 16px; }
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .agreement { grid-template-columns: auto 1fr; }
  .agreement__chip { display: none; }
}
