/* /docs — bid & invoice template landings */
.docs-page {
  --docs-black: #141414;
  --docs-chalk: #f4f2ec;
  --docs-concrete: #8a9097;
  --docs-line: #d7dbde;
  --docs-hivis: #ffd400;
  background: #0f0f0f;
  color: var(--docs-chalk);
}

.docs-page .site-header {
  background: rgba(15, 15, 15, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.docs-kicker {
  font-family: var(--font-display, "Anton", Impact, sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--docs-hivis);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.1;
  margin: 0 0 0.65rem;
}

.docs-hero {
  padding: 2.5rem 0 2rem;
  max-width: 42rem;
}
/* Hub heroes share .container — match gallery / section width */
.docs-hero.container {
  max-width: var(--maxw);
  width: 100%;
}
.docs-hero--compact {
  padding-top: 1.5rem;
}
.docs-hero h1 {
  font-family: var(--font-display, "Anton", Impact, sans-serif);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
  color: #fff;
  text-transform: uppercase;
}
.docs-hero__lead {
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--docs-concrete);
  margin: 0 0 1.5rem;
}
.docs-hero__lead strong {
  color: var(--docs-chalk);
}
.docs-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Above-the-fold trade capture */
.docs-fold {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  display: flex;
  align-items: center;
  padding: 2rem 0 2.5rem;
  overflow: hidden;
}
.docs-fold__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.docs-fold__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.docs-fold__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.78) 48%, rgba(10, 10, 10, 0.45) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.55), transparent 40%);
}
.docs-fold__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  align-items: center;
}
@media (min-width: 900px) {
  .docs-fold__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 22rem);
    gap: 2rem;
  }
}
.docs-fold__copy h1 {
  font-family: var(--font-display, "Anton", Impact, sans-serif);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  text-transform: none;
  color: #fff;
  margin: 0 0 0.85rem;
  max-width: min(100%, 28ch);
  letter-spacing: 0.01em;
}
.docs-fold__copy .docs-hero__lead {
  margin-bottom: 0;
  max-width: 34rem;
}

.docs-section {
  padding: 2rem 0 2.5rem;
}
.docs-section h2 {
  font-family: var(--font-display, "Anton", Impact, sans-serif);
  text-transform: uppercase;
  font-size: 1.6rem;
  margin: 0 0 0.65rem;
  color: #fff;
}
.docs-section h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  color: #fff;
}
.docs-section__lead {
  color: var(--docs-concrete);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}
.docs-section--rich {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
/* Hub content + FAQ use .container — match gallery width */
.docs-section--rich.container {
  max-width: var(--maxw);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.docs-section.container > .docs-section__lead {
  max-width: none;
}
.docs-section--rich p {
  color: var(--docs-concrete);
  line-height: 1.55;
  margin: 0 0 0.85rem;
}
.docs-section--rich p strong {
  color: var(--docs-chalk);
}
.docs-section__links {
  margin-top: 1.5rem !important;
  font-size: 0.95rem;
}
.docs-section__links a {
  color: var(--docs-hivis);
  text-decoration: none;
  margin-right: 0.15rem;
}
.docs-section__links a:hover {
  text-decoration: underline;
}

.docs-faq {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.docs-faq__item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a1a1a;
  padding: 0;
}
.docs-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.35;
}
.docs-faq__item summary::-webkit-details-marker {
  display: none;
}
.docs-faq__item summary::after {
  content: "+";
  float: right;
  color: var(--docs-hivis);
  font-weight: 700;
}
.docs-faq__item[open] summary::after {
  content: "–";
}
.docs-faq__a {
  padding: 0 1rem 1rem;
}
.docs-faq__a p {
  margin: 0;
  color: var(--docs-concrete);
  line-height: 1.55;
}

.docs-steps {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--docs-chalk);
  line-height: 1.5;
}
.docs-steps li {
  margin-bottom: 0.45rem;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.docs-card {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.docs-card:hover {
  border-color: var(--docs-hivis);
  transform: translateY(-2px);
}
.docs-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.docs-card__body {
  padding: 0.9rem 1rem 1.1rem;
}
.docs-card__body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  color: #fff;
}
.docs-card__body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--docs-concrete);
}

