/* ==========================================================================
   Airbnb Management — page redesign
   Design handoff: "Bnbuddy page redesign" (Airbnb Management Page.dc.html)
   Depends on homepage-v3.css for the --bb-* design tokens and the v4 shell.
   ========================================================================== */

.am-page {
  font-family: var(--bb-font-body);
  color: var(--bb-on-surface);
  background: #ffffff;
  overflow-x: hidden;

  /* Accent derived from the brand violet — the design's "Brand purple" theme. */
  --am-acc: var(--bb-primary);
  --am-acc-hi: var(--bb-primary-container);
  --am-acc-mid: #6a5ad6;
  --am-acc-t04: rgba(86, 69, 205, 0.04);
  --am-acc-t05: rgba(86, 69, 205, 0.05);
  --am-acc-t06: rgba(86, 69, 205, 0.06);
  --am-acc-t08: rgba(86, 69, 205, 0.08);
  --am-acc-t10: rgba(86, 69, 205, 0.10);
  --am-acc-t16: rgba(86, 69, 205, 0.16);
  --am-hero-overlay: linear-gradient(160deg, rgba(86, 69, 205, 0.92) 0%, rgba(94, 67, 180, 0.88) 100%);
}

/* The handoff exposes a "Legacy blue" theme option. Scope it to pages that opt in
   so the English redesign can stay on the default Brand purple theme. */
body.am-theme-blue {
  --am-brand-acc: #5645cd;
  --am-brand-acc-hi: #6f60e8;
  --am-brand-acc-t08: rgba(86, 69, 205, 0.08);
  --am-brand-shadow: rgba(86, 69, 205, 0.24);
  --bb-primary: #3b82f6;
  --bb-primary-container: #2563eb;
  --bb-auth-primary: #3b82f6;
  --bb-focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.15);
  --bb-chip-bg: rgba(59, 130, 246, 0.10);
  --bb-chip-text: #2563eb;
}

body.am-theme-blue .am-page {
  --am-acc: #3b82f6;
  --am-acc-hi: #2563eb;
  --am-acc-mid: #60a5fa;
  --am-acc-t04: rgba(59, 130, 246, 0.04);
  --am-acc-t05: rgba(59, 130, 246, 0.05);
  --am-acc-t06: rgba(59, 130, 246, 0.06);
  --am-acc-t08: rgba(59, 130, 246, 0.08);
  --am-acc-t10: rgba(59, 130, 246, 0.10);
  --am-acc-t16: rgba(59, 130, 246, 0.16);
  --am-hero-overlay: linear-gradient(160deg, rgba(59, 130, 246, 0.92) 0%, rgba(37, 99, 235, 0.88) 100%);
}

body.am-theme-blue .am-header .am-header__cta {
  background: var(--am-brand-acc);
}

body.am-theme-blue .am-header .am-header__cta:hover {
  background: var(--am-brand-acc-hi);
  box-shadow: 0 8px 20px var(--am-brand-shadow);
}

body.am-theme-blue .breakdance .v4-header__mobile-menu a.am-header__mobile-cta,
body.am-theme-blue .v4-header__mobile-menu a.am-header__mobile-cta,
body.am-theme-blue .breakdance .v4-header__mobile-menu a.am-header__mobile-cta:hover,
body.am-theme-blue .v4-header__mobile-menu a.am-header__mobile-cta:hover {
  color: var(--am-brand-acc);
}

body.am-theme-blue .am-page .am-brand-cta.am-btn--primary {
  background: var(--am-brand-acc);
  color: var(--bb-on-primary);
}

body.am-theme-blue .am-page .am-brand-cta.am-btn--primary:hover {
  background: var(--am-brand-acc-hi);
  color: var(--bb-on-primary);
}

body.am-theme-blue .am-page .am-brand-cta.am-btn--onDark,
body.am-theme-blue .am-page .am-brand-cta.am-btn--onDark:hover {
  color: var(--am-brand-acc);
}

body.am-theme-blue .am-page .am-brand-cta.am-btn--quiet {
  color: var(--am-brand-acc);
}

