/* Product demonstrations extend the original Figma composition and motion. */
.demo-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 20px;
}
.demo-reference,
.demo-overline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: #59695f;
}
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #e6f2e9;
  border: 1px solid #c8dfcd;
  border-radius: 6px;
  color: #23543b;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.demo-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.claim-story {
  min-height: 275px;
}
.story-step {
  min-width: 0;
}
.story-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--pale);
  color: var(--green);
  border-radius: 11px;
  font-size: 22px;
}
.story-step .demo-overline {
  margin: 16px 0 8px;
  text-transform: uppercase;
}
.story-step h4 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  max-width: 380px;
}
.story-step > p:not(.demo-overline) {
  margin: 0;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.6;
  color: #59695f;
}
.story-message {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f7f8f3;
}
.story-message strong,
.story-message span {
  display: block;
  font-size: 12px;
}
.story-message span {
  color: #59695f;
  margin-top: 5px;
}
.story-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.story-tabs {
  display: flex;
  gap: 5px;
}
.story-tabs button {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  background: transparent;
  font-size: 11px;
}
.story-tabs button[aria-selected="true"] {
  color: white;
  background: var(--navy);
  border-color: var(--navy);
}
.demo-play {
  min-height: 44px;
  border: 0;
  padding: 0 4px;
  color: #385d49;
  background: transparent;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.demo-disclaimer {
  color: #59695f;
  font-size: 10px;
  margin: 12px 0 0;
}
.dashboard-content {
  padding: 32px 34px 28px;
}
.dashboard-content h3 {
  font-size: clamp(26px, 2.5vw, 38px);
}
.dashboard-topbar {
  padding: 22px 30px;
}
.dashboard-topbar span {
  color: #d8e2d6;
}
.dashboard-scene {
  max-width: 680px;
  margin: auto;
}
.success-note {
  width: min(345px, 80%);
  padding: 18px 22px;
  right: -12px;
}
.walkthrough-section {
  position: relative;
  isolation: isolate;
  gap: 6vw;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}
.walkthrough-copy,
.workflow-panels {
  position: relative;
  z-index: 1;
}
.walkthrough-copy > p:not(.eyebrow) {
  color: #c0ccbf;
}
.step-button {
  border-color: #516459;
}
.step-button span {
  opacity: 1;
  color: inherit;
}
.workflow-card.demo-workspace {
  padding: 0;
  min-height: 590px;
  justify-content: flex-start;
  border-radius: 17px;
  background: #fdfefb;
}
.demo-workspace::after {
  content: none;
}
.demo-windowbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 24px;
  border-bottom: 1px solid var(--line);
  background: #f3f6ef;
  font-size: 11px;
  color: #3b5747;
}
.demo-windowbar span:last-child {
  font-size: 10px;
}
.demo-workspace-body {
  padding: 27px 30px 33px;
}
.demo-workspace .demo-overline {
  margin: 0 0 12px;
  text-transform: uppercase;
}
.demo-workspace h3 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.demo-product {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}
.demo-product > div {
  flex: 1;
  min-width: 0;
}
.demo-product strong {
  display: block;
  font-size: 13px;
}
.demo-product small {
  display: block;
  margin-top: 5px;
  color: #59695f;
  font-size: 11px;
}
.product-glyph {
  width: 40px;
  height: 50px;
  flex: none;
  display: grid;
  place-items: center;
  background: #e8f1e8;
  border: 1px solid #d4dfd2;
  border-radius: 9px;
  font-size: 32px;
  color: #2e684e;
}
.demo-rule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 25px 0;
}
.demo-rule-grid strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}
.field-caption {
  display: block;
  font-size: 11px;
  color: #59695f;
  margin-bottom: 8px;
}
.demo-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 22px 0 9px;
}
.demo-workspace select,
.demo-workspace textarea {
  font: 14px/1.5 var(--sans);
  color: var(--navy);
  padding: 12px;
  width: 100%;
  min-width: 0;
  border: 1px solid #c7d0c6;
  border-radius: 7px;
  background: white;
}
.demo-workspace textarea {
  resize: vertical;
}
.coverage-track {
  height: 4px;
  margin-top: 23px;
  background: #d3e5d6;
  position: relative;
  border-radius: 3px;
}
.coverage-track i {
  display: block;
  width: 70%;
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.coverage-track-labels {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  color: #59695f;
  font-size: 10px;
  margin-top: 8px;
}
.demo-callout {
  padding: 15px;
  background: #ecf4e9;
  border: 1px solid #d8e6d4;
  border-radius: 8px;
  color: #31503c;
  font-size: 12px;
  line-height: 1.6;
  margin: 22px 0 16px;
}
.demo-workspace .demo-small {
  font-size: 11px;
  line-height: 1.6;
  color: #59695f;
  margin: 14px 0;
}
.demo-facts {
  margin: 22px 0;
  font-size: 12px;
}
.demo-facts > div {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 13px;
}
.demo-facts dt {
  color: #59695f;
}
.demo-facts dd {
  margin: 0;
  text-align: right;
}
.demo-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: white;
  padding: 13px 16px;
  min-height: 46px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}
