/* =========================================================
   Hero illustration V3 — splitting flow, clean layout
   ========================================================= */
.hi3 {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--gray-200);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 30px 60px rgba(28,34,64,0.12),
    0 6px 16px rgba(28,34,64,0.06);
  overflow: hidden;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
}

/* Stage = SVG + HTML overlay, sized to viewBox aspect ratio */
.hi3-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 560 / 560;
}
.hi3-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hi3-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hi3-puck-orbit { animation: hi3-spin 22s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes hi3-spin { to { transform: rotate(360deg); } }

/* Floating deposit chip — sits above the puck, gives the $amount + source */
.hi3-chip {
  position: absolute;
  top: 9.6%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 7px 14px 7px 12px;
  box-shadow: 0 6px 14px rgba(28,34,64,0.08);
  white-space: nowrap;
  animation: hi3-chip-in .5s cubic-bezier(.2,.6,.2,1);
}
@keyframes hi3-chip-in {
  from { opacity: 0; transform: translate(-50%, -4px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.hi3-chip-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-500);
  animation: hi3-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.hi3-chip-amt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--charcoal-900);
  letter-spacing: -0.01em;
}
.hi3-chip-sep {
  color: var(--charcoal-400);
  font-weight: 500;
}
.hi3-chip-src {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--charcoal-500);
  font-weight: 500;
}

/* Auto-split tag — placed beside the splitter hub */
.hi3-hub-tag {
  position: absolute;
  top: calc(39.3% - 11px);
  left: calc(50% + 14px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Tier label row — sits below vessels (vessels end at y=470 in 560-tall viewBox) */
.hi3-tier-row {
  position: absolute;
  top: 85.4%;
  left: 0;
  right: 0;
}
.hi3-tier-cell {
  position: absolute;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.hi3-tier-pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1;
  animation: hi3-fade .5s cubic-bezier(.2,.6,.2,1);
}
.hi3-tier-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  color: var(--charcoal-700);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Caption strip — explains the metaphor */
.hi3-caption {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(243,249,244,0.5), rgba(243,249,244,0));
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.hi3-caption-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.hi3-caption-text {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.45;
  color: var(--charcoal-700);
}
.hi3-caption-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--charcoal-900);
  font-size: 12.5px;
}

/* Header */
.hi3-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fafbfc;
  border-bottom: 1px solid var(--gray-200);
}
.hi3-header-l { display: flex; align-items: center; gap: 12px; }
.hi3-dot-cluster { display: flex; gap: 5px; }
.hi3-dot-cluster span {
  width: 9px; height: 9px; border-radius: 50%;
  background: #e1e5ec;
}
.hi3-dot-cluster span:nth-child(1) { background: #ff5f57; }
.hi3-dot-cluster span:nth-child(2) { background: #ffbd2e; }
.hi3-dot-cluster span:nth-child(3) { background: #28c940; }
.hi3-app-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  color: var(--charcoal-700);
  letter-spacing: 0.01em;
}
.hi3-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--green-700);
  background: var(--green-50);
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--green-100);
}
.hi3-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-500);
  animation: hi3-pulse 1.6s ease-in-out infinite;
}
@keyframes hi3-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* Common eyebrow */
.hi3-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-500);
  line-height: 1;
}
.hi3-eyebrow.muted { color: var(--charcoal-400); }

