/*
 * Vyapzo public site — shared design for inner pages
 * (features, pricing, solution pages, blog, compare, register).
 * Loaded on every public page by saas_layout_header.php. Classes use the
 * "pg-" prefix so they never collide with page-specific styles.
 */

:root {
  --pg-ink: #0b1020;
  --pg-ink-2: #1e293b;
  --pg-text: #475569;
  --pg-muted: #64748b;
  --pg-line: #e6e9f2;
  --pg-bg: #f6f7fb;
  --pg-night: #070b1a;
  --pg-primary: #4f46e5;
  --pg-grad: linear-gradient(120deg, #818cf8 0%, #a78bfa 35%, #f0abfc 60%, #22d3ee 100%);
  --pg-grad-dark: linear-gradient(120deg, #4f46e5 0%, #7c3aed 50%, #c026d3 100%);
  --pg-grad-btn: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
  --pg-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
  background: var(--pg-bg);
}

.pg {
  color: var(--pg-text);
}

.pg h1,
.pg h2,
.pg h3 {
  color: var(--pg-ink);
  letter-spacing: -0.03em;
}

.pg-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 6%;
}

.pg-grad-text {
  background: var(--pg-grad-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pg-hero .pg-grad-text,
.pg-dark .pg-grad-text,
.pg-cta .pg-grad-text {
  background: var(--pg-grad);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Buttons */
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--pg-ease), box-shadow 0.25s var(--pg-ease), background 0.2s;
}

.pg-btn:hover {
  transform: translateY(-2px);
}

.pg-btn--primary {
  background: var(--pg-grad-btn);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(99, 102, 241, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.pg-btn--primary:hover {
  color: #fff;
}

.pg-btn--glass {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.pg-btn--glass:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.pg-btn--light {
  border-color: var(--pg-line);
  background: #fff;
  color: var(--pg-ink-2);
}

/* ------------------------------------------------------------------ */
/* Dark hero                                                           */
/* ------------------------------------------------------------------ */

.pg-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 150px 0 96px;
  background: var(--pg-night);
  color: #c7d2fe;
}

.pg-hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(40% 50% at 12% 20%, rgba(99, 102, 241, 0.55), transparent 70%),
    radial-gradient(35% 45% at 88% 10%, rgba(168, 85, 247, 0.42), transparent 70%),
    radial-gradient(40% 45% at 75% 90%, rgba(6, 182, 212, 0.3), transparent 70%);
  filter: blur(10px);
}

.pg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 40% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 40% 20%, #000 0%, transparent 75%);
}

.pg-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.pg-hero--center {
  text-align: center;
}

.pg-hero--center .pg-hero__lead {
  margin-left: auto;
  margin-right: auto;
}

.pg-hero--center .pg-actions,
.pg-hero--center .pg-assure {
  justify-content: center;
}

.pg-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: #94a3b8;
  font-size: 13.5px;
}

.pg-hero--center .pg-crumb {
  justify-content: center;
}

.pg-crumb a {
  color: #c7d2fe;
  font-weight: 600;
  text-decoration: none;
}

.pg-crumb a:hover {
  color: #fff;
}

.pg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e0e7ff;
  font-size: 13px;
  font-weight: 600;
}

.pg-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px #22d3ee;
}

.pg-hero h1 {
  margin: 20px 0 20px;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.pg-hero__lead {
  max-width: 680px;
  margin: 0;
  color: #c7d2fe;
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.7;
}

.pg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.pg-assure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: #a5b4fc;
  font-size: 14px;
}

.pg-assure i {
  margin-right: 6px;
  color: #67e8f9;
}

/* Glass stat panel used beside hero copy */
.pg-glass {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.pg-glass__title {
  margin: 0 0 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.pg-glass ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-glass li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 14px;
}

.pg-glass li i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.25);
  color: #ddd6fe;
}

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

.pg-section {
  padding: 96px 0;
}

