/* =============================================================================
   ClauseArmory marketing site — hand-rolled CSS.
   No build step. Drop a screenshot, edit a section, commit, deploy.
   Color system pulled from the web-app's Tailwind palette for consistency.
   ========================================================================== */

:root {
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --emerald-50: #ecfdf5;
  --emerald-500: #10b981;
  --emerald-700: #047857;

  --radius-sm: 6px;
  --radius:    8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow:    0 4px 12px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, .12);

  --container: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate-900);
  background: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--slate-100); padding: 2px 6px; border-radius: 4px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.5vw, 40px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.3; }
h4 { font-size: 16px; line-height: 1.4; }

p  { margin: 0; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 12px;
}
.eyebrow.centered { text-align: center; }

.section-lead {
  font-size: 17px;
  color: var(--slate-600);
  max-width: 720px;
  margin: 16px auto 48px;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all .15s ease;
  cursor: pointer;
}
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-primary {
  background: var(--slate-900);
  color: white;
}
.btn-primary:hover { background: var(--slate-700); }
.btn-secondary {
  background: white;
  color: var(--slate-900);
  border-color: var(--slate-300);
}
.btn-secondary:hover { background: var(--slate-50); }
.btn-ghost {
  background: transparent;
  color: var(--slate-700);
}
.btn-ghost:hover { color: var(--slate-900); }

