/* ==========================================================================
   FRAMEFUSION · PUBLIC PAGES
   Pricing, terms, privacy, and refunds in the studio's original amethyst theme.
   ========================================================================== */

:root {
  --pg-max: 1160px;
  --pg-ink: #2b1c47;
  --pg-muted: #75658f;
  --pg-line: #ebe2f7;
  --pg-paper: #faf8ff;
  --pg-card: #ffffff;
  --pg-violet: #7c5ce6;
  --pg-violet-deep: #5b35bd;
  --pg-lav: #f2eaff;
  --pg-lav-2: #f7f1ff;
}

body.ff-public-page {
  background: var(--pg-paper);
  color: var(--pg-ink);
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ff-public-page .site-header {
  background: rgba(250, 248, 255, 0.88);
}

.ff-public-page .site-header nav a[aria-current="page"] {
  color: var(--pg-violet);
  font-weight: 650;
}

.pg-wrap {
  width: min(var(--pg-max), calc(100% - 48px));
  margin: 0 auto;
}

.pg-hero {
  padding: 76px 0 46px;
  border-bottom: 1px solid var(--pg-line);
  position: relative;
  overflow: hidden;
}

.pg-hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -240px;
  top: -350px;
  border-radius: 50%;
  border: 1px solid rgba(124, 92, 230, 0.1);
  box-shadow: 0 0 0 80px rgba(124, 92, 230, 0.025), 0 0 0 160px rgba(124, 92, 230, 0.018);
  pointer-events: none;
}

.pg-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #8a7cab;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.pg-eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pg-violet);
  box-shadow: 0 0 0 3px rgba(124, 92, 230, 0.13);
}

.pg-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.pg-hero h1 em {
  color: var(--pg-violet);
  font-style: normal;
}

.pg-lede {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--pg-muted);
  font-size: 14px;
  line-height: 1.85;
}

.pg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  color: #9184a8;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pg-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pg-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c9b9e1;
}

/* Pricing */
.pricing-section {
  padding: 52px 0 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--pg-line);
  border-radius: 22px;
  background: var(--pg-card);
  box-shadow: 0 24px 70px -58px rgba(62, 37, 110, 0.55);
}

.pricing-card.pro {
  background:
    radial-gradient(circle at 92% 4%, rgba(124, 92, 230, 0.12), transparent 16rem),
    linear-gradient(150deg, #ffffff 0%, #f5eeff 100%);
  border-color: #d9c8f6;
}

.pricing-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.pricing-name {
  margin: 0;
  color: #8b7cab;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.pricing-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: #efe6ff;
  color: #6b45cf;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pricing-card.pro .pricing-badge {
  background: #7c5ce6;
  color: #fff;
}

.pricing-card h2 {
  margin: 0 0 8px;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.pricing-copy {
  min-height: 48px;
  margin: 0 0 22px;
  color: var(--pg-muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--pg-ink);
  font-size: 58px;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.pricing-amount small {
  color: #7c6d94;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pricing-card .pg-button {
  width: 100%;
}

.pg-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #dcd0ef;
  border-radius: 10px;
  background: #fff;
  color: var(--pg-ink);
  font-size: 11.5px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.pg-button:hover {
  transform: translateY(-1px);
  border-color: #bda9e1;
  background: #fcfaff;
}

.pg-button.primary {
  background: linear-gradient(135deg, #8b68eb, #6a44c8);
  border-color: #6a44c8;
  color: #fff;
}

.pg-button.primary:hover {
  background: linear-gradient(135deg, #7b56df, #5b35bd);
}

.pg-button.lime {
  background: linear-gradient(135deg, #8b68eb, #6a44c8);
  border-color: #6a44c8;
  color: #fff;
}

.pg-button.lime:hover {
  background: linear-gradient(135deg, #7b56df, #5b35bd);
}

.pricing-list {
  display: grid;
  gap: 11px;
  margin: 26px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--pg-line);
  list-style: none;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #57466d;
  font-size: 12px;
  line-height: 1.55;
}

.pricing-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 1px;
  border: 1px solid #d6c7ef;
  border-radius: 50%;
  background: #f5efff;
  color: #7048cf;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.pricing-note {
  margin: 14px 0 0;
  color: #9184a8;
  font-size: 10px;
  line-height: 1.6;
}

.comparison-wrap {
  padding: 64px 0 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--pg-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--pg-card);
}

.comparison-table th,
.comparison-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #f0e9fa;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
  line-height: 1.55;
}

.comparison-table th:not(:first-child),
.comparison-table td:not(:first-child) {
  width: 28%;
}

.comparison-table thead th {
  background: #f5efff;
  color: #7e6e9e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.comparison-table tbody th {
  color: #35254a;
  font-weight: 650;
}

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

.comparison-table td {
  color: var(--pg-muted);
}

.comparison-table td.pro-cell {
  color: #4c2d8a;
  background: rgba(242, 234, 255, 0.38);
  font-weight: 600;
}

.pricing-faq {
  padding: 66px 0 0;
}

.pricing-faq h2,
.pg-section-title {
  margin: 0 0 22px;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 38px;
  border-top: 1px solid var(--pg-line);
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--pg-line);
}

.faq-item summary {
  cursor: pointer;
  color: #3d2b58;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--pg-muted);
  font-size: 12px;
  line-height: 1.75;
}

.pg-cta {
  margin: 72px 0 0;
  padding: 42px;
  border: 1px solid #dacbf1;
  border-radius: 22px;
  background:
    radial-gradient(circle at 84% 18%, rgba(124, 92, 230, 0.12), transparent 18rem),
    linear-gradient(135deg, #ffffff, #f1eaff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.pg-cta h2 {
  margin: 0;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.pg-cta p {
  margin: 8px 0 0;
  color: var(--pg-muted);
  font-size: 12px;
}

/* Contact */
.contact-section {
  padding: 52px 0 0;
}

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

.contact-card {
  padding: 28px;
  border: 1px solid var(--pg-line);
  border-radius: 18px;
  background: var(--pg-card);
  box-shadow: 0 20px 55px -48px rgba(62, 37, 110, .5);
}

.contact-label {
  margin: 0 0 18px;
  color: #8b7cab;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.contact-card h2 {
  margin: 0 0 12px;
  color: #2d1f42;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.035em;
}

.contact-card p {
  min-height: 66px;
  margin: 0 0 20px;
  color: var(--pg-muted);
  font-size: 12px;
  line-height: 1.75;
}

.contact-card a {
  display: inline-flex;
  gap: 7px;
  color: var(--pg-violet);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--pg-violet-deep);
}

.contact-note {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--pg-line);
}

.contact-note h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.contact-note p {
  margin: 0 0 12px;
  color: var(--pg-muted);
  font-size: 12px;
  line-height: 1.8;
}

/* Legal documents */
.legal-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 64px;
  justify-content: center;
  padding: 54px 0 0;
}

.legal-nav {
  position: sticky;
  top: 108px;
  align-self: start;
  padding: 18px 0;
  border-top: 1px solid var(--pg-line);
}

.legal-nav p {
  margin: 0 0 12px;
  color: #9b8db1;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-nav a {
  display: block;
  padding: 6px 0;
  color: #7d6c99;
  font-size: 10.5px;
  line-height: 1.4;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--pg-violet);
}

