/* Ventie marketing site. Tokens mirror Ventie.Web/src/styles.css so the site and
   the product look like the same thing. No build step, no dependencies. */
:root {
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-light: #ccfbf1;
  --bg: #f5f3f0;
  --card: #ffffff;
  --text: #1e1b2e;
  --text-sec: #6b6880;
  --border: #e8e6e2;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(30, 27, 46, 0.08), 0 1px 2px rgba(30, 27, 46, 0.04);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1080px;
  --on-primary: #ffffff;
  --focus: #1e1b2e;
  --good-bg: #f0fdfa;
  --bad: #9f1239;
  --control-border: #8d8a99;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #5eead4;
    --primary-hover: #99f6e4;
    --primary-light: #134e4a;
    --bg: #17151f;
    --card: #211e2b;
    --text: #eeecf3;
    --text-sec: #b3b0c2;
    --border: #3a3646;
    --shadow: none;
    --on-primary: #0b1f1d;
    --focus: #eeecf3;
    --good-bg: #10302d;
    --bad: #fda4af;
    --control-border: #6f6b7d;
  }
  .eyebrow { color: #99f6e4; }
}

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

/* keyboard focus: thick, offset, visible on teal buttons and light/dark backgrounds */
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 16px; }
.lead { font-size: 1.15rem; color: var(--text-sec); max-width: 62ch; }

/* header */
header { border-bottom: 1px solid var(--border); background: var(--card); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { display: inline-block; padding: 10px 8px; text-decoration: none; color: var(--text-sec); font-size: 0.95rem; }
nav a:hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600;
  text-decoration: none; font-size: 1rem; border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--control-border); }
.btn-secondary:hover { border-color: var(--primary); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* sections */
section { padding: 72px 0; }
.hero { padding: 88px 0 72px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary); background: var(--primary-light);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* grids */
.grid { display: grid; gap: 20px; margin-top: 36px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.alt .card { background: var(--bg); box-shadow: none; }
.card p:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 8px; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px; background: var(--primary);
  color: var(--on-primary); font-weight: 700; font-size: 0.95rem; margin-bottom: 14px;
}

/* hero with example trace */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
/* no outer box: the three steps are the only boxes (never nest boxes in boxes) */
.trace { margin: 0; }
.trace figcaption { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-sec); margin-bottom: 16px; }
.trace ol { list-style: none; margin: 0; padding: 0; }
.trace li { position: relative; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; background: var(--card); box-shadow: var(--shadow); }
.trace li + li { margin-top: 28px; }
.trace li + li::before {
  content: "↓"; position: absolute; top: -26px; left: 18px; color: var(--primary); font-weight: 700; line-height: 24px;
}
.trace .kind { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); }
.trace strong { display: block; }
.trace .meta { display: block; font-size: 0.9rem; color: var(--text-sec); }

/* without / with comparison */
.compare h3 { display: flex; align-items: center; gap: 10px; }
.compare .mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 28px; height: 28px; border-radius: 999px; font-size: 0.95rem; font-weight: 700;
  border: 2px solid currentColor;
}
.compare-bad .mark { color: var(--bad); }
.compare-good .mark { color: var(--primary); }
.alt .card.compare-good { background: var(--good-bg); border: 2px solid var(--primary); }

/* steps are an <ol> */
ol.grid { list-style: none; padding: 0; margin-bottom: 0; }

/* pricing */
.price { font-size: 2rem; font-weight: 700; margin: 4px 0 2px; }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-sec); }
.tier-note { font-size: 0.9rem; color: var(--text-sec); }
.card ul { margin: 16px 0 0; padding-left: 20px; color: var(--text-sec); }
.card li { margin-bottom: 6px; }
.featured { border-color: var(--primary); border-width: 2px; position: relative; }
.badge {
  position: absolute; top: -13px; left: 26px; background: var(--primary); color: var(--on-primary);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid transparent;
}
.tier { display: flex; flex-direction: column; }
.tier ul { flex: 1; }
.tier .btn { margin-top: 24px; text-align: center; }
.pricing-note { margin-top: 24px; color: var(--text-sec); font-size: 0.95rem; }

/* legal pages */
.legal { max-width: 760px; }
.legal h2 { margin-top: 40px; font-size: 1.4rem; }
.legal h3 { margin-top: 28px; }
.legal ul { color: var(--text-sec); }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { color: var(--text); }
.legal td { color: var(--text-sec); }
.updated { color: var(--text-sec); font-size: 0.95rem; }
.todo {
  background: #fef3c7; border: 1px solid #f59e0b; border-radius: 8px;
  padding: 16px; color: #78350f; font-size: 0.95rem;
}

/* footer */
footer { background: var(--card); border-top: 1px solid var(--border); padding: 40px 0; }
.foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.foot a { display: inline-block; padding: 8px 0; color: var(--text-sec); text-decoration: none; margin-right: 18px; font-size: 0.95rem; }
.foot a:hover { color: var(--text); }
.foot small { color: var(--text-sec); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 640px) {
  section { padding: 52px 0; }
  .hero { padding: 60px 0 48px; }
  nav a { padding: 10px 6px; font-size: 0.95rem; }
  /* in-page anchors are one scroll away on a phone; keep the header to one row */
  nav .nav-anchor { display: none; }
  .brand span { display: none; }
}

/* Windows High Contrast / forced colours: keep boundaries that were drawn with background colour */
@media (forced-colors: active) {
  .badge, .card .num, .eyebrow, .compare .mark { border: 1px solid CanvasText; }
  a:focus-visible { outline-color: Highlight; }
}
