@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@700&family=Outfit:wght@400;600;700;800&display=swap");

:root {
  --ink: #172033;
  --muted: #647084;
  --line: #d7dde8;
  --surface: #ffffff;
  --soft: #f3f6fa;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --warn: #9f4f16;
  --navy: #0c1b33;
  --gold: #c9a84c;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Outfit, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef3f7;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  background:
    radial-gradient(circle at 25% 30%, rgba(201, 168, 76, 0.16), transparent 34%),
    linear-gradient(135deg, #0c1b33 0%, #112240 54%, #0c1b33 100%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-loader::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}

.site-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(320px, 100%);
  padding: 34px 28px;
  color: #fff;
  text-align: center;
  border: 1px solid rgba(201, 168, 76, 0.26);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.loader-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.28));
  animation: loaderPulse 1.35s ease-in-out infinite;
}

.loader-card strong {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.loader-card span {
  margin-top: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.loader-bar {
  position: relative;
  width: 100%;
  height: 5px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.loader-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: loaderSweep 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.035);
  }
}

@keyframes loaderSweep {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(260%);
  }
}

.home-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 0 28px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(12, 27, 51, 0.1), 0 10px 30px rgba(12, 27, 51, 0.06);
}

.home-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
}

.brand-icon {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand-copy strong {
  color: currentColor;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-copy small {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.site-topbar .brand-icon {
  width: 52px;
  height: 52px;
}

.site-topbar .brand-copy strong {
  font-size: 20px;
}

.site-topbar .brand-copy small {
  font-size: 10px;
}

.sidebar .brand-icon {
  width: 58px;
  height: 58px;
}

.sidebar .brand-copy strong {
  font-size: 20px;
}

.sidebar .brand-copy small {
  font-size: 10px;
}

.footer-brand-row .brand-icon {
  width: 52px;
  height: 52px;
}

.footer-brand-row .brand-copy strong {
  font-size: 20px;
}

.footer-brand-row .brand-copy small {
  font-size: 10px;
}

.home-nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.home-nav-links a {
  color: #647084;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.home-nav-links a:hover {
  color: var(--navy);
}

.home-nav-links a.active {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 8px;
}

.nav-cta,
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  color: var(--navy);
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--gold);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-cta:hover,
.btn-gold:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.42);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.mobile-menu {
  position: fixed;
  inset: 76px 0 0;
  z-index: 999;
  display: none;
  grid-auto-rows: min-content;
  gap: 18px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(12, 27, 51, 0.16);
}

.mobile-menu.open {
  display: grid;
}

.mobile-menu a {
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.mobile-menu .nav-cta {
  width: 100%;
  margin-top: auto;
}

.home-view,
.dashboard-view {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dashboard-view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  flex-direction: column;
  background: #eef3f7;
}

.home-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  padding: 80px 24px;
  color: #fff;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #0c1b33 0%, #112240 50%, #0c1b33 100%);
  background-size: 40px 40px, 40px 40px, auto;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(201, 168, 76, 0.08) 28%, transparent 48%),
    linear-gradient(245deg, transparent 0%, rgba(46, 95, 163, 0.1) 34%, transparent 58%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(800px, 100%);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 32px;
  padding: 0 18px;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.08);
  font-size: 13px;
  font-weight: 700;
}

.home-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 7vw, 64px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.02;
}

.home-hero h1 span {
  color: var(--gold);
}

.hero-subtitle {
  max-width: 700px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 20px;
  line-height: 1.7;
}

.hero-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  width: min(600px, 100%);
  min-height: 58px;
  margin: 30px auto 0;
  padding: 7px 8px 7px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-search span {
  color: #8896a8;
  font-size: 22px;
}

.hero-search input {
  min-width: 0;
  border: 0;
  outline: 0;
}

.hero-search button {
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  font-weight: 800;
}

.popular-searches,
.hero-actions,
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.popular-searches strong {
  color: var(--gold);
  font-size: 13px;
}