/* Scenario strip */
.hi3-scenario {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--gray-100);
  gap: 16px;
}
.hi3-scenario-l, .hi3-scenario-r {
  display: flex; flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.hi3-scenario-r { text-align: right; }
.hi3-invariant {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--charcoal-900);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  flex-shrink: 0;
  align-self: center;
}
.hi3-inv-icon {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--green-400);
  line-height: 1;
}
.hi3-inv-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.hi3-scenario-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--charcoal-900);
  line-height: 1.1;
  animation: hi3-fade .55s cubic-bezier(.2,.6,.2,1);
}
.hi3-scenario-sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--charcoal-500);
  line-height: 1.2;
  animation: hi3-fade .55s cubic-bezier(.2,.6,.2,1);
}
.hi3-deposit-amt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--green-700);
  line-height: 1;
  animation: hi3-fade .55s cubic-bezier(.2,.6,.2,1);
}
.hi3-deposit-src {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--charcoal-500);
  line-height: 1.2;
  animation: hi3-fade .55s cubic-bezier(.2,.6,.2,1);
}
@keyframes hi3-fade {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Split block */
.hi3-split-block {
  padding: 14px 18px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.hi3-split-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.hi3-split-total {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  color: var(--green-700);
  letter-spacing: 0.06em;
}
.hi3-bar {
  display: flex;
  width: 100%;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--gray-100);
  box-shadow: inset 0 1px 2px rgba(28,34,64,0.06);
}
.hi3-bar-seg {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width .9s cubic-bezier(.2,.6,.2,1);
  position: relative;
  overflow: hidden;
}
.hi3-bar-pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
.hi3-bar-legend {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.hi3-legend-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.hi3-swatch {
  width: 18px; height: 3px;
  border-radius: 2px;
  margin-bottom: 2px;
}
.hi3-legend-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10.5px;
  color: var(--charcoal-700);
  letter-spacing: 0.01em;
}
.hi3-legend-val {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--charcoal-900);
  font-weight: 600;
  transition: color .3s;
}

/* Reserve levels */
.hi3-reserves {
  padding: 14px 18px 14px;
}
.hi3-reserves-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.hi3-reserve-row {
  display: grid;
  grid-template-columns: 70px 1fr 38px;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}
.hi3-reserve-row + .hi3-reserve-row {
  border-top: 1px solid var(--gray-100);
}
.hi3-reserve-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  color: var(--charcoal-900);
}
.hi3-reserve-track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--gray-100);
  overflow: visible;
}
.hi3-reserve-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  border-radius: 3px;
  transition: width .9s cubic-bezier(.2,.6,.2,1);
}
.hi3-reserve-target {
  position: absolute;
  top: -3px; bottom: -3px;
  right: 0;
  width: 1.5px;
  background: var(--charcoal-400);
  opacity: 0.5;
}
.hi3-reserve-pct {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  color: var(--charcoal-700);
  text-align: right;
}

/* Footer */
.hi3-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #fafbfc;
  border-top: 1px solid var(--gray-200);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10.5px;
  color: var(--charcoal-500);
  letter-spacing: 0.04em;
}
.hi3-footer-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-500);
  animation: hi3-pulse 1.6s ease-in-out infinite;
}
.hi3-counter {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  color: var(--charcoal-400);
  letter-spacing: 0.04em;
}

/* Smaller layouts */
@media (max-width: 520px) {
  .hi3-bar-legend { grid-template-columns: repeat(3, 1fr); }
  .hi3-scenario-name { font-size: 16px; }
  .hi3-deposit-amt { font-size: 19px; }
}

/* =========================================================
   Hero illustration V2 — compact, responsive, container-driven
   ========================================================= */
.hero-illo-v2 {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1.05;
  margin: 0 auto;
  background: #fdfdfd;
  border-radius: 20px;
  border: 1px solid rgba(225, 229, 236, 0.7);
  box-shadow: 0 30px 60px rgba(28, 34, 64, 0.12);
  overflow: hidden;
  /* container query unit cqw scales every dimension below */
  container-type: inline-size;
}
.hero-illo-svg-v2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-illo-overlay {
  position: absolute;
  inset: 0;
  font-family: var(--font-body);
  pointer-events: none;
}

