@font-face {
  font-family: "Figtree Pengami";
  src: url("/home/assets/figtree-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #0755e8;
  --navy: #071a39;
  --coral: #ef4c32;
  --coral-dark: #cf351f;
  --paper: #f4f0e6;
  --green: #0b3a24;
  --white: #fffdf8;
  --page-gutter: clamp(1.25rem, 5vw, 5.5rem);
  --focus: #ffd749;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: "Figtree Pengami", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: 44rem;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--blue);
  color: var(--white);
}

.hero__picture {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding: 2rem var(--page-gutter);
}

.wordmark {
  width: max-content;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  font-style: italic;
  line-height: 1;
  text-decoration: none;
}

.nav,
.nav__end {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.75rem);
}

.nav {
  justify-self: start;
}

.site-header > .wordmark {
  justify-self: center;
}

.nav a,
.nav__pricing {
  color: var(--white);
  font-size: 0.95rem;
  text-decoration: none;
  text-underline-offset: 0.4rem;
}

.nav a:hover,
.nav__pricing:hover {
  text-decoration: underline;
}

.nav__end {
  justify-self: end;
}

.hero__copy {
  display: flex;
  position: relative;
  z-index: 1;
  align-items: center;
  flex-direction: column;
  width: min(90%, 62rem);
  margin: clamp(3rem, 6vh, 5rem) auto 0;
  text-align: center;
}

.hero h1 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(2.5rem, 4.6vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero__copy p {
  margin: 1.35rem 0 1.75rem;
  color: #edf4ff;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.5rem;
  border: 2px solid var(--coral);
  border-radius: 4px;
  padding: 0.95rem 1.4rem;
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--coral);
  box-shadow: none;
  transform: translateY(-5px);
}

.button:active {
  transform: translateY(-1px);
  transition-duration: 100ms;
}

.button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.button:disabled:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
}

.button--small {
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
}

.button svg {
  width: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.work {
  position: relative;
  padding: clamp(5rem, 10vw, 10rem) var(--page-gutter);
  background: var(--green) url("/home/assets/grass-work-v1.webp") center top / cover no-repeat;
  color: var(--white);
}

.work__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.7fr);
  align-items: end;
  gap: 4rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.work__header h2 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.work__header p {
  max-width: 40ch;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4rem);
}

.work__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  color: var(--white);
  text-decoration: none;
}

.work__item--wide {
  grid-column: 1 / -1;
  width: 100%;
}

.work__item img {
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  background: #ded9cf;
  box-shadow: 0 18px 42px rgb(7 26 57 / 13%);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.work__item span {
  display: grid;
  gap: 0.3rem;
}

.work__item strong {
  font-size: 1.2rem;
}

.work__item small {
  color: #c9dbc7;
  font-size: 0.95rem;
}

.work__item svg {
  width: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 180ms ease;
}

.work__item:hover img {
  box-shadow: 0 24px 52px rgb(7 26 57 / 19%);
  transform: translateY(-4px);
}

.work__item:hover svg {
  transform: translate(3px, -3px);
}

.pricing {
  padding: clamp(6rem, 11vw, 11rem) var(--page-gutter);
  background: var(--navy);
  color: var(--white);
}

.pricing__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr);
  align-items: end;
  gap: 2rem 5rem;
  margin-bottom: clamp(3.5rem, 7vw, 7rem);
}