.legal-body {
  min-width: 0;
}

.legal-intro {
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--pg-line);
}

.legal-intro p {
  margin: 0;
  color: #544169;
  font-size: 14px;
  line-height: 1.85;
}

.legal-body h2 {
  margin: 40px 0 12px;
  color: #322049;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.legal-body h2:first-of-type {
  margin-top: 0;
}

.legal-body h3 {
  margin: 26px 0 8px;
  color: #412b5b;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-body p,
.legal-body li {
  color: #5d4b73;
  font-size: 13px;
  line-height: 1.85;
}

.legal-body p {
  margin: 0 0 14px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body li::marker {
  color: #9a7be0;
}

.legal-body a {
  color: var(--pg-violet);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-callout {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid #e3d8f3;
  border-left: 3px solid var(--pg-violet);
  border-radius: 8px;
  background: #fcfaff;
}

.legal-callout p {
  margin: 0;
  color: #5c4a72;
  font-size: 12px;
  line-height: 1.75;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  border: 1px solid var(--pg-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--pg-card);
}

.legal-table th,
.legal-table td {
  padding: 11px 13px;
  border-bottom: 1px solid #f0e9fa;
  text-align: left;
  vertical-align: top;
  color: #5d4b73;
  font-size: 11.5px;
  line-height: 1.6;
}

.legal-table th {
  background: #f5efff;
  color: #7e6e9e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--pg-line);
  color: #a294b4;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Shared page footer */
.page-footer {
  margin-top: 82px;
  padding: 34px 0 40px;
  border-top: 1px solid var(--pg-line);
}

.page-footer-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.page-footer .brand {
  margin-right: auto;
  color: var(--pg-ink) !important;
  font-size: 13px;
}

.page-footer .brand img {
  width: 26px;
  height: 26px;
}

.page-footer a:not(.brand) {
  color: #7d6c99;
  font-size: 10px;
  text-decoration: none;
}

.page-footer a:not(.brand):hover {
  color: var(--pg-violet);
}

.page-footer .copyright {
  color: #a294b4;
  font-size: 9px;
}

@media (max-width: 980px) {
  .legal-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 38px;
  }

  .legal-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    padding: 14px 0;
  }

  .legal-nav p {
    width: 100%;
    margin-bottom: 4px;
  }

  .legal-nav a {
    padding: 3px 0;
  }
}

@media (max-width: 760px) {
  .pg-wrap {
    width: calc(100% - 32px);
  }

  .pg-hero {
    padding-top: 52px;
  }

  .pricing-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 26px;
  }

  .pricing-amount {
    font-size: 50px;
  }

  .comparison-table th:not(:first-child),
  .comparison-table td:not(:first-child) {
    width: auto;
  }

  .pg-cta {
    display: block;
    padding: 30px;
  }

  .pg-cta .pg-button {
    margin-top: 22px;
    width: 100%;
  }

  .page-footer-inner {
    align-items: flex-start;
    gap: 14px 18px;
  }

  .page-footer .brand {
    flex-basis: 100%;
  }

  .page-footer .copyright {
    flex-basis: 100%;
  }
}
