/* ===========================================================================
   Thanksmate — graphics.css
   Custom SVG + CSS graphics that extend the lifestyle/chat-bubble motif
   across the page. Loaded AFTER styles.css.
   =========================================================================== */

/* --- Shared chat-bubble shapes used inline in SVGs as CSS filters --- */
:root {
  --bubble-shadow: drop-shadow(0 18px 30px rgba(13, 27, 76, 0.25)) drop-shadow(0 4px 8px rgba(13, 27, 76, 0.15));
  --bubble-shadow-soft: drop-shadow(0 10px 20px rgba(13, 27, 76, 0.18));
}

/* =========================================================================
   HERO — background constellation
   Soft floating chat-bubble glyphs behind the hero content.
   ========================================================================= */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg svg {
  position: absolute;
  opacity: 0.55;
}
.hero-bg .bub-1 { top: 8%; left: 3%; width: 58px; transform: rotate(-8deg); }
.hero-bg .bub-2 { top: 22%; left: 44%; width: 36px; transform: rotate(6deg); opacity: 0.35; }
.hero-bg .bub-3 { bottom: 18%; left: 6%; width: 48px; transform: rotate(-14deg); opacity: 0.4; }
.hero-bg .bub-4 { top: 6%; right: 38%; width: 28px; transform: rotate(12deg); opacity: 0.3; }
@media (max-width: 960px) { .hero-bg { display: none; } }

/* =========================================================================
   THE LOOP — full photos (bubble already baked in) + card body below
   ========================================================================= */
.section-loop .loop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 1080px) { .section-loop .loop-grid { grid-template-columns: 1fr; gap: 36px; } }

.loop-card {
  margin: 0;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.loop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}

.loop-card__frame {
  position: relative;
  aspect-ratio: 5 / 4;
  background: var(--ink);
  overflow: hidden;
}
.loop-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.loop-card__body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.loop-card__kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.loop-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}
.loop-card__desc {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}
.loop-card__tags {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.loop-card__tags li {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
}
.section-loop .loop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 1080px) { .section-loop .loop-grid { grid-template-columns: 1fr; gap: 36px; } }

.loop-card {
  margin: 0;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.loop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}

/* Photo frame — show the full image (baked-in chat bubble + reply pill are part of the photo) */
.loop-card__frame {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--ink);
  overflow: hidden;
}
.loop-card__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Middle (cafe) image — nudge focal point up so the top of the chat bubble isn't clipped */
.loop-card__frame img[src*="cafe.png"] {
  object-position: center 30%;
}
/* First (tradie) image — same nudge so the top of the bubble isn't clipped */
.loop-card__frame img[src*="tradie.png"] {
  object-position: center 30%;
}

/* Crisp HTML chat bubble overlaid on the photo */
.loop-bubble {
  position: absolute;
  left: 18px;
  top: 18px;
  bottom: 18px;
  width: min(66%, 300px);
  background: rgba(13, 20, 58, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(89, 183, 255, 0.28);
  border-radius: 18px 18px 18px 4px;
  padding: 16px 18px;
  box-shadow:
    0 24px 48px -16px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.25);
  color: var(--paper-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.loop-bubble__head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.loop-bubble__avatar {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}
.loop-bubble__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--paper-2);
}
.loop-bubble__time {
  margin-left: auto;
  font-size: 11px;
  color: rgba(247, 243, 236, 0.55);
  font-weight: 500;
}
.loop-bubble__greeting {
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(247, 243, 236, 0.95);
  margin: 0;
}
.loop-bubble__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.loop-bubble__list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(247, 243, 236, 0.95);
}
.loop-bubble__list li::before {
  content: "✓";
  flex-shrink: 0;
  color: #3AAD5D;
  font-weight: 700;
  font-size: 12px;
  margin-top: 1px;
}
.loop-bubble__more {
  font-size: 12px;
  color: rgba(247, 243, 236, 0.55);
  font-style: italic;
  margin: 0;
}
@media (max-width: 1080px) {
  .loop-bubble { width: min(62%, 340px); }
}
@media (max-width: 520px) {
  .loop-card__frame { aspect-ratio: 4 / 3; }
}

