/* The Gas Station — dark trippy theme */
@import url('/css/fonts.css');

:root {
  --bg: #07050c;
  --bg2: #0e0a18;
  --panel: rgba(20, 14, 34, 0.72);
  --red: #e03a2f;
  --red-glow: rgba(224, 58, 47, 0.55);
  --cream: #f3e9d2;
  --gold: #e0bd76;
  --gold-soft: rgba(224, 189, 118, 0.34);
  --green: #47d17c;
  --purple: #8b5cf6;
  --cyan: #4dd8e6;
  --text: #e9e2f2;
  --muted: #b6abc8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: clip;
  min-width: 320px;
  min-height: 100vh;
  cursor: auto;
}
/* Scroll/cursor hardening baseline (IMPLEMENTATION_NOTES): the WebGL canvas
   must never block native vertical scrolling or swallow clicks; decorative
   layers must be click-through. */
canvas { display: block; max-width: 100%; touch-action: pan-y; }
button, a, [role="button"] { cursor: pointer; }
.decorative-overlay { pointer-events: none; }
/* System cursor everywhere; only real controls get pointer/text */
a, button, .wchip, label, summary, [role="button"] { cursor: pointer; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea { cursor: text; }
@media (hover: none) { body, a, button { cursor: auto; } }
/* Custom cursor / trail: never on touch/coarse-pointer devices */
@media (hover: none), (pointer: coarse) {
  .custom-cursor, .cursor-trail { display: none !important; }
}

/* ---- Animated cosmic background ---- */
.cosmos {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(224, 58, 47, 0.12), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 90%, rgba(71, 209, 124, 0.10), transparent 60%),
    var(--bg);
  animation: cosmosDrift 24s ease-in-out infinite alternate;
}
@keyframes cosmosDrift {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  50%  { filter: hue-rotate(18deg) brightness(1.08); }
  100% { filter: hue-rotate(-12deg) brightness(0.96); }
}
#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---- 4K hero backdrop (full-res gas-station scene) ----
   NOTE: no `transition` on transform — JS drives it every frame and a
   CSS transition would smear/lag the scroll motion (low-spec bug fixed).
   The transform is composed entirely from CSS custom props so the single
   rAF loop (mouse/scroll translate) and GSAP (warp scale) never fight:
     --bk-x / --bk-y  : mouse + scroll parallax (fx.js)
     --bk-warp        : brief scale pulse on section enter (GSAP warp cut) */
#bk {
  position: fixed; inset: -3%; z-index: 0;
  background: url('/assets/wallpaper-4k.webp') center 52% / cover no-repeat;
  filter: saturate(1.1) contrast(1.05) brightness(.42);
  transform: scale(calc(1.04 * var(--bk-warp, 1))) translate3d(var(--bk-x, 0px), var(--bk-y, 0px), 0);
}
#scene { z-index: 1; }
.content { z-index: 2; position: relative; }

/* Lower sections must be opaque so the fixed 3D canvas never bleeds
   through them (that was the "messy blur" behind STAY CONNECTED). */
section.block {
  background:
    linear-gradient(180deg, var(--bg) 0%, #0a0712 100%);
  position: relative;
  z-index: 2;
}
section.block::before { content: none; }
.stay-connected, #sec-contact, footer, .marquee {
  background: var(--bg);
  position: relative;
  z-index: 2;
}

/* ---- Typography ---- */
.display { font-family: 'Alfa Slab One', serif; letter-spacing: 1px; }
h1.display {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  color: var(--cream);
  text-shadow: 0 0 24px rgba(243, 233, 210, 0.2), 3px 3px 0 rgba(224, 58, 47, 0.8);
}
.accent { color: var(--gold); }
.muted { color: var(--muted); }

/* ---- Panels / cards ---- */
.panel {
  background: var(--panel);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 50px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
}

