#process-title {
  margin-bottom: clamp(1.4rem, 3vw, 2.25rem);
}

.process-steps {
  --panel-green: #17332c;
  margin: 0 auto;
  padding: 0;
  max-width: 65rem;
  list-style: none;
}

.process-step {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid #c9d9d1;
  border-radius: clamp(1rem, 2.5vw, 1.55rem);
  background: #fff;
  box-shadow: 0 14px 35px #10322712;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .9rem;
  padding: clamp(1.35rem, 4vw, 2.8rem);
  background: var(--panel-green);
  color: #fff;
}

.step-copy h3 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(1.45rem, 3.1vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.11;
  text-wrap: balance;
}

.step-number {
  color: #54dcc4;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.step-copy p {
  max-width: 34ch;
  margin: 0;
  color: #d5e6df;
  font-size: clamp(.96rem, 1.6vw, 1.08rem);
  line-height: 1.58;
}

.step-demo {
  align-self: center;
  min-width: 0;
  padding: clamp(.65rem, 2.3vw, 1.4rem);
}

.demo-window {
  overflow: hidden;
  border: 1px solid #d8e3de;
  border-radius: .75rem;
  background: #fff;
}

.demo-bar,
.demo-app {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.demo-bar {
  flex-wrap: wrap;
  justify-content: space-between;
  padding: .6rem .75rem;
  border-bottom: 1px solid #dbe5e1;
  background: #f4f7f5;
  font-size: .83rem;
  font-weight: 800;
}

.demo-bar small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}

.demo-browser-dots {
  display: inline-flex;
  gap: .2rem;
}

.demo-browser-dots i {
  width: .34rem;
  height: .34rem;
  border-radius: 50%;
  background: #91aaa0;
}

.demo-scenes {
  display: grid;
  padding: .7rem;
}

.demo-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.demo-frame {
  grid-area: 1 / 1;
  display: grid;
  align-content: start;
  gap: .45rem;
  min-height: 13.3rem;
  line-height: 1.4;
}

.demo-scenes .demo-frame[hidden] {
  display: grid !important;
  visibility: hidden;
}

.demo-scene-title {
  margin: 0 0 .2rem;
  font-size: 1rem;
  font-weight: 800;
}

.brand-icon {
  flex: none;
  object-fit: contain;
}

.brand-facebook, .brand-meta {
  filter: invert(30%) sepia(90%) saturate(2490%) hue-rotate(198deg) brightness(96%);
}

.brand-instagram {
  filter: invert(26%) sepia(59%) saturate(2704%) hue-rotate(305deg) brightness(90%);
}

.setup-panel, .text-preview, .feed-viewport {
  border: 1px solid #dce4ec;
  border-radius: .65rem;
  background: #fff;
}

.setup-panel {
  display: grid;
  align-content: start;
  gap: .38rem;
  padding: .65rem .75rem;
  background: #f7f9fc;
}

.setup-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .15rem .65rem;
  padding: .36rem .44rem;
  border: 1px solid #dce4ec;
  border-radius: .33rem;
  background: #fff;
  font-size: .82rem;
}

.setup-row span, .demo-caption { color: #405367; }
.demo-caption { font-size: .71rem; }

.demo-status, .setup-pill {
  justify-self: start;
  padding: .25rem .48rem;
  border-radius: .3rem;
  background: #e3f3ed;
  color: #174f3b;
  font-size: .77rem;
  font-weight: 800;
}

.setup-pill {
  background: #e5efff;
  color: #174c99;
}

.setup-code {
  margin: 0;
  padding: .42rem .55rem;
  border-radius: .3rem;
  background: #203049;
  color: #b7e0ff;
  font: .78rem/1.42 ui-monospace, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.manager-workspace {
  overflow: hidden;
  border: 1px solid #dce4ec;
  border-radius: .55rem;
  background: #f4f7fc;
  color: #203049;
}

.manager-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .45rem .55rem;
  border-bottom: 1px solid #dce4ec;
  background: #fff;
  font-size: .81rem;
}

.manager-create {
  padding: .23rem .43rem;
  border-radius: .25rem;
  background: #1660b4;
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
}

.manager-content {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: .45rem;
  padding: .45rem;
}

.manager-table, .manager-editor {
  min-width: 0;
  border: 1px solid #dce4ec;
  border-radius: .34rem;
  background: #fff;
}

.manager-table-head, .manager-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .25rem;
  padding: .33rem .36rem;
  font-size: .72rem;
}

