/* Pricing page — base from style.css + page polish (single source) */

/* Pricing page */
.faq-deco-image, .faq-deco-right{
  top: 15%;
}
.faq-deco-left{bottom: 15%;}
.pricing-page {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  background: #fff;
  overflow-x: clip;
}

/* Inner header chrome moved to header.css (ThemeAsset) */

.pricing-main {
  background: #fff;
}

.pricing-hero-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.pricing-hero-backdrop {
  position: absolute;
  inset: 0;
  background: #fbfcfd;
}

.pricing-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.84) 18%, rgba(255, 255, 255, 0.0) 35%),
    repeating-linear-gradient(90deg, rgba(200, 222, 251, 0.55) 0 1px, transparent 1px 55px);
  opacity: 0.42;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 1) 22%, rgba(0, 0, 0, 1) 78%, transparent 100%);
}

.pricing-hero-glow {
  position: absolute;
  border-radius: 999px;
  /* gradients already soft — skip live filter:blur during scroll */
  transform: translateZ(0);
  contain: layout style;
}

.pricing-hero-glow-left {
  left: 183px;
  top: 124px;
  width: 298px;
  height: 700px;
  background: radial-gradient(circle, rgba(206, 226, 251, 0.78) 0%, rgba(206, 226, 251, 0) 74%);
}

.pricing-hero-glow-center {
  left: 694px;
  top: 146px;
  width: 722px;
  height: 718px;
  background: radial-gradient(circle, rgba(118, 168, 255, 0.45) 0%, rgba(118, 168, 255, 0.12) 36%, rgba(118, 168, 255, 0) 74%);
}

.pricing-hero-glow-bottom {
  left: 811px;
  top: 645px;
  width: 298px;
  height: 282px;
  background: radial-gradient(circle, rgba(206, 226, 251, 0.72) 0%, rgba(206, 226, 251, 0) 72%);
}

.pricing-hero-content {
  position: relative;
  z-index: 1;
  width: min(1288px, calc(100% - 64px));
  margin: 0 auto;
}

.pricing-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-bottom: 30px;
}

.pricing-hero-copy h1 {
  width: 960px;
  max-width: 100%;
  margin: 0;
  color: var(--text);
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
  text-align: center;
}

.pricing-hero-copy h1 span {
  display: block;
}

.pricing-hero-copy h1 span:first-child {
  color: var(--primary);
}

.pricing-hero-copy p {
  width: 640px;
  max-width: 100%;
  margin: 0;
  color: #667085;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

/* Plan cards — Figma: only "Gói liên kết" is highlighted (blue frame + solid CTA);
   the other plans use a white frame and an outline CTA. */
.pricing-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pricing-card {
  padding: 16px 4px 4px;
  border: 1px solid #e4e7ec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 4px -2px rgba(16, 24, 40, 0.06), 0 0 8px -2px rgba(16, 24, 40, 0.1);
}

.pricing-card-linked {
  border-color: #2062ff;
  background: #2062ff;
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.18);
}

.pricing-card-head {
  height: 28px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #344054;
}

.pricing-card-linked .pricing-card-head {
  color: #fff;
}

