/* Defaults are the Reliance brand kit (docs: Prompt Kit pack, landing pages, B1 to B3). A published page's own
   :root variables override the ones the brand kit sends. The rest are pack tokens the kit does not send yet.
   Breakpoints: 768px is the tablet frame. The mobile layout starts at 480px, not at the 390px design frame,
   because most phones are 393 to 430px wide and must get the mobile layout. */
:root {
  --p2s-primary: #a41e22; /* brand/fill */
  --p2s-secondary: #241a19; /* ground/hero */
  --p2s-accent: #ec1d24; /* brand/base: rules, glyphs and bullets only, never text or a fill */
  --p2s-background: #ffffff; /* ground/bg */
  --p2s-text: #3b3130; /* text/body */
  --p2s-font-heading:
    "Poppins", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    sans-serif;
  --p2s-font-body:
    "Poppins", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    sans-serif;
  --p2s-heading-weight: 600;
  --p2s-body-weight: 400;
  --p2s-medium-weight: 500;
  --p2s-ink: #141010; /* text/ink */
  --p2s-mute: #5a4e4c; /* text/mute */
  --p2s-brand-text: #9f1d21; /* brand/text */
  --p2s-fill-hover: #6e1417; /* brand/fill-hover */
  --p2s-on-primary: #ffffff; /* brand/on */
  --p2s-ground-alt: #f9f6f5;
  --p2s-ground-tint: #fef0f1;
  --p2s-ground-deep: #141010;
  --p2s-surface: #ffffff;
  --p2s-line: #e5ddda; /* border/line */
  --p2s-line-on-deep: #3a2c2a; /* border/on-deep */
  --p2s-on-deep: #f4eeec; /* text/on-deep */
  --p2s-on-deep-body: #d8ccc9; /* text/on-deep-body */
  --p2s-brand-on-deep: #f5878b; /* brand/on-deep */
  --p2s-space-xs: 4px;
  --p2s-space-sm: 8px;
  --p2s-space-md: 16px;
  --p2s-space-lg: 24px;
  --p2s-space-xl: 48px;
  --p2s-radius-sm: 4px; /* input and button */
  --p2s-radius-md: 4px;
  --p2s-radius-lg: 16px; /* hero photo: the pack keeps 16 until the design owner decides */
  --p2s-radius-card: 12px;
  --p2s-radius-hero: 24px;
  /* Desktop grid: 12 columns, 20px gutters, 1200px of content (120px margins on a 1440px page). */
  --p2s-content-width: 1200px;
}

.p2s-section {
  /* Light band by default; the dark bands below swap these four. */
  --p2s-heading-colour: var(--p2s-ink);
  --p2s-body-colour: var(--p2s-text);
  --p2s-divider: var(--p2s-line);
  --p2s-hero-card: linear-gradient(90deg, var(--p2s-ground-tint), var(--p2s-background));
  --p2s-gutter: 20px;
  /* One of the 12 columns, measured on the grid that uses it (100% is that grid's width). */
  --p2s-col: calc((100% - 11 * var(--p2s-gutter)) / 12);
  --p2s-section-gap: 48px;
  /* Every section: 64px top and bottom, so two sections are always 128px apart. Backgrounds run full width;
     the 40px sides only matter below 1280px, where the 1200px content would otherwise touch the edge. */
  padding: 64px 40px;
  color: var(--p2s-body-colour);
  font-family: var(--p2s-font-body);
  /* Long words, URLs and {{placeholders}} wrap instead of pushing the page wider than the screen. "anywhere"
     (unlike break-word) also lowers the min-content width, so grid and flex columns can shrink. */
  overflow-wrap: anywhere;
}

.p2s-section.p2s-hero:not(.p2s-hero--band) {
  padding-top: max(64px, calc(var(--p2s-site-header-offset, 0px) + 64px));
}

.p2s-section__inner {
  width: min(100%, var(--p2s-content-width));
  margin-inline: auto;
}

/* The first item in a section needs no top margin (the gap only belongs between a headline and what follows). */
.p2s-section__inner > :first-child {
  margin-top: 0;
}

.p2s-section__headline,
.p2s-feature__title,
.p2s-pricing__name,
.p2s-testimonial__author,
.p2s-faq__question {
  font-family: var(--p2s-font-heading);
  font-weight: var(--p2s-heading-weight);
}

.p2s-section__headline {
  margin: 0 0 var(--p2s-space-md);
  /* Display/3 */
  font-size: 2.125rem;
  line-height: 2.5rem;
  letter-spacing: -0.01em;
}
.p2s-hero .p2s-section__headline {
  /* Display/1 */
  font-size: 3.625rem;
  line-height: 4rem;
  letter-spacing: -0.015em;
}
.p2s-cta .p2s-section__headline {
  /* Display/2 */
  font-size: 2.75rem;
  line-height: 3.125rem;
  letter-spacing: -0.012em;
}

/* The red rule (4 x 48) is the identity device: 16px above every section heading, except the closing CTA and the footer.
   Pack B4 order is rule, eyebrow, heading, so with an eyebrow the rule moves above it. */
.p2s-section:not(.p2s-cta, .p2s-footer) .p2s-section__headline::before,
.p2s-section:not(.p2s-cta, .p2s-footer) .p2s-section__eyebrow::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: var(--p2s-space-md);
  background: var(--p2s-accent);
}
.p2s-section:not(.p2s-cta, .p2s-footer) .p2s-section__eyebrow + .p2s-section__headline::before {
  display: none;
}
.p2s-section--align-center .p2s-section__headline::before,
.p2s-section--align-center .p2s-section__eyebrow::before {
  margin-inline: auto;
}
.p2s-section--align-right .p2s-section__headline::before,
.p2s-section--align-right .p2s-section__eyebrow::before {
  margin-left: auto;
}

