:root {
  --ink: #0d1a12;
  --muted: #4a6a55;
  --muted-strong: #3d5a48;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-soft: #f5f8f5;
  --surface-warm: #f5f0eb;
  --surface-mint: #eef4ee;
  --line: #d8e8da;
  --line-strong: #c5d9c8;
  --brand: #1c3d2e;
  --brand-strong: #0f2118;
  --brand-soft: rgba(201, 168, 76, 0.18);
  --teal: #2a5540;
  --amber: #c9a84c;
  --shadow: 0 18px 40px rgba(28, 61, 46, 0.09);
  --shadow-soft: 0 12px 28px rgba(28, 61, 46, 0.06);
  --shadow-hero: 0 28px 70px rgba(28, 61, 46, 0.11);
  --ring: rgba(28, 61, 46, 0.16);
  --page-accent: rgba(201, 168, 76, 0.2);
  --page-accent-strong: #1c3d2e;
  --page-secondary: rgba(42, 85, 64, 0.18);
  --page-warm: rgba(201, 168, 76, 0.2);
  --pointer-x: 50%;
  --pointer-y: 22%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(1000px 500px at 10% -10%, rgba(201, 168, 76, 0.14) 0%, transparent 60%),
    radial-gradient(900px 460px at 90% -15%, rgba(42, 85, 64, 0.12) 0%, transparent 58%),
    radial-gradient(760px 420px at 50% 12%, rgba(238, 244, 238, 0.9) 0%, transparent 60%),
    radial-gradient(540px 320px at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.82) 0%, transparent 72%),
    linear-gradient(180deg, #fafcf9 0%, #f5f8f5 50%, #f0f4f1 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
  opacity: 0.75;
}

body::before {
  width: 280px;
  height: 280px;
  top: 16%;
  right: -110px;
  background: radial-gradient(circle at 35% 35%, rgba(201, 168, 76, 0.35) 0%, rgba(28, 61, 46, 0.12) 45%, transparent 72%);
  transform: translate3d(calc((var(--pointer-x) - 50%) * 0.08), calc((var(--pointer-y) - 50%) * -0.08), 0);
}

body::after {
  width: 340px;
  height: 340px;
  left: -140px;
  bottom: 8%;
  background: radial-gradient(circle at 45% 35%, rgba(251, 191, 36, 0.26) 0%, rgba(247, 171, 65, 0.16) 44%, transparent 72%);
  transform: translate3d(calc((var(--pointer-x) - 50%) * -0.06), calc((var(--pointer-y) - 50%) * 0.08), 0);
}

body.feature-page--brewbase {
  --page-accent: rgba(201, 168, 76, 0.22);
  --page-accent-strong: #1c3d2e;
  --page-secondary: rgba(42, 85, 64, 0.2);
  --page-warm: rgba(201, 168, 76, 0.18);
}

body.feature-page--dialiq {
  --page-accent: rgba(42, 85, 64, 0.2);
  --page-accent-strong: #2a5540;
  --page-secondary: rgba(201, 168, 76, 0.2);
  --page-warm: rgba(28, 61, 46, 0.14);
}

body.feature-page--beaniq {
  --page-accent: rgba(42, 85, 64, 0.16);
  --page-accent-strong: #1c3d2e;
  --page-secondary: rgba(201, 168, 76, 0.18);
  --page-warm: rgba(139, 90, 43, 0.16);
}

body.feature-page--tasteiq {
  --page-accent: rgba(201, 168, 76, 0.18);
  --page-accent-strong: #8b5a2b;
  --page-secondary: rgba(28, 61, 46, 0.14);
  --page-warm: rgba(201, 168, 76, 0.22);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
  font-family: "DM Sans", "Sora", "Inter", system-ui, sans-serif;
}

.brand-lockup {
  display: inline-block;
  white-space: nowrap;
  color: inherit;
}

.brand-lockup__iq {
  display: inline-block;
  margin-left: 0.01em;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 0.86em;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: #8a7238;
  transform: translateY(-0.03em);
  font-variation-settings: "SOFT" 70;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.brand-lockup--eyebrow .brand-lockup__iq {
  font-size: 0.92em;
  color: currentColor;
  transform: translateY(-0.01em);
  text-shadow: none;
}

p {
  margin: 0;
}

ul {
  margin: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1360px, 94vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(255, 252, 247, 0.88);
  border-bottom: 1px solid rgba(216, 232, 218, 0.95);
}

.topbar__row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--teal) 68%, var(--amber) 100%);
  box-shadow: 0 10px 24px rgba(28, 61, 46, 0.22);
  flex: none;
}

