/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--surface-muted);
  color: var(--ink-800);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

svg.fill,
.fill {
  fill: currentColor;
  stroke: none;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ==================== HERO ==================== */
.m-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 3.5rem 0 3rem;
}

/* Rounded gradient panel behind the hero (same treatment as the home page) */
.m-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 140px;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 0;
  border-radius: 0 0 36px 36px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(59, 123, 246, 0.22), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f5f8ff 40%, #dfe9ff 100%);
}

.m-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 140px;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 1;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.m-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.m-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  animation: fadeUp 0.8s var(--ease) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem 0.375rem 0.5rem;
  background-color: var(--surface);
  border: 1px solid #d0e1fd;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-700);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.06);
}

.hero-pill-tag {
  background: var(--brand-600);
  color: #ffffff;
  font-size: 0.675rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.hero-pill-os {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-pill-os svg {
  width: 14px;
  height: 14px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink-900);
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-600);
  margin-bottom: 2rem;
  max-width: 640px;
}

.hero-desc strong {
  color: var(--ink-900);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
  padding: 0 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px -4px rgba(37, 99, 235, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.hero-btn-primary:hover {
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(37, 99, 235, 0.55);
}

.hero-btn-primary svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.5;
  transition: transform 0.2s var(--ease);
}

.hero-btn-primary:hover svg {
  transform: translateX(3px);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 50px;
  padding: 0 1.4rem 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-700);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(11, 19, 36, 0.03);
  transition: all 0.2s ease;
}

.hero-btn-secondary:hover {
  border-color: #cbd5e1;
  color: var(--ink-900);
  transform: translateY(-1px);
}

.play-dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--brand-600);
  background-color: var(--brand-50);
  border-radius: 9px;
}

.play-dot svg {
  width: 13px;
  height: 13px;
  margin-left: 2px;
}

/* App store badges */
.store-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 46px;
  padding: 0 1rem 0 0.85rem;
  color: #ffffff;
  background-color: var(--ink-900);
  border-radius: 11px;
  box-shadow: 0 8px 18px -8px rgba(11, 19, 36, 0.5);
  transition: transform 0.2s var(--ease), background-color 0.2s ease;
}

.store-badge:hover {
  background-color: #1b2740;
  transform: translateY(-2px);
}

.store-badge svg {
  width: 22px;
  height: 22px;
}

.store-badge small {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.1;
  opacity: 0.75;
}

.store-badge b {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
}

/* ==================== DEVICE STAGE ==================== */
.app-stage {
  --s: 1;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: calc(64px * var(--s));
  width: 100%;
  max-width: 1200px;
  padding-top: calc(12px * var(--s));
}

/* Soft floor shadow under the devices */
.stage-floor {
  position: absolute;
  bottom: calc(26px * var(--s));
  left: 50%;
  width: calc(640px * var(--s));
  height: calc(56px * var(--s));
  margin-left: calc(-320px * var(--s));
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(29, 78, 216, 0.2), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

/* Phone + its label, stacked and centred; both phones share the same top edge */
.device-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(22px * var(--s));
  animation: deviceIn 1s var(--ease) both;
}

.device-wrap.is-ios {
  animation-delay: 0.15s;
}

.device-wrap.is-android {
  animation-delay: 0.3s;
}

@keyframes deviceIn {
  from { opacity: 0; transform: translateY(60px); }
}

.device-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-700);
  white-space: nowrap;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 12px -6px rgba(11, 19, 36, 0.2);
}

.device-label svg {
  width: 14px;
  height: 14px;
}

.is-android .device-label svg { color: #16a34a; }

/* All phone internals are sized in em, so one font-size scales the whole mockup */
.device {
  position: relative;
  width: 28em;
  height: 58em;
  font-size: calc(10px * var(--s));
  line-height: 1.35;
  text-align: left;
  animation: deviceFloat 7s ease-in-out infinite;
}

/* Both phones float together so they stay level with each other */
@keyframes deviceFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

/* Screen glare */
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 30;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}

/* ==================== iOS DEVICE ==================== */
.ios-frame {
  position: relative;
  height: 100%;
  padding: 0.45em;
  border-radius: 5.2em;
  background: linear-gradient(145deg, #eef0f4 0%, #b8bec9 30%, #f5f6f8 52%, #9aa2ae 78%, #d9dde3 100%);
  box-shadow:
    0 0 0 1px rgba(11, 19, 36, 0.12),
    0 50px 80px -30px rgba(11, 19, 36, 0.5),
    0 20px 40px -18px rgba(29, 78, 216, 0.35);
}

/* Action + volume buttons (left) and side button (right) */
.ios-frame::before,
.ios-frame::after {
  content: "";
  position: absolute;
  width: 0.35em;
  border-radius: 0.3em;
  background: linear-gradient(90deg, #9aa2ae, #d9dde3);
}

.ios-frame::before {
  top: 10em;
  left: -0.3em;
  height: 2.6em;
  box-shadow: 0 4.4em 0 0 #b3bac5, 0 9.4em 0 0 #b3bac5;
}

.ios-frame::after {
  top: 15em;
  right: -0.3em;
  height: 7.6em;
}

.ios-bezel {
  height: 100%;
  padding: 0.75em;
  border-radius: 4.8em;
  background-color: #07090e;
}

.ios-screen {
  border-radius: 4.05em;
  background-color: #f4f6fb;
}

/* Dynamic Island (expands into a live activity) */
.island {
  position: absolute;
  top: 1em;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.8em;
  width: 8.6em;
  height: 2.6em;
  padding: 0 0.8em;
  overflow: hidden;
  color: #ffffff;
  background-color: #000000;
  border-radius: 2em;
  transform: translateX(-50%);
  transition: width 0.55s var(--ease), height 0.55s var(--ease), border-radius 0.55s var(--ease), padding 0.55s var(--ease);
}

.island.is-expanded {
  width: 23.4em;
  height: 6.4em;
  padding: 0 1.2em;
  border-radius: 2.8em;
}

.island > * {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.island.is-expanded > * {
  opacity: 1;
  transition-delay: 0.25s;
}

.island-ava {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.8em;
  height: 3.8em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), #4f46e5);
}

.island-ava span {
  font-size: 1.25em;
  font-weight: 800;
}

.island-body {
  flex: 1;
  min-width: 0;
}

.island-body small,
.island-body b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.island-body small {
  font-size: 0.95em;
  font-weight: 600;
  color: #93b4fb;
}

.island-body b {
  font-size: 1.3em;
  font-weight: 700;
}

.island-call {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.4em;
  height: 3.4em;
  border-radius: 50%;
  background-color: #22c55e;
}

.island-call svg {
  width: 1.6em;
  height: 1.6em;
}

.ios-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.6em;
  padding: 0.2em 2.6em 0 3.4em;
  color: var(--ink-900);
}

/* iOS status icons are smaller so they clear the Dynamic Island */
.ios-status .status-icons {
  gap: 0.35em;
}

.ios-status .status-icons svg {
  width: 1.4em;
  height: 1.1em;
}

.ios-status .status-icons .batt {
  width: 2.2em;
}

.ios-time {
  font-size: 1.35em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.status-icons svg {
  width: 1.7em;
  height: 1.3em;
}

.status-icons .batt {
  width: 2.5em;
}

/* The iPhone shows the same dashboard as the Android phone; only its chrome differs */
.ios-screen .ios-status {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 15;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-600), #4338ca);
}

.ios-screen .and-header {
  padding-top: 5.8em;
}

.ios-screen .and-viewport {
  bottom: 8.4em;
}

.ios-screen .and-nav {
  height: 8.4em;
  padding-bottom: 2.2em;
}

/* Offset so the two phones don't scroll in lockstep */
.ios-screen .and-scroll {
  animation-delay: 6s;
}

.tile-ico {
  display: grid;
  place-items: center;
  width: 2.8em;
  height: 2.8em;
  color: var(--c, var(--brand-600));
  background-color: var(--bg, var(--brand-50));
  border-radius: 0.9em;
}

.tile-ico svg {
  width: 1.5em;
  height: 1.5em;
}

.home-ind {
  position: absolute;
  bottom: 0.8em;
  left: 50%;
  z-index: 11;
  width: 11em;
  height: 0.45em;
  margin-left: -5.5em;
  border-radius: 1em;
  background-color: var(--ink-900);
}

/* ==================== ANDROID DEVICE ==================== */
.and-frame {
  position: relative;
  height: 100%;
  padding: 0.6em;
  border-radius: 3.9em;
  background: linear-gradient(160deg, #3a404c 0%, #161a22 45%, #2a2f39 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 50px 80px -30px rgba(11, 19, 36, 0.55),
    0 20px 40px -18px rgba(29, 78, 216, 0.35);
}

/* Volume rocker + power key (right) */
.and-frame::before,
.and-frame::after {
  content: "";
  position: absolute;
  right: -0.3em;
  width: 0.35em;
  border-radius: 0.3em;
  background: linear-gradient(90deg, #2a2f39, #555c69);
}

.and-frame::before {
  top: 11em;
  height: 6.4em;
}

.and-frame::after {
  top: 19.5em;
  height: 3.6em;
}

.and-screen {
  border-radius: 3.35em;
  background-color: #f4f6fb;
}

.punch-hole {
  position: absolute;
  top: 1.1em;
  left: 50%;
  z-index: 20;
  width: 1.5em;
  height: 1.5em;
  margin-left: -0.75em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2b3548 0 20%, #05070c 45%);
  box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.35);
}

.and-status {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.6em;
  padding: 0.3em 2.2em 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-600), #4338ca);
}

.and-time {
  font-size: 1.2em;
  font-weight: 600;
}

/* Scrolling viewport (header + body scroll together, nav stays fixed) */
.and-viewport {
  position: absolute;
  inset: 0 0 7.8em;
  overflow: hidden;
}

.and-scroll {
  animation: andScroll 16s 2s ease-in-out infinite;
}

@keyframes andScroll {
  0%, 30% { transform: translateY(0); }
  45%, 75% { transform: translateY(-22em); }
  90%, 100% { transform: translateY(0); }
}

.and-header {
  position: relative;
  padding: 4.2em 1.5em 3.6em;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-600) 0%, #4338ca 60%, #312e81 100%);
}

.and-header::before,
.and-header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.and-header::before {
  top: -6em;
  right: -5em;
  width: 16em;
  height: 16em;
}

.and-header::after {
  bottom: -5em;
  left: -4em;
  width: 11em;
  height: 11em;
}

.and-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1em;
}

.and-ava {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 4.6em;
  height: 4.6em;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border: 0.25em solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}

.and-ava span {
  font-size: 1.5em;
  font-weight: 800;
}

.and-who {
  flex: 1;
  min-width: 0;
}

.and-who b {
  display: block;
  font-size: 1.6em;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.and-state {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  max-width: 100%;
  margin-top: 0.3em;
  padding: 0.25em 0.8em;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.and-state span {
  font-size: 0.95em;
  font-weight: 600;
}

.live-dot {
  flex-shrink: 0;
}

.live-dot {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background-color: #4ade80;
  animation: livePing 1.8s ease-out infinite;
}

@keyframes livePing {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  100% { box-shadow: 0 0 0 0.6em rgba(74, 222, 128, 0); }
}

.and-actions {
  display: flex;
  gap: 0.6em;
}

.and-actions i {
  position: relative;
  display: grid;
  place-items: center;
  width: 3em;
  height: 3em;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.and-actions svg {
  width: 1.6em;
  height: 1.6em;
}

.and-actions i.has-badge::after {
  content: "";
  position: absolute;
  top: 0.6em;
  right: 0.7em;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background-color: #fb7185;
  box-shadow: 0 0 0 0.15em #4338ca;
}

.and-kpis {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1.4em;
  padding: 1em 0.4em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.4em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.and-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  text-align: center;
}

.and-kpi + .and-kpi {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.and-kpi i {
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  margin-bottom: 0.2em;
  border-radius: 50%;
  background: var(--bg);
}

.and-kpi i svg {
  width: 1.3em;
  height: 1.3em;
}

.and-kpi b {
  font-size: 1.35em;
  font-weight: 800;
  line-height: 1.1;
}

.and-kpi small {
  white-space: nowrap;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.8;
}

.and-body {
  position: relative;
  z-index: 2;
  margin-top: -2em;
  padding: 1.5em 1.3em 2em;
  background-color: #f4f6fb;
  border-radius: 2.2em 2.2em 0 0;
}

.and-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9em;
}

.a-tile {
  position: relative;
  height: 7.8em;
  padding: 1.1em 1.2em;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  border-radius: 1.5em;
  box-shadow: 0 0.8em 1.6em -1em var(--c2);
  transition: transform 0.3s var(--ease);
}

/* Material ripple when a tile is "tapped" */
.a-tile::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 30%;
  width: 2em;
  height: 2em;
  margin: -1em 0 0 -1em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  opacity: 0;
  transform: scale(0);
}

.a-tile.is-tapped {
  transform: scale(0.96);
}

.a-tile.is-tapped::after {
  animation: ripple 0.7s ease-out;
}

@keyframes ripple {
  0% { opacity: 1; transform: scale(0); }
  100% { opacity: 0; transform: scale(9); }
}

.a-tile b {
  display: block;
  font-size: 1.85em;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  transform-origin: left center;
}

.a-tile hr {
  width: 62%;
  margin: 0.6em 0 0.5em;
  border: none;
  border-top: 0.15em solid rgba(255, 255, 255, 0.6);
}

.a-tile span {
  display: block;
  font-size: 1.1em;
  font-weight: 600;
  white-space: nowrap;
}

.a-tile-ico {
  position: absolute;
  top: 0.9em;
  right: 0.9em;
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.a-tile-ico svg {
  width: 1.35em;
  height: 1.35em;
}

.t-rose    { --c1: #fb7185; --c2: #e11d48; }
.t-amber   { --c1: #fbbf24; --c2: #f97316; }
.t-blue    { --c1: #3b7bf6; --c2: #1d4ed8; }
.t-purple  { --c1: #c084fc; --c2: #9333ea; }
.t-emerald { --c1: #34d399; --c2: #059669; }
.t-indigo  { --c1: #818cf8; --c2: #4f46e5; }

.pager {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin: 1.2em 0;
}

.pager i {
  width: 0.7em;
  height: 0.7em;
  border-radius: 1em;
  background-color: #cbd5e1;
}

.pager i:first-child {
  width: 2em;
  background-color: var(--brand-600);
}

.and-card {
  padding: 1.3em 1.1em;
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: 1.8em;
}

.and-card-title {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-bottom: 1.2em;
}

.and-card-title i {
  display: grid;
  place-items: center;
  width: 2.8em;
  height: 2.8em;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-500), #4f46e5);
  border-radius: 50%;
}

.and-card-title svg {
  width: 1.4em;
  height: 1.4em;
}

.and-card-title b {
  font-size: 1.45em;
  font-weight: 800;
  color: var(--ink-900);
}

.and-acts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3em 0.4em;
}

.and-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  text-align: center;
}

.and-act .tile-ico {
  width: 3.8em;
  height: 3.8em;
  border-radius: 1.2em;
}

.and-act .tile-ico svg {
  width: 1.9em;
  height: 1.9em;
}

.and-act span {
  font-size: 0.95em;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-700);
}

/* Bottom navigation with centre FAB */
.and-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  height: 7.8em;
  padding: 0 0.6em 1.6em;
  background-color: #ffffff;
  border-radius: 2em 2em 0 0;
  box-shadow: 0 -0.6em 1.6em -0.8em rgba(11, 19, 36, 0.18);
}

.and-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  color: var(--ink-600);
}

.and-nav-item svg {
  width: 2em;
  height: 2em;
}

.and-nav-item span {
  font-size: 0.82em;
  font-weight: 700;
  white-space: nowrap;
}

.and-nav-item.is-on {
  width: 5.4em;
  padding: 0.5em 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-500), #4f46e5);
  border-radius: 1.6em;
  box-shadow: 0 0.6em 1.2em -0.6em rgba(37, 99, 235, 0.7);
}

.fab {
  position: relative;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 5.6em;
  height: 5.6em;
  margin-top: -3.2em;
  color: #ffffff;
  background: linear-gradient(135deg, #3b7bf6, #7c3aed);
  border: 0.45em solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0.8em 1.6em -0.6em rgba(79, 70, 229, 0.7);
}

.fab::before {
  content: "";
  position: absolute;
  inset: -0.45em;
  border-radius: 50%;
  animation: fabPulse 2.4s ease-out infinite;
}

@keyframes fabPulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.45); }
  100% { box-shadow: 0 0 0 1.4em rgba(79, 70, 229, 0); }
}

