/* Hold Your Level landing page */

:root {
  --bg: #F6F2EA;
  --surface: #FFFDF8;
  --ink: #17150F;
  --muted: #5A544A;
  --hairline: #E2DACB;
  --saffron: #E0A21B;
  --saffron-deep: #C98D0C;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --section-y: 112px;
  --gutter: 24px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
}

h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}

a:hover {
  text-decoration-color: var(--saffron-deep);
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.small {
  font-size: 14px;
  line-height: 1.5;
}

.muted {
  color: var(--muted);
}

.prose {
  max-width: 62ch;
}

.prose > * + * {
  margin-top: 24px;
}

/* A heading's first sentence on a line of its own, at every width */
.h2-line {
  display: block;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
}

.wordmark::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--ink);
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 16px;
  font-weight: 500;
}

.site-nav a {
  color: var(--muted);
  text-decoration-color: transparent;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* Hero */

.hero {
  padding: 96px 0 40px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 64px;
  align-items: start;
}

.hero__text > * + * {
  margin-top: 24px;
}

.hero h1 {
  margin-top: 16px;
}

.lead {
  max-width: 62ch;
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
}

.hero__action {
  margin-top: 32px;
}

.hero__action .small {
  margin-top: 12px;
}

/* Button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 6px;
  background: var(--saffron);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.btn:hover {
  background: var(--saffron-deep);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Mock-up */

.mock {
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  box-shadow: 0 24px 60px -24px rgba(23, 21, 15, .35);
  overflow: hidden;
}

.mock__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(246, 242, 234, .14);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock__title {
  color: rgba(246, 242, 234, .72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock__timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.mock__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--saffron);
}

.mock__body {
  padding: 24px 16px 24px;
}

.mock__board {
  position: relative;
  color: rgba(246, 242, 234, .78);
}

.mock__board svg {
  display: block;
  width: 100%;
  height: auto;
}

.mock__node {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.mock__bubble {
  margin-top: 24px;
  text-wrap: balance;
  padding: 16px;
  border-radius: 10px;
  background: rgba(246, 242, 234, .08);
  border: 1px solid rgba(246, 242, 234, .14);
  font-size: 16px;
  line-height: 1.5;
}

.mock__who {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, .65);
}

.mock__bubble .mock__who {
  margin-bottom: 8px;
}

.mock__you {
  margin-top: 16px;
  padding: 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(246, 242, 234, .68);
}

.mock__you .mock__who {
  margin-right: 8px;
}

.mock__caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--bg);
  animation: blink 1s steps(1) infinite;
}

/* Sections */

.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--hairline);
}

.section--surface {
  background: var(--surface);
}

.section h2 + .timeline {
  margin-top: 48px;
}

/* Timeline */

.timeline {
  list-style: none;
  padding: 0;
  max-width: 62ch;
}

.timeline__step {
  position: relative;
  padding: 0 0 48px 64px;
}

.timeline__step:last-child {
  padding-bottom: 0;
}

.timeline__step::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 28px;
  bottom: -8px;
  border-left: 1px solid var(--hairline);
}

.timeline__step:last-child::before {
  display: none;
}

/* A small ink square on the line, level with each step's heading */
.timeline__mark {
  position: absolute;
  left: 11px;
  top: 10px;
  width: 9px;
  height: 9px;
  background: var(--ink);
}

.timeline__step h3 {
  padding-top: 2px;
}

.timeline__step p {
  margin-top: 8px;
  color: var(--muted);
}

/* Custom list marks */

.marks {
  list-style: none;
  padding: 0;
}

.marks li {
  position: relative;
  padding-left: 28px;
}

.marks li + li {
  margin-top: 12px;
}

.marks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 14px;
  border-top: 2px solid var(--ink);
}

/* Comparison */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.compare__col {
  padding: 32px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
}

.compare__col h3 {
  margin-bottom: 24px;
}

.compare__col:not(.compare__col--ours) {
  color: var(--muted);
}

.compare__col:not(.compare__col--ours) h3 {
  color: var(--ink);
}

.compare__col:not(.compare__col--ours) .marks li::before {
  border-top-color: var(--muted);
  border-top-width: 1px;
}

.compare__col--ours {
  background: var(--surface);
  border-left: 3px solid var(--ink);
  border-radius: 0 10px 10px 0;
}

/* Price */

.price-layout {
  display: grid;
  grid-template-columns: 1fr minmax(0, 560px);
  gap: 64px;
  align-items: start;
}

.price {
  max-width: 560px;
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
}

.price__amount {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 12px 0 32px;
}

.price__figure {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price__note {
  color: var(--muted);
}

.price__more {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 16px;
}

/* Footer */

.site-footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--hairline);
}

.wordmark--footer {
  margin-bottom: 12px;
}

/* Motion */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero__item {
  animation: fade-up 400ms ease-out both;
}

.hero__text .hero__item:nth-child(2) { animation-delay: 80ms; }
.hero__text .hero__item:nth-child(3) { animation-delay: 160ms; }
.hero__text .hero__item:nth-child(4) { animation-delay: 240ms; }
.mock.hero__item { animation-delay: 320ms; }

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

  .hero__item,
  .mock__caret {
    animation: none;
  }

  .btn,
  .btn:hover,
  .btn:active {
    transition: none;
    transform: none;
  }
}

/* Phone */

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .price-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-y: 72px;
    --gutter: 20px;
  }

  body {
    font-size: 17px;
  }

  .site-header__inner {
    min-height: 60px;
  }

  .wordmark {
    font-size: 20px;
  }

  .site-nav {
    gap: 16px;
    font-size: 15px;
  }

  .hero {
    padding: 40px 0 var(--section-y);
  }


  .hero__text > * + * {
    margin-top: 20px;
  }

  .lead {
    font-size: 17px;
  }

  .hero__action {
    margin-top: 28px;
  }

  .btn {
    display: flex;
    width: 100%;
  }

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

  .compare__col {
    padding: 24px;
  }

  .price {
    padding: 32px 24px;
  }
}