.brand__mark img {
  width: 20px;
  height: 20px;
}

.brand__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand__title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
}

.brand__sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.15;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--teal) 60%, var(--amber) 100%);
  box-shadow: 0 14px 28px rgba(28, 61, 46, 0.2);
  background-size: 140% 140%;
}

.button--ghost {
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--line);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(200, 220, 205, 0.78);
}

.page-nav {
  padding-bottom: 12px;
}

.page-nav__links {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid rgba(216, 232, 218, 0.84);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  padding: 4px;
  box-shadow: var(--shadow-soft);
}

.page-nav__links::-webkit-scrollbar {
  display: none;
}

.page-nav__links a {
  flex: none;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 10px 14px;
  border-radius: 14px;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.page-nav__links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
}

.page-nav__links a.is-active {
  color: var(--brand-strong);
  background: rgba(238, 244, 238, 0.94);
  box-shadow: inset 0 0 0 1px rgba(200, 220, 205, 0.45);
}

.hero {
  padding: 24px 0 18px;
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.hero > :first-child {
  max-width: 560px;
  padding-top: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(238, 244, 238, 0.95);
  color: var(--brand-strong);
  border: 1px solid rgba(201, 168, 76, 0.35);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(2.15rem, 4.2vw, 4.15rem);
  line-height: 0.92;
  max-width: 12.4ch;
  text-wrap: balance;
}

.hero p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
  max-width: 50ch;
}

.hero__actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-inline-media {
  margin-top: 8px;
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(191, 211, 238, 0.92);
  background:
    radial-gradient(circle at 16% 10%, var(--page-accent), transparent 34%),
    radial-gradient(circle at 84% 18%, var(--page-secondary), transparent 34%),
    radial-gradient(circle at 50% 112%, var(--page-warm), transparent 44%),
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.88), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.98));
  box-shadow: 0 30px 56px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transform: perspective(1400px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translate3d(0, 0, 0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
  isolation: isolate;
}

.hero-inline-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(255,255,255,0.3), transparent 38%, rgba(255,255,255,0.16) 64%, transparent 82%),
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.26), transparent 24%);
  pointer-events: none;
  z-index: 0;
}

.hero-inline-media > * {
  position: relative;
  z-index: 1;
}

.hero-inline-media__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.72);
  background: linear-gradient(180deg, rgba(248,251,255,0.96), rgba(240,246,255,0.92));
}

.hero-inline-media__traffic {
  display: flex;
  gap: 6px;
}

.hero-inline-media__traffic span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fda4af;
}

.hero-inline-media__traffic span:nth-child(2) {
  background: #facc15;
}

.hero-inline-media__traffic span:nth-child(3) {
  background: #4ade80;
}

.hero-inline-media__title {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-inline-media__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.hero-inline-media__status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1c3d2e, #c9a84c);
  box-shadow: 0 0 0 4px rgba(28, 61, 46, 0.12);
}

.hero-inline-media__tabs {
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  overflow-x: auto;
  background: rgba(245, 248, 245, 0.95);
  border-bottom: 1px solid rgba(200, 220, 205, 0.75);
  scrollbar-width: none;
}

.hero-inline-media__tabs::-webkit-scrollbar {
  display: none;
}

.hero-inline-media__tabs span {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-muted, #64748b);
  font-size: 12px;
  font-weight: 700;
  background: transparent;
  white-space: nowrap;
}

.hero-inline-media__tabs span.is-active {
  color: var(--text-primary, #0f172a);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  position: relative;
}

.hero-inline-media__tabs span.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1c3d2e, #c9a84c);
}

.hero-inline-media__viewport {
  position: relative;
  margin: 14px;
  border-radius: 22px;
  border: 1px solid rgba(191, 211, 238, 0.92);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(248, 252, 249, 0.96), rgba(238, 244, 240, 0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.hero-inline-media__viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08), transparent 24%, transparent 76%, rgba(255,255,255,0.1)),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 24px);
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