.fab svg {
  width: 2.4em;
  height: 2.4em;
  stroke-width: 2.6;
}

.gesture-bar {
  position: absolute;
  bottom: 0.7em;
  left: 50%;
  z-index: 11;
  width: 9em;
  height: 0.4em;
  margin-left: -4.5em;
  border-radius: 1em;
  background-color: #1e293b;
  opacity: 0.7;
}

/* Heads-up notification */
.heads-up {
  position: absolute;
  top: 3.8em;
  right: 1em;
  left: 1em;
  z-index: 18;
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 1em 1.1em;
  background-color: rgba(255, 255, 255, 0.98);
  border-radius: 1.8em;
  box-shadow: 0 1.2em 2.4em -1em rgba(11, 19, 36, 0.45);
  opacity: 0;
  transform: translateY(-140%);
  transition: transform 0.5s var(--ease), opacity 0.3s ease;
}

.heads-up.show {
  opacity: 1;
  transform: translateY(0);
}

.heads-up .tile-ico {
  flex-shrink: 0;
  width: 3.4em;
  height: 3.4em;
  border-radius: 50%;
}

.heads-up-body {
  flex: 1;
  min-width: 0;
}

.heads-up-body small,
.heads-up-body b,
.heads-up-body span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heads-up-body small {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--ink-400);
}

.heads-up-body b {
  font-size: 1.2em;
  color: var(--ink-900);
}

.heads-up-body span {
  font-size: 1.05em;
  color: var(--ink-600);
}

/* Value bump when a live number ticks up */
.bump {
  animation: valBump 0.6s var(--ease);
}

@keyframes valBump {
  40% { transform: scale(1.12); }
}

/* ==================== FLOATING INFO CARDS ==================== */
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: cardIn 0.8s var(--ease) both, cardFloat 6s ease-in-out infinite;
}

.float-card .tile-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex-shrink: 0;
}

.float-card .tile-ico svg {
  width: 19px;
  height: 19px;
}

.float-card b {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
}

.float-card span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-500);
  white-space: nowrap;
}

/* Two cards either side of the phones, mirrored top/bottom */
.fc-1 { top: 18%; left: 0; animation-delay: 0.9s, 0s; }
.fc-2 { top: 18%; right: 0; animation-delay: 1.1s, -2s; }
.fc-3 { top: 56%; left: 0; animation-delay: 1.3s, -4s; }
.fc-4 { top: 56%; right: 0; animation-delay: 1.5s, -1s; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
}

@keyframes cardFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 26px;
  margin-left: 0.3rem;
}

.mini-bars i {
  width: 5px;
  height: calc(40% + var(--i) * 15%);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-500), #4f46e5);
  animation: barGrow 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.3s);
}

@keyframes barGrow {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

/* ==================== RESPONSIVE ==================== */
/* Floating cards need clear space beside the phones */
@media (max-width: 1200px) {
  .float-card { display: none; }
}

@media (max-width: 960px) {
  .app-stage { --s: 0.86; }
}

@media (max-width: 760px) {
  .m-hero { padding-top: 2.5rem; }
  .m-hero::after,
  .m-hero::before { left: 0.75rem; right: 0.75rem; }
  .app-stage { --s: 0.7; }
}

@media (max-width: 640px) {
  .m-hero-inner { padding: 0 1rem; gap: 2.25rem; }
  .hero-desc { font-size: 1rem; }
  .hero-cta-group { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .app-stage { --s: 0.56; }
  .device-label { font-size: 0.7rem; }
}

@media (max-width: 400px) {
  .app-stage { --s: 0.5; }
}

@media (max-width: 350px) {
  .app-stage { --s: 0.45; }
}

/* ==================== HOW THE APP WORKS ==================== */
.hw-section {
  --hw-a: #3b7bf6;
  --hw-b: #7c3aed;
  --hw-grad: linear-gradient(135deg, var(--hw-a), var(--hw-b));
  --hw-dur: 7s;
  position: relative;
  overflow: hidden;
  /* Fits one screen below the sticky header */
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h, 76px));
  min-height: calc(100svh - var(--header-h, 76px));
  padding: 1.75rem 0;
  background:
    radial-gradient(ellipse 45% 60% at 24% 50%, rgba(124, 58, 237, 0.07), transparent 70%),
    var(--surface);
  border-top: 1px solid var(--line-soft);
}

.hw-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "visual head" "visual steps";
  column-gap: 4.5rem;
  row-gap: 1rem;
}

.hw-head { grid-area: head; align-self: end; }
.hw-head .ind-tag { display: block; color: var(--hw-b); }
.hw-head .ind-title { margin-bottom: 0.6rem; }
.hw-head .ind-desc { margin-bottom: 0; }

/* ---- Timeline of steps ---- */
.hw-steps {
  --ic: 54px;
  grid-area: steps;
  position: relative;
  display: flex;
  flex-direction: column;
  list-style: none;
}

.hw-steps::before,
.hw-steps::after {
  content: "";
  position: absolute;
  top: var(--t0, 40px);
  left: calc(var(--ic) / 2 - 1px);
  width: 2px;
  border-radius: 2px;
}

.hw-steps::before {
  height: var(--th, 0);
  background-color: #e9e3fb;
}

.hw-steps::after {
  height: var(--fill, 0);
  background: linear-gradient(180deg, var(--hw-a), var(--hw-b));
  transition: height 0.6s var(--ease);
}

.hw-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
  padding: 0.4rem 0.75rem 0.4rem 0;
  text-align: left;
  border-radius: 16px;
}

.hw-step-ico {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: var(--ic);
  height: var(--ic);
  color: var(--hw-b);
  background-color: #ffffff;
  border: 1.5px solid #e4dcfb;
  border-radius: 50%;
  box-shadow: 0 8px 18px -10px rgba(124, 58, 237, 0.45);
  transition: transform 0.35s var(--ease), color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Gradient fill fades in when the step is active */
.hw-step-ico::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  z-index: -1;
  border-radius: 50%;
  background: var(--hw-grad);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hw-glyph {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}

/* Countdown ring around the active icon */
.hw-ring {
  position: absolute;
  inset: -7px;
  width: calc(100% + 14px);
  height: calc(100% + 14px);
  transform: rotate(-90deg);
  opacity: 0;
  pointer-events: none;
}

.hw-ring circle {
  fill: none;
  stroke: var(--hw-b);
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.hw-step:hover .hw-step-ico { border-color: #c4b5fd; transform: translateY(-2px); }

.hw-step.is-active .hw-step-ico {
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px -8px rgba(99, 72, 237, 0.6);
  transform: scale(1.06);
}

.hw-step.is-active .hw-step-ico::before { opacity: 1; }
.hw-step.is-active .hw-ring { opacity: 1; }
.hw-step.is-active .hw-ring circle { animation: hwProg var(--hw-dur) linear forwards; }
.hw-section.is-paused .hw-step.is-active .hw-ring circle { animation-play-state: paused; }

@keyframes hwProg {
  to { stroke-dashoffset: 0; }
}

.hw-step-text {
  padding-top: 0.45rem;
}

.hw-step-text b {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-700);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
  transition: color 0.3s ease;
}

.hw-step-text > span {
  display: block;
  max-height: 8em;
  overflow: hidden;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-500);
  transition: max-height 0.4s var(--ease), opacity 0.3s ease;
}

.hw-step.is-active .hw-step-text b { color: var(--ink-900); }

/* ---- Visual: rings, phone, floating cards ---- */
.hw-visual {
  grid-area: visual;
  position: relative;
  display: grid;
  place-items: center;
  padding: 0.5rem 0 1.25rem;
}

.hw-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(124, 58, 237, 0.16) 0 1px, transparent 1px 11px);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 70%);
  mask-image: radial-gradient(circle, #000 25%, transparent 70%);
  pointer-events: none;
}

.hw-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  border: 1.5px solid rgba(124, 58, 237, 0.35);
  border-radius: 50%;
  opacity: 0;
  animation: hwRipple 7.5s linear infinite;
}

.hw-ripple:nth-child(2) { animation-delay: -2.5s; }
.hw-ripple:nth-child(3) { animation-delay: -5s; }

@keyframes hwRipple {
  0% { opacity: 0; transform: scale(0.7); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.9); }
}

.hw-floor {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 300px;
  height: 40px;
  margin-left: -150px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(76, 29, 149, 0.28), transparent 70%);
  filter: blur(6px);
  animation: hwShadow 6s ease-in-out infinite;
}

@keyframes hwShadow {
  50% { transform: scale(0.88); opacity: 0.7; }
}

.hw-device {
  --hs: 1;
  position: relative;
  z-index: 2;
  /* Scales with the viewport height too, so the phone always fits the screen */
  font-size: calc(10px * var(--hs));
  font-size: min(calc(10px * var(--hs)), calc((100vh - var(--header-h, 76px) - 100px) / 61));
  font-size: min(calc(10px * var(--hs)), calc((100svh - var(--header-h, 76px) - 100px) / 61));
  line-height: 1.35;
  text-align: left;
  animation: hwFloat 6s ease-in-out infinite;
}

@keyframes hwFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hw-phone {
  position: relative;
  width: 30em;
  height: 61em;
  padding: 0.9em;
  border-radius: 4.8em;
  background: linear-gradient(150deg, #3d424e 0%, #121419 40%, #272b34 100%);
  box-shadow:
    inset 0 0 0 0.15em #4b515e,
    0 50px 80px -30px rgba(30, 20, 70, 0.55),
    0 24px 50px -20px rgba(124, 58, 237, 0.45);
}

.hw-phone::before,
.hw-phone::after {
  content: "";
  position: absolute;
  width: 0.35em;
  border-radius: 0.3em;
  background: linear-gradient(90deg, #22262e, #4b515e);
}

.hw-phone::before {
  top: 11em;
  left: -0.3em;
  height: 3em;
  box-shadow: 0 5em 0 0 #33373f, 0 10em 0 0 #33373f;
}

.hw-phone::after {
  top: 16em;
  right: -0.3em;
  height: 8em;
}

.hw-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background-color: #f6f7fb;
  border-radius: 3.9em;
}

.hw-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 40;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 30%);
  pointer-events: none;
}

.hw-notch {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 35;
  width: 12.5em;
  height: 2.7em;
  margin-left: -6.25em;
  background-color: #0d0f14;
  border-radius: 0 0 1.7em 1.7em;
}

.hw-notch::before {
  content: "";
  position: absolute;
  top: 0.9em;
  left: 50%;
  width: 3.8em;
  height: 0.45em;
  margin-left: -1.9em;
  border-radius: 1em;
  background-color: #262a33;
}

.hw-notch::after {
  content: "";
  position: absolute;
  top: 0.7em;
  right: 2.4em;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3b4a66 0 20%, #07090e 50%);
}

