@font-face { font-family: 'Redaction'; src: url('../fonts/redaction-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Redaction'; src: url('../fonts/redaction-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Redaction 20'; src: url('../fonts/redaction-20-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
/* Dark mode: grey surfaces, white text */
:root {
  --bg: #1f2023;
  --card: #2a2b2f;
  --card-2: #333439;
  --border: #3d3f45;
  --border-strong: #5a5d65;
  --text: #ffffff;
  --muted: #a6a9b0;
  --accent: #ffffff;
  --accent-hover: #dfe0e3;
  --on-accent: #1f2023;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(31, 32, 35, 0.97);
  --viewer-bg: radial-gradient(ellipse at 50% 30%, #3a3c42 0%, #232427 80%);
  --logo-filter: none;
  --danger: #f87171;
  --warn: #fbbf24;
  --ok: #4ade80;
  --font-display: 'Redaction 20', 'Redaction', Georgia, serif;
  --radius: 12px;
  --max: 1120px;
  color-scheme: dark;
}

/* Light mode: white surfaces, grey text */
:root[data-theme='light'] {
  --bg: #ffffff;
  --card: #f3f4f5;
  --card-2: #e9eaec;
  --border: #d8d9dd;
  --border-strong: #9a9da5;
  --text: #34373d;
  --muted: #7b7f87;
  --accent: #3b3e44;
  --accent-hover: #26282c;
  --on-accent: #ffffff;
  --accent-soft: rgba(0, 0, 0, 0.06);
  --header-bg: rgba(255, 255, 255, 0.97);
  --viewer-bg: radial-gradient(ellipse at 50% 30%, #ffffff 0%, #dcdde1 85%);
  --logo-filter: invert(1) brightness(0.9);
  --danger: #dc2626;
  --warn: #b7791f;
  --ok: #16a34a;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Redaction', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .25s, color .25s;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; --h: 42px; filter: var(--logo-filter); }
.logo img { height: var(--h); width: auto; display: block; }
.logo .logo-bee { margin-left: calc(var(--h) * -0.0513); transition: opacity .6s; cursor: pointer; }
.nav-links { display: flex; gap: 30px; align-items: center; margin-left: auto; }
.nav-links a:not(.btn) { color: var(--muted); font-size: 1.02rem; transition: color .15s; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); }
.nav-links .btn { padding: 8px 18px; font-size: .98rem; }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: transparent;
  color: var(--text); cursor: pointer; display: grid; place-items: center; flex: none; transition: border-color .15s, background .15s;
}
.theme-toggle:hover { border-color: var(--border-strong); background: var(--accent-soft); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme='light'] .theme-toggle .i-sun { display: none; }
:root[data-theme='light'] .theme-toggle .i-moon { display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1.02rem; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
  line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { background: var(--card-2); color: var(--muted); cursor: not-allowed; }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--accent-soft); }
.btn-lg { padding: 15px 34px; font-size: 1.15rem; }
.link-arrow { color: var(--text); font-weight: 700; font-size: 1rem; border-bottom: 1px solid var(--border-strong); }
.link-arrow:hover { border-color: var(--text); }

/* Flowers (the guide bee lands on these) */
.has-flower { position: relative; }
/* Each flower is a small picture of a 3D flower (made by js/flowers.js), standing on the top-right corner of its button (50 x 62), or 40 x 50 beside an option heading.
   It reaches 50px above its button and the bee sits on its head (about 16px higher), so every flowered button has --flower-room (68px) of empty space above it:
   the flower and the bee never stand on text. */
:root { --flower-room: 68px; }
.flower { position: absolute; top: -50px; right: -12px; width: 50px; height: 62px; pointer-events: none; z-index: 2; transform-origin: 50% 100%; animation: sway 3.4s ease-in-out infinite; }
.flower.inline { position: static; margin-left: auto; width: 40px; height: 50px; flex: none; animation: none; }   /* the small ones beside headings stay still: less to animate */
.flower img { display: block; width: 100%; height: 100%; object-fit: contain; }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .flower { animation: none; } }

/* Typography + sections */
section { padding: 72px 0; }
.section-alt { border-top: 1px solid var(--border); }
h1, h2 { font-family: var(--font-display); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.01em; font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.12; font-weight: 400; margin-bottom: 12px; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.lead { color: var(--muted); font-size: 1.2rem; max-width: 560px; }
.fine { color: var(--muted); font-size: .9rem; }

/* Hero */
.hero { padding: 110px 0 100px; }
.hero-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.hero-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 24px 0; }
.hero-center h1 { max-width: 12ch; font-size: clamp(2.3rem, 4.6vw, 4rem); }
.machine canvas { width: 100%; height: 320px; display: block; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-center .btn[data-flower] { margin-top: var(--flower-room); }          /* room for the flower (and the bee on it) that stand on the button's top-right corner */
.pill { border: 1px solid var(--border-strong); border-radius: 999px; padding: 7px 18px; font-size: 1.05rem; }

/* Cards / steps */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { counter-increment: step; padding-top: 18px; border-top: 1px solid var(--border-strong); }
.step::before { content: '0' counter(step); display: block; color: var(--muted); font-size: .95rem; margin-bottom: 8px; }

/* Forms */
label { display: block; font-size: .95rem; margin-bottom: 6px; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 1rem;
}
input:focus, select:focus, textarea:focus { outline: 1.5px solid var(--border-strong); outline-offset: 0; border-color: var(--border-strong); }
.field { margin-bottom: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.copyright { color: var(--muted); font-size: .95rem; }

/* Responsive */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  section { padding: 56px 0; }
  .hero { padding: 40px 0 48px; }
  .hero-stage { grid-template-columns: 1fr; gap: 8px; }
  .machine canvas { height: 230px; }
  .hero-center h1 { max-width: 14ch; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    background: var(--bg); padding: 20px 24px; border-bottom: 1px solid var(--border); gap: 16px; margin: 0;
  }
  .nav-links.open { display: flex; }
  .theme-toggle { margin-left: auto; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
}

/* ---------- small helpers (these replace inline style="" attributes so the security policy can forbid them) ---------- */
.pt-24 { padding-top: 24px; }
.pt-32 { padding-top: 32px; }
.mt-12 { margin-top: 12px; }
.mb-12 { margin-bottom: 12px; }
.narrow-560 { max-width: 560px; }
.narrow-620 { max-width: 620px; }
.contact-title { text-align: center; margin-bottom: 28px; }
.o-done-text { margin: 8px 0 18px; }
.w-full { width: 100%; }
/* hidden spam-trap field in the order form: off-screen, invisible to people */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* WhatsApp button, bottom right of every page (added by js/site.js) */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transition: transform .15s, box-shadow .15s; }
.wa-float:hover { transform: scale(1.07); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) { .wa-float { width: 52px; height: 52px; right: 14px; } }
.contact-msg { display: none; border: 1px solid var(--danger); color: var(--danger); padding: 11px 14px; border-radius: 10px; margin: 0 0 16px; font-size: .95rem; }
.contact-msg.show { display: block; }
.contact-msg.ok { border-color: var(--ok); color: var(--ok); }

/* ---------- Sign in (top right). Hidden until CATALOG.auth.googleEnabled is true. ---------- */
.auth { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.auth[hidden], .auth-user[hidden] { display: none; }
.auth + .theme-toggle { margin-left: 0; }
.auth-user { display: flex; align-items: center; gap: 10px; }
.auth-name { font-size: 14px; color: var(--muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-out { background: none; border: 1px solid var(--border); color: var(--text); font: inherit; font-size: 13px; padding: 6px 12px; cursor: pointer; }
.auth-out:hover { border-color: var(--border-strong); background: var(--accent-soft); }
@media (max-width: 760px) { .auth-name { display: none; } }

/* ---------- Header icons: cart and account (added by js/site.js) ---------- */
.nav-icons { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: transparent;
  color: var(--text); display: grid; place-items: center; flex: none; transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--accent-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #f6c315; color: #1f2023; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-badge[hidden], .acct-initial[hidden] { display: none; }
.acct-initial { font-weight: 700; font-size: 15px; }
.acct-link.in { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.acct-link.in:hover { background: var(--accent-hover); }
.acct-link.in svg { display: none; }
@media (max-width: 900px) {
  .nav-icons { margin-left: auto; }
  .nav-icons ~ .theme-toggle { margin-left: 0; }
  .nav { gap: 12px; }
}

/* An element with the "hidden" attribute must always be hidden, even if a style elsewhere gives it display: grid or flex.
   (Without this, a cleared cart stayed on screen until the page was refreshed.) */
[hidden] { display: none !important; }

/* The bee on/off button, to the right of the logo (added by js/bee.js) */
.bee-toggle { flex: none; width: 34px; height: 34px; margin-left: 4px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .15s, border-color .15s, opacity .15s; }
.bee-toggle:hover { background: var(--accent-soft); border-color: var(--border-strong); color: var(--text); }
.bee-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.bee-toggle .slash { display: none; }
.bee-toggle.off { opacity: .6; }
.bee-toggle.off .slash { display: block; }
@media (max-width: 600px) { .bee-toggle { width: 30px; height: 30px; margin-left: 0; } .bee-toggle svg { width: 19px; height: 19px; } }

/* The home page's four steps: a picture each */
.step-ic { display: block; width: 44px; height: 44px; margin: 0 0 12px; color: var(--text); opacity: .9; }
.step::before { margin-bottom: 14px; }

/* Short facts with a small picture (cart and checkout) */
.facts { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: .92rem; }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts svg { width: 20px; height: 20px; flex: none; color: var(--text); opacity: .8; }
