/* Entry point for your PostCSS build */

/* https://piccalil.li/blog/a-more-modern-css-reset/ */

/* Box sizing rules */

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

/* Prevent font size inflation */

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */

body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd, ul {
  margin-block-end: 0;
  margin-block-start: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */

body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */

h1, h2, h3, h4,
button, input, label {
  line-height: 100%;
}

/* Balance text wrapping on headings */

h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */

/*
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}
*/

/* Make images easier to work with */

img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */

input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */

textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */

:target {
  scroll-margin-block: 5ex;
}

:root {
  --hero-padding-x: 3rem;
  --hero-padding-y: 1rem;
  --h1-font-size: min(150px, calc((100vw - var(--hero-padding-x) * 2) / 8));
  --h1-w-tracking: calc(34 / 150 * var(--h1-font-size)); /* to align with the bottom of W in Within Means heading */
}

.landing {
  font-size: 1.1rem;
}

.content.landing__content {
  padding: calc(3 * var(--hero-padding-y)) calc(var(--hero-padding-x) + var(--h1-w-tracking));
  gap: calc(2rem + 12px);
}

.landing__hero {
  background-color: rgb(29, 65, 112);
  color: white;
  text-decoration: none;

  padding: var(--hero-padding-y) var(--hero-padding-x);
  display: flex;
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
}

.landing__hero h1 {
  font-size: var(--h1-font-size);
  letter-spacing: 5%;
  color: white;
}

.landing__hero p {
  font-family: "IBM Plex Sans", sans-serif;
}

.landing h2 {
  font-size: 2.25rem;
  font-style: italic;
}

.landing__hero p {
  padding-left: var(--h1-w-tracking);
}

.landing__section {
  display: flex;
  flex-direction: row overflow;
  align-items: flex-start;
  gap: 2rem;
  background: white;
}

.landing__section-description {
  max-width: 60ch;
  display: flex;
  flex-flow: column;
  gap: 0.5rem;
  margin-top: -12px; /* to align heading with demo message */
}

.landing__section-description--no-demo {
  max-width: min(80%, 85ch);
}

@media only screen and (max-width: 430px) {
  :root {
    --hero-padding-x: 1rem;
    --hero-padding-y: 1rem;
    --h1-font-size: min(150px, calc((100vw - var(--hero-padding-x) * 2) / 4));
    --h1-w-tracking: 0px;
  }

  .content.landing__content {
    padding: var(--hero-padding-y) var(--hero-padding-x);
  }

  .landing__section-description--no-demo {
    width: 100%;
  }

  .landing__section {
    flex-direction: column;
    gap: 1rem;
  }

  .landing__section:nth-child(even) {
    flex-direction: column;
  }
}

.demo {
  font-family: "IBM Plex Sans", sans-serif;
  min-width: 35ch;
  max-width: 35ch;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.demo__message {
  max-width: 85%;
  background-color: #f7f4f4;
  display: flex;
  flex-flow: column;
  padding: 0.25rem 1rem;
  margin: 0;
  align-self: flex-start;
}

.demo__message--me {
  background-color: #abcbf4;
  align-self: flex-end;
}

.demo__message--service {
  background-color: transparent;
  font-style: italic;
  padding-left: 0;
}

.demo__from {
  display: none;
}

.demo__message--first-of-sender .demo__from {
  display: block;
  padding-top: 0.3rem;
}

.demo__message--service .demo__from,
.demo__message--me .demo__from {
  display: none;
}

.demo__message u {
  -webkit-text-decoration-skip-ink: none;
          text-decoration-skip-ink: none;
  text-underline-offset: 2px;
}

.demo__message code {
  white-space: pre;
  font-size: 0.9em;
}

.demo__from {
  color: #1d4170;
  font-weight: 600;
}

.content.pricing {
  max-width: min(80%, 85ch);
}

.pricing__items {
  display: flex;
  flex-flow: row wrap;
  gap: 1rem;
  padding-top: 1rem;
}

.pricing__item {
  padding: 0.5rem 1rem;
  color: white;
  background-color: #1d4170;
}

.pricing__item span + span:before {
  content: "/ ";
}

.pricing__reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.pricing__reason {
  max-width: 35ch;
}

.pricing__reason h2 {
  font-size: 1.5rem;
  padding-bottom: 0.5rem;
}

.getting_started {
}

.getting_started__wrapper {
  display: flex;
  gap: 1rem;
}

.getting_started__tabs {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  align-self: flex-start;
  position: sticky;
  top: 1rem;
}

.getting_started__tabs > li {
  line-height: 2;
  padding: 0;
}

.getting_started__tabs > li > a {
  text-decoration: none;
  color: inherit;
}

.getting_started__tabs > li > a:active,
.getting_started__tabs > li.active {
  background-color: mediumturquoise;
}

.getting_started__examples {
  max-width: calc(100% - 2rem);
}

.getting_started .demo {
  padding: 0 1rem 1rem 1rem;
}

.getting_started .demo__message--service {
  background-color: mediumturquoise;
  max-width: 100%;
  width: 100%;
  text-align: center;
  border-radius: 0;
}

.getting_started .demo__message--service:first-of-type {
  border-radius: 1rem 1rem 0 0;
}

@media only screen and (max-width: 430px) {
  .getting_started__wrapper {
    flex-direction: column;
  }

  .getting_started__tabs {
    position: relative;
  }
}

.blog {
  min-height: calc(100vh - 10rem);
}

.blog__posts {
  padding: 0;
}

.blog__posts li {
  list-style: none;
}

body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: "IBM Plex Serif", serif;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  height: 100vh;
}

h1 {
  font-family: "IBM Plex Serif", serif;
  font-weight: 600;
}

h2, h3, h4, h5, h6 {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
}

a {
  -webkit-text-decoration-skip-ink: none;
          text-decoration-skip-ink: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  color: #043d88;
  text-decoration-color: #043d88e0;
}

.crossed-out {
  text-decoration: line-through;
}

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

.layout__hero {
  padding: var(--hero-padding-y) var(--hero-padding-x);
  background-color: rgb(29, 65, 112);
  color: white;
  display: flex;
  justify-content: left;
  align-items: center;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 5%;
  text-decoration: none;
}

.content {
  padding: var(--hero-padding-y) var(--hero-padding-x);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}

.content .content {
  padding: 0;
}

.content > * {
  margin: 0;
}

.content h1 + * {
  padding-top: 0.5rem;
}

.upsell,
.upsale {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem 3rem;
  background-color: rgb(29, 65, 112);
  color: white;
  width: -moz-max-content;
  width: max-content;
  max-width: 95%;
}

:is(.upsell,.upsale) h2 {
    font-size: 3rem;
  }

:is(.upsell,.upsale) ul {
    list-style: none;
    padding-inline-start: 0;
  }

:is(.upsell,.upsale) a {
    color: white;
    text-decoration-color: white;
    font-size: 1.5rem;
  }

.upsale--sm {
  gap: 0;
}

.footer {
  display: flex;
  gap: 1rem;
  padding-left: calc(var(--hero-padding-x) + var(--h1-w-tracking));
  padding-bottom: calc(var(--hero-padding-y));
  padding-top: calc(2 * var(--hero-padding-y));
  flex-wrap: wrap;
}

h1 {
  font-size: 4rem;
}

ul {
  list-style: none;
  padding-inline-start: 1rem;
}

li + li {
  padding-top: 0.3rem;
}
