:root {
  --service-ink: #1a1915;
  --service-lime: #a8ff9a;
  --service-paper: #f7f7f2;
  --service-white: #fff;
  --service-muted: #5b5b55;
  --service-line: rgba(26, 25, 21, .18);
  --service-radius: 14px;
}

html { scroll-behavior: smooth; }
body.service-page { background: var(--service-paper); color: var(--service-ink); }
body.service-page ::selection { background: var(--service-lime); color: var(--service-ink); }
body.service-page :focus-visible { outline: 3px solid var(--service-lime); outline-offset: 4px; }

.service-main { overflow: clip; }
.service-wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.service-breadcrumb { padding-top: 112px; font: 500 12px/1.5 var(--mono, "DM Mono", monospace); text-transform: uppercase; }
.service-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.service-breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--service-muted); }
.service-breadcrumb a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

.service-hero { padding: 42px 0 110px; }
.service-hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); align-items: end; gap: clamp(36px, 7vw, 100px); }
.service-hero-copy h1 { max-width: 12ch; margin: 0; font-size: clamp(52px, 7.1vw, 96px); line-height: .94; letter-spacing: -.04em; font-weight: 500; text-wrap: balance; }
.service-hero-copy .lead { max-width: 62ch; margin: 32px 0 0; font-size: clamp(19px, 2vw, 25px); line-height: 1.48; }
.service-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.service-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 18px; border: 1px solid var(--service-ink); border-radius: 12px; background: var(--service-ink); color: var(--service-white); font: 500 12px/1 var(--mono, "DM Mono", monospace); letter-spacing: .03em; text-transform: uppercase; transition: transform .25s ease, background .25s ease, color .25s ease; }
.service-button:hover { transform: translateY(-2px); background: var(--service-lime); color: var(--service-ink); }
.service-button.secondary { background: transparent; color: var(--service-ink); }
.service-hero-note { color: var(--service-muted); font-size: 14px; line-height: 1.5; max-width: 32ch; }
.service-hero-media { position: relative; min-height: 610px; border-radius: var(--service-radius); overflow: hidden; background: var(--service-ink); }
.service-hero-media img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.service-hero-media::after { content: ""; position: absolute; inset: auto 0 0; height: 28%; background: linear-gradient(transparent, rgba(26,25,21,.48)); }
.service-hero-tag { position: absolute; z-index: 2; left: 18px; bottom: 18px; max-width: calc(100% - 36px); padding: 12px 14px; border-radius: 10px; background: var(--service-lime); color: var(--service-ink); font: 500 11px/1.45 var(--mono, "DM Mono", monospace); }

.service-section { padding: 110px 0; border-top: 1px solid var(--service-line); }
.service-section.lime { background: var(--service-lime); border-top: 0; }
.service-section.dark { background: var(--service-ink); color: var(--service-white); border-top: 0; }
.service-section-head { display: grid; grid-template-columns: .7fr 1.3fr; gap: 32px; align-items: start; margin-bottom: 54px; }
.service-section-head h2 { max-width: 14ch; margin: 0; font-size: clamp(36px, 5vw, 68px); line-height: 1; letter-spacing: -.035em; font-weight: 500; text-wrap: balance; }
.service-section-head p { max-width: 65ch; margin: 4px 0 0; font-size: 18px; line-height: 1.65; }

.problem-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid currentColor; }
.problem-list li { display: grid; grid-template-columns: 56px 1fr minmax(250px, .75fr); gap: 24px; padding: 25px 0; border-bottom: 1px solid currentColor; align-items: baseline; }
.problem-list strong { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.1; font-weight: 500; }
.problem-list span:last-child { color: var(--service-muted); line-height: 1.55; }
.dark .problem-list span:last-child { color: #d7d7d0; }

.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--service-ink); border: 1px solid var(--service-ink); border-radius: var(--service-radius); overflow: hidden; }
.before-after article { background: var(--service-white); color: var(--service-ink); padding: clamp(28px, 5vw, 58px); }
.before-after article:last-child { background: var(--service-lime); }
.before-after h3 { margin: 0 0 24px; font-size: 32px; font-weight: 500; }
.before-after ul { display: grid; gap: 14px; margin: 0; padding-left: 20px; line-height: 1.55; }

.benefit-band { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--service-ink); border-bottom: 1px solid var(--service-ink); }
.benefit-band article { min-height: 250px; padding: 28px 24px; border-right: 1px solid var(--service-ink); display: flex; flex-direction: column; justify-content: space-between; }
.benefit-band article:last-child { border-right: 0; }
.benefit-band h3 { margin: 0; font-size: 23px; line-height: 1.12; font-weight: 500; }
.benefit-band p { margin: 44px 0 0; line-height: 1.55; }

