/* Glaze phone hero lab: base page, fixed stand-ins and the options sheet. Preview only. */
@font-face { font-family: 'Glaze Display'; src: url('/fonts/glaze-fraunces.woff2') format('woff2'); font-weight: 350 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Glaze Display'; src: url('/fonts/glaze-fraunces-italic.woff2') format('woff2'); font-weight: 350 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/glaze-dmsans.woff2') format('woff2'); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  --hl-plum: #4A1942;
  --hl-plum-soft: #5b2a4a;
  --hl-gold: #D4A843;
  --hl-gold-deep: #b8902d;
  --hl-gold-light: #E5BE5E;
  --hl-cream: #FDF8F0;
  --hl-porcelain: #fffaf3;
  --hl-linen: #f3e9d8;
  --hl-ink: #3a2a22;
  --hl-ink-soft: #6B5D52;
  --hl-matcha: #4a6b45;
  --hl-cocoa: #6b3a2a;
  --hl-line: rgba(91, 42, 74, 0.12);
  --hl-display: 'Glaze Display', Georgia, 'Times New Roman', serif;
  --hl-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --hl-spring: cubic-bezier(0.22, 0.8, 0.24, 1);
  --hl-spring-out: cubic-bezier(0.34, 1.56, 0.64, 1);
  --hl-top: 0px;
  --hl-gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.hl {
  margin: 0; background: var(--hl-cream); color: var(--hl-ink);
  font: 400 16px/1.5 var(--hl-sans); -webkit-font-smoothing: antialiased;
  padding-top: var(--hl-top); overflow-x: hidden;
}
.hl img { max-width: 100%; }
.hl button { font: inherit; color: inherit; }
.hl a { color: inherit; }
.hl :focus-visible { outline: 2px solid var(--hl-plum); outline-offset: 3px; border-radius: 6px; }