.hw-status {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 34;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.6em;
  padding: 0.3em 2.4em 0 3.2em;
  color: var(--ink-900);
  transition: color 0.4s ease;
}

.hw-status b {
  font-size: 1.25em;
  font-weight: 700;
}

.hw-status .status-icons { gap: 0.35em; }
.hw-status .status-icons svg { width: 1.4em; height: 1.1em; }
.hw-status .status-icons .batt { width: 2.2em; }

.hw-home {
  position: absolute;
  bottom: 0.7em;
  left: 50%;
  z-index: 36;
  width: 10em;
  height: 0.42em;
  margin-left: -5em;
  border-radius: 1em;
  background-color: var(--ink-900);
  transition: background-color 0.4s ease;
}

.hw-phone.is-dark-top .hw-status { color: #ffffff; }
.hw-phone.is-dark-bottom .hw-home { background-color: #ffffff; }

/* ---- Screens ---- */
.hw-scr {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: 3.6em;
  overflow: hidden;
  background-color: #f6f7fb;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12%) scale(0.97);
  transition: opacity 0.45s ease, transform 0.6s var(--ease), visibility 0s 0.6s;
}

.hw-scr.is-past { transform: translateX(-12%) scale(0.97); }

.hw-scr.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s ease, transform 0.6s var(--ease), visibility 0s;
}

/* Staggered entrance for items on the active screen */
.hw-scr.is-active .hw-in {
  animation: hwIn 0.55s var(--ease) both;
  animation-delay: calc(0.2s + var(--d, 0) * 0.08s);
}

@keyframes hwIn {
  from { opacity: 0; transform: translateY(1.4em); }
}

@keyframes hwShow {
  from { opacity: 0; transform: translateY(1em); }
  to { opacity: 1; transform: none; }
}

/* Finger tap indicator */
.hw-touch {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 8;
  width: 3.6em;
  height: 3.6em;
  margin: -1.8em 0 0 -1.8em;
  border: 0.2em solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.2);
  box-shadow: 0 0.3em 0.8em rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
}

.hw-scr.is-active .hw-touch { animation: hwTouch 0.9s var(--t, 1s) both; }

@keyframes hwTouch {
  0% { opacity: 0; transform: scale(1.6); }
  35% { opacity: 1; transform: scale(1); }
  60% { transform: scale(0.82); }
  100% { opacity: 0; transform: scale(1); }
}

/* Two stacked values that cross-fade (value edits, call state) */
.hw-swap { display: grid; }
.hw-swap > * { grid-area: 1 / 1; }
.hw-swap > :last-child { opacity: 0; }
.hw-scr.is-active .hw-swap > :first-child { animation: hwOut 0.3s var(--sw, 3.6s) both; }
.hw-scr.is-active .hw-swap > :last-child { animation: hwShow 0.4s calc(var(--sw, 3.6s) + 0.15s) both; }

@keyframes hwOut {
  to { opacity: 0; transform: translateY(-0.6em); }
}

/* Shared app chrome */
.hw-bar {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.8em 1.6em 1em;
}

.hw-bar-t {
  flex: 1;
  min-width: 0;
}

