/* Branded member preview. Laid out like the kit landing pages
   (dark page-hero, white form card, lp-footer) from templates/competitor-kit.html;
   the phone itself is the website's branded-app widget, restyled here only
   for size and placement. Present mode keeps the phone alone, full screen. */

.ap { margin: 0; background: var(--surface-dark); color: var(--c-ink); }

/* ─── Hero: centered title on top, then the form card and the phone side by side ─── */
/* clip, not hidden: hidden would make the hero the scroll container and stop the phone sticking. */
.ap-hero { margin-top: 0; padding: var(--sp-10) 0 var(--sp-16); overflow: clip; }
.ap-hero .container { position: relative; z-index: 1; max-width: 80rem; }
.ap-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }

.ap-layout {
  display: grid;
  /* Two balanced columns, centered as a pair. Swap the area names to put the phone on the left. */
  grid-template-columns: minmax(0, 32rem) minmax(0, 32rem);
  grid-template-areas: "copy copy" "card phone";
  justify-content: center;
  column-gap: var(--sp-16);
  row-gap: var(--sp-12);
  align-items: start;
}
.ap-copy { grid-area: copy; text-align: center; }
.ap-stage { grid-area: phone; }
.ap-card { grid-area: card; }

.ap-hero-logo { display: block; height: 1.9rem; width: auto; margin: 0 auto var(--sp-8); }
.ap-copy .page-hero__lede { max-width: 40rem; margin: var(--sp-5) auto 0; }

.ap-stage {
  position: sticky;
  top: var(--sp-6);
  display: grid;
  justify-items: center;
}

/* The form card: the template's .lp-form-card, holding our form instead of HubSpot's. */
.ap-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: var(--sp-8);
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-xl);
}
.ap-card__title { margin: 0; font-size: var(--sz-h4, 1.25rem); font-weight: 700; letter-spacing: -0.01em; color: var(--c-ink); }
.ap-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }

/* ─── Form ─── */
.ap-label {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--sz-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-gray-500);
}
.ap-help { margin: var(--sp-2) 0 0; font-size: var(--sz-xs); line-height: 1.5; color: var(--c-gray-500); }
.ap-help:empty { display: none; }
.ap-help.is-warn { color: var(--c-warning, #b45309); }
.ap-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.ap-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--c-gray-200);
  border-radius: var(--r-md, 0.5rem);
  background: var(--c-white);
  color: var(--c-ink);
  font: inherit;
  font-size: var(--sz-sm);
}
.ap-input:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 1px; border-color: transparent; }
.ap-input--area { resize: vertical; min-height: 3.6rem; line-height: 1.4; }
.ap-input--hex { width: 7.5rem; font-family: var(--font-mono, ui-monospace, monospace); }

.ap-site__row { display: flex; gap: var(--sp-2); }
.ap-site__row .ap-input { flex: 1; font-size: var(--sz-base, 1rem); }
.ap-status { margin: var(--sp-2) 0 0; font-size: var(--sz-sm); color: var(--c-gray-500); min-height: 1.4em; }
.ap-status.is-error { color: var(--c-danger, #c62828); }
.ap-status.is-warn { color: var(--c-warning, #b45309); }
.ap-status.is-busy::before {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.45em;
  vertical-align: -0.1em;
  border: 2px solid var(--c-gray-200);
  border-top-color: var(--c-blue);
  border-radius: 50%;
  animation: ap-spin 0.8s linear infinite;
}
@keyframes ap-spin { to { transform: rotate(360deg); } }

.ap-fields { display: flex; flex-direction: column; gap: var(--sp-5); }
.ap-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ap-fieldset legend { padding: 0; }

/* Gym type: one segmented control, four presets */
.ap-types {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--c-gray-200);
  border-radius: var(--r-md, 0.5rem);
  background: var(--c-gray-50);
}
.ap-type {
  padding: 0.5rem 0.25rem;
  border: 0;
  border-radius: calc(var(--r-md, 0.5rem) - 2px);
  background: transparent;
  color: var(--c-gray-700);
  font: inherit;
  font-size: var(--sz-sm);
  font-weight: 600;
  cursor: pointer;
}
.ap-type:hover { color: var(--c-ink); }
.ap-type[aria-checked="true"] { background: var(--c-white); color: var(--c-ink); box-shadow: 0 1px 2px rgb(4 7 14 / 0.12), inset 0 0 0 1px var(--c-gray-200); }
.ap-type:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 1px; }

/* Logo candidates */
.ap-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.ap-logos:empty::before { content: "No logo yet"; grid-column: 1 / -1; font-size: var(--sz-xs); color: var(--c-gray-500); }
.ap-logo-opt {
  position: relative;
  display: grid;
  place-items: center;
  height: 4.25rem;
  padding: 0.5rem;
  border: 2px solid transparent;
  border-radius: var(--r-md, 0.5rem);
  background: var(--c-gray-100);
  cursor: pointer;
}
/* Tiles are drawn on the app bar of the mode being edited, so the AE sees
   exactly how each logo reads there. */
.ap-logos[data-mode="light"] .ap-logo-opt { background: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-gray-200); }
.ap-logos[data-mode="dark"] .ap-logo-opt { background: #070A12; }
.ap-logos[data-mode="dark"] .ap-logo-opt__tag { background: rgb(255 255 255 / 0.12); color: var(--c-white); }
.ap-logo-opt { overflow: hidden; }
.ap-logo-opt img { max-width: 100%; max-height: 3.1rem; width: auto; height: auto; object-fit: contain; }
.ap-logo-opt[aria-checked="true"] { border-color: var(--c-blue); }
.ap-logo-opt:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.ap-logo-opt__tag {
  position: absolute;
  left: 0.3rem;
  bottom: 0.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--c-gray-100);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--c-gray-700);
}

