/* ============================================================
   KKV — Private-Label Tea Configurator
   Conversion funnel · editorial UI system
   ============================================================ */

:root {
  /* monochrome — black text on white */
  --g-950: #000000;
  --g-900: #0a0a0a;
  --g-800: #141414;   /* primary (buttons/headings) */
  --g-700: #2b2b2b;
  --g-600: #444444;
  /* accents neutralised to black/grey */
  --accent: #427D2D;      /* Teaco-inspired tea green */
  --accent-2: #356322;    /* darker green — hovers/active */
  --accent-soft: #e8f0e0; /* light green tint — rings/soft fills */
  /* neutrals — warm white page */
  --cream: #fbfaf6;
  --cream-2: #f1eee5;
  --paper: #ffffff;
  --line: #e6e6e6;
  --line-2: #d4d4d4;
  --ink: #111111;
  --muted: #555555;
  --muted-2: #888888;
  /* effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.16);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --sage: #eff2ec;        /* Teaco warm sage section band */
  --font-display: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 1.0625rem;   /* 17px — Teaco body scale */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: 0.005em; }

/* ---------- Buttons ---------- */
.btn {
  font: inherit;
  font-weight: 600;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.5rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.55; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--g-800); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--g-700); background: rgba(28, 64, 52, 0.04); }
.btn-ghost[hidden] { display: none; }
.btn-sm { padding: 0.48rem 1.05rem; font-size: 0.9rem; }
.btn-lg { padding: 0.95rem 2rem; font-size: 1.06rem; }
.btn .arr { transition: transform 0.15s ease; }
.btn-primary:hover .arr { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--g-900); }
.brand-logo {
  display: inline-block; width: 55px; height: 65px; flex: 0 0 auto;
  background: url("assets/kkv-logo.png") center / contain no-repeat;
}
.brand-sub { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
/* white on dark surfaces */
.foot-logo { width: 37px; height: 44px; filter: brightness(0) invert(1); }
.modal-logo { width: 42px; height: 50px; margin-bottom: 0.4rem; }
.nav-right { display: flex; align-items: center; gap: 1.1rem; }
.nav-creds { display: flex; align-items: center; gap: 0.6rem; font-size: 0.76rem; color: var(--muted); letter-spacing: 0.03em; }
.nav-creds i { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); display: inline-block; }

/* mobile hamburger (hidden on desktop) */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border: none; background: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--g-900); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; right: 0; z-index: 45;
  width: min(78vw, 300px); height: 100dvh;
  background: var(--paper); border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 5rem 1.4rem 1.4rem;
  transform: translateX(100%); transition: transform 0.25s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-size: 1.05rem; font-weight: 600; color: var(--g-900); text-decoration: none;
  padding: 0.85rem 0.4rem; border-bottom: 1px solid var(--line);
}
.mobile-menu a:active { color: var(--muted); }
.mobile-menu .btn { margin-top: 1rem; justify-content: center; }
.menu-backdrop {
  position: fixed; inset: 0; z-index: 44; background: rgba(0, 0, 0, 0.35);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.menu-backdrop.open { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 1.5rem 0; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(0, 0, 0, 0.04), transparent 60%),
    radial-gradient(55% 50% at 12% 8%, rgba(0, 0, 0, 0.03), transparent 55%);
}
.hero-inner {
  position: relative; z-index: 1; max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 2.5rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  margin-bottom: 1.1rem;
}
.eyebrow.light { color: var(--accent); }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); letter-spacing: -0.015em; color: var(--g-900); }
.hero h1 em { font-style: normal; color: var(--g-700); font-weight: 600; }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 34rem; margin: 1.2rem 0 0; }
.hero-cta { margin-top: 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; }
.cta-reassure { font-size: 0.85rem; color: var(--muted); }

/* animated tea scene */
.hero-visual { display: flex; justify-content: center; }
.scene {
  position: relative; width: min(360px, 80vw); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fff 0%, var(--cream-2) 62%, transparent 63%);
  display: grid; place-items: center;
}
.scene::after {
  content: ""; position: absolute; inset: 4%; border-radius: 50%;
  border: 1.5px dashed var(--line-2); opacity: 0.7;
}
.scene-cup { width: 66%; position: relative; z-index: 2; }
.scene-cup .steam path { opacity: 0; animation: steam 3.4s ease-in-out infinite; }
.scene-cup .steam path:nth-child(2) { animation-delay: 0.5s; }
.scene-cup .steam path:nth-child(3) { animation-delay: 1s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(6px); }
  35% { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-14px); }
}
.leaf {
  position: absolute; width: 26px; height: 26px; z-index: 3;
  background: var(--g-600);
  -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z'/%3E%3C/svg%3E");
  animation: float 6s ease-in-out infinite;
}
.leaf-a { top: 12%; left: 16%; background: var(--accent); }
.leaf-b { top: 20%; right: 12%; width: 20px; height: 20px; animation-delay: 1.5s; }
.leaf-c { bottom: 16%; left: 22%; width: 18px; height: 18px; background: var(--g-700); animation-delay: 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-12px) rotate(10deg); }
}

.hero-trust {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 3rem auto 0;
  max-width: 1120px;
  text-align: left;
}
.trust-card {
  margin: 0; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.trust-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.trust-card img { width: 100%; height: 150px; object-fit: cover; object-position: center 30%; display: block; }
.trust-card figcaption { padding: 0.85rem 1rem 1rem; }
.trust-card b { display: block; font-size: 0.98rem; color: var(--g-800); }
.trust-card span { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; }

.hero-strip {
  position: relative; z-index: 1;
  max-width: 1120px;
  margin: 3.5rem auto 0;
  padding: 1.1rem 0 3rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  justify-content: center;
}
.hero-strip > span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); }
.strip-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.strip-badges span {
  font-size: 0.78rem; color: var(--g-700);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 0.28rem 0.85rem;
  background: var(--paper);
}