/* ─────────────────────────────────────────── Nav ──────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--slate-900);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--slate-600);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--slate-900); }

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ─────────────────────────────────────────── Hero ─────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #f8fafc 0%, white 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { color: var(--slate-900); }
.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--slate-600);
  margin-top: 24px;
  max-width: 580px;
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-trust {
  margin-top: 28px;
  font-size: 13px;
  color: var(--slate-500);
}

.hero-art {
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-svg {
  width: 100%;
  max-width: 480px;
  filter: drop-shadow(0 30px 60px rgba(15, 23, 42, .1));
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero { padding: 56px 0 72px; }
}

/* ─────────────────────────────────────────── Wedges ───────────────────────── */
.wedges {
  padding: 96px 0;
}
.wedges h2 {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.wedges em { font-style: italic; color: var(--slate-800); }
.wedge-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.wedge-card {
  padding: 36px 32px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  background: white;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wedge-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.wedge-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-900);
  color: white;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.wedge-card h3 { margin-bottom: 12px; }
.wedge-card p { color: var(--slate-600); font-size: 15px; }
.wedge-card code { font-size: 13px; }

@media (max-width: 900px) {
  .wedge-grid { grid-template-columns: 1fr; gap: 20px; }
  .wedges { padding: 64px 0; }
}

/* ─────────────────────────────────────────── How it works ─────────────────── */
.how {
  padding: 96px 0;
  background: var(--slate-50);
}
.how h2 {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.how-steps {
  list-style: none;
  padding: 0;
  margin: 64px auto 0;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  background: white;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--slate-900);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.step-content h3 { margin-bottom: 8px; }
.step-content p { color: var(--slate-600); font-size: 15px; }

@media (max-width: 700px) {
  .step { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .step-number { width: 40px; height: 40px; }
  .how { padding: 64px 0; }
}

/* ─────────────────────────────────────────── Screenshot band ──────────────── */
.screenshot-band {
  padding: 64px 0 96px;
  background: white;
}
.screenshot-frame {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}
.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.screenshot-placeholder {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(45deg, var(--slate-100) 0 10px, white 10px 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
  text-align: center;
}
.screenshot-placeholder p { font-weight: 600; font-size: 17px; }
.screenshot-placeholder .placeholder-sub {
  margin-top: 8px;
  font-weight: 400;
  font-size: 13px;
  color: var(--slate-400);
}

/* ─────────────────────────────────────────── Features ─────────────────────── */
.features {
  padding: 96px 0;
}
.features h2 {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.feature-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-icon {
  width: 28px;
  height: 28px;
  color: var(--blue-600);
}
.feature h4 { color: var(--slate-900); }
.feature p { color: var(--slate-600); font-size: 14.5px; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .features { padding: 64px 0; }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────── Security ─────────────────────── */
.security {
  padding: 96px 0;
  background: var(--slate-900);
  color: white;
}
.security .eyebrow { color: var(--slate-400); }
.security h2 { color: white; }
.security-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.security-copy p {
  color: var(--slate-300);
  margin-top: 20px;
  font-size: 16px;
}
.security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.security-list li {
  padding: 16px 18px;
  border: 1px solid var(--slate-700);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .02);
}
.security-list strong {
  display: block;
  font-size: 14px;
  color: white;
  margin-bottom: 4px;
}
.security-list span {
  font-size: 13px;
  color: var(--slate-400);
}

@media (max-width: 900px) {
  .security-grid { grid-template-columns: 1fr; gap: 40px; }
  .security { padding: 64px 0; }
  .security-list { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────── Pricing ──────────────────────── */
.pricing {
  padding: 96px 0;
  background: var(--slate-50);
}
.pricing h2 {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.pricing-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  position: relative;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.price-card-featured {
  border-color: var(--slate-900);
  box-shadow: var(--shadow);
}
.featured-tag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--slate-900);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-card h3 { font-size: 18px; color: var(--slate-700); }
.price-tag {
  font-size: 34px;
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 12px;
}
.price-tag span {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-500);
  margin-left: 4px;
}
.price-fit {
  font-size: 13px;
  color: var(--slate-500);
  margin-top: 8px;
}
.price-features {
  list-style: none;
  padding: 24px 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--slate-100);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--slate-700);
}
.price-features li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-600);
}
.price-card .btn { width: 100%; margin-top: 16px; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing { padding: 64px 0; }
}

/* ─────────────────────────────────────────── FAQ ──────────────────────────── */
.faq {
  padding: 96px 0;
}
.faq h2 {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--slate-200);
  padding: 24px 0;
}
.faq summary {
  font-size: 17px;
  font-weight: 600;
  color: var(--slate-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-weight: 400;
  font-size: 24px;
  color: var(--slate-400);
  transition: transform .15s ease;
}
.faq details[open] summary::after {
  content: '−';
  color: var(--slate-700);
}
.faq details p {
  margin-top: 14px;
  color: var(--slate-600);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .faq { padding: 64px 0; }
}

/* ─────────────────────────────────────────── CTA ──────────────────────────── */
.cta {
  padding: 96px 0;
  background: linear-gradient(180deg, white 0%, var(--slate-50) 100%);
  text-align: center;
}
.cta h2 {
  max-width: 720px;
  margin: 0 auto;
}
.cta > .container > p {
  font-size: 17px;
  color: var(--slate-600);
  max-width: 600px;
  margin: 20px auto 36px;
}
.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}
.cta-form input {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  background: white;
}
.cta-form input:focus {
  outline: none;
  border-color: var(--slate-900);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, .08);
}
.cta-form .btn {
  grid-column: span 2;
  margin-top: 4px;
}
.cta-trust {
  margin-top: 20px;
  font-size: 13px;
  color: var(--slate-500);
}

@media (max-width: 600px) {
  .cta { padding: 64px 0; }
  .cta-form { grid-template-columns: 1fr; }
  .cta-form .btn { grid-column: span 1; }
}

/* ─────────────────────────────────────────── Footer ───────────────────────── */
.footer {
  background: var(--slate-900);
  color: var(--slate-300);
  padding: 72px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
}
.footer-brand {
  max-width: 320px;
}
.brand-mark {
  display: block;
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 14px; color: var(--slate-400); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-cols h5 {
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-cols a {
  color: var(--slate-400);
  font-size: 14px;
}
.footer-cols a:hover { color: white; }

.footer-base {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--slate-800);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--slate-500);
}
.footer-disclaimer { color: var(--slate-600); }

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}
