/* Homepage continuation of the module hub's editorial design. */
.home-editorial.home-dark main > :is(.logo-band, .why-smartdocu, .home-offer, .security, .expertise, .references) {
  color: #3d4842;
  background: #fff;
}
.home-editorial main > :is(.logo-band, .section) > .section-inner {
  width: min(1180px, calc(100% - 64px));
}
.home-editorial main > :is(.why-smartdocu, .home-offer, .security, .expertise, .references) {
  padding-block: 64px;
}
.home-editorial main > :is(.home-offer, .security, .expertise, .references) > .section-inner {
  padding-top: 0;
  border-top: 0;
}
.home-editorial.home-dark main > .home-tone-sage { background: #f5f7f1; }
.home-editorial.home-dark main > .home-tone-mist { background: #edf3f0; }
.home-editorial main > :is(.why-smartdocu, .home-offer, .security, .expertise, .references, .contact) :is(h2, h3) {
  color: #203527;
  font-weight: 520;
  letter-spacing: -.04em;
  line-height: 1.18;
  hyphens: manual;
  text-wrap: balance;
}
.home-editorial main > :is(.why-smartdocu, .home-offer, .security, .expertise, .references, .contact) h2 {
  max-width: 740px;
  font-size: clamp(1.9rem, 3.1vw, 2.8rem);
}
.home-editorial main > :is(.why-smartdocu, .home-offer, .security, .expertise, .references) p:not(.eyebrow) {
  color: #3d4842;
  line-height: 1.75;
  font-size: .95rem;
}
.home-editorial main > :is(.why-smartdocu, .home-offer, .security, .expertise, .references, .contact) .eyebrow {
  margin: 0 0 20px;
  color: #476d2e;
  font-family: Inter, Arial, sans-serif;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.home-editorial .why-smartdocu-heading { max-width: 740px; margin-bottom: 48px; }
.home-editorial .why-smartdocu-heading::after { display: none; }
.home-editorial .why-smartdocu-grid { gap: 28px; }
.home-editorial.home-dark .why-smartdocu-card {
  min-height: 0;
  grid-template-rows: 160px 1fr;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-editorial .why-smartdocu-media { border-radius: 16px; background: #edf2e7; }
.home-editorial .why-smartdocu-card:nth-child(2) .why-smartdocu-media { background: #e9f1ee; }
.home-editorial .why-smartdocu-content { padding: 24px 0 0; }
.home-editorial .why-smartdocu-content h3 { font-size: 1.4rem; }
.home-editorial :is(.home-offer-layout, .security-layout, .expertise-layout) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 70px;
}
.home-editorial .home-offer-media { order: 2; }
.home-editorial .home-offer-reverse .home-offer-media { order: 0; }
.home-editorial .home-offer-symbol { min-height: 280px; border-radius: 16px; background: #edf2e7; }
.home-editorial .home-offer-alt .home-offer-symbol { background: #e9f1ee; }
.home-editorial .home-offer-symbol img { width: min(50%, 210px); }
.home-editorial .home-offer-copy .button-secondary {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  color: #365e20;
  background: transparent;
  box-shadow: none;
  font-size: .86rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.home-editorial .home-offer-copy .button-secondary:hover { color: #172e0e; }
.home-editorial.home-dark .trust-grid > div { border: 0; border-radius: 16px; background: #edf2e7; }
.home-editorial .expertise-video-frame { padding: 24px; border: 0; border-radius: 16px; background: #e9f1ee; box-shadow: none; }
.home-editorial .expertise-video-frame video { border-radius: 8px; }
.home-editorial .reference-grid { gap: 32px; }
.home-editorial.home-dark .reference { border: 0; border-radius: 16px; background: #f3f5f0; box-shadow: none; }
.home-editorial .reference h3 { font-size: 1.5rem; }
.home-editorial .reference blockquote { margin: 20px 0 0; color: #304d34; line-height: 1.75; }
.home-editorial.home-dark .contact { padding-block: 80px; background: #111c1a; }
.home-editorial.home-dark .contact h2 { color: #fff; }
.home-editorial.home-dark .contact .eyebrow { color: #a2df63; }
.home-editorial.home-dark .contact-panel { border-color: #43524b; border-radius: 16px; background: #1e2a27; box-shadow: none; }
.home-editorial .contact-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.home-editorial .logo-band p { color: #56664f; font-size: .73rem; letter-spacing: .1em; }
@media (max-width: 1000px) {
  .home-editorial :is(.home-offer-layout, .security-layout, .expertise-layout) { gap: 36px; }
}
@media (max-width: 760px) {
  .home-editorial main > :is(.logo-band, .section) > .section-inner { width: calc(100% - 40px); }
  .home-editorial main > :is(.why-smartdocu, .home-offer, .security, .expertise, .references) { padding-block: 40px; }
  .home-editorial main > :is(.home-offer, .security, .expertise, .references) > .section-inner { padding-top: 0; }
  .home-editorial :is(.why-smartdocu-grid, .home-offer-layout, .security-layout, .expertise-layout, .reference-grid) { grid-template-columns: 1fr; gap: 32px; }
  .home-editorial .home-offer-media { order: 0; }
  .home-editorial .home-offer-symbol { min-height: 180px; }
  .home-editorial .expertise-video-frame { padding: 20px; }
  .home-editorial.home-dark .contact { padding-block: 56px; }
}

/* Keep the three seals at comparable visual heights across the hero widths. */
.home-editorial.home-dark .hero-trust{width:min(100%,560px);max-width:none;grid-template-columns:2.5fr 3.8fr 4fr;gap:16px;padding:16px}
.home-editorial.home-dark .hero-trust-item img{width:100%;height:44px;max-width:none;max-height:none;object-fit:contain}
.home-editorial.home-dark .hero-start-note{font-size:.9375rem;line-height:1.5}
.home-editorial.home-dark .hero-start-note a{color:inherit;text-decoration:underline;text-underline-offset:4px}
@media(max-width:480px){
 .home-editorial.home-dark .hero-trust{width:min(100%,360px);grid-template-columns:2.5fr 3.8fr;gap:12px;padding:12px}
 .home-editorial.home-dark .hero-trust-item:last-child{grid-column:1/-1}
 .home-editorial.home-dark .hero-trust-item img{height:36px}
 .home-editorial.home-dark .hero-trust-item:last-child img{width:180px;max-width:100%}
}

/* Approved homepage video controls, scoped to this page. */

.home-editorial .video-player {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
}

.home-editorial .video-player video {
  display: block;
}

.home-editorial .video-start-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  padding: 20px;
  border: 0;
  border-radius: inherit;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 28, 26, 0.08), rgba(17, 28, 26, 0.4));
  font: inherit;
  cursor: pointer;
}

.home-editorial .video-start-overlay[hidden] {
  display: none;
}

.home-editorial .video-start-icon {
  display: grid;
  place-items: center;
  width: clamp(60px, 7vw, 84px);
  aspect-ratio: 1;
  border: 2px solid #fff;
  border-radius: 50%;
  color: var(--ink);
  background: var(--green);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.home-editorial .video-start-icon svg {
  width: 42px;
  height: 42px;
}

.home-editorial .video-start-label {
  padding: 7px 16px;
  border-radius: 999px;
  background: #111c1a;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.home-editorial .video-start-overlay:hover .video-start-icon,
.home-editorial .video-start-overlay:focus-visible .video-start-icon {
  background: #fff;
}

.home-editorial .video-start-overlay:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: -5px;
}

/* Customer videos: compact cards and quiet, accessible playback controls. */
.home-editorial .references .section-heading { margin-bottom: 32px; }
.home-editorial .reference-grid { gap: 28px; align-items: stretch; }
.home-editorial.home-dark .reference {
  min-width: 0;
  border: 1px solid #d6e0da;
  border-radius: 12px;
  background: #fff;
}
.home-editorial .reference .video-player { border-radius: 0; }
.home-editorial .reference > div { padding: 24px; }
.home-editorial .reference h3 { margin: 0 0 8px; font-size: 1.25rem; letter-spacing: -.025em; }
.home-editorial.home-dark .reference > div > p { margin: 0; font-size: .875rem; line-height: 1.6; }
.home-editorial .reference .video-start-overlay {
  inset: auto auto 20px 20px;
  width: auto;
  height: auto;
  max-width: calc(100% - 40px);
  min-height: 52px;
  flex-direction: row;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 1px solid #d6e0da;
  border-radius: 999px;
  color: #203527;
  background: #fff;
  box-shadow: 0 2px 12px #111c1a18;
}
.home-editorial .reference .video-start-icon {
  flex: 0 0 34px;
  width: 34px;
  border: 0;
  color: #365e20;
  background: #edf3e6;
  box-shadow: none;
}
.home-editorial .reference .video-start-icon svg { width: 18px; height: 18px; }
.home-editorial .reference .video-start-label { padding: 0; color: inherit; background: none; font-size: .875rem; }
.home-editorial .reference .video-start-overlay:hover { background: #f5f7f1; }
.home-editorial .reference .video-start-overlay:focus-visible { outline: 3px solid #476d2e; outline-offset: 3px; }
@media (max-width: 760px) {
  .home-editorial .references .section-heading { margin-bottom: 24px; }
  .home-editorial .reference > div { padding: 20px; }
  .home-editorial .reference .video-start-overlay { inset: auto auto 16px 16px; max-width: calc(100% - 32px); }
}

/* A compact proof strip rather than six large logo cards. */
.home-editorial.home-dark .logo-band { padding-block: 28px; }
.home-editorial .logo-band .logo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 920px; margin-inline: auto; gap: 12px 20px; }
.home-editorial.home-dark .logo-band .logo-grid img { justify-self: center; width: 100%; max-width: 148px; height: 72px; aspect-ratio: auto; padding: 0; border: 0; border-radius: 0; background: transparent; object-fit: contain; }
@media (max-width: 760px) {
  .home-editorial .logo-band .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .home-editorial.home-dark .logo-band .logo-grid img { max-width: 104px; height: 52px; padding: 0; }
}
