/* Revfraction — site styles */
:root {
  --pine-900: #0f2b24;
  --pine-800: #173f35;
  --pine-600: #2c5a4d;
  --mint: #cfe3d9;
  --apricot: #f2a27a;
  --copper: #9c4420;
  --copper-hover: #82381a;
  --ink: #16201d;
  --ink-soft: #4a5550;
  --paper: #f5f1ea;
  --paper-raised: #fffdf9;
  --sand: #e7dfd1;
  --line: #e2d9ca;
  --line-dark: rgba(207, 227, 217, 0.18);
  --radius: 6px;
  --radius-lg: 14px;
  --wrap: 1120px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--copper); text-underline-offset: 3px; }
a:hover { color: var(--copper-hover); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--apricot); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--pine-900);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 500; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--pine-900); color: #fff; padding: 10px 16px; z-index: 200; border-radius: var(--radius); }
.skip-link:focus { left: 8px; color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
}
.on-dark .eyebrow { color: var(--apricot); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--pine-900);
  border-bottom: 1px solid var(--line-dark);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand__slash { color: var(--apricot); font-weight: 400; margin: 0 1px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--mint); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { color: #fff; }
.site-nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-dark); color: #fff; border-radius: var(--radius); padding: 8px 12px; font: inherit; font-size: 0.9rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--pine-900); border-bottom: 1px solid var(--line-dark); padding: 8px 24px 20px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
  .site-nav .btn { margin-top: 14px; text-align: center; border-bottom: 0; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-hover); color: #fff; }
.btn-outline { border-color: var(--mint); color: #fff; }
.btn-outline:hover { background: rgba(207, 227, 217, 0.12); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }

/* Hero */
.hero { background: var(--pine-900); color: var(--mint); padding: 96px 0 104px; position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--apricot); font-weight: 400; }
.hero__lead { font-size: 1.2rem; max-width: 40ch; color: var(--mint); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__note { margin-top: 22px; font-size: 0.92rem; color: var(--mint); opacity: 0.85; }

.corridor { border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 28px; background: rgba(23, 63, 53, 0.6); }
.corridor__row { display: flex; align-items: center; gap: 14px; }
.corridor__node { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; }
.corridor__node--from { border: 2px solid var(--mint); color: var(--mint); }
.corridor__node--to { background: var(--apricot); color: var(--pine-900); }
.corridor__label { font-size: 0.95rem; color: #fff; }
.corridor__label small { display: block; color: var(--mint); font-size: 0.82rem; opacity: 0.85; }
.corridor__line { margin: 6px 0 6px 21px; border-left: 2px dashed rgba(242, 162, 122, 0.7); height: 34px; }
.corridor__list { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 0.9rem; color: var(--mint); }
.corridor__list li::before { content: "/"; color: var(--apricot); margin-right: 8px; font-weight: 700; }

@media (max-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
}

/* Sections */
.section { padding: 96px 0; }
.section--alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--pine-800); color: var(--mint); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.section--dark .section-head p { color: var(--mint); }
@media (max-width: 700px) { .section { padding: 68px 0; } .section-head { margin-bottom: 36px; } }

/* Problem list */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--pine-900); }
.problem { padding: 28px 28px 8px 0; }
.problem + .problem { padding-left: 28px; border-left: 1px solid var(--line); }
.problem__num { font-family: var(--font-display); font-size: 2.4rem; color: var(--copper); line-height: 1; display: block; margin-bottom: 14px; }
.problem p { color: var(--ink-soft); }
@media (max-width: 860px) {
  .problems { grid-template-columns: 1fr; }
  .problem, .problem + .problem { padding: 24px 0 4px; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; }
.service__tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper); margin-bottom: 10px; }
.service p { color: var(--ink-soft); }
.service ul { margin: 4px 0 0; padding: 0; list-style: none; }
.service li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.97rem; }
.service li:first-child { border-top: 0; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } .service { padding: 26px; } }

/* Network */
.network { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.network__item { border-top: 2px solid var(--apricot); padding-top: 18px; }
.network__item p { font-size: 0.97rem; margin: 0; }
@media (max-width: 960px) { .network { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .network { grid-template-columns: 1fr; } }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step__when { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--copper); margin-bottom: 8px; }
.step p, .step li { color: var(--ink-soft); font-size: 0.96rem; }
.step ul { margin: 0; padding-left: 18px; }
.step li { margin-bottom: 6px; }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .process { grid-template-columns: 1fr; } }