/* Body + reply below photo (unchanged shape) */
.loop-card__body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.loop-card__kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.loop-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}
.loop-card__desc {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}
.loop-card__tags {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.loop-card__tags li {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
}
/* =========================================================================
   INSTALLED — agent team diagram
   A "You" bubble on the left, a swoosh routing to 6 agent chips on the right.
   Lives ABOVE the existing .cap-grid.
   ========================================================================= */
.agent-diagram {
  position: relative;
  margin: 56px 0 64px;
  padding: 40px clamp(16px, 3vw, 32px);
  background: linear-gradient(180deg, rgba(89, 183, 255, 0.04) 0%, rgba(89, 183, 255, 0.0) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.agent-diagram::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(89, 183, 255, 0.14), transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(244, 179, 138, 0.08), transparent 55%);
  pointer-events: none;
}
.agent-diagram__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 820px) {
  .agent-diagram__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* The "you" bubble on the left */
.agent-you {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 24px;
  position: relative;
}
.agent-you__label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.agent-you__msg {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--paper-2);
  margin-bottom: 14px;
}
.agent-you__reply {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 14px 14px 4px 14px;
  font-size: 14px;
  font-weight: 600;
  font-style: italic;
}
.agent-you__tail {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateY(-50%) rotate(45deg);
}
@media (max-width: 820px) { .agent-you__tail { display: none; } }

/* Agent chips panel */
.agent-team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
  position: relative;
}
@media (max-width: 820px) { .agent-team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .agent-team { grid-template-columns: 1fr; } }

.agent-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.agent-chip:hover {
  background: rgba(89, 183, 255, 0.08);
  border-color: rgba(89, 183, 255, 0.35);
  transform: translateX(3px);
}
.agent-chip__dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
}
.agent-chip__dot--warm { background: var(--warm); }
.agent-chip__body { min-width: 0; }
.agent-chip__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--paper-2);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agent-chip__stat {
  font-size: 12px;
  color: rgba(247, 243, 236, 0.62);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agent-chip__stat b {
  color: var(--accent);
  font-weight: 700;
}

/* Pulse dots on the connector lines */
@keyframes pulse-flow {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}
.agent-diagram svg .flow-dot {
  animation: pulse-flow 2.4s ease-in-out infinite;
  transform-origin: center;
}

/* =========================================================================
   CUSTOM BUILDS — dashboard mockup
   A made-for-you internal tool, shown in a warm-lit browser frame.
   ========================================================================= */
.custom-mockup {
  max-width: 960px;
  margin: 48px auto 0;
  position: relative;
}
.custom-mockup__frame {
  background: var(--ink);
  border-radius: 18px;
  padding: 12px 12px 0;
  box-shadow:
    0 40px 80px -30px rgba(13, 27, 76, 0.35),
    0 12px 30px -10px rgba(13, 27, 76, 0.15);
  overflow: hidden;
}
.custom-mockup__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 10px;
}
.custom-mockup__chrome span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.custom-mockup__chrome span:first-child { background: #F4B38A; }
.custom-mockup__chrome span:nth-child(2) { background: rgba(244, 179, 138, 0.4); }
.custom-mockup__url {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 11px;
  color: rgba(247, 243, 236, 0.55);
  background: rgba(255, 255, 255, 0.06);
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.custom-mockup__body {
  background: var(--paper-2);
  padding: 22px 24px 26px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  min-height: 360px;
}
@media (max-width: 720px) {
  .custom-mockup__body { grid-template-columns: 1fr; min-height: 0; }
  .custom-mockup__side { display: none; }
}

.custom-mockup__side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--rule);
  padding-right: 18px;
}
.custom-mockup__side-head {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 6px 0 10px;
}
.custom-mockup__nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}
.custom-mockup__nav-item.on {
  background: var(--accent-wash);
  color: var(--ink);
  font-weight: 600;
}
.custom-mockup__nav-item::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rule-2);
  flex-shrink: 0;
}
.custom-mockup__nav-item.on::before { background: var(--accent); }