.hw-bar-t b {
  display: block;
  font-size: 1.65em;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.hw-bar-t small {
  display: block;
  font-size: 1em;
  font-weight: 600;
  color: var(--ink-500);
}

.hw-ib {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.4em;
  height: 3.4em;
  color: var(--ink-700);
  background-color: #ffffff;
  border: 1px solid #e7e9f1;
  border-radius: 50%;
}

.hw-ib svg {
  width: 1.5em;
  height: 1.5em;
}

.hw-ib.has-dot::after {
  content: "";
  position: absolute;
  top: 0.7em;
  right: 0.8em;
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background-color: #f43f5e;
  box-shadow: 0 0 0 0.15em #ffffff;
}

.hw-bar.is-light .hw-bar-t b { color: #ffffff; }

.hw-bar.is-light .hw-ib {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
}

.hw-av {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.8em;
  height: 3.8em;
  color: #ffffff;
  background: var(--a, var(--hw-grad));
  border-radius: 50%;
}

.hw-av span {
  font-size: 1.2em;
  font-weight: 800;
}

.av-rose   { --a: linear-gradient(135deg, #fb7185, #e11d48); }
.av-amber  { --a: linear-gradient(135deg, #fbbf24, #f97316); }
.av-blue   { --a: linear-gradient(135deg, #60a5fa, #2563eb); }
.av-green  { --a: linear-gradient(135deg, #34d399, #059669); }
.av-violet { --a: linear-gradient(135deg, #c084fc, #7c3aed); }
.av-cyan   { --a: linear-gradient(135deg, #22d3ee, #0891b2); }

.hw-pill {
  flex-shrink: 0;
  padding: 0.25em 0.75em;
  font-size: 0.85em;
  font-weight: 800;
  color: var(--pc);
  background-color: var(--pb);
  border-radius: 1em;
}

.p-hot  { --pc: #e11d48; --pb: #ffe4e6; }
.p-new  { --pc: #2563eb; --pb: #dbeafe; }
.p-warm { --pc: #d97706; --pb: #fef3c7; }
.p-won  { --pc: #059669; --pb: #dcfce7; }

.hw-card {
  margin: 1.2em 1.6em 0;
  padding: 1.2em 1.3em;
  background-color: #ffffff;
  border: 1px solid #eceef5;
  border-radius: 1.6em;
}

.hw-card-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.8em;
}

.hw-card-h b {
  font-size: 1.2em;
  font-weight: 800;
  color: var(--ink-900);
}

.hw-card-h span {
  font-size: 1em;
  font-weight: 700;
  color: #059669;
}

.hw-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  height: 6.8em;
  padding: 0 0.8em 1.8em;
  background-color: #ffffff;
  border-top: 1px solid #eceef5;
}

.hw-nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  color: var(--ink-400);
}

.hw-nav svg {
  width: 1.9em;
  height: 1.9em;
}

.hw-nav small {
  font-size: 0.8em;
  font-weight: 700;
}

.hw-nav .is-on { color: var(--hw-b); }

.hw-nav .hw-fab {
  display: grid;
  place-items: center;
  width: 4.8em;
  height: 4.8em;
  margin-top: -2.6em;
  color: #ffffff;
  background: var(--hw-grad);
  border: 0.4em solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0.8em 1.6em -0.6em rgba(124, 58, 237, 0.7);
}

.hw-nav .hw-fab svg {
  width: 2em;
  height: 2em;
  stroke-width: 2.6;
}

.hw-toast {
  position: absolute;
  bottom: 2.4em;
  left: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 1.3em 0.7em 0.7em;
  font-size: 1.05em;
  font-weight: 700;
  white-space: nowrap;
  color: #ffffff;
  background-color: var(--ink-900);
  border-radius: 2em;
  box-shadow: 0 1em 2em -0.8em rgba(15, 23, 42, 0.6);
  opacity: 0;
  transform: translate(-50%, 1.5em);
}

.hw-toast i {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background-color: #22c55e;
}

.hw-toast svg {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 3;
}

.hw-scr.is-active .hw-toast { animation: hwToast 0.5s var(--t, 4s) var(--ease) forwards; }

@keyframes hwToast {
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---- Screen 1: Dashboard ---- */
.hw-dhero {
  position: relative;
  overflow: hidden;
  margin: 0 1.6em;
  padding: 1.4em 1.5em;
  color: #ffffff;
  background: var(--hw-grad);
  border-radius: 1.8em;
  box-shadow: 0 1.2em 2.4em -1.2em rgba(99, 72, 237, 0.7);
}

.hw-dhero::before {
  content: "";
  position: absolute;
  top: -5em;
  right: -4em;
  width: 13em;
  height: 13em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.hw-dhero small {
  display: block;
  font-size: 1em;
  font-weight: 600;
  opacity: 0.85;
}

.hw-dhero b {
  display: block;
  font-size: 2.6em;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hw-dhero em {
  display: inline-flex;
  margin-top: 0.4em;
  padding: 0.2em 0.7em;
  font-size: 0.95em;
  font-style: normal;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 1em;
}

.hw-spark {
  position: absolute;
  right: 1.3em;
  bottom: 1.3em;
  width: 11em;
  height: 5em;
  color: #ffffff;
  stroke-width: 2.5;
}

.hw-spark path {
  stroke-dasharray: 100;
}

.hw-scr.is-active .hw-spark path { animation: hwDraw 1.4s 0.5s ease-out both; }

@keyframes hwDraw {
  from { stroke-dashoffset: 100; }
}

.hw-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9em;
  margin: 1.2em 1.6em 0;
}

.hw-kpi {
  padding: 1.1em 1.2em;
  background-color: #ffffff;
  border: 1px solid #eceef5;
  border-radius: 1.4em;
}

.hw-kpi .tile-ico { margin-bottom: 0.6em; }

.hw-kpi b {
  display: block;
  font-size: 1.8em;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.hw-kpi > span:last-child {
  font-size: 1em;
  font-weight: 600;
  color: var(--ink-500);
}

.hw-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.7em;
  height: 5.6em;
}

.hw-bars i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, #c4b5fd, #818cf8);
  border-radius: 0.4em 0.4em 0.2em 0.2em;
  transform-origin: bottom;
}

.hw-bars i.is-hi { background: var(--hw-grad); }

.hw-scr.is-active .hw-bars i {
  animation: hwGrow 0.8s var(--ease) both;
  animation-delay: calc(0.5s + var(--i) * 0.07s);
}

@keyframes hwGrow {
  from { transform: scaleY(0); }
}

.hw-days {
  display: flex;
  gap: 0.7em;
  margin-top: 0.4em;
}

.hw-days span {
  flex: 1;
  font-size: 0.85em;
  font-weight: 700;
  text-align: center;
  color: var(--ink-400);
}

/* ---- Screen 2: Leads ---- */
.hw-search {
  display: flex;
  align-items: center;
  gap: 0.7em;
  height: 3.8em;
  margin: 0 1.6em;
  padding: 0 1.2em;
  color: var(--ink-400);
  background-color: #ffffff;
  border: 1px solid #e7e9f1;
  border-radius: 1.2em;
}

.hw-search svg {
  width: 1.5em;
  height: 1.5em;
}

.hw-search span {
  font-size: 1.1em;
  font-weight: 500;
}

.hw-chips {
  display: flex;
  gap: 0.6em;
  padding: 1em 1.6em 0.3em;
  overflow: hidden;
}

.hw-chips span {
  flex-shrink: 0;
  padding: 0.45em 1em;
  font-size: 1em;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-600);
  background-color: #ffffff;
  border: 1px solid #e7e9f1;
  border-radius: 2em;
}

.hw-chips .is-on {
  color: #ffffff;
  background: var(--hw-grad);
  border-color: transparent;
}

.hw-leads {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  padding: 0.8em 1.6em;
  list-style: none;
}

.hw-lead {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.9em 1em;
  background-color: #ffffff;
  border: 1px solid #eceef5;
  border-radius: 1.4em;
}

.hw-lead-t {
  flex: 1;
  min-width: 0;
}

.hw-lead-t b,
.hw-lead-t small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hw-lead-t b {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--ink-900);
}

.hw-lead-t small {
  font-size: 0.95em;
  font-weight: 600;
  color: var(--ink-500);
}

.hw-call {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.4em;
  height: 3.4em;
  color: #ffffff;
  background: linear-gradient(135deg, #34d399, #059669);
  border-radius: 50%;
  box-shadow: 0 0.5em 1em -0.4em rgba(5, 150, 105, 0.7);
}

.hw-call svg {
  width: 1.5em;
  height: 1.5em;
}

.hw-call::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.hw-scr.is-active .hw-call.is-tap { animation: hwTap 0.5s 3.3s ease both; }
.hw-scr.is-active .hw-call.is-tap::before { animation: hwRingOut 1.2s 3.3s ease-out 2; }

@keyframes hwTap {
  50% { transform: scale(0.82); }
}

@keyframes hwRingOut {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  100% { box-shadow: 0 0 0 1.2em rgba(16, 185, 129, 0); }
}

/* ---- Screen 3: Lead view ---- */
.hw-vhead {
  position: relative;
  overflow: hidden;
  margin-top: -3.6em;
  padding: 3.6em 0 4.6em;
  color: #ffffff;
  background: linear-gradient(135deg, #3b7bf6 0%, #6d4aea 60%, #7c3aed 100%);
  border-radius: 0 0 2.4em 2.4em;
}

.hw-vhead::before {
  content: "";
  position: absolute;
  bottom: -6em;
  left: -4em;
  width: 14em;
  height: 14em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hw-prof {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2em;
  padding: 0 1.8em;
}

.hw-av.is-lg {
  width: 5.8em;
  height: 5.8em;
  border: 0.25em solid rgba(255, 255, 255, 0.7);
}

.hw-av.is-lg span { font-size: 1.7em; }

.hw-prof b {
  display: block;
  font-size: 1.7em;
  font-weight: 800;
  line-height: 1.2;
}

.hw-prof small {
  display: block;
  margin-bottom: 0.5em;
  font-size: 1em;
  font-weight: 600;
  opacity: 0.85;
}

.hw-prof .hw-pill { --pb: #ffffff; }

.hw-qa {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6em;
  margin: -3em 1.6em 0;
  padding: 1.1em 0.6em;
  background-color: #ffffff;
  border-radius: 1.6em;
  box-shadow: 0 1em 2em -1.2em rgba(30, 20, 70, 0.35);
}

.hw-qa > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
}

.hw-qa .tile-ico {
  width: 3.4em;
  height: 3.4em;
  border-radius: 50%;
}

.hw-qa .tile-ico svg {
  width: 1.6em;
  height: 1.6em;
}

.hw-qa small {
  font-size: 0.9em;
  font-weight: 700;
  color: var(--ink-600);
}

.hw-fields {
  padding: 0.4em 1em;
}

.hw-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.85em 0.6em;
  border-bottom: 1px solid #f0f1f6;
}

.hw-field:last-child { border-bottom: 0; }

.hw-field > div {
  flex: 1;
  min-width: 0;
}

.hw-field small {
  display: block;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.hw-field b {
  display: block;
  font-size: 1.15em;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-900);
}

.hw-field > svg {
  width: 1.4em;
  height: 1.4em;
  color: var(--ink-400);
}

.hw-field .hw-swap { display: grid; }
.hw-field .hw-swap > :last-child { color: #6d28d9; }

.hw-scr.is-active .hw-field.is-edit { animation: hwEditOn 0.4s 1.9s ease both; }

@keyframes hwEditOn {
  to {
    background-color: #f5f3ff;
    border-radius: 1em;
    box-shadow: inset 0 0 0 0.15em #a78bfa;
  }
}

.hw-drop {
  position: absolute;
  top: 100%;
  right: 0.4em;
  z-index: 4;
  width: 14em;
  padding: 0.5em;
  background-color: #ffffff;
  border: 1px solid #eceef5;
  border-radius: 1.2em;
  box-shadow: 0 1.2em 2.4em -0.8em rgba(30, 20, 70, 0.4);
  opacity: 0;
  transform-origin: top right;
}

.hw-drop span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.6em 0.8em;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--ink-700);
  border-radius: 0.8em;
}

.hw-drop i {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background-color: var(--c);
}

.hw-scr.is-active .hw-drop { animation: hwDrop 1.6s 2.2s both; }
.hw-scr.is-active .hw-drop .is-pick { animation: hwPick 0.3s 2.9s both; }

@keyframes hwDrop {
  0% { opacity: 0; transform: scale(0.9) translateY(-0.5em); }
  15%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(0.95); }
}

@keyframes hwPick {
  to { color: #6d28d9; background-color: #ede9fe; }
}

/* ---- Screen 4: Click to call ---- */
.hw-s-call {
  align-items: center;
  text-align: center;
  color: #ffffff;
  background:
    radial-gradient(ellipse 80% 45% at 50% 28%, rgba(124, 58, 237, 0.55), transparent 70%),
    linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
}

.hw-call-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.4em;
  padding: 0.45em 1em;
  font-size: 0.95em;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2em;
}

.hw-call-chip svg {
  width: 1.2em;
  height: 1.2em;
}

.hw-call-ava {
  position: relative;
  display: grid;
  place-items: center;
  width: 12em;
  height: 12em;
  margin-top: 1.8em;
}

.hw-call-ava > i {
  position: absolute;
  inset: 2em;
  border: 0.15em solid rgba(167, 139, 250, 0.6);
  border-radius: 50%;
  animation: hwPulse 2.4s ease-out infinite;
}

.hw-call-ava > i:nth-child(2) { animation-delay: -0.8s; }
.hw-call-ava > i:nth-child(3) { animation-delay: -1.6s; }

@keyframes hwPulse {
  0% { opacity: 1; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.6); }
}

.hw-av.is-xl {
  width: 8em;
  height: 8em;
  box-shadow: 0 0 0 0.45em rgba(255, 255, 255, 0.12);
}

.hw-av.is-xl span { font-size: 2.2em; }

.hw-call-name {
  margin-top: 0.8em;
  font-size: 2em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hw-call-num {
  font-size: 1.05em;
  font-weight: 600;
  opacity: 0.7;
}

.hw-call-state {
  --sw: 2s;
  justify-items: center;
  margin-top: 0.9em;
  font-size: 1.15em;
  font-weight: 700;
  color: #c4b5fd;
}

.hw-call-state > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: #86efac;
}

.hw-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  height: 3.4em;
  margin-top: 0.8em;
}

.hw-wave i {
  width: 0.35em;
  height: 100%;
  border-radius: 1em;
  background: linear-gradient(180deg, #a78bfa, #60a5fa);
  transform: scaleY(0.2);
}

.hw-scr.is-active .hw-wave i {
  animation: hwWave 1s ease-in-out infinite;
  animation-delay: calc(2.2s - var(--i) * 0.13s);
}

@keyframes hwWave {
  0%, 100% { transform: scaleY(0.2); }
  50% { transform: scaleY(1); }
}

.hw-call-ctx {
  display: flex;
  align-items: center;
  gap: 0.9em;
  width: calc(100% - 3.6em);
  margin-top: 1.3em;
  padding: 0.9em 1.1em;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.3em;
}

.hw-call-ctx .tile-ico { flex-shrink: 0; }

.hw-call-ctx b {
  display: block;
  font-size: 1.05em;
  font-weight: 700;
}

.hw-call-ctx small {
  display: block;
  font-size: 0.9em;
  font-weight: 600;
  opacity: 0.7;
}

.hw-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1em;
  margin-top: 1.8em;
}

.hw-keys span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
}

.hw-keys i {
  display: grid;
  place-items: center;
  width: 4.4em;
  height: 4.4em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.hw-keys svg {
  width: 1.8em;
  height: 1.8em;
}

.hw-keys small {
  font-size: 0.9em;
  font-weight: 600;
  opacity: 0.75;
}

.hw-keys .is-rec i {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.2);
  animation: hwBlink 1.4s ease-in-out infinite;
}

@keyframes hwBlink {
  50% { box-shadow: 0 0 0 0.35em rgba(244, 63, 94, 0.2); }
}

.hw-end {
  display: grid;
  place-items: center;
  width: 5.6em;
  height: 5.6em;
  margin-top: 1.8em;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0.8em 1.6em -0.6em rgba(239, 68, 68, 0.8);
}

.hw-end svg {
  width: 2.2em;
  height: 2.2em;
  transform: rotate(135deg);
}

/* ---- Screen 5: Telecaller ---- */
.hw-switch {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.95em;
  font-weight: 700;
  color: #059669;
}

.hw-switch i {
  position: relative;
  width: 3.4em;
  height: 2em;
  border-radius: 2em;
  background-color: #22c55e;
}

.hw-switch i::after {
  content: "";
  position: absolute;
  top: 0.2em;
  right: 0.2em;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background-color: #ffffff;
}

.hw-prog {
  margin: 0 1.6em;
  padding: 1.1em 1.3em;
  background-color: #ffffff;
  border: 1px solid #eceef5;
  border-radius: 1.4em;
}

.hw-prog-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6em;
  font-size: 1em;
  font-weight: 700;
  color: var(--ink-700);
}

.hw-prog-top span:last-child { color: var(--hw-b); }

.hw-prog > i {
  display: block;
  height: 0.7em;
  overflow: hidden;
  border-radius: 1em;
  background-color: #eef0f6;
}

.hw-prog em {
  display: block;
  width: 30%;
  height: 100%;
  border-radius: inherit;
  background: var(--hw-grad);
}

.hw-scr.is-active .hw-prog em { animation: hwWidth 1s 0.4s var(--ease) both; }

@keyframes hwWidth {
  from { width: 0; }
}

.hw-tstats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7em;
  margin: 1em 1.6em 0;
}

.hw-tstats div {
  padding: 0.8em 0.5em;
  text-align: center;
  background-color: #ffffff;
  border: 1px solid #eceef5;
  border-radius: 1.2em;
}

.hw-tstats b {
  display: block;
  font-size: 1.5em;
  font-weight: 800;
  color: var(--ink-900);
}

.hw-tstats small {
  font-size: 0.85em;
  font-weight: 700;
  color: var(--ink-500);
}

.hw-tcard {
  position: relative;
  margin: 1em 1.6em 0;
  padding: 1.2em;
  color: #ffffff;
  background: linear-gradient(135deg, #1e1b4b, #3730a3);
  border-radius: 1.6em;
  box-shadow: 0 1.2em 2.4em -1.2em rgba(30, 27, 75, 0.8);
}

.hw-tcard-top {
  display: flex;
  align-items: center;
  gap: 1em;
}

.hw-tcard-top > div {
  flex: 1;
  min-width: 0;
}

.hw-tcard-top b {
  display: block;
  font-size: 1.3em;
  font-weight: 800;
}

.hw-tcard-top small {
  display: block;
  font-size: 0.95em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.75;
}

.hw-ringing {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.2em;
  height: 3.2em;
  border-radius: 50%;
  background-color: #22c55e;
  animation: hwRingOut 1.4s ease-out infinite;
}

.hw-ringing svg {
  width: 1.4em;
  height: 1.4em;
}

.hw-tstate {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 1em 0 0.9em;
  font-size: 1em;
  font-weight: 700;
  color: #86efac;
}

.hw-dispo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6em;
}

.hw-dispo span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 0.8em;
  font-size: 1em;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1em;
}

.hw-dispo span::before {
  content: "";
  flex-shrink: 0;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background-color: var(--c);
}

.hw-scr.is-active .hw-dispo .is-pick { animation: hwPickD 0.4s 2.6s both; }

@keyframes hwPickD {
  to { background: rgba(34, 197, 94, 0.35); border-color: #4ade80; }
}

.hw-next {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin: 1em 1.6em 0;
  padding: 0.8em 1.1em;
  overflow: hidden;
  font-size: 1em;
  font-weight: 700;
  color: #065f46;
  background-color: #dcfce7;
  border-radius: 1.2em;
  opacity: 0;
}

.hw-next svg {
  width: 1.3em;
  height: 1.3em;
  stroke-width: 3;
}

.hw-next::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.25em;
  background-color: #22c55e;
  transform-origin: left;
}

.hw-scr.is-active .hw-next { animation: hwShow 0.5s 3.1s var(--ease) both; }
.hw-scr.is-active .hw-next::after { animation: hwCount 3s 3.4s linear both; }

@keyframes hwCount {
  to { transform: scaleX(0); }
}

.hw-sub-h {
  margin: 1.1em 1.8em 0.5em;
  font-size: 0.9em;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.hw-queue {
  margin: 0 1.6em;
  padding: 0.2em 1em;
  list-style: none;
  background-color: #ffffff;
  border: 1px solid #eceef5;
  border-radius: 1.4em;
}

.hw-queue li {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.75em 0;
  border-bottom: 1px solid #f0f1f6;
}

.hw-queue li:last-child { border-bottom: 0; }

.hw-queue .hw-av {
  width: 3em;
  height: 3em;
}

.hw-queue .hw-av span { font-size: 1em; }

.hw-queue li > small {
  font-size: 0.9em;
  font-weight: 700;
  color: var(--ink-400);
}

/* ---- Screen 6: WhatsApp ---- */
.hw-s-wa { background-color: #efeae2; }

.hw-wa-head {
  display: flex;
  align-items: center;
  gap: 0.9em;
  margin-top: -3.6em;
  padding: 4.2em 1.4em 1em;
  color: #ffffff;
  background-color: #0b7a5c;
}

.hw-wa-head > svg {
  flex-shrink: 0;
  width: 1.6em;
  height: 1.6em;
}

.hw-wa-head .hw-av {
  width: 3.4em;
  height: 3.4em;
}

.hw-wa-head > div {
  flex: 1;
  min-width: 0;
}

.hw-wa-head b {
  display: block;
  font-size: 1.25em;
  font-weight: 700;
}

.hw-wa-head small {
  display: block;
  font-size: 0.9em;
  opacity: 0.8;
}

.hw-wa-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6em;
  min-height: 0;
  padding: 1em 1.2em;
  overflow: hidden;
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 1.4em 1.4em;
}

.hw-wa-day {
  align-self: center;
  margin-bottom: 0.4em;
  padding: 0.3em 0.9em;
  font-size: 0.85em;
  font-weight: 700;
  color: #54656f;
  background-color: #ffffff;
  border-radius: 0.8em;
}

.hw-msg {
  max-width: 82%;
  padding: 0.7em 0.9em 0.5em;
  font-size: 1.05em;
  line-height: 1.4;
  color: #111b21;
  background-color: #ffffff;
  border-radius: 1em;
  box-shadow: 0 0.1em 0.2em rgba(0, 0, 0, 0.08);
}

.hw-msg.out {
  align-self: flex-end;
  justify-self: end;
  background-color: #d9fdd3;
  border-top-right-radius: 0.2em;
}

.hw-msg.in {
  align-self: flex-start;
  border-top-left-radius: 0.2em;
}

.hw-msg time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3em;
  margin-top: 0.2em;
  font-size: 0.75em;
  color: #667781;
}

.hw-tick {
  width: 1.5em;
  height: 1em;
  color: #8696a0;
}

.hw-scr.is-active .hw-tick { animation: hwBlue 0.3s var(--tb, 1.5s) both; }

@keyframes hwBlue {
  to { color: #53bdeb; }
}

.hw-scr.is-active .hw-pop { animation: hwPop 0.45s var(--t, 0.3s) var(--ease) both; }

@keyframes hwPop {
  from { opacity: 0; transform: translateY(1em) scale(0.92); }
}

.hw-doc {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.6em;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0.7em;
}

.hw-doc i {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.6em;
  height: 3em;
  font-size: 0.75em;
  font-style: normal;
  font-weight: 800;
  color: #ffffff;
  background-color: #ef4444;
  border-radius: 0.4em;
}

.hw-doc b {
  display: block;
  font-size: 0.9em;
}

.hw-doc small {
  display: block;
  font-size: 0.75em;
  color: #667781;
}

.hw-wa-last { display: grid; }
.hw-wa-last > * { grid-area: 1 / 1; }

.hw-typing {
  justify-self: start;
  align-self: end;
  display: flex;
  gap: 0.3em;
  padding: 0.9em 1em;
  background-color: #ffffff;
  border-radius: 1em;
  opacity: 0;
}

.hw-typing i {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background-color: #8696a0;
  animation: hwDot 1s ease-in-out infinite;
}

.hw-typing i:nth-child(2) { animation-delay: 0.15s; }
.hw-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes hwDot {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-0.35em); opacity: 1; }
}

.hw-scr.is-active .hw-typing { animation: hwTyping 1.3s 2.5s both; }

@keyframes hwTyping {
  0% { opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { opacity: 0; }
}

.hw-wa-tpl {
  display: flex;
  gap: 0.5em;
  padding: 0.6em 1.2em;
  overflow: hidden;
}

.hw-wa-tpl span {
  position: relative;
  flex-shrink: 0;
  padding: 0.45em 0.9em;
  font-size: 0.95em;
  font-weight: 700;
  color: #0b7a5c;
  background-color: #ffffff;
  border: 1px solid #cdeee0;
  border-radius: 2em;
}

.hw-wa-input {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.3em 1.2em 2.4em;
}

.hw-wa-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6em;
  height: 3.8em;
  padding: 0 1.2em;
  color: #8696a0;
  background-color: #ffffff;
  border-radius: 2em;
}

.hw-wa-field svg {
  width: 1.4em;
  height: 1.4em;
}

.hw-wa-field span {
  flex: 1;
  font-size: 1.05em;
}

.hw-wa-mic {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.8em;
  height: 3.8em;
  color: #ffffff;
  background-color: #00a884;
  border-radius: 50%;
}

.hw-wa-mic svg {
  width: 1.6em;
  height: 1.6em;
}

/* ---- Push notification (drops in on every screen) ---- */
.hw-push {
  position: absolute;
  top: 3.9em;
  right: 1em;
  left: 1em;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 1em 1.1em;
  background-color: rgba(255, 255, 255, 0.97);
  border-radius: 1.8em;
  box-shadow: 0 1.2em 2.4em -1em rgba(15, 23, 42, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-140%);
}

/* Arrives after each screen's own animation, leaves before the next step */
.hw-push.is-show { animation: hwPush 2.4s 4.2s var(--ease) both; }

@keyframes hwPush {
  0% { opacity: 0; transform: translateY(-140%); }
  15%, 82% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-140%); }
}

.hw-push .tile-ico {
  flex-shrink: 0;
  width: 3.4em;
  height: 3.4em;
  border-radius: 1em;
}

.hw-push-body {
  flex: 1;
  min-width: 0;
}

.hw-push-body small,
.hw-push-body b,
.hw-push-body span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hw-push-body small {
  font-size: 0.9em;
  font-weight: 600;
  color: var(--ink-400);
}

.hw-push-body b {
  font-size: 1.2em;
  color: var(--ink-900);
}

.hw-push-body span {
  font-size: 1.05em;
  color: var(--ink-600);
}

/* ---- Floating cards beside the phone ---- */
.hw-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  background-color: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: cardFloat 6s ease-in-out infinite;
}

.hw-float-1 { top: 17%; left: -3rem; }
.hw-float-2 { right: -3rem; bottom: 16%; animation-delay: -3s; }

.hw-float-in {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hw-float-in.is-swap { animation: hwChip 0.5s var(--ease); }

@keyframes hwChip {
  from { opacity: 0; transform: translateY(6px); }
}

.hw-float .tile-ico {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: var(--hw-grad);
  border-radius: 11px;
}

.hw-float .tile-ico svg {
  width: 19px;
  height: 19px;
}

.hw-float b {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-900);
}

.hw-float b + span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-500);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .hw-container { column-gap: 2.5rem; }
  .hw-device { --hs: 0.9; }
  .hw-float-1 { left: -1rem; }
  .hw-float-2 { right: -1rem; }
}

/* Short desktop screens: only the active step keeps its description */
@media (min-width: 961px) and (max-height: 800px) {
  .hw-step:not(.is-active) .hw-step-text > span {
    max-height: 0;
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .hw-section { min-height: 0; padding: 4rem 0; }

  .hw-container {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "head" "visual" "steps";
    row-gap: 2rem;
  }

  .hw-head {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
  }

  .hw-head .ind-desc { margin-inline: auto; }
  .hw-visual { min-height: 0; padding: 1.5rem 0; }
  .hw-float-1 { left: 4%; }
  .hw-float-2 { right: 4%; }

  .hw-steps {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  /* Accordion: only the active step shows its description */
  .hw-step:not(.is-active) .hw-step-text > span {
  display: block;
    max-height: 0;
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .hw-container { padding: 0 1rem; }
  .hw-device { --hs: 0.8; }
  .hw-rings { transform: scale(0.75); }
  .hw-steps { --ic: 52px; }
  .hw-glyph { width: 21px; height: 21px; }
  .hw-float-1 { left: 0; }
  .hw-float-2 { right: 0; }
}

@media (max-width: 480px) {
  .hw-device { --hs: 0.68; }
  .hw-float { display: none; }
}

/* ==================== APP SUITE ==================== */
.ap-section {
  --hw-a: #3b7bf6;
  --hw-b: #4f46e5;
  --hw-grad: linear-gradient(135deg, var(--hw-a), var(--hw-b));
  --ap-dur: 6.5s;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h, 76px));
  min-height: calc(100svh - var(--header-h, 76px));
  padding: 2.5rem 0;
  background:
    radial-gradient(ellipse 40% 55% at 50% 60%, rgba(59, 123, 246, 0.08), transparent 70%),
    var(--surface-muted);
  border-top: 1px solid var(--line-soft);
}

.ap-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.ap-head {
  max-width: 720px;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.ap-head .ind-tag { display: block; }
.ap-head .ind-title { margin-bottom: 0.6rem; }
.ap-head .ind-desc { margin: 0 auto; }

.ap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) minmax(0, 1fr);
  grid-template-areas: "left visual right";
  align-items: center;
  gap: 2.5rem;
}

.ap-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ap-col-left { grid-area: left; --from: -28px; }
.ap-col-right { grid-area: right; --from: 28px; }

/* ---- Cards ---- */
.ap-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  width: 100%;
  padding: 1.1rem 1.3rem 1.2rem;
  overflow: hidden;
  text-align: left;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(11, 19, 36, 0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease);
}

.ap-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(37, 99, 235, 0.35);
}

