:root {
  --bg: #fdfdfd;
  --fg: #143058;
  --muted: #6b6b6b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e5e5e5;
  --error: #b91c1c;
  --error-bg: #fef2f2;
  --success: #166534;
  --success-bg: #f0fdf4;
  --max-width: 960px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

a:focus-visible,
button:focus-visible,
.button:focus-visible,
.card-link:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--fg);
  color: var(--bg);
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 0.15s;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  border-bottom: 1px solid var(--border);
}
.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-brand { font-weight: 700; color: var(--fg); }
.site-brand img { display: block; height: 3.5rem; width: auto; }
.nav-links { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--fg); }

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

h1 { font-size: 1.85rem; margin-top: 0; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }

.hero { text-align: center; padding: 3rem 0 2rem; }
.hero-logo { display: block; max-width: 16rem; height: auto; margin: 0 auto 1.5rem; }
.hero h1 { font-size: 2.25rem; line-height: 1.2; max-width: 32rem; margin: 0 auto 1rem; }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 38rem; margin: 0 auto 1.5rem; }
.hero-ctas { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin: 0; }
.hero p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 700px; /* Optional: keeps long sentences comfortable to read when centered */
}
.button {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.button:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.button-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.button-secondary:hover { background: var(--accent); color: #fff; }

.nav-links a.button-support { color: #fff; text-decoration: none; }
.button-support {
  background: var(--success);
  color: #fff;
  padding: 0.4rem 0.9rem;
  font-size: 0.95rem;
  margin-left: 0.25rem;
}
.button-support:hover { background: #166534; color: #fff; text-decoration: none; }

.section { margin: 3rem 0; }
.section-header { text-align: center; margin-bottom: 1.75rem; }
.section-header h2 { margin: 0 0 0.5rem; }
.section-header p { color: var(--muted); max-width: 38rem; margin: 0 auto; }

.services-group-heading {
  font-size: 1.5rem;
  margin: 3.5rem 0 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.services-group-heading:first-of-type { border-top: 0; padding-top: 0; }
.section-lede { color: var(--muted); font-size: 1.05rem; max-width: 38rem; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}
.card h3 { margin: 0 0 0.5rem; }
.card p { color: var(--muted); margin: 0 0 0.75rem; }
.card-link { display: block; color: var(--fg); transition: border-color 0.15s, transform 0.15s; }
.card-link:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.card-link-arrow { color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.card-link-container {
  position: relative; /* Establishes a boundary for the absolute link */
  cursor: pointer;    /* Forces the mouse to show the hand/click icon over the whole box */
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;           /* Stretches the link target over the whole card */
  z-index: 1;
}
.features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.features li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.cta-band {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 6px;
  margin: 3rem 0;
}
.cta-band h2 { color: #fff; margin: 0 0 0.5rem; }
.cta-band p { margin: 0 auto 1.25rem; max-width: 32rem; color: #fff; opacity: 0.95; }
.cta-band .button { background: #fff; color: var(--accent); }
.cta-band .button:hover { background: #f3f4f6; color: var(--accent-hover); }

/*.service-block { border-top: 1px solid var(--border); padding-top: 2rem; }*/
.service-block {
  /* Adjust the 100px value to match the exact height of your fixed header */
  scroll-margin-top: 56.8px; }
.service-block:first-of-type { border-top: 0; padding-top: 0; }

.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.form-input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font: inherit;
  background: #fff;
  color: var(--fg);
}
.form-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-input[aria-invalid="true"] { border-color: var(--error); }
textarea.form-input { min-height: 8rem; resize: vertical; }

.form-errors { list-style: none; margin: 0.35rem 0 0; padding: 0; color: var(--error); font-size: 0.9rem; }

.form-errors-banner {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--error);
  border-radius: 4px;
  background: var(--error-bg);
  color: var(--error);
}

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.flash-container { margin-bottom: 1rem; }
.flash { padding: 0.6rem 0.9rem; border-radius: 4px; border: 1px solid var(--border); }
.flash-success { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.flash-error { background: var(--error-bg); color: var(--error); border-color: var(--error); }

.error-page { text-align: center; padding: 3rem 0; }
.error-page h1 { font-size: 3rem; margin-bottom: 0.5rem; }

.download-results { max-width: 38rem; margin: 0 auto; }
.platform-section { margin: 2rem 0; }
.platform-section h3 { margin-bottom: 0.75rem; }
.command-block {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.command-block code {
  flex: 1;
  display: block;
  padding: 0.6rem 0.8rem;
  background: #f4f4f5;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-all;
  user-select: all;
}
.copy-btn {
  flex-shrink: 0;
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  background: var(--muted);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.copy-btn:hover { background: var(--fg); }
