.wp-site-blocks > .haillo-pricing-template,
.haillo-pricing-template > .haillo-pricing-shell,
.haillo-pricing-template > .wp-block-shortcode,
.haillo-pricing-shell {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.haillo-pricing-template {
  background: var(--wp--preset--gradient--atmosphere);
}

.haillo-pricing-page {
  margin: 0;
  overflow: hidden;
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--navy);
}

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

.haillo-pricing-page h1,
.haillo-pricing-page h2,
.haillo-pricing-page h3 { letter-spacing: 0; }

.haillo-pricing-hero {
  position: relative;
  padding: clamp(170px, 17vw, 220px) 24px clamp(78px, 9vw, 120px);
  background:
    radial-gradient(circle at 16% 15%, rgba(52,120,246,.1), transparent 28%),
    radial-gradient(circle at 86% 38%, rgba(167,44,243,.08), transparent 29%),
    var(--wp--preset--gradient--atmosphere);
  text-align: center;
}

.haillo-pricing-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52,120,246,.2), rgba(124,58,237,.16), transparent);
  content: "";
}

.haillo-pricing-hero__inner { width: min(940px, 100%); margin: 0 auto; }
.haillo-pricing-hero .haillo-eyebrow { justify-content: center; }
.haillo-pricing-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 6.2rem);
  font-weight: 680;
  line-height: 1.01;
}
.haillo-pricing-hero h1 span {
  display: block;
  color: transparent;
  background: var(--wp--preset--gradient--signal);
  background-clip: text;
  -webkit-background-clip: text;
}
.haillo-pricing-hero p {
  width: min(670px, 100%);
  margin: 30px auto 0;
  color: var(--wp--preset--color--slate);
  font-size: var(--wp--preset--font-size--lead);
  line-height: 1.65;
}

.haillo-pricing-plans,
.haillo-pricing-comparison,
.haillo-pricing-faq,
.haillo-pricing-final {
  width: var(--wp--custom--container--page);
  margin: 0 auto;
}

.haillo-pricing-plans { padding: clamp(82px, 9vw, 128px) 0; }
.haillo-pricing-plans__top { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 48px; }
.haillo-pricing-controls { display: flex; flex: 0 0 auto; align-items: end; gap: 12px; }
.haillo-pricing-section-heading { width: min(730px, 100%); margin-bottom: 48px; }
.haillo-pricing-plans__top .haillo-pricing-section-heading { margin-bottom: 0; }
.haillo-pricing-section-heading h2,
.haillo-pricing-credits h2,
.haillo-pricing-faq h2,
.haillo-pricing-final h2 {
  margin: 0;
  font-size: clamp(2.45rem, 4.6vw, 4.5rem);
  font-weight: 670;
  line-height: 1.07;
}
.haillo-pricing-section-heading > p,
.haillo-pricing-credits__copy > p {
  margin: 20px 0 0;
  color: var(--wp--preset--color--slate);
  font-size: 1.06rem;
  line-height: 1.65;
}