.p2s-section__subheadline {
  margin: 0 0 var(--p2s-space-md);
  /* Body/Large */
  font-size: 1.1875rem;
  line-height: 1.875rem;
  font-weight: var(--p2s-body-weight);
}
.p2s-section__body {
  max-width: 70ch;
  margin: 0 0 var(--p2s-space-lg);
  /* Body/Base */
  font-size: 1.0625rem;
  line-height: 1.6875rem;
  font-weight: var(--p2s-body-weight);
}
/* (0,2,0): the section colour reaches headings and paragraphs past the theme's h2 and p colours. */
.p2s-section .p2s-section__headline {
  color: var(--p2s-heading-colour);
}
.p2s-section .p2s-section__subheadline,
.p2s-section .p2s-section__body {
  color: var(--p2s-body-colour);
}

.p2s-section--align-center {
  text-align: center;
}
.p2s-section--align-center .p2s-actions {
  justify-content: center;
}
.p2s-section--align-center .p2s-section__body {
  margin-inline: auto;
}
.p2s-section--align-right {
  text-align: right;
}
.p2s-section--align-right .p2s-actions {
  justify-content: flex-end;
}
.p2s-section--align-right .p2s-section__body {
  margin-left: auto;
}

/* (0,2,0): beats theme element rules such as Leverage's footer:not(.odd) (0,1,1), which made the footer transparent.
   The background values map to the pack's bands. accent is brand/base, which is never a fill, so it is ground/alt. */
.p2s-section.p2s-section--bg-background {
  background: var(--p2s-background);
}
.p2s-section.p2s-section--bg-accent {
  background: var(--p2s-ground-alt);
}
.p2s-section.p2s-section--bg-primary {
  background: var(--p2s-ground-tint);
}
.p2s-section.p2s-section--bg-secondary,
.p2s-section.p2s-section--bg-text {
  --p2s-heading-colour: var(--p2s-on-deep);
  --p2s-body-colour: var(--p2s-on-deep-body);
  --p2s-divider: var(--p2s-line-on-deep);
  --p2s-hero-card: transparent;
}
.p2s-section.p2s-section--bg-secondary {
  background: var(--p2s-secondary);
}
.p2s-section.p2s-section--bg-text {
  background: var(--p2s-ground-deep);
}

.p2s-hero.p2s-section--layout-split .p2s-section__inner,
.p2s-cta.p2s-section--layout-split .p2s-section__inner {
  display: grid;
  /* 6 + 6 columns. Rows 0: the text keeps its own margins, and empty rows add no space. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0 var(--p2s-gutter);
}
/* Text sections: heading and copy on the left, the list on the right. */
.p2s-text.p2s-section--layout-split .p2s-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 0 var(--p2s-gutter);
}
.p2s-text.p2s-section--layout-split .p2s-text__list {
  grid-column: 2;
  grid-row: 1 / span 4;
  margin-top: 0;
}
.p2s-text.p2s-section--layout-split .p2s-section__inner > :not(.p2s-text__list) {
  grid-column: 1;
}
/* Text stays together in the first column and the image fills the second, instead of the grid alternating
   headline, subheadline, body and image between the two columns. */
.p2s-hero.p2s-section--layout-split .p2s-section__inner > *,
.p2s-cta.p2s-section--layout-split .p2s-section__inner > * {
  grid-column: 1;
}
.p2s-hero.p2s-section--layout-split .p2s-section__inner > .p2s-image-slot,
.p2s-cta.p2s-section--layout-split .p2s-section__inner > .p2s-image-slot {
  grid-column: 2;
  grid-row: 1 / span 4;
}

/* When split hero has no image slot and no form, the PHP prints a flat structure instead of
   .p2s-hero__content wrapper, but the section keeps p2s-section--layout-split. Collapse the grid
   to single column so text expands to full width, constrained by .p2s-section__body max-width. */
.p2s-hero.p2s-section--layout-split
  .p2s-section__inner:not(:has(> .p2s-image-slot)):not(:has(> .p2s-hero__form)) {
  grid-template-columns: 1fr;
}

/* When split CTA has no image slot, collapse the grid to single column. */
.p2s-cta.p2s-section--layout-split .p2s-section__inner:not(:has(> .p2s-image-slot)) {
  grid-template-columns: 1fr;
}

.p2s-hero.p2s-section--layout-split .p2s-section__inner {
  /* Copy on 7 columns, image or form on 5. */
  grid-template-columns: minmax(0, calc(var(--p2s-col) * 7 + var(--p2s-gutter) * 6)) minmax(0, 1fr);
}

/* Height follows the width through the aspect ratio. A fixed min-height here forced a minimum width
   (14rem x 1.5 = 21rem) that overflowed narrow screens. */
.p2s-image-slot {
  display: grid;
  width: 100%;
  aspect-ratio: var(--p2s-image-ratio, 16 / 9);
  place-items: center;
  margin: 0;
  border: 1px solid var(--p2s-line);
  border-radius: var(--p2s-radius-lg);
  /* A soft tint-to-alt wash until the real picture replaces the slot. */
  background: linear-gradient(135deg, var(--p2s-ground-tint), var(--p2s-ground-alt) 70%);
  color: var(--p2s-ink);
}
.p2s-feature > .p2s-image-slot {
  margin-bottom: var(--p2s-space-md);
}

.p2s-image-slot__label {
  padding: var(--p2s-space-md);
  /* Label */
  font-size: 0.6875rem;
  font-weight: var(--p2s-heading-weight);
  line-height: 0.875rem;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}
