/* Shared presentation refinement. Keep native forms, routes and layout breakpoints intact. */
body.iam-theme {
  --iam-radius-control: 6px;
  --iam-radius-panel: 10px;
  --iam-radius-media: 12px;
  --iam-section-space: 56px;
  --iam-heading-gap: 24px;
  --iam-rule: color-mix(in srgb, var(--iam-line) 70%, transparent);
}

/* A flat brand accent lets the message and sign-in form carry the hero. */
html[data-appearance="light"] body.iam-theme #iap2.iam-home-revision .ih-actions > a:not(.btn) {
  color: var(--iam-text);
}
html[data-appearance="light"] body.iam-theme #iap2.iam-home-revision .ip-hero-scroll {
  color: var(--iam-text);
}
html body.iam-theme #iap2.iam-home-revision {
  background: var(--iam-bg);
}
body.iam-theme #iap2.iam-home-revision .ih-hero::before {
  background: none;
}
body.iam-theme #iap2.iam-home-revision .ih-intro h1 {
  font-size: clamp(40px, 4.3vw, 60px);
  line-height: 1.12;
  letter-spacing: -.035em;
  margin-block: 24px;
}
html body.iam-theme #iap2.iam-home-revision .ih-intro h1 em {
  color: var(--iam-pink);
  background: none;
  -webkit-text-fill-color: currentColor;
}
body.iam-theme #iap2 .ih-lead {
  line-height: 1.75;
}
html body.iam-theme #iap2 .ih-access {
  background: var(--iam-surface);
  border-radius: var(--iam-radius-panel);
  box-shadow: none;
}
body.iam-theme #iap2 .ih-actions .btn {
  border-radius: var(--iam-radius-control);
  box-shadow: none;
}
body.iam-theme #iap2.iam-home-revision .iar-actions {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body.iam-theme #iap2.iam-home-revision .iap2-remember {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
}
body.iam-theme #iap2.iam-home-revision .iap2-password-toggle {
  width: 44px;
  height: 44px;
  top: 50%;
  inset-inline-end: 2px;
  transform: translateY(-50%);
}
/* Existing scroll-reveal uses Web Animations. Keep content stationary and readable;
   carousel, player, dialog and selected-state feedback are deliberately untouched. */
body.iam-theme :is(#iap2, .ic-page) [data-public-revealed] {
  opacity: 1 !important;
  transform: none !important;
}

/* Pricing and evidence have a reading edge; the video introduction keeps its center. */
body.iam-theme #iap2.iam-home-revision :is(#sample-prices, #customer-reviews) > .ih-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 12px 40px;
  text-align: start;
  align-items: end;
  margin-bottom: var(--iam-heading-gap);
}
body.iam-theme #iap2.iam-home-revision :is(#sample-prices, #customer-reviews) > .ih-section-heading > .ih-eyebrow {
  grid-column: 1 / -1;
  justify-content: flex-start;
}
body.iam-theme #iap2.iam-home-revision :is(#sample-prices, #customer-reviews) > .ih-section-heading :is(h2, p) {
  margin: 0;
  text-align: start;
  max-width: 100%;
}
body.iam-theme #iap2.iam-home-revision :is(#sample-prices, #customer-reviews) > .ih-section-heading p {
  justify-self: end;
  font-size: 14px;
  line-height: 1.75;
}
body.iam-theme #iap2 .ih-section-heading h2 {
  font-size: clamp(27px, 2.5vw, 34px);
  line-height: 1.2;
  letter-spacing: -.025em;
}
body.iam-theme #iap2 .ih-pricing {
  padding-top: var(--iam-section-space);
}
body.iam-theme #iap2.iam-home-revision #iap2-faq {
  padding-block: var(--iam-section-space);
}
body.iam-theme #iap2.iam-home-revision #iap2-faq > .iap2-section-heading {
  justify-content: flex-start;
  text-align: start;
}

/* Quotes need attribution and a baseline, rather than another filled tile. */
body.iam-theme :is(#iap2, .ic-page) .ih-review {
  border: 0;
  border-top: 1px solid var(--iam-rule);
  border-radius: 0;
  padding: 24px 16px;
  background: transparent;
  box-shadow: none;
}
body.iam-theme :is(#iap2, .ic-page) .ih-review footer {
  border-color: var(--iam-rule);
}
body.iam-theme :is(#iap2, .ic-page) .ih-video-card {
  border-radius: var(--iam-radius-media);
}

/* Shared FAQ treatment: retain disclosure semantics, states and generous hit areas. */
body.iam-theme #iap2.iam-home-revision .iap2-faq,
body.iam-theme .ifc-faq details {
  border: 0;
  border-top: 1px solid var(--iam-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.iam-theme #iap2.iam-home-revision .iap2-faq summary,
body.iam-theme .ifc-faq summary {
  min-height: 56px;
  padding: 18px 12px;
  font-size: 14px;
  line-height: 1.6;
}
body.iam-theme .ifc-faq details p {
  padding: 0 12px 20px;
  font-size: 14px;
  line-height: 1.8;
}
body.iam-theme #iap2.iam-home-revision .iap2-faq[open],
body.iam-theme .ifc-faq details[open] {
  border-top-color: var(--iam-pink);
}
body.iam-theme #iap2.iam-home-revision .iap2-faq summary:focus-visible,
body.iam-theme .ifc-faq summary:focus-visible {
  outline: 2px solid var(--iam-pink);
  outline-offset: -3px;
}

/* Reading and company information are part of the page, not nested workspaces. */
body.iam-theme #iap2.iam-home-revision .iap2-reading-pane {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.iam-theme [data-ic-directory] .iam-company-footer {
  border: 0;
  border-top: 1px solid var(--iam-rule);
  border-radius: 0;
  background: transparent;
  padding: 32px 0 8px;
}
body.iam-theme #iap2.iam-home-revision .iap2-blog {
  border-radius: var(--iam-radius-panel);
}

@media (min-width: 801px) {
  body.iam-theme #iap2.iam-home-revision .ih-hero {
    padding-block: var(--iam-section-space);
  }
}
@media (max-width: 800px) {
  body.iam-theme { --iam-section-space: 40px; }
  body.iam-theme #iap2.iam-home-revision :is(#sample-prices, #customer-reviews) > .ih-section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  body.iam-theme #iap2.iam-home-revision :is(#sample-prices, #customer-reviews) > .ih-section-heading p {
    justify-self: start;
  }
}