.ap-card.is-active {
  border-color: var(--brand-600);
  box-shadow: 0 18px 40px -20px rgba(37, 99, 235, 0.55);
}

.ap-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  color: var(--brand-600);
  background-color: #eef4ff;
  border-radius: 16px;
  transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.ap-ico svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.1;
}

.ap-card.is-active .ap-ico {
  color: #ffffff;
  background-color: var(--brand-600);
  box-shadow: 0 10px 20px -8px rgba(37, 99, 235, 0.6);
}

/* Each card's icon has its own motion (set with --ap-anim) */
.ap-card.is-active .ap-ico svg,
.ap-card:hover .ap-ico svg {
  animation: var(--ap-anim);
}

.ap-card-t b {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 0.25rem;
}

.ap-card-t > span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-600);
}

/* Auto-advance progress along the card's bottom edge */
.ap-bar {
  position: absolute;
  right: 1.3rem;
  bottom: 0;
  left: 1.3rem;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
}

.ap-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hw-grad);
  transform: scaleX(0);
  transform-origin: left;
}

.ap-card.is-active .ap-bar::after { animation: apProg var(--ap-dur) linear forwards; }
.ap-section.is-paused .ap-card.is-active .ap-bar::after { animation-play-state: paused; }

@keyframes apProg {
  to { transform: scaleX(1); }
}

/* Cards slide in from their side when the section scrolls into view */
.ap-section.ap-js:not(.is-in) .ap-card { opacity: 0; }

.ap-section.is-in .ap-card {
  animation: apCardIn 0.7s var(--ease) backwards;
  animation-delay: calc(var(--i) * 0.08s);
}

@keyframes apCardIn {
  from { opacity: 0; transform: translateX(var(--from)); }
}

@keyframes apPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@keyframes apTurn {
  0%, 60%, 100% { transform: rotate(0); }
  20% { transform: rotate(-28deg); }
  40% { transform: rotate(14deg); }
}

@keyframes apBuzz {
  0%, 50%, 100% { transform: translateX(0) rotate(0); }
  10%, 30% { transform: translateX(-2px) rotate(-6deg); }
  20%, 40% { transform: translateX(2px) rotate(6deg); }
}

@keyframes apHop {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

@keyframes apRise {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.08); }
}

@keyframes apPop {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.14) rotate(-8deg); }
}

@keyframes apFlip {
  0%, 30% { transform: rotateY(0); }
  60%, 100% { transform: rotateY(360deg); }
}

/* ---- Centre: phone ---- */
.ap-visual {
  grid-area: visual;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.ap-device {
  position: relative;
  z-index: 2;
  font-size: 10.5px;
  font-size: min(11px, calc((100vh - var(--header-h, 76px) - 250px) / 58));
  font-size: min(11px, calc((100svh - var(--header-h, 76px) - 250px) / 58));
  line-height: 1.35;
  text-align: left;
  animation: hwFloat 6s ease-in-out infinite;
}

.ap-phone {
  width: 28em;
  height: 58em;
}

.ap-status {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 19;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.6em;
  padding: 0.3em 2.2em 0;
  color: var(--ink-900);
  transition: color 0.4s ease;
}

.ap-phone.is-dark-top .ap-status { color: #ffffff; }

/* ---- Shared screen bits ---- */
.ap-track {
  display: block;
  height: 0.8em;
  overflow: hidden;
  border-radius: 1em;
  background-color: #eef0f6;
}

.ap-track i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--tc, var(--hw-grad));
}

.hw-scr.is-active .ap-track i { animation: hwWidth 1.1s 0.5s var(--ease) both; }

.ap-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6em;
  font-size: 0.95em;
  font-weight: 700;
  color: var(--ink-600);
}

.ap-meta b { color: var(--ink-900); }

.ap-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 4.2em;
  margin: 1.1em 1.6em 0;
  font-size: 1em;
  font-weight: 700;
  color: #ffffff;
  background: var(--hw-grad);
  border-radius: 1.3em;
  box-shadow: 0 0.8em 1.6em -0.8em rgba(37, 99, 235, 0.7);
}

.ap-cta span { font-size: 1.15em; }

.ap-cta svg {
  width: 1.5em;
  height: 1.5em;
  stroke-width: 2.4;
}

.ap-in {
  position: relative;
  margin-top: 0.7em;
  padding: 0.6em 1em;
  border: 1px solid #e2e8f0;
  border-radius: 1em;
}

.ap-in small {
  display: block;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.ap-in b {
  display: block;
  min-height: 1.35em;
  font-size: 1.1em;
  font-weight: 700;
  color: var(--ink-900);
}

/* Typing effect for form fields */
.ap-type {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
}

.hw-scr.is-active .ap-type { animation: apType 0.9s var(--t, 0.5s) steps(16) forwards; }

@keyframes apType {
  to { max-width: 20em; }
}

/* ---- Post-Sales ---- */
.ap-unit {
  display: flex;
  align-items: center;
  gap: 1em;
  margin: 0 1.6em;
  padding: 1.3em 1.4em;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb 55%, #4f46e5);
  border-radius: 1.8em;
  box-shadow: 0 1.2em 2.4em -1.2em rgba(37, 99, 235, 0.7);
}

.ap-unit > div {
  flex: 1;
  min-width: 0;
}

.ap-unit small,
.ap-unit span {
  display: block;
  font-size: 0.95em;
  font-weight: 600;
  opacity: 0.85;
}

.ap-unit b {
  display: block;
  font-size: 1.6em;
  font-weight: 800;
  line-height: 1.2;
}

.ap-ring {
  position: relative;
  flex-shrink: 0;
  width: 6.4em;
  height: 6.4em;
}

.ap-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  stroke-width: 3.5;
}

.ap-ring circle { fill: none; }
.ap-ring .trk { stroke: rgba(255, 255, 255, 0.25); }

.ap-ring .val {
  stroke: #ffffff;
  stroke-dasharray: 100;
  stroke-dashoffset: 28;
}

.hw-scr.is-active .ap-ring .val { animation: apRing 1.4s 0.4s var(--ease) both; }

@keyframes apRing {
  from { stroke-dashoffset: 100; }
}

.ap-ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.35em;
}

.ap-miles {
  margin: 1.2em 1.6em 0;
  padding: 1.1em 1.3em;
  list-style: none;
  background-color: #ffffff;
  border: 1px solid #eceef5;
  border-radius: 1.6em;
}

.ap-miles li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1em;
  padding-bottom: 1em;
}

.ap-miles li:last-child { padding-bottom: 0; }

.ap-miles li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 2.3em;
  bottom: 0.1em;
  left: 1em;
  width: 0.2em;
  margin-left: -0.1em;
  border-radius: 1em;
  background-color: #e2e8f0;
}

.ap-miles li.is-done::before { background-color: #22c55e; }

.ap-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2em;
  height: 2em;
  color: #ffffff;
  background-color: #e2e8f0;
  border-radius: 50%;
}

.ap-dot svg {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 3.2;
}

.is-done .ap-dot { background-color: #22c55e; }

.is-now .ap-dot {
  background-color: var(--brand-600);
  animation: apPing 1.6s ease-out infinite;
}

@keyframes apPing {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.55); }
  100% { box-shadow: 0 0 0 0.8em rgba(37, 99, 235, 0); }
}

.ap-miles b {
  display: block;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--ink-900);
}

.ap-miles small {
  display: block;
  font-size: 0.88em;
  font-weight: 600;
  color: var(--ink-500);
}

.ap-miles .is-now small { color: var(--brand-600); }

/* ---- Mobile CRM: hierarchy ---- */
.ap-tree {
  position: relative;
  width: 23.6em;
  height: 17em;
  margin: 1em auto 0;
}