/* No image model yet (FR-37): editors see this compact box; visitors see nothing. */
.p2s-image-slot.p2s-image-slot--placeholder {
  box-sizing: border-box;
  min-height: 120px;
  max-height: 160px;
  aspect-ratio: auto;
  align-self: center;
  overflow: hidden;
  border: 1px dashed var(--p2s-mute);
  background: var(--p2s-ground-alt);
}
.p2s-image-slot--placeholder .p2s-image-slot__label {
  color: var(--p2s-mute);
  /* Caption */
  font-size: 0.8125rem;
  font-weight: var(--p2s-body-weight);
  line-height: 1.25rem;
  letter-spacing: normal;
  text-transform: none;
}
/* FR-37: an image from the media library fills its slot at the slot's ratio. */
.p2s-image-slot.p2s-image-slot--photo {
  overflow: hidden;
  border: 0;
  background: var(--p2s-ground-alt);
}
.p2s-image-slot--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FR-39: hero text is one item (.p2s-hero__content) beside the form or the split image, so the two centre against each other.
   The form hero is the pack's hero card: radius 24, padding 64, tint to white gradient, no border or shadow. */
.p2s-hero--with-form .p2s-section__inner {
  display: grid;
  grid-template-columns: minmax(0, calc(var(--p2s-col) * 7 + var(--p2s-gutter) * 6)) minmax(0, 1fr);
  align-items: center;
  gap: 0 var(--p2s-gutter);
  box-sizing: border-box;
  padding: 64px;
  border-radius: var(--p2s-radius-hero);
  background: var(--p2s-hero-card);
}
.p2s-hero__content {
  grid-column: 1;
  min-width: 0;
}
.p2s-hero__content > :last-child {
  margin-bottom: 0;
}
.p2s-hero--with-form .p2s-section__inner > .p2s-hero__form {
  grid-column: 2;
}
/* Split layout with an image: the image is a single item beside .p2s-hero__content, not a spanning row. */
.p2s-hero.p2s-section--layout-split .p2s-section__inner > .p2s-image-slot {
  grid-row: auto;
}

.p2s-hero__form {
  box-sizing: border-box;
  padding: 32px;
  border: 1px solid var(--p2s-line);
  border-radius: var(--p2s-radius-card);
  background: var(--p2s-surface);
  color: var(--p2s-text);
  /* The section's centre or right alignment must not carry into the form. */
  text-align: left;
}
.p2s-hero__form label,
.p2s-hero__form input,
.p2s-hero__form select,
.p2s-hero__form textarea {
  box-sizing: border-box;
  color: var(--p2s-text);
  font-family: var(--p2s-font-body);
}
.p2s-hero__form input:not([type="checkbox"], [type="radio"], [type="submit"]),
.p2s-hero__form select,
.p2s-hero__form textarea {
  max-width: 100%;
  border-radius: var(--p2s-radius-sm);
}
/* Microsoft sets the button's colour and size inline from the Journeys form editor; we only set shape and type. */
.p2s-hero__form button,
.p2s-hero__form input[type="submit"] {
  border-radius: var(--p2s-radius-sm);
  font-family: var(--p2s-font-body);
  font-weight: var(--p2s-medium-weight);
  cursor: pointer;
}

/* Microsoft's own <style> loads after ours, so these selectors are deliberately more specific than its class rules. */
.p2s-hero__form,
.p2s-hero__form [data-form-id] {
  min-width: 0;
  max-width: 100%;
}
.p2s-hero__form .marketingForm .innerSection {
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.p2s-hero__form .marketingForm .columnContainer {
  padding: 0;
}
.p2s-hero__form .marketingForm [class$="FormFieldBlock"],
.p2s-hero__form .marketingForm [class*="FormFieldBlock "] {
  padding: 0 0 var(--p2s-space-sm);
}
.p2s-hero__form form.marketingForm label {
  display: block;
  margin-top: 0;
  margin-bottom: var(--p2s-space-xs);
  color: var(--p2s-mute);
  /* Caption */
  font-size: 0.8125rem;
  line-height: 1.25rem;
}
.p2s-hero__form .marketingForm input:not([type="checkbox"], [type="radio"], [type="submit"]),
.p2s-hero__form .marketingForm select,
.p2s-hero__form .marketingForm textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  /* text/mute keeps the field edge at 3:1 or better; border/line is only 1.3:1 on white. */
  border: 1px solid var(--p2s-mute);
  border-radius: var(--p2s-radius-sm);
}
.p2s-hero__form .marketingForm :focus-visible {
  outline: 2px solid var(--p2s-ink);
  outline-offset: 2px;
}
.p2s-hero__form div.onFormSubmittedFeedback {
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 12rem;
  margin: 0;
}

.p2s-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--p2s-space-sm);
  margin-top: var(--p2s-space-lg);
}

/* (0,3,1) outranks the theme's a:hover:not(.btn) (0,2,1) in every link state, so no per-state copies are needed.
   One brand/fill primary button on every band (white label 7.5:1); brand/base is never a button fill. */
.p2s-section .p2s-actions a.p2s-button {
  display: inline-flex;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--p2s-primary);
  border-radius: var(--p2s-radius-sm);
  background: var(--p2s-primary);
  color: var(--p2s-on-primary);
  /* Button/Base */
  font-size: 0.9375rem;
  font-weight: var(--p2s-medium-weight);
  line-height: 1.25rem;
  text-align: center;
  text-decoration: none;
}
.p2s-section .p2s-actions a.p2s-button:not(.p2s-button--secondary):hover {
  border-color: var(--p2s-fill-hover);
  background: var(--p2s-fill-hover);
}
/* The secondary action is a ghost button in brand/text (7.1:1 or better on every light band). */
.p2s-section .p2s-actions a.p2s-button--secondary {
  border-color: currentcolor;
  background: transparent;
  color: var(--p2s-brand-text);
}
.p2s-section .p2s-actions a.p2s-button--secondary:hover {
  color: var(--p2s-fill-hover);
}
.p2s-section .p2s-actions a.p2s-button:focus-visible {
  outline: 2px solid var(--p2s-ink);
  outline-offset: 2px;
}