.pg-section--tint {
  background:
    radial-gradient(700px 300px at 10% 0%, rgba(99, 102, 241, 0.06), transparent 70%),
    #eef1f8;
}

.pg-section--white {
  background: #fff;
}

.pg-head {
  max-width: 760px;
  margin: 0 0 44px;
}

.pg-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef0ff;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 700;
}

.pg-head h2 {
  margin: 14px 0 14px;
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1.1;
}

.pg-head p {
  margin: 0;
  color: var(--pg-muted);
  font-size: 17px;
  line-height: 1.7;
}

/* Two-column story */
.pg-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.pg-split h2 {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
}

.pg-prose p {
  margin: 0 0 18px;
  color: var(--pg-text);
  font-size: 17px;
  line-height: 1.8;
}

.pg-prose p:first-child::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  background: var(--pg-grad-dark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 54px;
  font-weight: 800;
  line-height: 0.8;
}

/* Card grid */
.pg-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pg-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--pg-line);
  border-radius: 22px;
  background: #fff;
  transition: transform 0.3s var(--pg-ease), box-shadow 0.3s var(--pg-ease), border-color 0.3s;
}

.pg-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 30px 60px -32px rgba(79, 70, 229, 0.55);
  transform: translateY(-4px);
}

.pg-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--pg-grad-btn);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 12px 24px -12px rgba(99, 102, 241, 0.9);
}

.pg-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.pg-card p {
  margin: 0;
  color: var(--pg-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Steps with connector */
.pg-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--pg-steps, 3), minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #a855f7, #22d3ee);
  opacity: 0.4;
}

.pg-steps li {
  position: relative;
  padding: 0 6px;
}

.pg-steps__dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--pg-night);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--pg-bg), 0 14px 30px -12px rgba(79, 70, 229, 0.8);
}

.pg-section--tint .pg-steps__dot {
  box-shadow: 0 0 0 6px #eef1f8, 0 14px 30px -12px rgba(79, 70, 229, 0.8);
}

.pg-section--white .pg-steps__dot {
  box-shadow: 0 0 0 6px #fff, 0 14px 30px -12px rgba(79, 70, 229, 0.8);
}

.pg-steps h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.pg-steps p {
  margin: 0;
  color: var(--pg-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Dark feature panel */
.pg-dark {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  padding: 48px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 32px;
  background:
    radial-gradient(500px 300px at 0% 0%, rgba(99, 102, 241, 0.45), transparent 70%),
    radial-gradient(500px 300px at 100% 100%, rgba(6, 182, 212, 0.25), transparent 70%),
    var(--pg-night);
  color: #c7d2fe;
}

.pg-dark h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.12;
}

.pg-checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-checks li {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 15.5px;
  line-height: 1.5;
}

.pg-checks li i {
  margin-top: 3px;
  color: #6ee7b7;
}

/* Related / link cards */
.pg-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pg-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--pg-line);
  border-radius: 20px;
  background: #fff;
  color: var(--pg-ink);
  text-decoration: none;
  transition: transform 0.3s var(--pg-ease), box-shadow 0.3s var(--pg-ease), border-color 0.3s;
}

.pg-link:hover {
  border-color: #c7d2fe;
  box-shadow: 0 24px 50px -30px rgba(79, 70, 229, 0.55);
  transform: translateY(-3px);
}

.pg-link strong {
  font-size: 17px;
  font-weight: 700;
}

.pg-link span {
  color: var(--pg-muted);
  font-size: 14px;
  line-height: 1.55;
}