/* ---------- Configurator layout ---------- */
.configurator {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.2rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  animation: rise 0.4s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Rail ---------- */
.configurator > * { min-width: 0; } /* let grid children shrink below content width */
.rail { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 1.2rem; }

.stepper { list-style: none; display: flex; flex-direction: column; gap: 0.15rem; }
.stepper li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: default;
  color: var(--muted);
  font-size: 0.92rem;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}
.stepper li .num {
  flex: 0 0 auto;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.82rem; font-weight: 700;
  border: 1.5px solid var(--line-2);
  color: var(--muted);
  background: var(--paper);
  transition: all 0.15s ease;
}
.stepper li.done { color: var(--g-700); cursor: pointer; }
.stepper li.done .num { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.stepper li.done:hover { background: rgba(38, 84, 70, 0.06); }
.stepper li.active { color: var(--g-900); font-weight: 600; }
.stepper li.active .num { border-color: var(--accent); color: var(--g-900); box-shadow: 0 0 0 4px var(--accent-soft); }
.stepper li .num svg { width: 14px; height: 14px; }

.summary-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}
.summary-card h3 {
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-2); margin-bottom: 0.6rem;
}
.summary-body .empty-note { font-size: 0.85rem; color: var(--muted-2); font-style: italic; }
.summary-sec { padding: 0.5rem 0; border-top: 1px dashed var(--line); }
.summary-sec:first-child { border-top: none; padding-top: 0; }
.summary-sec .s-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent-2); font-weight: 700; }
.summary-sec .s-val { font-size: 0.86rem; color: var(--ink); margin-top: 0.15rem; }

.rail-assure { display: flex; flex-direction: column; gap: 0.5rem; padding: 0 0.3rem; }
.assure-row { font-size: 0.82rem; color: var(--muted); display: flex; align-items: flex-start; gap: 0.55rem; }
.assure-row .dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 0.42rem; }

/* ---------- Stage ---------- */
.stage {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem 1.9rem 1.6rem;
}
.stage-head { margin-bottom: 1.4rem; }
.progress-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.5rem; }
.step-counter { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.step-pct { color: var(--accent-2); font-weight: 700; }
.progress-track { height: 6px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--g-700), var(--accent)); border-radius: 999px; transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

.stage-title { display: flex; gap: 0.9rem; align-items: flex-start; margin-top: 1.3rem; }
.stage-icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--g-800);
  display: grid; place-items: center;
}
.stage-icon svg { width: 22px; height: 22px; }
.stage-title h2 { font-size: 1.5rem; color: var(--g-900); letter-spacing: -0.01em; }
.stage-title p { font-size: 0.92rem; color: var(--muted); margin-top: 0.25rem; }

/* ---------- Step content ---------- */
.step { animation: fade 0.28s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.group-label {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--g-700); margin: 1.3rem 0 0.6rem;
}
.group-label:first-child { margin-top: 0.2rem; }
.group-label.sub { margin-left: 0; font-size: 0.68rem; color: var(--muted); }

.branch-label {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: var(--g-900); margin: 1.7rem 0 0.3rem; display: inline-flex; align-items: center; gap: 0.55rem;
}
.branch-label::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

/* chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border: 1.5px solid var(--line-2); background: var(--paper);
  border-radius: 999px; padding: 0.42rem 0.95rem; font: inherit; font-size: 0.9rem;
  color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
  transition: all 0.13s ease;
}
.chip:hover { border-color: var(--accent); background: #fff; }
.chip.selected { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.chip.selected::before { content: "✓"; font-size: 0.8rem; }
.chip.has-ic::before { content: none; }
.chip-ic { display: inline-flex; }
.chip-ic svg { display: block; }
.chip.selected .chip-ic svg { stroke: #fff !important; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 0.75rem; margin-top: 0.3rem; }
.option-card {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.option-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.option-card.selected { border-color: var(--g-700); box-shadow: 0 0 0 2px rgba(38, 84, 70, 0.18); }
.option-card.selected::after {
  content: "✓";
  position: absolute; top: 0.65rem; right: 0.7rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--g-700); color: #fff; font-size: 0.72rem;
  display: grid; place-items: center;
}
.option-card .title { font-weight: 600; font-size: 0.96rem; color: var(--g-900); padding-right: 1.2rem; }
.option-card .title .tag {
  margin-left: 0.4rem; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-2); background: var(--accent-soft); border-radius: 999px; padding: 0.08rem 0.42rem; vertical-align: middle;
}
.option-card .desc { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.option-card .variant { margin-top: 0.7rem; display: none; }
.option-card.selected .variant { display: block; }

/* card head with icon (premix) */
.card-head { display: flex; align-items: center; gap: 0.55rem; }
.card-ic {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-soft); display: grid; place-items: center;
}
.card-head .title { padding-right: 0; }

/* packaging illustration cards */
.pack-card { text-align: center; padding-top: 1.1rem; }
.pack-illus {
  height: 72px; display: grid; place-items: center; color: var(--g-700);
  margin-bottom: 0.5rem;
}
.pack-card .title { padding-right: 0; }
.pack-card.selected .pack-illus { color: var(--g-800); }
.pack-card .desc { min-height: 1.5em; }

/* check-item icon */
.check-ic {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent-soft); color: var(--g-700);
  display: grid; place-items: center; margin-top: -0.1rem;
}
.check-item.selected .check-ic { background: var(--g-700); color: #fff; }
.check-item .check-lb { flex: 1; }

select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  width: 100%;
  padding: 0.62rem 0.8rem;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--g-800); }