body.am-theme-blue .am-page .am-brand-cta.am-btn--quiet:hover {
  background: var(--am-brand-acc-t08);
  color: var(--am-brand-acc);
}

body.am-theme-blue .am-page .am-footer__links a,
body.am-theme-blue .am-page .am-footer__meta a {
  color: var(--am-brand-acc);
}

body.am-theme-blue .am-page .am-footer__links a:hover,
body.am-theme-blue .am-page .am-footer__meta a:hover {
  color: var(--am-brand-acc-hi);
}

body.am-theme-blue .v4-header__mobile-menu {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.am-page *,
.am-page *::before,
.am-page *::after {
  box-sizing: border-box;
}

/* ---------- Breakdance neutralizer ----------
   global-settings.css styles `.breakdance a/img/h1..h6` at specificity (0,1,1),
   which outranks our single-class component rules (0,1,0). Re-assert the
   defaults one level deeper so everything below this block wins normally. */
.am-page h1,
.am-page h2,
.am-page h3,
.am-page h4,
.am-page h5,
.am-page h6 {
  color: inherit;
  text-transform: none;
}

.am-page a {
  color: inherit;
  text-decoration: none;
}

.am-page img {
  max-width: 100%;
  height: auto;
}

.am-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* The header is sticky (~85px), so anchor jumps must stop short of it or the
   section heading lands underneath. Covers the nav, footer and CTA anchors. */
.am-page section[id] {
  scroll-margin-top: 100px;
}

/* Legacy anchor targets (#transformamos, #servicios, …) kept so older inbound
   links and ad destinations still land in the right place. */
.am-anchor {
  display: block;
  position: relative;
  top: -80px;
  height: 0;
  visibility: hidden;
}

/* ---------- Shared primitives ---------- */

.am-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--am-acc-t08);
  color: var(--am-acc);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.am-page h1,