.hero-inline-media__viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0)),
    linear-gradient(90deg, rgba(255,255,255,0.12), transparent 26%);
  pointer-events: none;
}

.hero-inline-media img,
.hero-inline-media__viewport img {
  width: 100%;
  min-height: 260px;
  max-height: 420px;
  object-fit: cover;
  display: block;
  background: #eef4ee;
}

.hero-inline-media__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.hero-inline-media__metric {
  min-height: 92px;
  border-radius: 18px;
  border: 1px solid rgba(216, 232, 218, 0.96);
  background: rgba(255, 255, 255, 0.84);
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.hero-inline-media:hover {
  border-color: rgba(200, 220, 205, 1);
  box-shadow: 0 36px 68px rgba(15, 23, 42, 0.16);
}

.hero-inline-media:hover .hero-inline-media__metric {
  transform: translateY(-2px);
  border-color: rgba(191, 219, 254, 1);
}

.hero-inline-media__metric strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-inline-media__metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.hero--feature {
  grid-template-columns: minmax(320px, 0.7fr) minmax(520px, 1.08fr);
  align-items: start;
}

.hero--feature > :first-child {
  grid-column: 1;
  max-width: 600px;
}

.hero--feature > .hero-inline-media {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: none;
  margin-top: 18px;
  align-self: start;
}

.hero--feature > .hero-inline-media img {
  min-height: 360px;
  max-height: 500px;
}

.hero--feature > .hero-visual {
  display: none;
}

.hero--overview > .hero-inline-media {
  margin-top: 0;
}

.overview-montage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(247,248,251,0.86), rgba(255,255,255,0.72));
}

.overview-montage > img:first-child {
  grid-row: span 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(191, 211, 238, 0.92);
}

.overview-montage__card {
  border-radius: 18px;
  border: 1px solid rgba(216, 232, 218, 0.96);
  background: rgba(255,255,255,0.86);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  min-height: 0;
}

.overview-montage__card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(191, 211, 238, 0.85);
  flex-shrink: 0;
}

.overview-montage__card strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.overview-montage__card span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.chip-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 640px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-visual {
  position: relative;
  border-radius: 30px;
  min-height: 620px;
  padding: 18px;
  border: 1px solid rgba(191, 211, 238, 0.95);
  background:
    radial-gradient(circle at 22% 18%, rgba(238, 244, 238, 0.72) 0%, rgba(238, 244, 238, 0) 34%),
    radial-gradient(circle at 88% 82%, rgba(253, 230, 138, 0.34) 0%, rgba(253, 230, 138, 0) 28%),
    linear-gradient(180deg, rgba(244, 248, 255, 0.98) 0%, rgba(255, 249, 242, 0.98) 100%);
  box-shadow: var(--shadow-hero);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  top: -112px;
  right: -86px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.24) 0%, rgba(201, 168, 76, 0.04) 58%, transparent 72%);
  pointer-events: none;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 34%);
  pointer-events: none;
}

.hero-visual > * {
  flex: 1 1 auto;
}

.app-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(191, 211, 238, 0.95);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 26px 46px rgba(15, 23, 42, 0.12);
  min-height: 100%;
}

.app-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0, rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, rgba(238, 244, 238, 0.12), transparent 34%);
  pointer-events: none;
}

.app-frame::after {
  content: "";
  position: absolute;
  inset: auto -14% -20% 42%;
  height: 42%;
  background: radial-gradient(circle at center, rgba(28, 61, 46, 0.08) 0%, rgba(28, 61, 46, 0) 70%);
  pointer-events: none;
}

.app-frame__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(216, 232, 218, 0.92);
  background: linear-gradient(180deg, rgba(240, 246, 255, 0.9), rgba(251, 252, 255, 0.92));
}

.app-frame__traffic {
  display: flex;
  gap: 6px;
}

.app-frame__traffic span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fda4af;
}

.app-frame__traffic span:nth-child(2) {
  background: #facc15;
}

.app-frame__traffic span:nth-child(3) {
  background: #4ade80;
}

.app-frame__title {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.app-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(216, 232, 218, 0.92);
  background: rgba(255, 255, 255, 0.82);
}

.app-tabs::-webkit-scrollbar {
  display: none;
}

