/* Stylesheet for the public marketing pages only.
 *
 * Kept separate from style.css: the application's stylesheet carries the
 * signed-in chrome and is far larger than a landing page should have to
 * download. This file is the entire front end of the public site — there is no
 * JavaScript on those pages at all.
 *
 * System fonts by choice as well as necessity: the Content-Security-Policy is
 * default-src 'self', so a web font from a CDN would simply be blocked, and a
 * self-hosted one would only add a render-blocking round trip.
 */

:root {
  --blue-900: #172554;
  --blue-800: #1e3a8a;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --amber-50:  #fffbeb;
  --amber-300: #fcd34d;
  --amber-800: #92400e;
  --radius: 14px;
  /* The content band spans the viewport; only the side gutter holds it off
     the edge. Individual blocks that need a reading measure set their own. */
  --wrap: 100%;
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--slate-700);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, sans-serif;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { color: var(--slate-900); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -.01em; margin-top: 2.4em; }
h3 { font-size: 1.16rem; margin-top: 1.8em; }
p { margin: 0 0 1.1em; }
a { color: var(--blue-600); }
a:hover { color: var(--blue-800); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue-800); color: #fff; padding: 10px 16px; z-index: 10;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--slate-200);
  background: #fff;
  position: sticky; top: 0; z-index: 5;
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.12rem; color: var(--blue-800); }
.brand-tagline { font-size: .74rem; color: var(--slate-400); letter-spacing: .02em; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 7px 12px; border-radius: 8px;
  color: var(--slate-700); text-decoration: none; font-size: .94rem; font-weight: 500;
}
.site-nav a:hover { background: var(--slate-100); color: var(--blue-800); }
.site-nav a[aria-current="page"] { background: var(--blue-50); color: var(--blue-800); font-weight: 600; }

/* Language badges in the header, shaped like the ones on every signed-in
   screen so the two halves of the site look like one product. The application
   header is dark and styles them white-on-translucent; this header is white, so
   they take the site's own slate/blue palette instead. */
.lang-badges { display: flex; gap: 4px; align-items: center; }
.lang-badge {
  display: block; padding: 4px 10px; border-radius: 10px;
  color: var(--slate-600); text-decoration: none;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  border: 1px solid var(--slate-200); background: #fff;
  transition: background .2s, color .2s;
}
.lang-badge:hover { background: var(--slate-100); color: var(--blue-800); }
.lang-badge-active {
  background: var(--blue-50); color: var(--blue-800); border-color: var(--blue-50);
}

.btn {
  display: inline-block; padding: 10px 20px; border-radius: 9px;
  font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent;
}
.btn-sign-in, .btn-primary { background: var(--blue-800); color: #fff; }
.btn-sign-in:hover, .btn-primary:hover { background: var(--blue-900); color: #fff; }
.btn-secondary { background: #fff; color: var(--blue-800); border-color: var(--slate-200); }
.btn-secondary:hover { border-color: var(--blue-600); color: var(--blue-800); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--blue-800) 0%, var(--blue-900) 100%);
  color: #fff; padding: 64px 0 72px;
}
.hero h1 { color: #fff; }
.hero .lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.28rem); color: var(--blue-100); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-secondary { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-secondary:hover { background: rgba(255,255,255,.16); color: #fff; }
.hero .btn-primary { background: #fff; color: var(--blue-800); }
.hero .btn-primary:hover { background: var(--blue-100); color: var(--blue-900); }

section { padding: 8px 0; }
.section-tint { background: var(--slate-50); border-block: 1px solid var(--slate-200); margin-top: 56px; padding: 8px 0 40px; }
.section-tint h2 { margin-top: 1.6em; }

/* ── Cards ──────────────────────────────────────────────────────────── */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 8px 0 4px; padding: 0; list-style: none; }
.card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 22px 22px 6px;
}
.card h3 { margin-top: 0; font-size: 1.05rem; }
.card p { font-size: .96rem; color: var(--slate-600); }

/* ── Workflow chain ─────────────────────────────────────────────────── */
/* An ordered list styled as a chain: it reads as a numbered sequence to a
   screen reader and to a crawler, and as a diagram to everyone else. */
.workflow { list-style: none; margin: 24px 0 8px; padding: 0; counter-reset: step; }
.workflow li {
  position: relative; counter-increment: step;
  border: 1px solid var(--slate-200); border-left: 4px solid var(--blue-600);
  border-radius: 10px; background: #fff;
  padding: 14px 18px 14px 60px; margin-bottom: 10px;
}
.workflow li::before {
  content: counter(step);
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-800);
  font-size: .85rem; font-weight: 700;
  display: grid; place-items: center;
}
.workflow .step-name { font-weight: 700; color: var(--slate-900); display: block; }
.workflow .step-note { font-size: .93rem; color: var(--slate-600); }
.workflow li.is-conditional { border-left-color: var(--amber-300); background: var(--amber-50); }
.workflow li.is-final { border-left-color: #16a34a; }

.marker { color: var(--amber-800); font-weight: 700; }

/* ── Comparison table ───────────────────────────────────────────────── */
/* Wide content scrolls inside its own box so the page body never does. */
.table-scroll { overflow-x: auto; margin: 20px 0 6px; -webkit-overflow-scrolling: touch; }
table.compare { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
table.compare caption { text-align: left; color: var(--slate-600); font-size: .9rem; padding-bottom: 10px; }
table.compare th, table.compare td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--slate-200); vertical-align: top; }
table.compare thead th { background: var(--slate-100); color: var(--slate-900); font-weight: 700; border-bottom: 2px solid var(--slate-200); }
table.compare tbody th { font-weight: 600; color: var(--slate-900); background: var(--slate-50); }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: none; }