/* Fit */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit__col { border-radius: var(--radius-lg); padding: 32px; }
.fit__col--yes { background: var(--pine-800); color: var(--mint); }
.fit__col--yes h3 { color: #fff; }
.fit__col--no { background: var(--paper-raised); border: 1px solid var(--line); }
.fit__col ul { margin: 0; padding: 0; list-style: none; }
.fit__col li { padding: 12px 0 12px 30px; position: relative; border-top: 1px solid var(--line); }
.fit__col--yes li { border-top-color: var(--line-dark); }
.fit__col li:first-child { border-top: 0; }
.fit__col--yes li::before { content: "+"; position: absolute; left: 4px; top: 10px; color: var(--apricot); font-weight: 700; font-size: 1.1rem; }
.fit__col--no li::before { content: "\2013"; position: absolute; left: 4px; top: 10px; color: var(--copper); font-weight: 700; font-size: 1.1rem; }
.fit__col--no li { color: var(--ink-soft); }
@media (max-width: 860px) { .fit { grid-template-columns: 1fr; } .fit__col { padding: 26px; } }

/* Comparison */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-raised); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.97rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--pine-900); background: var(--sand); }
.compare thead th.is-us { background: var(--pine-800); color: #fff; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.compare td { color: var(--ink-soft); }
.compare td.is-us { color: var(--ink); font-weight: 500; background: rgba(207, 227, 217, 0.35); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* About */
.about { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: start; }
.about__photo { border-radius: var(--radius-lg); aspect-ratio: 1; object-fit: cover; width: 100%; border: 1px solid var(--line-dark); }
.about__links { margin-top: 18px; font-size: 0.95rem; }
.about__links a { color: var(--apricot); font-weight: 600; }
.about__links a:hover { color: #fff; }
.about p { color: var(--mint); }
.about__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin: 28px 0 0; padding: 0; list-style: none; }
.about__facts li { padding: 14px 0; border-top: 1px solid var(--line-dark); color: var(--mint); font-size: 0.97rem; }
.about__facts strong { display: block; color: #fff; font-weight: 600; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__photo { max-width: 240px; }
  .about__facts { grid-template-columns: 1fr; }
}

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--pine-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font-family: var(--font-body); font-size: 1.5rem; color: var(--copper); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 22px; color: var(--ink-soft); max-width: 70ch; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; }
.contact__direct { margin-top: 28px; padding: 0; list-style: none; }
.contact__direct li { padding: 14px 0; border-top: 1px solid var(--line); }
.contact__direct span { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper); }
.contact__direct a { color: var(--pine-900); font-weight: 600; text-decoration: none; }
.contact__direct a:hover { color: var(--copper); text-decoration: underline; }
.form { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #b9ad99; border-radius: var(--radius);
  padding: 11px 12px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--copper); outline-offset: 0; border-color: var(--copper); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 14px 0 0; font-size: 0.95rem; min-height: 1.5em; }
.form__status.is-ok { color: var(--pine-600); font-weight: 600; }
.form__status.is-err { color: var(--copper); font-weight: 600; }
.form__small { font-size: 0.85rem; color: var(--ink-soft); margin: 12px 0 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 40px; } .form { padding: 24px; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; gap: 0; } }

/* Footer */
.site-footer { background: var(--pine-900); color: var(--mint); padding: 44px 0; font-size: 0.92rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer a { color: var(--mint); }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0; }

/* Chat widget */
.chat-launch {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--copper); color: #fff; border: 0; border-radius: 999px;
  padding: 14px 20px; font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 43, 36, 0.28);
}
.chat-launch:hover { background: var(--copper-hover); }
.chat-launch svg { width: 20px; height: 20px; }
.chat-panel {
  position: fixed; right: 22px; bottom: 88px; z-index: 300;
  width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 120px);
  background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(15, 43, 36, 0.3);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-panel__head { background: var(--pine-900); color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chat-panel__head strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; display: block; }
.chat-panel__head small { color: var(--mint); font-size: 0.82rem; }
.chat-close { background: none; border: 0; color: var(--mint); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.chat-close:hover { color: #fff; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 12px; font-size: 0.95rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg--bot { background: var(--sand); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg--user { background: var(--pine-800); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg--typing { color: var(--ink-soft); font-style: italic; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.chip { background: #fff; border: 1px solid #b9ad99; color: var(--pine-900); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 0.85rem; cursor: pointer; }
.chip:hover { border-color: var(--copper); color: var(--copper); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; font: inherit; font-size: 0.95rem; border: 1px solid #b9ad99; border-radius: var(--radius); padding: 10px 12px; min-width: 0; }
.chat-form button { background: var(--copper); color: #fff; border: 0; border-radius: var(--radius); padding: 0 16px; font: inherit; font-weight: 600; cursor: pointer; }
.chat-form button:disabled { opacity: 0.6; cursor: default; }
.chat-note { font-size: 0.75rem; color: var(--ink-soft); padding: 0 14px 10px; background: #fff; margin: 0; }
@media (max-width: 520px) {
  .chat-launch span { display: none; }
  .chat-launch { padding: 14px; }
  .chat-panel { right: 16px; bottom: 84px; height: calc(100vh - 110px); }
}