/* Dark bands: brand/on-deep text for the secondary action (7.05:1 on ground/hero), a light focus ring. */
.p2s-section.p2s-section--bg-secondary .p2s-actions a.p2s-button--secondary,
.p2s-section.p2s-section--bg-text .p2s-actions a.p2s-button--secondary,
.p2s-section.p2s-section--bg-secondary .p2s-actions a.p2s-button--secondary:hover,
.p2s-section.p2s-section--bg-text .p2s-actions a.p2s-button--secondary:hover {
  color: var(--p2s-brand-on-deep);
}
.p2s-section.p2s-section--bg-secondary .p2s-actions a.p2s-button:focus-visible,
.p2s-section.p2s-section--bg-text .p2s-actions a.p2s-button:focus-visible {
  outline-color: var(--p2s-on-deep);
}

.p2s-features__list,
.p2s-pricing__plans,
.p2s-testimonials__list,
.p2s-pricing__features,
.p2s-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--p2s-gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}
.p2s-features__list,
.p2s-pricing__plans,
.p2s-testimonials__list,
.p2s-faq__list {
  margin-top: var(--p2s-section-gap);
}

/* The features and pricing rows fill evenly: 4 across by default, and the count picks the columns for 1, 2, 3, 5 and 6. */
.p2s-features__list,
.p2s-pricing__plans {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.p2s-features__list:has(> :where(:nth-child(1):last-child)),
.p2s-pricing__plans:has(> :where(:nth-child(1):last-child)) {
  grid-template-columns: minmax(0, 1fr);
}
.p2s-features__list:has(> :where(:nth-child(2):last-child)),
.p2s-pricing__plans:has(> :where(:nth-child(2):last-child)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.p2s-features__list:has(
  > :where(:nth-child(3):last-child, :nth-child(5):last-child, :nth-child(6):last-child)
),
.p2s-pricing__plans:has(
  > :where(:nth-child(3):last-child, :nth-child(5):last-child, :nth-child(6):last-child)
) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.p2s-features.p2s-section--layout-list .p2s-features__list {
  grid-template-columns: 1fr;
}
.p2s-features.p2s-section--layout-alternating .p2s-features__item:nth-child(even) {
  transform: translateY(var(--p2s-space-lg));
}
.p2s-testimonials.p2s-section--layout-featured .p2s-testimonials__list {
  grid-template-columns: minmax(0, 1fr);
}
/* Flex, not grid: the shared column template squeezed the first cards to a sliver on phones. */
.p2s-testimonials.p2s-section--layout-carousel .p2s-testimonials__list {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--p2s-space-sm);
}
.p2s-testimonials.p2s-section--layout-carousel .p2s-testimonial {
  flex: 1 0 min(85%, 22rem);
  min-width: 16rem;
  scroll-snap-align: start;
}
.p2s-pricing.p2s-section--layout-comparison .p2s-pricing__plans {
  grid-template-columns: 1fr;
}
.p2s-footer.p2s-section--layout-centered .p2s-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.p2s-feature,
.p2s-pricing__plan,
.p2s-testimonial {
  /* border-box: the padding sits inside height: 100%, so cards don't hang past the bottom of their section. */
  box-sizing: border-box;
  height: 100%;
  padding: 32px;
  min-width: 0;
  border: 1px solid var(--p2s-line);
  border-radius: var(--p2s-radius-card);
  background: var(--p2s-surface);
  color: var(--p2s-text);
  /* Cards stay light on every band, and their text stays left-aligned. */
  text-align: left;
  transition:
    border-color 160ms ease-out,
    box-shadow 160ms ease-out;
}
/* A darker edge and a soft shadow under the pointer; decoration only, as touch has no hover. */
.p2s-feature:hover,
.p2s-pricing__plan:hover,
.p2s-testimonial:hover {
  border-color: var(--p2s-mute);
  box-shadow: 0 16px 32px -20px rgb(20 16 16 / 0.35);
}

/* (0,2,0): card titles keep text/ink past the theme's heading colours. */
.p2s-section .p2s-feature__title,
.p2s-section .p2s-pricing__name,
.p2s-section .p2s-testimonial__author {
  color: var(--p2s-ink);
}
.p2s-feature__title,
.p2s-pricing__name {
  margin: 0 0 var(--p2s-space-sm);
  /* Heading/1 */
  font-size: 1.25rem;
  line-height: 1.625rem;
  letter-spacing: -0.005em;
}
.p2s-feature__body {
  margin: 0;
  /* Body/Small, allowed for card text */
  font-size: 0.9375rem;
  font-weight: var(--p2s-body-weight);
  line-height: 1.4375rem;
}
.p2s-pricing__plan--featured {
  outline: 2px solid var(--p2s-primary);
  background: var(--p2s-ground-tint);
}
.p2s-pricing__price {
  display: block;
  margin: var(--p2s-space-md) 0;
}
.p2s-pricing__amount {
  display: block;
  /* Display/3 */
  font: 600 2.125rem/2.5rem var(--p2s-font-heading);
  letter-spacing: -0.01em;
}
.p2s-pricing__period {
  display: block;
  margin-top: var(--p2s-space-xs);
  color: var(--p2s-mute);
  font-size: 0.9375rem;
  line-height: 1.4375rem;
}
.p2s-pricing__features {
  display: block;
  margin-top: var(--p2s-space-md);
}
/* The check glyph is a border shape in brand/base (a graphic, not text). */
.p2s-pricing__feature {
  position: relative;
  margin: var(--p2s-space-sm) 0;
  padding-left: 32px;
  font-size: 0.9375rem;
  line-height: 1.4375rem;
}
.p2s-pricing__feature::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 4px;
  width: 6px;
  height: 12px;
  border: solid var(--p2s-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.p2s-testimonial {
  margin: 0;
}
/* One accent rule per card: the 4 x 48 rule on the card itself. Everything inside is reset at (0,2,1) or more,
   so theme blockquote, cite and footer borders, padding, backgrounds and quote marks cannot add a second one. */
.p2s-testimonials .p2s-testimonial::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: var(--p2s-space-md);
  background: var(--p2s-accent);
}
.p2s-testimonials .p2s-testimonial :is(blockquote, figcaption, cite, footer, p, span) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-style: normal;
  quotes: none;
  text-indent: 0;
}
.p2s-testimonials .p2s-testimonial :is(blockquote, figcaption, cite, footer, p, span)::before,
.p2s-testimonials .p2s-testimonial :is(blockquote, figcaption, cite, footer, p, span)::after {
  content: none;
}
.p2s-testimonials .p2s-testimonial .p2s-testimonial__quote {
  margin: 0 0 var(--p2s-space-md);
  font-size: 1.0625rem;
  line-height: 1.6875rem;
}
.p2s-testimonial__attribution {
  display: flex;
  flex-wrap: wrap;
  gap: var(--p2s-space-xs);
}
.p2s-testimonials .p2s-testimonial .p2s-testimonial__author {
  font-weight: var(--p2s-medium-weight);
}
.p2s-testimonials .p2s-testimonial .p2s-testimonial__role {
  color: var(--p2s-mute);
}