/* Upload: a tile in the same grid, same size as the options next to it. */
.ap-upload-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  border: 1.5px dashed var(--c-gray-300, #c9ced4);
  border-radius: var(--r-md, 0.5rem);
  background: var(--c-white);
  color: var(--c-gray-600, #4b5563);
  font-size: var(--sz-xs);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.ap-upload-tile svg { width: 1.1rem; height: 1.1rem; }
.ap-upload-tile:hover { border-color: var(--c-blue); color: var(--c-blue); }
.ap-upload-tile:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.ap-logos .ap-upload-tile { height: 4.25rem; box-sizing: border-box; }
.ap-photos .ap-upload-tile { aspect-ratio: 5 / 2; }

/* Banner photo candidates */
.ap-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.ap-photo-opt {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 2;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--r-md, 0.5rem);
  background: var(--c-gray-100);
  overflow: hidden;
  cursor: pointer;
}
.ap-photo-opt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ap-photo-opt span { font-size: var(--sz-xs); font-weight: 700; color: var(--c-white); }
.ap-photo-opt .ap-photo-opt__tag {
  position: absolute;
  left: 0.3rem;
  bottom: 0.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgb(4 7 14 / 0.6);
  font-size: 0.6rem;
  font-weight: 600;
}
.ap-photo-opt[aria-checked="true"] { border-color: var(--c-blue); }
.ap-photo-opt:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }

/* Accent colors: the site's row, FLiiP's row, then any color */
.ap-swatch-group + .ap-swatch-group { margin-top: var(--sp-3); }
.ap-swatch-caption { margin: 0 0 var(--sp-2); font-size: var(--sz-xs); color: var(--c-gray-500); }
.ap-swatches { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.ap-swatch {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 2px solid var(--c-white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--c-gray-200);
  cursor: pointer;
}
.ap-swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--c-blue); }
.ap-swatch:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; }
/* A color that would vanish on this mode's app bar: shown, crossed out, not pickable. */
.ap-swatch { position: relative; }
.ap-swatch:disabled { opacity: 0.35; cursor: not-allowed; }
.ap-swatch:disabled::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--c-gray-700);
  transform: rotate(-45deg);
}
.ap-color-row { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); }
.ap-custom {
  position: relative;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--c-white);
  border-radius: 50%;
  background: conic-gradient(#ef4444, #f59e0b, #eab308, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #ef4444);
  box-shadow: 0 0 0 1px var(--c-gray-200);
  cursor: pointer;
}
.ap-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ap-custom:focus-within { outline: 2px solid var(--c-blue); outline-offset: 3px; }
.ap-input--hex { height: 2.25rem; padding-top: 0; padding-bottom: 0; }

.ap-actions { display: flex; gap: var(--sp-3); padding-top: var(--sp-5); border-top: 1px solid var(--c-gray-200); }
.ap-actions .btn { flex: 1; justify-content: center; }
.ap-footnote { margin: calc(-1 * var(--sp-2)) 0 0; }

