/* ============================================================
   ABOUT + PRICING PAGE
   ============================================================ */

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: center;
}

.portrait {
  height: 670px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.portrait span {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: #07111d;
  color: white;
  padding: 10px;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.about-story > div > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.cert-row {
  display: flex;
  margin-top: 35px;
  border-block: 1px solid var(--line);
  padding: 20px 0;
}

.cert-row span {
  flex: 1;
  font-size: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.cert-row b {
  color: var(--text);
  font-size: 11px;
}

.values {
  background: var(--ink2);
  color: white;
  padding: 90px 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 60px;
}

.value-grid > div {
  padding: 0 50px;
  border-left: 1px solid #263542;
}

.value-grid > div:first-child {
  padding-left: 0;
  border: 0;
}

.value-grid p {
  color: #8799a8;
}

.pricing-head {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  align-items: end;
  gap: 7vw;
}

.pricing-head > p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 70px;
  align-items: stretch;
}

.pricing-grid article {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 35px;
  display: flex;
  flex-direction: column;
}

.pricing-grid article.featured {
  background: #0a1b29;
  color: white;
  border-color: #2099db;
  transform: translateY(-15px);
  box-shadow: 0 15px 50px rgba(0, 100, 160, 0.17);
}

.pricing-grid article > span {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--blue);
}

.pricing-grid h3 {
  font-size: 28px;
  margin: 15px 0 28px;
}

.pricing-grid article > p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.pricing-grid ul {
  flex: 1;
}

.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  margin-top: 25px;
}

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

  .pricing-grid article.featured {
    transform: none;
  }
}

@media (max-width: 600px) {
  .portrait {
    height: 470px;
  }

  .cert-row {
    gap: 10px;
  }

  .pricing-grid article {
    padding: 28px;
  }
}

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

@media (min-width: 0rem) {

  .about-hero {
    text-align: center;
  }

  .about-hero .eyebrow {
    justify-content: center;
  }

  .about-hero p {
    margin-inline: auto;
  }
  .page-hero.compact {
    min-height: 22rem;

    padding-top: 7rem;
    padding-bottom: 3rem;
  }
    .about-story {
    grid-template-columns: 1fr;
    gap: 3rem;

    text-align: center;
  }

  .about-story > div:last-child {
    display: flex;

    flex-direction: column;
    align-items: center;
  }

  .about-story .eyebrow {
    justify-content: center;
  }

  .about-story > div:last-child > p:not(.eyebrow) {
    max-width: 38rem;
    margin-inline: auto;
  }

  .cert-row {
    width: 100%;
  }

  .cert-row span {
    text-align: center;
  }

  .portrait > span {
    right: auto;
    left: 50%;

    width: max-content;
    max-width: calc(100% - 2.5rem);

    text-align: center;

    transform: translateX(-50%);
  }
}

@media (min-width: 48rem) {
  .about-hero {
    text-align: left;
  }

  .about-hero .eyebrow {
    justify-content: flex-start;
  }

  .about-hero p {
    margin-inline: 0;
  }

  .about-hero .wrap {
    align-items: flex-start;
  }

  .about-story {
    text-align: left;
  }

  .about-story > div:last-child {
    display: block;
  }

  .about-story .eyebrow {
    justify-content: flex-start;
  }

  .about-story > div:last-child > p:not(.eyebrow) {
    max-width: none;
    margin-inline: 0;
  }

  .cert-row span {
    text-align: left;
  }

  .portrait > span {
    right: auto;
    left: 1.25rem;

    width: auto;
    max-width: none;

    text-align: left;

    transform: none;
  }
}

/* ============================================================
  OPERATING PRINCIPLES
============================================================ */

@media (min-width: 0rem) {
  .values {
    padding: 5rem 0;
  }

  .values .eyebrow {
    justify-content: center;

    text-align: center;
  }

  .value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;

    margin-top: 3rem;
  }

  .value-grid > div,
  .value-grid > div:first-child {
    position: relative;

    padding: 2rem 1.5rem;

    text-align: center;

    background:
      linear-gradient(
        145deg,
        rgba(24, 168, 255, 0.08),
        rgba(255, 255, 255, 0.015)
      ),
      rgba(9, 20, 33, 0.8);

    border: 1px solid rgba(131, 220, 255, 0.14);

    box-shadow:
      0 0.875rem 2rem rgba(0, 0, 0, 0.2),
      inset 0 0 1.5rem rgba(24, 168, 255, 0.025);

    overflow: hidden;
  }

  /* Illuminated top edge */
  .value-grid > div::after {
    content: "";
    position: absolute;

    top: 0;
    left: 50%;

    width: 4rem;
    height: 2px;

    background: linear-gradient(
      90deg,
      transparent,
      var(--cyan),
      transparent
    );

    box-shadow: 0 0 0.75rem rgba(24, 168, 255, 0.45);

    transform: translateX(-50%);
  }

  .value-grid > div > span {
    display: inline-flex;
    width: 2.5rem;
    height: 2rem;

    align-items: center;
    justify-content: center;

    color: var(--cyan);
    background: rgba(24, 168, 255, 0.1);

    border: 1px solid rgba(131, 220, 255, 0.25);

    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
  }

  .value-grid h3 {
    margin: 1.5rem 0 0.75rem;

    color: white;

    font-size: 1.75rem;
  }

  .value-grid p {
    max-width: 24rem;
    margin: 0 auto;

    color: #91a3b1;

    font-size: 0.875rem;
    line-height: 1.7;
  }

  @media (hover: hover) {
    .value-grid > div {
      transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    }

    .value-grid > div:hover {
      background:
        linear-gradient(
          145deg,
          rgba(24, 168, 255, 0.13),
          rgba(255, 255, 255, 0.025)
        ),
        rgba(9, 20, 33, 0.92);

      border-color: rgba(131, 220, 255, 0.4);

      box-shadow:
        0 1.125rem 2.5rem rgba(0, 0, 0, 0.28),
        0 0 1.5rem rgba(24, 168, 255, 0.1);
    }
  }
}

