/* The original sections and interactions keep their existing structure. */
.content-section {
  padding-block: 60px;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 30px;
}

.section-heading h2 {
  color: #25281e;
  font-size: clamp(29px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: -1px;
  text-wrap: balance;
}

.section-label {
  color: #59653b;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-heading > p:not(.section-label) {
  color: #626650;
  line-height: 2;
}

/* The five steps keep their mobile accordion and desktop arrangement. */
.workflow-section {
  background: transparent;
  border-bottom: 1px solid #d9dacb;
}

.workflow-accounting-note {
  color: #626650 !important;
  border-inline-start-color: #d4ad40;
}

.workflow-list {
  gap: 14px;
  max-width: 680px;
  margin-top: 32px;
}

.workflow-list li {
  padding: 18px;
  border-color: #d9dacb;
  border-radius: 10px;
  background: #fbfaf5;
  box-shadow: none;
}

.workflow-list li:first-child {
  border-color: #bca657;
  background: #efead6;
}

.workflow-list li:not(:last-child)::before {
  border-color: #c4c8b1;
}

.workflow-list li:not(:last-child)::after {
  border-color: #788257;
}

.step-icon {
  color: #59653b;
  background: #eeefdf;
  border-color: #d9ddc6;
  border-radius: 8px;
}

.workflow-step:first-child .step-icon {
  color: #25281e;
  background: #d4ad40;
  border-color: #d4ad40;
  box-shadow: none;
}

.step-number,
.step-number strong {
  color: #626650;
}

.step-details h3 {
  color: #25281e;
  font-weight: 800;
}

.step-chevron {
  stroke: #626650;
}

.step-output {
  color: #59653b;
  border-color: #d9dacb;
}

.accounting-callout {
  color: #25281e;
  background: #d4ad40;
  border-radius: 6px;
}

.accounting-scope {
  color: #454322;
}

.accounting-border rect {
  stroke: #6b5420;
}

/* Operations use the same four cards, with a quieter paper surface. */
.operations-overview-grid {
  gap: 14px;
}

.operations-overview-card {
  padding: 24px;
  border-color: #d9dacb;
  border-radius: 12px;
  background: #efeee3;
  gap: 16px;
}

.operation-heading h3 {
  color: #25281e;
  font-weight: 800;
}

.operation-heading .feature-icon {
  color: #59653b;
  background: #e3e5d2;
  border: 1px solid #d1d5bb;
  border-radius: 8px;
}

.operations-overview-card > p {
  color: #626650;
}

/* Screenshot pixels stay untouched; only their surrounding frame changes. */
.product-views-section {
  background: #eaeadd;
  border-block: 1px solid #d9dacb;
}

.carousel-pages {
  gap: 8px;
  margin-bottom: 18px;
}

.carousel-pages button,
.carousel-controls button {
  color: #59653b;
  background: transparent;
  border-color: #bec4aa;
  border-radius: 8px;
  padding-inline: 14px;
}

.carousel-pages button[aria-pressed="true"] {
  color: #f5f2e9;
  background: #25281e;
  border-color: #25281e;
}

.carousel-pages button:hover:not([aria-pressed="true"]),
.carousel-controls button:hover:not(:disabled) {
  color: #25281e;
  background: #dfe2cd;
  border-color: #9aa47a;
}

.carousel-controls {
  gap: 10px;
  margin-bottom: 20px;
}

.carousel-status {
  color: #626650;
}

.product-slide {
  padding: 18px;
  border-color: #cdd0bb;
  border-radius: 12px;
  background: #f5f2e9;
}

.carousel-image {
  border-color: #d3d5c5;
  border-radius: 8px;
  background: #fff;
}

.carousel-image > span {
  color: #495433;
  background: #e5e7d4;
  border-color: #d3d5c5;
}

.carousel-category {
  color: #59653b;
}

.product-slide h3 {
  color: #25281e;
  font-weight: 800;
}

.product-slide p,
.product-slide ul {
  color: #626650;
}

.product-slide ul {
  border-color: #d9dacb;
}

.product-slide li::before {
  color: #59653b;
}

/* Training is the dark olive interval between the lighter sections. */
.tutorials-section {
  color: #f5f2e9;
  background: #293023;
  border-block-color: #434c34;
}

.tutorials-section .section-label,
.tutorial-details .carousel-category {
  color: #e2c266;
}

.tutorials-section .section-heading h2,
.tutorial-details h3 {
  color: #f5f2e9;
}

.tutorials-section .section-heading > p:not(.section-label),
.tutorial-details p {
  color: #c9cdbb;
}

.tutorial-carousel .tutorial-slide {
  padding: 18px;
  background: #333c29;
  border-color: #4e593e;
  border-radius: 12px;
}

.tutorial-media,
.tutorial-media video {
  background: #20271b;
  border-radius: 8px;
}

.tutorial-poster {
  color: #f5f2e9;
  background: radial-gradient(ellipse at 25% 85%, #d4ad4014, transparent 70%), #20271b;
}

.tutorial-poster::before {
  border-color: #d4ad401f;
}

.tutorial-brand {
  color: #b7bea5;
}

.tutorial-outline,
.tutorial-play {
  color: #e2c266;
}

.tutorial-play {
  background: #d4ad4010;
  border-color: #d4ad4059;
}

.tutorial-soon {
  color: #ebcd7a;
  background: #d4ad4010;
  border-color: #d4ad4040;
}

.tutorial-soon::before {
  background: #d4ad40;
}

.tutorial-availability {
  color: #c9cdbb;
  border-color: #596347;
}

.tutorial-carousel .carousel-pages button,
.tutorial-carousel .carousel-controls button {
  color: #e1e4d6;
  border-color: #64704d;
  background: transparent;
}

.tutorial-carousel .carousel-pages button[aria-pressed="true"] {
  color: #25281e;
  background: #d4ad40;
  border-color: #d4ad40;
}

.tutorial-carousel .carousel-pages button:hover:not([aria-pressed="true"]),
.tutorial-carousel .carousel-controls button:hover:not(:disabled) {
  color: #f5f2e9;
  background: #485437;
  border-color: #849563;
}

.tutorial-carousel .carousel-status {
  color: #c9cdbb;
}

/* Chart marks and data remain controlled by charts.js. */
.reports-section {
  border-bottom: 1px solid #d9dacb;
}

.chart-demo-note > span {
  color: #695321;
  background: #eee2bc;
  border-color: #d6c38b;
}

.chart-demo-note > p {
  color: #626650;
}

.charts-grid {
  gap: 16px;
}

.chart-card {
  padding: 24px 18px;
  background: #fbfaf5;
  border-color: #d9dacb;
  border-radius: 12px;
}

.chart-card h3 {
  color: #25281e;
  font-weight: 800;
}

.chart-category,
.chart-description,
.chart-readout-label,
.chart-axis,
.chart-weeks,
.chart-selection label,
.chart-card figcaption,
.report-bar-label {
  color: #626650;
}

.chart-unit {
  color: #59604a;
  background: #e9ebdc;
  border-radius: 5px;
}

.chart-readout-value,
.profit-chart-card .chart-readout-value {
  color: #59653b;
  font-weight: 800;
}

.profit-chart-card .chart-readout-value.is-negative {
  color: #955a25;
}

.chart-selection,
.chart-card figcaption {
  border-color: #d9dacb;
}

.chart-select {
  color: #25281e;
  background: #f5f2e9;
  border-color: #c5c9b5;
  border-radius: 8px;
  accent-color: #59653b;
}

.report-bar-label strong {
  color: #25281e;
}

.report-bar-track {
  background: #e6e8d9;
  border-radius: 4px;
}

.report-bar-track > span {
  border-radius: 4px;
}

.chart-legend .profit-key {
  background: #596c43;
}

.chart-legend .loss-key {
  background: #b1672d;
}

/* Keep the native details controls and their keyboard focus visible. */
.faq-list {
  max-width: 1000px;
  gap: 8px;
}

.faq-list details {
  border: 1px solid transparent;
  border-bottom-color: #d9dacb;
  border-radius: 0;
  background: transparent;
}

.faq-list details[open] {
  border-color: #d2d5c1;
  border-radius: 10px;
  background: #eeefdf;
}

.faq-list summary {
  color: #25281e;
  padding: 18px 14px;
  font-weight: 700;
}

.faq-list summary > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  color: #59653b;
  border: 1px solid #bfc7a5;
  border-radius: 50%;
  line-height: 1;
}

.faq-list p {
  color: #626650;
  padding-inline: 14px;
}

.faq-list p a {
  color: #495433;
}

/* Contact uses the same mustard as the hero, with a clear dark action. */
.contact-section {
  padding-block: 16px 64px;
}

.closing-inner {
  padding: 30px 24px;
  border: 1px solid #ba9738;
  border-radius: 14px;
  background: #d4ad40;
  gap: 26px;
}

.closing-inner .section-label,
.closing-inner h2,
.contact-description,
.contact-messenger {
  color: #25281e;
}

.closing-inner h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.7;
}