.app-tab {
  flex: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 11px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.app-tab.is-active {
  color: var(--brand-strong);
  background: rgba(238, 244, 238, 0.96);
  border-color: rgba(200, 220, 205, 0.42);
}

.app-grid {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.app-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-grid--stack {
  grid-template-columns: minmax(0, 1fr);
}

.hero-media {
  padding: 14px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.app-card {
  border-radius: 18px;
  border: 1px solid rgba(216, 232, 218, 0.96);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.95));
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 220, 205, 0.8);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09);
}

.app-card--warm {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(250, 246, 238, 0.96));
}

.app-card--mint {
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.98), rgba(248, 255, 253, 0.94));
}

.app-card--blue {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(248, 251, 255, 0.95));
}

.app-card h3 {
  font-size: 15px;
  line-height: 1.2;
}

.app-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.app-card__meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.metric {
  border-radius: 14px;
  border: 1px solid rgba(191, 211, 238, 0.9);
  background: rgba(255, 255, 255, 0.88);
  padding: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.metric strong {
  display: block;
  color: var(--brand-strong);
  font-size: 18px;
  line-height: 1.1;
}

.metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 700;
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: #e8eef7;
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand) 0%, var(--teal) 60%, var(--amber) 100%);
}

.summary-list {
  display: grid;
  gap: 10px;
}

.summary-list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.summary-list__item strong {
  min-width: 88px;
  flex: none;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-list__item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dial {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0 36%, transparent 37%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.18) 0 100%);
  border: 1px solid rgba(191, 211, 238, 0.95);
  box-shadow: inset 0 0 0 12px rgba(239, 246, 255, 0.7);
}

.dial::before {
  content: "";
  position: absolute;
  inset: 11%;
  border-radius: inherit;
  border: 10px solid rgba(191, 211, 238, 0.9);
}

.dial::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: inherit;
  border: 1px solid rgba(200, 220, 205, 0.45);
}

.dial__needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 34%;
  transform-origin: 50% 88%;
  transform: translate(-50%, -86%) rotate(-28deg);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
  box-shadow: 0 0 0 5px rgba(28, 61, 46, 0.08);
}

.dial__needle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--brand);
}

.dial__center {
  position: absolute;
  inset: 39%;
  border-radius: 999px;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid rgba(200, 220, 205, 0.55);
  box-shadow: 0 8px 18px rgba(28, 61, 46, 0.12);
}

.dial__label {
  position: absolute;
  inset: auto 0 12%;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--brand-strong);
}

.trend-chart {
  position: relative;
  height: 150px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(216, 232, 218, 0.96);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.trend-chart::before {
  content: "";
  position: absolute;
  inset: 18px 14px;
  background:
    linear-gradient(to right, rgba(226, 232, 240, 0.7) 1px, transparent 1px) 0 0 / 20% 100%,
    linear-gradient(to top, rgba(226, 232, 240, 0.7) 1px, transparent 1px) 0 0 / 100% 25%;
}

.trend-chart__line,
.trend-chart__line--secondary {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--teal) 60%, var(--amber) 100%);
  transform-origin: left center;
  clip-path: polygon(0 72%, 11% 70%, 21% 58%, 34% 61%, 47% 44%, 58% 40%, 69% 52%, 80% 48%, 92% 36%, 100% 28%, 100% 100%, 0 100%);
  top: 58px;
}

.trend-chart__line--secondary {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.75), rgba(245, 158, 11, 0.24));
  top: 88px;
  clip-path: polygon(0 52%, 10% 56%, 20% 62%, 34% 64%, 48% 68%, 60% 70%, 74% 73%, 88% 77%, 100% 79%, 100% 100%, 0 100%);
}

.trend-chart__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.96);
  border: 1px solid rgba(253, 186, 116, 0.9);
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
}

.phone-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 12px;
  align-items: center;
}

.beaniq-handoff-intro {
  margin-top: 18px;
  margin-bottom: 14px;
  display: grid;
  gap: 8px;
  max-width: 58ch;
}