.field .optional { color: var(--muted-2); font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.55rem; }
.check-item {
  display: flex; align-items: flex-start; gap: 0.6rem;
  background: var(--paper); border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem; cursor: pointer; font-size: 0.9rem; transition: all 0.13s ease;
}
.check-item:hover { border-color: var(--accent); }
.check-item input { accent-color: var(--g-700); margin-top: 0.15rem; width: auto; }
.check-item.selected { border-color: var(--g-700); background: rgba(38, 84, 70, 0.06); }

/* review */
.review-box {
  background: linear-gradient(180deg, var(--cream), var(--paper));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin-top: 1.2rem;
}
.review-box h3 {
  font-family: var(--font-sans);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-2);
  font-weight: 700; margin: 0.75rem 0 0.2rem;
}
.review-box h3:first-child { margin-top: 0; }
.review-box p { font-size: 0.92rem; }
.review-box .empty { color: var(--muted-2); font-style: italic; }

.error-msg { color: #a8341f; font-size: 0.87rem; margin-top: 0.9rem; min-height: 1.1em; font-weight: 500; }

/* nav buttons */
.wizard-nav { display: flex; justify-content: space-between; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

/* ---------- Success ---------- */
.success-panel { text-align: center; padding: 1.5rem 0.5rem 1rem; animation: fade 0.35s ease; }
.success-badge {
  width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 50%;
  background: var(--g-700); color: #fff; font-size: 1.9rem; display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(38, 84, 70, 0.1);
}
.success-panel h2 { font-size: 1.7rem; color: var(--g-900); }
.success-lead { color: var(--muted); max-width: 34rem; margin: 0.6rem auto 1.6rem; }
.timeline { list-style: none; max-width: 30rem; margin: 0 auto 1.8rem; text-align: left; display: flex; flex-direction: column; gap: 0.9rem; }
.timeline li { display: flex; gap: 0.9rem; align-items: flex-start; }
.tl-num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-2); font-weight: 700; font-size: 0.9rem;
  display: grid; place-items: center;
}
.timeline strong { display: block; color: var(--g-800); font-size: 0.95rem; }
.timeline span { font-size: 0.86rem; color: var(--muted); }

/* ---------- Footer ---------- */
.foot { background: var(--g-950); color: rgba(255, 255, 255, 0.72); padding: 2rem 1.5rem; }
.foot-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.foot p { font-size: 0.82rem; max-width: 52rem; }

/* ---------- Showcase (what we make) ---------- */
.showcase { max-width: 1120px; margin: 0 auto; padding: 3.5rem 1.5rem 1rem; }
.showcase-head { text-align: center; max-width: 40rem; margin: 0 auto 2rem; }
.showcase-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--g-900); margin-top: 0.4rem; }
.showcase-head p { color: var(--muted); margin-top: 0.5rem; }
.showcase-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; }
.showcase-tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 0.8rem; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.showcase-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.showcase-illus { color: var(--g-700); height: 60px; display: grid; place-items: center; }
.showcase-name { font-size: 0.8rem; font-weight: 600; color: var(--g-800); margin-top: 0.5rem; line-height: 1.25; }

/* ---------- Brand film ---------- */
.film { max-width: 1120px; margin: 2.5rem auto 0; padding: 0 1.5rem 4rem; }
.film-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 16 / 8; background: var(--g-900);
}
.film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* illustrated fallback shown before the embed loads / if it's blocked */
.film-poster { position: absolute; inset: 0; z-index: 0; background: url("assets/film-poster.svg") center / cover no-repeat; }
/* YouTube background: 16:9 scaled to cover the wider frame, no controls, non-interactive */
.film-yt {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; z-index: 1;
  pointer-events: none;
}
@media (max-width: 900px) { .film-yt { width: auto; height: 100%; } }
.film-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  gap: 0.4rem; padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(90deg, rgba(15, 31, 24, 0.78) 0%, rgba(15, 31, 24, 0.35) 55%, transparent 100%);
  color: #fff;
}
.film-overlay h2 { font-size: clamp(1.5rem, 3.2vw, 2.4rem); color: #fff; max-width: 18ch; }
.film-overlay p { color: rgba(255, 255, 255, 0.82); margin: 0.3rem 0 1rem; max-width: 34ch; }

/* ---------- Nav links ---------- */
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--g-800); text-decoration: none; }
.nav-links a:hover { color: var(--accent-2); }

/* ---------- Credentials bar (social proof) ---------- */
.credbar {
  max-width: 1120px; margin: 2.5rem auto 0; padding: 1rem 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.4rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.credbar-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); }
.credbar-items { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; justify-content: center; }
.credbar-items span { font-size: 0.82rem; font-weight: 600; color: var(--g-700); }
.credbar-items i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

