/* Shared styles for the marketing site (every page built by apps/web/build.mjs).
   The public form runner (form.html) and the web app (/app) have their own. */
:root {
  color-scheme: light;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-tint: #ecfdf5;
  --brand-border: #99f6e4;
  --text: #16211c;
  --text-2: #475569;
  --text-3: #94a3b8;
  --line: #e2e8f0;
  --surface: #f8fafc;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}
a { color: var(--brand); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }

/* ---- Header ---- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header-inner {
  max-width: 68rem; margin: 0 auto; padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.site-logo img { display: block; width: 150px; height: auto; }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; flex: 1; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); }
.site-actions { display: flex; gap: 1rem; align-items: center; }
.link-quiet { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
@media (max-width: 52rem) {
  .site-header-inner { gap: 0.75rem 1rem; }
  .site-nav { order: 3; flex-basis: 100%; gap: 1rem; }
  .site-actions { margin-left: auto; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: 0.5rem;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
}
.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--brand-border); }
.btn-secondary:hover { background: var(--brand-tint); }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

/* ---- Sections ---- */
.hero {
  padding: 4rem 1rem 3.5rem; text-align: center;
  background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 100%);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 44rem; margin: 0 auto 1rem; line-height: 1.15; }
.hero .lead { font-size: 1.15rem; color: var(--text-2); max-width: 38rem; margin: 0 auto 2rem; }
.hero .note { font-size: 0.9rem; color: var(--text-3); margin-top: 1rem; }
.hero .note strong { color: var(--brand); }
.page-hero { padding: 3rem 1rem 1.5rem; text-align: center; }
.page-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); max-width: 44rem; margin: 0 auto 0.75rem; }
.page-hero .lead { font-size: 1.1rem; color: var(--text-2); max-width: 40rem; margin: 0 auto; }

.section { max-width: 68rem; margin: 0 auto; padding: 3rem 1rem; }
.section.tinted { max-width: none; background: var(--surface); }
.section.tinted > * { max-width: 66rem; margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 0.5rem; }
.section .section-lead { color: var(--text-2); margin: 0 0 2rem; max-width: 42rem; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 52rem) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: 0.75rem; padding: 1.5rem; background: #fff; }
.card h3 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.card p { color: var(--text-2); font-size: 0.95rem; margin: 0; }
.card .icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: var(--brand-border); }
a.card .more { color: var(--brand); font-weight: 600; font-size: 0.9rem; margin-top: 0.75rem; display: inline-block; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin: 0.15rem 0 0.25rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--text-2); }

/* ---- Long-form prose (use cases, comparisons, legal, support) ---- */
.prose { max-width: 44rem; margin: 0 auto; padding: 1rem 1rem 3rem; }
.prose h2 { font-size: 1.35rem; margin: 2.25rem 0 0.5rem; }
.prose h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }
.prose p, .prose li { color: #334155; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin: 0.35rem 0; }
.prose .updated { color: var(--text-3); font-size: 0.9rem; }
.callout { background: var(--brand-tint); border: 1px solid var(--brand-border); border-radius: 0.75rem; padding: 1.25rem 1.5rem; margin: 2rem 0; }
.callout p { margin: 0 0 0.75rem; }
.callout p:last-child { margin-bottom: 0; }

/* ---- Pricing ---- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 22rem)); gap: 1.5rem; justify-content: center; }
@media (max-width: 52rem) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { border: 1px solid var(--line); border-radius: 0.75rem; padding: 2rem 1.75rem; background: #fff; }
.plan.featured { border: 2px solid var(--brand); }
.plan h2 { font-size: 1.25rem; margin: 0; }
.plan .price { font-size: 2.5rem; font-weight: 700; margin: 0.75rem 0 0; line-height: 1; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--text-2); }
.plan .price-note { color: var(--text-2); font-size: 0.9rem; margin: 0.5rem 0 1.25rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.plan li { padding: 0.4rem 0 0.4rem 1.6rem; position: relative; color: #334155; font-size: 0.95rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.plan .btn { width: 100%; justify-content: center; }

table.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1rem 0 2rem; }
table.compare th, table.compare td { text-align: left; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare th { background: var(--surface); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* ---- FAQ ---- */
.faq { max-width: 46rem; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 1.02rem; }
.faq details p { color: var(--text-2); margin: 0.75rem 0 0; }

/* ---- CTA band ---- */
.cta-band { text-align: center; padding: 3.5rem 1rem; background: var(--brand-tint); }
.cta-band h2 { margin: 0 0 0.5rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-band p { color: var(--text-2); margin: 0 0 1.5rem; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 1rem 1.5rem; }
.footer-inner { max-width: 68rem; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 52rem) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-inner > div:first-child { grid-column: 1 / -1; } }
.footer-inner p { color: var(--text-2); font-size: 0.9rem; max-width: 22rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--brand); }
.copyright { max-width: 68rem; margin: 2rem auto 0; color: var(--text-3); font-size: 0.85rem; }
