/* Motion layer for the approved landing visual. It deliberately does not
   change its layout, copy, colors or component hierarchy. */
html { scroll-behavior: smooth; }

/* Desktop: keep the approved hero copy intact and give the product a larger,
   side-by-side canvas. Phones intentionally keep the stacked reading order. */
@media (min-width: 1080px) {
  .landing-hero .landing-container {
    width: min(100% - 80px, 1500px);
  }

  .landing-hero__grid {
    display: grid;
    grid-template-columns: minmax(360px, .8fr) minmax(620px, 1.2fr);
    align-items: center;
    gap: clamp(38px, 5vw, 92px);
  }

  .landing-hero__copy {
    max-width: 540px;
    text-align: left;
  }

  .landing-hero__copy :is(.landing-kicker, h1, p, .landing-hero-benefits, .landing-hero__actions, .landing-social-proof, .hero-testimonials-link, .guarantee-note) {
    margin-left: 0;
    margin-right: 0;
  }

  .landing-hero__copy .landing-hero-benefits { justify-content: flex-start; }
  .landing-hero__product,
  .landing-hero .landing-cockpit { width: min(100%, 860px); margin: 0; }
}

/* The real inbox needs enough room for its three working areas. At common
   notebook widths, place it beneath the hero copy instead of compressing it. */
@media (min-width: 1080px) and (max-width: 1379px) {
  .landing-hero .landing-container { width: min(100% - 64px, 1080px); }
  .landing-hero__grid { grid-template-columns: 1fr; }
  .landing-hero__copy { max-width: 720px; margin-inline: auto; text-align: center; }
  .landing-hero__copy :is(.landing-kicker, h1, p, .landing-hero-benefits, .landing-hero__actions, .landing-social-proof, .hero-testimonials-link, .guarantee-note) { margin-inline: auto; }
  .landing-hero__copy .landing-hero-benefits { justify-content: center; }
  #ativelo-central-demo { grid-column: 1; width: min(100%, 1060px); margin: 12px auto 0; }
}
@media (min-width: 1380px) {
  .landing-hero .landing-container { width: min(100% - 80px, 1640px); }
  .landing-hero__grid { grid-template-columns: minmax(320px, .52fr) minmax(820px, 1.48fr); }
  .landing-hero__product { grid-column: 2; min-width: 0; }
}

/* A clearer, more tactile operation flow on desktop and touch devices. */
.connected-flow__stages article,
.connected-flow > ol li {
  -webkit-tap-highlight-color: transparent;
}

.connected-flow__stages article.is-flow-active {
  position: relative;
  z-index: 1;
  border-color: rgba(7, 151, 127, .7);
  box-shadow: 0 16px 32px rgba(7, 151, 127, .14);
}

.connected-flow__stages article.is-flow-active::after {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #38D4B8, #0B8775);
  content: "";
}

.connected-flow > ol li.is-flow-active b {
  border-color: #07977F;
  background: #0B8775;
  color: #fff;
  box-shadow: 0 0 0 7px rgba(7, 151, 127, .12);
}