.pg-link em {
  margin-top: auto;
  padding-top: 8px;
  color: var(--pg-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

/* FAQ accordion */
.pg-faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.pg-faq details {
  border: 1px solid var(--pg-line);
  border-radius: 18px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pg-faq details[open] {
  border-color: #c7d2fe;
  box-shadow: 0 20px 40px -28px rgba(79, 70, 229, 0.45);
}

.pg-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  color: var(--pg-ink);
  font-size: 16px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.pg-faq summary::-webkit-details-marker {
  display: none;
}

.pg-faq summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eef0ff;
  color: var(--pg-primary);
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.2s;
}

.pg-faq details[open] summary::after {
  transform: rotate(45deg);
}

.pg-faq details > div {
  padding: 0 22px 20px;
  color: var(--pg-text);
  font-size: 15.5px;
  line-height: 1.7;
}

/* Closing CTA */
.pg-cta {
  padding: 24px 0 110px;
}

.pg-cta__box {
  position: relative;
  padding: 72px 40px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 34px;
  background: var(--pg-night);
  text-align: center;
}

.pg-cta__box::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(40% 55% at 15% 20%, rgba(99, 102, 241, 0.55), transparent 70%),
    radial-gradient(35% 50% at 85% 15%, rgba(168, 85, 247, 0.45), transparent 70%),
    radial-gradient(40% 50% at 70% 95%, rgba(6, 182, 212, 0.32), transparent 70%);
  filter: blur(10px);
}

.pg-cta__box h2 {
  max-width: 760px;
  margin: 0 auto 14px;
  color: #fff;
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.08;
}

.pg-cta__box p {
  max-width: 620px;
  margin: 0 auto 30px;
  color: #c7d2fe;
  font-size: 17px;
  line-height: 1.6;
}

.pg-cta__box .pg-actions {
  justify-content: center;
  margin-top: 0;
}

/* ------------------------------------------------------------------ */
/* Blog                                                                */
/* ------------------------------------------------------------------ */

.pg-search {
  position: relative;
  display: block;
  max-width: 520px;
  margin: 30px auto 0;
}

.pg-search i {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: #a5b4fc;
}

.pg-search input {
  width: 100%;
  height: 56px;
  padding: 0 18px 0 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 16px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.pg-search input::placeholder {
  color: #a5b4fc;
}

.pg-search input:focus {
  border-color: rgba(167, 139, 250, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

.pg [hidden] {
  display: none !important;
}

.pg-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 32px;
}

.pg-filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--pg-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pg-ink-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pg-filters button span {
  padding: 1px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--pg-muted);
  font-size: 12px;
}

.pg-filters button:hover {
  border-color: #c7d2fe;
}

.pg-filters button.is-active {
  border-color: transparent;
  background: var(--pg-night);
  color: #fff;
}

.pg-filters button.is-active span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.pg-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pg-post {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--pg-line);
  border-radius: 24px;
  background: #fff;
  text-decoration: none;
  transition: transform 0.3s var(--pg-ease), box-shadow 0.3s var(--pg-ease), border-color 0.3s;
}

.pg-post:hover {
  border-color: #c7d2fe;
  box-shadow: 0 30px 60px -32px rgba(79, 70, 229, 0.55);
  transform: translateY(-4px);
}

.pg-post__cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 150px;
  padding: 18px;
  overflow: hidden;
  background: var(--pg-cover, linear-gradient(135deg, #312e81, #6d28d9));
}

.pg-post__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 80%);
  mask-image: linear-gradient(135deg, #000, transparent 80%);
}

.pg-post__cover i {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 26px;
}

.pg-post__cover span {
  position: relative;
  z-index: 1;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.pg-post__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
}

.pg-post__meta {
  color: var(--pg-primary);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pg-post h2,
.pg-post h3 {
  margin: 0;
  color: var(--pg-ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}

.pg-post p {
  margin: 0;
  color: var(--pg-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.pg-post em {
  margin-top: auto;
  padding-top: 6px;
  color: var(--pg-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.pg-post--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.pg-post--featured .pg-post__cover {
  height: auto;
  min-height: 280px;
}

.pg-post--featured .pg-post__body {
  justify-content: center;
  padding: 40px;
}

.pg-post--featured h2 {
  font-size: clamp(24px, 2.4vw, 32px);
}

.pg-post--featured p {
  font-size: 16px;
}

.pg-empty {
  padding: 60px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 24px;
  background: #fff;
  color: var(--pg-muted);
  text-align: center;
}

/* Blog article */
.pg-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  width: 100%;
  height: 3px;
  background: var(--pg-grad-btn);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.pg-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.pg-article__body {
  padding: 44px 48px;
  border: 1px solid var(--pg-line);
  border-radius: 28px;
  background: #fff;
  color: #334155;
  font-size: 17.5px;
  line-height: 1.85;
}

.pg-article__body > *:first-child {
  margin-top: 0;
}

.pg-article__body h2,
.pg-article__body h3,
.pg-article__body h4 {
  margin: 1.8em 0 0.6em;
  color: var(--pg-ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.pg-article__body h2 { font-size: 28px; }
.pg-article__body h3 { font-size: 22px; }
.pg-article__body h4 { font-size: 18px; }

.pg-article__body p,
.pg-article__body ul,
.pg-article__body ol,
.pg-article__body blockquote,
.pg-article__body table,
.pg-article__body pre {
  margin: 0 0 1.2em;
}

.pg-article__body ul,
.pg-article__body ol {
  padding-left: 1.4em;
}

.pg-article__body li {
  margin-bottom: 0.5em;
}

.pg-article__body li::marker {
  color: #8b5cf6;
}

.pg-article__body a {
  color: var(--pg-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(79, 70, 229, 0.3);
  text-underline-offset: 3px;
}

.pg-article__body blockquote {
  padding: 18px 22px;
  border-left: 4px solid #8b5cf6;
  border-radius: 0 16px 16px 0;
  background: #f5f3ff;
  color: #3730a3;
  font-style: italic;
}

.pg-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.pg-article__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.pg-article__body th,
.pg-article__body td {
  padding: 10px 12px;
  border: 1px solid var(--pg-line);
  text-align: left;
}

.pg-article__body th {
  background: #f8fafc;
  color: var(--pg-ink);
}

.pg-article__body pre,
.pg-article__body code {
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 14px;
}

.pg-article__body code {
  padding: 2px 6px;
}

.pg-article__body pre {
  padding: 16px;
  overflow-x: auto;
}

.pg-article__body pre code {
  padding: 0;
}

.pg-side {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
}

.pg-side__card {
  padding: 22px;
  border: 1px solid var(--pg-line);
  border-radius: 22px;
  background: #fff;
}

.pg-side__card h2 {
  margin: 0 0 14px;
  color: var(--pg-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pg-side__cta {
  border: 0;
  background:
    radial-gradient(240px 160px at 100% 0%, rgba(168, 85, 247, 0.55), transparent 70%),
    var(--pg-night);
  color: #c7d2fe;
}

.pg-side__cta h2 {
  color: #fff;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-transform: none;
}

.pg-side__cta p {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.6;
}

.pg-side__cta .pg-btn {
  width: 100%;
  min-height: 46px;
}

.pg-cats {
  display: grid;
  gap: 6px;
}

.pg-cats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--pg-ink-2);
  font-size: 14px;
  font-weight: 600;
}

.pg-cats span {
  padding: 2px 9px;
  border-radius: 999px;
  background: #eef0ff;
  color: var(--pg-primary);
  font-size: 12px;
}

.pg-related {
  display: grid;
  gap: 14px;
}

.pg-related a {
  display: block;
  color: var(--pg-ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.pg-related a:hover {
  color: var(--pg-primary);
}

.pg-related small {
  display: block;
  margin-bottom: 4px;
  color: var(--pg-muted);
  font-size: 12px;
  font-weight: 500;
}

.pg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pg-tags span {
  padding: 6px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--pg-ink-2);
  font-size: 13px;
  font-weight: 600;
}

.pg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pg-hero--center .pg-meta {
  justify-content: center;
}

.pg-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e0e7ff;
  font-size: 13px;
  font-weight: 600;
}

.pg-meta i {
  color: #a5b4fc;
}

/* ------------------------------------------------------------------ */
/* Compare                                                             */
/* ------------------------------------------------------------------ */

.pg-vs {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pg-vs__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--pg-grad-btn);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 16px 32px -14px rgba(99, 102, 241, 0.9);
}

.pg-vs__logo--them {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.pg-vs b {
  color: #a5b4fc;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.pg-verdict {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pg-verdict article {
  padding: 30px;
  border: 1px solid var(--pg-line);
  border-radius: 24px;
  background: #fff;
}

.pg-verdict article.is-ours {
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--pg-grad-btn) border-box;
  box-shadow: 0 30px 60px -36px rgba(99, 102, 241, 0.7);
}

.pg-verdict h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 19px;
}

.pg-verdict h3 i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #f1f5f9;
  color: var(--pg-muted);
  font-size: 14px;
}

.pg-verdict .is-ours h3 i {
  background: var(--pg-grad-btn);
  color: #fff;
}

.pg-verdict p {
  margin: 0;
  color: var(--pg-text);
  font-size: 16px;
  line-height: 1.7;
}

.pg-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--pg-line);
  border-radius: 24px;
  background: #fff;
}

.pg-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}

.pg-table th,
.pg-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #eef1f6;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.pg-table thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: var(--pg-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pg-table thead th.is-ours {
  background: #eef0ff;
  color: var(--pg-primary);
}

.pg-table tbody th {
  width: 22%;
  color: var(--pg-ink);
  font-weight: 650;
}

.pg-table td.is-ours {
  background: #fafaff;
  color: var(--pg-ink-2);
  font-weight: 500;
}

.pg-table tbody tr:last-child th,
.pg-table tbody tr:last-child td {
  border-bottom: 0;
}

.pg-note {
  margin: 16px 0 0;
  color: var(--pg-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.pg-balance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pg-balance article {
  padding: 30px;
  border: 1px solid var(--pg-line);
  border-radius: 24px;
  background: #fff;
}

.pg-balance article.is-ours {
  border: 0;
  background:
    radial-gradient(400px 240px at 100% 0%, rgba(99, 102, 241, 0.4), transparent 70%),
    var(--pg-night);
}

.pg-balance h3 {
  margin: 0 0 16px;
  font-size: 19px;
}

.pg-balance .is-ours h3 {
  color: #fff;
}

.pg-balance ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-balance li {
  display: flex;
  gap: 12px;
  color: var(--pg-text);
  font-size: 15.5px;
  line-height: 1.55;
}

.pg-balance li i {
  margin-top: 4px;
  color: #94a3b8;
}

.pg-balance .is-ours li {
  color: #e2e8f0;
}

.pg-balance .is-ours li i {
  color: #6ee7b7;
}

.pg-callout {
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid #c7d2fe;
  border-radius: 20px;
  background: #f5f3ff;
  color: #3730a3;
  font-size: 15.5px;
  line-height: 1.7;
}

.pg-vs-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--pg-line);
  border-radius: 24px;
  background: #fff;
  color: var(--pg-ink);
  text-decoration: none;
  transition: transform 0.3s var(--pg-ease), box-shadow 0.3s var(--pg-ease), border-color 0.3s;
}

.pg-vs-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 30px 60px -32px rgba(79, 70, 229, 0.55);
  transform: translateY(-4px);
}

.pg-vs-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pg-vs-card__top span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--pg-grad-btn);
  color: #fff;
  font-weight: 800;
}

