/* Visual refinement of the approved light / silver / lime identity.
   Native implementation; reference principles, no third-party template code. */
:root {
  --panel-radius: 20px;
  --panel-line: #dfe3e6;
  --panel-soft: #f5f6f7;
  --text-main: #202427;
  --text-secondary: #515b63;
  --ui-ease: cubic-bezier(.23,1,.32,1);
}
:root[data-theme="dark"] {
  --panel-line: #48515e;
  --panel-soft: #252b33;
  --text-main: #f3f5f6;
  --text-secondary: #c7cdd3;
}
body { color: var(--text-main); }
button, input { font-family: Manrope, Arial, sans-serif; }
::selection { background: var(--lime); color: #202427; }
input { caret-color: #486f25; }
:where(a,button,input,summary,[tabindex]):focus-visible {
  outline: 2px solid #4a7326; outline-offset: 5px;
}
.site-header { padding-block: 16px; border-color: var(--panel-line); }
.brand { gap: 11px; }
.brand .brand-name { font-size: 25px; font-weight: 750; letter-spacing: -.035em; line-height: 1; }
.header-actions nav { padding: 6px; gap: 2px; }
.header-actions nav a { padding: 10px 16px; border-radius: 99px; font-size: 14px; font-weight: 550; transition: background-color 180ms ease, color 180ms ease; }
.hero h1 { font-weight: 550; letter-spacing: -.04em; }
.hero-copy>p:not(.hero-note) { font-size: 17px; line-height: 1.65; }
.hero-copy .hero-note { font-size: 14px; line-height: 1.65; max-width: 47ch; margin-top: 20px; color: var(--text-secondary); }
.hero-note strong { display: block; color: var(--text-main); font-weight: 600; margin-bottom: 3px; }
.hero-demo { box-shadow: none; background: var(--surface-inset); padding: 32px; }
.hero-demo-label,.flow-footer { font-size: 12px; font-weight: 500; letter-spacing: .035em; }
.flow-item { border-radius: 18px; font-weight: 550; }
.flow-item small { font-size: 14px; line-height: 1.6; font-weight: 400; }
.flow-number { font-size: 12px; font-weight: 600; }

/* A single button treatment also covers the modal and inline forms. */
body .cta, body .closing .cta, body .section-5 .cta, body .section-7 .cta, body #consultation-form .cta {
  min-height: 56px; padding: 16px 24px; gap: 18px;
  font-family: Manrope, Arial, sans-serif; font-size: 15px; font-weight: 650;
  line-height: 1.45; letter-spacing: -.015em; text-transform: none;
  color: #202b17; background: var(--lime); white-space: normal; text-align: center;
  transition: background-color 180ms ease, transform 140ms var(--ui-ease), box-shadow 180ms ease;
}
.cta::after {
  content: ""; display: block; width: 18px; height: 18px; flex: 0 0 18px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 200ms var(--ui-ease);
}
body .site-header .header-cta { min-height: 48px; font-size: 14px; padding: 12px 20px; }
.site-header .header-cta::after { display: none; }
body .cta:active { transform: scale(.98); }
body .cta:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.supporting,.form-status,.note,.workflow-note,.pain-demo-note { font-size: 14px; line-height: 1.65; }
.closing p { font-size: 15px; line-height: 1.65; }
.closing strong { font-weight: 600; }
.section-heading,#title,.pain-inner>h2 { font-weight: 550; letter-spacing: -.035em; text-wrap: balance; }
.section-inner>p { font-size: 16px; color: var(--text-secondary); line-height: 1.7; }
.content-card h3,.rules-grid h3,.case-card h3 { font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }

/* Equal benefits and rules have equal visual weight. */
.section-4 .cards-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
body #benefits .content-card,body #control .rules-grid .content-card {
  background: var(--panel-soft); color: var(--text-main); border: 1px solid var(--panel-line);
  border-radius: var(--panel-radius); padding: 30px; box-shadow: none;
}
#benefits .content-card { display: flex; flex-direction: column; align-items: flex-start; }
#benefits .content-card h3 { font-size: 24px; min-height: 3.9em; margin: 24px 0 18px; }
body #benefits .content-card p,body .rules-grid .content-card p {
  margin: 0; font-size: 15px; line-height: 1.75; color: var(--text-secondary);
}
.benefit-symbol,.rules-grid .rule-symbol,body .rules-grid .content-card:last-child .rule-symbol {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--surface-raised); color: var(--text-main);
}
.rules-grid { gap: 20px; }
.rules-grid .rule-symbol { margin-bottom: 26px; }
.rules-grid h3 { font-size: 24px; max-width: 24ch; margin-bottom: 16px; }
.section-6 .section-note { border: 1px solid var(--panel-line); background: var(--surface-raised); font-size: 16px; line-height: 1.7; color: var(--text-secondary); }

