/* Evidynx — quiet premium B2B trust */
:root {
  --ink: #0f1419;
  --ink-soft: #1a2332;
  --slate: #3d4a5c;
  --slate-muted: #5a6a7e;
  --line: #d8dee6;
  --line-soft: #e8edf2;
  --paper: #f7f8fa;
  --white: #ffffff;
  --teal: #2a6b6b;
  --teal-deep: #1e5252;
  --teal-soft: #e6f0f0;
  --indigo: #3d4f7c;
  --indigo-soft: #eef0f6;
  --warn: #8b6914;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(15, 20, 25, 0.06), 0 4px 16px rgba(15, 20, 25, 0.04);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;
  --max: 1080px;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.4rem; }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo span { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-cta {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  background: var(--ink);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none !important;
}

.nav-cta:hover { background: var(--ink-soft); color: var(--white) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--slate);
  font-family: var(--font-body);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--ink);
  color: var(--white) !important;
}

.btn-primary:hover { background: var(--ink-soft); color: var(--white) !important; }

.btn-secondary {
  background: var(--white);
  color: var(--ink) !important;
  border-color: var(--line);
}

.btn-secondary:hover { border-color: var(--slate-muted); background: var(--paper); }

.btn-teal {
  background: var(--teal);
  color: var(--white) !important;
}

.btn-teal:hover { background: var(--teal-deep); color: var(--white) !important; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* —— Typography —— */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.15rem, 4.5vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

.lede {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 38rem;
  margin-top: 1rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

/* —— Hero —— */
.hero {
  padding: 4.5rem 0 4rem;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-soft);
}

.hero-card ul {
  list-style: none;
  padding: 0;
}

.hero-card li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--slate);
  margin-top: 0.65rem;
}

.hero-card li::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--teal);
}

.trust-note {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--indigo-soft);
  border-left: 3px solid var(--indigo);
  font-size: 0.9rem;
  color: var(--slate);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* —— Sections —— */
.section { padding: 4rem 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-narrow { max-width: 720px; }

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head p { color: var(--slate); margin-top: 0.5rem; }

/* —— Cards / grids —— */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem 1.4rem;
}

.card h3 { font-size: 1.2rem; }
.card p { color: var(--slate); font-size: 0.95rem; margin-top: 0.4rem; }

.card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-soft);
  color: var(--teal-deep);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

/* —— Steps —— */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.steps li:last-child { border-bottom: none; }
.steps .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--slate); font-size: 0.98rem; }

/* —— Pricing / founding —— */
.price-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 480px;
}

.price-block .amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.price-block .amount small {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--slate-muted);
}

.price-meta {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--slate);
}

.price-meta strong { color: var(--ink); }

.slot-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.25rem;
}

.price-list li {
  font-size: 0.95rem;
  color: var(--slate);
  padding: 0.4rem 0;
  padding-left: 1.4rem;
  position: relative;
}

.price-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--teal);
}

.planned-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--slate-muted);
  font-style: italic;
}

/* —— Tables / comparison —— */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare th, .compare td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.compare th {
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
}

.compare td { color: var(--slate); }
.compare .yes { color: var(--teal-deep); font-weight: 600; }
.compare .no { color: var(--slate-muted); }

/* —— Callout / disclaimer —— */
.callout {
  padding: 1.25rem 1.4rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  margin: 1.5rem 0;
}

.callout strong { color: var(--ink); }
.callout p { color: var(--slate); font-size: 0.95rem; }
.callout p + p { margin-top: 0.6rem; }

.callout-warn {
  background: #faf6eb;
  border-color: #e8d9a8;
}

.callout-teal {
  background: var(--teal-soft);
  border-color: #b8d4d4;
}

/* —— Forms —— */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 560px;
}

.form-group { margin-bottom: 1.15rem; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 107, 107, 0.12);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-hint {
  font-size: 0.82rem;
  color: var(--slate-muted);
  margin-top: 0.3rem;
}

.form-trust {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--slate-muted);
  line-height: 1.5;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* —— Page hero (inner) —— */
.page-hero {
  padding: 3rem 0 2.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.page-hero .lede { margin-top: 0.75rem; }

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: #a8b4c4;
  padding: 3rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-brand span { color: #7eb8b8; }

.site-footer p { font-size: 0.9rem; line-height: 1.6; max-width: 22rem; }

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a8a9c;
  margin-bottom: 0.85rem;
}

.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: 0.45rem; }

.site-footer a {
  color: #c5d0dc;
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid #2a3544;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: #6a7a8c;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* —— Misc —— */
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.75rem; }
.prose p { color: var(--slate); margin-top: 0.75rem; }
.prose ul { margin-top: 0.75rem; color: var(--slate); }
.divider { height: 1px; background: var(--line-soft); margin: 2rem 0; }

.inline-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--ink);
  border-radius: 10px;
  color: #c5d0dc;
}

.inline-cta h2 { color: var(--white); margin-bottom: 0.5rem; }
.inline-cta p { color: #a8b4c4; margin-bottom: 1.25rem; max-width: 32rem; }

/* —— Responsive —— */
@media (max-width: 860px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
  }

  .nav-links.open { display: flex; }

  .nav-links li { border-bottom: 1px solid var(--line-soft); }
  .nav-links a {
    display: block;
    padding: 0.85rem 0;
  }

  .nav-links .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    display: block;
  }

  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 1.75rem, var(--max)); }
  .cta-row .btn { width: 100%; }
}