.contact-description {
  margin-top: 14px;
}

.contact-actions .button {
  color: #f5f2e9;
  background: #25281e;
  border-color: #25281e;
  border-radius: 8px;
  box-shadow: none;
}

.contact-actions .button:hover {
  background: #3b432c;
  border-color: #3b432c;
}

.contact-messenger {
  text-decoration: underline;
  text-underline-offset: 5px;
  font-weight: 600;
}

/* The footer stays dark, using olive instead of the former navy. */
.marketing-footer {
  margin-top: 0;
  padding-top: 54px;
  color: #f5f2e9;
  background: #252c20;
}

.marketing-footer .brand-mark {
  color: #25281e;
  background: #d4ad40;
  border-radius: 7px;
}

.marketing-footer h2,
.marketing-footer .brand-name,
.footer-license bdi {
  color: #f5f2e9;
}

.footer-description,
.footer-company-description,
.footer-links a,
.footer-contact a,
.footer-license {
  color: #c9cdbb;
}

.footer-integrations,
.footer-bottom p,
.footer-bottom a {
  color: #b7bea5;
}

.footer-company,
.footer-license,
.footer-bottom::before {
  border-color: #48513b;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-bottom a:hover {
  color: #ebcd7a;
}

/* Fixed CTA and image viewer remain above their existing page layers. */
.mobile-demo-bar {
  background: #f5f2e9f5;
  border-color: #d9dacb;
  box-shadow: 0 -4px 18px #25281e12;
}

