/* ==========================================================================
   Speedi IT Corp — site styles
   Pure CSS, no JavaScript. Scroll reveals use CSS scroll-driven animations
   (progressive enhancement: content is fully visible where unsupported).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --brand-950: #06190f;
  --brand-900: #0a2a1a;
  --brand-800: #0b3b24;
  --brand-700: #12512f;
  --brand-600: #166534;
  --accent: #84cc16;
  --accent-600: #65a30d;
  --accent-700: #4d7c0f;
  --accent-soft: #f1f9e4;

  --ink: #0c1a13;
  --ink-2: #344239;
  --muted: #5f6f66;
  --line: #e2e8e3;
  --bg: #ffffff;
  --bg-soft: #f5f8f4;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(10 42 26 / .06), 0 1px 3px rgb(10 42 26 / .08);
  --shadow: 0 10px 30px -12px rgb(10 42 26 / .18), 0 4px 10px -6px rgb(10 42 26 / .08);
  --shadow-lg: 0 30px 60px -20px rgb(10 42 26 / .35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--brand-950); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; color: #fff; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), 780px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 .98rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--brand-950); box-shadow: 0 8px 24px -10px rgb(132 204 22 / .7); }
.btn-primary:hover { background: #a3e635; color: var(--brand-950); transform: translateY(-1px); }
.btn-dark { background: var(--brand-800); color: #fff; }
.btn-dark:hover { background: var(--brand-700); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: rgb(255 255 255 / .28); color: #fff; }
.btn-ghost:hover { background: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .5); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand-600); color: var(--brand-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgb(226 232 227 / .8);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1; }
.brand-name span { color: var(--accent-600); }
.brand:hover { color: var(--ink); }

.nav-desktop { display: none; align-items: center; gap: 4px; }
.nav-desktop a {
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .96rem;
  padding: 8px 14px; border-radius: 999px; transition: background-color .2s, color .2s;
}
.nav-desktop a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-desktop a[aria-current="page"] { color: var(--brand-700); background: var(--accent-soft); }
.nav-desktop .btn { margin-left: 10px; padding: .7rem 1.15rem; color: #fff; }
.nav-desktop .btn:hover { background: var(--brand-700); color: #fff; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* Mobile menu: native HTML popover (no JS) */
.nav-mobile[popover] {
  margin: 0; inset: 0 0 auto auto; width: min(88vw, 360px); height: 100dvh; max-height: none;
  border: 0; padding: 24px; background: #fff; box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; gap: 4px;
}
.nav-mobile[popover]:popover-open { display: flex; animation: slide-in .3s var(--ease); }
.nav-mobile::backdrop { background: rgb(6 25 15 / .45); backdrop-filter: blur(2px); }
.nav-mobile .close {
  align-self: flex-end; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.nav-mobile .close svg { width: 20px; height: 20px; }
.nav-mobile a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.15rem; padding: 14px 12px; border-radius: 12px; }
.nav-mobile a:not(.btn):hover, .nav-mobile a[aria-current="page"] { background: var(--accent-soft); color: var(--brand-700); }
.nav-mobile .btn { margin-top: 16px; color: #fff; padding: 1rem 1.4rem; }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--brand-950); color: #d5e3da;
  padding: clamp(64px, 10vw, 128px) 0 clamp(72px, 10vw, 120px);
}
.hero::before { /* glow */
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; z-index: -1;
  background: radial-gradient(closest-side, rgb(132 204 22 / .28), transparent 70%);
  filter: blur(10px);
}
.hero::after { /* grid */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.hero h1, .hero h2 { color: #fff; }
.hero h1 .hl {
  background: linear-gradient(100deg, #bef264, var(--accent) 60%, #4ade80);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 40ch; color: #b9cbbf; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1.25rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-700);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(132 204 22 / .2); }
.hero .eyebrow { color: #bef264; }

.hero-visual { position: relative; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 14px;
  background: rgb(255 255 255 / .96); color: var(--ink); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 1.6rem; line-height: 1; letter-spacing: -0.03em; }
.float-card small { color: var(--muted); font-size: .82rem; font-weight: 500; }
.float-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-700); display: grid; place-items: center; }
.float-card .ico svg { width: 22px; height: 22px; }
.float-card.one { left: 0; top: 0; z-index: 2; }
@keyframes float { 50% { transform: translateY(-8px); } }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 72px; }
  .float-card.one { left: -24px; }
}

/* Page hero (inner pages) */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); max-width: 18ch; }
.page-hero .hero-lead { max-width: 58ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: .88rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: rgb(255 255 255 / .35); }
.breadcrumb a { color: #b9cbbf; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }

/* Hero load-in */
@media (prefers-reduced-motion: no-preference) {
  .hero .anim { animation: rise .8s var(--ease) both; }
  .hero .anim:nth-child(2) { animation-delay: .08s; }
  .hero .anim:nth-child(3) { animation-delay: .16s; }
  .hero .anim:nth-child(4) { animation-delay: .24s; }
  .hero .anim:nth-child(5) { animation-delay: .32s; }
  .hero-visual.anim { animation: rise 1s .2s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
/* Lazy rendering: browser skips layout/paint of offscreen sections until near viewport */
.section.lazy { content-visibility: auto; contain-intrinsic-size: auto 800px; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--brand-950); color: #b9cbbf; position: relative; overflow: hidden; isolation: isolate; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #bef264; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.125rem; color: var(--muted); }
.section-dark .section-head p { color: #9fb3a6; }

/* ---------- Scroll reveal (CSS scroll-driven animations) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    .reveal-stagger > * {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    .reveal-zoom {
      animation: zoom linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes zoom { from { opacity: .3; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: #fff; padding: clamp(20px, 3vw, 28px) clamp(16px, 3vw, 24px); }
.stat strong { display: block; font-size: clamp(1.5rem, 2.8vw, 2.2rem); color: var(--ink); letter-spacing: -0.04em; line-height: 1.1; font-weight: 800; }
.stat span { color: var(--muted); font-size: .95rem; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats-wrap { margin-top: calc(-1 * clamp(36px, 5vw, 56px)); position: relative; z-index: 2; }
.stats-wrap .stats { box-shadow: var(--shadow); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe3c1; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: 1rem; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; color: var(--brand-600); }
.card .more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.card:hover .more svg { transform: translateX(4px); }
.card .more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */

.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(140deg, var(--accent-soft), #dcfce7); color: var(--brand-600);
  border: 1px solid #d9efc2;
}
.icon-badge svg { width: 26px; height: 26px; }
.section-dark .card { background: rgb(255 255 255 / .04); border-color: rgb(255 255 255 / .1); }
.section-dark .card p { color: #9fb3a6; }
.section-dark .card:hover { border-color: rgb(132 204 22 / .5); box-shadow: none; }
.section-dark .icon-badge { background: rgb(132 204 22 / .12); border-color: rgb(132 204 22 / .25); color: #bef264; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.checklist li::before {
  content: ""; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d7c0f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.section-dark .checklist li { color: #d5e3da; }
.section-dark .checklist li::before { background-color: rgb(132 204 22 / .15); }

/* ---------- Industry chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.chips li {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: .98rem;
  transition: border-color .2s, transform .2s var(--ease);
}
.chips li:hover { border-color: var(--accent); transform: translateY(-2px); }
.chips svg { width: 18px; height: 18px; color: var(--accent-600); }
.section-head.center + .chips { justify-content: center; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 28px 24px 24px; border-radius: var(--radius-lg); border: 1px solid rgb(255 255 255 / .1); background: rgb(255 255 255 / .03); }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 18px;
  font-size: 2.6rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(180deg, #bef264, rgb(132 204 22 / .25)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { font-size: 1.15rem; }
.steps p { color: #9fb3a6; font-size: .98rem; margin: 0; }
.section-dark::before {
  content: ""; position: absolute; z-index: -1; width: 60vw; height: 60vw; left: -20vw; bottom: -30vw;
  background: radial-gradient(closest-side, rgb(132 204 22 / .14), transparent 70%);
}

/* ---------- Product spotlight ---------- */
.spotlight {
  display: grid; gap: 40px; align-items: center; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, #f7fdf0 0%, #ecfdf5 100%); border: 1px solid #d9efc2;
  padding: clamp(32px, 5vw, 64px);
}
@media (min-width: 960px) { .spotlight { grid-template-columns: 1.1fr .9fr; } }
.spotlight .tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); background: #fff; border: 1px solid #d9efc2; padding: 6px 12px; border-radius: 999px; margin-bottom: 1rem; }

/* Phone mock built in CSS */
.phone {
  width: min(280px, 80%); margin-inline: auto; aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 12px;
  background: #0c1a13; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a3a31;
}
.phone-screen { height: 100%; border-radius: 30px; background: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.phone-screen .ps-head { font-size: .75rem; color: var(--muted); font-weight: 600; }
.phone-screen .ps-title { font-size: 1.05rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.score { display: grid; place-items: center; margin: 4px auto; width: 120px; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--accent) 0 82%, #eef2ef 82% 100%); }
.score div { width: 92px; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.score b { font-size: 1.7rem; color: var(--ink); letter-spacing: -0.04em; }
.score small { display: block; font-size: .62rem; color: var(--muted); font-weight: 600; }
.ps-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); font-size: .78rem; }
.ps-row b { color: var(--ink); font-size: .9rem; }
.ps-bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; padding: 0 4px; }
.ps-bars span { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--accent), #bbf7d0); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #cfe3c1; box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; color: var(--ink); font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1a13' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent-soft); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }
.faq details::details-content { transition: height .3s var(--ease), content-visibility .3s allow-discrete; height: 0; overflow: clip; }
.faq details[open]::details-content { height: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--brand-800), var(--brand-950)); color: #b9cbbf;
  padding: clamp(40px, 6vw, 72px); display: grid; gap: 28px; align-items: center;
}
.cta::after { content: ""; position: absolute; z-index: -1; right: -10%; top: -60%; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgb(132 204 22 / .35), transparent); }
.cta h2 { color: #fff; margin-bottom: .35em; }
.cta p { margin: 0; font-size: 1.1rem; }
.cta .hero-actions { justify-content: flex-start; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.4fr auto; } }

/* ---------- Service detail blocks ---------- */
.service-block { display: grid; gap: 28px; padding: clamp(40px, 5vw, 56px) 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.service-block:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 960px) { .service-block { grid-template-columns: 340px 1fr; gap: 64px; } }
.service-block .icon-badge { margin-bottom: 18px; }
.service-block h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.service-block .lead { font-size: 1.125rem; color: var(--ink-2); }
.service-block .checklist { margin-top: .5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .service-block .checklist { grid-template-columns: 1fr 1fr; } }

.toc { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 2rem 0 0; }
.toc a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .2); color: #d5e3da; text-decoration: none; font-size: .92rem; font-weight: 500; }
.toc a:hover { background: rgb(255 255 255 / .08); color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { text-align: left; }
.contact-card a { font-weight: 600; font-size: 1.1rem; word-break: break-word; }
.contact-card p { margin: 0; }

/* ---------- Prose (policies / long text) ---------- */
.prose { color: var(--ink-2); }
.prose h2 { font-size: 1.45rem; margin-top: 2.4em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent-600); }
.prose strong { color: var(--ink); }
.meta-line { color: var(--muted); font-size: .95rem; }
.notice { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0; color: var(--ink-2); }
.notice p:last-child { margin: 0; }
.steps-light { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 16px; margin: 1.5rem 0 2rem; }
.steps-light li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.steps-light li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-800); color: #fff; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-950); color: #9fb3a6; padding: 72px 0 32px; font-size: .96rem; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #b9cbbf; text-decoration: none; }
.site-footer a:hover { color: #bef264; }
.site-footer p { max-width: 36ch; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: #7d9286; }

/* ---------- Illustrated UI mockups (decorative, built in CSS/SVG) ---------- */
.ui {
  background: #fff; color: var(--ink); border-radius: 18px; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); overflow: hidden; font-size: .82rem; line-height: 1.35;
}
.ui-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfcfb; }
.ui-bar i { width: 9px; height: 9px; border-radius: 50%; background: #dfe5e0; }
.ui-bar span { margin-left: 8px; font-weight: 600; color: var(--muted); font-size: .76rem; }
.ui-body { padding: 18px; }
.ui small { color: var(--muted); font-size: .7rem; font-weight: 500; display: block; }
.ui b { font-weight: 700; letter-spacing: -0.02em; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 600; background: var(--bg-soft); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: #e8f7dc; color: var(--accent-700); }
.pill.warn { background: #fff4dc; color: #8a5a00; }
.pill.alert { background: #fde8e8; color: #a12a2a; }
.pill.dark { background: var(--brand-800); color: #fff; }

/* Hero: analytics dashboard + AI assistant */
.mock { position: relative; padding: 0 0 84px; }
.mock .ui-win { margin-left: 6%; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpis > div { background: var(--bg-soft); border-radius: 12px; padding: 10px 12px; }
.kpis b { display: block; font-size: 1.15rem; margin: 2px 0; }
.kpis em { font-style: normal; font-size: .68rem; font-weight: 600; color: var(--accent-700); }
.ui-chart { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 14px; margin-top: 8px; color: var(--muted); font-size: .7rem; }
.legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--accent); }
.legend i.dash { background: repeating-linear-gradient(90deg, #9fb3a6 0 3px, transparent 3px 5px); }
.ui-chat { position: absolute; right: -2%; bottom: 0; width: 64%; z-index: 2; animation: float 7s ease-in-out infinite; animation-delay: -2s; }
.ui-chat .ui-body { display: grid; gap: 10px; }
.chat-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .8rem; }
.chat-head .dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-800); color: #bef264; }
.chat-head .dot svg { width: 15px; height: 15px; }
.chat-q { justify-self: end; background: var(--brand-800); color: #fff; padding: 8px 12px; border-radius: 12px 12px 4px 12px; max-width: 88%; font-size: .76rem; }
.chat-a { background: var(--bg-soft); padding: 10px 12px; border-radius: 12px 12px 12px 4px; display: grid; gap: 6px; }
.chat-a span { height: 7px; border-radius: 4px; background: #d6ded8; }
.chat-a span:first-child { background: linear-gradient(90deg, var(--accent), #bbf7d0); }
@media (max-width: 520px) { .ui-chat { width: 82%; right: 0; } .mock .ui-win { margin-left: 0; } .kpis b { font-size: 1rem; } }

/* Roadmap */
.roadmap .ui-body { padding: 20px; }
.rm-row { display: grid; grid-template-columns: 96px repeat(4, 1fr); gap: 6px; align-items: center; min-height: 40px; }
.rm-row + .rm-row { border-top: 1px dashed var(--line); }
.rm-row > .lbl { grid-column: 1; font-weight: 600; color: var(--ink-2); font-size: .74rem; }
.rm-head { color: var(--muted); font-weight: 600; font-size: .7rem; min-height: 28px; }
.rm-bar { grid-row: 1; padding: 6px 10px; border-radius: 8px; font-size: .7rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-bar.b1 { background: var(--brand-800); color: #fff; }
.rm-bar.b2 { background: #dcfce7; color: var(--brand-700); }
.rm-bar.b3 { background: #ecfccb; color: var(--accent-700); }
.rm-bar.b4 { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }
.rm-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 520px) { .rm-row { grid-template-columns: 70px repeat(4, 1fr); } .rm-bar { font-size: .62rem; padding: 5px 6px; } }

/* Client stages */
.stage { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 16px 0; }
.stage + .stage { border-top: 1px solid var(--line); }
.stage .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand-600); }
.stage .ico svg { width: 22px; height: 22px; }
.stage b { font-size: .95rem; }
.stage .track { height: 8px; border-radius: 4px; background: var(--bg-soft); margin-top: 8px; overflow: hidden; }
.stage .track span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand-600), var(--accent)); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 4px 0 4px 8px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--accent), var(--brand-700)); }
.timeline li { position: relative; padding: 0 0 22px 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.timeline li:last-child::before { background: var(--accent); }
.timeline b { display: block; color: var(--ink); font-size: .98rem; margin-bottom: 2px; }
.timeline p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Work cards */
.work-card { padding: 0; overflow: hidden; }
.work-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.work-card .tag-sm { align-self: flex-start; margin-bottom: 12px; }
.thumb {
  position: relative; aspect-ratio: 21 / 9; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--brand-800), var(--brand-950));
}
.thumb::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgb(255 255 255 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .07) 1px, transparent 1px);
  background-size: 28px 28px; }
.thumb::after { content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; right: -20%; top: -40%; background: radial-gradient(closest-side, rgb(132 204 22 / .45), transparent); }
.thumb.t2 { background: linear-gradient(135deg, #12422c, #0a2a1a 60%, #1d3b12); }
.thumb.t3 { background: linear-gradient(135deg, #0b3b24, #143d33 60%, #06190f); }
.thumb .big { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; color: #bef264;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); backdrop-filter: blur(6px); }
.thumb .big svg { width: 34px; height: 34px; }
.thumb .pill { position: absolute; background: rgb(255 255 255 / .94); box-shadow: var(--shadow); }
.thumb .p1 { left: 8%; top: 16%; } .thumb .p2 { right: 8%; bottom: 16%; }
.tag-sm { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; }

/* Case studies */
.case { scroll-margin-top: 96px; }
.case h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.case-cols { display: grid; gap: 28px; margin-top: 1.5rem; }
@media (min-width: 640px) { .case-cols { grid-template-columns: 1fr 1fr; } }
.case-cols h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-600); }
.case-cols .checklist { margin: .5rem 0 0; }
.confidential { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.confidential svg { width: 16px; height: 16px; }

/* Connected-care mock: physician panel + phone */
.duo { position: relative; padding-bottom: 40px; }
.duo .ui-win { margin-right: 22%; }
.duo .phone { position: absolute; right: 0; bottom: 0; width: min(200px, 40%); padding: 8px; border-radius: 30px; }
.duo .phone-screen { border-radius: 23px; padding: 14px 10px; gap: 8px; }
.duo .score { width: 82px; }
.duo .score div { width: 62px; }
.duo .score b { font-size: 1.2rem; }
.pt-row { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; padding: 9px 0; }
.pt-row .pill { margin-left: 6px; padding: 2px 8px; font-size: .64rem; }
.pt-row + .pt-row { border-top: 1px solid var(--line); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .7rem; background: var(--accent-soft); color: var(--brand-700); }

/* Araize research mock */
.rs-steps { display: grid; gap: 8px; margin-bottom: 14px; }
.rs-step { display: flex; align-items: center; gap: 10px; font-size: .76rem; color: var(--ink-2); }
.rs-step span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; background: var(--accent-soft); color: var(--accent-700); flex: none; }
.rs-step.now span { background: var(--brand-800); color: #bef264; }
.report { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fbfcfb; }
.report .lines { display: grid; gap: 7px; margin: 12px 0; }
.report .lines span { height: 7px; border-radius: 4px; background: #dfe5e0; }
.cites { display: flex; flex-wrap: wrap; gap: 6px; }

/* Featured case-study card spans the full row */
@media (min-width: 640px) {
  .work-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
  .work-card.featured .thumb { aspect-ratio: auto; min-height: 260px; height: 100%; }
  .work-card.featured .body { justify-content: center; padding: 36px 40px; }
  .work-card.featured h3 { font-size: 1.6rem; }
}

/* Real estate mock */
.search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); margin-bottom: 12px; }
.search svg { width: 16px; height: 16px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.listings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.listing { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.listing .img { aspect-ratio: 4 / 3; display: grid; place-items: end center; background: linear-gradient(180deg, #e6f4ea, #cfe8d6); }
.listing .img svg { width: 80%; height: auto; }
.listing.alt .img { background: linear-gradient(180deg, #eef6e1, #d7ebc0); }
.listing .info { padding: 10px 12px; display: grid; gap: 6px; }
.listing .cta-sm { display: block; text-align: center; padding: 6px; border-radius: 8px; background: var(--brand-800); color: #fff; font-size: .7rem; font-weight: 600; }

/* Sports campaign mock */
.funnel { display: grid; gap: 10px; margin: 6px 0 16px; }
.funnel div { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 10px; font-size: .74rem; color: var(--ink-2); font-weight: 600; }
.funnel span { height: 22px; border-radius: 6px; background: linear-gradient(90deg, var(--brand-600), var(--accent)); }
.sessions { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 8px; }
.sessions i { aspect-ratio: 1; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line); }
.sessions i.on { background: var(--accent-soft); border-color: #cfe3c1; }
.sessions i.now { background: var(--brand-800); border-color: var(--brand-800); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .cta, .hero::before, .hero::after { display: none; }
  .hero, .section-dark { background: #fff; color: #000; }
  .hero h1, .hero h2 { color: #000; }
}