/* ---------- Popular blends (best sellers) ---------- */
.sellers { max-width: 1120px; margin: 0 auto; padding: 3.5rem 1.5rem 1rem; }
.sellers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.seller-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.seller-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.seller-media { aspect-ratio: 4 / 3; background: #ffffff; border-bottom: 1px solid var(--line); overflow: hidden; }
.seller-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seller-media--ph { display: grid; place-items: center; background: var(--cream-2); }
.seller-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; flex: 1; }
.seller-card h3 { font-size: 1.1rem; color: var(--g-900); }
.seller-card p { font-size: 0.86rem; color: var(--muted); flex: 1; }
.seller-card .btn { margin-top: 0.4rem; }
.seller-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--g-700); display: grid; place-items: center; }
.seller-ic::before {
  content: ""; width: 24px; height: 24px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.seller-ic[data-tea] { background: var(--g-800); }

/* ---------- Testimonials (social proof #2) ---------- */
.testimonials { max-width: 1120px; margin: 0 auto; padding: 3.5rem 1.5rem 1rem; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.testi-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.sample-tag { position: absolute; top: 0.9rem; right: 0.9rem; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); background: var(--cream-2); border-radius: 999px; padding: 0.12rem 0.5rem; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 0.95rem; }
.testi-card blockquote { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.5; color: var(--g-900); margin: 0.6rem 0 0.9rem; }
.testi-card figcaption { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

/* ---------- Why choose us (brand benefits) ---------- */
.whyus { max-width: 1120px; margin: 0 auto; padding: 4rem 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.whyus-media { margin: 0; }
.whyus-media img { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.whyus-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--g-900); margin: 0.4rem 0 1.2rem; }
.benefit-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.5rem; }
.benefit-list li { padding-left: 1.9rem; position: relative; }
.benefit-list li::before { content: "✓"; position: absolute; left: 0; top: 0.05rem; color: #fff; background: var(--g-700); width: 1.25rem; height: 1.25rem; border-radius: 50%; font-size: 0.72rem; display: grid; place-items: center; }
.benefit-list b { display: block; color: var(--g-800); font-size: 0.98rem; }
.benefit-list span { font-size: 0.85rem; color: var(--muted); }

/* ---------- About ---------- */
.about { max-width: 1120px; margin: 0 auto; padding: 2rem 1.5rem 4rem; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: center; }
.about-media { margin: 0; }
.about-media img { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.about-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--g-900); margin-top: 0.3rem; }
.about-copy p { color: var(--muted); margin-top: 0.85rem; font-size: 0.98rem; }
.about-note { font-size: 0.85rem; color: var(--muted-2); font-style: italic; border-left: 2px solid var(--accent); padding-left: 0.85rem; }

/* ---------- FAQ ---------- */
.faqs { max-width: 760px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.faq-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.faq-list details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.1rem; box-shadow: var(--shadow-sm); }
.faq-list summary { list-style: none; cursor: pointer; padding: 1rem 0; font-weight: 600; color: var(--g-900); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .chev { transition: transform 0.2s ease; color: var(--muted); font-size: 1.1rem; }
.faq-list details[open] .chev { transform: rotate(180deg); }
.faq-list details p { padding: 0 0 1rem; color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Manifesto (anaphora) ---------- */
.manifesto { padding: clamp(3.5rem, 8vw, 6rem) 1.5rem; background: var(--cream); border-top: 1px solid var(--line); }
.manifesto-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.manifesto-h { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 5.5vw, 3.4rem); letter-spacing: -0.02em; color: var(--g-900); margin-bottom: 1.6rem; }
.manifesto p { color: var(--ink); font-size: clamp(1.02rem, 1.7vw, 1.15rem); line-height: 1.7; margin: 0 auto 1.35rem; max-width: 40ch; }
.manifesto-thesis { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.8vw, 2.3rem); line-height: 1.15; color: var(--accent-2); margin: 2.2rem auto !important; max-width: none !important; }
.manifesto-close b { color: var(--g-800); }
.manifesto .btn { margin-top: 1.2rem; }

/* ---------- Final CTA ---------- */
.finalcta {
  max-width: 940px; margin: 0 auto 4rem; padding: clamp(2.2rem, 5vw, 3.4rem) 1.5rem;
  text-align: center; background: linear-gradient(135deg, var(--g-800), var(--g-950));
  border-radius: var(--radius-lg); color: #fff; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.finalcta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; }
.finalcta p { color: rgba(255, 255, 255, 0.82); max-width: 36rem; }
.finalcta .btn { margin-top: 1rem; }
.finalcta .cta-reassure { color: rgba(255, 255, 255, 0.7); }

/* ---------- AI intake (hero) ---------- */
.ai-intake { margin-top: 2rem; max-width: 34rem; }
.ai-input-row {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--paper); border: 1.5px solid var(--line-2);
  border-radius: 999px; padding: 0.4rem 0.4rem 0.4rem 1rem;
  box-shadow: var(--shadow-sm); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ai-input-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ai-spark { color: var(--accent-2); font-size: 1rem; flex: 0 0 auto; }
.ai-input-row input {
  flex: 1; border: none; background: none; padding: 0.45rem 0; font-size: 0.98rem;
  color: var(--ink); box-shadow: none;
}
.ai-input-row input:focus { outline: none; box-shadow: none; }
.ai-input-row .btn { flex: 0 0 auto; padding: 0.6rem 1.2rem; }
.ai-examples { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.ex-chip {
  font: inherit; font-size: 0.8rem; color: var(--muted);
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 0.3rem 0.8rem; cursor: pointer; transition: all 0.13s ease;
}
.ex-chip:hover { border-color: var(--accent); color: var(--g-800); background: var(--paper); }
.ai-secondary { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.2rem; }
.linklike {
  align-self: flex-start; background: none; border: none; font: inherit; font-weight: 600;
  color: var(--g-700); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px;
}
.linklike:hover { color: var(--accent-2); }

/* ---------- AI assistant panel ---------- */
.assistant {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 1.25rem;
  background: rgba(15, 31, 24, 0.42); backdrop-filter: blur(6px);
  animation: fade 0.2s ease;
}
.asst-shell {
  width: 100%; max-width: 640px; height: min(88vh, 780px);
  display: flex; flex-direction: column;
  background: var(--paper); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg); animation: rise 0.25s ease;
}
.asst-head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line);
}
.asst-logo { width: 26px; height: 33px; color: var(--g-800); }
.asst-id { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.asst-id strong { color: var(--g-900); font-size: 0.98rem; }
.asst-id span { color: var(--muted); font-size: 0.78rem; }
.asst-close { background: none; border: none; font-size: 1.5rem; color: var(--muted); cursor: pointer; line-height: 1; }
.asst-close:hover { color: var(--g-800); }

.asst-messages {
  flex: 1; overflow-y: auto; padding: 1.4rem 1.3rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  scroll-behavior: smooth;
}
.asst-msg { display: flex; animation: msgIn 0.28s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.asst-msg.user { justify-content: flex-end; }
.asst-msg .bubble {
  max-width: 82%; padding: 0.7rem 0.95rem; border-radius: 16px;
  font-size: 0.94rem; line-height: 1.5;
}
.asst-msg.bot .bubble { background: var(--cream-2); color: var(--ink); border-bottom-left-radius: 5px; }
.asst-msg.user .bubble { background: var(--g-800); color: #fff; border-bottom-right-radius: 5px; }
.asst-msg.bot .bubble b { color: var(--g-800); }

.asst-msg.typing .bubble { display: inline-flex; gap: 4px; padding: 0.85rem 1rem; }
.asst-msg.typing .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); animation: blink 1.2s infinite; }
.asst-msg.typing .dot:nth-child(2) { animation-delay: 0.2s; }
.asst-msg.typing .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

.asst-summary { display: grid; gap: 0.3rem; margin-top: 0.2rem; }
.asst-summary div { font-size: 0.85rem; }
.asst-summary span { display: inline-block; min-width: 78px; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }

.asst-estimate {
  margin-top: 0.7rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.9rem 1rem;
}
.est-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-2); font-weight: 700; }
.est-total { font-family: var(--font-display); font-size: 1.7rem; color: var(--g-900); margin-top: 0.15rem; }
.est-per { font-size: 0.85rem; color: var(--muted); }
.est-note { font-size: 0.76rem; color: var(--muted-2); margin-top: 0.5rem; border-top: 1px dashed var(--line); padding-top: 0.5rem; }

