/* Homepage comparison (#compare), pricing teaser (#pricing) and the standalone pricing page.
   Loaded after the shared stylesheets; overrides only, shared files stay untouched. */

/* ---------- Comparison: OhMyGen vs. real tools ---------- */
.fx-compare {
  position: relative;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--omg-shadow-lift);
  overflow: hidden;
}
.fx-compare-hint {
  display: none;
}
.fx-compare-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.fx-compare-scroll:focus-visible {
  outline: 3px solid var(--omg-pink);
  outline-offset: -3px;
}
.fx-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.fx-compare-table th,
.fx-compare-table td {
  padding: 18px 14px;
  text-align: center;
  vertical-align: middle;
  background: #fff;
}
.fx-compare-table th:first-child {
  width: 29%;
  text-align: left;
  padding-left: 30px;
  position: sticky;
  left: 0;
  z-index: 2;
}
.fx-compare-table tbody tr:nth-child(odd) > * {
  background: #faf9fb;
}
/* Header row */
.fx-compare-table thead th {
  padding-top: 26px;
  padding-bottom: 22px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--omg-ink);
  vertical-align: bottom;
}
.fx-compare-table thead th small {
  display: block;
  margin-top: 4px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--omg-muted);
}
.fx-compare-table thead .fx-corner {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--omg-muted);
}
/* Row labels */
.fx-compare-table tbody th {
  font-size: 16px;
  font-weight: 800;
  color: var(--omg-ink);
  line-height: 1.3;
}
.fx-compare-table tbody th small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--omg-muted);
}
/* Cells */
.fx-compare-table td small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--omg-muted);
}
.fx-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  font-style: normal;
}
.fx-yes {
  background: #dff3e6;
  color: #17703b;
}
.fx-part {
  background: var(--omg-tint-yellow);
  color: #7a5a00;
}
.fx-no {
  background: #f1eff3;
  color: #6b6573;
}
/* The OhMyGen column */
.fx-compare-table .fx-us,
.fx-compare-table tbody tr:nth-child(odd) > .fx-us {
  background: var(--omg-tint-pink);
}
.fx-compare-table tbody tr:nth-child(odd) > .fx-us {
  background: #ffe0eb;
}
.fx-compare-table thead .fx-us {
  border-radius: 22px 22px 0 0;
  color: var(--omg-pink-ink);
  font-size: 20px;
}
.fx-compare-table thead .fx-us img {
  display: block;
  height: 64px;
  width: auto;
  margin: -6px auto 6px;
  transform: rotate(-8deg);
}
.fx-compare-table thead .fx-us span {
  display: block;
}
.fx-compare-table td.fx-us small {
  color: var(--omg-pink-ink);
  font-weight: 800;
}
.fx-compare-table .fx-us .fx-yes {
  background: var(--omg-pink);
  color: #141018;
  box-shadow: 0 4px 12px rgba(255, 77, 141, 0.35);
}
/* Footer strip: legend + CTA */
.fx-compare-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
  padding: 20px 30px;
  background: #fdfbfe;
  box-shadow: inset 0 10px 18px -16px rgba(20, 16, 24, 0.18);
}
.fx-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--omg-text);
}
.fx-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fx-legend .fx-mark {
  width: 24px;
  height: 24px;
  font-size: 13px;
}
.fx-compare-note {
  max-width: 720px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--omg-muted);
}
.fx-compare-note a {
  color: var(--omg-pink-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .fx-compare {
    border-radius: 22px;
  }
  .fx-compare-hint {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 12px 16px 0;
    font-size: 13px;
    font-weight: 800;
    color: var(--omg-pink-ink);
    transition: opacity 0.2s;
  }
  .fx-compare:not(.is-scrollable) .fx-compare-hint,
  .fx-compare.is-scrolled .fx-compare-hint {
    opacity: 0;
  }
  .fx-compare-table {
    width: 640px;
  }
  .fx-compare-table th,
  .fx-compare-table td {
    padding: 14px 10px;
  }
  .fx-compare-table th:first-child {
    width: 132px;
    padding-left: 16px;
    transition: box-shadow 0.2s;
  }
  .fx-compare.is-scrolled .fx-compare-table th:first-child {
    box-shadow: 10px 0 16px -12px rgba(20, 16, 24, 0.28);
  }
  .fx-compare-table thead th {
    font-size: 16px;
    padding-top: 16px;
  }
  .fx-compare-table thead .fx-us {
    font-size: 17px;
  }
  .fx-compare-table thead .fx-us img {
    height: 50px;
  }
  .fx-compare-table tbody th {
    font-size: 14px;
  }
  .fx-compare-table tbody th small,
  .fx-compare-table td small,
  .fx-compare-table thead th small {
    font-size: 13px;
  }
  .fx-mark {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }
  .fx-compare-foot {
    padding: 18px 16px;
  }
}
@media (max-width: 600px) {
  /* Phones: row labels only, so the sticky column stays narrow and rows stay short. */
  .fx-compare-table tbody th small {
    display: none;
  }
  .fx-compare-table tbody th {
    font-size: 14px;
    line-height: 1.3;
  }
  .fx-compare-foot .button {
    width: 100%;
    justify-content: center;
  }
  .fx-legend {
    font-size: 13px;
    gap: 8px 16px;
  }
}

/* ---------- Homepage pricing teaser ---------- */
.fx-price-teaser {
  padding-top: 40px;
  padding-bottom: 90px;
}
.fx-teaser-card {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  grid-template-areas:
    'copy plans'
    'actions plans'
    'note note';
  gap: 22px 56px;
  align-items: center;
  padding: 56px 60px 36px;
  border-radius: 40px;
  background: radial-gradient(ellipse at 90% 0%, var(--omg-tint-pink), transparent 60%), #f6f3f8;
}
.fx-teaser-copy {
  grid-area: copy;
  align-self: end;
}
.fx-teaser-copy h2 {
  margin-top: 14px;
  font-size: clamp(34px, 3.6vw, 48px);
}
.fx-teaser-copy .serif-word {
  color: var(--omg-pink);
}
.fx-teaser-copy p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--omg-muted);
}
.fx-teaser-plans {
  grid-area: plans;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.fx-teaser-plans li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'name price' 'meta price';
  align-items: center;
  gap: 2px 16px;
  padding: 18px 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--omg-shadow);
}
.fx-teaser-plans b {
  grid-area: name;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: var(--omg-ink);
}
.fx-teaser-plans b span {
  color: var(--omg-pink);
}
.fx-teaser-plans li > span {
  grid-area: price;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--omg-ink);
}
.fx-teaser-plans small {
  grid-area: meta;
  font-size: 14px;
  font-weight: 600;
  color: var(--omg-muted);
}
.fx-teaser-plans .fx-teaser-featured {
  background: linear-gradient(120deg, #ffe8f0, #fff4f8);
  box-shadow:
    0 0 0 2px #ffb3cd,
    var(--omg-shadow-lift);
}
.fx-teaser-actions {
  grid-area: actions;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}
.fx-teaser-actions .text-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--omg-pink-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fx-teaser-note {
  grid-area: note;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--omg-muted);
}
@media (max-width: 900px) {
  .fx-price-teaser {
    padding-bottom: 60px;
  }
  .fx-teaser-card {
    grid-template-columns: 1fr;
    grid-template-areas: 'copy' 'plans' 'actions' 'note';
    padding: 36px 20px 26px;
    border-radius: 28px;
    gap: 22px;
  }
  .fx-teaser-plans li {
    padding: 16px 18px;
  }
  .fx-teaser-plans b {
    font-size: 18px;
  }
  .fx-teaser-plans li > span {
    font-size: 16px;
  }
  .fx-teaser-plans small {
    font-size: 13px;
  }
  .fx-teaser-actions .button {
    width: 100%;
    justify-content: center;
  }
  .fx-teaser-actions .text-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}