.connected-flow > ol li.is-flow-active span { color: #087D6A; }

/* Makes the live operation panel easier to scan without changing its copy. */
.cockpit-operation .cockpit-schedule > div,
.cockpit-operation .cockpit-operation__cards article,
.cockpit-operation .cockpit-ai-setting,
.cockpit-operation .cockpit-return {
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.cockpit-operation .cockpit-schedule > div:hover,
.cockpit-operation .cockpit-operation__cards article:hover,
.cockpit-operation .cockpit-ai-setting:hover,
.cockpit-operation .cockpit-return:hover {
  transform: translateX(4px);
  border-color: rgba(7, 151, 127, .48);
  box-shadow: 0 9px 20px rgba(7, 151, 127, .1);
}

.cockpit-operation .cockpit-schedule .is-open {
  background: linear-gradient(90deg, rgba(255,255,255,.92), rgba(229,248,242,.82));
}

/* Segment selector: the added tab and the content use the same visual language. */
.segment-other-trigger { position: relative; }
.segment-other-trigger::after {
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-radius: 50%;
  background: #34CFB6;
  content: "";
}

.landing-other-segments {
  display: none;
  margin-top: 24px;
  border: 1px solid rgba(7, 151, 127, .25);
  border-radius: 16px;
  background: radial-gradient(circle at 90% 10%, rgba(54, 207, 182, .17), transparent 28%), #F6FCF9;
  padding: clamp(22px, 3vw, 38px);
}

.segments-section.has-other-segments .segment-detail { display: none; }
.segments-section.has-other-segments .landing-other-segments { display: block; }
.landing-other-segments > p { max-width: 660px; margin: 9px 0 0; color: #526E7A; line-height: 1.65; }
.landing-other-segments strong { color: #112235; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.landing-other-segments__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.landing-other-segments__chips span { border: 1px solid #BFE5DA; border-radius: 999px; background: #fff; color: #087D6A; font-size: .86rem; font-weight: 700; padding: 9px 13px; }

/* The top numbering is decorative; the usage label is the useful signal. */
.ai-modes-grid__index { display: none !important; }

/* Keep the recommended plan badge inside the card. The previous negative
   offset was clipped by the card surface and left only half of the label
   visible on wide screens. */
.landing-next--option3 .ai-modes-grid article {
  isolation: isolate;
}

.landing-next--option3 .ai-mode-popular {
  top: 14px;
  right: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(244, 201, 93, .2);
}

.landing-next--option3 .ai-mode-popular::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .55) 48%, transparent 76%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-120%);
}

.landing-next--option3 .ai-mode-cta {
  min-height: 50px;
  margin-top: 16px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .landing-next--option3 .ai-modes-grid article {
    transition: transform .24s cubic-bezier(.2, .75, .25, 1),
      border-color .24s ease,
      background-color .24s ease,
      box-shadow .24s ease;
  }

  .landing-next--option3 .ai-modes-grid article:hover,
  .landing-next--option3 .ai-modes-grid article:focus-within {
    border-color: rgba(105, 229, 203, .62);
    background-color: rgba(15, 42, 55, .97);
    box-shadow: 0 22px 44px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
    transform: translateY(-7px) !important;
  }

  .landing-next--option3 .ai-modes-grid article.is-automation:hover,
  .landing-next--option3 .ai-modes-grid article.is-automation:focus-within {
    border-color: #55e2c5;
    background-color: rgba(8, 58, 54, .98);
    box-shadow: 0 24px 48px rgba(2, 22, 27, .36), 0 0 0 1px rgba(85, 226, 197, .2);
  }

  .landing-next--option3 .ai-modes-grid article:hover .ai-mode-action svg,
  .landing-next--option3 .ai-modes-grid article:focus-within .ai-mode-action svg {
    transform: translateY(-2px) scale(1.08);
  }

  .landing-next--option3 .ai-mode-action svg {
    transition: transform .24s cubic-bezier(.2, .75, .25, 1);
  }

  .landing-next--option3 .is-automation:hover .ai-mode-popular::after,
  .landing-next--option3 .is-automation:focus-within .ai-mode-popular::after {
    opacity: 1;
    transform: translateX(120%);
    transition: transform .72s ease, opacity .18s ease;
  }
}

/* Make the operation area read as a real agenda, not a narrow side list. */
@media (min-width: 1080px) {
  .landing-cockpit__grid--inbox {
    grid-template-columns: minmax(0, 1.06fr) minmax(370px, .94fr) !important;
  }

  .cockpit-operation { padding: 24px !important; }
  .cockpit-operation .cockpit-professional strong { font-size: 1.02rem; }
  .cockpit-operation .cockpit-schedule { gap: 11px; }
  .cockpit-operation .cockpit-schedule > div { min-height: 62px; grid-template-columns: 68px minmax(0, 1fr) auto; padding: 13px 15px; }
  .cockpit-operation .cockpit-schedule time { font-size: .82rem; }
  .cockpit-operation .cockpit-schedule b { font-size: .9rem; }
  .cockpit-operation .cockpit-schedule small { font-size: .74rem; }
}

/* Five distinct stages, with more readable hierarchy than a single white row. */
.connected-flow__stages { gap: 16px !important; border: 0 !important; background: transparent !important; }
.connected-flow__stages article { min-height: 280px; border-radius: 15px !important; border: 1px solid #D6E5E1 !important; box-shadow: 0 12px 25px rgba(14, 54, 67, .055); padding: 24px !important; }
.connected-flow__stages article strong { margin-top: 20px !important; color: #12263A; font-size: 1.05rem !important; }
.connected-flow__stages article > p { color: #526E7E !important; font-size: .91rem !important; line-height: 1.62 !important; }
.connected-flow__step-index { display: inline-flex; align-items: center; min-height: 27px; border-radius: 999px; background: #E8F8F3; color: #087D6A; font-size: .66rem !important; font-weight: 850; letter-spacing: .06em; padding: 5px 9px; }
.flow-stage--conversation { background: linear-gradient(180deg, #FFFFFF 0%, #F4FCF9 100%) !important; }
.flow-stage--opportunity { background: linear-gradient(180deg, #FFFFFF 0%, #F4FBFF 100%) !important; }
.flow-stage--schedule { background: linear-gradient(180deg, #FFFFFF 0%, #F6F6FF 100%) !important; }
.flow-stage--ai { background: linear-gradient(180deg, #FFFFFF 0%, #EDFCF7 100%) !important; }
.flow-stage--payment { background: linear-gradient(180deg, #FFFFFF 0%, #F2FCF8 100%) !important; }
.connected-flow > ol li { cursor: pointer; }
.connected-flow > ol li span { font-size: .77rem !important; }

/* The business decides the payment rule. This is intentionally visible, not
   hidden inside the Pix confirmation example. */
.payment-policy-explainer { margin: 28px 0 25px; border: 1px solid #CBE8DE; border-radius: 14px; background: linear-gradient(135deg, #F3FCF8, #FFFFFF 62%); padding: 22px; }
.payment-policy-explainer__head { display: grid; gap: 5px; margin-bottom: 16px; }
.payment-policy-explainer__eyebrow { color: #087D6A; font-size: .68rem; font-weight: 850; letter-spacing: .1em; }
.payment-policy-explainer__head strong { color: #12263A; font-size: 1.02rem; }
.payment-policy-options { display: flex; flex-wrap: wrap; gap: 9px; }
.payment-policy-options button { min-height: 38px; border: 1px solid #C5DFD7; border-radius: 999px; background: #FFF; color: #345766; font: inherit; font-size: .77rem; font-weight: 750; padding: 8px 12px; cursor: pointer; transition: .18s ease; }
.payment-policy-options button:hover, .payment-policy-options button:focus-visible, .payment-policy-options button.is-selected { border-color: #07977F; background: #07977F; color: #FFF; box-shadow: 0 7px 15px rgba(7, 151, 127, .18); }
.payment-policy-answer { margin: 16px 0 0; border-left: 3px solid #34CFB6; color: #486675; font-size: .84rem; line-height: 1.6; padding: 2px 0 2px 13px; }

.flow-payment-explainer { display: flex; align-items: flex-start; gap: 13px; margin-top: 19px; border: 1px solid #BFE7DA; border-radius: 13px; background: #ECFBF5; color: #204653; padding: 17px 20px; }
.flow-payment-explainer__icon { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: #07977F; color: #FFF; font-weight: 900; }
.flow-payment-explainer strong { display:block; color:#0A6658; font-size:.9rem; }
.flow-payment-explainer p { margin: 4px 0 0; color:#486675; font-size:.82rem; line-height:1.6; }

/* Public booking pages: one clean link for Instagram, Google and WhatsApp. */
.business-page-showcase { padding: 94px 0; background: linear-gradient(135deg, #EEF9F5, #F8FBFA 58%, #EAF8F4); }
.business-page-showcase__shell { display: grid; grid-template-columns: minmax(0, .88fr) minmax(430px, 1.12fr); align-items: center; gap: 60px; }
.business-page-showcase h2 { max-width: 610px; margin: 0; color: #102238; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.055em; line-height: 1.05; }
.business-page-showcase__copy > p:not(.landing-kicker) { max-width: 590px; margin: 20px 0 0; color: #526E7E; font-size: 1.02rem; line-height: 1.65; }
.business-page-showcase__sources { display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.business-page-showcase__sources span { border-radius:999px; background:#FFF; color:#0A7563; font-size:.75rem; font-weight:800; padding:8px 11px; box-shadow:0 5px 14px rgba(12,76,64,.08); }
.business-page-showcase__preview { overflow:hidden; border:1px solid #CFE7DF; border-radius:20px; background:#FFF; box-shadow:0 24px 46px rgba(12,76,64,.13); }
.business-page-showcase__preview header { display:flex; align-items:center; justify-content:space-between; background:#0D2934; color:#FFF; padding:15px 18px; }
.business-page-showcase__preview header strong { font-size:.88rem; }.business-page-showcase__preview header span { color:#83E4CC; font-size:.7rem; font-weight:800; }
.business-page-showcase__preview main { display:grid; gap:13px; padding:20px; }
.business-page-showcase__preview h3 { margin:0; color:#13283A; font-size:1.32rem; }.business-page-showcase__preview p { margin:0; color:#627B88; font-size:.83rem; line-height:1.55; }
.business-page-showcase__slots { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; margin-top:4px; }.business-page-showcase__slots span { display:grid; gap:3px; border:1px solid #D7EAE4; border-radius:9px; color:#0B7C6E; font-size:.78rem; font-weight:800; padding:10px; }.business-page-showcase__slots small { color:#728995; font-size:.63rem; font-weight:600; }
.business-page-showcase__button { display:flex; align-items:center; justify-content:center; min-height:45px; border-radius:8px; background:#07977F; color:#FFF; font-size:.82rem; font-weight:800; }

@media (max-width: 720px) {
  .connected-flow__stages article { min-height: 0; padding:19px !important; }
  .connected-flow__stages article strong { margin-top:14px !important; font-size:1rem !important; }
  .connected-flow__stages article > p { font-size:.86rem !important; }
  .payment-policy-explainer { padding:18px; }
  .payment-policy-options { display:grid; grid-template-columns:1fr 1fr; }
  .payment-policy-options button { width:100%; font-size:.72rem; }
  .business-page-showcase { padding:68px 0; }
  .business-page-showcase__shell { grid-template-columns:1fr; gap:30px; }
  .business-page-showcase__preview { border-radius:14px; }
}

@media (prefers-reduced-motion: no-preference) {
  body.landing-motion-enabled .landing-motion-target {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .68s ease, transform .68s cubic-bezier(.2,.75,.25,1);
  }

  body.landing-motion-enabled .landing-motion-target.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .landing-button,
  .segment-tabs button,
  .payment-policy button,
  .ai-mode-expand {
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
  }

  .landing-button:hover,
  .landing-button:focus-visible {
    transform: translateY(-2px);
  }

  .ai-modes-grid article,
  .connected-flow__stages article,
  .payment-flow-strip li {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  }

  .ai-modes-grid article:hover,
  .ai-modes-grid article:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .2);
  }

  .connected-flow__stages article:hover,
  .payment-flow-strip li:hover {
    transform: translateY(-3px);
  }

  .ai-mode-art img,
  .segment-routine__photo {
    transition: transform .55s cubic-bezier(.2,.75,.25,1);
  }

  .ai-modes-grid article:hover .ai-mode-art img,
  .segment-routine:hover .segment-routine__photo {
    transform: scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.business-page-showcase:has(#ativelo-booking-demo) { padding:0; background:#f0f8f6; }
#ativelo-booking-demo { display:block; min-height:600px; }

/* Never truncate the story in the five-step flow. On compact desktop layouts
   it becomes a horizontal sequence rather than squeezing the copy. */
.connected-flow__stages article :is(strong, p, small, span) {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
.connected-flow__stages article > strong {
  display: block;
  line-height: 1.28 !important;
}
.connected-flow__stages article > p { margin-bottom: 0; }
@media (min-width: 1181px) {
  .landing-next--option3 .connected-flow__stages > article { min-height: 315px; padding: 20px !important; }
  .landing-next--option3 .connected-flow__stages > article > strong { font-size: 1.04rem !important; }
  .landing-next--option3 .connected-flow__stages > article > p { font-size: .88rem !important; line-height: 1.55 !important; }
}
@media (min-width: 721px) and (max-width: 1180px) {
  .connected-flow__stages { grid-template-columns: repeat(5, minmax(285px, 1fr)) !important; overflow-x: auto !important; scroll-snap-type: x mandatory; padding: 2px 2px 18px !important; }
  .connected-flow__stages article { min-height: 300px !important; scroll-snap-align: start; }
}
