:root {
  --ink: #1F2226;
  --ink-2: #353A40;
  --steel: #5C636C;
  --line: #DEE1E5;
  --mist: #EEF0F2;
  --paper: #F7F8F9;
  --white: #FFFFFF;
  --brand: #0E5A2B;
  --brand-2: #0A4520;
  --red: #BB141A;
  --lamp: #FFFFFF;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --cond: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, "Arial Narrow", sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { font-family: var(--cond); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--steel); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--white { background: var(--white); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { flex: none; display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand img { height: 50px; width: auto; }
.brand .branch { font-family: var(--cond); font-weight: 600; font-size: 1.05rem; color: var(--ink); padding-left: .7rem; border-left: 1px solid var(--line); line-height: 1.1; }
.brand span { white-space: nowrap; }
.brand b { display: block; line-height: 1.1; font-family: var(--cond); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand small { display: block; font-size: .78rem; color: var(--steel); line-height: 1; margin-top: 2px; }
.nav ul { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; }
.nav a { white-space: nowrap; text-decoration: none; font-size: .95rem; color: var(--ink-2); padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); color: var(--ink); }
.header-cta { display: flex; gap: .6rem; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: .5rem .7rem; font: inherit; color: var(--ink); cursor: pointer; }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
  .nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--mist); }
  .header-cta .btn--ghost { display: none; }
}
@media (max-width: 560px) { .header-cta .btn { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 500 1rem/1 var(--sans); text-decoration: none; padding: .9rem 1.3rem; border-radius: 6px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: #B9C1CC; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--sm { padding: .65rem 1rem; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Hero */
.hero { background: var(--white); padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-note { margin-top: 1.25rem; font-size: .95rem; color: var(--steel); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

.panel { background: var(--ink); border-radius: 4px; overflow: hidden; }
.panel svg { width: 100%; height: auto; }
.panel-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1.1rem; border-top: 1px solid rgba(255,255,255,.12); color: #C9D2E0; font-size: .9rem; }
.panel-bar button { white-space: nowrap; flex: none; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; font: 500 .85rem/1 var(--sans); padding: .5rem .8rem; border-radius: 4px; cursor: pointer; }
.panel-bar button:hover { border-color: #fff; }

/* Definition block */
.define { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 800px) { .define { grid-template-columns: 1fr; } .facts div { grid-template-columns: 1fr; gap: .2rem; } }

/* Service index */
.svc-list { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list a { display: grid; grid-template-columns: minmax(0, 18rem) 1fr auto; gap: 1.5rem; align-items: baseline; padding: 1.35rem 0; text-decoration: none; }
.svc-list h3 { margin: 0; }
.svc-list p { margin: 0; color: var(--steel); }
.svc-list .go { font-size: .95rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.svc-list a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .svc-list a { grid-template-columns: 1fr; gap: .35rem; } }

/* Compare table */
.table-scroll { overflow-x: auto; margin-top: 2rem; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--white); }
.compare th, .compare td { text-align: left; padding: .95rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--cond); font-size: 1.1rem; border-bottom: 2px solid var(--ink); }
.compare thead th:nth-child(2) { background: var(--brand); color: #fff; border-bottom-color: var(--brand); }
.compare tbody th { font-weight: 500; color: var(--steel); width: 30%; }
.compare td:nth-child(2) { background: #EEF5F0; font-weight: 500; }

/* Steps */
.steps { list-style: none; counter-reset: s; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps li { counter-increment: s; padding: 1.5rem 1.5rem 1.5rem 0; border-top: 2px solid var(--ink); margin-right: 1.5rem; }
.steps li::before { content: counter(s); display: block; font-family: var(--cond); font-weight: 600; font-size: 2.2rem; line-height: 1; margin-bottom: .8rem; color: var(--ink); }
.steps p { margin: 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li { margin-right: 0; } }

/* Fit lists */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.fit h3 { padding-bottom: .6rem; border-bottom: 2px solid var(--ink); }
.fit--no h3 { border-bottom-color: #9AA5B5; }
.fit ul { list-style: none; margin: 0; padding: 0; }
.fit li { padding: .7rem 0 .7rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; }
.fit li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: .8rem; height: 2px; background: var(--ink); }
.fit--no li::before { background: #9AA5B5; }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 2rem; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .95rem; font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.2rem; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Page head (inner) */
.page-head { background: var(--white); padding: 2.25rem 0 3rem; border-bottom: 1px solid var(--line); }
.crumbs { font-size: .9rem; color: var(--steel); margin-bottom: 1.5rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: #9AA5B5; }
.crumbs a { color: var(--steel); }
.prose p { font-size: 1.08rem; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.aside-box { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 1.5rem; position: sticky; top: 96px; }
.aside-box h2 { font-size: 1.3rem; }
.aside-box .btn { width: 100%; justify-content: center; margin-top: .6rem; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .aside-box { position: static; } }

.related { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.related a { display: inline-block; padding: .6rem .95rem; border: 1px solid #B9C1CC; border-radius: 6px; text-decoration: none; font-size: .95rem; }
.related a:hover { border-color: var(--ink); }

/* CTA band */
.cta-band { background: var(--ink); color: #E6EAF1; }
.cta-band h2 { color: #fff; }
.cta-band .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; }
.cta-band .btn--primary { background: #fff; color: var(--brand); }
.cta-band .btn--primary:hover { background: var(--mist); color: var(--brand-2); }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn--ghost:hover { border-color: #fff; color: #fff; }
.nap { font-style: normal; line-height: 1.8; }
.nap a { color: inherit; }
@media (max-width: 800px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-list { margin: 0; }
.contact-list div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: .9rem; color: var(--steel); }
.contact-list dd { margin: .15rem 0 0; font-size: 1.1rem; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--mist); }
.map-empty { display: grid; place-items: center; padding: 2rem; text-align: center; color: var(--steel); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--red); color: #FBE9EA; font-size: .95rem; padding: 3.5rem 0 6rem; }
.site-footer a { color: #FFFFFF; }
.site-footer :focus-visible { outline-color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h2 { font-size: 1.05rem; color: #fff; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.3); font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
@media (min-width: 761px) { .site-footer { padding-bottom: 3rem; } }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--white); border-top: 1px solid var(--line); padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom, 0px)); gap: .6rem; }
  .action-bar .btn { justify-content: center; }
}
@media (max-width: 420px) {
  .brand img { height: 40px; }
  .brand .branch { font-size: .95rem; padding-left: .5rem; }
  .brand { gap: .5rem; }
  .site-header .wrap { gap: .75rem; }
}
