/* ============================================================
   POSTLY — FEATURES PAGE
   public/styling/features.css
============================================================ */

:root {
  --postly-black: #111111;
  --postly-charcoal: #252525;

  --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;
  --postly-green-soft: #ecfdf5;

  --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;
}

img {
  display: block;

  max-width: 100%;
}

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

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

.eyebrow,
.button,
.feature-card__number,
.process-card > 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, 78px);

  line-height: 1.04;
}

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

  line-height: 1.1;
}

h3 {
  font-size: 22px;

  line-height: 1.3;
}

/* ============================================================
   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,
    box-shadow 180ms ease;
}

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

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

  background: var(--postly-yellow);

  color: var(--postly-black);

  box-shadow: 0 8px 22px rgba(244, 208, 63, 0.18);
}

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

  background: var(--postly-black);

  color: #ffffff;
}

.button--secondary {
  border-color: #cccccc;

  background: #ffffff;

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

.button--secondary:hover {
  border-color: var(--postly-blue);

  background: var(--postly-blue-soft);

  color: var(--postly-blue-dark);
}

.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);
}

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

.features-hero {
  position: relative;

  overflow: hidden;

  padding: 128px 0 108px;

  background:
    radial-gradient(
      circle at 82% 20%,
      rgba(244, 208, 63, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at 12% 84%,
      rgba(0, 145, 234, 0.06),
      transparent 25%
    ),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.features-hero::before {
  position: absolute;

  top: 86px;
  right: -75px;

  width: 230px;
  height: 230px;

  border: 1px solid rgba(244, 208, 63, 0.28);
  border-radius: 50%;

  background: rgba(244, 208, 63, 0.06);

  content: "";
}

.features-hero__inner {
  position: relative;

  z-index: 2;

  text-align: center;
}

.features-hero h1 {
  max-width: 1000px;

  margin: 0 auto 30px;
}

.features-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%
  );
}

.features-hero__lead {
  max-width: 810px;

  margin: 0 auto 38px;

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

  font-size: 19px;

  line-height: 1.8;
}

.features-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;
}

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

.content-section {
  position: relative;

  padding: 112px 0;
}

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

.content-section--dark {
  position: relative;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(0, 145, 234, 0.09),
      transparent 27%
    ),
    radial-gradient(
      circle at 8% 88%,
      rgba(16, 185, 129, 0.06),
      transparent 30%
    ),
    var(--postly-black);

  color: #ffffff;
}

.content-section--dark::before {
  position: absolute;

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

  height: 5px;

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

  content: "";
}

/* ============================================================
   SECTION HEADING
============================================================ */

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

  margin-bottom: 62px;
}

.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;
}

/* ============================================================
   FEATURE GRID
============================================================ */

.features-grid {
  display: grid;

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

  gap: 18px;
}

.feature-card {
  position: relative;

  overflow: hidden;

  min-height: 270px;

  padding: 32px;

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

  background: #ffffff;

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

.feature-card::before {
  position: absolute;

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

  height: 5px;

  content: "";
}

.feature-card--yellow::before {
  background: var(--postly-yellow);
}

.feature-card--blue::before {
  background: var(--postly-blue);
}

.feature-card--green::before {
  background: var(--postly-green);
}

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

  border-color: #cccccc;

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

.feature-card__number {
  display: block;

  margin-bottom: 48px;

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

  letter-spacing: 0.08em;
}

.feature-card--yellow .feature-card__number {
  color: var(--postly-yellow-dark);
}

.feature-card--blue .feature-card__number {
  color: var(--postly-blue);
}

.feature-card--green .feature-card__number {
  color: var(--postly-green-dark);
}

.feature-card h3 {
  margin-bottom: 14px;
}

.feature-card p {
  margin-bottom: 0;

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

  font-size: 15px;

  line-height: 1.75;
}

/* ============================================================
   FEATURE DETAIL
============================================================ */

.feature-detail {
  display: grid;

  grid-template-columns:
    minmax(260px, 0.9fr)
    minmax(0, 1.25fr);

  gap: 100px;
}

.feature-detail__heading {
  max-width: 500px;
}

.feature-detail__heading h2 {
  margin-bottom: 0;
}

.feature-detail__content {
  max-width: 680px;

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

  font-size: 17px;

  line-height: 1.85;
}

.feature-detail__content p {
  margin-bottom: 24px;
}

.feature-detail__statement {
  margin-top: 34px;

  padding: 22px 24px;

  border-left: 5px solid var(--postly-yellow);

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

  color: var(--postly-black);

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

.content-section--dark .feature-detail__heading h2 {
  color: #ffffff;
}

.content-section--dark .feature-detail__content {
  color: #c8c8c8;
}

.content-section--dark .feature-detail__statement {
  background: rgba(255, 255, 255, 0.05);

  color: #ffffff;
}

/* ============================================================
   PROCESS GRID
============================================================ */

.process-grid {
  display: grid;

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

  gap: 18px;
}

.process-card {
  min-height: 285px;

  padding: 32px;

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

  background: #ffffff;

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

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

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

.process-card:hover {
  transform: translateY(-4px);

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

.process-card > span {
  display: block;

  margin-bottom: 42px;

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

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

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.process-card h3 {
  margin-bottom: 16px;
}

.process-card p {
  margin-bottom: 0;

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

  font-size: 15px;

  line-height: 1.75;
}

/* ============================================================
   POSITIONING
============================================================ */

.feature-positioning {
  max-width: 900px;

  text-align: center;
}

.feature-positioning h2 {
  margin-bottom: 28px;
}

.feature-positioning > p:last-child {
  max-width: 760px;

  margin: 0 auto;

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

  font-size: 18px;

  line-height: 1.8;
}

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

.final-cta {
  position: relative;

  overflow: hidden;

  padding: 120px 0;

  background:
    radial-gradient(
      circle at 15% 12%,
      rgba(244, 208, 63, 0.1),
      transparent 25%
    ),
    radial-gradient(
      circle at 90% 85%,
      rgba(0, 145, 234, 0.08),
      transparent 28%
    ),
    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) 58%,
    var(--postly-blue) 58%,
    var(--postly-blue) 82%,
    var(--postly-green) 82%
  );

  content: "";
}

.final-cta__inner {
  position: relative;

  z-index: 2;

  max-width: 860px;

  text-align: center;
}

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

  color: #ffffff;
}

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

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

  color: #cacaca;

  font-size: 18px;

  line-height: 1.8;
}

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

  display: flex;
  align-items: center;
  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;

  color: var(--postly-black);

  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;

  color: var(--postly-black);

  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 {
  color: var(--postly-black);

  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) {
  .features-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-detail {
    grid-template-columns: 1fr;

    gap: 45px;
  }

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

    gap: 50px;
  }
}

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

  .features-hero {
    padding: 90px 0 76px;
  }

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

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

  .features-hero__actions,
  .final-cta__actions {
    flex-direction: column;
  }

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

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

  .features-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .process-card {
    min-height: auto;
  }

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

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

    row-gap: 35px;
  }
}

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

  h2 {
    font-size: 31px;
  }

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