.manager-table-head {
  border-bottom: 1px solid #dce4ec;
  background: #eaf0fa;
  font-weight: 800;
}

.manager-table-row span, .manager-field span { color: #415775; }

.manager-editor {
  display: grid;
  gap: .24rem;
  padding: .38rem .45rem;
}

.manager-editor .demo-scene-title { font-size: .81rem; }

.manager-field {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .08rem .5rem;
  padding-bottom: .18rem;
  border-bottom: 1px solid #e7edf5;
  font-size: .72rem;
}

.manager-saved {
  color: #125c43;
  font-size: .74rem;
  font-weight: 800;
}

.feed-viewport {
  overflow: hidden;
}

.feed-content {
  position: relative;
}

.feed-before {
  position: absolute;
  bottom: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  gap: .45rem;
  height: 2.3rem;
  padding: .45rem .65rem;
  border-bottom: 3px solid #ebeff5;
  background: #f7f9fc;
}

.feed-before span {
  width: 18%;
  height: .3rem;
  border-radius: .4rem;
  background: #dce4ec;
}

.feed-before span:first-child {
  width: 1rem;
  height: 1rem;
}

.feed-post p {
  margin: 0;
  padding: .2rem .65rem .45rem;
  font-size: .82rem;
}

.feed-identity, .feed-cta {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .65rem;
  font-size: .8rem;
}

.feed-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: #d9e6f8;
  color: #154a87;
  font-weight: 800;
}

.feed-identity small {
  display: block;
  color: #405367;
  font-size: .7rem;
}

.feed-photo {
  display: block;
  width: 100%;
  height: clamp(6.4rem, 11vw, 8rem);
  object-fit: cover;
  object-position: center 55%;
  background: #dce4ec;
}

.feed-cta {
  flex-wrap: wrap;
  justify-content: space-between;
  background: #f4f7fb;
}

.feed-cta span {
  padding: .22rem .45rem;
  border-radius: .28rem;
  background: #e0ecff;
  color: #1c4e91;
  font-weight: 800;
}

.text-preview {
  display: grid;
  align-content: start;
  gap: .35rem;
  padding: .55rem .65rem;
}

.text-title {
  margin: 0 0 .15rem;
  padding-bottom: .38rem;
  border-bottom: 1px solid #e1e7ee;
  text-align: center;
  color: #304663;
  font-size: .77rem;
  font-weight: 800;
}

.text-bubble {
  max-width: 87%;
  padding: .34rem .55rem;
  font-size: .79rem;
  line-height: 1.42;
}

.text-outbound {
  justify-self: end;
  border-radius: .9rem .9rem .25rem .9rem;
  background: #1464c2;
  color: #fff;
}

.text-inbound {
  justify-self: start;
  border-radius: .9rem .9rem .9rem .25rem;
  background: #eaeef4;
  color: #24354a;
}

.text-delivered {
  justify-self: end;
  color: #465674;
  font-size: .68rem;
}

.week-window {
  overflow: hidden;
  border: 1px solid #dbe5e1;
  border-radius: .5rem;
}

.week-window .demo-scene-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
  padding: .5rem .65rem;
}

.week-window .demo-scene-title span {
  color: #425e55;
  font-size: .75rem;
  font-weight: 600;
}

.week-days, .week-schedule {
  --hour-width: clamp(1.55rem, 5vw, 2.75rem);
}