.p2s-faq__list {
  display: grid;
  max-width: 70ch;
  gap: 0;
}
.p2s-faq__item {
  padding: var(--p2s-space-md) 0;
  border-bottom: 1px solid var(--p2s-divider);
}
.p2s-faq__question {
  color: var(--p2s-heading-colour);
  cursor: pointer;
  /* Body/Medium */
  font-size: 1.0625rem;
  font-weight: var(--p2s-medium-weight);
  line-height: 1.6875rem;
}
.p2s-faq__answer p {
  margin-bottom: 0;
  color: var(--p2s-body-colour);
  /* Body/Base */
  font-size: 1.0625rem;
  line-height: 1.6875rem;
}

.p2s-footer__navigation {
  margin-top: var(--p2s-space-lg);
}
.p2s-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--p2s-space-md);
}
/* (0,3,1) outranks the theme's link rules; 2.75rem gives a 44px tap target. */
.p2s-section.p2s-footer .p2s-footer__link a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: inherit;
  font-size: 1.0625rem;
  font-weight: var(--p2s-body-weight);
  line-height: 1.6875rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.p2s-section.p2s-footer .p2s-footer__link a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.p2s-section__editor-count {
  margin: var(--p2s-space-sm) 0 0;
  color: inherit;
  /* Caption */
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

/* (0,2,0) beats theme p colours. Label style in brand/text; brand/on-deep on the dark bands. */
.p2s-section .p2s-section__eyebrow {
  margin: 0 0 var(--p2s-space-sm);
  color: var(--p2s-brand-text);
  /* Label */
  font-size: 0.6875rem;
  font-weight: var(--p2s-heading-weight);
  line-height: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.p2s-section.p2s-section--bg-secondary .p2s-section__eyebrow,
.p2s-section.p2s-section--bg-text .p2s-section__eyebrow {
  color: var(--p2s-brand-on-deep);
}
.p2s-text__list {
  display: grid;
  gap: var(--p2s-space-sm);
  margin-top: var(--p2s-space-md);
  padding-left: 1.25rem;
}
/* The pack's form panel; it stays light on every band, so its text uses the light-band colours. */
.p2s-form__panel {
  display: grid;
  box-sizing: border-box;
  gap: var(--p2s-space-sm);
  max-width: 36rem;
  margin-top: var(--p2s-space-md);
  padding: 32px;
  border: 1px solid var(--p2s-line);
  border-radius: var(--p2s-radius-card);
  background: var(--p2s-surface);
  color: var(--p2s-text);
  text-align: left;
}
/* Nothing renders beside the form, so a centred section centres the panel under its heading. */
.p2s-form.p2s-section--align-center .p2s-form__panel {
  margin-inline: auto;
}
/* Pack B6: form block fields sit two to a row at desktop, one at mobile. */
.p2s-form .p2s-form__panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--p2s-space-md);
}
/* Submit button and non-field elements span the full width. */
.p2s-form .p2s-form__panel > :not(.p2s-form__field) {
  grid-column: 1 / -1;
}
/* If an odd number of fields, the last one spans both columns. */
.p2s-form .p2s-form__panel > .p2s-form__field:nth-of-type(odd):last-of-type {
  grid-column: 1 / -1;
}
.p2s-form__field {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}
.p2s-form__panel .p2s-form__field label {
  color: var(--p2s-mute);
  /* Caption */
  font-size: 0.8125rem;
  font-weight: var(--p2s-body-weight);
  line-height: 1.25rem;
}
/* text/mute keeps the field edge at 3:1 or better; border/line is only 1.3:1 on white. */
.p2s-form__panel .p2s-form__field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--p2s-mute);
  border-radius: var(--p2s-radius-sm);
  background: var(--p2s-surface);
}
/* (0,3,1): the submit sits outside .p2s-actions, so it gets the primary button look here. */
.p2s-section .p2s-form__panel button.p2s-button {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 12px 24px;
  border: 1px solid var(--p2s-primary);
  border-radius: var(--p2s-radius-sm);
  background: var(--p2s-primary);
  color: var(--p2s-on-primary);
  font-family: var(--p2s-font-body);
  /* Button/Base */
  font-size: 0.9375rem;
  font-weight: var(--p2s-medium-weight);
  line-height: 1.25rem;
  text-align: center;
}
/* Preview only: keeps the brand/fill look of the live Journeys submit. */
.p2s-section .p2s-form__panel button.p2s-button:disabled {
  cursor: not-allowed;
}

/* Pack B6: the form panel in the hero's right-hand column. Fields sit two to a row where the panel is wide
   enough and one to a row otherwise; the headline, support copy and submit span the panel. */
.p2s-hero__form.p2s-form__panel {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  column-gap: var(--p2s-space-md);
  max-width: none;
  margin-top: 0;
}
.p2s-hero__form.p2s-form__panel > :not(.p2s-form__field) {
  grid-column: 1 / -1;
}
.p2s-section .p2s-form__headline {
  margin: 0;
  color: var(--p2s-ink);
  font-family: var(--p2s-font-heading);
  font-weight: var(--p2s-heading-weight);
  /* Heading/1 */
  font-size: 1.25rem;
  line-height: 1.625rem;
  letter-spacing: -0.005em;
}
.p2s-section .p2s-form__support {
  margin: 0;
  color: var(--p2s-mute);
  /* Body/Small */
  font-size: 0.9375rem;
  line-height: 1.4375rem;
}

