:root {
  --navy: #0f2a4a;
  --navy-2: #163a63;
  --blue: #1f5eff;
  --blue-dark: #1546c7;
  --blue-soft: #eaf0ff;
  --green: #0f9d58;
  --green-soft: #e8f8ef;
  --orange: #d97516;
  --orange-soft: #fff3e5;
  --purple: #6847d8;
  --purple-soft: #f0ecff;
  --ink: #182433;
  --muted: #5b6b7f;
  --muted-2: #7b8a9d;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --line: #e1e8f0;
  --line-strong: #c9d5e3;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(15, 42, 74, 0.1);
  --shadow-sm: 0 6px 20px rgba(15, 42, 74, 0.07);
  --container: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--navy);
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.35rem);
}

h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.45rem;
}

strong {
  color: var(--navy);
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 3px solid rgba(31, 94, 255, 0.45);
  outline-offset: 2px;
}

.icon {
  display: inline-flex;
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  vertical-align: -0.2em;
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.32rem 0.65rem;
  text-transform: uppercase;
}

.required {
  color: #c0392b;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 94, 255, 0.24);
}

.button-primary:hover {
  background: var(--blue-dark);
  color: #fff;
}

.button-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--navy);
}

.button-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.button-light {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.button-light:hover {
  color: var(--navy);
}

.button-small {
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--navy);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--navy), var(--blue));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(31, 94, 255, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: 1.02rem;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}

