/* ============================================================
   POSTLY — PRICING PAGE
   public/styling/pricing.css
============================================================ */

:root {
  --postly-black: #111111;
  --postly-gray-900: #333333;
  --postly-gray-700: #555555;
  --postly-gray-500: #7c7c7c;
  --postly-gray-300: #d8d8d8;
  --postly-gray-200: #e7e7e7;
  --postly-gray-100: #f3f3f3;
  --postly-gray-50: #f9f9f9;

  --white: #ffffff;

  --postly-yellow: #f4d03f;
  --postly-yellow-dark: #ad900d;
  --postly-yellow-soft: #fff9dc;

  --postly-blue: #0091ea;
  --postly-blue-dark: #006bb3;
  --postly-blue-soft: #edf8ff;

  --postly-green: #10b981;
  --postly-green-dark: #087a57;

  --page-width: 1180px;

  --radius-sm: 6px;
  --radius-md: 10px;

  --shadow-sm: 0 5px 16px rgba(0, 0, 0, 0.055);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 30px 72px rgba(0, 0, 0, 0.11);
}

/* ============================================================
   RESET
============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: #ffffff;

  color: var(--postly-black);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;

  font-size: 16px;
  line-height: 1.65;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;

  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

ul {
  margin: 0;

  padding: 0;

  list-style: none;
}

/* ============================================================
   PRODUCT TYPE
============================================================ */

.eyebrow,
.button,
.pricing-card__label,
.pricing-card__period,
.pricing-card__badge,
.pricing-value-grid span,
.site-footer__heading {
  font-family:
    "Andale Mono", AndaleMono, ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;
}

/* ============================================================
   CONTAINER
============================================================ */

.page-container {
  width: min(calc(100% - 48px), var(--page-width));

  margin: 0 auto;
}

/* ============================================================
   TYPOGRAPHY
============================================================ */

.eyebrow {
  margin-bottom: 18px;

  color: var(--postly-yellow-dark);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--postly-yellow);
}

h1,
h2,
h3 {
  color: var(--postly-black);

  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(48px, 6vw, 76px);

  line-height: 1.04;
}

h2 {
  font-size: clamp(34px, 4vw, 50px);

  line-height: 1.1;
}

h3 {
  font-size: 21px;

  line-height: 1.3;
}

/* ============================================================
   HERO
============================================================ */

