/* =============================================================
   Timeless Totes — Design System
   Premium editorial B2B for custom clear-vinyl totes
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Hanken+Grotesk:wght@400;500;600;700;800&family=Spline+Sans+Mono:wght@400;500&display=swap');

:root {
  /* Neutrals — light, airy, warm-white (noissue/Gemnote feel) */
  --bone:      #FBF8F5;   /* page background — light */
  --bone-deep: #EFE7DF;   /* placeholder base */
  --cream:     #F7EFEA;   /* warm alt-section background */
  --white:     #FFFFFF;
  --ink:       #1B2333;   /* deep navy-charcoal text */
  --ink-soft:  #586173;
  --ink-faint: #969BA8;
  --line:      #ECE4DC;
  --line-soft: #F4EDE6;

  /* Brand — navy + soft pink (pink derived from logo #F04080) */
  --navy:      #15233B;
  --navy-700:  #21385B;
  --navy-300:  #8A9AB4;

  --pink:        #EC4E91;   /* brand vivid — logo + key accents */
  --pink-600:    #D23B7D;   /* readable accent on light (links/icons) */
  --pink-700:    #B82E68;   /* hover */
  --pink-tint:   #FBE7F0;   /* soft wash / icon chip bg */
  --pink-faint:  #FDF4F8;   /* faint section wash */
  --blush:       #F2B8D2;   /* fill */

  /* Aliases so existing accent tokens flow to the new pink scale */
  --teal:       var(--pink-600);
  --teal-600:   var(--pink-700);
  --teal-tint:  var(--pink-tint);
  --navy-tint:  #E7ECF3;
  --forest:     var(--navy);
  --forest-tint:var(--pink-tint);
  --red:        var(--pink-600);
  --red-tint:   var(--pink-tint);
  --gold:       #B98A2E;

  /* Roles */
  --bg:        var(--bone);
  --surface:   var(--white);
  --cta:       var(--navy);
  --cta-hover: var(--navy-700);
  --accent:    var(--pink-600);

  /* Type */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --mono:  'Spline Sans Mono', ui-monospace, monospace;

  /* Radius + shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(27,26,22,.05), 0 2px 6px rgba(27,26,22,.04);
  --shadow-md: 0 4px 14px rgba(27,26,22,.07), 0 12px 32px rgba(27,26,22,.06);
  --shadow-lg: 0 18px 50px rgba(22,38,63,.14);

  /* Layout */
  --maxw: 1240px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--teal-tint); }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
p  { margin: 0 0 1em; text-wrap: pretty; }
.serif { font-family: var(--serif); }
.mono  { font-family: var(--mono); }

.eyebrow {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--pink-600);
  margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: none; }
.eyebrow.center { justify-content: center; }
.lede { font-size: 1.18rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(48px, 6vw, 76px) 0; }
.center { text-align: center; }
.grid { display: grid; gap: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 15px 26px; border-radius: 100px; border: 1.5px solid transparent;
  transition: transform .16s ease, background .18s ease, box-shadow .18s ease, border-color .18s;
  white-space: nowrap; text-align: center; line-height: 1;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 6px 18px rgba(22,38,63,.22); }