.haillo-billing-toggle {
  flex: 0 0 auto;
  width: max-content !important;
  min-width: 0 !important;
  max-width: 100%;
  inline-size: max-content !important;
  margin: 0;
  padding: 0;
  border: 0;
}
.haillo-billing-toggle > legend { position: absolute !important; overflow: hidden; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.haillo-billing-toggle__options {
  display: inline-grid !important;
  grid-template-columns: repeat(2, 92px) !important;
  grid-auto-flow: column;
  gap: 4px;
  width: max-content !important;
  inline-size: max-content !important;
  padding: 4px;
  border: 1px solid rgba(6,23,71,.11);
  border-radius: var(--wp--custom--radius--pill);
  background: var(--wp--preset--color--mist);
}
.haillo-billing-toggle label { position: relative; display: block; flex: 0 0 auto; margin: 0; cursor: pointer; }
.haillo-billing-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.haillo-billing-toggle span { display: block; width: 100%; min-width: 0; padding: 10px 12px; border-radius: var(--wp--custom--radius--pill); color: var(--wp--preset--color--slate); font-size: .8rem; font-weight: 680; text-align: center; transition: background var(--wp--custom--transition--fast), box-shadow var(--wp--custom--transition--fast), color var(--wp--custom--transition--fast); }
.haillo-billing-toggle input:checked + span { background: #fff; color: var(--wp--preset--color--navy); box-shadow: 0 3px 11px rgba(6,23,71,.09); }
.haillo-billing-toggle input[value="annual"] + span { background: linear-gradient(135deg, rgba(52,120,246,.08), rgba(167,44,243,.09)); color: var(--wp--preset--color--purple); }
.haillo-billing-toggle input[value="annual"]:checked + span { background: var(--wp--preset--gradient--signal); color: #fff; box-shadow: 0 7px 18px rgba(92,74,238,.22); }
.haillo-billing-toggle input:focus-visible + span { box-shadow: var(--wp--custom--shadow--focus); }

.haillo-currency-selector { position: relative; display: block; flex: 0 0 auto; }
.haillo-currency-selector__trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 132px;
  height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(6,23,71,.11);
  border-radius: var(--wp--custom--radius--pill);
  background: #fff;
  color: var(--wp--preset--color--navy);
  box-shadow: 0 4px 13px rgba(6,23,71,.045);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--wp--custom--transition--fast), box-shadow var(--wp--custom--transition--fast);
}
.haillo-currency-selector__trigger:hover { border-color: rgba(52,120,246,.3); }
.haillo-currency-selector__trigger:focus-visible { outline: none; box-shadow: var(--wp--custom--shadow--focus); }
.haillo-currency-selector__trigger [data-currency-symbol] { color: var(--wp--preset--color--slate); font-weight: 620; }
.haillo-currency-selector__chevron { width: 7px; height: 7px; margin-left: auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--wp--custom--transition--fast); }
.haillo-currency-selector__trigger[aria-expanded="true"] .haillo-currency-selector__chevron { transform: translateY(2px) rotate(225deg); }
.haillo-currency-selector__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  width: 240px;
  padding: 7px;
  border: 1px solid rgba(6,23,71,.1);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 20px 46px rgba(6,23,71,.16);
}
.haillo-currency-selector__menu[hidden] { display: none; }
.haillo-currency-selector__menu button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin: 0; padding: 11px 12px; border: 0; border-radius: 11px; background: transparent; color: var(--wp--preset--color--navy); text-align: left; cursor: pointer; }
.haillo-currency-selector__menu button:hover,
.haillo-currency-selector__menu button:focus-visible { outline: none; background: var(--wp--preset--color--mist); }
.haillo-currency-selector__menu button[aria-selected="true"] { background: var(--wp--preset--color--soft-blue); color: var(--wp--preset--color--blue); }
.haillo-currency-selector__menu button > span { display: grid; gap: 2px; }
.haillo-currency-selector__menu strong { font-size: .78rem; line-height: 1.2; }
.haillo-currency-selector__menu small { color: var(--wp--preset--color--slate); font-size: .64rem; font-weight: 520; line-height: 1.25; }
.haillo-currency-selector__menu b { font-size: .82rem; }