.asst-capture { display: flex; flex-direction: column; gap: 0.5rem; }
.asst-capture p { font-size: 0.94rem; margin-bottom: 0.2rem; }
.asst-capture input { font-size: 0.92rem; }
.asst-capture .btn { justify-content: center; margin-top: 0.2rem; }

.asst-done { text-align: center; padding: 0.4rem 0.3rem; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.asst-done-badge { width: 42px; height: 42px; border-radius: 50%; background: var(--g-700); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.asst-done strong { color: var(--g-900); }
.asst-done span { font-size: 0.85rem; color: var(--muted); }
.asst-done-dl { margin-top: 0.6rem; text-decoration: none; }

.asst-foot { border-top: 1px solid var(--line); padding: 0.8rem 1.3rem 1rem; }
.asst-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.7rem; }
.asst-chips:empty { display: none; }
.asst-chip {
  font: inherit; font-size: 0.85rem; color: var(--g-800);
  background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 999px;
  padding: 0.4rem 0.9rem; cursor: pointer; transition: all 0.13s ease;
}
.asst-chip:hover { border-color: var(--g-700); background: var(--g-800); color: #fff; }
.asst-inputrow { display: flex; gap: 0.5rem; }
.asst-inputrow input {
  flex: 1; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0.6rem 1rem; font-size: 0.94rem;
}
.asst-inputrow .btn { flex: 0 0 auto; }
body.asst-open { overflow: hidden; }

/* ---------- Lead-capture modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 1.25rem;
  background: rgba(15, 31, 24, 0.55); backdrop-filter: blur(4px);
  animation: fade 0.2s ease;
}
.modal-card {
  position: relative; width: 100%; max-width: 440px;
  background: var(--paper); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 2rem 1.9rem 1.7rem;
  animation: rise 0.25s ease;
}
.modal-close {
  position: absolute; top: 0.7rem; right: 1rem;
  background: none; border: none; font-size: 1.6rem; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 0.2rem;
}
.modal-close:hover { color: var(--g-800); }
.modal-card h2 { font-size: 1.55rem; color: var(--g-900); margin: 0.5rem 0 0.3rem; }
.modal-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.2rem; }
.modal-card .field { margin-bottom: 0.85rem; }
.modal-card .btn-lg { width: 100%; justify-content: center; margin-top: 0.5rem; }
.modal-fine { font-size: 0.78rem; color: var(--muted-2); text-align: center; margin-top: 0.8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-cta { align-items: center; }
  .scene { width: min(260px, 62vw); }
  .showcase-grid { grid-template-columns: repeat(3, 1fr); }
  .film-frame { aspect-ratio: 16 / 11; }
  .film-overlay { background: linear-gradient(0deg, rgba(15, 31, 24, 0.85) 10%, rgba(15, 31, 24, 0.35) 70%, transparent 100%); align-items: center; text-align: center; }
  .film-overlay h2, .film-overlay p { max-width: none; }
}
@media (max-width: 900px) {
  .configurator { grid-template-columns: 1fr; gap: 1.2rem; padding-top: 1.5rem; }
  .rail { position: static; }
  .stepper { flex-direction: row; overflow-x: auto; gap: 0.3rem; padding-bottom: 0.3rem; }
  .stepper li { flex-direction: column; gap: 0.3rem; font-size: 0.68rem; text-align: center; padding: 0.4rem 0.5rem; min-width: 62px; }
  .stepper li .label { white-space: nowrap; }
  .summary-card, .rail-assure { display: none; }
  .hero-trust { grid-template-columns: 1fr 1fr; }
  .nav-creds, .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav { padding: 0.6rem 1.1rem; }
  .brand-logo { width: 48px; height: 57px; }
  .stage { padding: 1.25rem 1.15rem 1.3rem; }
  .sellers-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .whyus, .about { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .hero-trust { grid-template-columns: 1fr 1fr; }
  .stage-title h2 { font-size: 1.25rem; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .pack-grid { grid-template-columns: 1fr 1fr; }
  .sellers-grid, .testi-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
  .showcase, .sellers, .whyus, .about, .testimonials, .manifesto, .finalcta { padding-left: 1.1rem; padding-right: 1.1rem; }
  .ai-input-row { flex-wrap: wrap; }
  .ai-input-row input { min-width: 0; }
}
@media (max-width: 430px) {
  .brand-sub { display: none; }               /* logo alone on very small screens */
  .nav-right { gap: 0.5rem; }
  .btn-sm { padding: 0.42rem 0.85rem; font-size: 0.85rem; }
  .hero h1 { font-size: 2rem; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* ============================================================
   Admin dashboard
   ============================================================ */
.site-header {
  background: var(--g-900); color: #fff; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
}
.site-header .brand { align-items: center; }
.admin-logo { width: 34px; height: 41px; filter: brightness(0) invert(1); }
.site-header .brand-sub { color: rgba(255, 255, 255, 0.8); }
.badge { border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; padding: 0.2rem 0.7rem; font-size: 0.72rem; }
.header-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.admin-shell { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.admin-shell h1 { color: var(--g-800); font-size: 1.5rem; margin-bottom: 1rem; }
.admin-shell h2 { color: var(--g-900); font-size: 1.15rem; }

.badge-btn { background: none; border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; font: inherit; cursor: pointer; }
.badge-btn:hover { background: rgba(255, 255, 255, 0.12); }

/* login */
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--cream); }
.login-card {
  width: 100%; max-width: 360px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 2rem 1.8rem; text-align: center;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.login-logo { width: 44px; height: 55px; color: var(--g-800); margin: 0 auto 0.4rem; }
.login-card h1 { font-size: 1.4rem; color: var(--g-900); }
.login-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.login-card input { text-align: center; }
.login-card .btn { justify-content: center; margin-top: 0.3rem; }
.login-card .error-msg { min-height: 0; margin: 0; }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; margin-bottom: 2rem; }
.kpi {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm);
}
.kpi-accent { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.kpi-value { font-family: var(--font-display); font-size: 2rem; color: var(--g-900); line-height: 1; }
.kpi-label { font-size: 0.82rem; font-weight: 600; color: var(--g-800); margin-top: 0.5rem; }
.kpi-sub { font-size: 0.76rem; color: var(--muted); margin-top: 0.1rem; }

/* section header + tools */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.admin-tools { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.admin-tools input, .admin-tools select {
  width: auto; padding: 0.45rem 0.7rem; font-size: 0.85rem; border-radius: 999px;
}
.admin-tools input { min-width: 220px; }
.admin-tools .btn-sm { padding: 0.45rem 1rem; }
#leadsSection { margin-bottom: 2.5rem; }

@media (max-width: 720px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .admin-tools input { min-width: 0; flex: 1; }
}

/* admin tabs */
.admin-tabs { display: flex; gap: 0.3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.admin-tab {
  font: inherit; font-weight: 600; font-size: 0.92rem; color: var(--muted);
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 0.6rem 0.9rem; cursor: pointer; margin-bottom: -1px;
}
.admin-tab:hover { color: var(--g-800); }
.admin-tab.active { color: var(--g-900); border-color: var(--accent); }

/* integration cards */
.integrations { margin-bottom: 2.5rem; }
.intg-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm);
}
.intg-head { display: flex; align-items: center; justify-content: space-between; }
.intg-head strong { color: var(--g-900); font-size: 1rem; }
.intg-status {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  background: #e8e8e8; color: #666; border-radius: 999px; padding: 0.12rem 0.6rem;
}
.intg-status.on { background: rgba(38, 84, 70, 0.14); color: var(--g-700); }
.intg-desc { color: var(--muted); font-size: 0.86rem; margin: 0.4rem 0 0.9rem; }
.intg-toggle { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--g-800); margin-bottom: 0.9rem; cursor: pointer; }
.intg-toggle input { width: auto; }
.intg-hint { font-size: 0.78rem; color: var(--muted-2); margin-top: 0.5rem; }
.intg-hint code { background: var(--cream-2); padding: 0.08rem 0.35rem; border-radius: 5px; font-size: 0.92em; }

/* email sequences */
.seq-steps { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.6rem; }
.seq-step { border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.8rem; background: var(--cream); }
.seq-step-head { display: flex; align-items: center; gap: 0.8rem; }
.seq-delay {
  flex: 0 0 auto; font-size: 0.7rem; font-weight: 700; color: var(--accent-2);
  background: var(--accent-soft); border-radius: 999px; padding: 0.15rem 0.6rem; min-width: 68px; text-align: center;
}
.seq-subject { flex: 1; font-size: 0.9rem; color: var(--g-900); font-weight: 500; }
.seq-edit { flex: 0 0 auto; font-size: 0.82rem; }
.seq-editor { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.7rem; }
.seq-editor .seq-save { align-self: flex-start; }
.test-row { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.test-row input { flex: 1; }

/* activity log */
.act-row {
  display: grid; grid-template-columns: 14px 60px 1fr auto auto; align-items: center; gap: 0.7rem;
  padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); font-size: 0.85rem;
}
.act-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted-2); }
.act-ok { background: #3a9c6a; }
.act-failed { background: #c0492c; }
.act-skipped { background: var(--muted-2); }
.act-chan { text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.05em; color: var(--accent-2); font-weight: 700; }
.act-ev { color: var(--g-900); }
.act-detail { color: var(--muted); }
.act-time { color: var(--muted-2); font-size: 0.78rem; white-space: nowrap; }
@media (max-width: 640px) {
  .act-row { grid-template-columns: 14px 1fr; grid-auto-rows: auto; }
  .act-time, .act-detail { grid-column: 2; }
}
.enquiry-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 0.8rem; box-shadow: var(--shadow-sm); }
.enquiry-head { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; cursor: pointer; flex-wrap: wrap; }
.enquiry-head .who { font-weight: 700; color: var(--g-900); }
.enquiry-head .meta { color: var(--muted); font-size: 0.82rem; }
.status-pill { border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.status-new { background: var(--accent-soft); color: #7a5c14; }
.status-quoted { background: rgba(38, 84, 70, 0.12); color: var(--g-700); }
.status-closed { background: #e8e8e8; color: #555; }
.enquiry-body { display: none; margin-top: 0.9rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.enquiry-card.open .enquiry-body { display: block; }
.enquiry-body h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--g-700); margin: 0.7rem 0 0.15rem; }
.enquiry-body h4:first-child { margin-top: 0; }
.enquiry-body p { font-size: 0.9rem; }
.admin-empty { color: var(--muted); font-style: italic; padding: 2rem 0; }
.status-actions { margin-top: 0.9rem; display: flex; gap: 0.5rem; }
.status-actions .chip { font-size: 0.78rem; padding: 0.28rem 0.75rem; }

#leadsSection { margin-bottom: 2rem; }
.leads-count {
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 700;
  background: var(--accent-soft); color: #7a5c14; border-radius: 999px; padding: 0.1rem 0.6rem;
  vertical-align: middle;
}
.leads-note { color: var(--muted); font-size: 0.88rem; margin: -0.4rem 0 0.9rem; }
.lead-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 0.7rem 1rem; margin-bottom: 0.5rem;
}
.lead-card .who { font-weight: 600; color: var(--g-900); }
.lead-card .meta { color: var(--muted); font-size: 0.82rem; }
.lead-intent { font-size: 0.82rem; color: var(--g-700); margin-top: 0.2rem; }
.tier { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 999px; padding: 0.08rem 0.5rem; vertical-align: middle; }
.tier-hot { background: #fbe4dd; color: #b3401f; }
.tier-warm { background: var(--accent-soft); color: #7a5c14; }
.tier-exploring { background: #e8e8e8; color: #555; }
.src { font-size: 0.66rem; color: var(--muted-2); font-weight: 500; vertical-align: middle; }
.lead-mail { color: var(--g-700); font-weight: 600; font-size: 0.85rem; text-decoration: none; white-space: nowrap; }
.lead-mail:hover { color: var(--g-800); }

/* ---------- Visitors (analytics) tab ---------- */
.vis-chart { display: flex; align-items: flex-end; gap: 0.4rem; height: 140px; padding: 0.5rem 0.2rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.vis-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 0.3rem; }
.vis-col-bar { width: 100%; max-width: 26px; background: var(--g-800); border-radius: 4px 4px 0 0; transition: background 0.15s; min-height: 2px; }
.vis-col:hover .vis-col-bar { background: var(--g-600); }
.vis-col-x { font-size: 0.6rem; color: var(--muted-2); white-space: nowrap; }

.vis-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vis-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--paper); }
.vis-panel h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 0.7rem; }
.vis-bar { display: grid; grid-template-columns: minmax(70px, 34%) 1fr auto; align-items: center; gap: 0.6rem; padding: 0.22rem 0; }
.vis-bar-label { font-size: 0.8rem; color: var(--g-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vis-bar-track { height: 8px; background: var(--accent-soft); border-radius: 999px; overflow: hidden; }
.vis-bar-fill { display: block; height: 100%; background: var(--g-800); border-radius: 999px; }
.vis-bar-val { font-size: 0.78rem; font-weight: 700; color: var(--g-700); min-width: 1.5rem; text-align: right; }

.vis-card { display: flex; align-items: flex-start; gap: 0.8rem; }
.vis-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--accent-soft); }
.vis-avatar-anon { display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-size: 1.4rem; line-height: 1; }
.vis-main { flex: 1; min-width: 0; }
.vis-dev { color: var(--muted-2); }

@media (max-width: 720px) { .vis-cols { grid-template-columns: 1fr; } }

/* ---------- assistant: Continue with Google ---------- */
.asst-google { display: flex; flex-direction: column; align-items: stretch; gap: 0.6rem; margin-bottom: 0.2rem; }
.asst-google #asstGoogleBtn { display: flex; justify-content: center; min-height: 40px; }
.asst-or { display: flex; align-items: center; gap: 0.6rem; color: var(--muted-2); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.asst-or::before, .asst-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Visual email template editor (admin) ---------- */
.seq-lbl { display: block; font-size: 0.74rem; font-weight: 600; color: var(--muted); margin: 0.75rem 0 0.3rem; text-transform: uppercase; letter-spacing: 0.04em; }
.seq-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted-2); }
.rich-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; padding: 0.4rem; border: 1px solid var(--line); border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--cream); }
.rt-btn, .rt-token { font: inherit; font-size: 0.82rem; line-height: 1; padding: 0.42rem 0.55rem; border: 1px solid var(--line); background: var(--paper); color: var(--g-900); border-radius: 6px; cursor: pointer; transition: background 0.12s, color 0.12s, border-color 0.12s; }
.rt-btn:hover, .rt-token:hover { background: var(--g-900); color: #fff; border-color: var(--g-900); }
.rt-token { font-size: 0.76rem; color: var(--g-700); }
.rt-sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 0.15rem; }
.rich-body { min-height: 150px; max-height: 380px; overflow-y: auto; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: var(--paper); font-size: 0.92rem; line-height: 1.55; color: var(--g-900); }
.rich-body:focus { outline: none; border-color: var(--g-900); box-shadow: inset 0 0 0 1px var(--g-900); }
.rich-body p { margin: 0 0 0.7rem; }
.rich-body ol, .rich-body ul { margin: 0 0 0.7rem; padding-left: 1.4rem; }
.rich-body a { color: var(--accent); }
.seq-actions { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.75rem; }
.seq-msg { font-size: 0.82rem; color: var(--g-700); }
.seq-previewbox { margin-top: 0.9rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; background: var(--cream); }
.pv-subject { font-weight: 700; font-size: 0.95rem; color: var(--g-900); margin-bottom: 0.6rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.pv-body { font-size: 0.9rem; line-height: 1.55; color: var(--g-800); }
.pv-body p { margin: 0 0 0.7rem; }
.pv-body ol, .pv-body ul { margin: 0 0 0.7rem; padding-left: 1.4rem; }

/* ---------- Footer legal links ---------- */
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 1rem; }
.foot-links a { color: var(--muted); font-size: 0.85rem; text-decoration: none; border: none; background: none; cursor: pointer; padding: 0; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-copy { margin-top: 0.8rem; font-size: 0.78rem; color: var(--muted-2); }

/* ---------- Cookie consent banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.4rem; padding: 1rem 1.4rem; background: var(--g-950, #101410); color: #f4f2ec; box-shadow: 0 -6px 24px rgba(0,0,0,0.18); }
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0; font-size: 0.86rem; line-height: 1.5; max-width: 60ch; color: #e7e4db; }
.cookie-text a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-banner .btn-ghost { color: #f4f2ec; border-color: rgba(255,255,255,0.35); background: transparent; }
.cookie-banner .btn-ghost:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 640px) { .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; } .cookie-actions { justify-content: stretch; } .cookie-actions .btn { flex: 1; } }

/* ---------- Legal pages (privacy / terms / cookies) ---------- */
.legal-nav { position: static; }
.legal { max-width: 46rem; margin: 0 auto; padding: 3rem 1.4rem 4rem; color: var(--g-800); line-height: 1.65; }
.legal h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--g-900); margin: 0 0 0.4rem; }
.legal .legal-updated { color: var(--muted); font-size: 0.85rem; margin: 0 0 2rem; }
.legal h2 { font-size: 1.15rem; color: var(--g-900); margin: 2.2rem 0 0.6rem; }
.legal h3 { font-size: 1rem; color: var(--g-900); margin: 1.4rem 0 0.4rem; }
.legal p, .legal li { font-size: 0.95rem; }
.legal ul, .legal ol { padding-left: 1.3rem; margin: 0.4rem 0 1rem; }
.legal li { margin: 0.3rem 0; }
.legal a { color: var(--accent); }
.legal table { width: 100%; border-collapse: collapse; margin: 0.8rem 0 1.4rem; font-size: 0.88rem; }
.legal th, .legal td { text-align: left; padding: 0.55rem 0.7rem; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--cream); font-weight: 600; color: var(--g-900); }
.legal .legal-note { font-size: 0.85rem; color: var(--muted); background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; margin: 1.4rem 0; }

