/*
Theme Name: CSI — Clinical Systems International
Theme URI: https://clinicalsystemsinternational.com
Author: Clinical Systems International
Description: Marketing theme for Clinical Systems International. Every heading, paragraph, service, price and contact detail is editable under Appearance → Customize → "CSI Content" — no code required.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: csi
*/

/* ------------------------------------------------------------------ *
 *  Tokens
 * ------------------------------------------------------------------ */
:root {
  --primary: #16B6BA;
  --primary-dark: #0C5E62;
  --primary-light: #5FD3D6;
  --accent: #27D4A0;
  --accent-dark: #1AA97F;
  --background: #F7F9F9;
  --surface: #FFFFFF;
  --ink: #23323A;
  --muted: #4B5860;
  --divider: #DFE7E9;
  --deep: #0E1719;

  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1280px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ------------------------------------------------------------------ *
 *  Base
 * ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.csi-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (min-width: 640px) { .csi-wrap { padding: 0 40px; } }
@media (min-width: 1024px) { .csi-wrap { padding: 0 64px; } }

.csi-section { padding: 96px 0; }
@media (min-width: 640px) { .csi-section { padding: 128px 0; } }

.csi-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary-dark);
  margin: 0;
}
@media (min-width: 640px) { .csi-eyebrow { font-size: 12px; } }
.csi-eyebrow--dark { color: rgba(255,255,255,0.5); }

.csi-h2 {
  font-size: 30px;
  margin-top: 16px;
  text-wrap: balance;
}
@media (min-width: 640px) { .csi-h2 { font-size: 48px; } }
@media (min-width: 1024px) { .csi-h2 { font-size: 58px; } }

.csi-lede {
  margin-top: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 680px;
}
@media (min-width: 640px) { .csi-lede { font-size: 18px; } }

.csi-measure { max-width: 780px; }

/* Buttons ---------------------------------------------------------- */
.csi-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  border: 0;
  cursor: pointer;
  white-space: nowrap;   /* labels stay on one line */
  transition: transform 0.4s var(--ease);
}
.csi-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0));
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
}
.csi-btn:hover { transform: scale(1.03) translateY(-1px); }
.csi-btn:hover::before { transform: translateY(0); }
.csi-btn:active { transform: scale(0.98); }
.csi-btn svg { position: relative; z-index: 1; }
.csi-btn span { position: relative; z-index: 1; }

.csi-btn--primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -8px rgba(22,182,186,0.5); }
.csi-btn--glass {
  background: rgba(14,23,25,0.75);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
}

/* ------------------------------------------------------------------ *
 *  Navbar
 * ------------------------------------------------------------------ */
.csi-nav {
  position: fixed;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 32px);
  max-width: 1120px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  border: 1px solid transparent;
}
@media (min-width: 640px) { .csi-nav { top: 28px; padding: 8px 20px; } }
.csi-nav.is-scrolled {
  background: rgba(247,249,249,0.72);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-color: rgba(22,182,186,0.18);
  box-shadow: 0 10px 30px -12px rgba(35,50,58,0.18);
}
/* WordPress's admin bar overlays the top of the screen when signed in.
   Push the fixed navbar clear of it (32px desktop, 46px on small screens). */
body.admin-bar .csi-nav { top: 54px; }
@media (min-width: 640px) { body.admin-bar .csi-nav { top: 60px; } }
@media (max-width: 782px) { body.admin-bar .csi-nav { top: 68px; } }