/* ---- Auth layout ---- */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative;
}
.auth-card {
  width: 100%; max-width: 420px; padding: 40px 36px; text-align: center;
  animation: floatIn .8s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(40px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-card .logo { width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 18px;
  box-shadow: 0 0 40px rgba(139, 92, 246, .45), 0 0 90px rgba(224, 58, 47, .25);
  animation: logoPulse 5s ease-in-out infinite; }
@keyframes logoPulse {
  0%, 100% { transform: scale(1) rotate(-1.5deg); box-shadow: 0 0 40px rgba(139,92,246,.45), 0 0 90px rgba(224,58,47,.25); }
  50%      { transform: scale(1.04) rotate(1.5deg); box-shadow: 0 0 60px rgba(224,58,47,.5), 0 0 110px rgba(71,209,124,.25); }
}
.auth-card h2 { font-family: 'Alfa Slab One', serif; color: var(--cream); font-size: 1.6rem; margin-bottom: 6px; }
.auth-card p.sub { color: var(--muted); font-size: .92rem; margin-bottom: 24px; }

.field { text-align: left; margin-bottom: 16px; }
.field label { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: rgba(7, 5, 12, .7); border: 1px solid rgba(139, 92, 246, .35);
  color: var(--text); font-family: inherit; font-size: 1rem; outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(71, 209, 124, .18); }

.check { display: flex; align-items: center; gap: 10px; margin: 4px 0 20px; text-align: left; font-size: .9rem; color: var(--muted); }
.check input { accent-color: var(--red); width: 17px; height: 17px; }

.btn {
  display: inline-block; width: 100%; padding: 14px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--red), #a3241c);
  color: var(--cream); font-family: 'Alfa Slab One', serif; font-size: 1.05rem; letter-spacing: 1.5px;
  text-transform: uppercase; transition: transform .2s, box-shadow .2s; text-decoration: none;
}
.btn:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 8px 30px var(--red-glow); }
.btn:active { transform: translateY(0) scale(.99); }

.links { margin-top: 18px; font-size: .88rem; }
.links a { color: var(--cyan); text-decoration: none; }
.links a:hover { color: var(--green); text-shadow: 0 0 10px rgba(71,209,124,.6); }

.msg { margin-top: 14px; font-size: .9rem; min-height: 1.2em; }
.msg.err { color: #ff7a70; }
.msg.ok { color: var(--green); }

/* ---- Main site ---- */
nav.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(7, 5, 12, .65); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, .2);
}
nav.top .brand { display: flex; align-items: center; gap: 12px; font-family: 'Alfa Slab One', serif; color: var(--cream); font-size: 1.1rem; }
nav.top .brand img { width: 42px; height: 42px; border-radius: 50%; }
nav.top .right { display: flex; align-items: center; gap: 18px; font-size: .9rem; color: var(--muted); }
nav.top button {
  background: none; border: 1px solid rgba(224,58,47,.6); color: var(--red);
  padding: 8px 16px; border-radius: 10px; font-family: inherit; letter-spacing: 1px;
  transition: all .2s;
}
nav.top button:hover { background: var(--red); color: var(--cream); box-shadow: 0 0 20px var(--red-glow); }