/* The hero band (class p2s-hero--band): full width, the hero photo behind a white fade (--p2s-hero-photo, set by
   the hero block), a brand line along the bottom, ticked points and the form card. The section is a size
   container, so the headline and the columns follow the width WordPress gives it, not the window. */
/* Sites with a fixed menu can set --p2s-site-header-offset to the menu's height (for example in Additional CSS) so the hero starts below it. Default 0, which leaves the hero padding unchanged. */
.p2s-section.p2s-hero--band {
  container-type: inline-size;
  padding: max(64px, calc(var(--p2s-site-header-offset, 0px) + 64px)) 40px 64px;
  border-bottom: 6px solid var(--p2s-fill-hover);
  background-color: var(--p2s-ground-tint);
  background-image:
    linear-gradient(
      90deg,
      rgb(255 255 255 / 0.97),
      rgb(255 255 255 / 0.9) 45%,
      rgb(255 255 255 / 0.55)
    ),
    var(--p2s-hero-photo, linear-gradient(90deg, var(--p2s-ground-tint), var(--p2s-background)));
  background-position: center;
  background-size: cover;
}
.p2s-hero--with-form.p2s-hero--band .p2s-section__inner {
  column-gap: var(--p2s-gutter);
  padding: 0;
  border-radius: 0;
  background: none;
}
.p2s-section.p2s-hero--band .p2s-section__headline {
  font-size: clamp(2.125rem, 5.2cqi, 3.625rem);
  line-height: 1.12;
  overflow-wrap: break-word;
}
.p2s-section.p2s-hero--band .p2s-section__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.p2s-section.p2s-hero--band .p2s-section__eyebrow::before {
  width: 32px;
  height: 3px;
  margin: 0;
}
/* The ticked points arrive as body paragraphs; the tick is a border shape in brand/fill (a graphic). */
.p2s-section.p2s-hero--band .p2s-section__body {
  position: relative;
  max-width: none;
  margin: 0 0 var(--p2s-space-sm);
  padding-left: 28px;
  color: var(--p2s-ink);
  font-size: 0.9375rem;
  font-weight: var(--p2s-medium-weight);
  line-height: 1.4375rem;
}
.p2s-section.p2s-hero--band .p2s-section__body::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 4px;
  width: 5px;
  height: 10px;
  border: solid var(--p2s-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.p2s-section.p2s-hero--band .p2s-hero__form {
  align-self: center;
  border: 0;
  box-shadow: 0 24px 48px -24px rgb(20 16 16 / 0.35);
}
.p2s-section.p2s-hero--band .p2s-hero__form.p2s-form__panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.p2s-section.p2s-hero--band .p2s-hero__form > :is(.p2s-form__headline, .p2s-form__support, button) {
  grid-column: 1 / -1;
  margin: 0;
}
.p2s-section.p2s-hero--band .p2s-hero__form .p2s-form__headline {
  font-size: 1.5rem;
  line-height: 2rem;
}
.p2s-section.p2s-hero--band .p2s-hero__form .p2s-form__field label {
  color: var(--p2s-ink);
  font-weight: var(--p2s-medium-weight);
}
/* Narrow pages (a theme's content column, the editor, tablets): copy first, the form below. */
@container (max-width: 860px) {
  .p2s-hero--with-form.p2s-hero--band .p2s-section__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .p2s-hero--with-form.p2s-hero--band .p2s-section__inner > .p2s-hero__form {
    grid-column: 1;
    width: 100%;
    margin-top: var(--p2s-space-lg);
  }
  .p2s-section.p2s-hero--band .p2s-hero__form .p2s-form__headline {
    color: var(--p2s-brand-text);
  }
}
@container (max-width: 520px) {
  .p2s-section.p2s-hero--band .p2s-hero__form.p2s-form__panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Two panels side by side (class p2s-features--panels): the first light, the second on brand/fill. */
.p2s-features--panels .p2s-features__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.p2s-features--panels .p2s-feature {
  padding: 48px;
  border-radius: var(--p2s-radius-hero);
  background: var(--p2s-ground-alt);
}
.p2s-features--panels .p2s-features__item:nth-child(2) .p2s-feature {
  border-color: var(--p2s-primary);
  background: var(--p2s-primary);
  color: var(--p2s-on-primary);
}
.p2s-section.p2s-features--panels .p2s-features__item:nth-child(2) .p2s-feature__title {
  color: var(--p2s-on-primary);
}
.p2s-features--panels .p2s-feature__body {
  font-size: 1.0625rem;
  line-height: 1.6875rem;
  white-space: pre-line;
}
/* The proof panel (class p2s-text--panel): a tinted card that keeps light-band colours on any band. */
.p2s-text--panel .p2s-section__inner {
  --p2s-heading-colour: var(--p2s-ink);
  --p2s-body-colour: var(--p2s-text);
  box-sizing: border-box;
  padding: 48px;
  border-radius: var(--p2s-radius-hero);
  background: var(--p2s-ground-tint);
  color: var(--p2s-text);
}
.p2s-section.p2s-text--panel .p2s-section__eyebrow {
  color: var(--p2s-brand-text);
}

/* Pack B6: a photo or product image beside the copy (problem photo left, why-now image right). */
.p2s-text--with-image .p2s-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0 var(--p2s-gutter);
}
.p2s-text__content {
  min-width: 0;
}
.p2s-text__content > :last-child {
  margin-bottom: 0;
}
.p2s-text--image-left .p2s-section__inner > .p2s-image-slot {
  grid-row: 1;
  grid-column: 1;
}
.p2s-text--image-left .p2s-section__inner > .p2s-text__content {
  grid-column: 2;
}

@media (max-width: 768px) {
  .p2s-section {
    --p2s-gutter: 20px;
    --p2s-section-gap: 40px;
    padding: 64px 40px;
  }
  .p2s-section.p2s-hero:not(.p2s-hero--band) {
    padding-top: max(64px, calc(var(--p2s-site-header-offset, 0px) + 48px));
  }
  .p2s-hero .p2s-section__headline {
    /* Display/2 */
    font-size: 2.75rem;
    line-height: 3.125rem;
    letter-spacing: -0.012em;
  }
  .p2s-cta .p2s-section__headline {
    /* Display/3 */
    font-size: 2.125rem;
    line-height: 2.5rem;
    letter-spacing: -0.01em;
  }
  .p2s-hero.p2s-section--layout-split .p2s-section__inner,
  .p2s-cta.p2s-section--layout-split .p2s-section__inner,
  .p2s-text.p2s-section--layout-split .p2s-section__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .p2s-text.p2s-section--layout-split .p2s-text__list {
    grid-column: 1;
    grid-row: auto;
    margin-top: var(--p2s-space-md);
  }
  /* One column on tablet and below: everything back in document order. */
  .p2s-hero.p2s-section--layout-split .p2s-section__inner > .p2s-image-slot,
  .p2s-cta.p2s-section--layout-split .p2s-section__inner > .p2s-image-slot {
    grid-column: 1;
    grid-row: auto;
    margin-block: var(--p2s-space-md);
  }
  /* Features: 2 x 2 at tablet; an odd last card spans the row. */
  .p2s-features__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .p2s-features__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .p2s-pricing__plans,
  .p2s-testimonials__list,
  .p2s-footer__links {
    grid-template-columns: minmax(0, 1fr);
  }
  .p2s-features.p2s-section--layout-alternating .p2s-features__item:nth-child(even) {
    transform: none;
  }
  .p2s-footer__links {
    gap: 0 var(--p2s-space-md);
  }
  /* Stacked: content first, form below, the form as wide as the card. */
  .p2s-hero--with-form .p2s-section__inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px;
  }
  .p2s-hero--with-form .p2s-section__inner > .p2s-hero__form {
    grid-column: 1;
    width: 100%;
    margin-top: var(--p2s-space-md);
  }
  /* Copy first, image second (pack B3). */
  .p2s-text--with-image .p2s-section__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .p2s-text--with-image .p2s-section__inner > .p2s-text__content,
  .p2s-text--with-image .p2s-section__inner > .p2s-image-slot {
    grid-row: auto;
    grid-column: 1;
  }
  .p2s-text--with-image .p2s-section__inner > .p2s-image-slot {
    margin-top: var(--p2s-space-lg);
  }
  .p2s-section.p2s-hero--band {
    padding: max(64px, calc(var(--p2s-site-header-offset, 0px) + 48px)) 40px 64px;
    background-image:
      linear-gradient(180deg, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0.85)),
      var(--p2s-hero-photo, linear-gradient(180deg, var(--p2s-ground-tint), var(--p2s-background)));
  }
  .p2s-features--panels .p2s-features__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .p2s-features--panels .p2s-feature,
  .p2s-text--panel .p2s-section__inner {
    padding: 32px;
  }
}