/* ─── The phone (kit widget) ─── */
/* Everything about the phone scales with one width, so the corners, bezel and
   camera pill keep iPhone proportions at any size (the widget's own radius is
   fixed, which looked square once the phone got bigger). */
/* Sized so the phone, the switch and the note under it fit one screen. */
.ap-stage { --ap-phone-w: clamp(15rem, calc((100vh - 11rem) * 9 / 19.5), 27rem); }
.ap-stage .bas__stage { margin-top: 0; max-width: none; width: auto; grid-area: auto; }
/* Light/dark switch under the phone, not above it. */
.ap-stage .bas__switch { order: 2; }
.ap-stage .bas__device {
  width: var(--ap-phone-w);
  max-width: none;
  padding: calc(var(--ap-phone-w) * 0.028);
  border: calc(var(--ap-phone-w) * 0.011) solid transparent;
  border-radius: calc(var(--ap-phone-w) * 0.16);
  /* Black glass bezel inside a brushed titanium frame. */
  background:
    linear-gradient(#050506, #050506) padding-box,
    linear-gradient(150deg, #9a9da2 0%, #4a4d52 18%, #2c2e32 42%, #5d6065 64%, #2e3034 82%, #8b8e93 100%) border-box;
  box-shadow: 0 2px 0 rgb(255 255 255 / 0.04), 0 36px 70px -28px rgb(0 0 0 / 0.7);
}
.ap-stage.bas--dark .bas__device { box-shadow: 0 2px 0 rgb(255 255 255 / 0.04), 0 36px 70px -28px rgb(0 0 0 / 0.7); }
.ap-stage .bas__screen { border-radius: calc(var(--ap-phone-w) * 0.125); }
/* Dynamic Island: about a third of the width, sized and placed like the real one. */
.ap-stage .bas__island {
  top: calc(var(--ap-phone-w) * 0.046);
  width: calc(var(--ap-phone-w) * 0.3);
  height: calc(var(--ap-phone-w) * 0.084);
  background: #000;
}
/* Side buttons: action button and volume on the left, power on the right. */
.ap-stage .bas__device::before,
.ap-stage .bas__device::after {
  content: "";
  position: absolute;
  width: calc(var(--ap-phone-w) * 0.012);
  background: #3b3e43;
}
.ap-stage .bas__device::before {
  left: calc(var(--ap-phone-w) * -0.022);
  top: 17%;
  height: 27%;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(to bottom, #3b3e43 0 15%, transparent 15% 27%, #3b3e43 27% 60%, transparent 60% 67%, #3b3e43 67% 100%);
}
.ap-stage .bas__device::after {
  right: calc(var(--ap-phone-w) * -0.022);
  top: 27%;
  height: 15%;
  border-radius: 0 2px 2px 0;
}

/* Honest framing under the phone: an automatic preview, not the finished product. */
.ap-stage .ap-disclaimer {
  order: 1;
  max-width: calc(var(--ap-phone-w) + 2rem);
  margin: var(--sp-5) auto 0;
  font-size: var(--sz-xs);
  line-height: 1.55;
  text-align: center;
  color: rgb(255 255 255 / 0.55);
  text-wrap: balance;
}

/* iOS status bar: time in the left "ear", signal, Wi-Fi and battery in the
   right one, both centered on the camera pill. */
.ap-stage .mas .mas__status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 34%;
  justify-items: center;
  align-items: center;
  padding: 0.85em 1.1em 0.75em;
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ap-stage .mas .mas__sys { display: inline-flex; align-items: center; gap: 0.32em; }
.ap-stage .mas .mas__sys svg { display: block; height: 0.78em; width: auto; }
/* Home indicator, drawn over the tab bar like on a real iPhone. */
.ap-stage .ap-home {
  position: absolute;
  left: 50%;
  bottom: 0.42em;
  z-index: 3;
  width: 36%;
  height: 0.3em;
  border-radius: 999px;
  background: var(--tx);
  transform: translateX(-50%);
  pointer-events: none;
}
.ap-stage .bas__hint { display: none; }
/* No demo gate here: the AE is the demo. */
.ap-stage .bas__gate { display: none !important; }
.ap-stage .bas__screen.is-gated .bas__apps { filter: none; pointer-events: auto; }
/* Real logos come in every shape; keep them inside the app bar. */
.ap-stage .mas__logo-img { max-width: 9.5em; object-fit: contain; }
/* Text on an accent fill is white or ink, whichever contrasts more with the
   accent (--ap-on-accent, set by the script): a yellow accent gets dark text.
   !important because the widget hardcodes #fff in higher-specificity rules. */
.ap-stage .mas .mas-chip.is-on,
.ap-stage .mas .mas__d-cta { color: var(--ap-on-accent, #fff) !important; }

.ap-exit {
  position: fixed;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: 2;
  display: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  color: var(--c-white);
  font: inherit;
  font-size: var(--sz-xs);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ap-stage:hover .ap-exit, .ap-exit:focus-visible { opacity: 1; }

/* ─── Loading: a shared link (or a new build) covers the phone with a spinner ─── */
/* opacity, not visibility: the widget sets visibility: visible on the active screen, which would show through. */
.ap-loading .ap-stage .bas__apps { opacity: 0; }
.ap-loading .ap-stage .bas__switch { opacity: 0.4; pointer-events: none; }
.ap-loading .ap-stage .bas__screen { background: #070a12; }
.ap-loading .ap-stage .bas__screen::before {
  content: "";
  position: absolute;
  top: 44%;
  left: 50%;
  width: 2.2rem;
  height: 2.2rem;
  margin: -1.1rem 0 0 -1.1rem;
  border: 3px solid rgb(255 255 255 / 0.15);
  border-top-color: var(--c-blue);
  border-radius: 50%;
  animation: ap-spin 0.8s linear infinite;
  z-index: 5;
}
.ap-loading .ap-stage .bas__screen::after {
  content: attr(data-loading);
  position: absolute;
  top: calc(44% + 2rem);
  left: 1rem;
  right: 1rem;
  text-align: center;
  color: rgb(255 255 255 / 0.75);
  font-size: var(--sz-sm);
  z-index: 5;
}

/* ─── Present mode: phone only, as big as the screen allows (unchanged look) ─── */
.ap.is-presenting { overflow: hidden; }
.ap.is-presenting .ap-copy,
.ap.is-presenting .ap-card,
.ap.is-presenting .ap-why,
.ap.is-presenting .ap-gets,
.ap.is-presenting .ap-cta,
.ap.is-presenting .lp-footer { display: none; }
.ap.is-presenting .ap-stage {
  position: fixed;
  inset: 0;
  z-index: 100;
  place-items: center;
  align-content: center;
  padding: var(--sp-6);
  background: var(--grad-dark);
}
.ap.is-presenting .ap-exit { display: block; }
.ap.is-presenting .ap-stage { --ap-phone-w: clamp(14rem, calc((100vh - 11rem) * 9 / 19.5), 34rem); }

/* ─── Below the builder: why it matters, what members get, book a demo ─── */
.ap-hero-talk { margin-top: var(--sp-4); font-size: var(--sz-sm); color: rgb(255 255 255 / 0.6); }
.ap-hero-talk a { color: var(--c-white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.ap-why .section-header, .ap-gets .section-header { margin-bottom: var(--sp-12); }
.ap-why .section-title em, .ap-gets .section-title em { font-style: normal; color: var(--c-blue); }
.ap-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.ap-stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-8) var(--sp-6);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--r-xl, 16px);
  background: var(--c-white);
}
.ap-stat__num {
  font-family: var(--font-display);
  font-stretch: var(--font-display-stretch, 75%);
  font-weight: var(--font-display-weight, 650);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--c-ink);
}
.ap-stat p { margin: 0; color: var(--c-gray-700); line-height: 1.5; }
.ap-stat__src { margin-top: auto; font-size: var(--sz-xs); color: var(--c-gray-500); }
.ap-stat__src a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.ap-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6); }
.ap-point { padding-top: var(--sp-5); border-top: 2px solid var(--c-ink); }
.ap-point h3 { margin: 0 0 var(--sp-2); font-size: var(--sz-h4, 1.2rem); color: var(--c-ink); }
.ap-point p { margin: 0; color: var(--c-gray-700); line-height: 1.55; }

.ap-cta { padding: var(--sp-20) 0; }
.ap-cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  gap: var(--sp-16);
  align-items: center;
}
.ap-cta__copy .lead { margin-top: var(--sp-5); max-width: 32rem; }
.ap-demo {
  padding: var(--sp-7, 1.75rem) var(--sp-8);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--r-xl, 16px);
  background: var(--c-white);
  box-shadow: var(--shadow-xl);
}
/* The kit tints every paragraph in .cta-section for a dark band; the form card is white. */
.ap-demo p { color: var(--c-gray-700); }

/* HubSpot v4 form + scheduler, copied from templates/competitor-kit.html. */
.demo-form-heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0 0 var(--sp-5);
  text-align: center;
}