.search-pill {
  min-height: 28px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.hero-actions {
  margin-top: 32px;
}

.hero-actions .btn-gold,
.final-cta .btn-gold {
  min-height: 56px;
  padding: 0 40px;
  border-radius: 10px;
  font-size: 17px;
}

.hero-actions a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.hero-trust {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.hero-trust span + span {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.floating-document {
  position: absolute;
  right: 7vw;
  bottom: 12vh;
  z-index: 1;
  width: 320px;
  padding: 32px;
  color: var(--ink);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  transform: rotate3d(0.3, -1, 0.1, 12deg);
  animation: float-doc 3s ease-in-out infinite;
}

.floating-document h2 {
  margin: 0 0 18px;
  font-family: Georgia, serif;
  font-size: 17px;
}

.floating-document p {
  height: 10px;
  margin: 10px 0;
  border-radius: 999px;
  background: #e6ebf2;
}

.floating-document p:nth-of-type(2) {
  width: 82%;
}

.floating-document p:nth-of-type(3) {
  width: 68%;
}

.doc-party {
  margin-top: 14px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.floating-document button {
  width: 100%;
  min-height: 40px;
  margin-top: 18px;
  color: #fff;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  font-weight: 800;
}

@keyframes float-doc {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

.stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid #e2ddd5;
  background: #fff;
}

.stats-banner div {
  padding: 32px 20px;
  text-align: center;
}

.stats-banner div + div {
  border-left: 1px solid #e2ddd5;
}

.stats-banner strong {
  display: block;
  color: var(--navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 42px;
  line-height: 1;
}

.stats-banner span {
  color: #8896a8;
  font-size: 14px;
}

.home-section {
  padding: 88px 24px;
}

.featured-section,
.why-section,
.blog-preview {
  background: #f8f7f4;
}

.category-section,
.seo-copy,
.home-faq {
  background: #fff;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading span {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
}

.section-heading h2,
.seo-copy h2,
.final-cta h2 {
  margin: 10px 0;
  color: var(--navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.08;
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
}

.featured-home-grid,
.home-category-grid,
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.featured-template-card,
.home-category-card,
.why-grid article {
  border: 1px solid #e2ddd5;
  border-radius: 12px;
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.featured-template-card {
  display: grid;
  gap: 12px;
  min-height: 268px;
  padding: 24px;
  text-align: left;
  border-top-width: 3px;
}

.featured-template-card:hover,
.home-category-card:hover,
.why-grid article:hover,
.blog-preview .blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--navy);
  box-shadow: 0 8px 32px rgba(12, 27, 51, 0.12);
}

.featured-template-card > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.featured-template-card small {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.mini-badge {
  padding: 4px 8px;
  color: var(--navy);
  border-radius: 999px;
  background: #f8f7f4;
  font-size: 11px;
  font-weight: 800;
}

.featured-template-card i,
.home-category-card i,
.why-grid i {
  font-style: normal;
  font-size: 40px;
}

.featured-template-card h3,
.home-category-card h3,
.why-grid h3 {
  margin: 0;
  color: var(--navy);
  font-size: 17px;
}

.featured-template-card p,
.home-category-card p,
.why-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.featured-template-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e2ddd5;
}

.featured-template-card footer span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.featured-template-card footer strong {
  color: var(--navy);
  font-size: 13px;
}

.accent-freelance { border-top-color: #0f766e; }
.accent-employment { border-top-color: #1d4ed8; }
.accent-rental { border-top-color: #b45309; }
.accent-business { border-top-color: #6d28d9; }
.accent-personal { border-top-color: #be123c; }

.btn-outline-navy,
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 34px auto 0;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.btn-outline-navy {
  color: var(--navy);
  border: 1px solid var(--navy);
  background: transparent;
}

.home-category-card {
  position: relative;
  min-height: 220px;
  padding: 28px 24px;
  text-align: center;
  background: #f8f7f4;
}

.home-category-card:hover {
  background: #fff;
}

.home-category-card strong {
  display: block;
  margin: 8px 0;
  color: #8896a8;
  font-size: 13px;
}

.home-category-card > span {
  display: block;
  margin-top: 12px;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.home-category-card:hover > span {
  opacity: 1;
}

.how-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.section-heading.light h2 {
  color: #fff;
}

.section-heading.light p {
  color: rgba(255, 255, 255, 0.6);
}

.steps-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1050px;
  margin: 0 auto 38px;
}

.steps-row::before {
  content: "";
  position: absolute;
  top: 92px;
  right: 16%;
  left: 16%;
  border-top: 2px dashed rgba(201, 168, 76, 0.4);
}

.steps-row article {
  position: relative;
  z-index: 1;
  text-align: center;
}

.steps-row b {
  display: block;
  color: rgba(201, 168, 76, 0.25);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 72px;
  line-height: 1;
}

.steps-row i {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -18px auto 18px;
  color: #fff;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 999px;
  background: var(--navy);
  font-style: normal;
  font-size: 30px;
}

.steps-row h3 {
  color: #fff;
}

.steps-row p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.7;
}

.how-section .btn-gold,
.featured-section .btn-outline-navy,
.blog-preview .btn-outline-navy {
  display: flex;
  width: fit-content;
}

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

.why-grid article {
  padding: 28px;
}

.seo-copy {
  max-width: 860px;
  margin: 0 auto;
}

.seo-copy p,
.seo-copy h3 {
  color: #4a5568;
  font-size: 17px;
  line-height: 1.85;
}

.seo-copy h3 {
  margin: 28px 0 8px;
  color: var(--navy);
  font-family: Outfit, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.blog-preview .blog-grid {
  max-width: 1080px;
  margin: 0 auto;
}

.home-faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq-accordion details {
  border-bottom: 1px solid #e2ddd5;
}

.faq-accordion summary {
  position: relative;
  padding: 20px 36px 20px 0;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq-accordion summary::after {
  content: "+";
  position: absolute;
  right: 0;
  transition: transform 0.2s ease;
}

.faq-accordion details[open] summary::after {
  transform: rotate(45deg);
}

.faq-accordion p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(135deg, #0c1b33, #1a3a6b);
}

.final-cta::before {
  content: "§  §  §";
  position: absolute;
  inset: 16px;
  color: rgba(255, 255, 255, 0.05);
  font-family: Georgia, serif;
  font-size: 120px;
  letter-spacing: 34px;
}

.final-cta h2 {
  position: relative;
  color: #fff;
  font-style: italic;
}

.final-cta p {
  position: relative;
  max-width: 680px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 18px;
  line-height: 1.7;
}

.final-cta > div {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.btn-outline-white {
  margin: 0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.reveal,
.featured-home-grid > *,
.home-category-grid > *,
.why-grid > *,
.blog-grid > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible,
.featured-home-grid > *.visible,
.home-category-grid > *.visible,
.why-grid > *.visible,
.blog-grid > *.visible {
  opacity: 1;
  transform: none;
}

.featured-home-grid > *,
.home-category-grid > *,
.why-grid > *,
.blog-grid > * {
  transition-delay: calc((var(--i, 1) - 1) * 80ms);
}

.back-home {
  position: fixed;
  top: 96px;
  left: 22px;
  z-index: 900;
  min-height: 36px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(23, 32, 51, 0.12);
}

.dashboard-hero {
  padding: 54px 24px 34px;
  text-align: center;
  background: #f8f7f4;
  border-bottom: 1px solid #e2ddd5;
}

.dashboard-hero h2 {
  margin: 14px 0 10px;
  color: var(--navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
}

.dashboard-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.dashboard-hero .quick-start {
  margin-top: 22px;
}

.dashboard-empty {
  min-height: 540px;
}

.empty-icon {
  font-size: 64px;
}

.quick-start {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.quick-start button,
.quick-start a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100vh - 460px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  color: #fff;
  background: #12343b;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
}

.brand h1,
.brand p,
.panel-header h2,
.builder-header h2,
.empty-state h2,
.preview-wrap h3 {
  margin: 0;
}

.brand h1 {
  font-size: 20px;
  line-height: 1.15;
}

.brand p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.search-box {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.1);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.filter-heading {
  margin-bottom: -10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.84);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
}

.category-button.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
}

.category-button span:last-child {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.catalog-stats {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
}

.catalog-stats strong {
  display: block;
  color: #fff;
  font-size: 28px;
}

.workspace {
  display: block;
  gap: 24px;
  padding: 28px;
  min-width: 0;
}

.template-panel,
.builder-panel {
  min-width: 0;
}

.panel-header,
.builder-header,
.preview-wrap > header,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-header {
  margin-bottom: 16px;
}

.panel-header p,
.builder-header p {
  margin: 5px 0 0;
  color: var(--muted);
}

.icon-button,
.ghost-button,
.primary-button,
.secondary-button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.icon-button {
  width: 42px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  align-content: start;
  max-height: none;
  overflow: visible;
  padding-right: 4px;
}

.template-card {
  display: grid;
  gap: 10px;
  min-height: 250px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.04);
}

.template-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.template-card:hover {
  transform: translateY(-3px);
  border-color: var(--navy);
  box-shadow: 0 12px 34px rgba(12, 27, 51, 0.12);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.template-icon {
  font-size: 26px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  padding: 3px 7px;
  border-radius: 999px;
  color: #335;
  background: var(--soft);
  font-size: 11px;
  font-weight: 800;
}

.premium-badge {
  color: #3b2b00;
  background: #fff1b8;
}

.template-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.25;
}

.template-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.template-card footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.template-card footer span:last-child {
  color: var(--navy);
  font-weight: 800;
}

.builder-panel {
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.empty-state {
  display: grid;
  place-content: center;
  min-height: calc(100vh - 96px);
  text-align: center;
}

.empty-state p {
  color: var(--muted);
}

.hidden {
  display: none;
}

.selected-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
}

.ghost-button,
.secondary-button {
  padding: 0 13px;
  color: var(--ink);
}

.field-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 7px;
}

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

.field label {
  color: #39465a;
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #fbfcfe;
}

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

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 20px 0;
}

.primary-button {
  padding: 0 16px;
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  font-weight: 800;
}

.site-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-topbar .brand {
  color: var(--ink);
  text-decoration: none;
}

.site-topbar .brand p {
  color: var(--muted);
}

.site-topbar .brand-mark {
  color: #fff;
  background: var(--navy);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.top-nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--ink);
}

.ad-slot {
  background: #f8f7f4;
  border: 1px dashed #cbd5e0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 24px auto;
}

.ad-leaderboard {
  width: calc(100% - 32px);
  max-width: 728px;
  height: 90px;
}

.ad-rectangle {
  width: 300px;
  max-width: 100%;
  height: 250px;
}

.legal-disclaimer-bar {
  padding: 16px 24px;
  color: #596171;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  background: #fff8e7;
  border-top: 2px solid var(--gold);
}

.site-footer {
  color: #fff;
  background: var(--navy);
  border-top: 3px solid var(--gold);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 36px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px 32px;
}

.footer-brand-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 19px;
}

.footer-brand-row .brand-mark {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.footer-tagline,
.footer-small,
.footer-bottom,
.footer-center {
  color: rgba(255, 255, 255, 0.68);
}

.footer-small {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
}

.footer-column h2,
.footer-column h3 {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  line-height: 1.35;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.footer-legal-links {
  gap: 14px;
}

.footer-legal-links a {
  width: auto;
  height: auto;
  color: rgba(255, 255, 255, 0.72);
  border: 0;
  border-radius: 0;
  font-size: 13px;
}

.footer-legal-links a:hover {
  color: #fff;
}

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: none;
  width: min(520px, calc(100vw - 48px));
  transform: translateY(22px);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  background: #fff;
  border: 1px solid #d8deea;
  border-top: 4px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(12, 27, 51, 0.2);
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.cookie-copy h2 {
  margin: 4px 0 8px;
  color: var(--navy);
  font-size: 22px;
}

.cookie-copy p,
.cookie-note {
  margin: 0;
  color: #4a5568;
  font-size: 14px;
  line-height: 1.65;
}

.cookie-label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cookie-options {
  display: grid;
  gap: 10px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.cookie-option strong,
.cookie-option small {
  display: block;
}

.cookie-option strong {
  color: var(--navy);
  font-size: 14px;
}

.cookie-option small {
  margin-top: 3px;
  color: #647084;
  font-size: 12px;
  line-height: 1.45;
}

.cookie-option input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: var(--navy);
}

.cookie-option.disabled {
  background: #eef3f7;
}

.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.cookie-actions button,
.content-button,
.outline-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 800;
}

.cookie-essential,
.cookie-save,
.outline-button {
  color: var(--navy);
  border: 1px solid var(--navy);
  background: #fff;
}

.cookie-save {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.cookie-accept,
.content-button {
  color: #fff;
  border: 1px solid var(--navy);
  background: var(--navy);
}

.cookie-note a {
  color: var(--navy);
  font-weight: 800;
}

.page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px 72px;
}

.page-header {
  margin-bottom: 32px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.breadcrumb a:hover,
.content-body a,
.article-layout a {
  color: var(--navy);
  text-decoration: underline;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--navy);
  border: 1px solid rgba(201, 168, 76, 0.55);
  border-radius: 999px;
  background: #fff8e7;
  font-size: 12px;
  font-weight: 800;
}

.page-header h1 {
  margin: 16px 0 12px;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.page-subtitle {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: #2f3a4c;
  font-weight: 800;
}

.tool-embed {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
  margin: 34px 0;
}

.tool-card,
.content-card,
.about-card,
.toc-box,
.takeaways,
.cta-box,
.newsletter {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.04);
}

.tool-card {
  padding: 22px;
}

.tool-card h2,
.content-section h2,
.article-body h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  line-height: 1.2;
}

.tool-preview {
  min-height: 620px;
}

.download-pdf {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  font-weight: 800;
}

.content-section {
  margin: 48px 0;
}

.content-section p,
.content-section li,
.content-body p,
.content-body li,
.article-body p,
.article-body li {
  color: #4a5568;
  font-size: 17px;
  line-height: 1.85;
}

.content-section li,
.article-body li {
  margin: 10px 0;
}

.content-section ul,
.article-body ul {
  list-style: square;
}

.content-section li::marker,
.article-body li::marker {
  color: var(--gold);
}

.related-grid,
.blog-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.content-card,
.about-card {
  display: block;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.content-card h3,
.about-card h3,
.article-body h3 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-family: Outfit, sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  padding: 16px 0;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.faq-item p {
  margin-top: 0;
}

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

.blog-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.blog-card h2,
.blog-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.blog-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.filter-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.3fr);
  gap: 34px;
  align-items: start;
}

.article-body {
  min-width: 0;
}

.article-body blockquote {
  margin: 28px 0;
  padding-left: 18px;
  border-left: 4px solid var(--gold);
  color: #475569;
  font-style: italic;
}

.toc-box,
.takeaways,
.cta-box,
.newsletter {
  padding: 18px;
}

.toc-box a,
.quick-tools a {
  display: block;
  margin: 10px 0;
}

.takeaways {
  background: #edf3fa;
}

.cta-box {
  margin: 30px 0;
  background: #fff8e7;
  border-color: rgba(201, 168, 76, 0.45);
}

.article-sidebar {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 18px;
}

.newsletter input {
  width: 100%;
  min-height: 42px;
  margin: 10px 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.newsletter button {
  width: 100%;
}

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

.primary-button:hover {
  background: var(--accent-strong);
}

.preview-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.preview-wrap > header {
  padding: 14px 16px;
  background: var(--soft);
}

#validationStatus {
  color: var(--warn);
  font-size: 13px;
  font-weight: 800;
}

#validationStatus.ready {
  color: var(--accent);
}

#contractPreview,
#templatePreview {
  min-height: 360px;
  max-height: 520px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #20283a;
  background: #fff;
  line-height: 1.65;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

#contractPreview[contenteditable="true"],
#templatePreview[contenteditable="true"] {
  outline: none;
  caret-color: var(--navy);
}

#contractPreview[contenteditable="true"]:focus,
#templatePreview[contenteditable="true"]:focus {
  box-shadow: inset 0 0 0 2px rgba(201, 168, 76, 0.35);
}

.contract-document {
  max-width: 760px;
  margin: 0 auto;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
}

.contract-title {
  margin-bottom: 28px;
  padding-bottom: 18px;
  text-align: center;
  border-bottom: 2px solid #111827;
}

.contract-title h1 {
  margin: 0;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contract-title p {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 12px;
  font-style: italic;
}

.contract-document section {
  margin: 22px 0;
}

.contract-document h2 {
  margin: 0 0 8px;
  color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
}

.contract-document p {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.65;
}

.contract-party-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0 12px;
}

.contract-party-card {
  padding: 12px 14px;
  border: 1px solid #d7dde8;
  border-radius: 6px;
  background: #fafafa;
}

.contract-party-card h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contract-party-card p {
  margin-bottom: 5px;
}

.contract-blank {
  display: inline-block;
  min-width: 120px;
  height: 1.2em;
  margin: 0 2px;
  vertical-align: -0.12em;
  border-bottom: 1px solid #6b7280;
}

.contract-field-list,
.contract-term-list {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.contract-field-list p,
.contract-term-list p {
  margin: 0 0 4px;
}

.contract-field-list strong,
.contract-term-list strong {
  color: #111827;
  font-weight: 700;
}

.contract-term-list p {
  padding-left: 14px;
  text-indent: -14px;
}

.signature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 34px;
}

.signature-grid div {
  padding-top: 34px;
  border-top: 1.5px solid #111827;
}

.signature-grid span,
.signature-grid strong {
  display: inline-block;
  color: #374151;
  font-size: 12px;
}

.signature-grid strong {
  float: right;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .app-shell,
  .workspace {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .category-list {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .builder-panel {
    position: static;
    max-height: none;
  }

  .template-grid {
    max-height: none;
  }

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

  .footer-bottom,
  .tool-embed,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .footer-social,
  .footer-center {
    justify-content: flex-start;
    text-align: left;
  }

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

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

  .article-sidebar {
    position: static;
  }

  .home-nav {
    grid-template-columns: auto auto auto;
  }

  .home-nav-links {
    display: none;
  }

  .home-nav > .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .floating-document {
    display: none;
  }

  .featured-home-grid,
  .home-category-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-row {
    grid-template-columns: 1fr;
  }

  .steps-row::before {
    display: none;
  }

  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .sidebar,
  .workspace,
  .builder-panel {
    padding: 16px;
  }

  .field-form {
    grid-template-columns: 1fr;
  }

  .contract-party-grid {
    grid-template-columns: 1fr;
  }

  .site-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner,
  .related-grid,
  .feature-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding-top: 44px;
  }

  .page-wrap {
    padding: 32px 16px 56px;
  }

  .cookie-actions {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .home-nav {
    padding: 0 16px;
  }

  .home-hero {
    min-height: auto;
    padding: 64px 16px;
  }

  .hero-search {
    grid-template-columns: auto 1fr;
    padding: 12px;
  }

  .hero-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero-actions,
  .final-cta > div {
    flex-direction: column;
  }

  .hero-actions .btn-gold,
  .final-cta .btn-gold,
  .btn-outline-white,
  .btn-outline-navy {
    width: 100%;
  }

  .hero-trust {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-trust span + span {
    padding-left: 0;
    border-left: 0;
  }

  .stats-banner strong {
    font-size: 34px;
  }

  .featured-home-grid,
  .home-category-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .home-section {
    padding: 60px 16px;
  }

  .back-home {
    top: 84px;
    left: 12px;
  }

  .dashboard-hero {
    padding: 64px 16px 28px;
  }
}

@media print {
  @page {
    size: 8.5in 200in;
    margin: 0.65in;
  }

  body {
    margin: 0;
    background: #fff;
  }

  body * {
    visibility: hidden !important;
  }

  #contractPreview,
  #contractPreview *,
  #templatePreview,
  #templatePreview * {
    visibility: visible !important;
  }

  .home-nav,
  .mobile-menu,
  .sidebar,
  .template-panel,
  .builder-header,
  .field-form,
  .actions,
  .preview-wrap > header,
  .site-footer,
  .legal-disclaimer-bar,
  .cookie-banner,
  .ad-slot,
  .dashboard-help,
  .back-home,
  [data-site-footer] {
    display: none !important;
  }

  #contractPreview,
  #templatePreview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 0;
    max-height: none;
    padding: 0;
    overflow: visible;
    color: #111827;
    background: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11.5pt;
    line-height: 1.55;
    border: 0;
    box-shadow: none;
  }

  .builder-panel,
  .tool-card,
  .preview-wrap {
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  .contract-document {
    max-width: none;
  }

  .contract-title h1 {
    font-size: 18pt;
  }

  .contract-document h2 {
    font-size: 12pt;
  }

  .contract-document p,
  .contract-field-list,
  .contract-term-list {
    font-size: 10.5pt;
  }
}