/* Mobile layout: phones are 393 to 430px wide, so it starts at 480px rather than at the 390px design frame. */
@media (max-width: 480px) {
  .p2s-section {
    --p2s-gutter: 16px;
    --p2s-section-gap: 32px;
    padding: 64px 20px;
  }
  .p2s-section.p2s-hero:not(.p2s-hero--band) {
    padding-top: max(64px, calc(var(--p2s-site-header-offset, 0px) + 48px));
  }
  .p2s-hero .p2s-section__headline {
    /* Display/3 */
    font-size: 2.125rem;
    line-height: 2.5rem;
    letter-spacing: -0.01em;
  }
  .p2s-section .p2s-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .p2s-features__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .p2s-feature,
  .p2s-pricing__plan,
  .p2s-testimonial {
    padding: var(--p2s-space-lg);
  }
  .p2s-hero--with-form .p2s-section__inner {
    padding: 20px;
    border-radius: var(--p2s-radius-card);
  }
  .p2s-form .p2s-form__panel {
    grid-template-columns: 1fr;
  }
  .p2s-hero__form,
  .p2s-form__panel {
    padding: 20px;
  }
  .p2s-section.p2s-hero--band {
    padding: max(48px, calc(var(--p2s-site-header-offset, 0px) + 48px)) 20px 48px;
  }
}

/* Live lead form: enabled fields, consent, honeypot, status messages, and invalid state. */