.hl-hero {
  max-width: 520px; margin: 0 auto; padding: 18px var(--hl-gutter) 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hl-slot { width: 100%; }
.hl-slot:empty { display: none; }
.hl-err { font-size: 0.8rem; color: #9a3b3b; }

.hl-wordmark { width: min(46vw, 190px); margin: 6px auto 0; }
.hl-wordmark[hidden] { display: none; }
/* The official wordmark file is light-coloured, so it is used as a mask and filled with plum (same as the live preview). */
.hl-mark { display: block; width: 100%; aspect-ratio: 847 / 449; background-color: var(--hl-plum-soft);
  -webkit-mask: url('/assets/glaze/core/glaze-wordmark-official.png') center / contain no-repeat; mask: url('/assets/glaze/core/glaze-wordmark-official.png') center / contain no-repeat; }

/* BonBon stand-in (current look) */
.hl-bonbon { display: flex; align-items: flex-end; gap: 8px; margin: 14px auto 0; max-width: 20rem; text-align: left; }
.hl-bonbon img { width: 52px; height: 52px; flex: none; }
.hl-bonbon-bubble {
  position: relative; margin: 0; background: var(--hl-porcelain); color: var(--hl-plum);
  border: 1px solid var(--hl-line); border-radius: 22px; padding: 0.55rem 0.95rem;
  box-shadow: 0 10px 22px -14px rgba(91, 42, 74, 0.45); font: 650 0.8rem/1.35 var(--hl-sans);
}
.hl-bonbon-bubble::before {
  content: ''; position: absolute; left: -6px; bottom: 14px; width: 12px; height: 12px; background: var(--hl-porcelain);
  border-left: 1px solid var(--hl-line); border-bottom: 1px solid var(--hl-line); transform: rotate(45deg);
}

/* Thanksgiving entry: reserved space only */
.hl-tg-slot { display: none; width: 300px; max-width: 100%; height: 72px; margin: 14px auto 0; border: 1.5px dashed rgba(91, 42, 74, 0.28); border-radius: 18px; align-items: center; justify-content: center; color: rgba(91, 42, 74, 0.55); font: 600 0.72rem/1 var(--hl-sans); letter-spacing: 0.04em; }
.hl-tg-slot.is-on { display: flex; }

/* Build Your Box stand-in (current look) */
.hl-byb {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; max-width: 28rem; min-height: 60px;
  margin: 16px 0 0; padding: 0.45rem 0.55rem 0.45rem 1.15rem; border-radius: 999px; text-decoration: none; text-align: left;
  background: linear-gradient(180deg, #e0c16e 0%, #c8a15a 48%, #b8902d 100%); color: var(--hl-ink);
  box-shadow: inset 0 1px 0 rgba(255, 248, 230, 0.55), 0 8px 20px -12px rgba(91, 42, 74, 0.45);
  transition: transform 0.18s var(--hl-spring);
}
.hl-byb:active { transform: scale(0.97); }
.hl-byb-copy b { display: block; font: 600 1.06rem/1.1 var(--hl-display); }
.hl-byb-copy small { display: block; margin-top: 0.1rem; font: 650 0.72rem/1 var(--hl-sans); }
.hl-byb-coin { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--hl-plum); color: #fff; display: grid; place-items: center; }

/* What comes next on the page (stand-in so the page scrolls) */
.hl-has-dock .hl-next { padding-bottom: 180px; }
.hl-next { max-width: 520px; margin: 0 auto; padding: 44px var(--hl-gutter) 120px; text-align: center; background: linear-gradient(180deg, var(--hl-linen), var(--hl-cream)); border-radius: 28px 28px 0 0; min-height: 110vh; }
.hl-next-kick { margin: 0; font: 700 0.68rem/1 var(--hl-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--hl-ink-soft); }
.hl-next h2 { margin: 8px 0 6px; font: 400 1.8rem/1.1 var(--hl-display); color: var(--hl-plum); }
.hl-next p { margin: 0 auto; max-width: 30ch; color: var(--hl-ink-soft); font-size: 0.9rem; }
.hl-next-tray { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 300px; margin: 28px auto 0; padding: 16px; border-radius: 26px; background: var(--hl-porcelain); box-shadow: inset 0 2px 6px rgba(91, 42, 74, 0.08), 0 18px 30px -22px rgba(91, 42, 74, 0.5); }
.hl-next-tray i { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #f1e6d4); box-shadow: inset 0 3px 7px rgba(91, 42, 74, 0.14); }

/* ---------- lab controls ---------- */
.hl-fab {
  position: fixed; z-index: 90; right: 0; top: auto; bottom: 132px; width: 26px; min-height: 96px; padding: 12px 0; justify-content: center; writing-mode: vertical-rl;
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255, 255, 255, 0.16); border-right: 0; border-radius: 12px 0 0 12px; cursor: pointer;
  background: rgba(34, 22, 32, 0.88); color: #fff !important; font: 700 0.72rem/1 var(--hl-sans) !important; letter-spacing: 0.06em;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.55);
}
.hl-fab::before { content: ''; position: absolute; inset: -6px 0 -6px -18px; } /* 44px wide touch area */
.hl-fab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hl-gold-light); box-shadow: 0 0 0 3px rgba(229, 190, 94, 0.25); }
.hl-sheet-open .hl-fab { display: none; }
.hl-scrim { position: fixed; inset: 0; z-index: 91; background: rgba(34, 22, 32, 0.12); }
.hl-sheet {
  position: fixed; z-index: 92; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; max-height: 52vh; overflow: auto;
  background: rgba(30, 20, 28, 0.95); color: #f6efe6; border-radius: 22px 22px 0 0; padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -18px 40px -18px rgba(0, 0, 0, 0.6);
  font-family: var(--hl-sans);
}
.hl-sheet[hidden], .hl-scrim[hidden] { display: none; }
.hl-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.hl-sheet-head b { display: block; font-size: 0.92rem; }
.hl-sheet-head small { display: block; font-size: 0.7rem; opacity: 0.7; margin-top: 1px; }
.hl-sheet-x { border: 0; background: var(--hl-gold-light); color: #2a1a26 !important; font-weight: 800 !important; font-size: 0.78rem !important; height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer; }
.hl-row { padding: 10px 0 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.hl-row-label { margin: 0; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 0.8rem; }
.hl-row-label span { color: var(--hl-gold-light); font-weight: 700; text-align: right; }
.hl-row-why { margin: 2px 0 8px; font-size: 0.72rem; line-height: 1.35; opacity: 0.72; min-height: 1.35em; }
.hl-row-nums { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.hl-row-nums button { height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: #fff; font-weight: 800; font-size: 0.9rem; cursor: pointer; transition: transform 0.15s var(--hl-spring), background 0.15s; }
.hl-row-nums button.is-sol { border-style: dashed; }
.hl-row-nums button:active { transform: scale(0.94); }
.hl-row-nums button.is-on { background: var(--hl-gold-light); border-color: var(--hl-gold-light); border-style: solid; color: #2a1a26; }
.hl-row-nums button:disabled { opacity: 0.28; cursor: default; }
.hl-sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; flex-wrap: wrap; }
.hl-copy-picks { height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hl-gold-light); background: none; color: var(--hl-gold-light) !important; font-weight: 800 !important; font-size: 0.8rem !important; cursor: pointer; }
.hl-toggle { font-size: 0.72rem; opacity: 0.8; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.hl-toast { position: fixed; z-index: 95; left: 50%; bottom: calc(50vh); transform: translate(-50%, 10px); max-width: 86vw; padding: 10px 14px; border-radius: 14px; background: #221620; color: #fff; font: 600 0.8rem/1.35 var(--hl-sans); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s var(--hl-spring); text-align: center; }
.hl-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hl *, .hl *::before, .hl *::after { transition-duration: 0.01ms !important; }
}