.csi-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.csi-logo { display: flex; align-items: center; gap: 12px; }
/* Height comes from Customize → CSI Content → Logo height in pixels. */
.csi-logo__img { display: block; width: auto; height: var(--csi-logo-h, 64px); max-height: none; flex-shrink: 0; }
@media (max-width: 640px) {
  .csi-logo__img { height: min(var(--csi-logo-h, 64px), 48px); }
}
.csi-logo__word { display: flex; flex-direction: column; line-height: 1.15; }
.csi-logo__name { font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.csi-logo__sub {
  font-family: var(--font-mono);
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em;
}

/* The badge already carries the company name, so the text lockup beside it
   is redundant in the navbar once the logo is displayed at size. */
.csi-logo--swap .csi-logo__word { display: none; }

/* Navbar: show the dark-background logo over the hero, swap to the
   light-background one once the glass bar kicks in. */
.csi-logo--swap .csi-logo__img--light { display: none; }
.csi-logo--swap .csi-logo__name { color: #fff; }
.csi-logo--swap .csi-logo__sub { color: rgba(255,255,255,0.45); }
.is-scrolled .csi-logo--swap .csi-logo__img--dark { display: none; }
.is-scrolled .csi-logo--swap .csi-logo__img--light { display: block; }
.is-scrolled .csi-logo--swap .csi-logo__name { color: var(--ink); }
.is-scrolled .csi-logo--swap .csi-logo__sub { color: var(--muted); }

.csi-logo--dark .csi-logo__name { color: #fff; }
.csi-logo--dark .csi-logo__sub { color: rgba(255,255,255,0.45); }
.csi-logo--light .csi-logo__name { color: var(--ink); }
.csi-logo--light .csi-logo__sub { color: var(--muted); }

/* The wordmark is redundant next to the badge on small screens. */
@media (max-width: 420px) {
  .csi-logo__word { display: none; }
}

.csi-nav__links { display: none; align-items: center; gap: 28px; }
@media (min-width: 1024px) { .csi-nav__links { display: flex; } }
.csi-nav__links a {
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.csi-nav__links a:hover { color: #fff; transform: translateY(-1px); }
.is-scrolled .csi-nav__links a { color: var(--muted); }
.is-scrolled .csi-nav__links a:hover { color: var(--ink); }

.csi-nav__cta { display: none; }
@media (min-width: 640px) { .csi-nav__cta { display: inline-flex; padding: 10px 20px; font-size: 14px; } }

.csi-burger {
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  color: #fff; padding: 4px;
}
.is-scrolled .csi-burger { color: var(--ink); }
@media (min-width: 1024px) { .csi-burger { display: none; } }

.csi-mobile {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(14,23,25,0.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: none;
}
.csi-mobile.is-open { display: block; }
.csi-mobile__top { display: flex; align-items: center; justify-content: space-between; padding: 24px; }
.csi-mobile__top .csi-logo__name { color: #fff; }
.csi-mobile__close { background: none; border: 0; color: #fff; cursor: pointer; }
.csi-mobile__links { padding: 32px 24px 0; display: flex; flex-direction: column; }
.csi-mobile__links a {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff; font-size: 24px; font-weight: 600; letter-spacing: -0.02em;
}
.csi-mobile__links .csi-btn { margin-top: 24px; justify-content: center; }

/* ------------------------------------------------------------------ *
 *  Hero
 * ------------------------------------------------------------------ */
.csi-hero { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; background: var(--deep); }
.csi-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4); }
.csi-hero__veil { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(14,23,25,0.85), rgba(14,23,25,0.45) 50%, rgba(14,23,25,0.8)); }
.csi-hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 256px; background: linear-gradient(to top, var(--deep), transparent); }
.csi-hero__rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(22,182,186,0.4), transparent); }

.csi-hero__inner {
  position: relative; z-index: 10;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 128px; padding-bottom: 80px;
}
.csi-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em;
  color: rgba(255,255,255,0.7); margin-bottom: 24px;
}
@media (min-width: 640px) { .csi-hero__eyebrow { font-size: 12px; } }
.csi-hero h1 { color: #fff; font-size: 48px; max-width: 1000px; line-height: 0.95; }
@media (min-width: 640px) { .csi-hero h1 { font-size: 72px; } }
@media (min-width: 1024px) { .csi-hero h1 { font-size: 92px; } }
.csi-hero h1 span { display: block; }
.csi-hero__serif { font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; }
.csi-hero__sub { margin-top: 32px; max-width: 580px; color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.7; }
@media (min-width: 640px) { .csi-hero__sub { font-size: 18px; } }
.csi-hero__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.csi-hero__scroll { margin-top: 64px; display: flex; align-items: center; gap: 12px; }
.csi-hero__scroll i { display: block; width: 40px; height: 1px; background: rgba(255,255,255,0.3); }
.csi-hero__scroll span { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.4); }

.csi-particles { position: absolute; right: 8%; top: 18%; width: 224px; height: 224px; pointer-events: none; display: none; }
@media (min-width: 640px) { .csi-particles { display: block; } }
.csi-particles i {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(22,182,186,0.7);
  animation: csi-float 6s ease-in-out infinite;
}
@keyframes csi-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ------------------------------------------------------------------ *
 *  Feature cards
 * ------------------------------------------------------------------ */
.csi-grid3 { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
@media (min-width: 1024px) { .csi-grid3 { grid-template-columns: repeat(3, 1fr); } }

.csi-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 24px;
  padding: 24px;
}
@media (min-width: 640px) { .csi-card { padding: 32px; } }
.csi-card h3 { font-size: 20px; margin-top: 12px; font-weight: 700; }
@media (min-width: 640px) { .csi-card h3 { font-size: 24px; } }
.csi-card__body { margin-top: 24px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.csi-ticks { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.csi-ticks li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--muted); }
.csi-ticks svg { flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; color: var(--primary); }

/* Demo: record shuffler ------------------------------------------- */
.csi-demo { position: relative; height: 176px; border-radius: 16px; overflow: hidden; margin-top: 24px; }
.csi-shuffle { background: var(--background); padding: 16px; }
.csi-shuffle__card {
  position: absolute; left: 16px; right: 16px; top: 24px;
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: 12px; padding: 16px;
  box-shadow: 0 1px 3px rgba(35,50,58,0.06);
  transition: all 700ms var(--ease);
}
.csi-shuffle__card[data-pos="0"] { transform: translateY(0) scale(1); opacity: 1; filter: none; z-index: 3; }
.csi-shuffle__card[data-pos="1"] { transform: translateY(14px) scale(0.94); opacity: 0.55; filter: blur(1px); z-index: 2; }
.csi-shuffle__card[data-pos="2"] { transform: translateY(28px) scale(0.88); opacity: 0.3; filter: blur(2px); z-index: 1; }
.csi-shuffle__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.csi-shuffle__name { font-size: 14px; font-weight: 600; color: var(--ink); }
.csi-shuffle__meta { margin-top: 4px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.csi-shuffle__tag {
  border-radius: 999px; background: rgba(22,182,186,0.1); color: var(--primary-dark);
  padding: 4px 10px; font-family: var(--font-mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
}
.csi-shuffle__bars { margin-top: 16px; display: flex; gap: 4px; }
.csi-shuffle__bars i { height: 4px; flex: 1; border-radius: 999px; background: var(--divider); }
.csi-shuffle__bars i.on { background: rgba(22,182,186,0.4); }

/* Demo: spine trace (signature) ------------------------------------ */
.csi-spine { background: #0A0D0D; border: 1px solid rgba(255,255,255,0.05); padding: 16px; }
.csi-spine__grid {
  position: absolute; inset: 0; opacity: 0.4;
  background-image:
    linear-gradient(rgba(22,182,186,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,182,186,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}
.csi-spine__svg { position: absolute; top: 8px; bottom: 8px; right: 16px; height: calc(100% - 16px); width: auto; }
.csi-spine__ideal { stroke-dasharray: 240; animation: csi-trace 3.4s ease-in-out infinite alternate; }
@keyframes csi-trace { from { stroke-dashoffset: 240; } to { stroke-dashoffset: 0; } }
.csi-spine__node { animation: csi-fadein 0.6s ease both; }
@keyframes csi-fadein { from { opacity: 0; } to { opacity: 0.9; } }

.csi-marks { position: absolute; left: 16px; top: 24px; }
.csi-marks span { position: absolute; }
.csi-marks .mk {
  position: absolute; display: block; width: 8px; height: 8px;
  border: 1px solid var(--primary); background: rgba(22,182,186,0.3);
  animation: csi-fall linear infinite;
}
.csi-marks .rp {
  position: absolute; display: block; width: 8px; height: 8px;
  border-radius: 50%; border: 1px solid rgba(39,212,160,0.7);
  animation: csi-ripple linear infinite;
}
@keyframes csi-fall {
  0%   { transform: translateY(-14px) scale(0.6); opacity: 0; }
  12%  { opacity: 1; }
  78%  { opacity: 1; }
  100% { transform: translateY(var(--fall, 96px)) scale(1); opacity: 0; }
}
@keyframes csi-ripple {
  0%   { transform: scale(0.4); opacity: 0.85; }
  100% { transform: scale(2.6); opacity: 0; }
}

.csi-status {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05);
  border-radius: 8px; padding: 8px 12px;
}
.csi-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: csi-pulse 2s infinite; }
.csi-status span { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.7); }
@keyframes csi-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22,182,186,0.6); }
  70%  { box-shadow: 0 0 0 14px rgba(22,182,186,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,182,186,0); }
}