@media (min-width: 48rem) {
  .values {
    padding: 5.625rem 0;
  }

  .values .eyebrow {
    justify-content: flex-start;

    text-align: left;
  }

  .value-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;

    margin-top: 3.75rem;
  }

  .value-grid > div,
  .value-grid > div:first-child {
    padding: 0 3.125rem;

    text-align: left;

    background: transparent;

    border: 0;
    border-left: 1px solid #263542;

    box-shadow: none;
  }

  .value-grid > div:first-child {
    padding-left: 0;

    border-left: 0;
  }

  .value-grid > div::after {
    display: none;
  }

  .value-grid p {
    margin-inline: 0;
  }

  .value-grid > div:hover {
    background: transparent;

    border-color: #263542;

    box-shadow: none;
  }
}

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

@media (min-width: 0rem) {
  .pricing {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .pricing-head {
    grid-template-columns: 1fr;
    gap: 1.5rem;

    text-align: center;
  }

  .pricing-head .eyebrow {
    justify-content: center;
  }

  .pricing-head > p {
    max-width: 34rem;
    margin: 0 auto;

    line-height: 1.7;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;

    margin-top: 3rem;
  }

  .pricing-grid article {
    position: relative;

    padding: 2rem 1.5rem;

    text-align: center;

    background:
      linear-gradient(
        145deg,
        rgba(24, 168, 255, 0.035),
        transparent 45%
      ),
      var(--surface);

    border: 1px solid var(--line);

    box-shadow:
      0 0.875rem 2rem rgba(0, 0, 0, 0.08),
      inset 0 0 1.5rem rgba(24, 168, 255, 0.02);

    overflow: hidden;
  }

  .pricing-grid article > span {
    display: inline-flex;
    min-height: 1.75rem;
    padding-inline: 0.75rem;

    align-items: center;
    justify-content: center;

    color: var(--blue);
    background: rgba(24, 168, 255, 0.08);

    border: 1px solid rgba(24, 168, 255, 0.2);

    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.14em;
  }

  .pricing-grid h3 {
    margin: 1.25rem 0 1.5rem;

    font-size: 2rem;
  }

  .price {
    justify-content: center;
  }

  .price small {
    padding-top: 0.5rem;
  }

  .price strong {
    font-size: 3rem;
    line-height: 1;
  }

  .pricing-grid article > p {
    max-width: 28rem;
    margin: 1.5rem auto 0;

    font-size: 0.875rem;
    line-height: 1.7;
  }

  .pricing-grid ul {
    margin: 1.75rem 0;

    text-align: left;
  }

  .pricing-grid li {
    padding: 0.75rem 0;

    line-height: 1.5;
  }

  .pricing-grid .btn {
    width: 100%;
  }

  .pricing-note {
    max-width: 34rem;
    margin: 2rem auto 0;

    line-height: 1.6;
  }

  .pricing-grid article.featured {
    background:
      radial-gradient(
        circle at 50% 0,
        rgba(24, 168, 255, 0.18),
        transparent 42%
      ),
      #0a1b29;

    border-color: rgba(131, 220, 255, 0.55);

    box-shadow:
      0 1.125rem 2.75rem rgba(0, 0, 0, 0.22),
      0 0 1.75rem rgba(24, 168, 255, 0.14),
      inset 0 0 2rem rgba(24, 168, 255, 0.035);

    transform: none;
  }

  .pricing-grid article.featured::before {
    content: "";
    position: absolute;

    top: 0;
    right: 15%;
    left: 15%;

    height: 2px;

    background: linear-gradient(
      90deg,
      transparent,
      var(--cyan),
      transparent
    );

    box-shadow: 0 0 0.875rem rgba(131, 220, 255, 0.65);
  }

  .pricing-grid article.featured > span {
    color: var(--cyan);
    background: rgba(24, 168, 255, 0.14);

    border-color: rgba(131, 220, 255, 0.35);
  }

  .pricing-grid article.featured h3,
  .pricing-grid article.featured .price strong {
    color: white;
  }

  .pricing-grid article.featured > p,
  .pricing-grid article.featured li {
    color: #a7b7c3;
  }

  html[data-theme="dark"] .pricing-grid article:not(.featured) {
    background:
      linear-gradient(
        145deg,
        rgba(24, 168, 255, 0.06),
        transparent 45%
      ),
      #0d1722;

    border-color: rgba(131, 220, 255, 0.14);

    box-shadow:
      0 0.875rem 2rem rgba(0, 0, 0, 0.22),
      inset 0 0 1.5rem rgba(24, 168, 255, 0.02);
  }
}

@media (min-width: 64rem) {
  .pricing-head {
    grid-template-columns: 1fr 0.7fr;
    gap: 7vw;

    text-align: left;
  }

  .pricing-head .eyebrow {
    justify-content: flex-start;
  }

  .pricing-head > p {
    max-width: none;
    margin: 0;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;

    margin-top: 4.375rem;
  }

  .pricing-grid article {
    padding: 2.1875rem;

    text-align: left;
  }

  .pricing-grid article.featured {
    transform: translateY(-0.9375rem);
  }

  .price {
    justify-content: flex-start;
  }

  .pricing-grid article > p {
    margin-inline: 0;
  }

  .pricing-grid .btn {
    width: auto;
  }
}