/* ── Form -> scheduler swap (ported from myfliip.com's DemoForm.astro) ── */
.demo-scheduler-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0 0 var(--sp-4);
  text-align: center;
}
.demo-form-fallback {
  font-size: var(--sz-sm);
  color: var(--c-gray-700);
  margin: var(--sp-4) 0 0;
}
.demo-form-fallback a { color: var(--c-blue); text-decoration: underline; }

/* Style the v4 "developer" embed's real markup to match the design system. */
/* Slot held while the embed loads; below the loaded height at every width. */
.hs-form-html { min-height: 360px; }
.hs-form-html form { display: flex; flex-direction: column; gap: var(--sp-4); }
.hs-form-html label {
  display: block;
  font-size: var(--sz-xs);
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: var(--sp-1);
}
.hs-form-html input[type="text"],
.hs-form-html input[type="email"],
.hs-form-html input[type="tel"],
.hs-form-html input[type="number"],
.hs-form-html select,
.hs-form-html textarea {
  width: 100%;
  padding: var(--sp-3);
  border: 1px solid var(--c-gray-300);
  border-radius: var(--r-md);
  font: inherit;
  color: var(--c-ink);
  background: var(--c-white);
}
.hs-form-html input:focus,
.hs-form-html select:focus,
.hs-form-html textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(11, 131, 250, 0.15);
}
/* HubSpot's own button rules are 0,2,0 / 0,4,0 (hover/focus); these 0,3,0 / 0,5,0
   selectors win without !important. */