.docs-job-list {
  columns: 1;
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--docs-chalk);
}
@media (min-width: 640px) {
  .docs-job-list {
    columns: 2;
  }
}
.docs-job-list li {
  margin-bottom: 0.35rem;
  break-inside: avoid;
}

/* Gate — chalk card on dark fold */
.docs-gate {
  background: var(--docs-chalk);
  color: var(--docs-black);
}
.docs-gate--fold {
  border-radius: 2px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.docs-gate__panel {
  padding: 1.15rem 1.15rem 1.25rem;
}
.docs-gate h2 {
  font-family: var(--font-display, "Anton", Impact, sans-serif);
  text-transform: uppercase;
  font-size: 1.35rem;
  margin: 0 0 0.45rem;
  line-height: 1.1;
}
.docs-gate__lead {
  margin: 0 0 0.35rem;
  line-height: 1.35;
  font-size: 0.95rem;
}
.docs-gate__why {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  color: #5a6066;
}
.docs-form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.docs-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.docs-form input[type="email"] {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--docs-black);
  background: #fff;
  font-size: 1rem;
  color: var(--docs-black);
  box-sizing: border-box;
}
.docs-form input:focus {
  outline: 2px solid var(--docs-hivis);
  outline-offset: 1px;
}
.docs-form .btn {
  min-height: 2.65rem;
  width: 100%;
}
.docs-form__error {
  color: #c81e1e;
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
}

.docs-success {
  margin-top: 0.25rem;
  padding: 1rem;
  background: #fff;
  border-left: 4px solid var(--docs-hivis);
}
.docs-success h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}
.docs-success p {
  margin: 0 0 0.65rem;
  line-height: 1.4;
  font-size: 0.95rem;
}
.docs-success__app a {
  color: var(--docs-black);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-page .site-footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.docs-page .btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--docs-chalk);
  text-decoration: none;
  font-weight: 600;
}
.docs-page .btn--ghost:hover {
  border-color: var(--docs-hivis);
  color: #fff;
}

@media (max-width: 899px) {
  .docs-fold {
    min-height: auto;
    padding-top: 1.25rem;
  }
  .docs-fold__copy h1 {
    max-width: none;
  }
}

/* Download gate — HTTPS page so FUB/SendGrid HTTP click trackers don't trip Chrome */

.docs-get-fold {
  justify-content: center;
}
.docs-get-fold .docs-fold__inner {
  grid-template-columns: 1fr;
  max-width: min(56rem, 100%);
  margin-inline: auto;
  justify-items: center;
  text-align: center;
  width: 100%;
}
.docs-get-fold .docs-fold__copy {
  width: 100%;
  max-width: 52rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: clamp(1.35rem, 3vw, 2.25rem) clamp(1.25rem, 3.5vw, 2.75rem);
  background: rgba(10, 10, 10, 0.42);
  border: 1px solid rgba(255, 212, 0, 0.55);
  border-radius: 14px;
  backdrop-filter: blur(2px);
}
.docs-get-fold .docs-fold__copy h1 {
  margin-bottom: 0.75rem;
  max-width: none;
  width: 100%;
  font-size: clamp(1.85rem, 1.25rem + 1.8vw, 2.85rem);
  text-wrap: balance;
}
.docs-get-fold .docs-hero__lead {
  max-width: 44rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}
.docs-get__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.35rem auto 1.1rem;
  max-width: 32rem;
  width: 100%;
}
.docs-get__actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.docs-get__note {
  font-size: 0.9rem;
  color: rgba(244, 242, 236, 0.78);
  margin: 0 auto;
  line-height: 1.45;
  max-width: 40rem;
  width: 100%;
  text-wrap: pretty;
}
.docs-get__note a { color: #fff; }
@media (max-width: 420px) {
  .docs-get__actions {
    grid-template-columns: 1fr;
  }
}