.haillo-pricing-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.haillo-pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(26px, 2.6vw, 34px);
  border: 1px solid var(--wp--custom--surface--border);
  border-radius: var(--wp--custom--radius--large);
  background: var(--wp--preset--color--white);
  box-shadow: 0 16px 46px rgba(6,23,71,.065);
  transition: border-color var(--wp--custom--transition--base), box-shadow var(--wp--custom--transition--base), transform var(--wp--custom--transition--base);
}
.haillo-pricing-card:hover { border-color: rgba(52,120,246,.25); box-shadow: var(--wp--custom--shadow--medium); transform: translateY(-3px); }
.haillo-pricing-card--recommended {
  border-color: rgba(52,120,246,.5);
  background: linear-gradient(180deg, rgba(234,241,255,.72), #fff 31%);
  box-shadow: 0 24px 62px rgba(52,120,246,.14);
}
.haillo-pricing-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 7px 10px;
  border-radius: var(--wp--custom--radius--pill);
  background: var(--wp--preset--color--navy);
  color: var(--wp--preset--color--white);
  font-size: .68rem;
  font-weight: 760;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.haillo-pricing-card header > h3 { margin: 0; font-size: 1.55rem; line-height: 1.2; }
.haillo-pricing-card header > p { min-height: 76px; margin: 15px 0 0; color: var(--wp--preset--color--slate); font-size: .92rem; line-height: 1.55; }
.haillo-pricing-card__price { display: flex; align-items: baseline; gap: 6px; margin: 23px 0 25px; }
.haillo-pricing-card__price strong { font-size: clamp(2.6rem, 4vw, 3.7rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.haillo-pricing-card__price span { color: var(--wp--preset--color--slate); font-size: .88rem; }
.haillo-pricing-card__billing-note { margin: -16px 0 23px; color: var(--wp--preset--color--slate); font-size: .72rem; line-height: 1.4; }
.haillo-pricing-card .haillo-button { width: 100%; flex: 0 0 auto; }
.haillo-pricing-card .haillo-button--secondary { border-color: rgba(6,23,71,.14); background: #fff; color: var(--wp--preset--color--navy); }
.haillo-pricing-card .haillo-button--secondary:hover { border-color: rgba(52,120,246,.32); background: var(--wp--preset--color--soft-blue); color: var(--wp--preset--color--blue); }
.haillo-pricing-card--recommended .haillo-button { background: var(--wp--preset--gradient--signal); color: #fff; box-shadow: 0 12px 26px rgba(52,120,246,.22); }
.haillo-pricing-card > ul { display: grid; gap: 11px; margin: 27px 0 0; padding: 0; list-style: none; }
.haillo-pricing-card > ul li { display: flex; gap: 9px; color: var(--wp--preset--color--navy); font-size: .85rem; line-height: 1.45; }
.haillo-pricing-card > ul li > span { flex: 0 0 auto; color: var(--wp--preset--color--blue); font-weight: 800; }
.haillo-pricing-card__note { margin: auto 0 0; padding-top: 26px; color: var(--wp--preset--color--slate); font-size: .72rem; line-height: 1.5; }

.haillo-pricing-credits {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(35px, 6vw, 80px);
  width: var(--wp--custom--container--page);
  margin: 0 auto clamp(90px, 10vw, 145px);
  padding: clamp(38px, 5.5vw, 72px);
  border: 1px solid rgba(52,120,246,.1);
  border-radius: clamp(25px, 3vw, 38px);
  background: linear-gradient(135deg, #f8faff 0%, #f6f8fc 52%, #fbf7ff 100%);
}
.haillo-pricing-credits__copy > strong {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 16px;
  border: 1px solid rgba(52,120,246,.16);
  border-radius: var(--wp--custom--radius--pill);
  background: #fff;
  color: var(--wp--preset--color--blue);
  font-size: 1rem;
}
.haillo-pricing-credits__visual { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; align-self: center; }
.haillo-credit-uses,
.haillo-credit-amounts { padding: 24px; border: 1px solid rgba(6,23,71,.08); border-radius: 20px; background: rgba(255,255,255,.86); box-shadow: var(--wp--custom--shadow--small); }
.haillo-credit-uses > p,
.haillo-credit-amounts > .haillo-credit-amounts__title { margin: 0 0 17px; padding: 0; color: var(--wp--preset--color--navy); font-size: .76rem; font-weight: 760; letter-spacing: .045em; line-height: 1.3; text-transform: uppercase; }
.haillo-credit-amounts { min-width: 0; margin: 0; }
.haillo-credit-uses ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.haillo-credit-uses li { display: flex; gap: 8px; font-size: .78rem; line-height: 1.4; }
.haillo-credit-uses li span { color: var(--wp--preset--color--blue); }
.haillo-credit-amounts__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.haillo-credit-amounts__options label { position: relative; cursor: pointer; }
.haillo-credit-amounts__options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.haillo-credit-amounts__options label > span { display: grid; gap: 2px; min-height: 56px; padding: 9px 11px; border: 1px solid transparent; border-radius: 11px; background: var(--wp--preset--color--soft-blue); transition: border-color var(--wp--custom--transition--fast), background var(--wp--custom--transition--fast), box-shadow var(--wp--custom--transition--fast); }
.haillo-credit-amounts__options strong { color: var(--wp--preset--color--navy); font-size: .72rem; line-height: 1.25; }
.haillo-credit-amounts__options small { color: var(--wp--preset--color--slate); font-size: .66rem; line-height: 1.25; }
.haillo-credit-amounts__options input:checked + span { border-color: rgba(52,120,246,.48); background: #fff; box-shadow: 0 6px 16px rgba(52,120,246,.12); }
.haillo-credit-amounts__options input:focus-visible + span { box-shadow: var(--wp--custom--shadow--focus); }
.haillo-credit-amounts__action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 11px 13px; border-radius: 11px; background: var(--wp--preset--color--navy); color: #fff; font-size: .72rem; font-weight: 720; text-decoration: none; }
.haillo-credit-amounts__action:hover { background: var(--wp--preset--color--blue); color: #fff; }
.haillo-credit-amounts > p { margin: 12px 0 0; color: var(--wp--preset--color--slate); font-size: .64rem; line-height: 1.45; }

.haillo-pricing-comparison { padding-bottom: clamp(90px, 10vw, 145px); }
.haillo-pricing-table-wrap { overflow-x: auto; border: 1px solid var(--wp--custom--surface--border); border-radius: var(--wp--custom--radius--large); background: #fff; box-shadow: var(--wp--custom--shadow--small); }
.haillo-pricing-table-wrap:focus-visible { outline: none; box-shadow: var(--wp--custom--shadow--focus); }
.haillo-pricing-table-wrap table { width: 100%; min-width: 780px; border-collapse: collapse; table-layout: fixed; }
.haillo-pricing-table-wrap th,
.haillo-pricing-table-wrap td { padding: 17px 20px; border-bottom: 1px solid rgba(6,23,71,.075); font-size: .83rem; text-align: center; }
.haillo-pricing-table-wrap thead th { padding-block: 22px; color: var(--wp--preset--color--navy); font-size: 1rem; }
.haillo-pricing-table-wrap thead th:first-child,
.haillo-pricing-table-wrap tbody th[scope="row"] { width: 40%; text-align: left; }
.haillo-pricing-table-wrap .is-recommended { background: rgba(234,241,255,.55); }
.haillo-pricing-table__category th { padding-top: 27px; background: var(--wp--preset--color--mist); color: var(--wp--preset--color--blue); font-size: .7rem; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.haillo-pricing-check { color: var(--wp--custom--interaction--success-text); font-weight: 800; }
.haillo-pricing-unavailable { color: rgba(102,112,133,.55); }
.haillo-pricing-comparison-mobile { display: none; }

.haillo-pricing-faq {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(45px, 8vw, 110px);
  padding: clamp(82px, 9vw, 128px) 0;
  border-top: 1px solid rgba(6,23,71,.08);
}
.haillo-pricing-faq__heading { align-self: start; }
.haillo-pricing-faq__list { border-top: 1px solid rgba(6,23,71,.12); }
.haillo-pricing-faq details { border-bottom: 1px solid rgba(6,23,71,.12); }
.haillo-pricing-faq summary,
.haillo-pricing-comparison-mobile summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; }
.haillo-pricing-faq summary { padding: 22px 3px; font-size: .98rem; font-weight: 680; }
.haillo-pricing-faq summary::-webkit-details-marker,
.haillo-pricing-comparison-mobile summary::-webkit-details-marker { display: none; }
.haillo-pricing-faq summary span,
.haillo-pricing-comparison-mobile summary span { color: var(--wp--preset--color--blue); font-size: 1.3rem; font-weight: 400; transition: transform var(--wp--custom--transition--fast); }
.haillo-pricing-faq details[open] summary span,
.haillo-pricing-comparison-mobile details[open] summary span { transform: rotate(45deg); }
.haillo-pricing-faq details > div { padding: 0 34px 23px 3px; }
.haillo-pricing-faq details p { margin: 0; color: var(--wp--preset--color--slate); font-size: .88rem; line-height: 1.65; }

.haillo-pricing-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: clamp(85px, 9vw, 125px);
  padding: clamp(40px, 6vw, 76px);
  border-radius: clamp(26px, 3vw, 40px);
  background: var(--wp--preset--color--navy);
  color: #fff;
}
.haillo-pricing-final > div:first-child { max-width: 720px; }
.haillo-pricing-final h2 { color: #fff; }
.haillo-pricing-final p { margin: 18px 0 0; color: rgba(255,255,255,.72); font-size: 1rem; line-height: 1.65; }
.haillo-pricing-final__actions { display: grid; flex: 0 0 auto; gap: 14px; justify-items: center; }
.haillo-pricing-final__actions .haillo-button { min-width: 168px; background: #fff; color: var(--wp--preset--color--navy); }
.haillo-pricing-final__actions > a:last-child { color: rgba(255,255,255,.9); font-size: .88rem; font-weight: 670; }

.haillo-pricing-page a:focus-visible,
.haillo-pricing-page summary:focus-visible,
.haillo-pricing-page select:focus-visible { outline: none; box-shadow: var(--wp--custom--shadow--focus); }

@media (max-width: 960px) {
  .haillo-pricing-card-grid { gap: 12px; }
  .haillo-pricing-card { padding: 25px 20px; }
  .haillo-pricing-card__badge { position: static; align-self: flex-start; width: max-content; margin: -4px 0 17px; }
  .haillo-pricing-card header > p { min-height: 98px; }
  .haillo-pricing-credits { grid-template-columns: 1fr; }
  .haillo-pricing-credits__copy { max-width: 690px; }
  .haillo-pricing-final { align-items: flex-start; }
}

@media (max-width: 760px) {
  .haillo-pricing-hero { padding: 135px 20px 75px; }
  .haillo-pricing-hero h1 { font-size: clamp(2.7rem, 12vw, 4rem); }
  .haillo-pricing-hero p { margin-top: 24px; font-size: 1rem; }
  .haillo-pricing-plans,
  .haillo-pricing-comparison,
  .haillo-pricing-faq,
  .haillo-pricing-final,
  .haillo-pricing-credits { width: min(100% - 32px, 1200px); }
  .haillo-pricing-section-heading { margin-bottom: 34px; }
  .haillo-pricing-plans__top { display: grid; justify-items: start; margin-bottom: 34px; }
  .haillo-pricing-controls { flex-wrap: wrap; align-items: end; }
  .haillo-pricing-card-grid { grid-template-columns: 1fr; }
  .haillo-pricing-card[data-plan="start"] { order: 1; }
  .haillo-pricing-card[data-plan="free"] { order: 2; }
  .haillo-pricing-card[data-plan="pro"] { order: 3; }
  .haillo-pricing-card { padding: 28px; }
  .haillo-pricing-card header > p { min-height: 0; }
  .haillo-pricing-card__badge { position: absolute; top: 22px; right: 22px; margin: 0; }
  .haillo-pricing-credits { padding: 30px 22px; }
  .haillo-pricing-credits__visual { grid-template-columns: 1fr; }
  .haillo-pricing-table-wrap { display: none; }
  .haillo-pricing-comparison-mobile { display: block; border-top: 1px solid rgba(6,23,71,.12); }
  .haillo-pricing-comparison-mobile > details { border-bottom: 1px solid rgba(6,23,71,.12); }
  .haillo-pricing-comparison-mobile > details > summary { padding: 20px 2px; font-weight: 720; }
  .haillo-pricing-comparison-mobile > details > div { padding: 0 0 16px; }
  .haillo-pricing-comparison-mobile article { padding: 17px 15px; border-radius: 14px; }
  .haillo-pricing-comparison-mobile article:nth-child(odd) { background: var(--wp--preset--color--mist); }
  .haillo-pricing-comparison-mobile article h3 { margin: 0 0 12px; font-size: .88rem; }
  .haillo-pricing-comparison-mobile dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
  .haillo-pricing-comparison-mobile dl div { padding: 7px; text-align: center; }
  .haillo-pricing-comparison-mobile dl .is-recommended { border-radius: 9px; background: var(--wp--preset--color--soft-blue); }
  .haillo-pricing-comparison-mobile dt { color: var(--wp--preset--color--slate); font-size: .65rem; }
  .haillo-pricing-comparison-mobile dd { margin: 3px 0 0; font-size: .72rem; font-weight: 680; }
  .haillo-pricing-faq { grid-template-columns: 1fr; gap: 38px; }
  .haillo-pricing-final { flex-direction: column; padding: 38px 27px; }
  .haillo-pricing-final__actions { width: 100%; }
  .haillo-pricing-final__actions .haillo-button { width: 100%; }
}

@media (max-width: 430px) {
  .haillo-pricing-card { padding: 25px 21px; }
  .haillo-pricing-card__badge { top: 20px; right: 18px; font-size: .59rem; }
  .haillo-pricing-card__price strong { font-size: 2.8rem; }
  .haillo-billing-toggle { max-width: 100%; }
  .haillo-billing-toggle__options { max-width: 100%; }
  .haillo-pricing-controls { width: 100%; }
  .haillo-currency-selector { flex: 1 1 120px; }
  .haillo-currency-selector__trigger { width: 100%; }
  .haillo-pricing-credits h2,
  .haillo-pricing-faq h2,
  .haillo-pricing-final h2,
  .haillo-pricing-section-heading h2 { font-size: 2.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .haillo-pricing-page *,
  .haillo-pricing-page *::before,
  .haillo-pricing-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