.hero {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 100px 24px 60px; position: relative; overflow: hidden;
}
.hero .hero-bg {
  position: absolute; inset: -5%; z-index: -1;
  background-size: cover; background-position: center;
  opacity: .38; filter: saturate(1.3);
  will-change: transform;
}
.hero .logo-big {
  width: clamp(180px, 26vw, 300px); border-radius: 50%;
  box-shadow: 0 0 60px rgba(139,92,246,.5), 0 0 140px rgba(224,58,47,.3);
  animation: logoPulse 6s ease-in-out infinite;
  margin-bottom: 28px;
  will-change: transform;
}
.hero .tag { color: #eaf6f2; letter-spacing: 5px; text-transform: uppercase; font-size: .85rem; margin-top: 16px; text-shadow: 0 2px 12px rgba(0,0,0,.98), 0 0 4px rgba(0,0,0,.95); }

section.block { max-width: 1050px; margin: 0 auto; padding: 110px 26px; }
section.block h2 { font-family: 'Alfa Slab One', serif; font-size: clamp(1.7rem, 4vw, 2.6rem); color: var(--cream); margin-bottom: 14px; }
section.block h2 span { color: var(--gold); }
section.block p.lead { color: var(--muted); max-width: 640px; font-size: 1.05rem; line-height: 1.7; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 44px; }
.card {
  padding: 28px; border-radius: 16px;
  background: var(--panel); border: 1px solid rgba(139,92,246,.22);
  transition: transform .3s, border-color .3s, box-shadow .3s;
  will-change: transform;
}
.card:hover { transform: translateY(-6px) rotate(-.5deg); border-color: var(--green); box-shadow: 0 14px 40px rgba(71,209,124,.15); }
.card .ico { font-size: 2rem; margin-bottom: 12px; filter: drop-shadow(0 0 8px var(--red-glow)); }
.card h3 { font-family: 'Alfa Slab One', serif; color: var(--cream); font-size: 1.05rem; letter-spacing: 1px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .92rem; line-height: 1.6; }

.marquee { overflow: hidden; border-top: 1px solid rgba(224,58,47,.35); border-bottom: 1px solid rgba(224,58,47,.35); padding: 18px 0; background: rgba(224,58,47,.06); }
.marquee .track { display: flex; gap: 48px; white-space: nowrap; animation: scrollX 22s linear infinite; font-family: 'Alfa Slab One', serif; color: var(--red); letter-spacing: 3px; font-size: 1rem; will-change: transform; }
/* scroll-velocity glow: gets brighter/redder while scrolling fast (set by fx.js) */
.marquee.fast .track { color: #ff5a4d; text-shadow: 0 0 18px rgba(224,58,47,.9), 0 0 38px rgba(224,58,47,.5); }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Floating "fuel" bubbles / price tags (transform parallax) ----
   Decorative, click-through, transform-only. fx.js writes translate3d
   per frame; this only styles the look. Frozen under reduced-motion. */
.fuel-field { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute; top: 0; left: 0; will-change: transform;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .82rem;
  letter-spacing: 1px; padding: 6px 12px; border-radius: 999px;
  color: var(--gold); background: rgba(201,168,106,.08);
  border: 1px solid var(--gold-soft);
  box-shadow: inset 0 0 10px rgba(201,168,106,.18);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
  opacity: .82;
}
.bubble:nth-child(3n) { color: var(--cyan); border-color: rgba(77,216,230,.35); background: rgba(77,216,230,.07); }
.bubble:nth-child(3n+1) { color: var(--green); border-color: rgba(71,209,124,.3); background: rgba(71,209,124,.06); }

/* ---- Section warp cut: fake-blur overlay (opacity only, NO filter:blur) ---- */
.warp-flash {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  opacity: 0; will-change: opacity; mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(139,92,246,.5), transparent 70%),
    radial-gradient(ellipse 80% 70% at 50% 55%, rgba(224,58,47,.32), transparent 75%);
}

footer { text-align: center; padding: 60px 20px; color: #c9bfe0; font-size: .82rem; letter-spacing: 2px; border-top: 1px solid rgba(139,92,246,.15); text-shadow: 0 1px 8px rgba(0,0,0,.9); }

/* ---- Scroll reveal (enhanced: fade + slide-up + subtle scale-in) ---- */
.reveal { opacity: 0; transform: translateY(48px) scale(.98); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .22s; } .reveal.d3 { transition-delay: .34s; }

::selection { background: var(--red); color: var(--cream); }

/* ============================================================
   VISUAL POLISH PASS — premium editorial finish
   (film grain, vignette, gold rules, First Drop stamp,
    restrained scroll parallax, neon flicker, reduced-motion)
   ============================================================ */

/* ---- Cinematic vignette + subtle film grain (fixed, decorative, no pointer) ---- */
.vignette {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 45%, transparent 55%, rgba(4,2,8,.55) 100%);
  mix-blend-mode: multiply;
}
.grain {
  position: fixed; inset: -200%; z-index: 4; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grainShift 8s steps(6) infinite;
  will-change: transform;
}
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-6%, 4%); }
  40%  { transform: translate(4%, -6%); }
  60%  { transform: translate(-4%, -4%); }
  80%  { transform: translate(6%, 6%); }
  100% { transform: translate(0,0); }
}

