:root {
  --brand: #6fa9d8;
  --brand-hover: #5b98ca;
  --deep: #356f9f;
  --soft: #dcecf7;
  --pale: #f1f7fb;
  --canvas: #f7fafc;
  --surface: #ffffff;
  --ink: #183247;
  --secondary: #607789;
  --muted: #8a9aa7;
  --line: #dce6ed;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  --ok: #3d6b52;
  --ok-bg: #eef5f0;
  --danger: #8f3a3a;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.mkt {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
}

h1, h2, h3, .mkt-brand strong {
  font-family: var(--serif);
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 600;
}

a { color: var(--deep); }
a:hover { color: var(--brand-hover); }

.mkt-wrap {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.mkt-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.mkt-nav-top {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.mkt-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.mkt-brand small {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.mkt-welcome {
  display: none;
  margin: 0 16px 0 0;
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mkt-rail {
  background: var(--pale);
  border-top: 1px solid var(--line);
}

.mkt-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 28px;
  min-height: 48px;
  align-items: stretch;
}

.mkt-links a, .mkt-link {
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}

.mkt-links a {
  display: inline-flex;
  align-items: center;
  padding: 0;
  box-shadow: inset 0 -2px 0 transparent;
}

.mkt-links a:hover, .mkt-link:hover { color: var(--ink); }

.mkt-links a.is-on {
  color: var(--deep);
  box-shadow: inset 0 -2px 0 var(--brand);
}

.mkt-actions { display: flex; align-items: center; gap: 16px; }

.mkt-btn, .mkt-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.mkt-btn {
  background: var(--deep);
  color: #fff;
  border: 1px solid var(--deep);
  cursor: pointer;
  white-space: nowrap;
}

.mkt-btn:hover { background: #2c5f8a; color: #fff; border-color: #2c5f8a; }

.mkt-btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.mkt-btn-ghost:hover { border-color: var(--brand); color: var(--deep); }

.mkt-hero {
  padding: 72px 0 80px;
  background: var(--pale);
}

.mkt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 56px;
  align-items: start;
}

.mkt-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  margin: 0;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.12; margin: 12px 0 18px; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.2; margin: 8px 0 16px; }
h3 { margin: 0 0 8px; font-size: 1.15rem; }

.mkt-lede, .mkt-section p, .mkt-band p { font-size: 1.08rem; line-height: 1.65; color: var(--secondary); }

.mkt-hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.mkt-preview {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 22px 24px 10px;
}

.mkt-preview-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mkt-preview-bar span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.mkt-preview-bar em { font-style: normal; color: var(--deep); letter-spacing: 0; text-transform: none; font-size: 0.95rem; }

.mkt-preview-body { display: grid; gap: 0; }
.mkt-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--secondary);
  font-size: 0.92rem;
}
.mkt-stat strong { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); font-weight: 600; }
.mkt-preview-body ul { margin: 8px 0 12px; padding: 0; list-style: none; }
.mkt-preview-body li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--secondary); font-size: 0.95rem; }
.mkt-preview-body li b { color: var(--ink); font-weight: 600; }

.mkt-preview-wide { margin-top: 24px; padding-bottom: 8px; }
.mkt-preview-rail {
  color: var(--deep);
  font-size: 0.86rem;
  padding: 4px 0 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.mkt-section, .mkt-band { padding: 72px 0; }
.mkt-alt { background: var(--pale); }
.mkt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; margin-top: 28px; }
.mkt-cards article {
  background: transparent;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.mkt-cards article p { margin: 0; }
.mkt-steps { display: grid; gap: 18px; padding-left: 20px; }
.mkt-steps li::marker { color: var(--deep); }
.mkt-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.mkt-ticks { margin: 0; padding-left: 18px; color: var(--secondary); }
.mkt-ticks li { margin: 10px 0; }

details { border-top: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); }

.mkt-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: var(--surface);
  padding: 24px;
  border: 1px solid var(--line);
}
.mkt-form label { display: grid; gap: 6px; font-size: 0.9rem; }
.mkt-form input, .mkt-form select, .mkt-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  border-radius: var(--radius);
}
.mkt-form input:focus, .mkt-form select:focus, .mkt-form textarea:focus {
  outline: 2px solid var(--soft);
  border-color: var(--brand);
}
.mkt-form input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin-top: 3px;
}
.mkt-form label.mkt-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--secondary);
  font-weight: 400;
}
.mkt-consent-copy { color: var(--secondary); }
.mkt-consent .field-validation-error { grid-column: 2; }
.mkt-span { grid-column: 1 / -1; }
.mkt-honey { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.mkt-errors, .mkt-form .field-validation-error { color: var(--danger); font-size: 0.85rem; }
.mkt-flash { background: var(--ok-bg); padding: 12px 0; color: var(--ok); }

.mkt-footer {
  background: var(--surface);
  color: var(--secondary);
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.mkt-footer a { color: var(--deep); }
.mkt-footer a:hover { color: var(--brand-hover); }
.mkt-footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.mkt-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.mkt-footer a.is-on { color: var(--ink); font-weight: 600; }
.mkt-footer p { margin: 8px 0 0; color: var(--muted); }

.mkt-prose { max-width: 720px; }
.mkt-prose h2 { margin-top: 1.6rem; }
.mkt-prose h3 { margin-top: 1.1rem; font-size: 1.05rem; }
.mkt-prose ul, .mkt-prose ol { padding-left: 1.2rem; }
.privacy-notice { max-width: 44rem; }
.privacy-meta { color: var(--muted); font-size: 0.92rem; }
.privacy-toc {
  margin: 1.6rem 0;
  padding: 1rem 1.1rem;
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.privacy-toc p { margin: 0 0 0.5rem; font-weight: 600; color: var(--ink); }
.privacy-toc ol { margin: 0; }
.privacy-toc li { margin: 0.2rem 0; }

.mkt-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--secondary);
}
.mkt-consent input { width: auto; margin-top: 4px; }

.http-warn, .cookie-bar {
  background: #f7f0e6;
  border: 1px solid #e0d0b4;
  color: #8a5a1e;
  padding: 12px 16px;
  margin: 0 0 16px;
}
.http-warn a, .cookie-bar a { color: #8a5a1e; }
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  max-width: 36rem;
  margin: 0;
}
.cookie-bar-form { display: grid; gap: 12px; }
.cookie-title { margin: 0; font-size: 1.05rem; color: var(--ink); }
.cookie-bar p { margin: 0; }
.cookie-options summary { cursor: pointer; font-weight: 600; }
.cookie-options fieldset { border: 0; padding: 10px 0 0; margin: 0; display: grid; gap: 8px; }
.cookie-options label { display: flex; gap: 8px; align-items: flex-start; font-size: 0.92rem; }
.cookie-options input { width: auto; margin-top: 3px; }
.cookie-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-bar button {
  background: var(--deep);
  color: #fff;
  border: 0;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  border-radius: var(--radius);
}
.cookie-btn-secondary {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (min-width: 900px) {
  .mkt-welcome { display: block; }
}

@media (max-width: 860px) {
  .mkt-hero-grid, .mkt-split, .mkt-form, .mkt-footer-inner, .mkt-cards { grid-template-columns: 1fr; display: grid; }
  .mkt-rail { display: none; }
  .mkt-welcome { display: none; }
}