.main-nav a {
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--bg);
  color: var(--navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-cta {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0.75rem 1rem 1rem;
  background: #fff;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-nav a {
  padding: 0.7rem 0.5rem;
  border-radius: 10px;
  color: var(--navy);
  font-weight: 650;
  text-decoration: none;
}

.mobile-nav a:hover {
  background: var(--bg);
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(circle at 85% 15%, rgba(31, 94, 255, 0.14), transparent 28rem),
    radial-gradient(circle at 10% 90%, rgba(15, 157, 88, 0.1), transparent 24rem),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy h1 {
  max-width: 13ch;
  margin-bottom: 1rem;
}

.hero-lead {
  max-width: 56ch;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 1.2rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 1rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.trust-strip .icon {
  color: var(--green);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.chip:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.hero-card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}

.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hero-doc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.hero-doc-icon .icon {
  width: 1.6rem;
  height: 1.6rem;
}

.hero-card-tag {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: #087340;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}

.hero-lines {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 1.2rem;
}

.hero-lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #edf1f7;
}

.hero-lines span.short {
  width: 62%;
}

.hero-check-list {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-check-list span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-check-list .icon {
  color: var(--green);
}

.hero-card-footer {
  padding-top: 0.9rem;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 750;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-tinted {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.section-head h2 {
  margin-bottom: 0;
}

.section-head-center {
  justify-content: center;
  text-align: center;
}

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

.category-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  flex: 0 0 auto;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.category-icon .icon {
  width: 1.55rem;
  height: 1.55rem;
}

.category-icon-small {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.category-icon-small .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.category-card-green .category-icon {
  background: var(--green-soft);
  color: #087340;
}

.category-card-orange .category-icon {
  background: var(--orange-soft);
  color: #a55208;
}

.category-card-purple .category-icon {
  background: var(--purple-soft);
  color: var(--purple);
}

.category-copy {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.category-copy strong {
  font-size: 1.08rem;
}

.category-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.category-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.item-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.item-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.item-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--navy);
}

.item-icon .icon {
  width: 1.3rem;
  height: 1.3rem;
}

.item-card strong {
  font-size: 1.03rem;
  line-height: 1.25;
}

.item-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
}

.item-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 750;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.step-card h3 {
  margin-bottom: 0.4rem;
}

.step-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.feature-copy p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0;
  color: var(--ink);
}

.check-list .icon {
  color: var(--green);
  margin-top: 0.2rem;
}

.feature-panel {
  display: grid;
  gap: 0.75rem;
}

.feature-panel-item {
  display: flex;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.feature-panel-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  flex: 0 0 auto;
}

.feature-panel-item strong {
  display: block;
  margin-bottom: 0.15rem;
}

.feature-panel-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.faq-home {
  max-width: 880px;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0 1rem;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 0;
  color: var(--navy);
  font-weight: 750;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--blue-dark);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer {
  padding: 0 0 1rem;
  color: var(--muted);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.cta-band {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-2) 55%, #21508a);
  color: #fff;
}

.cta-band .eyebrow {
  color: #b9d2ff;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #cfe0f6;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.page {
  padding-top: 1.2rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.page-narrow {
  max-width: 860px;
}

.breadcrumbs {
  padding: 0.8rem 0 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li {
  margin: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.page-hero {
  max-width: 820px;
  margin-bottom: 2rem;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.doc-hero {
  max-width: 860px;
  margin-bottom: 1.6rem;
}

.doc-intro {
  color: var(--muted);
  font-size: 1.04rem;
}

.doc-intro p:last-child {
  margin-bottom: 0;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 2rem;
  align-items: start;
}

.doc-main {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 0.85rem;
}

.sidebar-card {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h2 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.sidebar-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.sidebar-cta {
  background: linear-gradient(160deg, #fff, #f1f6ff);
}

.sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.65rem;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.related-list {
  display: grid;
  gap: 0.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.related-list li {
  margin: 0;
}

.related-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.related-list li:last-child a {
  border-bottom: 0;
}

.related-list a:hover {
  color: var(--blue-dark);
}

.sidebar-note {
  background: #fbfcfe;
}

.generator {
  scroll-margin-top: 90px;
  margin-bottom: 2rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.generator-head {
  margin-bottom: 1.2rem;
}

.generator-head h2 {
  margin-bottom: 0.35rem;
}

.generator-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.doc-form {
  display: grid;
  gap: 1.1rem;
}

.form-group {
  padding: 0;
  margin: 0;
  border: 0;
}

.form-group legend {
  padding: 0;
  margin-bottom: 0.6rem;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 800;
}

.group-description {
  margin: -0.3rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field-half {
  grid-column: span 1;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
}

.field textarea {
  min-height: 94px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 94, 255, 0.12);
  outline: 0;
}

.field-help {
  margin: 0.3rem 0 0;
  color: var(--muted-2);
  font-size: 0.76rem;
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  min-height: auto;
  margin-top: 0.15rem;
  accent-color: var(--blue);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.3rem;
}

.form-status {
  min-height: 1.2rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.form-status.is-error {
  color: #b42318;
}

.form-status.is-success {
  color: #087340;
}

.form-privacy {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.76rem;
}

.generator-preview {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.preview-toolbar h3 {
  margin: 0;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.document-preview {
  max-width: 820px;
  padding: clamp(1.2rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.document-preview h1,
.document-preview h2,
.document-preview h3 {
  color: #111;
  font-family: var(--serif);
  letter-spacing: 0;
}

.document-preview h1 {
  margin: 0 0 1.2rem;
  font-size: 1.35rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.document-preview h2 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.03rem;
}

.document-preview p {
  margin: 0 0 0.8rem;
  text-align: justify;
}

.document-preview ul,
.document-preview ol {
  margin: 0 0 0.9rem;
}

.document-preview .doc-place-date {
  margin-bottom: 1.2rem;
  text-align: right;
}

.document-preview .doc-clause {
  margin-bottom: 0.75rem;
}

.document-preview .doc-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  page-break-inside: avoid;
}

.document-preview .doc-signature {
  padding-top: 2.5rem;
  border-top: 1px solid #111;
  font-size: 0.85rem;
}

.document-preview .doc-note {
  margin-top: 1.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid #ccc;
  color: #555;
  font-family: var(--font);
  font-size: 0.72rem;
  text-align: left;
}

.document-preview table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  font-size: 0.88rem;
}

.document-preview th,
.document-preview td {
  border: 1px solid #bbb;
  padding: 0.4rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.document-preview .calc-result {
  padding: 1rem;
  border: 1px solid #bbb;
  margin: 0.8rem 0;
  font-family: var(--font);
}

.document-preview .calc-result strong {
  font-size: 1.15rem;
}

.toc {
  margin-bottom: 1.8rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.toc p {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.toc ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.prose-section {
  margin-bottom: 1.9rem;
  scroll-margin-top: 90px;
}

.prose-section h2 {
  font-size: 1.45rem;
  margin-bottom: 0.7rem;
}

.prose-section h3 {
  margin-top: 1.2rem;
}

.prose-section p,
.prose-section li {
  color: #344255;
}

.prose-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.prose-section th,
.prose-section td {
  padding: 0.65rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose-section th {
  background: var(--bg);
  color: var(--navy);
}

.formula {
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
  color: var(--navy);
}

.faq-section {
  margin: 2rem 0;
}

.faq-section h2 {
  font-size: 1.45rem;
}

.sources {
  margin: 2rem 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.sources h2 {
  font-size: 1.1rem;
}

.sources ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.disclaimer-box {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid #f0d9b5;
  border-radius: var(--radius-sm);
  background: #fffaf2;
  color: #6b4a1b;
  font-size: 0.86rem;
}

.guide-start {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 90px;
}

.guide-start-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--green-soft);
  color: #087340;
  flex: 0 0 auto;
}

.guide-start h2 {
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.guide-start p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.category-group {
  margin-bottom: 2.5rem;
}

.category-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.category-group-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.category-group-title h2 {
  margin: 0;
  font-size: 1.35rem;
}

.empty-state {
  padding: 2rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.legal-prose {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.legal-prose h2 {
  margin-top: 1.6rem;
  font-size: 1.25rem;
}

.legal-prose h2:first-child {
  margin-top: 0;
}

.not-found {
  max-width: 680px;
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.search-dialog {
  width: min(720px, calc(100vw - 2rem));
  max-height: min(720px, calc(100vh - 2rem));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-dialog::backdrop {
  background: rgba(15, 42, 74, 0.42);
  backdrop-filter: blur(3px);
}

.search-dialog-inner {
  padding: 1.2rem;
}

.search-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.search-dialog-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
}

.search-field input {
  width: 100%;
  min-height: 50px;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
}

.search-results {
  display: grid;
  gap: 0.35rem;
  max-height: 420px;
  margin-top: 0.8rem;
  overflow: auto;
}

.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}

.search-result:hover {
  border-color: var(--line);
  background: var(--bg);
  color: var(--ink);
}

.search-result strong {
  display: block;
  font-size: 0.92rem;
}

.search-result span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.search-hint {
  margin: 0.7rem 0 0;
  color: var(--muted-2);
  font-size: 0.78rem;
}

.site-footer {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-brand p {
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-note {
  color: var(--muted-2) !important;
  font-size: 0.78rem !important;
}

.site-footer h2 {
  margin-bottom: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.site-footer ul {
  display: grid;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer li {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.affiliate-note {
  margin-top: 0.8rem;
  color: var(--muted-2);
  font-size: 0.74rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.76rem;
}

@media (max-width: 960px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .hero-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 18ch;
  }

  .hero-card {
    max-width: 560px;
    transform: none;
  }

  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-cta {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-text strong {
    font-size: 0.98rem;
  }

  .category-grid,
  .steps-grid,
  .item-grid,
  .sidebar,
  .field-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    align-items: center;
  }

  .category-meta {
    display: none;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-band-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-actions .button {
    flex: 1 1 auto;
  }

  .document-preview .doc-signatures {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .category-group-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2rem;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
  }

  .hero-card {
    padding: 1rem;
  }

  .legal-prose {
    padding: 1rem;
  }

  .document-preview {
    padding: 1rem;
    font-size: 0.92rem;
  }
}

@media print {
  @page {
    size: A4;
    margin: 18mm;
  }

  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .search-dialog,
  .breadcrumbs,
  .doc-hero,
  .sidebar,
  .toc,
  .prose-section,
  .faq-section,
  .sources,
  .disclaimer-box,
  .guide-start,
  .generator-head,
  .generator-form,
  .preview-toolbar,
  .page-meta,
  .form-status,
  .mobile-nav {
    display: none !important;
  }

  .container,
  .page,
  .doc-layout,
  .doc-main,
  .generator,
  .generator-layout,
  .generator-preview {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  .document-preview {
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: 11.5pt;
  }

  .document-preview .doc-signatures {
    page-break-inside: avoid;
  }
}
