/* ============================================================================
   SmartComply demo page
   ---------------------------------------------------------------------------
   Built to the owner's five-section design: introduction, how to try the demo,
   the sample library, what the examples show, and the request form.

   The shared product-page rhythm (`.scf` form, `.btn`, `.badge`) comes from
   product-page.css, which this page also loads. Everything here belongs to the
   demo: the two-panel reader illustration, the sample cards with their
   check-list and "try this" callout, and the split request section.

   NOTE ON SCOPING. Every page stylesheet ends up in one bundle, so each rule
   here is prefixed `scd-` and nothing reaches another page.
   ========================================================================= */

.scd-hero__inner > *,
.scd-grid > *,
.scd-out__grid > *,
.scd-req__inner > * { min-width: 0; }

/* --- Shared section head ---------------------------------------------- */

.scd-head { max-width: 62ch; margin-bottom: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }
.scd-head__title { margin-top: 1rem; }
.scd-head__lead { margin-top: 1rem; color: var(--text-secondary); }

/* The centred variant the design uses for sections 2 and 4. */
.scd-how .scd-head,
.scd-out .scd-head { margin-inline: auto; text-align: center; }

/* --- Chips (hero claims, and the request section's document kinds) ------ */

.scd-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--ink-800);
  box-shadow: var(--e-1);
}
.scd-chip__icon { flex: none; color: var(--blue-600); }

/* --- 1. Introduction ---------------------------------------------------- */

.scd-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(7rem, 5rem + 8vw, 11rem);
  padding-bottom: clamp(3.5rem, 2rem + 5vw, 5.5rem);
  background: var(--page);
}
.scd-hero__field { position: absolute; inset: 0; background: var(--page-wash); pointer-events: none; }

/* The restrained park line-art the mockups carry in the lower corners. */
.scd-hero__art {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  color: var(--blue-200);
  opacity: 0.6;
  pointer-events: none;
}

.scd-hero__art .cpark { width: clamp(9rem, 16vw, 15rem); height: auto; }

.scd-hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  align-items: center;
}
.scd-hero__title { max-width: 15ch; margin-top: 1.1rem; }
.scd-hero__lead { margin-top: 1.3rem; max-width: 52ch; color: var(--text-secondary); }

/* The pale statement strip: what the product does, and does not do. */
.scd-strip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-lg);
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: var(--lh-snug);
}
.scd-strip__icon { flex: none; color: var(--blue-600); margin-top: 0.05rem; }

.scd-hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

.scd-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.scd-hero__note {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 78ch;
}
.scd-hero__caption {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

@media (min-width: 1040px) {
  .scd-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    column-gap: clamp(2.5rem, 4vw, 4.5rem);
  }
  .scd-hero__copy { grid-column: 1; grid-row: 1; }
  .scd-hero__visual { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .scd-hero__chips { grid-column: 1; grid-row: 2; }
  .scd-hero__note { grid-column: 1 / -1; grid-row: 3; }
}

/* --- The two-panel illustration ---------------------------------------- */

.scd-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.1rem);
}
.scd-demo__arrow { display: grid; place-items: center; color: var(--blue-600); }

.scd-demo__doc,
.scd-demo__reader {
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--e-2);
  padding: 0.85rem;
}
/* The source panel's clipped corner, the way a page turn reads. */
.scd-demo__doc { position: relative; }
.scd-demo__doc::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1.6rem;
  height: 1.6rem;
  background: linear-gradient(225deg, var(--page) 50%, transparent 50%);
  border-top-right-radius: var(--r-lg);
}

.scd-demo__tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-900);
}
.scd-demo__pdf {
  display: grid;
  place-items: center;
  padding: 0.2rem 0.4rem;
  border-radius: var(--r-xs);
  background: var(--danger);
  color: #fff;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}
.scd-demo__tag--reader { color: var(--blue-800); }

.scd-demo__sheet,
.scd-demo__screen {
  display: grid;
  gap: 0.4rem;
  padding: 0.75rem;
  border-radius: var(--r-sm);
  background: var(--bg-sunken);
}
.scd-demo__screen { background: var(--white); }

.scd-demo__h {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 800;
  line-height: var(--lh-snug);
  color: var(--ink-900);
}
.scd-demo__h--big { font-size: var(--fs-body); color: var(--blue-900); }
.scd-demo__sub { margin: 0.25rem 0 0; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-900); }