.pricing-hero {
  position: relative;

  overflow: hidden;

  padding: 120px 0 90px;

  background:
    radial-gradient(
      circle at 85% 25%,
      rgba(244, 208, 63, 0.19),
      transparent 28%
    ),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.pricing-hero__inner {
  max-width: 950px;

  text-align: center;
}

.pricing-hero h1 {
  margin: 0 auto 30px;
}

.pricing-hero h1 span {
  display: inline;

  background: linear-gradient(
    transparent 72%,
    rgba(244, 208, 63, 0.86) 72%,
    rgba(244, 208, 63, 0.86) 91%,
    transparent 91%
  );
}

.pricing-hero__lead {
  max-width: 770px;

  margin: 0 auto;

  color: var(--postly-gray-700);

  font-size: 19px;

  line-height: 1.8;
}

/* ============================================================
   PRICING SECTION
============================================================ */

.pricing-section {
  padding: 30px 0 120px;

  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.pricing-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  align-items: stretch;

  gap: 18px;
}

/* ============================================================
   PRICING CARD
============================================================ */

.pricing-card {
  position: relative;

  min-height: 620px;

  padding: 34px;

  display: flex;
  flex-direction: column;

  border: 1px solid var(--postly-gray-200);
  border-top: 5px solid var(--postly-gray-300);
  border-radius: var(--radius-sm);

  background: #ffffff;

  box-shadow: var(--shadow-sm);

  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.pricing-card:first-child {
  border-top-color: var(--postly-green);
}

.pricing-card:nth-child(3) {
  border-top-color: var(--postly-blue);
}

.pricing-card:hover {
  transform: translateY(-5px);

  border-color: #cccccc;

  box-shadow: var(--shadow-md);
}

.pricing-card--featured {
  border-color: #dcc02c;
  border-top-color: var(--postly-yellow);

  background: linear-gradient(180deg, #fffdf0 0%, #ffffff 28%);

  box-shadow: var(--shadow-lg);
}

.pricing-card__badge {
  position: absolute;

  top: -16px;
  left: 50%;

  padding: 7px 13px;

  transform: translateX(-50%);

  border: 1px solid #111111;
  border-radius: 999px;

  background: var(--postly-yellow);

  color: var(--postly-black);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.05em;

  text-transform: uppercase;

  white-space: nowrap;
}

.pricing-card__top {
  padding-bottom: 30px;

  border-bottom: 1px solid var(--postly-gray-200);
}

.pricing-card__label {
  margin-bottom: 17px;

  color: var(--postly-gray-500);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.pricing-card h2 {
  min-height: 80px;

  margin-bottom: 24px;

  font-size: 30px;
}

.pricing-card__price {
  margin-bottom: 22px;

  display: flex;
  align-items: baseline;

  gap: 8px;
}

.pricing-card__amount {
  color: var(--postly-black);

  font-size: 48px;
  font-weight: 800;

  line-height: 1;
}

.pricing-card__period {
  color: var(--postly-gray-500);

  font-size: 12px;
  font-weight: 700;
}

.pricing-card__description {
  margin-bottom: 0;

  color: var(--postly-gray-700);

  font-size: 14px;

  line-height: 1.7;
}

.pricing-card__features {
  padding: 30px 0;

  display: flex;
  flex-direction: column;

  gap: 15px;
}

.pricing-card__features li {
  position: relative;

  padding-left: 26px;

  color: var(--postly-gray-700);

  font-size: 14px;

  line-height: 1.55;
}

.pricing-card__features li::before {
  position: absolute;

  top: 1px;
  left: 0;

  color: var(--postly-green);

  font-weight: 800;

  content: "✓";
}

.pricing-card__button {
  min-height: 47px;

  margin-top: auto;

  padding: 12px 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--postly-black);
  border-radius: 3px;

  background: #ffffff;

  color: var(--postly-black);

  font-family: "Andale Mono", AndaleMono, ui-monospace, monospace;

  font-size: 13px;
  font-weight: 700;

  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.pricing-card__button:hover {
  transform: translateY(-2px);

  background: var(--postly-black);

  color: #ffffff;
}

.pricing-card__button--primary {
  border-color: var(--postly-yellow);

  background: var(--postly-yellow);

  color: var(--postly-black);
}

.pricing-card__button--primary:hover {
  border-color: var(--postly-black);

  background: var(--postly-black);

  color: #ffffff;
}

/* ============================================================
   SECTIONS
============================================================ */

.content-section {
  padding: 110px 0;
}

.content-section--soft {
  background: linear-gradient(180deg, #fafafa 0%, #f6f6f6 100%);
}

.section-heading {
  max-width: 780px;

  margin-bottom: 60px;
}

.section-heading h2 {
  margin-bottom: 20px;
}

.section-heading > p:last-child {
  margin-bottom: 0;

  color: var(--postly-gray-700);

  font-size: 18px;

  line-height: 1.75;
}

.section-heading--center {
  margin-right: auto;
  margin-left: auto;

  text-align: center;
}

/* ============================================================
   VALUE GRID
============================================================ */

.pricing-value-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 18px;
}

.pricing-value-grid article {
  min-height: 240px;

  padding: 30px;

  border: 1px solid var(--postly-gray-200);

  background: #ffffff;
}

.pricing-value-grid article:nth-child(1) {
  border-top: 4px solid var(--postly-yellow);
}

.pricing-value-grid article:nth-child(2) {
  border-top: 4px solid var(--postly-blue);
}

.pricing-value-grid article:nth-child(3) {
  border-top: 4px solid var(--postly-green);
}

.pricing-value-grid span {
  display: block;

  margin-bottom: 40px;

  color: var(--postly-gray-500);

  font-size: 11px;
  font-weight: 700;
}

.pricing-value-grid h3 {
  margin-bottom: 14px;
}

.pricing-value-grid p {
  margin-bottom: 0;

  color: var(--postly-gray-700);

  font-size: 14px;

  line-height: 1.75;
}

/* ============================================================
   FAQ
============================================================ */

.pricing-faq {
  max-width: 900px;

  border-top: 1px solid var(--postly-gray-200);
}

.pricing-faq__item {
  padding: 34px 0;

  border-bottom: 1px solid var(--postly-gray-200);
}

.pricing-faq__item h3 {
  margin-bottom: 13px;
}

.pricing-faq__item p {
  max-width: 740px;

  margin-bottom: 0;

  color: var(--postly-gray-700);

  font-size: 15px;

  line-height: 1.75;
}

/* ============================================================
   GENERIC BUTTONS
============================================================ */

.button {
  min-height: 50px;

  padding: 13px 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid transparent;
  border-radius: 3px;

  font-size: 14px;
  font-weight: 700;

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

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

.button--white {
  border-color: #ffffff;

  background: #ffffff;

  color: var(--postly-black);
}

.button--white:hover {
  border-color: var(--postly-yellow);

  background: var(--postly-yellow);
}

.button--dark-outline {
  border-color: #4d4d4d;

  background: transparent;

  color: #ffffff;
}

.button--dark-outline:hover {
  border-color: var(--postly-green);

  color: var(--postly-green);
}

/* ============================================================
   FINAL CTA
============================================================ */

.final-cta {
  position: relative;

  padding: 120px 0;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(244, 208, 63, 0.1),
      transparent 25%
    ),
    var(--postly-black);

  color: #ffffff;
}

.final-cta::before {
  position: absolute;

  top: 0;
  right: 0;
  left: 0;

  height: 6px;

  background: linear-gradient(
    90deg,
    var(--postly-yellow) 0%,
    var(--postly-yellow) 60%,
    var(--postly-blue) 60%,
    var(--postly-blue) 82%,
    var(--postly-green) 82%
  );

  content: "";
}

.final-cta__inner {
  max-width: 840px;

  text-align: center;
}

.final-cta h2 {
  margin-bottom: 24px;

  color: #ffffff;
}

.final-cta__inner > p:not(.eyebrow) {
  max-width: 710px;

  margin-right: auto;
  margin-left: auto;

  color: #cacaca;

  font-size: 18px;

  line-height: 1.8;
}

.final-cta__actions {
  margin-top: 40px;

  display: flex;
  justify-content: center;

  gap: 12px;
}

/* ============================================================
   FOOTER
============================================================ */

.site-footer {
  padding: 72px 0 30px;

  border-top: 1px solid var(--postly-gray-200);

  background: var(--postly-gray-50);
}

.site-footer__inner {
  display: grid;

  grid-template-columns: 1.4fr 2fr;

  gap: 100px;
}

.site-footer__brand {
  display: inline-block;

  margin-bottom: 14px;

  font-size: 24px;
  font-weight: 800;

  letter-spacing: -0.045em;
}

.site-footer__inner > div:first-child p {
  max-width: 390px;

  color: var(--postly-gray-700);

  font-size: 13px;

  line-height: 1.75;
}

.site-footer__links {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 40px;
}

.site-footer__links > div {
  display: flex;
  flex-direction: column;

  gap: 10px;
}

.site-footer__heading {
  margin-bottom: 7px;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.06em;

  text-transform: uppercase;
}

.site-footer__links a {
  width: fit-content;

  color: var(--postly-gray-700);

  font-size: 13px;
}

.site-footer__links a:hover {
  text-decoration: underline;

  text-decoration-color: var(--postly-yellow);
  text-decoration-thickness: 2px;

  text-underline-offset: 4px;
}

.site-footer__bottom {
  margin-top: 65px;

  padding-top: 24px;

  border-top: 1px solid var(--postly-gray-200);
}

.site-footer__bottom p {
  margin: 0;

  color: var(--postly-gray-500);

  font-size: 12px;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: 1fr;

    max-width: 650px;

    margin: 0 auto;

    gap: 28px;
  }

  .pricing-card {
    min-height: auto;
  }

  .pricing-card h2 {
    min-height: 0;
  }

  .pricing-value-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;

    gap: 50px;
  }
}

@media (max-width: 760px) {
  .page-container {
    width: min(calc(100% - 32px), var(--page-width));
  }

  .pricing-hero {
    padding: 90px 0 70px;
  }

  .pricing-hero h1 {
    font-size: 43px;
  }

  .pricing-hero__lead {
    font-size: 16px;
  }

  .pricing-section {
    padding-bottom: 80px;
  }

  .content-section {
    padding: 80px 0;
  }

  .pricing-card {
    padding: 28px;
  }

  .final-cta {
    padding: 92px 0;
  }

  .final-cta__actions {
    flex-direction: column;
  }

  .final-cta__actions .button {
    width: 100%;
  }

  .site-footer__links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 440px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 31px;
  }

  .site-footer__links {
    grid-template-columns: 1fr;
  }
}