/* Top row: scenario + invariant pill */
.hi-top-row {
  position: absolute;
  top: 3.2cqw;
  left: 3.2cqw;
  right: 3.2cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
}
.hi-scenario {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 1.4cqw;
  padding: 1.4cqw 2.2cqw 1.4cqw 1.8cqw;
  box-shadow: 0 1px 4px rgba(28,34,64,0.05);
  min-width: 0;
  flex: 0 1 auto;
  animation: hi-fade .5s cubic-bezier(.2,.6,.2,1);
}
.hi-pulse-dot {
  width: 1.4cqw; height: 1.4cqw;
  min-width: 1.4cqw;
  border-radius: 50%;
  background: var(--green-500);
  flex-shrink: 0;
  animation: hi-pulse 1.6s ease-in-out infinite;
}
.hi-pulse-dot.small { width: 1.1cqw; height: 1.1cqw; min-width: 1.1cqw; }
@keyframes hi-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}
.hi-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7cqw;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-500);
  line-height: 1;
}
.hi-scenario-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4cqw;
  color: var(--charcoal-900);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-top: 0.4cqw;
  white-space: nowrap;
}

/* Invariant pill — compact, single-line */
.hi-invariant {
  display: inline-flex;
  align-items: baseline;
  gap: 0.8cqw;
  background: var(--charcoal-900);
  color: #fff;
  border-radius: 1.4cqw;
  padding: 1.6cqw 2cqw;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.hi-inv-icon {
  font-size: 2.2cqw;
  font-weight: 600;
  color: var(--green-400);
  line-height: 1;
}
.hi-inv-val {
  font-size: 2.4cqw;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* Center deposit puck */
.hi-deposit-wrap {
  position: absolute;
  top: 16cqw;
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1cqw;
}
.hi-deposit {
  width: 22cqw;
  height: 22cqw;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  box-shadow:
    0 0 0 1cqw rgba(46,145,67,0.06),
    0 1.5cqw 4cqw rgba(46,145,67,0.10);
  animation: hi-pop .55s cubic-bezier(.2,.7,.2,1.2);
}
@keyframes hi-pop {
  0%   { transform: scale(0.94); opacity: 0; }
  100% { transform: scale(1);    opacity: 1; }
}
.hi-deposit::before {
  content: "";
  position: absolute;
  inset: -0.4cqw;
  border-radius: 50%;
  border: 1.5px dashed var(--green-500);
  opacity: 0.5;
  animation: hi-spin 16s linear infinite;
}
@keyframes hi-spin {
  to { transform: rotate(360deg); }
}
.hi-deposit-amt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4cqw;
  letter-spacing: -0.02em;
  color: var(--charcoal-900);
  line-height: 1;
  margin-top: 0.6cqw;
}
.hi-deposit-src {
  font-family: var(--font-body);
  font-size: 1.8cqw;
  color: var(--charcoal-500);
  margin-top: 0.6cqw;
  line-height: 1.2;
  max-width: 16cqw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hi-deposit-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9cqw;
  color: var(--charcoal-700);
  letter-spacing: 0.04em;
  margin-top: 0.4cqw;
  animation: hi-fade .5s cubic-bezier(.2,.6,.2,1);
}

/* Auto-split tag */
.hi-split-tag {
  position: absolute;
  top: 47cqw;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7cqw;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 0.7cqw 2cqw;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 2;
}

/* Tier label row */
.hi-tier-row {
  position: absolute;
  top: 81cqw;
  left: 6cqw;
  right: 6cqw;
  display: flex;
  justify-content: center;
}
.hi-tier {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.hi-tier-pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4cqw;
  letter-spacing: -0.01em;
  line-height: 1;
  animation: hi-fade .5s cubic-bezier(.2,.6,.2,1);
}
.hi-tier-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.8cqw;
  color: var(--charcoal-900);
  margin-top: 0.6cqw;
  white-space: nowrap;
}
.hi-tier-dol {
  font-family: var(--font-mono);
  font-size: 1.6cqw;
  color: var(--charcoal-500);
  margin-top: 0.4cqw;
  white-space: nowrap;
}