.demo-button:hover {
  background: #2c4c38;
}
.demo-text-button {
  display: block;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #2e684e;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px 0;
}
.demo-checklist {
  padding: 0;
  list-style: none;
  counter-reset: guide;
  margin: 30px 0;
}
.demo-checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  margin: 20px 0;
  line-height: 1.6;
  counter-increment: guide;
}
.demo-checklist li::before {
  content: counter(guide);
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e7f0e6;
  color: #2e684e;
  font-size: 11px;
}
.demo-reset {
  margin-top: 14px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9eee6;
  font-size: 12px;
}
.demo-workspace .demo-heading {
  margin: 0 0 18px;
}
.demo-heading .demo-overline {
  margin: 0;
}
.review-switch {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin-top: 14px;
}
.review-switch button {
  min-height: 44px;
  border: 0;
  background: transparent;
  border-bottom: 2px solid transparent;
  padding: 10px 0;
  font-size: 12px;
  color: #59695f;
}
.review-switch button[aria-selected="true"] {
  border-color: var(--green);
  color: var(--navy);
}
.review-switch span {
  background: #edf1e9;
  padding: 2px 5px;
  border-radius: 4px;
}
.conversation-bubble {
  background: #edf3e9;
  border-radius: 9px 9px 9px 0;
  padding: 13px;
  margin: 14px 15px 12px 0;
  font-size: 12px;
}
.conversation-bubble.customer {
  margin-left: 15px;
  margin-right: 0;
  background: #f1f1ed;
  border-radius: 9px 9px 0 9px;
}
.conversation-bubble strong {
  font-size: 10px;
  color: #3b5747;
}
.conversation-bubble p {
  margin: 7px 0 0;
  line-height: 1.5;
}
.demo-workspace [role="tabpanel"] {
  min-height: 175px;
}
.demo-workspace .workflow-progress {
  height: 3px;
  bottom: 0;
  left: 0;
  right: 0;
}
.demo-workspace :focus-visible {
  outline-color: var(--green);
}
.product-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: 50px;
}
.product-section .section-heading {
  display: block;
  margin: 0;
}
.product-section .section-heading h2 {
  font-size: clamp(40px, 4vw, 66px);
}
.product-section .section-heading > p {
  margin-top: 24px;
  font-size: 15px;
}
.feature-card {
  min-height: 300px;
  padding: 25px;
  border-radius: 14px;
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}
.feature-card h3 {
  margin-top: 35px;
  font-size: 19px;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.feature-card p {
  font-size: 13px;
  line-height: 1.65;
}
.showcase-section {
  border-top: 1px solid var(--line);
  padding-top: 95px;
}
.showcase-section .section-heading {
  margin-bottom: 45px;
}
.showcase-section .section-heading h2 {
  font-size: clamp(54px, 5.4vw, 86px);
}
.showcase-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
}
.showcase-tabs button {
  flex: 1;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #59695f;
  padding: 15px 10px;
  font-size: 13px;
  min-height: 50px;
}
.showcase-tabs button[aria-selected="true"] {
  border-color: var(--green);
  color: var(--navy);
  font-weight: 600;
}
.showcase-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffefb;
  box-shadow: 0 18px 50px #263d2010;
  overflow: hidden;
}
.showcase-caption {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 27px 30px;
}
.showcase-caption h3 {
  font: 400 30px/1.1 var(--serif);
  letter-spacing: -0.02em;
  margin: 0;
}
.showcase-caption p {
  color: #59695f;
  font-size: 13px;
  margin: 10px 0 0;
  max-width: 650px;
}
.showcase-caption a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--green);
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.screenshot-viewport {
  max-height: 640px;
  overflow: auto;
  background: #f4f5f0;
  border-top: 1px solid var(--line);
  scrollbar-color: #a6b6a5 #f0f3eb;
}
.screenshot-viewport img {
  display: block;
  width: 100%;
  height: auto;
}
.screenshot-hint {
  display: none;
}
.showcase-footnote {
  color: #59695f;
  font-size: 11px;
  margin: 20px 0 0;
}
.cta-copy {
  position: relative;
}
@media (min-width: 1441px) {
  .hero {
    min-height: 820px;
  }
}
@media (max-width: 1100px) {
  .walkthrough-section {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .walkthrough-copy {
    max-width: 650px;
  }
  .workflow-panels {
    width: 100%;
    max-width: 760px;
    margin: auto;
  }
  .workflow-card.demo-workspace {
    min-height: 590px;
  }
  .product-section {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .product-section .section-heading {
    max-width: 670px;
  }
  .hero-visual {
    max-width: 690px;
  }
  .hero-botanical {
    right: -100px;
    top: 400px;
    opacity: 0.26;
  }
}
@media (max-width: 760px) {
  .hero {
    gap: 30px;
  }
  .dashboard-content {
    padding: 24px 20px;
  }
  .dashboard-content .eyebrow {
    font-size: 9px;
  }
  .dashboard-content h3 {
    font-size: 27px;
  }
  .dashboard-topbar {
    padding: 18px 20px;
  }
  .dashboard-topbar span {
    max-width: 135px;
    text-align: right;
    font-size: 10px;
  }
  .claim-story {
    min-height: 310px;
  }
  .story-step h4 {
    font-size: 22px;
  }
  .story-step > p:not(.demo-overline) {
    font-size: 13px;
  }
  .success-note {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 20px);
    margin: -8px auto 0;
    padding: 16px;
  }
  .dashboard-scene {
    padding-bottom: 0;
  }
  .success-note strong {
    font-size: 12px;
  }
  .hero-botanical {
    width: 360px;
    right: -170px;
    top: 500px;
    opacity: 0.22;
  }
  .workflow-card.demo-workspace {
    min-height: 610px;
  }
  .demo-windowbar {
    padding: 16px 18px;
    font-size: 10px;
  }
  .demo-workspace-body {
    padding: 24px 20px 30px;
  }
  .demo-workspace h3 {
    font-size: 36px;
  }
  .demo-product {
    gap: 9px;
  }
  .demo-product strong {
    font-size: 12px;
  }
  .demo-product small {
    font-size: 11px;
  }
  .demo-product .demo-pill {
    font-size: 10px;
    padding: 5px 7px;
  }
  .demo-rule-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .demo-workspace .demo-small {
    font-size: 12px;
  }
  .demo-workspace .demo-callout {
    font-size: 13px;
  }
  .demo-workspace .demo-button,
  .demo-workspace select,
  .demo-workspace textarea {
    font-size: 14px;
  }
  .demo-workspace .demo-label {
    font-size: 13px;
  }
  .demo-workspace .demo-facts {
    font-size: 12px;
  }
  .demo-rule-grid strong {
    font-size: 16px;
  }
  .feature-grid {
    gap: 12px;
  }
  .feature-card {
    min-height: 230px;
  }
  .feature-card h3 {
    font-size: 23px;
    margin: 25px 0 14px;
  }
  .feature-card p {
    font-size: 15px;
  }
  .showcase-section .section-heading h2 {
    font-size: 54px;
  }
  .showcase-tabs {
    gap: 0;
  }
  .showcase-tabs button {
    font-size: 12px;
    padding: 12px 5px;
  }
  .showcase-caption {
    flex-direction: column;
    align-items: start;
    gap: 10px;
    padding: 22px;
  }
  .showcase-caption h3 {
    font-size: 31px;
  }
  .showcase-caption p {
    font-size: 14px;
  }
  .screenshot-hint {
    display: block;
    padding: 0 22px;
    margin: 0 0 16px;
    font-size: 11px;
    color: #59695f;
  }
  .screenshot-viewport {
    max-height: 500px;
  }
  .screenshot-viewport img {
    width: 1000px;
    max-width: none;
  }
  .showcase-footnote {
    font-size: 12px;
  }
  .cta-botanical {
    right: -280px;
    opacity: 0.12;
  }
}
@media (max-width: 359px) {
  .demo-windowbar {
    flex-direction: column;
    gap: 4px;
  }
  .demo-workspace-body {
    padding-inline: 18px;
  }
  .demo-product {
    flex-wrap: wrap;
  }
  .story-tabs {
    gap: 2px;
  }
  .story-tabs button {
    min-width: 33px;
  }
  .story-controls {
    gap: 4px;
  }
  .demo-reference {
    font-size: 10px;
  }
  .demo-disclaimer {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .coverage-track i {
    transition: none;
  }
}

/* Decorative artwork exported from Coverstead's approved application leaves.
 * Integration: append <img class="hero-botanical" src="/assets/botanical.svg"
 * alt="" aria-hidden="true" width="900" height="320" decoding="async">
 * inside .hero-decoration. Append the equivalent workflow-botanical and
 * cta-botanical images directly inside their sections. Do not add data-reveal.
 * The artwork stays static; the existing section choreography is unchanged.
 */
.hero-botanical,
.workflow-botanical,
.cta-botanical {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
  /* Original SVG gradients, veins, masks and layered leaf paths stay intact. */
}

.hero-botanical {
  z-index: 0;
  top: -12px;
  right: -105px;
  width: min(1100px, 96vw);
  opacity: 0.86;
  transform: rotate(8deg);
  transform-origin: 100% 0;
}

.walkthrough-section {
  position: relative;
  isolation: isolate;
  /* Constrain decorative geometry locally, without hiding document overflow. */
  overflow: clip;
}
.walkthrough-section > :not(.workflow-botanical) {
  position: relative;
  z-index: 1;
}
.workflow-botanical {
  z-index: 0;
  top: -28px;
  right: -205px;
  width: min(1400px, 128vw);
  opacity: 0.68;
  transform: rotate(8deg);
  transform-origin: 100% 0;
}

/* This specificity overrides the existing .cta-section > * content rule. */
.cta-section > .cta-botanical {
  position: absolute;
  z-index: 0;
  top: -6px;
  right: -170px;
  width: min(1300px, 116vw);
  opacity: 0.82;
  transform: rotate(-7deg);
  transform-origin: 100% 0;
}

@media (max-width: 1100px) {
  .hero-botanical {
    top: 4px;
    right: -95px;
    width: 1000px;
    opacity: 0.62;
  }
  .workflow-botanical {
    right: -240px;
    width: 1200px;
    opacity: 0.5;
  }
  .cta-section > .cta-botanical {
    right: -215px;
    width: 1150px;
    opacity: 0.6;
  }
}

@media (max-width: 760px) {
  /* Keep the editorial headline clean and move hero leaves behind the demo.
   * Width is independent of the viewport so leaves retain authentic scale. */
  .hero-botanical {
    top: auto;
    bottom: 48px;
    right: -160px;
    width: 920px;
    opacity: 0.64;
    transform: rotate(11deg);
  }
  .workflow-botanical {
    top: -48px;
    right: -290px;
    width: 1050px;
    opacity: 0.27;
  }
  .cta-section > .cta-botanical {
    top: auto;
    right: -320px;
    bottom: -32px;
    width: 1150px;
    opacity: 0.32;
    transform: rotate(-4deg);
  }
}

@media (max-width: 359px) {
  .hero-botanical {
    right: -200px;
    opacity: 0.5;
  }
  .cta-section > .cta-botanical {
    opacity: 0.24;
  }
}

@media (forced-colors: active) {
  .hero-botanical,
  .workflow-botanical,
  .cta-botanical {
    display: none;
  }
}

@media (min-width: 1101px) {
  .walkthrough-section {
    padding-block: 90px;
  }
}
/* Even decorative step numerals remain readable on the light feature cards. */
.feature-number {
  color: #657067;
}
/* Keep body copy legible even over the source's pale moving light washes. */
.hero-intro,
.availability,
.feature-card p {
  color: #59695f;
}

/* Comfortable story controls; wrap the secondary action at the smallest widths. */
.story-controls {
  flex-wrap: wrap;
}
.story-tabs button {
  min-width: 44px;
  min-height: 44px;
}
