/* ============================================================
   POSTLY — STUDENTS
   public/styling/students.css
============================================================ */

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

  --postly-gray-700: #555555;
  --postly-gray-500: #7c7c7c;
  --postly-gray-300: #d8d8d8;
  --postly-gray-200: #e7e7e7;
  --postly-gray-50: #f9f9f9;

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

  --postly-blue: #0091ea;
  --postly-blue-soft: #edf8ff;

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

  --page-width: 1180px;

  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.08);
}

*,
*::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;
}

.eyebrow,
.button,
.workflow-grid span,
.use-case-steps li::before,
.site-footer__heading {
  font-family:
    "Andale Mono", AndaleMono, ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;
}

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

  margin: 0 auto;
}

.eyebrow {
  margin-bottom: 18px;

  color: var(--postly-green-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;
}

/* 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);
}

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

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

  color: var(--postly-green-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-case-hero {
  position: relative;

  overflow: hidden;

  padding: 128px 0 105px;

  background:
    radial-gradient(
      circle at 84% 18%,
      rgba(16, 185, 129, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at 14% 84%,
      rgba(244, 208, 63, 0.09),
      transparent 25%
    ),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.use-case-hero__inner {
  max-width: 1000px;

  text-align: center;
}

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

.use-case-hero h1 span {
  display: inline;

  background: linear-gradient(
    transparent 72%,
    rgba(16, 185, 129, 0.22) 72%,
    rgba(16, 185, 129, 0.22) 92%,
    transparent 92%
  );
}

.use-case-hero__lead {
  max-width: 810px;

  margin: 0 auto 38px;

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

  font-size: 19px;

  line-height: 1.8;
}

.use-case-hero__actions {
  display: flex;
  justify-content: center;

  gap: 12px;
}

/* SECTIONS */

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

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

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

  background: 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-green) 0%,
    var(--postly-green) 55%,
    var(--postly-yellow) 55%,
    var(--postly-yellow) 82%,
    var(--postly-blue) 82%
  );

  content: "";
}

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

  margin-bottom: 60px;
}

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

/* INTRO */

.use-case-intro {
  display: grid;

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

  gap: 100px;
}

.use-case-intro h2 {
  margin-bottom: 0;
}

.use-case-intro__content {
  max-width: 690px;

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

  font-size: 17px;

  line-height: 1.85;
}

.use-case-intro__content p {
  margin-bottom: 24px;
}

/* WORKFLOW */

.workflow-grid {
  display: grid;

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

  gap: 18px;
}

.workflow-grid article {
  min-height: 260px;

  padding: 30px;

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

  background: #ffffff;

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

.workflow-grid article:nth-child(3n + 2) {
  border-top-color: var(--postly-yellow);
}

.workflow-grid article:nth-child(3n) {
  border-top-color: var(--postly-blue);
}

.workflow-grid article:hover {
  transform: translateY(-4px);

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

.workflow-grid span {
  display: block;

  margin-bottom: 40px;

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

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

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

.workflow-grid p {
  margin-bottom: 0;

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

  font-size: 14px;

  line-height: 1.75;
}

/* SYSTEM */

.use-case-system {
  position: relative;

  z-index: 2;

  max-width: 900px;
}

.use-case-system h2 {
  margin-bottom: 28px;

  color: #ffffff;
}

.use-case-system > p:last-child {
  max-width: 750px;

  color: #c8c8c8;

  font-size: 18px;

  line-height: 1.8;
}

/* STEPS */

.use-case-example {
  max-width: 900px;

  margin: 0 auto;
}

.use-case-steps {
  margin: 0;

  padding: 0;

  list-style: none;

  counter-reset: student-step;

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

.use-case-steps li {
  position: relative;

  min-height: 92px;

  padding: 29px 20px 29px 72px;

  display: flex;
  align-items: center;

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

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

  font-size: 17px;

  counter-increment: student-step;
}

.use-case-steps li::before {
  position: absolute;

  left: 18px;

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

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

  content: "0" counter(student-step);
}

/* FINAL CTA */

.final-cta {
  position: relative;

  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-green), var(--postly-yellow));

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

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

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

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

  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-case-intro {
    grid-template-columns: 1fr;

    gap: 45px;
  }

  .workflow-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-case-hero {
    padding: 90px 0 75px;
  }

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

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

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

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

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

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid article {
    min-height: auto;
  }

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