.scd-demo__rule { height: 2px; background: var(--border-strong); }
.scd-demo__line { height: 0.45rem; border-radius: var(--r-pill); background: var(--ink-100); }
.scd-demo__line--short { width: 65%; }
.scd-demo__shot { height: 6.5rem;
    border-radius: var(--r-xs);
    background: url(https://www.smartroots.us/wp-content/uploads/2026/09/banner-comply.png);
    background-size: cover; }

.scd-demo__list { display: grid; gap: 0.35rem; margin: 0.2rem 0; padding: 0; list-style: none; }
.scd-demo__list li {
  height: 0.45rem;
  border-radius: var(--r-pill);
  background: var(--blue-100);
  position: relative;
  margin-left: 0.85rem;
}
.scd-demo__list li::before {
  content: '';
  position: absolute;
  left: -0.85rem;
  top: 50%;
  translate: 0 -50%;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--blue-500);
}
.scd-demo__table {
  height: 3rem;
  border-radius: var(--r-xs);
  border: 1px solid var(--blue-200);
  background:
    linear-gradient(var(--blue-100) 0 0) top / 100% 0.9rem no-repeat,
    var(--white);
}
.scd-demo__page { margin: 0.3rem 0 0; text-align: center; font-size: 0.6rem; color: var(--text-muted); }

.scd-demo__bar { display: flex; gap: 0.28rem; margin: 0 0 0.5rem; }
.scd-demo__bar span { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--blue-200); }

/* --- 2. How to try the demo -------------------------------------------- */

.scd-how { background: var(--page); }

.scd-steps {
  display: grid;
  gap: clamp(1rem, 0.5rem + 2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.scd-step {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem) 1.5rem;
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--e-1);
}
.scd-step__n {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  font-weight: 800;
  font-size: var(--fs-body);
}
.scd-step__icon { color: var(--blue-500); margin-block: 0.4rem; }
.scd-step__k { margin: 0; font-size: var(--fs-h4); font-weight: 800; color: var(--ink-900); }
.scd-step__d { margin: 0; font-size: var(--fs-sm); color: var(--text-secondary); max-width: 34ch; }

@media (min-width: 900px) {
  .scd-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* The connector between cards, as the design draws it. */
  .scd-step + .scd-step::before {
    content: '';
    position: absolute;
    left: calc(-1 * clamp(1rem, 0.5rem + 2vw, 2rem) - 1px);
    top: 50%;
    width: clamp(1rem, 0.5rem + 2vw, 2rem);
    height: 1px;
    background: var(--border-strong);
  }
}

.scd-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: fit-content;
  max-width: 100%;
  margin: clamp(2rem, 1.5rem + 2vw, 3rem) auto 0;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-pill);
  background: var(--blue-50);
  color: var(--blue-800);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
}
.scd-bar__icon { flex: none; color: var(--blue-600); }

/* --- 3. Sample library --------------------------------------------------- */

.scd-lib { background: var(--tint); }

.scd-grid {
  display: grid;
  gap: clamp(1.25rem, 0.75rem + 2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) { .scd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.scd-card { display: flex; }
.scd-card__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.9rem;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--e-1);
  transition: box-shadow var(--d-base) var(--ease-out-soft),
              transform var(--d-base) var(--ease-out-soft);
}
.scd-card__inner:hover { box-shadow: var(--e-3); transform: translateY(-2px); }
.scd-card__inner.is-pending { opacity: 0.72; }

.scd-card__head { display: flex; gap: 1rem; align-items: flex-start; }
.scd-card__icon { flex: none; color: var(--blue-500); margin-top: 0.15rem; }
.scd-card__title { margin: 0; }
.scd-card__kind { margin: 0.3rem 0 0; font-size: var(--fs-sm); color: var(--text-muted); }
.scd-card__desc { margin: 0.6rem 0 0; color: var(--text-secondary); }

