/* Evolve Network Solutions: draft site (task 650). Brand taken from the current evolvesolutionsinc.com:
   logo green #8FC847, teal #036464 (top bar), orange #F37121 (accent), text #262626, Raleway headings, Open Sans body.
   Contrast (checked): teal on white 7.5:1, ink on green 7.6:1, white on teal 7.5:1, black on orange 7.2:1.
   Orange and green are NOT used as text on white (orange 2.9:1, green 2.1:1): they are accents, fills and large icons only. */

:root {
  --teal: #036464;
  --teal-dark: #024747;
  --green: #8FC847;
  --orange: #F37121;
  --ink: #262626;
  --paper: #ffffff;
  --mist: #EEF5F4;
  --line: #cfdedd;
  --radius: 10px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font: 17px/1.65 "Open Sans", Helvetica, Arial, sans-serif;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: Raleway, Helvetica, Arial, sans-serif; color: var(--teal); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

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

/* ---- top bar and header ---- */
.topbar { background: var(--teal); color: #fff; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .left { display: flex; flex-wrap: wrap; gap: 6px 22px; }

.site { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { display: block; height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font: 700 16px Raleway, Helvetica, Arial, sans-serif; color: var(--ink); text-decoration: none; padding: 12px 12px; border-radius: 6px; }
.nav a:hover { background: var(--mist); color: var(--teal); }
.nav a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 2px solid var(--teal); color: var(--teal); border-radius: 8px; padding: 9px 14px; font: 700 15px Raleway, sans-serif; cursor: pointer; min-height: 44px; }

/* ---- buttons ---- */
.btn {
  display: inline-block; min-height: 46px; padding: 11px 24px; border-radius: 8px; border: 2px solid transparent;
  font: 700 17px Raleway, Helvetica, Arial, sans-serif; text-decoration: none; text-align: center; cursor: pointer;
}
.btn-primary { background: var(--green); color: var(--ink); border-color: var(--green); }
.btn-primary:hover { background: #a1d35b; border-color: #a1d35b; color: var(--ink); }
.btn-dark { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-dark:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { background: var(--mist); }
.on-teal .btn-ghost { color: #fff; border-color: #fff; }
.on-teal .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---- sections ---- */
section { padding: 72px 0; }
.mist { background: var(--mist); }
.on-teal { background: var(--teal); color: #fff; }
.on-teal h1, .on-teal h2, .on-teal h3 { color: #fff; }
.on-teal a:not(.btn) { color: #fff; }
.eyebrow { font: 700 14px Raleway, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 12px; }
.on-teal .card { color: var(--ink); }
.on-teal .card h3 { color: var(--teal); }
.on-teal .card a:not(.btn) { color: var(--teal); }
.on-teal .eyebrow { color: var(--green); }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 4px; background: var(--orange); margin-right: 10px; vertical-align: middle; border-radius: 2px; }
.lead { font-size: 20px; max-width: 760px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.center .cta-row { justify-content: center; }

/* hero */
.hero { padding: 80px 0 72px; background: linear-gradient(135deg, var(--mist) 0%, #fff 70%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .tag { font: 700 20px Raleway, sans-serif; color: var(--teal); margin: 0 0 8px; }
.hero .tag span { color: var(--ink); }

.flow { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: 0 10px 30px rgba(3,100,100,.10); }
.flow h2 { font-size: 18px; margin-bottom: 14px; }
.flow ol { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.flow li { position: relative; padding: 0 0 18px 52px; counter-increment: s; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; font: 800 17px/38px Raleway, sans-serif; text-align: center; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 2px; width: 2px; background: var(--green); }
.flow strong { display: block; font-family: Raleway, sans-serif; color: var(--teal); }
.flow small { display: block; color: #4b4b4b; font-size: 14px; margin-top: 10px; }

/* grids and cards */
.grid { display: grid; gap: 22px; margin-top: 34px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.mist .card { border-color: transparent; }
.card h3 { margin-top: 0; }
.card ul { margin: 0; }
.card-accent { border-top: 5px solid var(--green); }
.card-accent.orange { border-top-color: var(--orange); }
.icon { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; background: var(--teal); color: #fff; align-items: center; justify-content: center; margin-bottom: 14px; }
.icon svg { width: 26px; height: 26px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: center; }
.stats strong { display: block; font: 800 30px Raleway, sans-serif; color: var(--green); }
.stats span { font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23262626' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.checks li::after { content: none; }

.price { text-align: center; }
.price .amount { font: 800 44px Raleway, sans-serif; color: var(--teal); margin: 6px 0 0; }
.price .amount small { font-size: 17px; font-weight: 600; color: var(--ink); }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: Raleway, sans-serif; color: var(--teal); }

/* ---- form ---- */
.leadForm { max-width: 560px; }
.leadForm label { display: block; font-weight: 600; margin: 0 0 16px; }
.leadForm input[type="text"], .leadForm input[type="email"], .leadForm input[type="tel"], .leadForm select, .leadForm textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid #5f6b6b; border-radius: 8px; min-height: 46px;
}
.leadForm .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.leadForm .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.leadForm .consent input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.leadForm .warning { display: none; color: #a4001b; font-weight: 600; font-size: 14px; margin: 0 0 14px; }

/* ---- footer ---- */
footer { background: var(--teal); color: #fff; padding: 52px 0 24px; font-size: 15px; }
footer a { color: #fff; }
footer h3 { color: #fff; font-size: 17px; }
footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 34px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
footer .legal { border-top: 1px solid rgba(255,255,255,.25); margin-top: 30px; padding-top: 18px; font-size: 14px; }

/* ---- tablet and phone ---- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 30px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; }
  .nav .btn { margin: 8px 0 0; }
  .site .wrap { position: relative; }
}
@media (max-width: 640px) {
  section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, footer .cols, .leadForm .row { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Feature submenu on the phone system detail pages */
.subnav { background: var(--mist); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; align-items: center; gap: 6px 14px; overflow-x: auto; white-space: nowrap; padding-top: 10px; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
.subnav .back { font-weight: 700; color: var(--teal); text-decoration: none; padding-right: 14px; border-right: 1px solid var(--line); }
.subnav .back:hover { text-decoration: underline; }
.subnav a.item { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 12px; border-radius: 999px; }
.subnav a.item:hover { background: #fff; }
.subnav a.item[aria-current="page"] { background: var(--teal); color: #fff; }

/* Feature tabs on the phone system page */
.ftabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 0; margin-top: 26px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.ftab { flex: 0 0 auto; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 128px; padding: 16px 14px 14px; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; color: var(--ink); font: 600 .9rem/1.2 inherit; cursor: pointer; }
.ftab svg { width: 28px; height: 28px; color: var(--teal); }
.ftab[aria-selected="true"] { color: var(--teal); border-color: var(--teal); box-shadow: inset 0 -3px 0 var(--green); }
.ftab:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.fpanel { background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); padding: 28px; }
.fpanel[hidden] { display: none; }
.fpanel > h3 { text-align: center; margin-top: 0; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; margin-top: 18px; }
.flist { list-style: none; margin: 0; padding: 0; }
.flist li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.flist li:last-child { border-bottom: 0; }
.flist strong { display: block; }
.flist span { color: #555; font-size: .95rem; }
@media (max-width: 760px) { .fgrid { grid-template-columns: 1fr; } .fpanel { padding: 20px 16px; } }

/* AI page mock-ups */
.ai-stage { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
.ai-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 10px 30px rgba(3,100,100,.10); }
.ai-card h3 { margin: 0 0 4px; }
.ai-sub { color: #666; font-size: .9rem; margin: 0 0 14px; }
.ai-tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e3efee; color: var(--teal); }
.ai-tag.warn { background: #fdebc8; color: #8a4b00; }
.ai-alert { background: #fff6e1; border: 1px solid #f0d9a0; border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; font-size: .92rem; }
.ai-alert strong { display: block; color: #6b3a00; }
.ai-act { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.ai-act li { padding: 8px 0; border-top: 1px solid var(--line); }
.ai-act small { display: block; color: #777; }
.ai-todo { list-style: none; margin: 0 0 12px; padding: 0; }
.ai-todo li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 8px; background: var(--mist); border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; }
.ai-todo small { display: block; color: #777; }
.ai-sent { background: var(--mist); border-radius: 8px; padding: 10px 12px; font-size: .9rem; color: #444; }
.ai-sources { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.ai-sources li { background: var(--teal); color: #fff; font-weight: 600; font-size: .88rem; padding: 6px 14px; border-radius: 8px; }
@media (max-width: 860px) { .ai-stage { grid-template-columns: 1fr; } }

/* AI page: information flowing into the customer record */
.ai-flow { display: grid; grid-template-columns: 150px 70px minmax(0, 1.25fr) minmax(0, .85fr); background: var(--teal-dark); border-radius: 18px; padding: 36px 32px; align-items: start; overflow: hidden; }
.ai-in { list-style: none; margin: 0; padding: 0; grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 22px; }
.ai-in li { height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); border-radius: 10px; color: #fff; font-weight: 700; font-size: .78rem; text-align: center; }
.ai-in svg { width: 18px; height: 18px; color: var(--green); }
.ai-wires { grid-column: 2; grid-row: 1; width: 70px; height: 506px; display: block; }
.ai-wires .w { fill: none; stroke: var(--green); stroke-width: 2; stroke-opacity: .9; vector-effect: non-scaling-stroke; stroke-dasharray: 6 6; animation: aiflow 1.2s linear infinite; }
@keyframes aiflow { to { stroke-dashoffset: -12; } }
.ai-record { grid-column: 3; grid-row: 1; position: relative; z-index: 1; }
.ai-advisor { grid-column: 4; grid-row: 1; position: relative; z-index: 2; margin-left: -48px; margin-top: 150px; }
.ai-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ai-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ai-cols h4 { margin: 0 0 6px; }
.ai-contact { background: var(--mist); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.ai-contact p { margin: 0 0 8px; }
.ai-big { font: 800 1.2rem/1.25 Raleway, sans-serif; color: var(--ink); margin: 0 0 12px; }
@media (prefers-reduced-motion: reduce) { .ai-wires .w { animation: none; } }
@media (max-width: 980px) {
  .ai-flow { grid-template-columns: 1fr; padding: 22px 16px; gap: 16px; }
  .ai-in { grid-column: 1; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .ai-in li { height: auto; padding: 8px 10px; flex-direction: row; gap: 6px; }
  .ai-wires { display: none; }
  .ai-record, .ai-advisor { grid-column: 1; grid-row: auto; margin: 0; }
  .ai-cols { grid-template-columns: 1fr; }
}

/* AI page: ask in plain language */
.ai-ask { display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; align-items: center; background: var(--teal-dark); color: #fff; border-radius: 18px; padding: 36px 32px; }
.ai-ask h2 { color: #fff; margin-top: 0; }
.ai-ask p { color: rgba(255,255,255,.82); margin-bottom: 0; }
.ai-quote { margin: 0 0 18px; padding: 16px 18px; border-left: 4px solid var(--green); background: rgba(255,255,255,.08); border-radius: 0 10px 10px 0; font-style: italic; }
.ai-steps { list-style: none; margin: 0; padding: 0; }
.ai-steps li { position: relative; padding: 6px 0 6px 34px; }
.ai-steps li::before { content: "\2713"; position: absolute; left: 0; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: var(--ink); font-size: .8rem; font-weight: 800; line-height: 22px; text-align: center; }
.ai-steps li.wait::before { content: "\2026"; background: rgba(255,255,255,.2); color: #fff; }
@media (max-width: 860px) { .ai-ask { grid-template-columns: 1fr; padding: 24px 18px; } }