/* Frosted glass panel: semi-transparent background with blur, applies to both live form and editor preview. */
.p2s-hero--with-form .p2s-form__panel {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow:
    0 20px 50px rgba(17, 24, 39, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 32px;
}

/* Fallback for browsers without backdrop-filter support. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .p2s-hero--with-form .p2s-form__panel {
    background: rgba(255, 255, 255, 0.95);
  }
}

/* Fallback for users who prefer reduced transparency. */
@media (prefers-reduced-transparency: reduce) {
  .p2s-hero--with-form .p2s-form__panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Adjust padding for smaller viewports. */
@container (max-width: 520px) {
  .p2s-hero--with-form .p2s-form__panel {
    padding: 24px;
  }
}

/* Field wrapper: align content to top, prevent stretching, grid gap for label spacing. */
.p2s-hero--with-form .p2s-form__panel .p2s-form__field {
  align-content: start;
  display: grid;
  gap: 6px;
  margin: 0;
}

/* Labels: slightly bolder. */
.p2s-hero--with-form .p2s-form__panel .p2s-form__field label {
  color: var(--p2s-text);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

/* Inputs (excluding checkboxes): translucent white background, rounded corners, smooth transitions. */
.p2s-hero--with-form .p2s-form__panel .p2s-form__field input:not([type="checkbox"]),
.p2s-hero--with-form .p2s-form__panel .p2s-form__field select {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #6b5b57;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  font-family: var(--p2s-font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--p2s-text);
  transition:
    border-color 150ms,
    box-shadow 150ms;
}

@media (prefers-reduced-motion: reduce) {
  .p2s-hero--with-form .p2s-form__panel .p2s-form__field input:not([type="checkbox"]),
  .p2s-hero--with-form .p2s-form__panel .p2s-form__field select {
    transition: none;
  }
}

/* Input focus: primary colour border and soft focus ring. */
.p2s-hero--with-form .p2s-form__panel .p2s-form__field input:not([type="checkbox"]):focus-visible,
.p2s-hero--with-form .p2s-form__panel .p2s-form__field select:focus-visible {
  outline: none;
  border-color: var(--p2s-primary);
  box-shadow: 0 0 0 4px rgba(164, 30, 34, 0.2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--p2s-primary) 20%, transparent);
}

/* Textarea: frosted glass styling with full-width layout. */
.p2s-hero--with-form .p2s-form__panel .p2s-form__field--textarea {
  grid-column: 1 / -1;
}

.p2s-hero--with-form .p2s-form__panel .p2s-form__field--textarea textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid #6b5b57;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  font-family: var(--p2s-font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--p2s-text);
  resize: vertical;
  transition:
    border-color 150ms,
    box-shadow 150ms;
}

@media (prefers-reduced-motion: reduce) {
  .p2s-hero--with-form .p2s-form__panel .p2s-form__field--textarea textarea {
    transition: none;
  }
}

.p2s-hero--with-form .p2s-form__panel .p2s-form__field--textarea textarea:focus-visible {
  outline: none;
  border-color: var(--p2s-primary);
  box-shadow: 0 0 0 4px rgba(164, 30, 34, 0.2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--p2s-primary) 20%, transparent);
}

/* Invalid input fields: red border and outline, high specificity. */
.p2s-hero--with-form
  .p2s-form__panel
  .p2s-form__field
  input.p2s-form__input--invalid:not([type="checkbox"]),
.p2s-hero--with-form .p2s-form__panel .p2s-form__field select.p2s-form__input--invalid,
.p2s-hero--with-form .p2s-form__panel .p2s-form__field--textarea textarea.p2s-form__input--invalid {
  border-color: #b71c1c;
  outline: 2px solid #b71c1c;
  outline-offset: -1px;
}

/* Consent field: checkbox left-aligned with text wrapping beside it. */
.p2s-hero--with-form .p2s-form__panel .p2s-form__field--consent {
  grid-column: 1 / -1;
  margin-top: var(--p2s-space-md);
}

.p2s-hero--with-form .p2s-form__panel .p2s-form__field--consent label,
.p2s-hero--with-form .p2s-form__panel .p2s-form__field--checkbox label {
  display: flex;
  gap: var(--p2s-space-sm);
  align-items: flex-start;
  font-weight: var(--p2s-body-weight);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--p2s-text);
}

.p2s-hero--with-form .p2s-form__panel .p2s-form__field--consent input[type="checkbox"],
.p2s-hero--with-form .p2s-form__panel .p2s-form__field--checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  margin: 0;
  padding: 0;
  min-height: 0;
  box-shadow: none;
  background: none;
  margin-top: 2px;
  accent-color: var(--p2s-primary);
  cursor: pointer;
}

.p2s-hero--with-form
  .p2s-form__panel
  .p2s-form__field--consent
  input[type="checkbox"]:focus-visible,
.p2s-hero--with-form
  .p2s-form__panel
  .p2s-form__field--checkbox
  input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--p2s-primary);
  outline-offset: 2px;
}

/* Invalid consent checkbox: outline only. */
.p2s-hero--with-form
  .p2s-form__panel
  .p2s-form__field--consent
  input[type="checkbox"].p2s-form__input--invalid,
.p2s-hero--with-form
  .p2s-form__panel
  .p2s-form__field--checkbox
  input[type="checkbox"].p2s-form__input--invalid {
  outline: 2px solid #b71c1c;
  outline-offset: 2px;
}

.p2s-hero--with-form .p2s-form__panel .p2s-form__field--consent a {
  color: var(--p2s-primary);
  text-decoration: underline;
}

.p2s-hero--with-form .p2s-form__panel .p2s-form__field--consent a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.p2s-hero--with-form .p2s-form__panel .p2s-form__field--full {
  grid-column: 1 / -1;
}

/* Honeypot: visually hidden. */
.p2s-form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Status message: empty state takes no space (not hidden from screen readers). */
.p2s-hero--with-form .p2s-form__panel .p2s-form__status:empty {
  padding: 0;
  margin: 0;
  border: none;
}

.p2s-hero--with-form .p2s-form__panel .p2s-form__status {
  grid-column: 1 / -1;
  padding: var(--p2s-space-md);
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: var(--p2s-space-md);
}

.p2s-hero--with-form .p2s-form__panel .p2s-form__status--success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

.p2s-hero--with-form .p2s-form__panel .p2s-form__status--error {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ffcdd2;
}

/* Submit button: frosted glass style with subtle lift on hover. */
.p2s-hero--with-form .p2s-form__panel button.p2s-button {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--p2s-primary);
  border-radius: 12px;
  background: var(--p2s-primary);
  color: var(--p2s-on-primary);
  font-family: var(--p2s-font-body);
  font-size: 0.9375rem;
  font-weight: var(--p2s-medium-weight);
  line-height: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition:
    transform 200ms,
    box-shadow 200ms;
}

@media (prefers-reduced-motion: reduce) {
  .p2s-hero--with-form .p2s-form__panel button.p2s-button {
    transition: none;
  }
}

.p2s-hero--with-form .p2s-form__panel button.p2s-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(164, 30, 34, 0.15);
}

.p2s-hero--with-form .p2s-form__panel button.p2s-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
