/* Controlio marketing site — tokens mirror the app (Tailwind gray/indigo, rounded-lg/2xl, shadow-sm). */
:root {
  --navy: #0e1f40;
  --brand: #a42bc0;
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-400: #818cf8;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --red-50: #fef2f2;
  --red-700: #b91c1c;
  --green-50: #f0fdf4;
  --green-700: #15803d;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-700);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--indigo-600); }
p { margin: 0 0 1em; }
h1, h2, h3 { color: var(--gray-900); margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.site-header .wrap { display: flex; align-items: center; height: 64px; gap: 24px; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--gray-600); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--gray-100); color: var(--gray-900); }
.nav a[aria-current="page"] { color: var(--indigo-600); background: var(--indigo-50); }
.menu-btn {
  display: none; margin-left: auto; background: none; border: 1px solid var(--gray-200);
  border-radius: 8px; width: 38px; height: 36px; cursor: pointer; color: var(--gray-700);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent;
  background: var(--indigo-600); color: #fff; font: 500 14px/1 inherit; font-family: inherit;
  text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,.08); white-space: nowrap;
}
.btn:hover { background: var(--indigo-700); }
.btn:focus-visible, .nav a:focus-visible, summary:focus-visible, .menu-btn:focus-visible {
  outline: 2px solid var(--indigo-400); outline-offset: 2px;
}
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; border-radius: 10px; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--indigo-50); }
.btn-ghost { background: #fff; color: var(--gray-700); border-color: var(--gray-200); box-shadow: none; }
.btn-ghost:hover { background: var(--gray-50); }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px; text-align: center;
  background:
    radial-gradient(900px 380px at 50% -80px, var(--indigo-100), transparent 70%),
    #fff;
  border-bottom: 1px solid var(--gray-200);
}
.hero h1 { max-width: 820px; margin: 0 auto 20px; }
.hero .lede { max-width: 680px; margin: 0 auto 20px; font-size: 1.15rem; color: var(--gray-600); }
.pill {
  display: inline-block; font-size: 13px; font-weight: 500; color: var(--indigo-700);
  background: var(--indigo-50); border: 1px solid var(--indigo-100);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 28px;
}
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero .shot { max-width: 960px; margin: 0 auto; }

/* ---------- Screenshot placeholders ----------
   To drop in a real screenshot, replace the .shot-body div with:
   <img src="assets/your-shot.png" alt="..."> */
.shot {
  margin: 0; background: #fff; border: 1px solid var(--gray-200); border-radius: 16px;
  box-shadow: 0 10px 30px -12px rgba(14, 31, 64, .18), 0 2px 6px rgba(0,0,0,.04); overflow: hidden; text-align: left;
}
.shot-bar { display: flex; gap: 6px; padding: 11px 14px; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-200); }
.shot-body {
  aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 24px; text-align: center; color: var(--gray-400);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(79,70,229,.035) 14px 28px),
    var(--gray-50);
}
.shot-body svg { width: 34px; height: 34px; stroke: var(--indigo-400); margin-bottom: 4px; }
.shot-body b { font-size: 13px; font-weight: 600; color: var(--gray-500); }
.shot-body small { font-size: 12.5px; color: var(--gray-400); max-width: 300px; }
.shot img { width: 100%; height: auto; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.alt { background: #fff; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head p { color: var(--gray-600); font-size: 1.05rem; margin-top: 16px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--indigo-600); margin-bottom: 12px;
}
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.split.flip .copy { order: 2; }
.split .copy p { color: var(--gray-600); }

/* Before / after */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.compare > div { border-radius: 16px; padding: 24px; border: 1px solid var(--gray-200); background: #fff; }
.compare .before { background: var(--red-50); border-color: #fecaca; }
.compare .after { background: var(--indigo-50); border-color: var(--indigo-100); }
.compare .tag { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.compare .before .tag { color: var(--red-700); }
.compare .after .tag { color: var(--indigo-700); }
.compare p { margin: 0; color: var(--gray-700); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--gray-200); border-radius: 16px; padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.04); counter-increment: s; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--indigo-600); color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 16px;
}
.steps strong { display: block; color: var(--gray-900); margin-bottom: 6px; font-size: 1.05rem; }
.steps span { color: var(--gray-600); font-size: 15px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: 16px; padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--gray-600); font-size: 15px; }
.card b, .faq-a b { color: var(--gray-900); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
details {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
details[open] { border-color: var(--indigo-100); }
summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--gray-900);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; border-radius: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--gray-400); border-bottom: 2px solid var(--gray-400);
  transform: rotate(45deg); transition: transform .2s; margin-bottom: 3px;
}
details[open] summary::after { transform: rotate(-135deg); margin-bottom: -3px; }
.faq-a { padding: 0 22px 20px; color: var(--gray-600); }
.faq-a p { margin: 0 0 .7em; }
.faq-a p:last-child { margin-bottom: 0; }