/* Demo: scheduler -------------------------------------------------- */
.csi-sched { background: var(--surface); border: 1px solid var(--divider); padding: 16px; }
.csi-sched__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.csi-sched__head p { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.csi-sched__head svg { width: 16px; height: 16px; color: var(--primary); }
.csi-sched__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.csi-sched__day {
  aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 5px; background: var(--background); color: var(--muted);
  font-size: 9px; font-weight: 600;
  transition: all 500ms var(--ease);
}
.csi-sched__day.is-picked { background: var(--primary); color: #fff; transform: scale(1.1); }
.csi-sched__cursor { position: absolute; width: 16px; height: 16px; color: var(--ink); transition: all 900ms ease-out; pointer-events: none; }
.csi-sched__done {
  position: absolute; left: 16px; right: 16px; bottom: 12px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(39,212,160,0.1); border-radius: 8px; padding: 8px 12px;
  transform: translateY(8px); opacity: 0; transition: all 500ms var(--ease);
}
.csi-sched__done.is-on { transform: translateY(0); opacity: 1; }
.csi-sched__done svg { width: 14px; height: 14px; color: var(--accent-dark); }
.csi-sched__done span { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-dark); }

/* ------------------------------------------------------------------ *
 *  Pillars
 * ------------------------------------------------------------------ */
.csi-pillars { position: relative; overflow: hidden; background: var(--surface); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.csi-pillars__blob { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.csi-pillars__blob--a { left: -96px; top: 40px; width: 288px; height: 288px; background: rgba(22,182,186,0.1); }
.csi-pillars__blob--b { right: -80px; bottom: 0; width: 320px; height: 320px; background: rgba(39,212,160,0.1); }
.csi-pillars__grid { position: relative; margin-top: 64px; display: grid; gap: 48px; }
@media (min-width: 1024px) { .csi-pillars__grid { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.csi-pillar { }
@media (min-width: 1024px) {
  .csi-pillar { padding: 0 40px; border-left: 1px solid var(--divider); }
  .csi-pillar:first-child { padding-left: 0; border-left: 0; }
  .csi-pillar:last-child { padding-right: 0; }
}
.csi-pillar__label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }
.csi-pillar__num {
  margin-top: 16px; font-size: 60px; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@media (min-width: 640px) { .csi-pillar__num { font-size: 72px; } }
.csi-pillar__title { margin-top: 4px; font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--muted); }
.csi-pillar__rule { position: relative; margin-top: 20px; height: 1px; width: 100%; overflow: hidden; background: var(--divider); }
.csi-pillar__rule i {
  position: absolute; top: 0; bottom: 0; width: 33%;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  animation: csi-sweep 3.2s ease-in-out infinite;
}
@keyframes csi-sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.csi-pillar__text { margin-top: 20px; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ------------------------------------------------------------------ *
 *  Protocol (sticky stack)
 * ------------------------------------------------------------------ */
.csi-protocol__list { margin-top: 64px; display: flex; flex-direction: column; gap: 32px; }
.csi-step {
  position: sticky; top: 96px;
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 24px 50px -30px rgba(35,50,58,0.25);
}
.csi-step__inner { display: grid; gap: 32px; padding: 28px; }
@media (min-width: 640px) { .csi-step__inner { padding: 40px; } }
@media (min-width: 1024px) { .csi-step__inner { grid-template-columns: 3fr 2fr; gap: 48px; } }
.csi-step__num { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; color: rgba(22,182,186,0.25); line-height: 1; }
.csi-step__top { display: flex; align-items: center; gap: 12px; }
.csi-step h3 { margin-top: 16px; font-size: 24px; font-weight: 700; }
@media (min-width: 640px) { .csi-step h3 { font-size: 30px; } }
.csi-step__text { margin-top: 16px; font-size: 14px; line-height: 1.7; color: var(--muted); }
@media (min-width: 640px) { .csi-step__text { font-size: 16px; } }
.csi-step__img { width: 100%; height: 224px; object-fit: cover; border-radius: 16px; }
@media (min-width: 1024px) { .csi-step__img { height: 100%; } }
.csi-arrows { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.csi-arrows li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--muted); }
.csi-arrows svg { flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; color: var(--primary); }

/* ------------------------------------------------------------------ *
 *  Services (dark grid)
 * ------------------------------------------------------------------ */
.csi-services { background: var(--deep); color: #fff; }
.csi-services .csi-h2 { color: #fff; }
.csi-services__grid {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr;
  gap: 1px; background: rgba(255,255,255,0.05);
  border-radius: 24px; overflow: hidden;
}
@media (min-width: 640px) { .csi-services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .csi-services__grid { grid-template-columns: repeat(3, 1fr); } }
.csi-tile { background: var(--deep); padding: 32px; transition: background 0.4s var(--ease); }
@media (min-width: 640px) { .csi-tile { padding: 40px; } }
.csi-tile:hover { background: rgba(255,255,255,0.03); }
.csi-tile__icon {
  width: 44px; height: 44px; border-radius: 16px;
  background: rgba(22,182,186,0.15);
  display: grid; place-items: center;
  transition: transform 0.5s var(--ease);
}
.csi-tile:hover .csi-tile__icon { transform: scale(1.1); }
.csi-tile__icon svg { width: 24px; height: 24px; color: var(--primary); }
.csi-tile h3 { margin-top: 24px; font-size: 20px; font-weight: 700; }
.csi-tile p { margin-top: 12px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.6); }

/* ------------------------------------------------------------------ *
 *  Pricing
 * ------------------------------------------------------------------ */
.csi-price__grid { margin-top: 56px; display: grid; gap: 24px; }
@media (min-width: 1024px) { .csi-price__grid { grid-template-columns: repeat(2, 1fr); } }
.csi-price {
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: 24px; padding: 32px;
}
@media (min-width: 640px) { .csi-price { padding: 40px; } }
.csi-price--accent { border-color: rgba(22,182,186,0.25); box-shadow: 0 24px 50px -34px rgba(22,182,186,0.5); }
.csi-price__top { display: flex; align-items: center; gap: 12px; }
.csi-price__icon { width: 44px; height: 44px; border-radius: 16px; background: rgba(22,182,186,0.1); display: grid; place-items: center; flex-shrink: 0; }
.csi-price__icon svg { width: 24px; height: 24px; color: var(--primary); }
.csi-price--accent .csi-price__icon { background: rgba(39,212,160,0.1); }
.csi-price--accent .csi-price__icon svg { color: var(--accent-dark); }
.csi-price__amount { margin-top: 28px; font-size: 60px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.csi-price__cur { vertical-align: super; font-size: 24px; font-weight: 700; color: var(--muted); }
.csi-price__unit { margin-top: 8px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.csi-price__note { margin-top: 24px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.csi-price .csi-ticks { margin-top: 24px; gap: 10px; }
.csi-price--accent .csi-ticks svg { color: var(--accent-dark); }
.csi-price__foot { margin-top: 32px; max-width: 780px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.csi-price__foot a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------------ *
 *  Trust
 * ------------------------------------------------------------------ */
.csi-trust { background: var(--surface); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); padding: 80px 0; }
.csi-trust__grid { display: grid; gap: 24px; max-width: 1024px; margin: 0 auto; }
@media (min-width: 1024px) { .csi-trust__grid { grid-template-columns: repeat(3, 1fr); } }
.csi-trust__card {
  background: var(--background); border: 1px solid var(--divider);
  border-radius: 16px; padding: 24px;
  transition: transform 0.3s var(--ease);
}
.csi-trust__card:hover { transform: translateY(-2px); }
.csi-trust__card .csi-price__icon { width: 44px; height: 44px; }
.csi-trust__card h3 { margin-top: 20px; font-size: 16px; font-weight: 700; }
.csi-trust__card p { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ------------------------------------------------------------------ *
 *  Contact
 * ------------------------------------------------------------------ */
.csi-contact__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .csi-contact__grid { grid-template-columns: 5fr 7fr; } }
.csi-contact__cards { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.csi-contact__card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: 16px; padding: 16px;
  transition: transform 0.3s var(--ease);
}
a.csi-contact__card:hover { transform: translateY(-1px); }
.csi-contact__ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(22,182,186,0.1); display: grid; place-items: center; flex-shrink: 0; }
.csi-contact__ico svg { width: 20px; height: 20px; color: var(--primary); }
.csi-contact__card p:first-of-type { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.csi-contact__val { font-size: 14px; font-weight: 500; color: var(--ink); }
.csi-notice { margin-top: 24px; display: flex; align-items: flex-start; gap: 10px; background: rgba(22,182,186,0.05); border-radius: 16px; padding: 16px; }
.csi-notice svg { flex-shrink: 0; margin-top: 2px; width: 16px; height: 16px; color: var(--primary); }
.csi-notice p { font-size: 12px; line-height: 1.7; color: var(--muted); }

.csi-formcard {
  background: var(--surface); border: 1px solid var(--divider);
  border-radius: 24px; padding: 24px;
  box-shadow: 0 24px 50px -34px rgba(35,50,58,0.3);
}
@media (min-width: 640px) { .csi-formcard { padding: 40px; } }
.csi-field { display: block; }
.csi-field > span { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.csi-field input, .csi-field textarea {
  width: 100%; border: 1px solid var(--divider); background: var(--background);
  border-radius: 12px; padding: 12px 16px;
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.csi-field input:focus, .csi-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,182,186,0.2); }
.csi-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .csi-row { grid-template-columns: 1fr 1fr; } }
.csi-formcard .csi-row + .csi-row, .csi-formcard .csi-row + .csi-field { margin-top: 16px; }
.csi-formcard .csi-btn { margin-top: 24px; width: auto; align-self: flex-start; padding: 14px 28px; }
.csi-formcard form { display: flex; flex-direction: column; align-items: flex-start; }
.csi-formcard form > .csi-row,
.csi-formcard form > .csi-field { width: 100%; }
.csi-form__msg { margin-top: 16px; font-size: 14px; border-radius: 12px; padding: 12px 16px; display: none; }
.csi-form__msg.is-ok { display: block; background: rgba(39,212,160,0.1); color: var(--accent-dark); }
.csi-form__msg.is-err { display: block; background: rgba(255,93,85,0.1); color: #b23b34; }

/* ------------------------------------------------------------------ *
 *  Footer
 * ------------------------------------------------------------------ */
.csi-footer { background: var(--deep); color: #fff; padding-top: 80px; }
.csi-footer__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .csi-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.csi-footer .csi-logo__name { color: #fff; }
.csi-footer__tag { margin-top: 20px; max-width: 380px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.55); }
.csi-footer__status {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; padding: 6px 12px;
}
.csi-footer__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: csi-pulse 2s infinite; }
.csi-footer__status span { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.6); }
.csi-footer__head { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.4); }
.csi-footer__list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.csi-footer__list a, .csi-footer__list li { font-size: 14px; color: rgba(255,255,255,0.65); }
.csi-footer__list a:hover { color: #fff; }
.csi-footer__bottom {
  margin-top: 64px; padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 640px) { .csi-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.csi-footer__bottom p { font-size: 12px; color: rgba(255,255,255,0.4); }
.csi-footer__legal { display: flex; gap: 24px; }
.csi-footer__legal a { font-size: 12px; color: rgba(255,255,255,0.5); }
.csi-footer__legal a:hover { color: #fff; }

/* ------------------------------------------------------------------ *
 *  Legal / interior pages
 * ------------------------------------------------------------------ */
.csi-legal { min-height: 100vh; background: var(--background); }
.csi-legal__bar { background: var(--surface); border-bottom: 1px solid var(--divider); }
.csi-legal__bar .csi-wrap { max-width: 768px; display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.csi-legal__bar .csi-logo__name { color: var(--ink); }
.csi-legal__back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.csi-legal__back:hover { color: var(--ink); }
.csi-legal__main { max-width: 768px; margin: 0 auto; padding: 64px 24px; }
@media (min-width: 640px) { .csi-legal__main { padding: 96px 24px; } }
.csi-legal__main h1 { margin-top: 16px; font-size: 36px; }
@media (min-width: 640px) { .csi-legal__main h1 { font-size: 48px; } }
.csi-legal__meta { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.csi-legal__body { margin-top: 32px; }
.csi-legal__body h2 { margin-top: 40px; font-size: 20px; font-weight: 700; }
@media (min-width: 640px) { .csi-legal__body h2 { font-size: 24px; } }
.csi-legal__body h3 { margin-top: 32px; font-size: 18px; font-weight: 700; }
.csi-legal__body p, .csi-legal__body li { margin-top: 16px; font-size: 15px; line-height: 1.8; color: var(--muted); }
@media (min-width: 640px) { .csi-legal__body p, .csi-legal__body li { font-size: 16px; } }
.csi-legal__body ul { margin-top: 16px; padding-left: 4px; }
.csi-legal__body ul li { position: relative; padding-left: 18px; }
.csi-legal__body ul li::before { content: ''; position: absolute; left: 0; top: 12px; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.csi-legal__body a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.csi-legal__body strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ *
 *  Reveal-on-scroll (progressive enhancement).
 *  Elements are visible by default; JS adds .csi-reveal only when it
 *  is running, so nothing is ever hidden with no way to appear.
 * ------------------------------------------------------------------ */
.csi-js .csi-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.csi-js .csi-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .csi-js .csi-reveal { opacity: 1; transform: none; }
  .csi-step { position: static; }
}
