/* DutiveX public website.
   The customer-facing pages are styled entirely from this file. The classification console keeps
   its own older stylesheet (assets/css/styles.css) and is deliberately untouched by this one. */

/* ---------------------------------------------------------------- tokens */

:root {
  --navy-900: #071426;
  --navy-800: #0b1d34;
  --navy-700: #11294a;

  --blue-600: #1544c7;
  --blue-500: #1e5eff;
  --blue-400: #64a2ff;
  --blue-050: #eef4ff;

  --ink: #0e1b2c;
  --ink-soft: #46586f;
  --ink-mute: #5c6e85;
  --ink-invert: #ffffff;
  --ink-invert-soft: #b7c8dd;

  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --surface-tint: #eff5fd;
  --line: #e3e9f1;
  --line-strong: #cfd9e6;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(7, 20, 38, 0.06), 0 1px 3px rgba(7, 20, 38, 0.04);
  --shadow: 0 10px 30px rgba(7, 20, 38, 0.07), 0 2px 8px rgba(7, 20, 38, 0.04);
  --shadow-lg: 0 26px 60px rgba(7, 20, 38, 0.12), 0 6px 18px rgba(7, 20, 38, 0.06);

  --header-h: 72px;
  --container: 1140px;
  --section-y: clamp(64px, 8vw, 112px);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.021em;
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.028em; }
h2 { font-size: clamp(27px, 3.4vw, 38px); }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.012em; }

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-500); }

img, svg { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 18px; padding-left: 20px; }
li { margin-bottom: 8px; }
li:last-child { margin-bottom: 0; }

strong { color: var(--ink); font-weight: 620; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(30, 94, 255, 0.16); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------------------------------------------------------------- layout */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-y) 0; }
.section--soft { background: var(--surface-soft); }
.section--tight { padding: clamp(48px, 5vw, 72px) 0; }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-600);
  font-size: 12.5px;
  font-weight: 680;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead {
  margin-top: 16px;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
}