.pricing-card-head h2 {
  margin: 0;
  color: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.pricing-card-body {
  min-height: 498px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pricing-card-linked .pricing-card-body {
  border: 1px solid #d0d5dd;
}

.pricing-card-desc {
  min-height: 64px;
  margin: 0;
  color: #344054;
  font-size: 12px;
  line-height: 16px;
}

.pricing-card-price p {
  margin: 0 0 8px;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
}

.pricing-card-price strong {
  display: block;
  color: #101828;
  font-size: 30px;
  font-weight: 500;
  line-height: 38px;
}

.pricing-card-note {
  display: block;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
}

.pricing-card-button {
  width: 100%;
  height: 40px;
  border: 1px solid #98a2b3;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: center;
  display: grid;
  align-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pricing-card-button:hover,
.pricing-card-button:focus-visible {
  border-color: #2062ff;
  color: #2062ff;
  text-decoration: none;
}

.pricing-card-button-linked {
  border-color: #2062ff;
  background: #2062ff;
  color: #fff;
}

.pricing-card-button-linked:hover,
.pricing-card-button-linked:focus-visible {
  border-color: #1a4fd1;
  background: #1a4fd1;
  color: #fff;
}

.pricing-card-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card-list li {
  position: relative;
  padding-left: 28px;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
}

/* Check icon: tinted circle + plan-colored tick */
.pricing-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--pricing-check-bg, #f0f2f5);
}

.pricing-card-list li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 10px;
  border: solid var(--pricing-check, #344054);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pricing-card-standard {
  --pricing-check-bg: #ecfdf0;
  --pricing-check: #15ad3c;
}

.pricing-card-linked {
  --pricing-check-bg: #eff7ff;
  --pricing-check: #2062ff;
}

.pricing-card-managed {
  --pricing-check-bg: #f5f3ff;
  --pricing-check: #7839ee;
}

.pricing-compare-section {
  padding: 0 32px 80px;
}

.pricing-compare-heading {
  width: min(1288px, calc(100% - 64px));
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* No overflow on desktop: a scroll container would stop the header row from
   sticking to the viewport. Horizontal scroll only kicks in on narrow screens. */
.pricing-compare-wrap {
  width: min(1288px, 100%);
  margin: 0 auto;
}

.pricing-compare-heading h2 {
  width: min(960px, 100%);
  margin: 0;
  color: var(--text);
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
  text-align: center;
}

.pricing-compare-heading p {
  width: min(640px, 100%);
  margin: 0;
  color: #98a2b3;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

.pricing-compare-table {
  --pricing-col-basic: #f5f6f7;
  --pricing-col-standard: #ecfdf0;
  --pricing-col-linked: #eff7ff;
  --pricing-col-managed: #f5f3ff;
  position: relative;
  width: 100%;
  min-width: 1024px;
  /* clip (not hidden) keeps the rounded corners without creating a scroll container */
  overflow: hidden;
  overflow: clip;
  border-radius: 20px;
  background: #fff;
}

.pricing-compare-column {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  border-radius: 16px 16px 0 0;
  pointer-events: none;
}

.pricing-compare-column-basic {
  left: 20%;
  background: var(--pricing-col-basic);
}

.pricing-compare-column-standard {
  left: 40%;
  background: var(--pricing-col-standard);
}

.pricing-compare-column-linked {
  left: 60%;
  background: var(--pricing-col-linked);
}

.pricing-compare-column-managed {
  left: 80%;
  background: var(--pricing-col-managed);
}

.pricing-compare-header,
.pricing-compare-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Plan header row stays pinned under the site header while the table scrolls,
   then leaves with the table once its last row passes. */
.pricing-compare-header {
  position: sticky;
  top: var(--pricing-sticky-top, 77px);
  z-index: 6;
  min-height: 172px;
}

.pricing-compare-header .pricing-compare-feature-cell {
  background: #fff;
  z-index: 5;
}

.pricing-compare-cell,
.pricing-compare-plan {
  min-height: 76px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(208, 213, 221, 0.65);
  color: #344054;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.pricing-compare-feature-cell {
  position: sticky;
  left: 0;
  z-index: 3;
  justify-content: flex-start;
  color: #344054;
  font-weight: 500;
  text-align: left;
  background: #fff;
}

.pricing-compare-feature-cell {
  flex-wrap: wrap;
  align-content: center;
}

/* Sub-note sits on its own line under the feature name */
.pricing-compare-feature-cell span {
  flex-basis: 100%;
  color: #98a2b3;
  font-size: 12px;
  line-height: 16px;
}

.pricing-compare-plan {
  min-height: 172px;
  padding: 24px 16px;
  flex-direction: column;
  gap: 8px;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  text-align: center;
}

/* Opaque so rows scrolling underneath the pinned header stay hidden */
.pricing-compare-plan-basic { background: var(--pricing-col-basic); }
.pricing-compare-plan-standard { background: var(--pricing-col-standard); }
.pricing-compare-plan-linked { background: var(--pricing-col-linked); }
.pricing-compare-plan-managed { background: var(--pricing-col-managed); }

.pricing-compare-plan h3 {
  margin: 0;
  color: #101828;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.pricing-compare-plan p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 16px;
}

.pricing-compare-button {
  width: 100%;
  height: 40px;
  margin-top: 8px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #475467;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  display: grid;
  align-items: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pricing-compare-button:hover,
.pricing-compare-button:focus-visible {
  border-color: #2062ff;
  color: #2062ff;
  text-decoration: none;
}

.pricing-compare-button-linked {
  border-color: #2062ff;
  background: #2062ff;
  color: #fff;
}

.pricing-compare-button-linked:hover,
.pricing-compare-button-linked:focus-visible {
  border-color: #1a4fd1;
  background: #1a4fd1;
  color: #fff;
}

.pricing-compare-category .pricing-compare-feature-cell {
  z-index: 4;
  min-height: 56px;
  color: #2062ff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  background: #fff;
}

.pricing-compare-category .pricing-compare-cell {
  min-height: 56px;
  border-bottom: 0;
}

.pricing-compare-icon {
  position: relative;
}

.pricing-compare-row .pricing-compare-feature-cell,
.pricing-compare-row .pricing-compare-cell {
  line-height: 1.5;
}

.pricing-compare-row .pricing-compare-feature-cell {
  color: #344054;
  font-weight: 400;
}

.pricing-compare-row.pricing-compare-category .pricing-compare-feature-cell {
  color: #2062ff;
  font-weight: 500;
}

.pricing-check {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-block;
}

.pricing-check::before {
  content: "✓";
  position: absolute;
  inset: 0;
  font-size: 18px;
  line-height: 16px;
  font-weight: 600;
}

.pricing-check-basic::before {
  color: #475467;
}

.pricing-check-standard::before {
  color: #15ad3c;
}

.pricing-check-linked::before {
  color: #2062ff;
}

.pricing-check-managed::before {
  color: #7839ee;
}

.pricing-compare-dash {
  color: #98a2b3;
}

.pricing-compare-value-standard {
  color: #15ad3c;
  font-weight: 500;
}

.pricing-compare-value-linked {
  color: #2062ff;
  font-weight: 500;
}

.pricing-compare-value-managed {
  color: #7839ee;
  font-weight: 500;
}

.pricing-cta-section {
  padding: 0 32px 80px;
}

.pricing-cta-panel {
  width: min(1288px, calc(100% - 64px));
  margin: 0 auto;
  padding: 80px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  border-radius: 24px;
  background: linear-gradient(180deg, #eff7ff 0%, #cee2fb 100%);
}

.pricing-cta-panel h2 {
  width: 960px;
  max-width: 100%;
  margin: 0;
  color: var(--text);
  font-size: 48px;
  font-weight: 400;
  line-height: 60px;
  text-align: center;
}

.pricing-cta-panel > p {
  width: 640px;
  max-width: 100%;
  margin: 0;
  color: #667085;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

.pricing-cta-form {
  width: 430px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.pricing-cta-form label {
  width: 100%;
  color: #475467;
  font-size: 12px;
  line-height: 16px;
}

.pricing-cta-form input {
  width: 100%;
  height: 40px;
  margin-top: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #475467;
  font-size: 16px;
  line-height: 24px;
}

.pricing-cta-captcha {
  color: #475467;
}

/* Figma: submit button spans the same width as the inputs */
.pricing-cta-button {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}

.pricing-faq-section {
  padding-top: 80px;
}

/* —— Page polish / scoped overrides —— */

/* Pricing page polish — Figma PC 3738:2083 / Mobile 4048:4688 (scoped) */

.pricing-page .pricing-hero-section {
  overflow: hidden;
}

/* Table no longer fits: let it scroll horizontally (header row then scrolls with it). */
@media (max-width: 1087px) {
  .pricing-page .pricing-compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 0 0 12px;
  }

  .pricing-page .pricing-compare-feature-cell {
    box-shadow: 8px 0 12px -12px rgba(16, 24, 40, 0.35);
  }
}

@media (max-width: 768px) {
  .pricing-cta-panel h2{font-size: 28px; line-height: 1.5;}
  .pricing-page .pricing-hero-section {
    padding: 48px 0 40px;
  }

  .pricing-page .pricing-hero-copy {
    padding: 0 16px;
    text-align: left;
  }

  .pricing-page .pricing-hero-copy h1 {
    font-size: 32px;
    line-height: 44px;
  }

  .pricing-page .pricing-hero-copy p {
    font-size: 16px;
    line-height: 24px;
  }

  .pricing-page .pricing-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 24px;
    width: 100%;
  }

  .pricing-page .pricing-card {
    width: 100%;
    max-width: 342px;
    margin: 0 auto;
  }

  .pricing-page .pricing-card-body {
    min-height: 0;
  }

  .pricing-page .pricing-compare-section {
    padding: 48px 0;
  }

  .pricing-page .pricing-compare-heading {
    width: calc(100% - 32px);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0 24px;
    align-items: flex-start;
    text-align: left;
  }

  .pricing-page .pricing-compare-heading h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .pricing-page .pricing-compare-heading p {
    font-size: 16px;
    line-height: 24px;
  }

  .pricing-page .pricing-compare-wrap {
    width: 100%;
    max-width: 100%;
    scrollbar-gutter: stable;
  }

  /* Equal columns so the percentage-based column backgrounds line up
     (overrides the 1288px / 280px geometry in responsive.css). */
  .pricing-page .pricing-compare-table {
    width: 1024px;
    min-width: 1024px;
    margin: 0 16px;
    transform: none !important;
  }

  .pricing-page .pricing-compare-header,
  .pricing-page .pricing-compare-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .pricing-page .pricing-cta-section {
    padding: 24px 16px 48px;
  }

  .pricing-page .pricing-cta-panel {
    width: 100%;
    padding: 32px 16px;
  }

  .pricing-page .pricing-cta-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pricing-page .pricing-faq-section {
    padding-top: 24px;
  }
}