.ap-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #c7d2fe;
  stroke-width: 2;
}

.ap-lines path { stroke-dasharray: 100; }
.hw-scr.is-active .ap-lines path { animation: apDraw 1.2s 0.3s ease-out both; }

@keyframes apDraw {
  from { stroke-dashoffset: 100; }
}

.ap-node {
  position: absolute;
  top: 7em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  width: 10.6em;
  height: 4.4em;
  padding: 0 0.7em;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.2em;
  box-shadow: 0 0.6em 1.2em -0.8em rgba(15, 23, 42, 0.3);
}

.ap-node .hw-av {
  width: 2.8em;
  height: 2.8em;
}

.ap-node .hw-av span { font-size: 0.9em; }

.ap-node > div { min-width: 0; }

.ap-node b,
.ap-node small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-node b {
  font-size: 1em;
  font-weight: 800;
  color: var(--ink-900);
}

.ap-node small {
  font-size: 0.8em;
  font-weight: 600;
  color: var(--ink-500);
}

.ap-node.is-root {
  top: 0;
  left: 5.8em;
  width: 12em;
  background-color: #eef2ff;
  border-color: #c7d2fe;
}

.ap-node.m1 { left: 0.5em; }
.ap-node.m2 { left: 12.5em; }

.ap-exec {
  position: absolute;
  top: 13em;
  width: 3.6em;
  height: 3.6em;
  border: 0.2em solid #ffffff;
  box-shadow: 0 0.4em 0.8em -0.4em rgba(15, 23, 42, 0.4);
}

.ap-exec::after {
  content: "";
  position: absolute;
  right: -0.15em;
  bottom: -0.15em;
  width: 0.9em;
  height: 0.9em;
  border: 0.15em solid #ffffff;
  border-radius: 50%;
  background-color: var(--st, #22c55e);
}

.ap-exec.is-live::after { animation: livePing 1.8s ease-out infinite; }

.ap-lb-row {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.4em 0;
  font-size: 0.95em;
  font-weight: 700;
  color: var(--ink-700);
}

.ap-lb-row > span:first-child { width: 6.5em; flex-shrink: 0; }
.ap-lb-row .ap-track { flex: 1; }
.ap-lb-row > b { width: 2.4em; text-align: right; color: var(--ink-900); }

/* ---- Partner ---- */
.ap-comm {
  margin: 0 1.6em;
  padding: 1.3em 1.4em;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-radius: 1.8em;
  box-shadow: 0 1.2em 2.4em -1.2em rgba(234, 88, 12, 0.7);
}

.ap-comm > small {
  display: block;
  font-size: 0.95em;
  font-weight: 600;
  opacity: 0.9;
}

.ap-comm > b {
  display: block;
  font-size: 2.4em;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ap-comm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6em;
  margin-top: 1em;
}

.ap-comm-row div {
  padding: 0.6em 0.8em;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 1em;
}

.ap-comm-row small {
  display: block;
  font-size: 0.85em;
  opacity: 0.9;
}

.ap-comm-row b {
  display: block;
  font-size: 1.2em;
}

.ap-dim {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
}

.ap-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  padding: 1.6em 1.6em 2.8em;
  background-color: #ffffff;
  border-radius: 2.2em 2.2em 0 0;
  box-shadow: 0 -1.2em 2.4em -1em rgba(15, 23, 42, 0.35);
  transform: translateY(105%);
}

.ap-sheet::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 50%;
  width: 4em;
  height: 0.4em;
  margin-left: -2em;
  border-radius: 1em;
  background-color: #e2e8f0;
}

.ap-sheet > b {
  display: block;
  font-size: 1.35em;
  font-weight: 800;
  color: var(--ink-900);
}

.ap-sheet .ap-cta { margin: 1em 0 0; }

.hw-scr.is-active .ap-dim { animation: apDim 3.2s 1.9s both; }
.hw-scr.is-active .ap-sheet { animation: apSheet 3.2s 1.9s var(--ease) both; }

@keyframes apDim {
  0%, 100% { opacity: 0; }
  12%, 85% { opacity: 1; }
}

@keyframes apSheet {
  0%, 100% { transform: translateY(105%); }
  12%, 85% { transform: translateY(0); }
}

/* ---- Buyer ---- */
.ap-bhead {
  position: relative;
  overflow: hidden;
  margin-top: -3.6em;
  padding: 5em 1.6em 3.4em;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #4338ca);
  border-radius: 0 0 2.4em 2.4em;
}

.ap-bhead small,
.ap-bhead span {
  display: block;
  font-size: 0.95em;
  font-weight: 600;
  opacity: 0.85;
}

.ap-bhead b {
  display: block;
  font-size: 1.8em;
  font-weight: 800;
  line-height: 1.2;
}

.ap-bhead em {
  display: inline-block;
  margin-top: 0.7em;
  padding: 0.25em 0.8em;
  font-size: 0.85em;
  font-style: normal;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 1em;
}

.ap-bldg {
  position: absolute;
  right: 1.8em;
  bottom: 0;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.25em;
  width: 6.4em;
  padding: 0.5em 0.5em 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.8em 0.8em 0 0;
}

.ap-bldg i {
  height: 0.75em;
  border-radius: 0.2em;
  background: rgba(255, 255, 255, 0.18);
}

.hw-scr.is-active .ap-bldg i.is-built { animation: apFloor 0.3s calc(0.4s + var(--i) * 0.12s) both; }

@keyframes apFloor {
  to { background-color: #fcd34d; }
}

.ap-pay {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1em;
  margin: -2.2em 1.6em 0;
  padding: 1.1em 1.2em;
  background-color: #ffffff;
  border-radius: 1.6em;
  box-shadow: 0 1em 2em -1.2em rgba(15, 23, 42, 0.35);
}

.ap-pay > div {
  flex: 1;
  min-width: 0;
}

.ap-pay small {
  display: block;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--ink-500);
}

.ap-pay b {
  display: block;
  font-size: 1.55em;
  font-weight: 800;
  color: var(--ink-900);
}

.ap-pay span {
  display: block;
  font-size: 0.9em;
  font-weight: 700;
  color: #d97706;
}

.ap-paybtn {
  --sw: 3.5s;
  position: relative;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  padding: 0.7em 1.1em;
  font-size: 1em;
  font-weight: 700;
  color: #ffffff;
  background: var(--hw-grad);
  border-radius: 1em;
}

.ap-paybtn .hw-swap > span {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: #ffffff;
}

.ap-row {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.7em 0;
  border-bottom: 1px solid #f0f1f6;
}

.ap-row:last-child { border-bottom: 0; }

.ap-row > div {
  flex: 1;
  min-width: 0;
}

.ap-row b {
  display: block;
  font-size: 1.02em;
  font-weight: 700;
  color: var(--ink-900);
}

.ap-row small {
  display: block;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--ink-500);
}

.ap-note {
  display: block;
  margin-top: 0.5em;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--ink-500);
}

/* ---- New customer ---- */
.ap-prop {
  margin: 1em 1.6em 0;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #eceef5;
  border-radius: 1.8em;
}

.ap-prop-img {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.6em;
  height: 11em;
  overflow: hidden;
  background: linear-gradient(180deg, #bfdbfe 0%, #e0f2fe 65%, #f0f9ff 100%);
}

.ap-prop-img::before {
  content: "";
  position: absolute;
  top: 1.6em;
  right: 3em;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background: radial-gradient(circle, #fde68a, #fbbf24);
  box-shadow: 0 0 1.6em rgba(251, 191, 36, 0.6);
}

.ap-prop-img i {
  width: var(--bw);
  height: var(--bh);
  background-color: var(--bc);
  background-image: repeating-linear-gradient(0deg, transparent 0 0.6em, rgba(255, 255, 255, 0.45) 0.6em 1em);
  background-size: 100% 100%;
  border-radius: 0.4em 0.4em 0 0;
  transform-origin: bottom;
}

.hw-scr.is-active .ap-prop-img i {
  animation: hwGrow 0.9s var(--ease) both;
  animation-delay: calc(0.3s + var(--i) * 0.12s);
}

.ap-badge {
  position: absolute;
  top: 1em;
  left: 1em;
  padding: 0.3em 0.8em;
  font-size: 0.85em;
  font-weight: 800;
  color: var(--brand-700);
  background-color: #ffffff;
  border-radius: 1em;
}

.ap-prop-body { padding: 1em 1.2em 1.2em; }

.ap-prop-body > b {
  display: block;
  font-size: 1.3em;
  font-weight: 800;
  color: var(--ink-900);
}

.ap-prop-body > small {
  display: block;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--ink-500);
}

.ap-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5em;
}

.ap-price b {
  font-size: 1.2em;
  font-weight: 800;
  color: var(--brand-600);
}

.ap-acts {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0.6em;
  margin-top: 0.9em;
}

.ap-dl,
.ap-enq {
  position: relative;
  display: grid;
  place-items: center;
  height: 3.4em;
  overflow: hidden;
  font-size: 0.95em;
  font-weight: 700;
  border-radius: 1em;
}

.ap-dl {
  --sw: 3.7s;
  color: #ffffff;
  background: var(--hw-grad);
}

.ap-dl::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.28);
  transform: scaleX(0);
  transform-origin: left;
}

.hw-scr.is-active .ap-dl::before { animation: apDl 1.2s 2.4s linear both; }

@keyframes apDl {
  to { transform: scaleX(1); }
}

.ap-dl .hw-swap {
  position: relative;
  justify-items: center;
}

.ap-dl .hw-swap > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.ap-dl svg {
  width: 1.3em;
  height: 1.3em;
  stroke-width: 2.4;
}

.ap-enq {
  color: var(--brand-600);
  background-color: #eef4ff;
}

/* ---- Visitor ---- */
.ap-assign {
  --sw: 3.4s;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-top: 0.7em;
  padding: 0.6em 1em;
  border: 1px solid #c7d2fe;
  border-radius: 1em;
  background-color: #f5f7ff;
}

.ap-assign > small {
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.ap-assign .hw-swap { flex: 1; }

.ap-assign .hw-swap > span {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--ink-900);
}

.ap-assign .hw-swap > span:first-child { color: var(--ink-400); }

.ap-assign .hw-av {
  width: 2.2em;
  height: 2.2em;
}

.ap-assign .hw-av span { font-size: 0.75em; }

.ap-assign > svg {
  width: 1.3em;
  height: 1.3em;
  color: var(--ink-400);
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
  .ap-grid { gap: 1.5rem; grid-template-columns: minmax(0, 1fr) minmax(280px, 320px) minmax(0, 1fr); }
  .ap-card { padding: 1rem 1.1rem 1.1rem; gap: 0.9rem; }
  .ap-ico { width: 48px; height: 48px; border-radius: 14px; }
  .ap-ico svg { width: 22px; height: 22px; }
  .ap-card-t b { font-size: 1rem; }
  .ap-card-t > span { font-size: 0.84rem; }
}

@media (max-width: 1024px) {
  .ap-section { min-height: 0; padding: 4rem 0; }

  .ap-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "visual visual" "left right";
    align-items: start;
  }

  .ap-device { font-size: 10px; }
}

@media (max-width: 640px) {
  .ap-section { padding: 3.5rem 0; }
  .ap-container { padding: 0 1rem; }

  .ap-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "visual" "left" "right";
  }

  .ap-device { font-size: 9px; }
  .ap-col-left,
  .ap-col-right { --from: 0; }
}

/* ==================== FAQ (same design as the home page) ==================== */
/* Reuses hero-pill, hero-title and hero-desc; accordion toggled by JS */
.faq {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  background-color: var(--surface);
  border-top: 1px solid var(--line-soft);
}

.faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(59, 123, 246, 0.1), transparent 70%);
  pointer-events: none;
}

.faq-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.faq-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
  text-align: center;
}

.faq .hero-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.faq .hero-desc {
  margin-bottom: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.faq-item {
  background-color: #eef4ff;
  border: 1px solid transparent;
  border-radius: 20px;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: #d0e1fd;
}

.faq-item.is-open {
  background-color: var(--surface);
  border-color: var(--line);
  box-shadow: 0 18px 40px -20px rgba(37, 99, 235, 0.3);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.1rem 1.1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  color: var(--ink-900);
  border-radius: 20px;
}

.faq-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  color: var(--ink-700);
  background-color: var(--surface);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(11, 19, 36, 0.06);
  transition: transform 0.3s var(--ease), color 0.2s ease, background-color 0.2s ease;
}

.faq-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.25;
}

.faq-question:hover .faq-icon {
  color: var(--brand-600);
}

/* Plus rotates into a close (x) when open */
.faq-item.is-open .faq-icon {
  color: var(--ink-900);
  background-color: #e2eafa;
  box-shadow: none;
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  padding: 0 4.5rem 1.35rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-500);
}

/* Scroll reveal: JS adds .reveal-ready, so content never stays hidden without it */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

.is-visible [data-reveal] {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .faq {
    padding: 3.5rem 0;
  }
  .faq-inner {
    padding: 0 1.25rem;
  }
  .faq-head {
    margin-bottom: 2.25rem;
  }
  .faq-question {
    padding: 0.95rem 0.9rem 0.95rem 1.15rem;
    font-size: 0.925rem;
  }
  .faq-icon {
    width: 34px;
    height: 34px;
  }
  .faq-answer p {
    padding: 0 1.15rem 1.15rem;
  }
}

/* ==================== INDUSTRIES: HOW MOBILE CRM HELPS ==================== */
/* Sized to fit one screen below the sticky header */
.ind-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h, 76px));
  min-height: calc(100svh - var(--header-h, 76px));
  padding: 2.5rem 0;
  background-color: var(--surface);
  border-top: 1px solid var(--line-soft);
}

.ind-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 3.5rem;
}