/* ---- Premium gold rule + First Drop Edition stamp ---- */
.gold-rule {
  width: 92px; height: 2px; margin: 0 auto 22px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .8;
}
.stamp {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: .72rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 999px; padding: 7px 16px;
  background: rgba(201,168,106,.06);
  box-shadow: inset 0 0 12px rgba(201,168,106,.12);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.stamp::before { content: '★'; color: var(--gold); font-size: .85em; }

/* SHOP entry points */
.nav-shop {
  color: var(--cream); text-decoration: none;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: .8rem; letter-spacing: 2px;
  padding: 6px 14px; border: 1px solid var(--red);
  border-radius: 999px; background: rgba(224,58,47,.12);
  transition: background .2s, color .2s;
}
.nav-shop:hover { background: var(--red); color: #fff; }
.nav-shop:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cta-shop:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* ---- Hamburger + slide-out drawer ---- */
.hamburger { display:inline-flex; flex-direction:column; justify-content:center; gap:5px; width:44px; height:44px; padding:0; background:none; border:1px solid rgba(224,58,47,.5); border-radius:10px; cursor:pointer; }
.hamburger span { display:block; width:20px; height:2px; margin:0 auto; background:var(--cream); border-radius:2px; transition:transform .25s ease, opacity .2s ease; }
.hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
/* The drawer (z-index:201) slides over the hamburger when open, hiding the
   morphing X and making it unclickable. Lift the whole top nav above the
   drawer while the menu is open so the X stays visible + clickable to close. */
nav.top.menu-open { z-index: 202; }
.hamburger { position: relative; z-index: 1; }

.drawer-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.55); opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s ease; z-index:200; }
.drawer-backdrop.open { opacity:1; visibility:visible; }
.drawer { position:fixed; top:0; right:0; height:100%; width:min(82vw,320px); background:linear-gradient(180deg,#140c22,#0a0712); border-left:1px solid rgba(139,92,246,.3); transform:translateX(100%); transition:transform .3s ease; z-index:201; display:flex; flex-direction:column; padding:78px 22px 24px; gap:4px; box-shadow:-20px 0 60px rgba(0,0,0,.5); }
.drawer.open { transform:translateX(0); }
.drawer .who { color:var(--muted); font-size:.78rem; letter-spacing:1px; padding:0 12px 12px; }
.drawer a, .drawer button { display:block; width:100%; text-align:left; background:none; border:none; color:var(--cream); font-family:'Space Grotesk',sans-serif; font-weight:700; letter-spacing:1px; font-size:1.05rem; padding:14px 12px; border-radius:10px; text-decoration:none; transition:background .15s; }
.drawer a:hover, .drawer button:hover { background:rgba(224,58,47,.16); }
.drawer .drawer-sep { height:1px; background:rgba(139,92,246,.2); margin:10px 0; }

section.block, header.hero { scroll-margin-top: 72px; }

@media (max-width:640px){
  /* Keep the SHOP nav entry reachable on mobile (the drawer duplicates the
     account stuff, but SHOP is the primary CTA — never hide it). Owner link
     stays visible too so the owner always has one-tap access. */
  nav.top .right #who, nav.top .right #logout { display:none !important; }
  nav.top .right .nav-shop { display: inline-block !important; padding: 6px 12px; font-size: .72rem; letter-spacing: 1.5px; }
}
.cta-shop {
  display: inline-block; margin-top: 22px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: .95rem; letter-spacing: 3px; text-transform: uppercase;
  color: #fff; text-decoration: none;
  background: linear-gradient(180deg, #ff4a3e, var(--red));
  padding: 14px 34px; border-radius: 999px;
  box-shadow: 0 6px 26px rgba(224,58,47,.45), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s, box-shadow .2s;
}
.cta-shop:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(224,58,47,.6), inset 0 1px 0 rgba(255,255,255,.25); }

/* Hero tagline + stamp block */
.hero .brandmark { pointer-events: none; margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero .tagline {
  font-family: 'Alfa Slab One', serif; color: var(--gold);
  font-size: clamp(1rem, 2.4vw, 1.5rem); letter-spacing: 2px;
  text-shadow: 0 2px 18px rgba(0,0,0,.9);
}

/* ---- Clean editorial section labels (replaces fake-terminal '// SECTION') ---- */
section.block .sec-tag {
  display: inline-block; font-family: 'Space Grotesk', sans-serif; font-weight: 500;
  font-size: .74rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  background: rgba(201,168,106,.05);
}
section.block .sec-tag .num { color: var(--cream); }

/* ---- Restrained scroll parallax for non-3D decorative layers ----
   will-change is NOT set here permanently — it's scoped to the rAF loop in
   fx.js (set in start(), reset to 'auto' after the GRACE self-park) so the
   compositor isn't permanently promoted on the low-spec target PC. */
#bk, .cosmos, .layer-parallax { will-change: auto; }

/* ---- Very-low-frequency neon sign flicker (warm brand sign, not the whole UI) ---- */
.neon {
  color: var(--cream);
  text-shadow: 0 0 6px rgba(243,233,210,.6), 0 0 18px rgba(224,58,47,.55);
  animation: neonFlicker 7.5s infinite;
}
@keyframes neonFlicker {
  0%, 100%      { opacity: 1; }
  41%           { opacity: 1; }
  42%           { opacity: .55; }
  43%           { opacity: 1; }
  62%           { opacity: .82; }
  63%           { opacity: 1; }
  77%           { opacity: .9; }
  78%           { opacity: 1; }
}

/* ---- Reduced motion: kill auto-motion / parallax / flicker / grain ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cosmos, .grain, .marquee .track, .neon, .logo-big, .auth-card .logo { animation: none !important; }
  .grain { display: none; }
  .reveal { transition: opacity .4s ease; transform: none; }
  .scroll-hint { animation: none; }
  .card:hover, .product:hover { transform: none; }
  .click-pulse { animation: none !important; display: none; }
  * { scroll-behavior: auto !important; }
  /* Freeze ALL JS-driven motion layers (no rAF loop runs; this neutralizes
     any stale transform a frame might have written before the early-return). */
  #bk, .cosmos, .layer-parallax, .hero-bg, .logo-big { transform: none !important; }
  .bubble { display: none !important; }      /* floating fuel bubbles off */
  .warp-flash { display: none !important; }   /* warp overlay off */
  .marquee.fast .track { text-shadow: none !important; } /* no velocity glow */
  .fuel-field { display: none !important; }
}

/* ---- Hero composition fix: keep the 3D scene visible but NEVER let the
       heading collide with the jar/pump row. Heading anchors to the upper
       third; a soft top-down scrim guarantees legibility over the 3D. ---- */
.hero {
  justify-content: flex-start;
  padding-top: clamp(96px, 16vh, 200px);
}
/* scrim: darker at top (behind the heading) fading out toward the jars */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(5,3,10,.92) 0%,
      rgba(5,3,10,.72) 26%,
      rgba(5,3,10,.28) 48%,
      rgba(5,3,10,0) 66%);
}
.hero .center { max-width: 980px; margin: 0 auto; }
@media (max-width: 640px) {
  .hero { padding-top: 92px; }
}