/* ---------- Standalone pricing page ---------- */
.pricing-page .fx-pricing-hero {
  margin-top: 14px;
  padding-top: 76px;
}
.pricing-page .fx-pricing-hero h1 {
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.12;
  letter-spacing: -2px;
  margin: 0;
}
.pricing-page .fx-pricing-hero h1 .serif-word {
  color: var(--omg-pink);
}
.pricing-page .credit-note a {
  color: var(--omg-pink-ink);
  font-weight: 700;
}
.pricing-page .faq-section {
  scroll-margin-top: 90px;
}
.fx-credits {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-areas: 'intro list' 'note list';
  gap: 20px 65px;
  align-items: start;
  padding-top: 100px;
  scroll-margin-top: 90px;
}
.fx-credits-intro {
  grid-area: intro;
}
.fx-credits-intro h2 {
  margin-top: 16px;
  font-size: 38px;
  line-height: 1.25;
}
.fx-credits-intro .serif-word {
  color: var(--omg-pink);
}
.fx-credits-intro p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--omg-muted);
}
.fx-credit-list {
  grid-area: list;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fx-credit-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--omg-shadow);
}
.fx-credit-list li > b {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--omg-tint-cyan);
  color: var(--omg-cyan-ink);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
}
.fx-credit-list li > span {
  font-size: 16px;
  font-weight: 800;
  color: var(--omg-ink);
  line-height: 1.3;
}
.fx-credit-list small {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--omg-muted);
}
.fx-credit-list .fx-credit-main {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, #ffe8f0, #fff4f8);
  box-shadow:
    0 0 0 2px #ffb3cd,
    var(--omg-shadow-lift);
}
.fx-credit-list .fx-credit-main > b {
  background: var(--omg-pink);
  color: #141018;
}
.fx-credits-note {
  grid-area: note;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--omg-muted);
}
@media (max-width: 900px) {
  .pricing-page .fx-pricing-hero {
    padding-top: 48px;
  }
  .fx-credits {
    grid-template-columns: 1fr;
    grid-template-areas: 'intro' 'list' 'note';
    padding-top: 64px;
    gap: 24px;
  }
  .fx-credits-intro h2 {
    font-size: 32px;
  }
  .fx-credit-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .fx-credit-list li {
    padding: 14px 16px;
  }
  .fx-credit-list li > b {
    width: 44px;
    height: 44px;
    font-size: 19px;
  }
}