.pg-vs-card__top span + b {
  color: var(--pg-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.pg-vs-card__top span.is-them {
  background: #f1f5f9;
  color: var(--pg-ink-2);
}

.pg-vs-card h3 {
  margin: 4px 0 0;
  font-size: 20px;
}

.pg-vs-card p {
  margin: 0;
  color: var(--pg-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.pg-vs-card em {
  margin-top: auto;
  color: var(--pg-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1099px) {
  .pg-article {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .pg-hero {
    padding: 124px 0 72px;
  }

  .pg-hero__grid,
  .pg-split,
  .pg-dark {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .pg-cards,
  .pg-links,
  .pg-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pg-post--featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-post--featured .pg-post__cover {
    min-height: 180px;
  }

  .pg-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .pg-steps::before {
    top: 0;
    bottom: 0;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, #6366f1, #a855f7, #22d3ee);
  }

  .pg-steps li {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 18px;
    padding: 0;
  }

  .pg-steps__dot {
    grid-row: span 2;
    margin: 0;
  }

  .pg-section {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  .pg-wrap {
    padding: 0 18px;
  }

  .pg-hero {
    padding: 108px 0 60px;
  }

  .pg-actions .pg-btn {
    width: 100%;
  }

  .pg-cards,
  .pg-links,
  .pg-posts,
  .pg-verdict,
  .pg-balance,
  .pg-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-dark {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .pg-article__body {
    padding: 26px 20px;
    border-radius: 22px;
    font-size: 16.5px;
  }

  .pg-post--featured .pg-post__body {
    padding: 24px;
  }

  .pg-cta {
    padding: 8px 0 72px;
  }

  .pg-cta__box {
    padding: 52px 22px;
    border-radius: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg *,
  .pg *::before,
  .pg *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ------------------------------------------------------------------ */
/* Register company (saas_register.php)                                */
/* Scoped to .rg so these beat the page's own inline <style>, which    */
/* still carries the state classes the sign-up script toggles.         */
/* ------------------------------------------------------------------ */

body:has(.register-wrap.rg) {
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(99, 102, 241, 0.12), transparent 70%),
    radial-gradient(700px 500px at 100% 100%, rgba(6, 182, 212, 0.08), transparent 70%),
    var(--pg-bg);
}

.register-wrap.rg {
  max-width: 1200px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 32px;
  padding: 120px 24px 80px;
  align-items: stretch;
}

.rg .rg-panel {
  position: relative;
  padding: 40px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 30px;
  background:
    radial-gradient(420px 300px at 0% 0%, rgba(99, 102, 241, 0.55), transparent 70%),
    radial-gradient(380px 300px at 100% 100%, rgba(6, 182, 212, 0.3), transparent 70%),
    var(--pg-night);
  color: #c7d2fe;
}

.rg .rg-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: auto;
  height: auto;
  border-radius: 0;
  opacity: 1;
  filter: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-color: transparent;
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 75%);
}

.rg .rg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #e0e7ff;
  font-size: 13px;
  font-weight: 600;
}

.rg .rg-pill i {
  color: #fcd34d;
}

.rg .rg-panel h1 {
  margin: 18px 0 14px;
  color: #fff;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.rg .rg-grad {
  background: var(--pg-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rg .rg-panel > p {
  margin: 0 0 28px;
  color: #c7d2fe;
  font-size: 16.5px;
  line-height: 1.65;
}

.rg .rg-label {
  margin: 0 0 12px;
  color: #a5b4fc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rg .rg-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.rg .rg-products li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 13.5px;
  font-weight: 500;
}

.rg .rg-products span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
}

.rg .rg-steps {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.rg .rg-steps li {
  display: flex;
  gap: 14px;
}

.rg .rg-steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--pg-grad-btn);
  color: #fff;
  font-size: 14px;
}

.rg .rg-steps strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.rg .rg-steps span {
  color: #a5b4fc;
  font-size: 13.5px;
}

.rg .rg-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rg .rg-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 12.5px;
}

.rg .rg-trust i {
  color: #67e8f9;
}

/* Form card */
.rg .register-card {
  padding: 40px;
  border: 1px solid var(--pg-line);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 40px 80px -48px rgba(15, 23, 42, 0.45);
}

.rg .register-card h2 {
  margin: 0 0 6px;
  color: var(--pg-ink);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.rg .register-card .sub {
  margin: 0 0 26px;
  color: var(--pg-muted);
  font-size: 15px;
}

.rg .selected-plan {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(#fafaff, #fafaff) padding-box,
    var(--pg-grad-btn) border-box;
}

.rg .form-group {
  margin-bottom: 18px;
}

.rg .form-group label {
  margin-bottom: 7px;
  color: var(--pg-ink-2);
  font-size: 13.5px;
  font-weight: 600;
}

.rg .input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dfe3ec;
  border-radius: 12px;
  background: #fff;
  color: var(--pg-ink);
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.rg select.input {
  padding-right: 36px;
}

.rg .input:focus {
  border-color: #6366f1;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.rg .domain-row {
  overflow: hidden;
  border: 1px solid #dfe3ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rg .domain-row:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.rg .domain-row .input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.rg .domain-chunk {
  border: 0;
  background: #f6f7fb;
  color: var(--pg-muted);
  font-size: 14px;
}

.rg .help {
  color: var(--pg-muted);
  font-size: 12.5px;
}

.rg .btn-outline {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  background: #eef0ff;
  color: #4338ca;
  font-weight: 600;
  white-space: nowrap;
}

.rg .btn-outline:hover {
  background: #e0e7ff;
}

.rg .submit-btn {
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  border: 0;
  border-radius: 14px;
  background: var(--pg-grad-btn);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 16px 34px -14px rgba(99, 102, 241, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s var(--pg-ease), box-shadow 0.2s;
}

.rg .submit-btn:not(:disabled):hover {
  transform: translateY(-2px);
}

.rg .submit-btn:disabled {
  background: #c7cbe0;
  box-shadow: none;
}

.rg .alert-box {
  border-radius: 12px;
}

.rg .provision-progress {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--pg-line);
  border-radius: 18px;
  background: #fafaff;
}

.rg .timeline-step {
  border-radius: 12px;
}

@media (max-width: 920px) {
  .register-wrap.rg {
    grid-template-columns: minmax(0, 1fr);
    padding: 100px 16px 60px;
  }

  .rg .rg-panel,
  .rg .register-card {
    padding: 28px 22px;
    border-radius: 24px;
  }

  /* Keep the form close to the top on phones */
  .rg .rg-label,
  .rg .rg-products,
  .rg .rg-steps {
    display: none;
  }

  .rg .rg-panel > p {
    margin-bottom: 18px;
  }
}

@media (max-width: 520px) {
  .rg .rg-products {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Register: plan cards (replace the old dropdown) */
.rg .rg-plans {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.rg .rg-plans legend {
  margin-bottom: 10px;
  padding: 0;
  color: var(--pg-ink-2);
  font-size: 13.5px;
  font-weight: 600;
}

.rg .rg-plans__grid {
  display: grid;
  padding-top: 6px;
  grid-template-columns: repeat(var(--rg-plan-cols, 3), minmax(0, 1fr));
  gap: 10px;
}

.rg .rg-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 16px 16px 14px;
  border: 1.5px solid #dfe3ec;
  border-radius: 16px;
  background: #fff;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s var(--pg-ease);
}

.rg .rg-plan:hover {
  border-color: #a5b4fc;
  transform: translateY(-1px);
}

/* The radio stays focusable and announced, but the card is the visual control */
.rg .rg-plan input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.rg .rg-plan:has(input:checked) {
  border-color: transparent;
  background:
    linear-gradient(#fafaff, #fafaff) padding-box,
    var(--pg-grad-btn) border-box;
  box-shadow: 0 16px 34px -20px rgba(99, 102, 241, 0.8);
}

.rg .rg-plan:has(input:focus-visible) {
  outline: 3px solid rgba(99, 102, 241, 0.4);
  outline-offset: 2px;
}

.rg .rg-plan__check {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 11px;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.rg .rg-plan:has(input:checked) .rg-plan__check {
  border-color: transparent;
  background: var(--pg-grad-btn);
  color: #fff;
}

.rg .rg-plan__badge {
  position: absolute;
  top: -10px;
  left: 14px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--pg-grad-btn);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.rg .rg-plan__name {
  padding-right: 28px;
  color: var(--pg-ink);
  font-size: 15px;
  font-weight: 700;
}

.rg .rg-plan__price {
  color: var(--pg-ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rg .rg-plan__price small {
  margin-left: 2px;
  color: var(--pg-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.rg .rg-plan__meta {
  color: var(--pg-muted);
  font-size: 12.5px;
}

.rg .rg-plans__note {
  margin: 10px 0 0;
  line-height: 1.6;
  color: var(--pg-muted);
  font-size: 12.5px;
}

.rg .rg-plans__note i {
  margin-right: 4px;
  color: #8b5cf6;
}

.rg .rg-plans__note a {
  color: var(--pg-primary);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 560px) {
  .rg .rg-plans__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rg .rg-plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    padding-right: 48px;
  }

  .rg .rg-plan__badge,
  .rg .rg-plan__name,
  .rg .rg-plan__meta {
    grid-column: 1;
  }

  .rg .rg-plan__price {
    grid-column: 2;
    grid-row: 1 / span 3;
    font-size: 19px;
  }

  .rg .rg-plan__check {
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Register: ₹1 offer */
.rg .rg-rupee {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px 12px 14px;
  border: 1px solid rgba(252, 211, 77, 0.35);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(244, 114, 182, 0.12));
  box-shadow: 0 0 40px -10px rgba(251, 191, 36, 0.45);
}

.rg .rg-rupee__amount {
  display: inline-flex;
  align-items: flex-start;
  background: linear-gradient(135deg, #fde68a, #fbbf24 45%, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 64px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.rg .rg-rupee__amount small {
  margin: 6px 2px 0 0;
  font-size: 30px;
}

.rg .rg-rupee__text {
  color: #fde68a;
  font-size: 13.5px;
  line-height: 1.4;
}

.rg .rg-rupee__text strong {
  display: block;
  color: #fff;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.rg .rg-offer {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 16px;
  margin: 0 0 26px;
  padding: 18px 20px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(240px 140px at 0% 0%, rgba(251, 191, 36, 0.35), transparent 70%),
    linear-gradient(135deg, #1e1b4b 0%, #4c1d95 60%, #831843 100%);
  color: #fde68a;
  box-shadow: 0 20px 40px -24px rgba(76, 29, 149, 0.9);
}

.rg .rg-offer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  animation: rg-shine 4.5s ease-in-out infinite;
}

@keyframes rg-shine {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}

.rg .rg-offer__price {
  grid-row: span 2;
  display: inline-flex;
  align-items: flex-start;
  background: linear-gradient(135deg, #fef3c7, #fbbf24 50%, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 58px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.rg .rg-offer__price small {
  margin: 5px 2px 0 0;
  font-size: 26px;
}

.rg .rg-offer__copy strong {
  display: block;
  color: #fff;
  font-size: 17px;
  line-height: 1.3;
}

.rg .rg-offer__copy span {
  display: block;
  margin-top: 3px;
  color: #e9d5ff;
  font-size: 13px;
  line-height: 1.45;
}

.rg .rg-offer__chips {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.rg .rg-offer__chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.rg .rg-offer__chips i {
  color: #fcd34d;
  font-size: 11px;
}

.rg .rg-assure {
  margin: 12px 0 0;
  color: var(--pg-muted);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

.rg .rg-assure i {
  margin-right: 4px;
  color: #10b981;
}

@media (max-width: 560px) {
  .rg .rg-offer {
    padding: 16px;
    column-gap: 12px;
  }

  .rg .rg-offer__price {
    font-size: 46px;
  }

  .rg .rg-offer__chips {
    grid-column: 1 / -1;
  }

  .rg .rg-rupee__amount {
    font-size: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rg .rg-offer::after {
    animation: none;
    display: none;
  }
}