.beaniq-handoff-intro__eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.95);
  background: rgba(239, 246, 255, 0.82);
  color: var(--brand-strong);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.beaniq-handoff-intro__copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.beaniq-handoff-stage {
  position: relative;
  padding: 18px;
  border-radius: 30px;
  border: 1px solid rgba(191, 211, 238, 0.88);
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 168, 76, 0.12), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(42, 85, 64, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.52), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(243, 248, 255, 0.98));
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.beaniq-handoff-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.16), transparent 18%, transparent 82%, rgba(255,255,255,0.18)),
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 34%);
  pointer-events: none;
}

.phone-stage__phone,
.phone-stage__desktop {
  position: relative;
  min-height: 286px;
  border-radius: 24px;
  border: 1px solid rgba(191, 211, 238, 0.95);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248, 251, 255, 0.96)),
    radial-gradient(circle at top right, rgba(96,165,250,0.08), transparent 34%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.phone-stage__phone::before,
.phone-stage__desktop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.phone-stage__phone {
  padding: 16px;
}

.phone-stage__desktop {
  padding: 16px;
}

.phone-stage__arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(28, 61, 46, 0.15), rgba(42, 85, 64, 0.14));
  border: 1px solid rgba(200, 220, 205, 0.5);
  color: var(--brand-strong);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(28, 61, 46, 0.12);
}

.phone-screen {
  height: 100%;
  border-radius: 20px;
  border: 1px solid rgba(191, 211, 238, 0.95);
  background:
    linear-gradient(180deg, rgba(240, 246, 255, 0.98), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at top, rgba(255,255,255,0.42), transparent 40%);
  padding: 14px;
}

.phone-screen__camera {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.beaniq-inline-chip {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(37,99,235,0.1);
  color: var(--brand-strong);
}

.phone-screen__preview {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(191, 211, 238, 0.95);
  background: linear-gradient(180deg, #8b5e34 0%, #5f3b25 100%);
  min-height: 144px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.phone-screen__preview--media {
  min-height: 220px;
}

.phone-screen__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-screen__actions {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.phone-screen__button,
.phone-screen__button--ghost {
  min-height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}

.phone-screen__button {
  background: linear-gradient(135deg, var(--brand) 0%, var(--teal) 80%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(28, 61, 46, 0.16);
}

.phone-screen__button--ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted-strong);
}

.phone-screen__hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.beaniq-desktop-panel {
  padding: 16px;
  display: grid;
  gap: 12px;
  height: 100%;
}

.beaniq-desktop-panel__title {
  font-size: 11px;
  font-weight: 900;
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.beaniq-desktop-panel__footer {
  margin-top: auto;
}

.beaniq-save-button {
  border-radius: 14px;
  font-size: 13px;
  min-height: 44px;
}

.callout {
  margin-top: 20px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(191, 211, 238, 0.9);
  background: linear-gradient(145deg, rgba(240, 253, 250, 0.88) 0%, rgba(239, 246, 255, 0.92) 48%, rgba(255, 247, 237, 0.9) 100%);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transform: perspective(1200px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.callout::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -80px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.12) 58%, transparent 72%);
  pointer-events: none;
}

.callout h2,
.section__title {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
}

.callout p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 66ch;
}

.callout__actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.section {
  padding-top: 32px;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}

.section__sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
  max-width: 70ch;
}

.card-grid {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border-radius: 22px;
  border: 1px solid rgba(216, 232, 218, 0.96);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 252, 255, 0.95));
  padding: 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  transform: perspective(1200px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(28, 61, 46, 0.75), rgba(42, 85, 64, 0.65), rgba(199, 119, 63, 0.65));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.52), transparent 34%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 220, 205, 0.8);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.09);
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  opacity: 1;
}

.card--warm {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.99), rgba(250, 246, 238, 0.95));
}

.card--mint {
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.99), rgba(248, 255, 253, 0.95));
}

.card--blue {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.99), rgba(248, 251, 255, 0.95));
}

.card h3 {
  font-size: 16px;
}

.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.66;
}

.card ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.82;
  font-size: 14px;
}

.flow {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.flow-step {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(216, 232, 218, 0.96);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  transform: perspective(1200px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
}

.flow-step:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 220, 205, 0.78);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.flow-step__num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--teal) 80%);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.flow-step h3 {
  margin-top: 10px;
  font-size: 15px;
}

.flow-step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.64;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.timeline__item {
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(216, 232, 218, 0.96);
  background: rgba(248, 251, 255, 0.88);
}