/* Shared frames, with distinct image, heading and evidence areas. */
.pain-card { border: 1px solid var(--panel-line); border-radius: var(--panel-radius); box-shadow: none; }
.pain-card h3 { font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.pain-card>p { font-size: 15px; line-height: 1.7; }
.pain-small,.pain-small summary,.pain-inner>.pain-small,.pain-demo-note { font-size: 13px; }
.pain-small summary { padding-block: 8px; text-underline-offset: 4px; }
.pain-evidence { padding-top: 20px; }
.pain-scenario figcaption { font-size: 13px; font-weight: 500; }
body #solution .stage { background: var(--panel-soft); border: 1px solid var(--panel-line); border-radius: var(--panel-radius); box-shadow: none; }
body #solution .stage h2 { font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; min-height: 81px; }
body #solution .stage p { font-size: 14px; line-height: 1.7; }
#solution .stage .number span { font-size: 13px; }
.case-track { gap: 20px; padding-block: 10px 28px; }
.case-card { border-radius: var(--panel-radius); padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.case-photo { width: calc(100% + 56px); margin: -28px -28px 24px; border-radius: 20px 20px 0 0; height: 220px; }
.case-card h3 { font-size: 24px; margin-bottom: 22px; }
.demo-tag,.case-card .supporting,.demo-heading-note,.results-band .supporting { font-size: 12px; line-height: 1.6; }
.case-result { font-size: 38px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.case-card p { font-size: 15px; line-height: 1.65; }
.case-card .case-metric { font-weight: 600; margin-block: 0 10px; }
.case-card .supporting { padding-bottom: 22px; }
.case-link { margin-top: auto; width: 100%; padding: 16px 0 0; border-top: 1px solid var(--panel-line); font-size: 14px; font-weight: 600; text-underline-offset: 5px; transition: color 180ms ease; }

/* Equal, compact logo tiles; continuous motion is still owned by logo-carousel.js. */
.logo-item, .logo-item.model-item, #logo-track .logo-item.logo-sheets {
  flex: 0 0 224px; height: 88px; border-radius: 16px; border: 1px solid var(--panel-line);
  background: var(--surface-raised); font-size: 22px; font-weight: 550; letter-spacing: -.025em;
}
.tools-band .logo-track { padding-block: 20px; gap: 16px; mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); }
.tools-band .section-inner>.supporting { font-size: 13px; text-align: center; margin-top: 12px; }
.logo-item img:not(.logo-wordmark),.model-item img { width: 34px; height: 34px; }

/* One continuous timeline. Existing copy and step numbers are preserved. */
body .process-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 46px; }
body .process-grid .content-card {
  display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 36px;
  position: relative; padding: 30px 0 34px 80px; border: 0; border-radius: 0;
  background: transparent; color: var(--text-secondary); min-height: 148px;
}
body .process-grid h3 { min-height: 0; padding: 5px 0 0; margin: 0; font-size: 24px; font-weight: 600; line-height: 1.35; max-width: 25ch; }
.process-grid .content-card p { margin: 0; padding-top: 5px; font-size: 15px; line-height: 1.75; max-width: 60ch; }
body .process-grid .step-number,body .process-grid .content-card:last-child .step-number {
  top: 30px; left: 0; width: 46px; height: 46px; border: 1px solid var(--panel-line);
  background: var(--surface-raised); color: var(--text-main); font-size: 15px;
  transition: background-color 300ms ease, border-color 300ms ease;
}
body .process-grid .content-card::before,body .process-grid .content-card::after,
body .process-grid .content-card:nth-child(n)::after {
  content: ""; display: block; position: absolute; left: 22px; top: 83px;
  width: 3px; height: calc(100% - 60px); background: var(--panel-line); z-index: 0; border-radius: 3px;
}
body .process-grid .content-card::after,body .process-grid .content-card:nth-child(n)::after {
  background: #4d7629; transform-origin: top; transform: scaleY(0);
  transition: transform 850ms var(--ui-ease);
}
body .process-grid .content-card.is-connected::after { transform: scaleY(1); }
body .process-grid .content-card.is-reached .step-number { background: var(--lime); color: #202b17; border-color: var(--lime); }
body .process-grid .content-card:last-child::before,body .process-grid .content-card:last-child::after { display: none; }

.field-label,dialog label { font-size: 14px; font-weight: 550; }
.field,dialog input { font-size: 16px; min-height: 54px; border-color: #b7bec3; transition: border-color 180ms ease; }
.field:focus,dialog input:focus { border-color: #4a7326; }
dialog { padding: 32px; background: var(--surface-raised); }
dialog .close { width: 44px; height: 44px; background: var(--panel-soft); }
dialog h2 { font-weight: 600; }
.section-8 .content-card { border-color: var(--panel-line); border-radius: var(--panel-radius); }
.section-8 .two-col>div:first-child p { font-size: 26px; font-weight: 450; line-height: 1.5; }
.footer-meta { font-size: 12px; line-height: 1.6; }

/* Motion is limited to actionable controls and the explanatory sequence. */
.scroll-reveal,.scroll-reveal.motion-prepared:not(.is-revealed),.scroll-reveal.reveal-soft.motion-prepared:not(.is-revealed) { opacity: 1; transform: none; transition: none; }
@media (hover:hover) and (pointer:fine) {
  .header-actions nav a:hover { background: var(--surface-raised); color: var(--text-main); }
  body .cta:hover { background: #bcee6a; box-shadow: 0 5px 14px rgb(32 43 23 / .09); }
  .cta:hover::after { transform: translateX(3px); }
  .case-link:hover { color: #456924; }
}
@media (max-width:1100px) {
  #benefits .content-card h3,.rules-grid h3,body .process-grid h3 { font-size: 22px; }
  body #benefits .content-card { padding: 25px; }
  .section-4 .cards-grid { gap: 16px; }
  .hero-demo { padding: 28px; }
}
@media (max-width:900px) {
  .hero-copy>p:not(.hero-note) { font-size: 16px; }
  .hero-demo { min-height: 550px; }
  .section-4 .cards-grid { grid-template-columns: 1fr; }
  #benefits .content-card { display: grid; grid-template-columns: 52px 1fr; column-gap: 24px; }
  #benefits .benefit-symbol { grid-row: 1 / 3; }
  #benefits .content-card h3 { margin: 0 0 14px; min-height: 0; }
  #benefits .content-card p { grid-column: 2; }
  body #solution .stage h2 { min-height: 0; }
}
@media (max-width:650px) {
  .site-header { padding: 12px 18px; gap: 12px; }
  .brand .brand-name { font-size: 21px; }
  .brand { gap: 8px; }
  body .site-header .header-cta { font-size: 12px; min-height: 44px; padding: 10px 13px; max-width: 165px; }
  body .cta,body .closing .cta,body .section-5 .cta,body .section-7 .cta,body #consultation-form .cta { font-size: 15px; padding: 16px 20px; gap: 12px; }
  .hero h1 { font-size: 35px; line-height: 1.15; }
  .hero-copy { padding-inline: 0; }
  .hero-copy .hero-note { font-size: 14px; }
  .hero-demo { padding: 26px 20px; min-height: 520px; }
  .flow-item { font-size: 19px; }
  .flow-item small { font-size: 13px; }
  .hero-demo-label,.flow-footer { font-size: 11px; }
  .section-inner>p { font-size: 15px; }
  body #benefits .content-card,body .rules-grid .content-card { padding: 25px; }
  #benefits .content-card { display: flex; }
  #benefits .content-card h3 { margin: 22px 0 16px; font-size: 23px; }
  .rules-grid h3 { font-size: 23px; }
  .rules-grid { gap: 16px; }
  .section-6 .section-note { font-size: 15px; }
  .case-photo { width: calc(100% + 56px); margin: -28px -28px 24px; height: 205px; }
  .case-card h3 { font-size: 23px; }
  .case-result { font-size: 34px; }
  .logo-item,.logo-item.model-item,#logo-track .logo-item.logo-sheets { flex-basis: 205px; height: 78px; font-size: 20px; }
  .tools-band .section-inner>p { font-size: 14px; }
  body .process-grid .content-card { grid-template-columns: 1fr; gap: 14px; padding: 26px 0 30px 62px; min-height: 0; }
  body .process-grid h3 { font-size: 22px; padding-top: 3px; }
  .process-grid .content-card p { font-size: 15px; padding: 0; }
  body .process-grid .step-number,body .process-grid .content-card:last-child .step-number { width: 40px; height: 40px; top: 26px; }
  body .process-grid .content-card::before,body .process-grid .content-card:nth-child(n)::after { left: 19px; top: 73px; height: calc(100% - 54px); }
  .section-8 .two-col>div:first-child p { font-size: 23px; }
  .section-8 .content-card { padding: 25px; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  dialog { padding: 25px; }
}
@media (max-width:380px) {
  .brand .brand-name { font-size: 18px; }
  body .site-header .header-cta { font-size: 11px; padding-inline: 10px; }
  .hero h1 { font-size: 32px; }
  body .cta { font-size: 14px; }
}
@media (prefers-reduced-motion:reduce) {
  body .process-grid .content-card::after { transform: none; }
  body .cta:active,.cta:hover::after { transform: none; }
}
@media (forced-colors:active) {
  .cta::after { background: ButtonText; }
  body .process-grid .content-card::before { background: CanvasText; }
}

/* A travelling marker makes the connection between two stages legible. */
body .process-grid .timeline-marker { position: absolute; top: 79px; left: 17.5px; width: 12px; height: 12px; background: var(--lime); border: 2px solid #4d7629; border-radius: 50%; z-index: 2; opacity: 0; pointer-events: none; }
[data-theme="dark"] .process-grid .content-card.is-connected::after { background: #b3eb78; }
@media(prefers-reduced-motion:reduce) { body .process-grid .timeline-marker { display: none; } body .process-grid .content-card::after { transition: none; } }