.ind-left {
  display: flex;
  flex-direction: column;
}

.ind-tag {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.ind-title {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--ink-900);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.ind-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-600);
  margin-bottom: 1.4rem;
  max-width: 580px;
}

.ind-desc strong {
  color: var(--ink-900);
}

.ind-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 0.75rem;
}

.ind-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* Industry chips */
.ind-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
  list-style: none;
}

.ind-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 32px;
  padding: 0 0.75rem 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-700);
  background-color: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

.ind-chip:hover {
  color: var(--brand-700);
  border-color: #c7dafc;
  transform: translateY(-1px);
}

.ind-chip svg {
  width: 16px;
  height: 16px;
  color: var(--brand-600);
}

/* Capability cards */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.6rem;
  list-style: none;
}

.ind-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem 0.75rem 0.75rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(11, 19, 36, 0.04);
  transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease;
}

.ind-item:hover {
  transform: translateY(-2px);
  border-color: #c7dafc;
  box-shadow: 0 10px 22px -12px rgba(37, 99, 235, 0.35);
}

.ind-item .tile-ico {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.ind-item .tile-ico svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.9;
}

.ind-item b {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-900);
  margin-bottom: 0.2rem;
}

.ind-item p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-500);
}

.ind-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 0.5rem;
  height: 48px;
  padding: 0 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  border-radius: 999px;
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.ind-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(37, 99, 235, 0.55);
}

.ind-btn svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.5;
}

/* ---- Right: image + floating mobile CRM cards (same layout as the home page) ---- */
.ind-right {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 10px; /* card sizes scale from this */
}

.ind-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 60%;
  height: auto;
}

.rc-card {
  position: absolute;
  z-index: 2;
  padding: 1em 1.1em;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 30px -14px rgba(11, 19, 36, 0.22);
  text-align: left;
  animation: rcFloat 6s ease-in-out infinite;
}

@keyframes rcFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.rc-title {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.15em;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 0.7em;
}

.rc-live {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background-color: #22c55e;
  animation: livePing 1.8s ease-out infinite;
}

/* Mobile dashboard */
.rc-dash {
  top: 0%;
  left: 0;
  width: 35%;
}

.rc-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6em;
  padding-bottom: 0.7em;
  margin-bottom: 0.7em;
  border-bottom: 1px solid var(--line-soft);
}

.rc-kpis small,
.rc-sub {
  display: block;
  font-size: 0.8em;
  font-weight: 600;
  color: var(--ink-500);
  white-space: nowrap;
}

.rc-kpis b {
  font-size: 1.25em;
  font-weight: 800;
  color: var(--ink-900);
  white-space: nowrap;
}

.rc-kpis em {
  margin-left: 0.3em;
  font-size: 0.75em;
  font-style: normal;
  font-weight: 700;
  color: #059669;
}

.rc-line {
  width: 100%;
  height: auto;
  margin-top: 0.4em;
  stroke-width: 1.6;
}

/* Feature icon tiles */
.rc-icons {
  top: 0;
  right: 0;
  display: flex;
  gap: 0.8em;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  animation-delay: -1.5s;
}

.rc-icons span {
  display: grid;
  place-items: center;
  width: 4.4em;
  height: 4.4em;
  color: var(--ink-800);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 22px -12px rgba(11, 19, 36, 0.25);
}

.rc-icons svg {
  width: 2em;
  height: 2em;
  stroke-width: 1.7;
}

.rc-icons span:nth-child(odd) svg { color: var(--brand-600); }

/* Sales report */
.rc-report {
  top: 19%;
  right: 0;
  width: 30%;
  animation-delay: -3s;
}

.rc-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.6em;
  height: 7em;
  padding-top: 0.4em;
  border-bottom: 1px solid var(--line-soft);
}

.rc-bars i {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, #60a5fa, var(--brand-600));
  border-radius: 3px 3px 0 0;
}

.rc-bars i:nth-child(odd) { opacity: 0.7; }

.rc-months {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35em;
  font-size: 0.75em;
  font-weight: 600;
  color: var(--ink-400);
}

/* Follow-ups + live updates lists */
.rc-tasks {
  top: 48%;
  left: 0;
  width: 30%;
  animation-delay: -2s;
}

.rc-activity {
  bottom: 18%;
  right: 0;
  width: 29%;
  animation-delay: -4s;
}

.rc-list {
  display: flex;
  flex-direction: column;
  gap: 0.65em;
  list-style: none;
}

.rc-list li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--ink-700);
  white-space: nowrap;
}

.rc-list li span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rc-list small {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--ink-400);
}

.rc-dot {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.5em;
  height: 1.5em;
  color: #ffffff;
  background-color: var(--c);
  border-radius: 4px;
}

.rc-dot svg {
  width: 1em;
  height: 1em;
  stroke-width: 3;
}

.rc-activity .rc-dot {
  border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
  .rc-card, .rc-live { animation: none; }
}

@media (max-width: 1024px) {
  .ind-section { min-height: 0; padding: 4rem 0; }
  .ind-container { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .ind-right { width: 100%; max-width: 520px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .ind-section { padding: 3.5rem 0; }
  .ind-container { padding: 0 1rem; gap: 2.5rem; }
  .ind-grid { grid-template-columns: minmax(0, 1fr); }
  .ind-btn { width: 100%; }
  .ind-right { min-height: 400px; font-size: 7.5px; }
  .rc-icons,
  .rc-activity { display: none; }
  .rc-dash { width: 50%; }
  .rc-report { width: 40%; top: 4%; }
  .rc-tasks { width: 40%; }
}

/* ==================== CLOSING CTA BANNER ==================== */
.cta {
  position: relative;
  padding: 8rem 0;
  background-color: var(--surface);
}

.cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* The phone overflows the banner, so the banner itself can't clip */
.cta-banner {
  position: relative;
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  align-items: center;
  min-height: 340px;
  border-radius: 48px;
  box-shadow: 0 40px 80px -40px rgba(37, 99, 235, 0.6);
}

/* Decorations live in their own clipped layer */
.cta-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 70%),
    linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 55%, var(--brand-700) 100%);
}

.cta-bg::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 190px;
  width: 440px;
  height: 440px;
  margin: -220px 0 0 -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 60%, transparent 72%);
}

.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 58%, rgba(255, 255, 255, 0.07) 58%, rgba(255, 255, 255, 0.07) 72%, transparent 72%),
    linear-gradient(120deg, transparent 78%, rgba(255, 255, 255, 0.05) 78%);
}

.cta-visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
}

.cta-phone-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
}

.cta-phone {
  position: relative;
  width: 25em;
  height: 50em;
  padding: 0.45em;
  font-size: 10px;
  line-height: 1.35;
  text-align: left;
  border-radius: 4.4em;
  background: linear-gradient(145deg, #eef0f4 0%, #b8bec9 30%, #f5f6f8 52%, #9aa2ae 78%, #d9dde3 100%);
  box-shadow:
    0 0 0 1px rgba(11, 19, 36, 0.12),
    -30px 50px 70px -30px rgba(11, 19, 36, 0.55);
  animation: ctaFloat 6s ease-in-out infinite;
}

@keyframes ctaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.cta-bezel {
  height: 100%;
  padding: 0.6em;
  border-radius: 4em;
  background-color: #07090e;
}

.cta-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
  height: 100%;
  padding: 1.1em 1.4em 1.6em;
  overflow: hidden;
  background-color: #f4f6fb;
  border-radius: 3.4em;
}

.cta-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}

.cta-island {
  position: absolute;
  top: 1em;
  left: 50%;
  width: 7.6em;
  height: 2.3em;
  margin-left: -3.8em;
  border-radius: 2em;
  background-color: #000000;
}

.cta-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.6em;
  color: var(--ink-700);
}

.cta-topbar svg {
  width: 1.7em;
  height: 1.7em;
}

.cta-app-head {
  display: flex;
  align-items: center;
  gap: 1em;
}

.cta-app-ico {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.8em;
  height: 3.8em;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-radius: 1.2em;
  box-shadow: 0 0.6em 1.2em -0.6em rgba(37, 99, 235, 0.7);
}

/* Radar ping behind the location pin */
.cta-app-ico::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: ctaPing 2.4s ease-out infinite;
}

@keyframes ctaPing {
  0% { box-shadow: 0 0 0 0 rgba(59, 123, 246, 0.5); }
  100% { box-shadow: 0 0 0 1em rgba(59, 123, 246, 0); }
}

.cta-app-ico svg {
  width: 1.9em;
  height: 1.9em;
  animation: ctaPin 2.4s ease-in-out infinite;
}

@keyframes ctaPin {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-0.3em); }
}

.cta-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-left: auto;
  padding: 0.3em 0.8em;
  font-size: 0.85em;
  font-weight: 800;
  color: #059669;
  background-color: #dcfce7;
  border-radius: 1em;
}

.cta-live i {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background-color: #22c55e;
  animation: livePing 1.8s ease-out infinite;
}

.cta-app-head b {
  display: block;
  font-size: 1.5em;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink-900);
}

.cta-app-head small {
  display: block;
  font-size: 1em;
  font-weight: 600;
  color: var(--ink-500);
}

.cta-card {
  padding: 1.2em 1.3em;
  background-color: #ffffff;
  border: 1px solid #e7e9f1;
  border-radius: 1.8em;
}

.cta-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6em;
}

.cta-card-h b {
  font-size: 1.2em;
  font-weight: 800;
  color: var(--brand-600);
}

.cta-card-h span {
  font-size: 0.95em;
  font-weight: 700;
  color: var(--brand-600);
}

.cta-card p {
  font-size: 1em;
  line-height: 1.5;
  color: var(--ink-500);
}

.cta-tasks {
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  list-style: none;
}

.cta-tasks li {
  display: flex;
  align-items: flex-start;
  gap: 0.8em;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-700);
}

/* ---- Looping story (8s): tick task 2 → tick task 3 → tap button → toast ---- */
.cta-prog {
  height: 0.5em;
  margin: -0.1em 0 1em;
  overflow: hidden;
  background-color: var(--brand-50);
  border-radius: 1em;
}

.cta-prog i {
  display: block;
  width: 33%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
  border-radius: inherit;
  animation: ctaProg 8s 1s ease-in-out infinite;
}

@keyframes ctaProg {
  0%, 18%, 96%, 100% { width: 33%; }
  22%, 36% { width: 66%; }
  40%, 92% { width: 100%; }
}

.cta-check {
  position: relative;
  flex-shrink: 0;
  width: 1.7em;
  height: 1.7em;
  background-color: #ffffff;
  border: 0.15em solid #d0e1fd;
  border-radius: 0.5em;
}

.cta-check i {
  position: absolute;
  inset: -0.15em;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-radius: 0.5em;
  opacity: 0;
  transform: scale(0.4);
}

.cta-check svg {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 3.5;
}

/* Strike-through line that draws across the task */
.cta-task {
  position: relative;
  white-space: nowrap;
}

.cta-task::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 0.12em;
  background-color: var(--ink-400);
  border-radius: 1em;
}

.cta-tasks .is-done { color: var(--ink-400); }
.cta-tasks .is-done .cta-check i { opacity: 1; transform: none; }
.cta-tasks .is-done .cta-task::after { width: 100%; }

.cta-tasks .t2 .cta-check i { animation: ctaTick2 8s 1s ease-in-out infinite; }
.cta-tasks .t2 .cta-task::after { animation: ctaLine2 8s 1s ease-in-out infinite; }
.cta-tasks .t3 .cta-check i { animation: ctaTick3 8s 1s ease-in-out infinite; }
.cta-tasks .t3 .cta-task::after { animation: ctaLine3 8s 1s ease-in-out infinite; }

@keyframes ctaTick2 {
  0%, 18%, 96%, 100% { opacity: 0; transform: scale(0.4); }
  22%, 92% { opacity: 1; transform: none; }
}

@keyframes ctaLine2 {
  0%, 20%, 96%, 100% { width: 0; }
  25%, 92% { width: 100%; }
}

@keyframes ctaTick3 {
  0%, 36%, 96%, 100% { opacity: 0; transform: scale(0.4); }
  40%, 92% { opacity: 1; transform: none; }
}

@keyframes ctaLine3 {
  0%, 38%, 96%, 100% { width: 0; }
  43%, 92% { width: 100%; }
}

.cta-screen-btn {
  position: relative;
  display: grid;
  place-items: center;
  height: 4.6em;
  margin-top: auto;
  overflow: hidden;
  font-size: 1.15em;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-radius: 1.6em;
  box-shadow: 0 0.8em 1.6em -0.8em rgba(37, 99, 235, 0.8);
  animation: ctaPress 8s 1s ease-in-out infinite;
}

@keyframes ctaPress {
  0%, 47%, 53%, 100% { transform: none; }
  50% { transform: scale(0.95); }
}