.am-page h2,
.am-page h3,
.am-page h4 {
  font-family: var(--bb-font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.am-page .am-h2 {
  margin: 16px 0 0;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.am-lede {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--bb-on-surface-variant);
  text-wrap: pretty;
}

.am-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border-radius: 16px;
  font-family: var(--bb-font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 300ms ease, background 300ms ease, box-shadow 300ms ease;
}

.am-page .am-btn--primary {
  background: var(--am-acc);
  color: var(--bb-on-primary);
}

.am-page .am-btn--primary:hover {
  background: var(--am-acc-hi);
  color: var(--bb-on-primary);
  transform: translateY(-2px);
}

.am-page .am-btn--onDark {
  background: #ffffff;
  color: var(--am-acc);
}

.am-page .am-btn--onDark:hover {
  color: var(--am-acc);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

.am-page .am-btn--quiet {
  height: 44px;
  padding: 0 24px;
  background: transparent;
  color: var(--am-acc);
  font-size: 14px;
}

.am-page .am-btn--quiet:hover {
  background: var(--am-acc-t08);
  color: var(--am-acc);
}

.am-btn--block {
  display: flex;
  width: 100%;
}

/* Cards share the design's hairline border + tinted ambient shadow on hover. */
.am-card {
  background: #ffffff;
  border: 1px solid var(--bb-surface-container);
  border-radius: 24px;
  transition: box-shadow 300ms ease, transform 300ms ease;
}

.am-card:hover {
  box-shadow: 0 10px 40px var(--am-acc-t10);
  transform: translateY(-2px);
}

.am-icon-circle {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--am-acc-t08);
  color: var(--am-acc);
}

.am-media {
  border-radius: 24px;
  overflow: hidden;
  height: 420px;
}

.am-page .am-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.am-media:hover img {
  transform: scale(1.1);
}

/* ==========================================================================
   Header — page-specific override of .v4-header
   "Rentals" is promoted out of the nav into the top-right primary CTA.
   Selectors are doubled up to clear `.breakdance a` (0,1,1) in
   global-settings.css and the mobile-menu link rules in homepage-v3.css.
   ========================================================================== */

.am-header .am-header__cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--bb-primary);
  color: var(--bb-on-primary);
  font-family: var(--bb-font-body);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.am-header .am-header__cta:hover {
  background: var(--bb-primary-container);
  color: var(--bb-on-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(86, 69, 205, 0.24);
}

/* Below 1024px the nav and Sign in collapse into the hamburger — the CTA
   goes with them and reappears inside the mobile menu. */
@media (max-width: 1023px) {
  .am-header .am-header__cta {
    display: none;
  }
}

/* Mobile-menu CTA — inverted, since the panel is a purple gradient. */
.breakdance .v4-header__mobile-menu a.am-header__mobile-cta,
.v4-header__mobile-menu a.am-header__mobile-cta {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  border-bottom: 0;
  background: #ffffff;
  color: var(--bb-primary);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.breakdance .v4-header__mobile-menu a.am-header__mobile-cta:hover,
.v4-header__mobile-menu a.am-header__mobile-cta:hover {
  background: #ffffff;
  color: var(--bb-primary);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.am-hero {
  background: var(--bb-surface);
  border-bottom: 1px solid var(--bb-surface-container);
}

.am-hero__inner {
  display: flex;
  flex-wrap: wrap;
  min-height: 640px;
}

.am-hero__panel {
  flex: 1 1 520px;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  overflow: hidden;
}

.am-page .am-hero__panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.am-hero__panel-scrim {
  position: absolute;
  inset: 0;
  background: var(--am-hero-overlay);
}

/* Set white on the container so the h1 inherits it — the Breakdance
   neutralizer above resets heading colors at a higher specificity. */
.am-hero__panel-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 620px;
  color: #ffffff;
}

.am-hero__glyph {
  opacity: 0.95;
}

.am-page .am-hero__title {
  margin: 32px 0 0;
  font-weight: 800;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.am-hero__cta {
  margin-top: 40px;
}

.am-hero__cta-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.01em;
}

.am-hero__body {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 80px 64px;
}

.am-hero__body-inner {
  max-width: 560px;
}

.am-hero__body h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.08;
}

.am-hero__hook {
  margin: 24px 0 0;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--bb-on-surface);
  text-wrap: pretty;
}

.am-painlist {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.am-painlist__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  line-height: 1.5;
}

.am-painlist__item svg {
  flex: none;
  margin-top: 3px;
}

.am-hero__promise {
  margin: 28px 0 0;
  font-family: var(--bb-font-display);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.am-formula {
  margin-top: 28px;
  padding: 24px;
  border-radius: 24px;
  background: var(--am-acc-t05);
}

.am-formula__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--am-acc);
}

.am-formula__equation {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-family: var(--bb-font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.am-formula__op {
  color: var(--bb-outline-variant);
}

.am-formula__result {
  color: var(--am-acc);
}

.am-proof {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--bb-surface-container);
  box-shadow: 0 10px 40px var(--am-acc-t06);
}

.am-proof__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--bb-tertiary-fixed);
  color: var(--bb-tertiary);
}

.am-proof__title {
  font-family: var(--bb-font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.am-proof__text {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bb-on-surface-variant);
}

/* ==========================================================================
   Three pillars
   ========================================================================== */

.am-pillars {
  background: var(--bb-surface);
  border-top: 1px solid var(--bb-surface-container);
  border-bottom: 1px solid var(--bb-surface-container);
}

.am-pillars .am-container {
  padding-top: 64px;
  padding-bottom: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}

.am-pillars__copy {
  flex: 1 1 460px;
  min-width: 0;
}

.am-pillars__copy h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.am-pillars__sub {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--am-acc);
  text-wrap: pretty;
}

.am-pillars__list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.am-pillars__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.am-pillars__item .am-icon-circle {
  width: 36px;
  height: 36px;
}

.am-pillars__term {
  font-family: var(--bb-font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.am-pillars__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--bb-on-surface-variant);
}

.am-pillars__media {
  flex: 1 1 380px;
  min-width: 0;
}

/* ==========================================================================
   Services included
   ========================================================================== */

.am-services {
  background: #ffffff;
}

