/* SDR Room — marketing site styles (static, no build step) */

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-soft: #eef2ff;
  --good: #059669;
  --good-soft: #ecfdf5;
  --bad: #e11d48;
  --dark: #0b1020;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .10);
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .45); outline-offset: 2px; border-radius: 6px; }

/* Layout */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
section { padding: 88px 0; scroll-margin-top: 72px; }
.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Header bar */
.bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(24px, calc((100% - 1160px) / 2 + 24px));
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; color: var(--ink); letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 800; font-size: .95rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, .35);
}
nav.main { display: flex; gap: 4px; margin-left: 16px; }
nav.main a {
  color: var(--ink-2); font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px;
}
nav.main a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.actions { display: flex; gap: 10px; margin-left: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.solid { background: var(--ink); color: #fff; box-shadow: 0 4px 14px rgba(15, 23, 42, .18); }
.btn.solid:hover { background: #1e293b; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--bg-soft); }
.btn.line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.line:hover { border-color: #cbd5e1; }

/* Eyebrow / lead / sub */
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 680px; margin: 0 auto 32px; }
.sub { color: var(--muted); max-width: 660px; margin: 0 auto 40px; }
.center .sub { margin-left: auto; margin-right: auto; }

/* Hero */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 112px 0 96px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(124, 58, 237, .14), transparent 70%),
    radial-gradient(600px 300px at 85% 20%, rgba(79, 70, 229, .10), transparent 70%),
    var(--bg);
}
.hero h1 { max-width: 900px; margin: 0 auto 20px; }
.hero .eyebrow {
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); border: 1px solid rgba(79, 70, 229, .18);
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta .btn { padding: 13px 24px; font-size: 1rem; }
.points {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  margin-top: 40px; font-size: .92rem; color: var(--ink-2);
}
.points span { display: inline-flex; align-items: center; gap: 8px; }
.points span::before {
  content: "✓"; display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--good-soft); color: var(--good); font-size: .7rem; font-weight: 800;
}

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.grid + .grid { margin-top: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.center .grid { text-align: left; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #cbd5e1; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card p + p { margin-top: 10px; }
.card h3 { margin-bottom: 8px; }

/* Before/after comparison cards */
.g2 > .card:not(.good) p,
.g2 > .card.good p { position: relative; padding-left: 28px; }
.g2 > .card:not(.good) h3 ~ p::before,
.g2 > .card.good h3 ~ p::before {
  position: absolute; left: 0; top: 2px;
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  font-size: .65rem; font-weight: 800;
}
.g2 > .card:not(.good) h3 ~ p::before { content: "✕"; background: #fff1f2; color: var(--bad); }
.g2 > .card.good h3 ~ p::before { content: "✓"; background: var(--good-soft); color: var(--good); }
/* Only apply the icon treatment to multi-line comparison cards */
.g2 > .card:not(.good):not(:has(p + p)) p { padding-left: 0; }
.g2 > .card:not(.good):not(:has(p + p)) p::before { content: none; }
.card.good {
  border-color: rgba(5, 150, 105, .35);
  background: linear-gradient(180deg, var(--good-soft), #fff 60%);
}
.card.good h3 { color: var(--good); }

/* Steps */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 40px; text-align: left; counter-reset: step;
}
.steps article {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.steps .num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .02em;
}
.steps .sub { margin: 0; max-width: none; font-size: .95rem; }

/* FAQ accordion */
.stack { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 22px; box-shadow: var(--shadow);
  transition: border-color .2s ease;
}
details[open] { border-color: rgba(79, 70, 229, .35); }
summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 32px 18px 0; font-weight: 600; color: var(--ink);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--muted); transition: transform .2s ease;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--brand); }
details p { margin: 0 0 18px; color: var(--muted); }

/* Final CTA */
.finale {
  margin: 0 0 88px; padding: 64px 32px; text-align: center; color: #cbd5e1;
  border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(600px 260px at 20% 0%, rgba(124, 58, 237, .45), transparent 70%),
    radial-gradient(500px 260px at 90% 100%, rgba(79, 70, 229, .45), transparent 70%),
    var(--dark);
  box-shadow: var(--shadow-lg);
}
.finale h2 { color: #fff; }
.finale p { max-width: 560px; margin: 0 auto 28px; }
.finale .btn.line { background: transparent; }

/* Footer */
footer.site { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .92rem; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.foot p { color: var(--muted); margin: 0 0 8px; }
.foot > div:first-child p { margin-top: 12px; max-width: 340px; }
.foot strong { display: block; margin-bottom: 12px; color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--brand); }
footer.site > p.wrap { color: var(--muted); margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal h1 + p { color: var(--muted); font-size: .92rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 12px; padding-top: 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--brand); }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal > p:last-child { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }

/* Responsive */
@media (max-width: 1024px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero { padding: 80px 0 72px; }
  .g3, .steps { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .bar { flex-wrap: wrap; gap: 10px 16px; padding: 12px 16px; }
  nav.main { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  nav.main a { padding: 6px 10px; font-size: .9rem; }
  .actions .btn { padding: 9px 14px; font-size: .88rem; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .g2, .g3, .g4, .steps { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta .btn { width: 100%; }
  .points { flex-direction: column; align-items: center; gap: 10px; }
  .card, .steps article { padding: 22px; }
  .finale { padding: 48px 22px; margin-bottom: 64px; border-radius: 18px; }
  .foot { grid-template-columns: 1fr; gap: 28px; }
  .legal { padding: 48px 18px 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
