/* ============================================================
   POSTLY — USE CASES
   public/styling/use-cases.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-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;

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

a {
  color: inherit;

  text-decoration: none;
}

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

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

.eyebrow,
.button,
.use-case-card__label,
.use-cases-system__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;
}

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

.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: 23px;

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

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

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

  background: var(--postly-yellow);

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

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

  background: var(--postly-black);

  color: #ffffff;
}

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

  background: #ffffff;
}

.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
============================================================ */

.use-cases-hero {
  position: relative;

  overflow: hidden;

  padding: 128px 0 105px;

  background:
    radial-gradient(
      circle at 85% 18%,
      rgba(244, 208, 63, 0.18),
      transparent 27%
    ),
    radial-gradient(
      circle at 15% 85%,
      rgba(16, 185, 129, 0.055),
      transparent 25%
    ),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.use-cases-hero__inner {
  position: relative;

  z-index: 2;

  max-width: 990px;

  text-align: center;
}

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

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

.use-cases-hero__lead {
  max-width: 830px;

  margin: 0 auto 38px;

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

  font-size: 19px;

  line-height: 1.8;
}

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

  gap: 12px;
}

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

.content-section {
  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 88% 14%,
      rgba(0, 145, 234, 0.09),
      transparent 28%
    ),
    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 {
  max-width: 780px;

  margin-bottom: 62px;
}

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

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

  text-align: center;
}

/* ============================================================
   USE CASE CARDS
============================================================ */

.use-case-grid {
  display: grid;

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

  gap: 18px;
}

.use-case-card {
  position: relative;

  overflow: hidden;

  min-height: 390px;

  padding: 39px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

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

  background: #ffffff;

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

.use-case-card::before {
  position: absolute;

  top: 0;
  bottom: 0;
  left: 0;

  width: 5px;

  content: "";
}

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

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

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

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

  border-color: #cccccc;

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

.use-case-card__label {
  margin-bottom: 48px;

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

  letter-spacing: 0.07em;

  text-transform: uppercase;
}

.use-case-card--yellow .use-case-card__label {
  color: var(--postly-yellow-dark);
}

.use-case-card--blue .use-case-card__label {
  color: var(--postly-blue);
}

.use-case-card--green .use-case-card__label {
  color: var(--postly-green-dark);
}

.use-case-card h3 {
  max-width: 500px;

  margin-bottom: 18px;
}

.use-case-card p:not(.use-case-card__label) {
  max-width: 520px;

  margin-bottom: 0;

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

  font-size: 15px;

  line-height: 1.75;
}

.use-case-card__link {
  width: fit-content;

  margin-top: 38px;

  padding-bottom: 3px;

  border-bottom: 3px solid transparent;

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

.use-case-card--yellow:hover .use-case-card__link {
  border-color: var(--postly-yellow);
}

.use-case-card--blue:hover .use-case-card__link {
  border-color: var(--postly-blue);
}

.use-case-card--green:hover .use-case-card__link {
  border-color: var(--postly-green);
}

/* ============================================================
   SYSTEM
============================================================ */

.use-cases-system .section-heading {
  margin-bottom: 50px;
}

.use-cases-system__grid {
  display: grid;

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

  gap: 1px;

  overflow: hidden;

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

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

.use-cases-system__grid article {
  min-height: 190px;

  padding: 28px;

  background: #ffffff;
}

.use-cases-system__grid span {
  display: block;

  margin-bottom: 28px;

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

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

  text-transform: uppercase;
}

.use-cases-system__grid article:nth-child(3n + 2) span {
  color: var(--postly-blue);
}

.use-cases-system__grid article:nth-child(3n) span {
  color: var(--postly-green-dark);
}

.use-cases-system__grid p {
  margin-bottom: 0;

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

  font-size: 15px;

  line-height: 1.7;
}

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

.use-cases-positioning {
  position: relative;

  z-index: 2;

  max-width: 900px;
}

.use-cases-positioning h2 {
  margin-bottom: 30px;

  color: #ffffff;
}

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

  color: #c8c8c8;

  font-size: 18px;

  line-height: 1.85;
}

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

.final-cta {
  position: relative;

  overflow: hidden;

  padding: 120px 0;

  background: 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 {
  max-width: 850px;

  text-align: center;
}

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

  color: #ffffff;
}

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

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

  color: #c9c9c9;

  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) {
  .use-cases-system__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

    gap: 50px;
  }
}

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

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

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

  .use-cases-hero__lead {
    font-size: 16px;
  }

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

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

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

  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .use-case-card {
    min-height: auto;
  }

  .use-cases-system__grid {
    grid-template-columns: 1fr;
  }

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

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