/* ---------- Full landscape logo in the header ---------- */
.brand-full { height: 55px; width: auto; display: block; }
@media (max-width: 900px) { .brand-full { height: 47px; } }
@media (max-width: 560px) { .brand-full { height: 39px; } }
@media (max-width: 400px) { .brand-full { height: 34px; } }

/* ============================================================
   UX polish pass (ui-ux-pro-max): a11y focus, skip link, touch
   ============================================================ */
/* Skip-to-content link — visible only on keyboard focus */
.skip-link { position: absolute; left: 0.75rem; top: -3.5rem; z-index: 100; background: var(--g-900); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: top 0.18s ease; }
.skip-link:focus { top: 0.75rem; }
main:focus { outline: none; }

/* Consistent, visible keyboard focus on every interactive element */
a:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible,
.asst-chip:focus-visible, .chip:focus-visible, .linklike:focus-visible,
.nav-links a:focus-visible, .mobile-menu a:focus-visible, .foot-links a:focus-visible,
.ex-chip:focus-visible, .status-actions .chip:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
/* Restore a visible focus ring on the hero AI input for keyboard users (mouse focus stays clean) */
.ai-input-row input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

/* Remove the 300ms tap delay / accidental double-tap zoom on controls */
a, button, .btn, summary, .asst-chip, .chip, .ex-chip, input[type="button"], input[type="submit"], [role="button"] { touch-action: manipulation; }