/* Green "completed" state fades over the button after the tap */
.cta-screen-btn .cta-done {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  background: linear-gradient(135deg, #34d399, #059669);
  opacity: 0;
  animation: ctaDone 8s 1s ease-in-out infinite;
}

.cta-done svg {
  width: 1.3em;
  height: 1.3em;
  stroke-width: 3;
}

@keyframes ctaDone {
  0%, 51%, 96%, 100% { opacity: 0; }
  54%, 92% { opacity: 1; }
}

/* Finger tap indicator */
.cta-touch {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 3.4em;
  height: 3.4em;
  margin: -1.7em 0 0 -1.7em;
  border: 0.2em solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background-color: rgba(11, 19, 36, 0.2);
  opacity: 0;
  animation: ctaTouch 8s 1s ease-out infinite;
}

@keyframes ctaTouch {
  0%, 44%, 100% { opacity: 0; transform: scale(1.6); }
  48% { opacity: 1; transform: scale(1); }
  51% { opacity: 1; transform: scale(0.8); }
  56% { opacity: 0; transform: scale(1); }
}

/* Confirmation toast that drops in from the top */
.cta-toast {
  position: absolute;
  top: 3.9em;
  right: 1.2em;
  left: 1.2em;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.9em;
  padding: 0.9em 1em;
  background-color: rgba(255, 255, 255, 0.98);
  border-radius: 1.6em;
  box-shadow: 0 1.2em 2.4em -1em rgba(11, 19, 36, 0.45);
  opacity: 0;
  transform: translateY(-160%);
  animation: ctaToast 8s 1s var(--ease) infinite;
}

.cta-toast .tile-ico {
  flex-shrink: 0;
  width: 3.2em;
  height: 3.2em;
  border-radius: 50%;
}

.cta-toast b,
.cta-toast span {
  display: block;
  white-space: nowrap;
}

.cta-toast b {
  font-size: 1.15em;
  color: var(--ink-900);
}

.cta-toast span {
  font-size: 0.95em;
  font-weight: 600;
  color: var(--ink-500);
}

@keyframes ctaToast {
  0%, 55%, 100% { opacity: 0; transform: translateY(-160%); }
  60%, 86% { opacity: 1; transform: none; }
  91% { opacity: 0; transform: translateY(-160%); }
}

/* Floating notification beside the phone */
.cta-chip {
  position: absolute;
  bottom: 6%;
  left: -1.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1rem 0.65rem 0.65rem;
  font-size: 13px;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: cardIn 0.8s 0.4s var(--ease) both, cardFloat 5s ease-in-out infinite;
}

.cta-chip .tile-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.cta-chip .tile-ico svg {
  width: 18px;
  height: 18px;
}

.cta-chip b {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
}

.cta-chip span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-500);
  white-space: nowrap;
}

.cta-content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 4rem 3.5rem 1.5rem;
  color: #ffffff;
}

.cta-title {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-title span {
  color: var(--ink-900);
}

.cta-desc {
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.75rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 50px;
  padding: 0 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-700);
  background-color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 12px 24px -8px rgba(11, 19, 36, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background-color 0.2s ease;
}

.cta-btn:hover {
  background-color: var(--brand-50);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -8px rgba(11, 19, 36, 0.45);
}

.cta-btn svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.5;
  transition: transform 0.2s var(--ease);
}

.cta-btn:hover svg {
  transform: translateX(3px);
}

.cta-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.45);
  transition: border-color 0.2s ease;
}

.cta-link:hover {
  border-color: #ffffff;
}

@media (max-width: 960px) {
  .cta { padding: 9rem 0 4.5rem; }
  .cta-banner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .cta-bg::before { top: 90px; left: 50%; }
  .cta-visual { height: 400px; margin-top: -90px; }
  .cta-phone { font-size: 8px; }
  .cta-chip { left: calc(50% - 230px); bottom: 10%; }
  .cta-content { padding: 1.5rem 2rem 3rem; }
  .cta-desc { margin-inline: auto; }
  .cta-actions { justify-content: center; }
}

@media (max-width: 640px) {
  .cta-inner { padding: 0 1rem; }
  .cta-banner { border-radius: 32px; }
  .cta-visual { height: 340px; margin-top: -80px; }
  .cta-phone { font-size: 7px; }
  .cta-chip { left: 0.75rem; bottom: 8%; padding: 0.5rem 0.8rem 0.5rem 0.5rem; }
  .cta-chip .tile-ico { width: 30px; height: 30px; }
  .cta-chip b { font-size: 0.75rem; }
  .cta-chip span { font-size: 0.68rem; }
  .cta-content { padding: 1.25rem 1.25rem 2.5rem; }
  .cta-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================== HEADING BADGE (shared .ph-badge design) ==================== */
.ph-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem;
  margin-bottom: 1.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-700, #334155);
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 999px;
  box-shadow: var(--shadow-md, 0 4px 12px rgba(15, 23, 42, 0.08));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ph-badge b {
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500, #3b7bf6), var(--brand-600, #2563eb));
  border-radius: 999px;
}

/* ==================== SEO SECTIONS (page design) ==================== */
.kw-section, .alt-section, .rel-section {
  --kw-accent: #2563eb;
  --kw-accent-ink: color-mix(in srgb, #2563eb 82%, #000);
  --kw-tint: color-mix(in srgb, #2563eb 9%, #fff);
  --kw-tint-2: color-mix(in srgb, #2563eb 16%, #fff);
  --kw-ink: var(--ink-900, #0b1324);
  --kw-text: var(--ink-600, #475569);
  --kw-line: var(--line, #e6ebf2);
  position: relative;
  padding: 6rem 0;
  background-color: var(--surface, #fff);
}
.kw-inner, .rel-inner, .alt-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Badge: same pill as the page headers (ph-badge) */
.kw-badge {
  display: inline-flex; width: fit-content; max-width: 100%; align-items: center; gap: 0.6rem;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem; margin-bottom: 1.4rem; font-size: 0.8rem; font-weight: 600;
  color: var(--ink-700, #334155); background-color: rgba(255, 255, 255, 0.85); border: 1px solid var(--kw-line);
  border-radius: 999px; box-shadow: var(--shadow-md, 0 8px 24px rgba(11, 19, 36, 0.06));
}
.kw-badge b {
  padding: 0.2rem 0.6rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: linear-gradient(180deg, var(--brand-500, #3b7bf6), var(--brand-600, #2563eb)); border-radius: 999px;
}

/* ---------- Keyword section: copy + product panel ---------- */
.kw-section .kw-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 4.5rem; align-items: center; }
.kw-section.kw-flip .kw-copy { order: 2; }
.kw-copy h2 { margin: 0 0 1.1rem; font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; color: var(--kw-ink); }
.kw-lead { margin: 0 0 1.75rem; font-size: 1.05rem; line-height: 1.75; color: var(--kw-text); }
.kw-lead strong { color: var(--kw-ink); }
.kw-list { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.kw-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.kw-check { display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; color: var(--kw-accent-ink); background: var(--kw-tint-2); border-radius: 8px; }
.kw-check svg { width: 15px; height: 15px; stroke-width: 3; }
.kw-item h3 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--kw-ink); }
.kw-item p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--kw-text); }
.kw-item a, .alt-card a { font-weight: 700; color: var(--kw-accent-ink); text-decoration: none; }

.kw-visual { position: relative; padding: 2rem 1rem 3rem; }
.kw-visual::before { content: ""; position: absolute; inset: 8% 4%; background: radial-gradient(closest-side, var(--kw-tint-2), transparent); filter: blur(10px); }
.kw-panel { position: relative; overflow: hidden; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 22px; box-shadow: var(--shadow-lg, 0 24px 60px -12px rgba(11, 19, 36, 0.18)); }
.kw-panel-head { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.25rem; color: #fff; background: linear-gradient(135deg, var(--kw-accent), var(--kw-accent-ink)); }
.kw-panel-logo { display: grid; place-items: center; width: 38px; height: 38px; background: rgba(255, 255, 255, 0.18); border-radius: 11px; }
.kw-panel-logo svg { width: 19px; height: 19px; }
.kw-panel-head strong { display: block; font-size: 0.95rem; font-weight: 700; }
.kw-panel-head small { display: block; font-size: 0.72rem; opacity: 0.8; }
.kw-live { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: auto; padding: 0.25rem 0.6rem; font-size: 0.7rem; font-weight: 700; color: var(--kw-accent-ink); background: #fff; border-radius: 999px; }
.kw-live i { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.kw-ico { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; color: var(--kw-accent-ink); background: var(--kw-tint); border-radius: 10px; }
.kw-ico svg { width: 17px; height: 17px; }
.kw-panel-rows { margin: 0; padding: 0.4rem 0; list-style: none; }
.kw-panel-rows li { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 1.25rem; border-bottom: 1px solid var(--line-soft, #f0f3f8); }
.kw-panel-rows li:last-child { border-bottom: 0; }
.kw-row-txt { flex: 1; min-width: 0; font-size: 0.88rem; font-weight: 600; color: var(--kw-ink); }
.kw-panel-rows em { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.72rem; font-style: normal; font-weight: 700; color: #15803d; }
.kw-panel-rows em svg { width: 13px; height: 13px; stroke-width: 3; }
.kw-panel-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 1.1rem; list-style: none; }
.kw-panel-tiles li { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem; background: var(--surface-muted, #f7f9fc); border: 1px solid var(--line-soft, #f0f3f8); border-radius: 14px; }
.kw-panel-tiles b { font-size: 0.85rem; font-weight: 700; line-height: 1.35; color: var(--kw-ink); }
.kw-panel-tiles em { width: fit-content; padding: 0.15rem 0.5rem; font-size: 0.68rem; font-style: normal; font-weight: 700; color: #15803d; background: #dcfce7; border-radius: 999px; }
.kw-panel-foot { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.25rem; font-size: 0.75rem; color: var(--ink-500, #64748b); background: var(--surface-muted, #f7f9fc); border-top: 1px solid var(--line-soft, #f0f3f8); }
.kw-panel-foot b { color: var(--kw-accent-ink); }
.kw-toast { position: absolute; bottom: 0; right: 0; display: flex; align-items: center; gap: 0.7rem; max-width: 280px; padding: 0.75rem 1rem 0.75rem 0.75rem; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 16px; box-shadow: var(--shadow-lg, 0 24px 60px -12px rgba(11, 19, 36, 0.18)); }
.kw-toast-ico { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; color: #fff; background: linear-gradient(180deg, #22c55e, #16a34a); border-radius: 10px; }
.kw-toast-ico svg { width: 17px; height: 17px; stroke-width: 3; }
.kw-toast b { display: block; font-size: 0.82rem; font-weight: 700; line-height: 1.3; color: var(--kw-ink); }
.kw-toast small { display: block; font-size: 0.72rem; color: var(--ink-500, #64748b); }

/* ---------- Related solutions: one rounded card with tinted link chips ---------- */
.rel-section { padding-top: 2rem; }
.rel-card { padding: 2.25rem; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 28px; box-shadow: 0 18px 50px -30px rgba(11, 19, 36, 0.25); }
.rel-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; }
.rel-top .kw-badge { margin-bottom: 0.9rem; }
.rel-top h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--kw-ink); }
.rel-all { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.65rem 1.1rem; font-size: 0.88rem; font-weight: 700; color: var(--kw-ink); text-decoration: none; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 12px; box-shadow: var(--shadow-md, 0 8px 24px rgba(11, 19, 36, 0.06)); transition: border-color 0.2s ease, color 0.2s ease; }
.rel-all:hover { color: var(--brand-600, #2563eb); border-color: var(--brand-600, #2563eb); }
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.rel-grid a { display: flex; align-items: center; gap: 0.9rem; height: 100%; padding: 0.95rem 1rem; text-decoration: none; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 16px; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.rel-grid a:hover { background: var(--surface, #fff); border-color: color-mix(in srgb, var(--kw-accent) 40%, #fff); transform: translateY(-2px); }
.rel-grid a:focus-visible { outline: 3px solid color-mix(in srgb, var(--kw-accent) 40%, transparent); outline-offset: 2px; }
.rel-ico { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; color: #fff; background: var(--kw-accent); border-radius: 12px; box-shadow: 0 2px 6px rgba(11, 19, 36, 0.06); }
.rel-ico svg { width: 19px; height: 19px; }
.rel-txt { flex: 1; min-width: 0; }
.rel-txt strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--kw-ink); }
.rel-txt-desc { display: block; margin-top: 0.15rem; font-size: 0.8rem; line-height: 1.45; color: var(--kw-text); }
.rel-arrow { flex-shrink: 0; color: var(--kw-accent); transition: transform 0.2s ease; }
.rel-grid a:hover .rel-arrow { transform: translateX(3px); }

/* Breadcrumb in the hero, above the badge */
.crumbs { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem; margin: 0 0 1.1rem; padding: 0; list-style: none; font-size: 0.85rem; color: var(--ink-500, #64748b); }
.crumbs li { display: inline-flex; align-items: center; gap: 0.4rem; }
.crumbs li + li::before { content: "›"; color: var(--ink-400, #94a3b8); }
.crumbs a { font-weight: 600; color: #2563eb; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { font-weight: 600; color: #0b1324; }

/* Contextual links in body copy: no underline, keep the paragraph colour */
main p a.ctx-link { color: inherit; font-weight: 600; text-decoration: none; }

@media (max-width: 1000px) {
  .kw-section .kw-inner { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .kw-section.kw-flip .kw-copy { order: 0; }
  .kw-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .kw-section, .rel-section, .alt-section { padding: 3.5rem 0; }
  .rel-section { padding-top: 1rem; }
  .kw-inner, .rel-inner, .alt-inner { padding: 0 1rem; }
  .kw-visual { padding: 1rem 0 3.5rem; }
  .kw-toast { left: 0.5rem; right: auto; }
  .rel-card { padding: 1.5rem 1.1rem; border-radius: 22px; }
  .rel-top { flex-direction: column; align-items: flex-start; }
  .rel-grid, .alt-grid { grid-template-columns: minmax(0, 1fr); }
  .alt-card:last-child:nth-child(3n + 1) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .rel-grid a, .rel-arrow { transition: none; }
}
/* Hero badge sits inside the H1 (keyword first); keep it looking like the normal badge */
main h1 .ph-badge.h1-badge {
  display: flex; width: fit-content; max-width: 100%; margin: 0 auto 1.4rem;
  font-size: 0.8rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none;
  -webkit-text-fill-color: currentColor;
}
main h1 .ph-badge.h1-badge b { display: inline; }
main h1 .ph-badge.h1-badge b::before { content: attr(data-label); }
/* ==================== END SEO SECTIONS ==================== */