.am-services .am-container {
  padding-top: 72px;
  padding-bottom: 72px;
}

.am-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
}

.am-section-head__copy {
  max-width: 620px;
}

.am-pill-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--bb-surface);
  border: 1px solid var(--bb-surface-container);
  font-size: 14px;
  font-weight: 600;
  color: var(--bb-on-surface);
}

.am-pill-note svg {
  flex: none;
}

.am-services__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.am-service {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.am-service__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.am-service__num {
  font-family: var(--bb-font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--bb-outline-variant);
}

.am-page .am-service__title {
  margin: 18px 0 0;
  font-family: var(--bb-font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.am-service__text {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bb-on-surface-variant);
  text-wrap: pretty;
}

/* ==========================================================================
   How it works — tonal step ladder
   ========================================================================== */

.am-how {
  background: var(--bb-surface);
  border-top: 1px solid var(--bb-surface-container);
  border-bottom: 1px solid var(--bb-surface-container);
}

.am-how .am-container {
  padding-top: 72px;
  padding-bottom: 72px;
}

.am-how__steps {
  margin-top: 40px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--am-acc-t06);
}

.am-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 32px 40px;
}

.am-step + .am-step {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.am-step__num {
  flex: none;
  width: 44px;
  font-family: var(--bb-font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--am-acc);
}

.am-step__name {
  flex: 0 1 240px;
  font-family: var(--bb-font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 26px);
  letter-spacing: -0.015em;
}

.am-step__text {
  flex: 1 1 320px;
  min-width: 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  text-wrap: pretty;
}

.am-step--1 { background: var(--am-acc-t06); }
.am-step--2 { background: var(--am-acc-t16); }
.am-step--3 { background: var(--am-acc-mid); }
.am-step--4 { background: var(--am-acc); }

.am-step--3,
.am-step--4 {
  color: #ffffff;
}

.am-step--3 .am-step__num,
.am-step--4 .am-step__num {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Cities we serve
   ========================================================================== */

.am-cities {
  background: #ffffff;
}

.am-cities .am-container {
  padding-top: 72px;
  padding-bottom: 72px;
}

.am-cities__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.am-page .am-city {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  padding: 28px;
  color: var(--bb-on-surface);
  text-decoration: none;
}

.am-page .am-city:hover {
  color: var(--bb-on-surface);
}

.am-city__name {
  font-family: var(--bb-font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.am-city__link {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--bb-on-surface-variant);
}

.am-city__link svg {
  flex: none;
}

/* ==========================================================================
   Revenue assessment
   ========================================================================== */

.am-estimate {
  background: linear-gradient(180deg, #f7fafe 0%, #ffffff 100%);
  border-top: 1px solid var(--bb-surface-container);
  border-bottom: 1px solid var(--bb-surface-container);
}

.am-estimate .am-container {
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: flex-start;
}

.am-estimate__copy {
  flex: 1 1 420px;
  min-width: 0;
}

.am-estimate__mobile-head {
  display: none;
}

.am-estimate__copy h2 {
  margin: 20px 0 0;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
}

.am-estimate__lede {
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--bb-on-surface-variant);
  max-width: 520px;
  text-wrap: pretty;
}

.am-stats {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.am-stat__value {
  font-family: var(--bb-font-display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--am-acc);
}

.am-stat__label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--bb-on-surface-variant);
}

.am-aside {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 520px;
}

.am-aside::before {
  content: "";
  flex: none;
  width: 4px;
  align-self: stretch;
  border-radius: 4px;
  background: var(--bb-tertiary-fixed);
}

.am-aside p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bb-on-surface-variant);
}

/* ---------- Estimate form ---------- */

.am-form {
  flex: 1 1 360px;
  max-width: 480px;
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--bb-surface-container);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 10px 40px var(--am-acc-t06);
}

.am-form__title {
  font-family: var(--bb-font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.am-form__sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--bb-on-surface-variant);
}

.am-form__sub--mobile {
  display: none;
}

.am-form__fields {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.am-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.am-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* The property-type group is a fieldset/legend for a11y — strip the UA chrome. */
.am-page fieldset.am-field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.am-field__label {
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--bb-on-surface-variant);
}