.pricing__header > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #ff7b63;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing__header h2 {
  margin: 0;
  font-size: clamp(3.3rem, 7vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.pricing__header > span {
  max-width: 38ch;
  color: #cddbf3;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.55;
}

.details h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

.plan {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  min-height: 43rem;
  border: 1px solid rgb(255 253 248 / 26%);
  border-radius: 12px;
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
  background: #0a2147;
  overflow: hidden;
  transition:
    border-color 320ms ease,
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.plan + .plan {
  border-left: 1px solid rgb(255 253 248 / 26%);
}

.plan--hosted {
  background: var(--blue);
}

.plan__graphic {
  display: grid;
  min-height: 10rem;
  place-items: center;
  border-radius: 7px;
  background: #0e2d5d;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.plan--hosted .plan__graphic {
  background: rgb(7 26 57 / 22%);
}

.plan__graphic svg {
  width: min(100%, 22rem);
  fill: none;
  stroke: #d8e6ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform-origin: center;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .plan:hover {
    border-color: rgb(255 253 248 / 58%);
    transform: translateY(-7px);
  }

  .plan:hover .plan__graphic {
    transform: scale(1.012);
  }

  .plan:hover .plan__graphic svg {
    transform: scale(1.035);
  }
}

.plan__graphic .plan__spark {
  fill: var(--coral);
  stroke: var(--coral);
}

.plan__heading > span {
  display: block;
  margin-bottom: 0.45rem;
  color: #ff8c77;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.plan h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 450;
  letter-spacing: -0.035em;
}

.plan__description {
  max-width: 37ch;
  margin: 0.65rem 0 0;
  color: #cddbf3;
  line-height: 1.5;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 0;
  color: #cddbf3;
}

.price span {
  color: var(--white);
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.price small {
  display: block;
  margin-top: 0.35rem;
  color: #cddbf3;
  font-size: 0.92rem;
}

.price--hosted {
  align-items: center;
}

.price--hosted p {
  margin: 0;
}

.price--hosted b {
  color: #abc7ff;
  font-size: 1.8rem;
  font-weight: 400;
}

.price--hosted p:last-child span {
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
}

.plan ul {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  color: #e4ebf8;
  list-style: none;
}

.plan li {
  display: flex;
  gap: 0.65rem;
}

.plan li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.38rem;
  border-radius: 50%;
  background: var(--coral);
}

.checkout-button {
  justify-self: stretch;
  min-height: 4.5rem;
  padding-inline: 1.75rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.checkout-note {
  margin: 1.25rem 0 0;
  color: #aebed8;
  font-size: 0.9rem;
  text-align: center;
}

.checkout-note[data-state="error"] {
  color: #ff9582;
}

.details {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: 5rem;
  padding: clamp(5rem, 10vw, 10rem) var(--page-gutter);
  background: var(--paper);
}

.details ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgb(7 26 57 / 35%);
  list-style: none;
}

.details li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgb(7 26 57 / 35%);
  line-height: 1.5;
}

.details li span {
  color: var(--coral-dark);
  font-weight: 700;
}

.details li p {
  max-width: 52ch;
  margin: 0;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem var(--page-gutter);
  background: var(--navy);
  color: var(--white);
}

footer p {
  margin: 0;
}

footer > a:last-child {
  text-underline-offset: 0.3rem;
}

.wordmark--dark {
  color: var(--white);
}

@media (max-width: 760px) {
  .hero {
    height: auto;
    min-height: 50rem;
  }

  .hero__art {
    object-position: 57% bottom;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding-top: 1.4rem;
  }

  .nav,
  .nav__pricing {
    display: none;
  }

  .hero__copy {
    align-items: flex-start;
    width: auto;
    margin: 5.5rem var(--page-gutter) 0;
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 13vw, 4.1rem);
  }

  .work__header,
  .plans,
  .pricing__header,
  .details {
    grid-template-columns: 1fr;
  }

  .pricing__header > p {
    grid-column: auto;
  }

  .details {
    gap: 2.5rem;
  }

  .work__header {
    gap: 1.5rem;
  }

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

  .work__item--wide {
    grid-column: auto;
    width: 100%;
  }

  .plan {
    min-height: 40rem;
    padding: 1.5rem;
  }

  .plan + .plan {
    border-left: 1px solid rgb(255 253 248 / 26%);
  }

  .plan--hosted {
    margin: 0;
  }

  .price--hosted {
    flex-wrap: wrap;
  }

  .price span {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@supports (animation-timeline: view()) {
  .hero__art {
    animation: landscape-rise linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 100%;
    transform-origin: center bottom;
  }

  @keyframes landscape-rise {
    to {
      transform: translateY(6%) scale(1.035);
      filter: saturate(0.92);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }

  .button:active {
    transform: none;
  }

  .plan,
  .plan__graphic,
  .plan__graphic svg {
    transition: none;
  }

  .plan:hover,
  .plan:hover .plan__graphic,
  .plan:hover .plan__graphic svg {
    transform: none;
  }

  .hero__art {
    animation: none;
  }
}