@keyframes hi-fade {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Footer */
.hi-footer {
  position: absolute;
  bottom: 1.6cqw;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  padding: 0 6cqw;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7cqw;
  color: var(--charcoal-500);
  letter-spacing: 0.04em;
}
.hi-counter {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.6cqw;
  color: var(--charcoal-400);
}

/* Fallback for browsers without container queries */
@supports not (container-type: inline-size) {
  .hi-eyebrow      { font-size: 9px; }
  .hi-scenario-name { font-size: 13px; }
  .hi-inv-val, .hi-inv-icon { font-size: 13px; }
  .hi-deposit-amt   { font-size: 22px; }
  .hi-deposit-src   { font-size: 10.5px; }
  .hi-deposit-sub   { font-size: 11px; }
  .hi-tier-pct      { font-size: 13px; }
  .hi-tier-name     { font-size: 10.5px; }
  .hi-tier-dol      { font-size: 9.5px; }
  .hi-split-tag     { font-size: 9.5px; }
  .hi-footer        { font-size: 10px; }
  .hi-counter       { font-size: 9.5px; }
}

/* =========================================================
   Hero illustration (interactive metaphor SVG)
   ========================================================= */
.hero-illo {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(28, 34, 64, 0.12));
}
.hero-illo-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  border: 1px solid rgba(225, 229, 236, 0.7);
  background: #fff;
}
.hero-illo-orbit {
  transform-origin: center;
  animation: hero-orbit 16s linear infinite;
}
@keyframes hero-orbit {
  to { transform: rotate(360deg); }
}
.hero-illo-deplabel {
  animation: hero-deplabel 5.2s ease-in-out infinite;
}
@keyframes hero-deplabel {
  0%   { opacity: 0; transform: translateX(-8px); }
  8%   { opacity: 1; transform: translateX(0); }
  85%  { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(0); }
}
.hero-illo-scenario {
  animation: hero-scenario-fade 0.6s cubic-bezier(.2,.6,.2,1);
  transform-origin: 110px 44px;
  transform-box: fill-box;
}
@keyframes hero-scenario-fade {
  0%   { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero-illo-pulse {
  animation: hero-pulse-dot 1.6s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes hero-pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* =========================================================
   Device Showcase
   ========================================================= */
.device-showcase {
  padding: 120px 0 100px;
  background: linear-gradient(180deg, #fff 0%, var(--green-50) 50%, #fff 100%);
  position: relative;
  overflow: hidden;
}
.device-stage {
  position: relative;
  margin-top: 60px;
  padding: 0 24px;
}
.device-stage-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(46,145,67,0.18), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}
.device-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.device-desktop {
  flex: 1;
  max-width: 880px;
  transform: perspective(1800px) rotateY(4deg) rotateX(2deg);
  transform-origin: right center;
  filter: drop-shadow(0 40px 80px rgba(28,34,64,0.18));
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.device-desktop:hover {
  transform: perspective(1800px) rotateY(2deg) rotateX(1deg);
}
.device-mobile {
  flex-shrink: 0;
  margin-bottom: -40px;
  margin-left: -80px;
  transform: perspective(1200px) rotateY(-6deg) translateY(20px);
  filter: drop-shadow(0 30px 60px rgba(28,34,64,0.22));
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.device-mobile:hover {
  transform: perspective(1200px) rotateY(-3deg) translateY(10px);
}
@media (max-width: 1100px) {
  .device-row { flex-direction: column; align-items: center; }
  .device-desktop { transform: none; max-width: 100%; }
  .device-desktop:hover { transform: none; }
  .device-mobile { margin: -40px 0 0 0; transform: none; }
  .device-mobile:hover { transform: none; }
}

/* Phone frame */
.phone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  background: #1c2240;
  border-radius: 38px;
  padding: 8px;
  box-shadow:
    inset 0 0 0 1.5px #3a4068,
    0 0 0 1.5px #2c3358;
}
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 22px;
  background: #1c2240;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: #f7f8fa;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  color: var(--charcoal-900);
}
.phone-status-icons { display: flex; gap: 4px; align-items: center; font-size: 10px; }
.phone-signal {
  width: 14px; height: 8px;
  background: linear-gradient(90deg, var(--charcoal-900) 0%, var(--charcoal-900) 25%, transparent 25%, transparent 33%, var(--charcoal-900) 33%, var(--charcoal-900) 58%, transparent 58%, transparent 66%, var(--charcoal-900) 66%);
  -webkit-mask: linear-gradient(#000 0 0);
  border-radius: 1px;
}
.phone-battery {
  width: 18px; height: 8px;
  border: 1px solid var(--charcoal-900); border-radius: 2px;
  position: relative;
}
.phone-battery::after {
  content: ""; position: absolute;
  inset: 1px; right: 4px;
  background: var(--charcoal-900);
}

/* App content */
.m-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 18px 14px;
}
.m-greet-sub {
  font-family: var(--font-display);
  font-size: 11px; color: var(--charcoal-500);
  font-weight: 500;
}
.m-greet-name {
  font-family: var(--font-display);
  font-size: 17px; color: var(--charcoal-900);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.m-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}
.m-hero-card {
  margin: 0 14px;
  background: linear-gradient(135deg, var(--charcoal-900) 0%, var(--charcoal-800) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.m-hero-card::before {
  content: ""; position: absolute;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(46,145,67,0.4), transparent 70%);
  top: -50px; right: -50px;
  border-radius: 50%;
}
.m-hero-label {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}
.m-hero-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4px 0;
}
.m-hero-target {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}
.m-hero-bar {
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  margin: 10px 0 10px;
  overflow: hidden;
}
.m-hero-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--green-400), var(--green-500));
  border-radius: 999px;
}
.m-hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  background: rgba(46,145,67,0.18);
  color: #a5d6a7;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.m-dot-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-400);
  animation: hero-pulse-dot 1.4s ease-in-out infinite;
}
.m-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px;
}
.m-stat {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(28,34,64,0.04);
}
.m-stat-label {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--charcoal-500);
}
.m-stat-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal-900);
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.m-stat-trend {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  margin-top: 4px;
}
.m-stat-trend.up { color: var(--green-600); }