.am-field__input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--bb-outline-variant);
  border-radius: 8px;
  background: #ffffff;
  font-family: var(--bb-font-body);
  font-size: 15px;
  color: var(--bb-on-surface);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.am-field__input::placeholder {
  color: var(--bb-outline);
}

.am-field__input:focus {
  outline: none;
  border-color: var(--am-acc);
  box-shadow: 0 0 0 3px rgba(118, 85, 217, 0.15);
}

/* City dropdown — native select with the input's chrome and a custom chevron. */
.am-field__select-wrap {
  position: relative;
}

.am-page .am-field__select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

/* The placeholder option has value="" and the select is required, so :invalid
   only matches while nothing real is chosen — mirrors the inputs' placeholder. */
.am-page .am-field__select:invalid {
  color: var(--bb-outline);
}

.am-field__select-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--bb-outline);
}

.am-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
}

.am-chip__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.am-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--bb-chip-bg);
  color: var(--bb-chip-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.am-chip:hover {
  background: var(--am-acc-t16);
}

.am-chip__input:checked + .am-chip {
  background: var(--am-acc);
  color: var(--bb-on-primary);
}

.am-chip__input:focus-visible + .am-chip {
  box-shadow: 0 0 0 3px rgba(118, 85, 217, 0.15);
}

.am-form__submit {
  margin-top: 24px;
}

.am-form__fineprint {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--bb-on-surface-variant);
  text-align: center;
}

.am-stay-cta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--bb-surface-container);
}

.am-stay-cta__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--bb-on-surface);
}

.am-stay-cta p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bb-on-surface-variant);
}

.am-page .am-stay-cta a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--am-acc);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.am-page .am-stay-cta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   What stays yours
   ========================================================================== */

.am-trust {
  background: #ffffff;
}

.am-trust .am-container {
  padding-top: 80px;
  padding-bottom: 80px;
}

.am-trust__head {
  max-width: 720px;
}

.am-trust__head h2 {
  margin: 20px 0 0;
  font-weight: 800;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.12;
}

.am-trust__lede {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--bb-on-surface-variant);
  text-wrap: pretty;
}

.am-trust__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.am-trust__card {
  background: var(--bb-surface);
  padding: 32px;
}

.am-trust__card .am-icon-circle {
  width: 48px;
  height: 48px;
}

.am-page .am-trust__card-title {
  margin: 20px 0 0;
  font-family: var(--bb-font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.am-trust__card-text {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--bb-on-surface-variant);
  text-wrap: pretty;
}

.am-trust__bar {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 32px;
  border-radius: 24px;
  background: var(--am-acc-t04);
}

.am-trust__bar p {
  flex: 1;
  min-width: 280px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* ==========================================================================
   Founder CTA
   ========================================================================== */

.am-founder {
  background: var(--bb-surface);
  border-top: 1px solid var(--bb-surface-container);
}

.am-founder .am-container {
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: flex-start;
}

.am-founder__copy {
  flex: 1 1 460px;
  min-width: 0;
}

.am-founder__copy h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.1;
}

.am-founder__intro {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--bb-on-surface-variant);
  max-width: 560px;
  text-wrap: pretty;
}

.am-founder__label {
  margin-top: 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--am-acc);
}

.am-founder__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 620px;
}

.am-founder__term {
  font-family: var(--bb-font-display);
  font-weight: 700;
  font-size: 16px;
}

.am-founder__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--bb-on-surface-variant);
}

.am-founder__notice {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--bb-tertiary-fixed);
  color: var(--bb-on-tertiary-fixed);
  font-size: 15px;
  line-height: 1.6;
  max-width: 620px;
}

.am-founder__coverage {
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--bb-on-surface-variant);
  max-width: 560px;
}

.am-founder__cta {
  margin-top: 32px;
}

.am-founder__media {
  flex: 1 1 360px;
  min-width: 0;
}

.am-founder__quote {
  margin: 24px 0 0;
  font-family: var(--bb-font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--bb-on-surface);
  text-wrap: pretty;
}