.custom-mockup__main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.custom-mockup__h1 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.custom-mockup__h1 small {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
}

.custom-mockup__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.custom-mockup__kpi {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 12px 14px;
}
.custom-mockup__kpi-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.custom-mockup__kpi-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.custom-mockup__kpi-value em {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-wash);
  padding: 2px 6px;
  border-radius: 4px;
  font-style: normal;
}

.custom-mockup__table {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  font-size: 12.5px;
}
.custom-mockup__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 0.6fr;
  gap: 12px;
  padding: 10px 14px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.custom-mockup__row:last-child { border-bottom: none; }
.custom-mockup__row--head {
  background: var(--paper-2);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.custom-mockup__row b { color: var(--ink); font-weight: 600; font-family: var(--font-display); }
.custom-mockup__row span { color: var(--ink-3); }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  width: fit-content;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tag--warm { background: var(--warm-soft); color: #8C4A1F; }
.tag--warm::before { background: var(--warm); }
.tag--done { background: #DFF4E3; color: #1F6B35; }
.tag--done::before { background: #3AAD5D; }

/* Floating sticky-note on the mockup */
.custom-mockup__note {
  position: absolute;
  right: -16px;
  bottom: 28px;
  background: var(--warm-soft);
  border: 1px solid var(--warm);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #6E3A18;
  transform: rotate(3deg);
  box-shadow: var(--shadow-md);
  max-width: 220px;
  line-height: 1.35;
}
.custom-mockup__note b { color: #3D1F0A; font-weight: 700; }
@media (max-width: 720px) {
  .custom-mockup__note { position: static; transform: none; margin: 18px auto 0; }
}

/* =========================================================================
   PROCESS — timeline connector under the 4 cards
   ========================================================================= */
.process-timeline {
  position: relative;
  padding-top: 0;
}

/* Phase bar — segmented ribbon above the cards.
   Week 1 spans Audit + Install (50%), Week 2 = Stabilise (25%), Ongoing = Improve (25%). */
.process-phases {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
  padding: 0 2px;
}
.process-phases__seg {
  position: relative;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  background: var(--paper-2);
}
.process-phases__seg b {
  color: var(--accent-ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-right: 6px;
}
.process-phases__seg--1 {
  background: linear-gradient(90deg, var(--accent-wash) 0%, rgba(89, 183, 255, 0.18) 100%);
  border-color: var(--accent-soft);
  color: var(--accent-ink);
}
.process-phases__seg--2 {
  background: linear-gradient(90deg, rgba(89, 183, 255, 0.18) 0%, rgba(244, 179, 138, 0.22) 100%);
  border-color: var(--accent-soft);
}
.process-phases__seg--3 {
  background: var(--warm-soft);
  border-color: rgba(244, 179, 138, 0.5);
  color: #8C4A1F;
}
.process-phases__seg--3 b { color: #8C4A1F; }
@media (max-width: 900px) { .process-phases { display: none; } }

/* Week badge on each card */
.process-step { padding-top: 22px !important; }
.process-step::before { display: none !important; }
.process-week {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--accent-soft);
}
.process-week--ongoing {
  background: var(--warm-soft);
  color: #8C4A1F;
  border-color: rgba(244, 179, 138, 0.5);
}

.process-milestone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 36px auto 0;
  padding: 10px 18px;
  background: var(--paper-2);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.process-milestone::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(89, 183, 255, 0.2);
}
.process-milestone-wrap { display: flex; justify-content: center; }

/* =========================================================================
   WHO IT'S FOR — glyphs on each tile
   ========================================================================= */
.who-tile {
  position: relative;
  padding-left: 28px !important;
  padding-top: 32px !important;
}
.who-tile__glyph {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-wash);
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  transition: background 0.25s ease, transform 0.25s ease;
}
.who-tile:nth-child(2) .who-tile__glyph { background: var(--warm-soft); color: #8C4A1F; }
.who-tile:nth-child(3) .who-tile__glyph { background: #DFF4E3; color: #1F6B35; }
.who-tile:nth-child(4) .who-tile__glyph { background: #F3E9DF; color: var(--ink); }
.who-tile:hover .who-tile__glyph {
  transform: scale(1.08) rotate(-3deg);
}
.who-tile__glyph svg { width: 28px; height: 28px; }

/* =========================================================================
   FINAL CTA — phone mockup on the right
   ========================================================================= */
.cta-phone {
  position: relative;
  display: grid;
  place-items: center;
}
.cta-phone__device {
  width: 280px;
  aspect-ratio: 9 / 18;
  background: #0A143A;
  border-radius: 42px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.5),
    0 20px 40px -15px rgba(89, 183, 255, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.cta-phone__device::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.cta-phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(180deg, #12204D 0%, #0A143A 100%);
  padding: 48px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.cta-phone__time {
  position: absolute;
  top: 22px;
  left: 22px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--paper-2);
  z-index: 3;
}
.cta-phone__signal {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  gap: 4px;
  z-index: 3;
  color: var(--paper-2);
  font-size: 11px;
  align-items: center;
}
.cta-phone__signal svg { width: 14px; height: 14px; }

.cta-phone__agent-msg {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--paper-2);
  line-height: 1.5;
}
.cta-phone__agent-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.cta-phone__agent-head strong {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--paper-2);
}
.cta-phone__agent-head span {
  font-size: 10px;
  color: rgba(247, 243, 236, 0.5);
  margin-left: auto;
}
.cta-phone__avatar {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
}
.cta-phone__check-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: rgba(247, 243, 236, 0.9);
}
.cta-phone__check-list li {
  display: flex; align-items: center; gap: 6px;
}
.cta-phone__check-list li::before {
  content: "✓";
  color: #3AAD5D;
  font-weight: 700;
  font-size: 11px;
}

.cta-phone__reply {
  align-self: flex-end;
  background: var(--accent);
  color: var(--ink);
  border-radius: 16px 16px 4px 16px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 20px -4px rgba(89, 183, 255, 0.5);
  margin-top: auto;
}
.cta-phone__reply-time {
  align-self: flex-end;
  font-size: 9px;
  color: rgba(247, 243, 236, 0.4);
  margin-top: -6px;
}

/* Typing dots — fun touch */
.cta-phone__typing {
  display: inline-flex;
  gap: 3px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  align-self: flex-start;
  margin-top: 4px;
}
.cta-phone__typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(247, 243, 236, 0.7);
  animation: type-bounce 1.2s ease-in-out infinite;
}
.cta-phone__typing span:nth-child(2) { animation-delay: 0.15s; }
.cta-phone__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes type-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-3px); opacity: 1; }
}

/* Layout tweaks for the CTA grid to accommodate the phone */
.cta-grid--phone {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: clamp(32px, 5vw, 72px) !important;
  align-items: center;
}
@media (max-width: 800px) {
  .cta-grid--phone { grid-template-columns: 1fr !important; }
  .cta-phone { order: -1; }
  .cta-phone__device { width: 240px; }
}

/* Hide the old cta-bullets — phone replaces them */
.cta-grid--phone .cta-bullets { display: none; }

/* =========================================================================
   Subtle fade-in when cards scroll into view
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  .agent-chip,
  .process-step,
  .who-tile,
  .custom-mockup__kpi,
  .custom-mockup__row {
    animation: fade-up 0.6s ease both;
  }
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