.scd-card__k {
  margin: 0.2rem 0 0;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--blue-700);
}
.scd-card__checks { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.scd-card__checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: var(--fs-sm);
  color: var(--ink-800);
}
.scd-card__checks svg { flex: none; margin-top: 0.12rem; color: var(--blue-600); }

.scd-try {
  margin-top: auto;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--blue-50);
}
.scd-try__k {
  margin: 0 0 0.3rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--blue-700);
}
.scd-try__d { margin: 0; font-size: var(--fs-sm); color: var(--ink-800); }

.scd-card__note { margin: 0; font-size: var(--fs-xs); color: var(--text-muted); }

.scd-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.2rem;
}
.scd-card__pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.scd-card__pdf:hover { color: var(--blue-800); }
.scd-card__ext { font-size: 0.85em; }
.scd-card__soon { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); font-style: italic; }

/* The mockup puts the sample button before the PDF link on a phone; the
   source order already does that, so only the full-width button differs. */
@media (max-width: 559px) {
  .scd-card__actions .btn { width: 100%; justify-content: center; }
}

/* --- 4. What these examples demonstrate --------------------------------- */

.scd-out { background: var(--page); }

.scd-out__grid {
  display: grid;
  gap: clamp(1.25rem, 0.75rem + 2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) { .scd-out__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.scd-out__card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--e-1);
}
.scd-out__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
}
.scd-out__k { margin: 0; font-size: var(--fs-h4); font-weight: 800; color: var(--ink-900); }
.scd-out__d { margin: 0.5rem 0 0; font-size: var(--fs-sm); color: var(--text-secondary); }

/* --- 5. Try your own document ------------------------------------------- */

.scd-req { background: var(--tint); }

.scd-req__inner {
  display: grid;
  gap: clamp(2rem, 1.25rem + 3vw, 3.5rem);
  align-items: start;
}
@media (min-width: 1040px) {
  .scd-req__inner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }
}

.scd-req__title { margin-top: 1rem; max-width: 18ch; }
.scd-req__lead { margin-top: 1.1rem; max-width: 52ch; color: var(--text-secondary); }

.scd-req__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.scd-aside {
  margin-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-radius: var(--r-lg);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}
.scd-aside__k {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: var(--fs-h4);
  font-weight: 800;
  color: var(--ink-900);
}
.scd-aside__icon { flex: none; color: var(--blue-600); }
.scd-aside__d { margin: 0.55rem 0 0; font-size: var(--fs-sm); color: var(--text-secondary); }
.scd-aside__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
}
.scd-aside__cta:hover { text-decoration: underline; text-underline-offset: 3px; }

/* The form card. `.scf` itself is styled in product-page.css; this is the
   panel it sits in, which the design draws as a raised white card. */
.scd-req__form {
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  border-radius: var(--r-2xl);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--e-3);
}
.scd-req__form .scf__title { margin-top: 0; }

/* Wrappers that only need to behave inside their flex/grid parent. */
.scd-card__id { min-width: 0; }
.scd-req__copy { min-width: 0; }

/* --- The Gravity Form inside the request card ---------------------------- */

/* The design asks for one wide yellow submit, the same treatment the built-in
   form's `.scf__submit` carries.

   Whichever form is chosen, its button is already styled elsewhere by an id
   rule — footer.css carries `button#gform_submit_button_7`, blue and
   auto-width. An id outranks any number of classes, so specificity alone
   cannot win here, and naming that id back would tie this page's styling to
   one form: change the form in wp-admin and the button silently reverts.
   `!important`, scoped to this card, is the stable way to state the page's own
   intent. Every other Gravity Form on the site, form 7 included, is untouched. */
.scd-req__form .cf--gf .gform_wrapper .gform_footer { width: 100%; }
.scd-req__form .gform_footer button,
.scd-req__form .gform_footer input[type="submit"] {
  width: 100% !important;
  justify-content: center !important;
  background: var(--yellow-300) !important;
  color: var(--ink-900) !important;
  box-shadow: var(--e-yellow) !important;
}
.scd-req__form .gform_footer button:hover,
.scd-req__form .gform_footer input[type="submit"]:hover {
  background: var(--yellow-400) !important;
}

/* The note sits under the button, as the mockup places it. */
.scd-req__form .scf__note { margin-top: 0.85rem; text-align: center; }