/* In-page anchors clear the sticky header instead of hiding under it */
section[id], #main { scroll-margin-top: 90px; }

/* ============================================================
   Teaco full adoption: warm sage section bands + rounder media
   ============================================================ */
/* Full-width sage bands with centered content (alternating rhythm) */
.sellers, .testimonials { max-width: none; margin: 0; background: var(--sage); padding: 4.5rem 1.5rem; }
.sellers > *, .testimonials > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
/* Softer, larger heading scale to match Teaco's condensed display */
.showcase-head h2, .whyus-copy h2, .about-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.eyebrow, .showcase-head .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 0.1em; }

/* ============================================================
   CMS SEO pages + floating KKV Assistant
   ============================================================ */
.cms-hero { max-width: 1120px; margin: 0 auto; padding: 3.5rem 1.5rem 1.5rem; }
.cms-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); color: var(--g-900); margin: 0.4rem 0 0.8rem; }
.cms-lede { font-size: 1.12rem; color: var(--muted); max-width: 46rem; }
.cms-cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.cms-wrap { max-width: 46rem; margin: 0 auto; padding: 1rem 1.5rem 2rem; }
.cms-section { margin: 2.2rem 0; }
.cms-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--g-900); margin-bottom: 0.7rem; }
.cms-section p { margin: 0 0 0.9rem; color: var(--g-800); font-size: 1.02rem; }
.cms-list { padding-left: 1.3rem; margin: 0.4rem 0 1rem; }
.cms-list li { margin: 0.35rem 0; color: var(--g-800); }
.cms-closer { max-width: 1120px; margin: 1.5rem auto 4rem; padding: 3rem 1.5rem; background: var(--sage); border-radius: var(--radius-lg); text-align: center; }
.cms-closer h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--g-900); }
.cms-closer p { color: var(--muted); max-width: 40rem; margin: 0.6rem auto 1.2rem; }

.assist-fab { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 55; display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 0.72rem 1.15rem; border-radius: 999px; box-shadow: var(--shadow-lg); border: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; }
.assist-fab:hover { background: var(--accent-2); transform: translateY(-2px); }
.assist-fab-ic { font-size: 1.05rem; line-height: 1; }
body.asst-open .assist-fab { display: none; }
@media (max-width: 560px) { .assist-fab { right: 0.9rem; bottom: 0.9rem; padding: 0.62rem 0.95rem; font-size: 0.88rem; } }
