/* Sutura marketing site. Brand colors match the app (frontend/tailwind.config.js). */
:root {
  --blue: #1e40af;
  --blue-dark: #172f80;
  --purple: #8b5cf6;
  --amber: #f59e0b;
  --green: #10b981;
  --ink: #111827;
  --body: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --radius: 14px;
  --shadow: 0 20px 45px -20px rgba(17, 24, 39, 0.35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -999px; top: 0.5rem; padding: 0.5rem 1rem;
  background: var(--ink); color: #fff; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 0.5rem; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.4rem; border-radius: 10px; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { color: var(--blue); border-color: rgba(30, 64, 175, 0.3); background: #fff; }
.btn-light { background: #fff; color: var(--blue); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.6); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.brand.small { font-size: 1rem; }
.brand-mark { width: 28px; height: 28px; display: block; }
.brand.small .brand-mark { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--body); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--blue); }

/* Hero */
.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(40rem 25rem at -10% 110%, rgba(245, 158, 11, 0.14), transparent 60%),
    linear-gradient(180deg, #f8f9ff, #fff);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--purple); margin-bottom: 0.8rem; }
.eyebrow.light { color: #c4b5fd; }
.lead { font-size: 1.2rem; color: var(--body); max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 1rem; }
.cta-row.center { justify-content: center; }
.hero-note { color: var(--muted); font-size: 0.9rem; }

/* Product illustration */
.mock-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem;
  box-shadow: var(--shadow); max-width: 440px; margin-inline: auto;
}
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.mock-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.mock-role { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin: 0.8rem 0 0.1rem; }
.mock-sub { color: var(--muted); font-size: 0.9rem; }
.timeline { list-style: none; margin: 1.2rem 0; padding: 0; }
.timeline li { display: flex; gap: 0.8rem; padding: 0.5rem 0; position: relative; }
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; left: 7px; top: 1.6rem; bottom: -0.4rem; width: 2px; background: var(--line);
}
.timeline .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: #fff; margin-top: 0.25rem; flex: none; }
.timeline .done .dot { background: var(--green); border-color: var(--green); }
.timeline .active .dot { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.15); }
.timeline strong { display: block; color: var(--ink); font-size: 0.95rem; }
.timeline small { color: var(--muted); }
.mock-foot { display: flex; flex-wrap: wrap; gap: 0.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.pill { font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px; }
.pill-amber { background: #fef3c7; color: #92400e; }
.pill-green { background: #d1fae5; color: #065f46; }
.pill-blue { background: #dbeafe; color: #1e3a8a; }

/* Integrations */
.integrations { border-block: 1px solid var(--line); padding: 1.6rem 0; text-align: center; }
.integrations p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.8rem; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2rem; list-style: none; margin: 0; padding: 0; }
.logo-row li { font-weight: 700; color: #4b5563; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-lead { font-size: 1.1rem; }

/* 60-second overview video */
.overview { max-width: 960px; margin-top: 2.5rem; text-align: center; scroll-margin-top: 5rem; }
.overview-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--ink); }
.overview-text { max-width: 44rem; margin: 1.25rem auto 0; text-align: left; color: var(--muted); }
.overview-text summary { cursor: pointer; text-align: center; color: var(--blue); font-weight: 600; }
.overview-text p { margin-top: 0.75rem; }
.section-lead.light { color: #e0e7ff; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.feature p { margin: 0; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(139, 92, 246, 0.16));
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.steps li { border-top: 3px solid var(--purple); padding-top: 1.2rem; }
.steps p { margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 0.7rem;
}

.section.dark { background: linear-gradient(135deg, #172554, #1e40af 55%, #4c1d95); color: #e0e7ff; }
.section.dark h2 { color: #fff; }
.security-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.check-list li { padding-left: 2rem; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172554' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.check-list strong { color: #fff; }

.demo-card {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
  border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.6rem, 4vw, 3rem);
  background: linear-gradient(135deg, #f8f9ff, #f5f3ff);
}
.demo-actions { display: flex; flex-direction: column; gap: 0.8rem; }

details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 0.8rem; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details p { margin: 0.8rem 0 0; }

.final-cta {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background: linear-gradient(135deg, var(--blue), var(--purple) 60%, var(--amber));
}
.final-cta h2 { color: #fff; }

.site-footer { padding: 1.8rem 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-row p { margin: 0; color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .security-grid, .demo-card { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .site-header .btn { width: auto; }
}