.btn-primary:hover { background: var(--cta-hover); box-shadow: 0 10px 26px rgba(22,38,63,.28); }
.btn-accent { background: var(--pink); color: #fff; box-shadow: 0 6px 18px rgba(236,78,145,.28); }
.btn-accent:hover { background: var(--pink-700); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); background: var(--white); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--bone); }
.btn-lg { padding: 18px 34px; font-size: 1.08rem; }
.btn-sm { padding: 11px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

.link-arrow { display:inline-flex; align-items:center; gap:7px; font-weight:600; color: var(--teal); border-bottom: 1.5px solid transparent; transition: border-color .18s, gap .18s; padding-bottom:2px; }
.link-arrow:hover { border-color: var(--teal); gap: 11px; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items:center; gap:7px;
  font-size: .8rem; font-weight: 600; padding: 6px 13px; border-radius: 100px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink-soft);
}
.chip.solid-teal  { background: var(--pink-tint); color: var(--pink-700); border-color: transparent; }
.chip.solid-navy  { background: #E7ECF3; color: var(--navy); border-color: transparent; }
.chip.solid-forest{ background: #E7ECF3; color: var(--navy); border-color: transparent; }
.chip.solid-red   { background: var(--pink-tint); color: var(--pink-700); border-color: transparent; }
.chip.solid-pink  { background: var(--pink-tint); color: var(--pink-700); border-color: transparent; }
.chip.solid-blush { background: #FBEAF1; color: var(--pink-700); border-color: transparent; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }

/* ---------- Image placeholder (soft fallback; major slots use <Mock>) ---------- */
.ph {
  position: relative; overflow: hidden; background: var(--bone-deep);
  display: flex; align-items: center; justify-content: center;
}
.ph::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(115% 82% at 50% 6%, rgba(255,255,255,.55), transparent 64%);
}
.ph::after {
  content: attr(data-label);
  position: relative;
  font-size: .8rem; font-weight: 600; letter-spacing: .005em;
  color: var(--ink-soft);
  background: rgba(255,255,255,.82); padding: 6px 13px; border-radius: 100px;
  border: 1px solid var(--line); max-width: 82%; text-align: center;
}
.ph[data-label=""]::after { display: none; }
.ph.tint-teal   { background-color: var(--pink-tint); }
.ph.tint-forest { background-color: #E7ECF3; }
.ph.tint-pink   { background-color: var(--pink-tint); }
.ph.tint-red    { background-color: #F7E2EC; }
.ph.tint-navy   { background-color: #E7ECF3; }
.ph.tint-blush  { background-color: #FBEAF1; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display:block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--ink); }
.field .hint { font-size: .82rem; color: var(--ink-faint); font-weight: 400; }
.req { color: var(--red); }
.input, .select, .textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); transition: border-color .16s, box-shadow .16s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint);
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Header: micro-bar ---------- */
.microbar {
  background: var(--navy);
  color: rgba(255,255,255,.82);
  font-size: .82rem;
  line-height: 1;
}
.microbar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; height: 38px; flex-wrap: wrap;
}
.microbar-inner span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.microbar-inner svg { color: var(--blush); }
.microbar-dot { color: rgba(255,255,255,.34); }

/* ---------- Header: nav links ---------- */
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: 10px;
  font-family: var(--sans); font-size: .96rem; font-weight: 600;
  white-space: nowrap; cursor: pointer;
  border: none; background: transparent; color: var(--ink-soft);
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--navy); background: var(--white); }

/* ---------- Header: products mega menu ---------- */
.nav-mega-wrap::before {
  /* invisible bridge so the panel doesn't close in the gap below the trigger */
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 14px;
}
.mega-panel {
  position: absolute; top: calc(100% + 12px); left: 0;
  width: 660px; max-width: 78vw;
  display: grid; grid-template-columns: 1fr 232px; gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 60;
  animation: megaIn .16s ease;
}
@keyframes megaIn { from { transform: translateY(-6px); } to { transform: none; } }
.mega-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 16px;
}
.mega-card {
  display: flex; align-items: center; gap: 13px;
  padding: 11px; border-radius: var(--r-md);
  cursor: pointer; transition: background .14s;
}
.mega-card:hover { background: var(--bone); }
.mega-thumb {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
}
.mega-thumb > div { width: 100%; height: 100%; }
.mega-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mega-name {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--sans); font-weight: 700; font-size: .98rem; color: var(--navy); line-height: 1.2;
}
.mega-badge {
  font-style: normal; font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--pink-700); background: var(--pink-tint);
  padding: 3px 7px; border-radius: 100px;
}
.mega-use { font-size: .82rem; color: var(--ink-soft); line-height: 1.4; }
.mega-card.mega-all {
  grid-column: 1 / -1;
  justify-content: space-between;
  margin-top: 4px; border-top: 1px solid var(--line-soft); border-radius: 0;
  padding: 16px 11px 6px; color: var(--pink-600);
}
.mega-card.mega-all:hover { background: transparent; color: var(--pink-700); }
.mega-card.mega-all .mega-name { color: inherit; }
.mega-help {
  background: var(--pink-faint);
  border-left: 1px solid var(--line);
  padding: 22px 20px;
  display: flex; flex-direction: column;
}
.mega-help h4 { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--navy); margin: 0 0 8px; }
.mega-help p { font-size: .86rem; color: var(--ink-soft); line-height: 1.55; margin: 0 0 auto; padding-bottom: 16px; }

@media (max-width: 920px) {
  .microbar-extra { display: none !important; }
}

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; }
.kicker-stat { font-family: var(--serif); font-size: clamp(2.2rem,4vw,3.2rem); color: var(--navy); line-height:1; }
/* Entrance is intentionally static: the preview host throttles animation
   timelines, which would otherwise freeze opacity:0 content permanently. */
.fade-up { opacity: 1; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; } }

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
}