.timeline__title {
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
}

.timeline__sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.scan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.scan-chip {
  border-radius: 14px;
  border: 1px solid rgba(191, 211, 238, 0.9);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 11px;
}

.scan-chip strong {
  display: block;
  font-size: 12px;
  color: var(--brand-strong);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scan-chip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.footer {
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 13px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.footer a {
  color: var(--brand-strong);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  animation: page-reveal 0.6s ease forwards;
}

[data-reveal="2"] {
  animation-delay: 0.08s;
}

[data-reveal="3"] {
  animation-delay: 0.16s;
}

[data-reveal="4"] {
  animation-delay: 0.24s;
}

@keyframes page-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button--primary,
  .brand__mark {
    animation: float-glow 8s ease-in-out infinite;
  }

  .hero-visual,
  .callout::after {
    animation: drift 12s ease-in-out infinite;
  }
}

@keyframes float-glow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes marketing-sheen {
  0%, 12% {
    transform: translateX(-120%);
    opacity: 0;
  }
  20%, 36% {
    transform: translateX(120%);
    opacity: 1;
  }
  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .hero,
  .phone-stage,
  .app-grid--two,
  .card-grid--2,
  .card-grid--3,
  .card-grid--4,
  .flow {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .hero {
    gap: 18px;
  }

  .hero > :first-child {
    padding-top: 0;
  }

  .hero-visual {
    min-height: 0;
  }

  .hero--feature > .hero-inline-media,
  .hero--feature > .hero-visual {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
  }

  .hero--feature > .hero-inline-media img {
    min-height: 220px;
    max-height: 320px;
  }

  .overview-montage {
    grid-template-columns: 1fr;
  }

  .overview-montage > img:first-child {
    height: 240px;
  }

  .overview-montage__card img {
    height: 160px;
  }

  .hero-inline-media__details {
    grid-template-columns: 1fr;
  }

  .hero-inline-media,
  .card,
  .flow-step,
  .callout,
  .system-diagram {
    transform: none !important;
  }
}


@media (min-width: 981px) {
  .app-grid--two .hero-media {
    grid-row: span 2;
  }
}

@media (max-width: 720px) {
  .topbar__row {
    min-height: 58px;
    align-items: start;
    padding: 12px 0 10px;
    flex-direction: column;
  }

  .topbar__actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .brand__sub {
    max-width: 28ch;
  }

  .hero {
    padding-top: 24px;
  }

  .hero h1 {
    line-height: 1.02;
  }

  .section {
    padding-top: 22px;
  }

  .callout {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  body::before,
  body::after {
    opacity: 0.42;
  }

  .page-shell {
    width: min(1360px, calc(100vw - 20px));
  }

  .topbar {
    padding-top: env(safe-area-inset-top);
  }

  .topbar__row {
    gap: 10px;
  }

  .brand__sub {
    display: none;
  }

  .topbar__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .page-nav {
    padding-bottom: 10px;
  }

  .page-nav__links {
    border-radius: 14px;
    padding: 3px;
  }

  .page-nav__links a {
    padding: 9px 11px;
    font-size: 12px;
  }

  .hero {
    padding-top: 14px;
    gap: 12px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 10.5vw, 2.5rem);
    line-height: 0.98;
    max-width: 13ch;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.55;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero-inline-media {
    border-radius: 20px;
  }

  .hero-inline-media__bar {
    padding: 10px 12px;
  }

  .hero-inline-media__status {
    font-size: 10px;
  }

  .hero-inline-media__viewport {
    margin: 10px;
    border-radius: 16px;
  }

  .hero-inline-media__details {
    display: none;
  }

  .brewbase-demo {
    min-height: 240px;
    padding: 12px;
  }

  .bd-row {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    margin-top: 16px;
    border-radius: 14px;
  }

  .stat {
    padding: 12px 8px;
  }

  .section {
    padding-top: 18px;
  }

  .section__sub {
    font-size: 14px;
    line-height: 1.58;
  }

  .card {
    padding: 16px;
    border-radius: 18px;
  }

  .callout {
    padding: 16px;
    border-radius: 18px;
  }

  .callout__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* =============================================
   Stats bar
   ============================================= */

.stats-bar {
  display: flex;
  align-items: stretch;
  margin: 22px 0 0;
  border-radius: 18px;
  border: 1px solid rgba(216, 232, 218, 0.9);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}

.stats-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.46), transparent);
  transform: translateX(-120%);
  animation: marketing-sheen 7s ease-in-out infinite;
  pointer-events: none;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  text-align: center;
  border-right: 1px solid rgba(216, 232, 218, 0.7);
}

.stat:last-child {
  border-right: none;
}

.stat__num {
  display: block;
  font-size: 18px;
  font-weight: 900;
  font-family: "Sora", "Inter", system-ui, sans-serif;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat__label {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.3;
}

/* =============================================
   Card icon
   ============================================= */

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(216, 232, 218, 0.9);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  color: var(--brand-strong);
  flex-shrink: 0;
}

.card--mint .card-icon {
  color: var(--teal);
  background: rgba(240, 253, 250, 0.95);
  border-color: rgba(94, 234, 212, 0.5);
}

.card--warm .card-icon {
  color: var(--amber);
  background: rgba(255, 247, 237, 0.95);
  border-color: rgba(253, 186, 116, 0.5);
}

.card--blue .card-icon {
  color: var(--brand-strong);
  background: rgba(239, 246, 255, 0.95);
  border-color: rgba(200, 220, 205, 0.5);
}

.card-icon svg {
  display: block;
}

/* =============================================
   System diagram (learn-more)
   ============================================= */

.system-diagram {
  margin-top: 28px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(216, 232, 218, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transform: perspective(1200px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.system-svg {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.system-diagram__caption {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   Confidence track (DialIQ signal maturity)
   ============================================= */

.confidence-track {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.confidence-row {
  display: grid;
  grid-template-columns: 110px 1fr 42px;
  gap: 10px;
  align-items: center;
}

.confidence-row__label {
  font-size: 11px;
  font-weight: 900;
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.confidence-row__pct {
  font-size: 12px;
  font-weight: 900;
  color: var(--brand-strong);
  text-align: right;
}

/* =============================================
   BrewBase animated demo (learn-more hero)
   ============================================= */

@keyframes bd-fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes bd-fillBar {
  from { width: 0; }
  to   { width: var(--bd-fill, 60%); }
}
@keyframes bd-pulse {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

/* 9-second loop: appear → hold → fade → pause */
@keyframes bd-loop-a {
  0%       { opacity: 0; transform: translateY(10px); }
  6%, 78%  { opacity: 1; transform: translateY(0);    }
  86%      { opacity: 0; transform: translateY(-4px); }
  100%     { opacity: 0; transform: translateY(10px); }
}
@keyframes bd-loop-b {
  0%, 12%  { opacity: 0; transform: translateY(10px); }
  20%, 78% { opacity: 1; transform: translateY(0);    }
  86%      { opacity: 0; transform: translateY(-4px); }
  100%     { opacity: 0; transform: translateY(10px); }
}
@keyframes bd-loop-c {
  0%, 22%  { opacity: 0; transform: translateY(10px); }
  30%, 78% { opacity: 1; transform: translateY(0);    }
  86%      { opacity: 0; transform: translateY(-4px); }
  100%     { opacity: 0; transform: translateY(10px); }
}
@keyframes bd-loop-r1 {
  0%, 32%  { opacity: 0; transform: translateX(-6px); }
  39%, 78% { opacity: 1; transform: translateX(0);    }
  86%      { opacity: 0; }
  100%     { opacity: 0; transform: translateX(-6px); }
}
@keyframes bd-loop-r2 {
  0%, 40%  { opacity: 0; transform: translateX(-6px); }
  47%, 78% { opacity: 1; transform: translateX(0);    }
  86%      { opacity: 0; }
  100%     { opacity: 0; transform: translateX(-6px); }
}
@keyframes bd-loop-r3 {
  0%, 48%  { opacity: 0; transform: translateX(-6px); }
  55%, 78% { opacity: 1; transform: translateX(0);    }
  86%      { opacity: 0; }
  100%     { opacity: 0; transform: translateX(-6px); }
}
@keyframes bd-bar-loop {
  0%, 5%  { width: 0; }
  20%, 80% { width: var(--bd-fill, 60%); }
  88%, 100% { width: 0; }
}

.brewbase-demo {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f2f6f3;
  min-height: 290px;
}

.bd-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bd-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  padding: 12px 14px;
  animation: bd-loop-a 9s ease infinite;
}

.bd-card--rec {
  background: rgba(238, 244, 238, 0.98);
  border-color: rgba(201, 168, 76, 0.4);
  animation: bd-loop-b 9s ease infinite;
}

.bd-card--shots {
  animation: bd-loop-c 9s ease infinite;
}

.bd-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 7px;
  font-family: "Inter", system-ui, sans-serif;
}

.bd-bean-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  font-family: "Inter", system-ui, sans-serif;
  margin-bottom: 2px;
}

.bd-bean-meta {
  font-size: 11px;
  color: #64748b;
  font-family: "Inter", system-ui, sans-serif;
  margin-bottom: 9px;
}

.bd-freshbar {
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.bd-freshbar span {
  display: block;
  height: 100%;
  background: #22c55e;
  border-radius: 3px;
  width: 0;
  animation: bd-bar-loop 9s ease infinite;
  --bd-fill: 47%;
}

.bd-rec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.bd-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: bd-pulse 1.5s ease infinite;
}

.bd-rec-move {
  font-size: 11px;
  color: #2a5540;
  font-family: "DM Sans", "Inter", system-ui, sans-serif;
  margin-bottom: 4px;
}

.bd-rec-value {
  font-size: 17px;
  font-weight: 700;
  color: #0f2118;
  font-family: "Inter", system-ui, sans-serif;
  margin-bottom: 9px;
  letter-spacing: -0.03em;
}

.bd-rec-value span {
  color: rgba(201, 168, 76, 0.9);
  margin: 0 3px;
}

.bd-rec-bar {
  height: 4px;
  background: rgba(201, 168, 76, 0.14);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}

.bd-rec-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1c3d2e, #c9a84c);
  border-radius: 2px;
  width: 0;
  animation: bd-bar-loop 9s ease infinite;
  --bd-fill: 78%;
}

.bd-rec-conf {
  font-size: 10px;
  color: #6a8a70;
  font-weight: 600;
  font-family: "DM Sans", "Inter", system-ui, sans-serif;
}

.bd-shot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f8fafc;
  margin-top: 6px;
  font-family: "Inter", system-ui, sans-serif;
}

.bd-shot:nth-child(2) { animation: bd-loop-r1 9s ease infinite; }
.bd-shot:nth-child(3) { animation: bd-loop-r2 9s ease infinite; }
.bd-shot:nth-child(4) { animation: bd-loop-r3 9s ease infinite; }

.bd-shot-name {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  min-width: 38px;
}

.bd-shot-time {
  font-size: 11px;
  color: #64748b;
  flex: 1;
}

.bd-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.bd-badge--sour {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.bd-badge--ok {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.bd-shot-grind {
  font-size: 11px;
  color: #94a3b8;
  min-width: 28px;
  text-align: right;
}

/* =============================================
   Bean scan animation (BeanIQ)
   ============================================= */

.scan-preview {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, #2d1a0e 0%, #1a0f07 100%);
  min-height: 160px;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(28, 61, 46, 0.7) 40%, rgba(201, 168, 76, 0.7) 60%, transparent 95%);
  animation: scan-sweep 2.4s ease-in-out infinite;
}

@keyframes scan-sweep {
  0%   { top: 15%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 85%; opacity: 0; }
}

.scan-result-row {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.scan-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(28, 61, 46, 0.25);
  border: 1px solid rgba(200, 220, 205, 0.38);
  color: rgba(238, 244, 238, 0.92);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* =============================================
   Responsive rules for new components
   ============================================= */

@media (max-width: 980px) {
  .stats-bar {
    flex-wrap: wrap;
  }

  .stat {
    flex: 1 1 calc(50% - 1px);
    border-bottom: 1px solid rgba(216, 232, 218, 0.7);
  }

  .stat:nth-child(2n) {
    border-right: none;
  }

  .stat:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .confidence-row {
    grid-template-columns: 80px 1fr 36px;
  }
}

@media (max-width: 720px) {
  .stats-bar {
    border-radius: 14px;
  }

  .system-diagram {
    padding: 14px;
  }
}