.mobile-demo-bar .button {
  color: #25281e;
  background: #d4ad40;
  border-color: #ba9738;
  border-radius: 8px;
  box-shadow: none;
}

.mobile-demo-bar .button:hover {
  background: #dfbd5a;
}

.image-viewer {
  color: #25281e;
  background: #f5f2e9;
  border-color: #b9c09e;
  border-radius: 12px;
  box-shadow: 0 20px 90px #20251b55;
}

.image-viewer::backdrop {
  background: #20251bd9;
}

.viewer-toolbar,
.viewer-controls {
  border-color: #d9dacb;
}

.viewer-toolbar button,
.viewer-controls button {
  color: #495433;
  background: #e9ebdc;
  border-color: #c5c9b5;
}

.viewer-toolbar button:hover,
.viewer-controls button:hover {
  color: #25281e;
  background: #dfe3ca;
}

.viewer-scale,
.viewer-hint {
  color: #626650;
}

.viewer-image-area {
  background: #e4e7d8;
}

.step-details summary:focus-visible,
.product-carousel :focus-visible,
.chart-select:focus-visible,
.contact-actions a:focus-visible,
.mobile-demo-bar a:focus-visible,
.image-viewer :focus-visible {
  outline: 3px solid #59653b;
  outline-offset: 4px;
}

.faq-list summary:focus-visible {
  outline: 3px solid #59653b;
  outline-offset: -5px;
  background: #e7ead5;
  border-radius: 8px;
}

.tutorial-carousel :focus-visible,
.marketing-footer a:focus-visible {
  outline: 3px solid #e2c266;
  outline-offset: 4px;
}

@media (max-width: 359px) {
  .content-section {
    padding-block: 48px;
  }

  .workflow-list li,
  .operations-overview-card,
  .product-slide,
  .tutorial-carousel .tutorial-slide {
    padding: 15px;
  }

  .carousel-pages button,
  .carousel-controls button {
    padding-inline: 10px;
    font-size: 13px;
  }

  .carousel-controls {
    gap: 6px;
  }

  .carousel-status {
    font-size: 13px;
  }

  .chart-card {
    padding: 20px 14px;
  }

  .closing-inner {
    padding: 26px 18px;
  }

  .contact-section {
    padding-bottom: 48px;
  }
}

@media (min-width: 768px) {
  .content-section {
    padding-block: 80px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading > p:not(.section-label) {
    font-size: 17px;
  }

  .operations-overview-grid,
  .charts-grid {
    gap: 20px;
  }

  .operations-overview-card,
  .chart-card {
    padding: 30px;
  }

  .faq-list summary {
    padding: 22px 20px;
    font-size: 18px;
  }

  .faq-list p {
    padding-inline: 20px;
    padding-bottom: 22px;
  }

  .contact-section {
    padding-block: 16px 80px;
  }

  .closing-inner {
    padding: 42px;
  }

  .marketing-footer {
    padding-top: 70px;
  }
}

@media (min-width: 960px) {
  .content-section {
    padding-block: 100px;
  }

  .product-slide,
  .tutorial-carousel .tutorial-slide {
    padding: 32px;
  }

  .operations-overview-card {
    padding: 32px;
  }

  .operation-heading h3 {
    font-size: 23px;
  }

  .carousel-controls {
    gap: 20px;
  }

  .contact-section {
    padding-bottom: 100px;
  }

  .closing-inner {
    padding: 52px;
  }

  .footer-main {
    padding-bottom: 48px;
    gap: 56px;
  }
}

@media (min-width: 1120px) {
  .workflow-list {
    max-width: none;
    gap: 18px;
    margin-top: 42px;
  }

  .workflow-list li {
    padding: 24px 18px;
  }

  .step-number strong {
    color: #59653b;
  }
}