.footnotes { font-size: .92rem; color: var(--slate-600); border-left: 3px solid var(--amber-300); background: var(--amber-50); padding: 14px 18px; border-radius: 0 8px 8px 0; }
.footnotes p { margin: 0 0 .6em; }
.footnotes p:last-child { margin-bottom: 0; }

/* ── Callout / disclaimer boxes ─────────────────────────────────────── */
.note {
  background: var(--blue-50); border-left: 3px solid var(--blue-600);
  border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 22px 0;
  font-size: .96rem; color: var(--slate-700);
}

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { margin: 8px 0 0; }
.faq-item { border-bottom: 1px solid var(--slate-200); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin: 0 0 .5em; font-size: 1.06rem; }
.faq-item p { margin: 0; color: var(--slate-600); }

/* ── Lists ──────────────────────────────────────────────────────────── */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.checklist li::before {
  content: ''; position: absolute; left: 4px; top: .52em;
  width: 9px; height: 15px; border: solid var(--blue-600);
  border-width: 0 3px 3px 0; transform: rotate(45deg);
}

.pain-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4em; }
.pain-list li {
  background: var(--slate-100); color: var(--slate-600);
  border-radius: 999px; padding: 6px 14px; font-size: .9rem;
}

.cta {
  margin: 48px 0 8px; padding: 30px 28px; border-radius: var(--radius);
  background: var(--blue-50); border: 1px solid var(--blue-100);
}
.cta h2 { margin-top: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { margin-top: 64px; border-top: 1px solid var(--slate-200); background: var(--slate-50); padding: 36px 0 28px; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-heading { font-weight: 700; color: var(--slate-900); font-size: .92rem; margin: 0 0 .6em; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .45em; }
.footer-list a { color: var(--slate-600); text-decoration: none; font-size: .94rem; }
.footer-list a:hover { color: var(--blue-800); text-decoration: underline; }
.footer-list a[aria-current="true"] { color: var(--blue-800); font-weight: 600; }
.footer-legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--slate-200); }
.footer-legal p { font-size: .86rem; color: var(--slate-600); margin: 0 0 .5em; }
.footer-copy { color: var(--slate-400); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --gutter: 16px; }
  .hero { padding: 44px 0 48px; }
  .header-inner { gap: 12px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; }
  .lang-badges { order: 2; }
  .site-nav ul { gap: 2px; }
  .site-nav a { padding: 6px 9px; font-size: .88rem; }
  .btn-sign-in { margin-left: auto; }
  .workflow li { padding: 12px 14px 12px 52px; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .cta { display: none; }
  body { color: #000; font-size: 12pt; }
}