.m-section-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 18px 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--charcoal-900);
}
.m-link {
  font-size: 10px;
  color: var(--green-600);
  font-weight: 600;
  cursor: pointer;
}
.m-buckets {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 14px;
}
.m-bucket {
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}
.m-bucket-row {
  display: flex; justify-content: space-between; align-items: center;
}
.m-bucket-name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--charcoal-900);
}
.m-bucket-amt {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--charcoal-900);
}
.m-bucket-bar {
  height: 4px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 4px;
}
.m-bucket-bar > div {
  height: 100%;
  border-radius: 999px;
}
.m-bucket-pct {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}
.m-bucket-target {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--charcoal-500);
}

.m-ai-card {
  margin: 14px;
  background: linear-gradient(135deg, #fdf3e0, #f9e7c1);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid #f1d896;
}
.m-ai-head {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a6010;
}
.m-ai-spark { color: #d99a1a; font-size: 12px; }
.m-ai-body {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--charcoal-900);
  margin: 6px 0 10px;
  line-height: 1.4;
}
.m-ai-actions {
  display: flex; gap: 6px;
}
.m-ai-btn {
  flex: 1;
  border: 0;
  padding: 7px 10px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255,255,255,0.6);
  color: var(--charcoal-700);
}
.m-ai-btn.primary {
  background: var(--charcoal-900);
  color: #fff;
}

.m-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--gray-100);
  padding: 8px 0 14px;
  margin-top: auto;
  position: relative;
}
.m-tab {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 9px;
  color: var(--charcoal-500);
}
.m-tab.active { color: var(--green-600); }
.m-tab-icon { font-size: 13px; }
.m-tab-fab { position: relative; }
.m-fab {
  position: absolute;
  top: -22px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  font-weight: 300;
  box-shadow: 0 8px 18px rgba(46,145,67,0.4);
}

/* Device features */
.device-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
}
.device-feature {
  display: flex; gap: 14px;
  align-items: flex-start;
}
.device-feat-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.device-feat-h {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal-900);
  margin-bottom: 4px;
}
.device-feat-d {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--charcoal-500);
  line-height: 1.55;
}
@media (max-width: 800px) {
  .device-features { grid-template-columns: 1fr; gap: 18px; }
}