/* Final CTA */
.cta { background: var(--navy); color: #cbd5e1; text-align: center; padding: 84px 0; }
.cta h2 { color: #fff; margin-bottom: 16px; }
.cta p { max-width: 560px; margin: 0 auto 28px; }

/* ---------- Features page ---------- */
.subnav { position: sticky; top: 64px; z-index: 40; background: #fff; border-bottom: 1px solid var(--gray-200); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; }
.subnav a {
  flex: none; text-decoration: none; font-size: 13.5px; font-weight: 500; color: var(--gray-600);
  padding: 6px 12px; border-radius: 8px;
}
.subnav a:hover { background: var(--gray-100); color: var(--gray-900); }
.page-title { padding: 72px 0 48px; background: #fff; border-bottom: 1px solid var(--gray-200); }
.page-title p { font-size: 1.1rem; color: var(--gray-600); margin: 20px 0 0; max-width: 760px; }
.feature { padding: 88px 0; }
.feature:nth-of-type(even) { background: #fff; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.feature-head { max-width: 760px; margin-bottom: 44px; }
.feature-head h2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tagline { font-size: 1.2rem; font-weight: 600; color: var(--gray-900); margin: 14px 0 0; line-height: 1.4; letter-spacing: -0.01em; }
.feature-head p:not(.tagline) { color: var(--gray-600); margin: 14px 0 0; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.feature-list li { padding-left: 18px; border-left: 2px solid var(--indigo-100); color: var(--gray-600); font-size: 15.5px; }
.feature-list li b { display: block; color: var(--gray-900); font-size: 16px; margin-bottom: 2px; }
.feature-list.two-col { grid-template-columns: 1fr 1fr; column-gap: 40px; margin-bottom: 48px; }
.feature .shot-body { aspect-ratio: 4 / 3; }

/* ---------- Screenshot carousel ---------- */
.shot-carousel { position: relative; }
.shot-track {
  display: flex; align-items: flex-start; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; margin: 0; padding: 0;
}
.shot-track::-webkit-scrollbar { display: none; }
.shot-block { flex: 0 0 98.9%; scroll-snap-align: start; }
@media (min-width: 861px) { .shot-block { flex-basis: 71.3%; } }
.feature .shot { background: none; border: none; border-radius: 0; box-shadow: none; }
.shot-caption { margin: 14px 2px 0; font-size: 14.5px; color: var(--gray-600); line-height: 1.5; }
.shot-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.shot-dots button {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: var(--gray-200);
  cursor: pointer; transition: background .15s, width .15s;
}
.shot-dots button:hover { background: var(--gray-400); }
.shot-dots button[aria-current="true"] { width: 22px; background: var(--indigo-600); }

/* ---------- Screenshot lightbox ---------- */
.shot-clickable { cursor: zoom-in; transition: opacity .15s; }
.shot-clickable:hover { opacity: .9; }
.shot-clickable:focus-visible { outline: 2px solid var(--indigo-400); outline-offset: 4px; border-radius: 4px; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 56px 20px;
}
.lightbox.open { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(14, 19, 35, .78); }
.lightbox-content {
  position: relative; z-index: 1; width: min(1080px, 94vw); max-height: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.lightbox-media {
  flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 12px;
}
.lightbox-media img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; }
.lightbox-media .shot-body { border-radius: 12px; max-width: 100%; }
.lightbox-caption { flex: 0 0 auto; margin: 18px 4px 0; color: #e2e8f0; font-size: 15px; line-height: 1.5; text-align: center; max-width: 640px; }
.lightbox-close {
  position: absolute; top: -18px; right: -18px; width: 36px; height: 36px; border-radius: 50%; border: none;
  background: #fff; color: var(--gray-700); font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.lightbox-close:hover { background: var(--gray-100); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.95); color: var(--gray-700); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.25); z-index: 1;
}
.lightbox-nav svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-nav:hover { background: #fff; }
.lightbox-nav.prev { left: -20px; }
.lightbox-nav.next { right: -20px; }
.lightbox-nav[hidden] { display: none; }
.lightbox-counter { flex: 0 0 auto; margin-top: 10px; font-size: 13px; color: #94a3b8; }
body.lightbox-lock { overflow: hidden; }
@media (max-width: 860px) {
  .lightbox-nav.prev { left: 4px; }
  .lightbox-nav.next { right: 4px; }
}
@media (max-width: 480px) {
  .lightbox-close { top: 8px; right: 8px; }
}
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; vertical-align: middle; line-height: 1.4;
}
.badge-ai { background: var(--indigo-50); color: var(--indigo-700); border: 1px solid var(--indigo-100); }
.badge-soon { background: var(--gray-100); color: var(--gray-600); border: 1px solid var(--gray-200); }

/* ---------- Pricing ---------- */
.price-card {
  max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--indigo-100); border-radius: 20px;
  box-shadow: 0 20px 40px -20px rgba(79,70,229,.35); overflow: hidden;
}
.price-top { padding: 36px 40px 28px; border-bottom: 1px solid var(--gray-200); background: linear-gradient(180deg, var(--indigo-50), #fff); }
.price-top h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.price-top p { color: var(--gray-600); margin: 12px 0 0; }
.price-body { padding: 32px 40px 40px; }
.price-body h3 { margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--gray-700); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
}
.checks li::after {
  content: ""; position: absolute; left: 6px; top: 8px; width: 4px; height: 8px; border-right: 2px solid var(--indigo-600);
  border-bottom: 2px solid var(--indigo-600); transform: rotate(45deg) scale(.85);
}
.checks li.wide { grid-column: 1 / -1; }

/* ---------- Support ---------- */
.contact-card {
  background: var(--indigo-50); border: 1px solid var(--indigo-100); border-radius: 12px; padding: 16px 20px; margin-top: 14px;
}
.contact-card a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--gray-200); padding: 40px 0; font-size: 14px; color: var(--gray-500); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-footer img { height: 26px; width: auto; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--gray-600); text-decoration: none; }
.site-footer a:hover { color: var(--indigo-600); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  section, .feature { padding: 60px 0; }
  .split, .compare, .steps, .cards { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .split.flip .copy { order: 0; }
  .feature-list.two-col { grid-template-columns: 1fr; margin-bottom: 32px; }
  .checks { grid-template-columns: 1fr; }
  .price-top, .price-body { padding-left: 24px; padding-right: 24px; }
  .site-header .wrap { gap: 12px; }
  .menu-btn { display: grid; place-items: center; }
  .site-header .btn { margin-left: 0; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: #fff;
    padding: 10px 20px 16px; border-bottom: 1px solid var(--gray-200); margin: 0;
  }
  .nav.open { display: flex; }
  .subnav { top: 64px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