/* ==========================================================================
   Footer — page-specific override of .v4-footer
   ========================================================================== */

.am-footer {
  border-top: 1px solid var(--bb-surface-container);
}

.am-footer__grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 40px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: flex-start;
}

.am-footer__brand {
  flex: 1 1 340px;
  min-width: 0;
}

.am-page .am-footer__brand img {
  height: 32px;
  width: auto;
  display: block;
}

.am-footer__brand p {
  margin: 20px 0 0;
  max-width: 400px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bb-on-surface-variant);
  text-wrap: pretty;
}

.am-footer__col {
  flex: 0 1 200px;
}

.am-footer__col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bb-on-surface-variant);
}

.am-footer__links {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}

.am-page .am-footer__links a,
.am-page .am-footer__meta a {
  color: var(--am-acc);
  transition: color 300ms ease;
}

.am-page .am-footer__links a:hover,
.am-page .am-footer__meta a:hover {
  color: var(--am-acc-hi);
}

.am-footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px 48px;
  border-top: 1px solid var(--bb-surface-container);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--bb-on-surface-variant);
}

.am-footer__meta {
  display: flex;
  gap: 12px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1023px) {
  .am-hero__body {
    padding: 64px 40px;
  }

  .am-estimate .am-container,
  .am-founder .am-container {
    gap: 48px;
  }

  .am-form {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .am-container {
    padding: 0 20px;
  }

  .am-hero__inner {
    min-height: 0;
  }

  .am-hero__panel {
    padding: 64px 24px;
    min-height: 440px;
  }

  .am-hero__body {
    padding: 48px 24px;
  }

  .am-pillars .am-container,
  .am-services .am-container,
  .am-how .am-container,
  .am-cities .am-container {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .am-estimate .am-container,
  .am-trust .am-container,
  .am-founder .am-container {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .am-pillars .am-container {
    gap: 32px;
  }

  .am-media {
    height: 280px;
  }

  .am-step {
    padding: 24px;
    gap: 8px 16px;
  }

  .am-step__name {
    flex: 1 1 auto;
  }

  .am-step__text {
    flex: 1 1 100%;
  }

  .am-stats {
    gap: 24px 32px;
  }

  .am-form,
  .am-trust__card {
    padding: 24px;
  }

  /* On a phone, lead with the one required qualifier. The remaining property
     details are collected in WhatsApp, so the CTA is visible without scrolling. */
  .am-estimate .am-estimate__mobile-head {
    display: block;
    order: -2;
    flex: 1 1 100%;
  }

  .am-estimate__mobile-head h2 {
    margin: 12px 0 0;
    font-weight: 800;
    font-size: clamp(32px, 10vw, 40px);
    line-height: 1.08;
  }

  .am-estimate .am-form {
    order: -1;
  }

  .am-estimate .am-form__row,
  .am-estimate fieldset.am-field,
  .am-estimate .am-form__sub:not(.am-form__sub--mobile),
  .am-estimate .am-form__fineprint {
    display: none;
  }

  .am-estimate .am-estimate__copy > .am-eyebrow,
  .am-estimate .am-estimate__copy > h2 {
    display: none;
  }

  .am-estimate .am-form__sub--mobile {
    display: block;
  }

  .am-estimate .am-form__fields {
    margin-top: 20px;
  }

  .am-estimate .am-form__submit {
    margin-top: 20px;
  }

  .am-trust__bar {
    padding: 24px;
  }

  .am-btn {
    width: 100%;
  }

  .am-pill-note {
    width: 100%;
  }

  .am-footer__grid {
    padding: 48px 20px 32px;
    gap: 32px;
  }

  .am-footer__col {
    flex: 1 1 140px;
  }

  .am-footer__bottom {
    padding: 20px 20px 40px;
  }
}

@media (max-width: 479px) {
  .am-form__row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .am-page * {
    transition-duration: 1ms !important;
  }

  .am-card:hover,
  .am-btn:hover {
    transform: none;
  }

  .am-media:hover img {
    transform: none;
  }
}