.lp-form-card .hs-form-html .hsfc-Button {
  background-color: var(--c-blue);
  border-radius: var(--r-md);
  width: 100%;
}
.lp-form-card .hs-form-html .hsfc-Button:not([disabled]):hover,
.lp-form-card .hs-form-html .hsfc-Button:not([disabled]):focus {
  background-color: var(--c-blue-dark);
}
/* The embed's inner wrapper ships flat 40px padding on all four sides. The
   side padding double-pads against the card's own gutter; the top and
   bottom read as dead bands under the heading and below the button. */
.lp-form-card .hs-form-html .hsfc-Step .hsfc-Step__Content {
  padding: 0;
}
/* Same story on the submit row: HubSpot pushes it 40px off the last field. */
.lp-form-card .hs-form-html .hsfc-NavigationRow {
  margin-top: var(--sp-3);
}
/* The embed renders its hidden tracking fields as empty rows, and each
   keeps HubSpot's 20px bottom margin: eight of them stacked a ~160px dead
   band between the last field and the submit button. */
.lp-form-card .hs-form-html .hsfc-Row:not(:has(> :not(input[type="hidden"]))) {
  display: none;
}
/* SMS consent checkbox: legal fine print, not a field label. HubSpot ships
   it at the 16px/600 label style, which outweighed the fields around it. */
.lp-form-card .hs-form-html .hsfc-CheckboxField .hsfc-FieldLabel {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  margin: 0;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--c-gray-600);
}
.lp-form-card .hs-form-html .hsfc-CheckboxField .hsfc-FieldLabel * { font-weight: 400; }
.lp-form-card .hs-form-html .hsfc-CheckboxField .hsfc-CheckboxInput { flex-shrink: 0; margin-top: 2px; }

/* ─── Footer (template's lp-footer) ─── */
.lp-footer {
  padding: var(--sp-8) 0;
  background: var(--c-ink);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}
.lp-footer .container { display: flex; gap: var(--sp-6); flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 960px) {
  .ap-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "card" "phone";
    grid-template-rows: auto;
  }
  .ap-stage { position: static; }
  .ap-stage { --ap-phone-w: min(20rem, 78vw); }
}
@media (max-width: 960px) {
  .ap-stats { grid-template-columns: minmax(0, 1fr); }
  .ap-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-cta__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-10); }
}
@media (max-width: 560px) {
  .ap-points { grid-template-columns: minmax(0, 1fr); }
  .ap-demo { padding: var(--sp-6) var(--sp-5); }
  .ap-card { padding: var(--sp-5); }
  .ap-row { grid-template-columns: 1fr; }
}