.process-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); }
.process-line li { position: relative; padding: 54px 18px 0 0; min-height: 190px; border-top: 2px solid currentColor; }
.process-line li::before { content: ""; position: absolute; width: 16px; height: 16px; top: -9px; left: 0; border-radius: 50%; background: var(--service-lime); border: 2px solid var(--service-ink); }
.dark .process-line li::before { border-color: var(--service-white); }
.process-line b { display: block; margin-bottom: 10px; font: 500 12px/1.35 var(--mono, "DM Mono", monospace); text-transform: uppercase; }
.process-line span { display: block; max-width: 22ch; line-height: 1.5; }

.use-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.use-cases article { padding: 28px; border: 1px solid var(--service-line); border-radius: var(--service-radius); background: var(--service-white); }
.use-cases h3 { margin: 0 0 12px; font-size: 24px; font-weight: 500; }
.use-cases p { margin: 0; line-height: 1.6; }

.demo-shell { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; padding: clamp(24px, 4vw, 48px); border-radius: var(--service-radius); background: var(--service-ink); color: var(--service-white); }
.demo-copy h3 { font-size: clamp(30px, 4vw, 52px); line-height: 1; margin: 0 0 18px; font-weight: 500; }
.demo-copy p { color: #d7d7d0; line-height: 1.6; }
.demo-copy small { display: block; margin-top: 24px; color: #d7d7d0; line-height: 1.5; }
.simulator { display: grid; gap: 20px; padding: 28px; border-radius: 12px; background: var(--service-white); color: var(--service-ink); }
.sim-field { display: grid; gap: 8px; }
.sim-field label { font-weight: 500; }
.sim-field input[type="number"] { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #777; border-radius: 8px; background: #fff; color: #111; font: inherit; }
.sim-field input[type="range"] { width: 100%; accent-color: #1a1915; }
.sim-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sim-result { padding: 16px; border-radius: 10px; background: #eef0e9; }
.sim-result b { display: block; margin-top: 6px; font-size: clamp(23px, 3vw, 34px); font-variant-numeric: tabular-nums; }
.bar-chart { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 10px; font-size: 13px; }
.bar-track { height: 22px; background: #dedfd8; border-radius: 6px; overflow: hidden; }
.bar-fill { width: 100%; height: 100%; background: var(--service-ink); transform: scaleX(var(--bar, 1)); transform-origin: left; transition: transform .35s ease; }
.bar-fill.after { background: var(--service-lime); border: 1px solid var(--service-ink); }

.interface-demo { padding: 20px; border-radius: 12px; background: #eceee7; color: var(--service-ink); }
.interface-top { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #c7c9c1; font: 500 11px/1.3 var(--mono, "DM Mono", monospace); text-transform: uppercase; }
.interface-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 14px; margin-top: 14px; }
.interface-panel { min-height: 240px; padding: 18px; border-radius: 10px; background: #fff; }
.interface-panel h4 { margin: 0 0 18px; font-size: 18px; }
.interface-row { display: grid; grid-template-columns: 1fr 74px; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid #e1e2dd; font-size: 14px; }
.interface-status { padding: 5px 7px; border-radius: 999px; background: var(--service-lime); text-align: center; font-size: 11px; }

.feature-table { width: 100%; border-collapse: collapse; }
.feature-table th, .feature-table td { padding: 20px 16px; border-bottom: 1px solid var(--service-line); text-align: left; vertical-align: top; line-height: 1.5; }
.feature-table th { font: 500 12px/1.4 var(--mono, "DM Mono", monospace); text-transform: uppercase; }
.feature-table td:first-child { width: 28%; font-weight: 500; }

.delivery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--service-line); }
.delivery article { min-height: 260px; padding: 28px; background: var(--service-paper); }
.delivery b { font: 500 12px/1.3 var(--mono, "DM Mono", monospace); text-transform: uppercase; }
.delivery h3 { margin: 44px 0 12px; font-size: 25px; font-weight: 500; }
.delivery p { margin: 0; line-height: 1.55; }

.price-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; align-items: end; padding: clamp(30px, 6vw, 72px); border-radius: var(--service-radius); background: var(--service-lime); color: var(--service-ink); }
.price-panel h2 { max-width: 13ch; margin: 0; font-size: clamp(42px, 6vw, 78px); line-height: .98; letter-spacing: -.035em; font-weight: 500; }
.price-panel .price { font-size: clamp(28px, 4vw, 54px); line-height: 1.05; font-weight: 500; }
.price-panel p { max-width: 55ch; line-height: 1.6; }
.price-warning { padding: 12px 14px; border: 1px solid var(--service-ink); border-radius: 10px; font: 500 11px/1.55 var(--mono, "DM Mono", monospace); }

.why-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
.why-grid h2 { max-width: 12ch; margin: 0; font-size: clamp(40px, 5vw, 68px); line-height: 1; font-weight: 500; }
.why-grid ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid currentColor; }
.why-grid li { padding: 18px 0; border-bottom: 1px solid currentColor; line-height: 1.55; }

.faq-list { border-top: 1px solid var(--service-ink); }
.faq-list details { border-bottom: 1px solid var(--service-ink); }
.faq-list summary { cursor: pointer; list-style: none; padding: 23px 48px 23px 0; font-size: clamp(20px, 2.5vw, 28px); font-weight: 500; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 20px; font-size: 30px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 72ch; margin: 0; padding: 0 0 24px; line-height: 1.65; }

.service-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-links a { display: flex; min-height: 170px; padding: 24px; border-radius: var(--service-radius); background: var(--service-white); border: 1px solid var(--service-line); flex-direction: column; justify-content: space-between; transition: transform .25s ease, background .25s ease; }
.service-links a:hover { transform: translateY(-3px); background: var(--service-lime); }
.service-links strong { font-size: 24px; line-height: 1.15; }
.service-links span { font: 500 11px/1.3 var(--mono, "DM Mono", monospace); text-transform: uppercase; }

.service-final { padding: 100px 0; background: var(--service-ink); color: var(--service-white); text-align: center; }
.service-final h2 { max-width: 14ch; margin: 0 auto; font-size: clamp(46px, 7vw, 88px); line-height: .97; letter-spacing: -.04em; font-weight: 500; text-wrap: balance; }
.service-final p { max-width: 60ch; margin: 26px auto 0; color: #d7d7d0; font-size: 19px; line-height: 1.6; }
.service-final .service-button { margin-top: 30px; background: var(--service-lime); color: var(--service-ink); }
.service-final .ask { width: min(760px, 100%); margin: 42px auto 0; text-align: left; }
.service-final .ask-q { color: var(--service-white); }
.service-final .ask-note { color: #d7d7d0; }

.service-index-hero { padding: 150px 0 90px; }
.service-index-hero h1 { max-width: 12ch; margin: 0; font-size: clamp(58px, 8vw, 96px); line-height: .92; letter-spacing: -.04em; font-weight: 500; }
.service-index-hero p { max-width: 62ch; margin: 30px 0 0; font-size: 21px; line-height: 1.6; }
.service-directory { border-top: 1px solid var(--service-ink); }
.service-directory a { display: grid; grid-template-columns: 62px 1fr minmax(220px, .6fr); gap: 28px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--service-ink); }
.service-directory strong { font-size: clamp(27px, 4vw, 52px); line-height: 1; font-weight: 500; }
.service-directory p { margin: 0; line-height: 1.5; }

[data-reveal] { transition: opacity .65s ease, transform .65s cubic-bezier(.22,1,.36,1); }
.js [data-reveal]:not([data-in]) { opacity: 0; transform: translateY(24px); }

@media (max-width: 900px) {
  .service-wrap { width: min(100% - 36px, 720px); }
  .service-breadcrumb { padding-top: 92px; }
  .service-hero { padding-bottom: 78px; }
  .service-hero-grid, .service-section-head, .demo-shell, .price-panel, .why-grid { grid-template-columns: 1fr; }
  .service-hero-copy h1 { max-width: 14ch; font-size: clamp(46px, 12vw, 76px); }
  .service-hero-media { min-height: 520px; }
  .service-section { padding: 78px 0; }
  .service-section-head h2 { max-width: 16ch; }
  .benefit-band { grid-template-columns: 1fr 1fr; }
  .benefit-band article:nth-child(2) { border-right: 0; }
  .benefit-band article:nth-child(-n+2) { border-bottom: 1px solid var(--service-ink); }
  .process-line { grid-template-columns: 1fr; }
  .process-line li { min-height: 0; padding: 20px 0 32px 34px; border-top: 0; border-left: 2px solid currentColor; }
  .process-line li::before { top: 20px; left: -9px; }
  .use-cases, .service-links { grid-template-columns: 1fr 1fr; }
  .delivery { grid-template-columns: 1fr 1fr; }
  .service-directory a { grid-template-columns: 42px 1fr; }
  .service-directory p { grid-column: 2; }
}

@media (max-width: 620px) {
  .service-wrap { width: min(100% - 28px, 560px); }
  .service-hero-copy h1 { font-size: clamp(42px, 14vw, 62px); }
  .service-hero-media { min-height: 430px; }
  .problem-list li { grid-template-columns: 38px 1fr; }
  .problem-list li span:last-child { grid-column: 2; }
  .before-after, .benefit-band, .use-cases, .service-links, .delivery, .sim-results, .interface-grid { grid-template-columns: 1fr; }
  .benefit-band article { border-right: 0; border-bottom: 1px solid var(--service-ink); min-height: 210px; }
  .benefit-band article:last-child { border-bottom: 0; }
  .feature-table, .feature-table tbody, .feature-table tr, .feature-table th, .feature-table td { display: block; }
  .feature-table thead { display: none; }
  .feature-table td:first-child { width: auto; padding-bottom: 6px; border-bottom: 0; }
  .feature-table td:last-child { padding-top: 0; }
  .price-panel { padding: 28px; }
  .service-index-hero { padding-top: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal]:not([data-in]) { opacity: 1; transform: none; }
}
