:root {
  --ink: #173b36;
  --green: #245647;
  --dark-green: #173f33;
  --paper: #f7f8f2;
  --white: #fff;
  --lime: #dbef90;
  --muted: #52665b;
  --line: #d7dfd2;
  --soft: #e9eedf;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 Arial, Helvetica, sans-serif; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid #7d954c; outline-offset: 4px; }
h1, h2, h3, h4, p { margin-top: 0; }
select, button { font: inherit; }

.skip { position: absolute; top: -100px; left: 16px; z-index: 1; padding: 10px 16px; background: var(--white); }
.skip:focus { top: 12px; }
.wrap { width: min(90%, 1090px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .site-footer { display: flex; gap: 24px; align-items: center; }
.header-inner { min-height: 82px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.mark { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; background: var(--green); color: var(--lime); font-size: 23px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 14px; }
nav a:not(:hover), .site-footer a:not(:hover) { text-decoration: none; }
.nav-contact { border: 1px solid var(--line); border-radius: 8px; padding: 8px 13px; font-weight: 700; }

.intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(22px, 5vw, 62px); padding-block: clamp(38px, 6vw, 76px) clamp(32px, 5vw, 60px); }
h1, h2 { font-weight: 500; line-height: 1.05; letter-spacing: -.046em; }
h1 { margin-bottom: 18px; font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
h2 { margin-bottom: 16px; font-size: clamp(1.85rem, 4vw, 2.65rem); }
.intro-copy { max-width: 33rem; margin-bottom: 20px; color: var(--muted); font-size: clamp(1.0625rem, 2vw, 1.25rem); }
.workflow-preview { padding: clamp(20px, 3vw, 30px); border-radius: 15px; background: var(--dark-green); color: var(--white); }
.workflow-preview h2 { font-size: 1.5rem; letter-spacing: -.025em; line-height: 1.2; }
.workflow-preview > p { margin-bottom: 14px; }
.workflow-preview .incoming-message { display: grid; gap: 5px; padding: 12px 14px; border: 1px solid #638677; border-radius: 8px; background: #ffffff0b; }
.incoming-message strong { color: var(--lime); font-size: .875rem; }
.workflow-preview .text-link { display: inline-block; color: var(--lime); }
.workflow-preview :focus-visible { outline-color: var(--lime); }

.example-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.65fr); gap: 22px; align-items: start; }
.picker, .example-content { border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3.3vw, 34px); }
.picker { background: var(--soft); }
.picker h2 { font-size: 1.625rem; letter-spacing: -.025em; line-height: 1.2; }
.example-content { background: var(--white); }
.example-content h3 { margin-bottom: 16px; font-size: clamp(1.625rem, 3.4vw, 2.375rem); font-weight: 500; line-height: 1.15; letter-spacing: -.035em; }
.example-content h4 { margin-bottom: 4px; font-size: 1rem; }
label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
select { appearance: none; display: block; width: 100%; min-height: 48px; padding: 10px 35px 10px 12px; border: 1px solid #9aa991; border-radius: 7px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='m2 2 6 6 6-6' fill='none' stroke='%23245647' stroke-width='2'/%3E%3C/svg%3E") right 12px center / 13px no-repeat; color: var(--ink); }
.muted { margin-block: 14px; color: var(--muted); }
.text-link { font-size: 14px; font-weight: 700; }
.problem { margin-bottom: 18px; padding: 11px 15px; border-radius: 8px; background: var(--paper); }
.problem p { margin: 0; color: var(--muted); }
.example-steps { margin: 0; padding-left: 24px; }
.example-steps li { margin-bottom: 8px; padding-left: 6px; }
.example-steps li::marker { color: var(--green); font-weight: 700; }
.example-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 20px 0 24px; }
.example-details dt { font-weight: 700; }
.example-details dd { margin: 3px 0 0; color: var(--muted); }
.example-outcome { grid-column: 1 / -1; padding: 12px 15px; border: 1px solid #d1dec2; border-radius: 8px; background: #f0f5e7; }
.button { display: inline-flex; min-height: 46px; gap: 12px; align-items: center; justify-content: center; padding: 9px 15px; border: 1px solid transparent; border-radius: 7px; background: var(--green); color: var(--white); cursor: pointer; font-size: 14px; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--dark-green); }

.business-scenarios { margin-block: clamp(38px, 6vw, 70px); padding-top: clamp(24px, 4vw, 38px); border-top: 1px solid var(--line); }
.scenario-intro { max-width: 40rem; margin-bottom: 20px; }
.scenario-intro p { color: var(--muted); }
.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.scenario-card { display: flex; flex-direction: column; padding: clamp(17px, 2.3vw, 25px); border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.scenario-card .scenario-business { margin-bottom: 6px; color: var(--green); font-size: .875rem; font-weight: 700; }
.scenario-card h3 { margin-bottom: 10px; font-size: 1.25rem; line-height: 1.25; }
.scenario-card p { color: var(--muted); }
.scenario-card .scenario-measure { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.scenario-measure strong { display: block; color: var(--ink); }

.planner { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 46px); margin-block: clamp(36px, 6vw, 66px); padding: clamp(20px, 4.5vw, 48px); border-radius: 14px; background: var(--dark-green); color: var(--white); }
.planner p { color: #dbe8df; }
.planner select { margin-bottom: 14px; }
.goal-description { padding: 12px 0 8px; }
.goal-description p { margin: 3px 0 12px; }
.button-light { background: var(--lime); color: var(--ink); }
.button-light:hover { background: #edf7ca; }
.planner :focus-visible { outline-color: var(--lime); }
.plan-result:empty { display: none; }
.plan-result { margin-top: 20px; padding: clamp(14px, 3vw, 22px); border: 1px solid #638677; border-radius: 9px; }
.plan-result h3 { margin-bottom: 8px; }
.plan-result ol { padding-left: 22px; }
.plan-result li + li { margin-top: 5px; }
.plan-result .plan-note { font-size: 13px; }

.site-footer { min-height: 88px; flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .brand { margin-right: auto; color: var(--ink); }

@media (max-width: 760px) {
  .intro, .example-layout, .scenario-grid, .planner { grid-template-columns: minmax(0, 1fr); }
  .header-inner { min-height: auto; padding-block: 14px; flex-wrap: wrap; gap: 12px 20px; }
  .planner-intro p { margin-bottom: 0; }
}

@media (max-width: 440px) {
  .example-details { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

@media (max-width: 380px) {
  .site-footer { gap: 10px 16px; padding-block: 14px; }
  .site-footer .brand { flex-basis: 100%; }
}

.automation-categories { margin-bottom: clamp(30px, 5vw, 66px); }
.automation-categories .section-heading { margin-bottom: 18px; }
.automation-categories .section-heading p { max-width: 65ch; color: var(--muted); }
.automation-categories .task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.automation-categories article { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(16px, 2.4vw, 24px); border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.automation-categories h3 { margin-bottom: .45rem; line-height: 1.3; }
.automation-categories article p { flex: 1; margin-bottom: .65rem; }
.automation-categories .actions { margin-top: 14px; }
@media (max-width: 820px) { .automation-categories .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .automation-categories .task-grid { grid-template-columns: minmax(0, 1fr); } }

.automation-level-note { margin-bottom: 10px; color: var(--muted); }
.automation-levels { display: grid; gap: 8px; padding: 0; margin: 0 0 14px; list-style: none; }
.automation-levels li { padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.automation-levels strong { display: block; }
.automation-levels p { margin: 2px 0 0; }
.example-walkthrough summary { width: fit-content; cursor: pointer; color: var(--green); font-weight: 700; }
.example-walkthrough summary:focus-visible { outline: 3px solid #7d954c; outline-offset: 4px; }
.example-walkthrough .example-steps { margin-top: 12px; }

.example-walkthrough + .button { margin-top: 18px; }