/* ---- Announcement banner (top of site, below the fixed nav is handled by
       adding top padding to body when shown) ---- */
.announce-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; padding-right: 44px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .92rem;
  color: #fff; letter-spacing: .3px;
  background: linear-gradient(90deg, #4a1d52, #7a1f3a);
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.announce-bar[data-kind="closed"] { background: linear-gradient(90deg, #5a1020, #2a0a12); }
.announce-bar[data-kind="low"]    { background: linear-gradient(90deg, #6b3a00, #3a2000); }
.announce-bar[data-kind="sale"]   { background: linear-gradient(90deg, #14532d, #0a3d20); }
.announce-bar[data-kind="info"]   { background: linear-gradient(90deg, #1e2a6b, #2a1d52); }
.announce-icon { font-size: 1.05rem; line-height: 1; }
.announce-msg { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce-close {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.announce-close:hover { background: rgba(255,255,255,.28); }
/* push the fixed nav + page down when the banner is visible */
body.has-announce nav.top { top: 42px; }
body.has-announce { padding-top: 42px; }
body.has-announce .announce-bar { height: 42px; }
@media (max-width: 640px) {
  .announce-bar { font-size: .82rem; padding-left: 12px; padding-right: 40px; }
  .announce-msg { white-space: normal; line-height: 1.2; }
}

/* ---- Terploc craft-care section ---- */
.terploc-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 34px;
}
.terploc-copy { display: flex; flex-direction: column; gap: 18px; }
.tl-point { display: flex; gap: 14px; align-items: flex-start; }
.tl-ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.28);
}
.tl-point b { display: block; color: var(--cream); font-family: 'Space Grotesk', sans-serif; font-size: .98rem; letter-spacing: .3px; margin-bottom: 3px; }
.tl-point p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.terploc-visual { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tl-bag {
  width: 200px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, #1b1430, #120c20);
  border: 1px solid rgba(201,168,106,.35);
  box-shadow: 0 18px 50px rgba(0,0,0,.5), inset 0 0 30px rgba(201,168,106,.08);
}
.tl-bag-top {
  text-align: center; font-family: 'Alfa Slab One', serif; letter-spacing: 3px;
  color: var(--gold); font-size: 1.1rem; padding: 12px;
  border-bottom: 1px solid rgba(201,168,106,.25);
  background: rgba(201,168,106,.06);
}
.tl-bag-body { padding: 22px 18px 26px; text-align: center; }
.tl-leaf { font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 4px 12px rgba(71,209,124,.5)); }
.tl-sub { margin-top: 10px; font-family: 'Space Grotesk', sans-serif; font-size: .62rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
.tl-bars { display: flex; gap: 5px; justify-content: center; margin-top: 16px; }
.tl-bars span { width: 26px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--green), var(--gold)); opacity: .85; }
.tl-bars span:nth-child(2) { opacity: .65; }
.tl-bars span:nth-child(3) { opacity: .45; }
.tl-bars span:nth-child(4) { opacity: .3; }
@media (max-width: 760px) {
  .terploc-grid { grid-template-columns: 1fr; gap: 26px; }
  .terploc-visual { order: -1; }
}

/* Owner storefront: deals strip + custom block (rendered from /api/settings) */
.deals-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 18px; background: linear-gradient(90deg, rgba(71,209,124,.12), rgba(224,58,47,.12));
  border-bottom: 1px solid rgba(255,255,255,.08); font-size: .82rem; letter-spacing: .5px;
}
.deals-strip .deals-label {
  font-family: 'Alfa Slab One', serif; color: var(--gold, #e9c46a);
  letter-spacing: 2px; margin-right: 6px;
}
.deals-strip .deal-chip {
  background: rgba(20,14,34,.7); border: 1px solid rgba(71,209,124,.4);
  color: var(--cream, #f3e9d2); padding: 5px 12px; border-radius: 999px;
  font-weight: 600;
}
.custom-block {
  max-width: 1080px; margin: 28px auto 0; padding: 0 22px;
  color: var(--text, #e8e2dc);
}
.custom-block :where(h1,h2,h3) { font-family: 'Alfa Slab One', serif; color: var(--cream, #f3e9d2); }
.custom-block a { color: var(--green, #47d17c); }

/* "Upcoming feature" tag pill (auth + teaser pages) */
.tag-pill {
  display: inline-block;
  background: rgba(139, 92, 246, 0.18);
  color: #bda7ff;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 6px;
}