.note {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-mute);
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(7, 20, 38, 0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: 152px; height: auto; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 560;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover { color: var(--ink); background: var(--surface-tint); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 640; }

.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { margin: 0 auto; position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile { display: none; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
}
.btn--primary:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

.btn--secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--secondary:hover { border-color: var(--ink-mute); color: var(--ink); background: var(--surface); }

.btn--ghost-invert {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.btn--ghost-invert:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.text-link {
  font-weight: 600;
  font-size: 15.5px;
  color: var(--blue-600);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link .arrow { transition: transform 0.16s ease; display: inline-block; }
.text-link:hover .arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(100, 162, 255, 0.18), transparent 62%),
    linear-gradient(180deg, #fbfdff 0%, var(--surface-soft) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 34em; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--ink-mute);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 580;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

/* hero result card ------------------------------------------------------- */

.result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.result-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}
.result-card__bar span:first-child {
  font-size: 13px;
  font-weight: 640;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.result-card__tag {
  font-size: 11.5px;
  font-weight: 640;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.result-card__body { padding: 24px 20px 22px; }

.result-code {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.result-desc {
  margin: 8px 0 0;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.result-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.result-label {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 660;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.result-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.result-facts li {
  margin: 0;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 13.5px;
  color: var(--ink-soft);
}
.result-why {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.result-source {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.result-source::before {
  content: "\00a7";
  flex: none;
  margin-top: -1px;
  color: var(--blue-500);
  font-weight: 640;
}

.result-card__foot {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 12.5px;
  color: var(--ink-mute);
}

/* ---------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.steps--detail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.step {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 9px;
  background: var(--blue-050);
  color: var(--blue-600);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 620;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 15.5px; margin: 0; }

/* ---------------------------------------------------------------- cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; margin: 0; }

/* output list (what the result shows) — a row per item, so any number of items reads evenly */

.output-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.output-list li {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 6px 40px;
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.output-list strong {
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.output-list span {
  font-size: 16px;
  color: var(--ink-soft);
}

/* check list */

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 30px;
  font-size: 15.5px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 9px;
  border-left: 2px solid var(--blue-500);
  border-bottom: 2px solid var(--blue-500);
  transform: rotate(-45deg);
}

/* the same list used for statements of what the product will not do: a neutral rule, not a tick */
.check-list--plain li::before {
  top: 14px;
  width: 14px;
  height: 0;
  border-left: none;
  border-bottom: 2px solid var(--line-strong);
  transform: none;
}

/* ---------------------------------------------------------------- jurisdictions */

.jurisdictions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.jurisdiction {
  padding: 18px 14px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.jurisdiction b {
  display: block;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 620;
  color: var(--blue-600);
  letter-spacing: 0.02em;
}
.jurisdiction span {
  display: block;
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------- dark band */

.band {
  padding: var(--section-y) 0;
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(30, 94, 255, 0.22), transparent 60%),
    var(--navy-900);
  color: var(--ink-invert-soft);
}
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: var(--blue-400); }
.band .lead { color: var(--ink-invert-soft); }
.band .note { color: #93a7c0; }
.band a:not(.btn) { color: var(--blue-400); }

.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.band-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
}
.band-list li {
  margin: 0;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 15.5px;
  color: var(--ink-invert-soft);
}
.band-list strong { color: #fff; }

.cta-band {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-band .btn-row { justify-content: center; }

/* ---------------------------------------------------------------- page hero */

.page-hero {
  padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px);
  background: linear-gradient(180deg, #fbfdff 0%, var(--surface-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .inner { max-width: 760px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 48px); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.fact b {
  display: block;
  font-size: 12px;
  font-weight: 660;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.fact span {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------------------------------------------------------------- prose */

.prose { max-width: 760px; }
.prose h2 {
  margin: 44px 0 14px;
  font-size: 21px;
  letter-spacing: -0.012em;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 16.5px; }
.prose ul { padding-left: 22px; }

.updated {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 560;
}

/* ---------------------------------------------------------------- faq */

.faq { max-width: 780px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  padding: 18px 36px 18px 0;
  position: relative;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 620;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-mute);
  border-bottom: 2px solid var(--ink-mute);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p {
  margin: 0 0 20px;
  padding-right: 36px;
  font-size: 15.5px;
}

/* ---------------------------------------------------------------- forms */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.form-card {
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 14px;
  font-weight: 620;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235c6e85' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(30, 94, 255, 0.16);
}
.field input::placeholder,
.field textarea::placeholder { color: #6e7f96; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.form-actions p {
  margin: 0;
  max-width: 44ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-mute);
}

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

.aside-card {
  padding: 26px 24px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.aside-card h3 { margin-bottom: 10px; font-size: 17px; }
.aside-card p { font-size: 15px; }
.aside-card + .aside-card { margin-top: 20px; }

/* ---------------------------------------------------------------- confirmation / 404 */

.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--header-h) - 340px);
  padding: clamp(64px, 9vw, 120px) 0;
}
.centered .inner { max-width: 600px; }
.centered .btn-row { justify-content: center; }

.status-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--blue-050);
  color: var(--blue-600);
  font-size: 24px;
  font-weight: 640;
  font-family: var(--font-mono);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding: clamp(48px, 6vw, 72px) 0 32px;
  background: var(--navy-900);
  color: var(--ink-invert-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}
.footer-brand { display: inline-block; margin-bottom: 16px; }
.footer-brand img { width: 152px; }
.footer-about {
  max-width: 36ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: #93a7c0;
}
.footer-title {
  margin-bottom: 14px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 660;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a,
.footer-links span {
  font-size: 15px;
  color: var(--ink-invert-soft);
  text-decoration: none;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-links span { color: #7f95b1; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13.5px;
  color: #7f95b1;
}

/* ---------------------------------------------------------------- reveal */

.reveal { opacity: 1; }
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 560px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .jurisdictions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .band-grid { grid-template-columns: minmax(0, 1fr); }
  .form-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav-mobile {
    display: block;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    transition: max-height 0.26s ease, border-color 0.26s ease;
  }
  .nav-mobile.is-open {
    max-height: 420px;
    border-top-color: var(--line);
  }
  .nav-mobile .inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 24px 20px;
  }
  .nav-mobile .nav-link { padding: 12px 0; font-size: 16px; }
  .nav-mobile .btn { margin-top: 10px; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .steps, .steps--detail { grid-template-columns: minmax(0, 1fr); }
  .card-grid, .card-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .jurisdictions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .output-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .btn-row .btn { width: 100%; }
  .form-actions .btn { width: 100%; }
  .facts { gap: 18px 28px; }
  .result-card__body { padding: 20px 16px; }
  .result-card__bar, .result-card__foot { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