.week-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-left: var(--hour-width);
  border-block: 1px solid #dbe5e1;
  background: #f6f9f7;
  color: #465f56;
  text-align: center;
  font-size: .63rem;
}

.week-days span { padding: .28rem .1rem; }
.week-days b { display: block; color: #203e34; font-size: .86rem; }

.week-schedule {
  display: grid;
  grid-template-columns: var(--hour-width) minmax(0, 1fr);
}

.week-hours, .week-events {
  display: grid;
  grid-template-rows: repeat(3, minmax(2.5rem, 1fr));
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(100% / 3 - 1px), #e1e9e5 calc(100% / 3 - 1px) calc(100% / 3));
}

.week-hours {
  text-align: center;
  color: #425e55;
  font-size: clamp(.49rem, 1.3vw, .64rem);
}

.week-hours span { padding-top: .3rem; }

.week-events {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-left: 1px solid #e1e9e5;
  background-image:
    repeating-linear-gradient(to right, transparent 0 calc(20% - 1px), #e1e9e5 calc(20% - 1px) 20%),
    repeating-linear-gradient(to bottom, transparent 0 calc(100% / 3 - 1px), #e1e9e5 calc(100% / 3 - 1px) calc(100% / 3));
}

.week-event {
  grid-column: var(--day);
  grid-row: var(--slot);
  min-width: 0;
  margin: .12rem;
  padding: .16rem .08rem .16rem .2rem;
  border-radius: .18rem;
  border-left: 2px solid #226dce;
  background: #e3efff;
  color: #193f77;
  font-size: clamp(.52rem, 1.22vw, .72rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.week-event--violet {
  border-left-color: #7452bc;
  background: #eee7ff;
  color: #4c3384;
}

.week-event small, .week-event strong { display: block; }
.week-event small { font-size: 1em; }
.week-event strong { margin-top: .12rem; }

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .35rem .65rem;
  margin-top: .2rem;
  padding: 0;
}

.demo-pages {
  display: flex;
  flex-wrap: wrap;
}

.demo-controls button {
  min-height: 2.75rem;
  padding: .4rem .5rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #425e55;
  font: inherit;
  font-size: .79rem;
  font-weight: 700;
}

.demo-controls button[aria-pressed="true"] {
  border-color: #0b6c55;
  color: #064637;
  font-weight: 800;
}

.demo-controls .demo-play {
  color: #064637;
  text-decoration: underline;
  text-underline-offset: .2em;
}

@media (prefers-reduced-motion: no-preference) {
  .demo-frame.demo-enter > * {
    animation: demo-appear .35s ease-out both;
  }

  .demo-frame.demo-enter > :nth-child(3) { animation-delay: .2s; }
  .demo-frame.demo-enter > :nth-child(4) { animation-delay: .4s; }

  .demo-frame.demo-enter .setup-panel > * { animation: demo-appear .38s ease-out both; }
  .demo-frame.demo-enter .setup-panel > :nth-child(3) { animation-delay: .25s; }
  .demo-frame.demo-enter .setup-panel > :nth-child(4) { animation-delay: .5s; }
  .demo-frame.demo-enter .setup-panel > :nth-child(5) { animation-delay: .65s; }
  .demo-frame.demo-enter .feed-content { animation: feed-scroll .85s ease-out both; }
  .demo-frame.demo-enter .text-bubble, .demo-frame.demo-enter .text-delivered {
    animation: demo-appear .3s ease-out both;
  }
  .demo-frame.demo-enter .text-bubble:nth-child(2) { animation-delay: .25s; }
  .demo-frame.demo-enter .text-bubble:nth-child(3) { animation-delay: 1.05s; }
  .demo-frame.demo-enter .text-bubble:nth-child(4) { animation-delay: 1.85s; }
  .demo-frame.demo-enter .text-delivered { animation-delay: 2.15s; }
  .demo-frame.demo-enter .week-event:last-child { animation: demo-appear .45s .15s ease-out both; }

  .demo-frame.demo-enter .manager-create {
    animation: manager-create-press .5s .25s ease-in-out;
  }
  .demo-frame.demo-enter .manager-editor {
    animation: manager-open .42s .7s ease-out both;
  }
  .demo-frame.demo-enter .manager-field {
    animation: demo-appear .32s .95s ease-out both;
  }
  .demo-frame.demo-enter .manager-field:nth-of-type(2) { animation-delay: 1.3s; }
  .demo-frame.demo-enter .manager-field:nth-of-type(3) { animation-delay: 1.65s; }
  .demo-frame.demo-enter .manager-table-row,
  .demo-frame.demo-enter .manager-saved {
    animation: demo-appear .4s 2.15s ease-out both;
  }

  @keyframes manager-create-press {
    50% { transform: scale(.93); box-shadow: 0 0 0 5px #1660b448; }
  }

  @keyframes manager-open {
    from { opacity: 0; transform: translateX(1rem); }
    to { opacity: 1; transform: translateX(0); }
  }

  @keyframes feed-scroll {
    from { transform: translateY(2.1rem); }
    to { transform: translateY(0); }
  }

  @keyframes demo-appear {
    from { opacity: 0; transform: translateY(.45rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.trial-comparison {
  max-width: 61rem;
  margin: clamp(3rem, 7vw, 5.5rem) auto 0;
  scroll-margin-top: 1rem;
}

.trial-comparison h2 {
  text-align: center;
  text-wrap: balance;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: clamp(.87rem, 1.65vw, 1rem);
  line-height: 1.5;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: .9rem clamp(.6rem, 2vw, 1.25rem);
  border-bottom: 1px solid #dbe5e1;
  vertical-align: top;
}

.comparison-table thead th {
  border-bottom-width: 2px;
  font-weight: 800;
}

.comparison-table th:first-child { width: 21%; }

.comparison-table thead th:last-child,
.comparison-table td:last-child {
  width: 31%;
  border-right: 2px solid #164b3d;
  border-left: 2px solid #164b3d;
  background: #17332c;
  color: #fff;
  border-bottom-color: #47665b;
}

.comparison-table thead th:last-child {
  border-top: 2px solid #164b3d;
  font-size: 1.1em;
}

.comparison-table tr:last-child td:last-child {
  border-bottom: 2px solid #164b3d;
}

.comparison-table strong {
  color: #a8f1e0;
}

.comparison-label {
  display: none;
}

.trial-calculator .return-summary {
  padding: clamp(.85rem, 2.6vw, 1.3rem);
  border-radius: .6rem;
  background: #17332c;
  color: #fff;
}

.trial-calculator #ad-roi { color: #a8f1e0; }

@media (max-width: 48rem) {
  .process-step { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 43rem) {
  .demo-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

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

  .demo-pages button {
    width: 100%;
    padding-inline: .2rem;
  }

  .demo-controls .demo-play {
    justify-self: end;
  }

  .comparison-table,
  .comparison-table tbody,
  .comparison-table tbody tr {
    display: grid;
  }

  .comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .comparison-table tbody { gap: .95rem; }

  .comparison-table tbody th {
    width: auto;
    padding: .45rem .75rem;
    border-top: 1px solid #d2e4dc;
  }

  .comparison-table td {
    padding: .55rem .75rem;
  }

  .comparison-table td:last-child {
    width: auto;
    margin-top: .25rem;
    border: 1px solid #164b3d;
    border-left-width: 3px;
    border-radius: .3rem;
  }

  .comparison-table tr:last-child td:last-child {
    border-bottom-width: 1px;
  }

  .comparison-label {
    display: block;
    color: #425e55;
    font-size: .77rem;
    font-weight: 800;
  }

  .comparison-table td:last-child .comparison-label {
    color: #a8f1e0;
  }
}
