@font-face { font-family: "Lato"; font-weight: 300; font-display: swap; src: url("fonts/lato-300.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 300; font-style: italic; font-display: swap; src: url("fonts/lato-300-italic.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url("fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url("fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-display: swap; src: url("fonts/lato-900.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("fonts/inter-800.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 900; font-display: swap; src: url("fonts/inter-900.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url("fonts/inter-tight-600.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 900; font-display: swap; src: url("fonts/inter-tight-900.woff2") format("woff2"); }
@font-face { font-family: "Fragment Mono"; font-weight: 400; font-display: swap; src: url("fonts/fragment-mono-400.woff2") format("woff2"); }
@font-face { font-family: "Permanent Marker"; font-weight: 400; font-display: swap; src: url("fonts/permanent-marker-400.woff2") format("woff2"); }

:root {
  --font-text: "Lato", sans-serif;
  --font-ui: "Inter", sans-serif;
  --font-display: "Inter Tight", sans-serif;
  --font-code: "Fragment Mono", monospace;
  --color-page: rgb(249, 250, 251);
  --color-card: rgb(255, 255, 255);
  --color-ink: rgb(36, 42, 47);
  --color-brand: rgb(40, 86, 224);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-page);
}

h1, h2, h3, h4, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; }

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  width: 100%;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 33px 14px 24px;
  background: rgb(250, 251, 255);
}

.nav-logo {
  font: 800 17px/1.2 var(--font-ui);
  background: linear-gradient(304deg, rgb(59, 102, 212), rgb(105, 76, 207));
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font: 700 14px/1.2 var(--font-ui);
  color: var(--color-ink);
}

.nav-link-storybook { color: rgb(219, 92, 135); }
.nav-link-figma { gap: 6px; }

@media (max-width: 809.98px) {
  .page-content { gap: 30px; }
  .nav { display: none; }
}

/* Entry animations, matched to the Framer site: a spring (stiffness 400, damping 30) or a 0.3s tween. */
:root {
  --ease-spring: linear(0, 0.097, 0.298, 0.514, 0.7, 0.839, 0.933, 0.989, 1.017, 1.027, 1.028, 1.023, 1.017, 1.011, 1.006, 1.003, 1.001, 1);
  --ease-tween: cubic-bezier(0.44, 0, 0.56, 1);
  --ease-tween-out: cubic-bezier(0.44, 0, 0.28, 1);
}

[data-appear] {
  transition-property: opacity, translate;
  transition-duration: 0.43s;
  transition-timing-function: var(--ease-spring);
}

[data-appear]:not(.is-shown) { opacity: 0.001; }
[data-appear^="rise"]:not(.is-shown) { translate: 0 150px; }
[data-appear="fade"], [data-appear="rise-quick"] { transition-duration: 0.3s; transition-timing-function: var(--ease-tween); }
[data-appear="rise-quick"] { transition-timing-function: var(--ease-tween-out); }

@media (prefers-reduced-motion: reduce) {
  [data-appear] { transition: none; }
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 29px;
  width: 100%;
  /* The content row is capped at 1290px including its 40px side padding. */
  padding: 200px max(40px, calc(50% - 605px)) 570px;
  background: linear-gradient(rgb(39, 87, 216), rgb(91, 34, 161));
  overflow: hidden;
}

/* Drawn over the component strip, so it can't be a real border. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  border-bottom: 1px solid rgb(218, 222, 227);
}

.hero-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  min-width: 340px;
  color: rgb(255, 255, 255);
}

.hero-callout {
  display: none;
  padding: 10px 18px;
  border-radius: 79px;
  background: rgb(61, 88, 224);
  box-shadow: inset 0 0 0 1px rgba(191, 207, 255, 0.44);
  font: 500 14px/1 var(--font-ui);
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 20px/1 var(--font-text);
}

.hero-badge::before {
  content: "";
  width: 20px;
  height: 29px;
  background: url("images/hero-award.svg");
}

.hero-title {
  max-width: 480px;
  font: 800 51px/1.1 var(--font-ui);
}

.hero-subtitle {
  max-width: 480px;
  margin-top: 1px;
  font: 24px/1.5 var(--font-text);
  letter-spacing: -0.5px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 27px;
  border-radius: 10px;
  background: rgb(255, 255, 255);
  font: 600 14px/1.2 var(--font-ui);
  color: rgb(10, 10, 11);
  /* Live drops back on a looser spring (stiffness 500, damping 25) than it lifts. */
  transition: translate 0.5s linear(0, 0.084, 0.277, 0.505, 0.721, 0.895, 1.016, 1.088, 1.117, 1.117, 1.099, 1.073, 1.045, 1.022, 1.004, 0.993, 0.987, 0.986, 0.987, 0.99, 0.993, 0.996, 0.999, 1, 1.001, 1);
}

.hero-button:hover {
  translate: 0 -3px;
  transition-duration: 0.43s;
  transition-timing-function: var(--ease-spring);
}

.hero-code {
  width: 640px;
  margin: 0;
  padding: 30px 32px 30px 34px;
  border: 4px solid rgb(107, 107, 227);
  border-radius: 12px;
  background: rgb(250, 250, 250);
  font: 14px/21px var(--font-code);
  color: rgb(102, 102, 102);
  overflow: auto;
}

.hero-code-comment, .hero-code-punctuation { color: rgb(187, 187, 187); }
.hero-code-keyword { color: rgb(0, 153, 255); }
.hero-code-string { color: rgb(136, 85, 255); }

@media (prefers-color-scheme: dark) {
  .hero-code { background: rgb(22, 24, 32); color: rgb(238, 238, 238); }
  .hero-code-comment { color: rgb(102, 102, 102); }
  .hero-code-punctuation { color: rgb(153, 153, 153); }
  .hero-code-keyword { color: rgb(0, 187, 255); }
  .hero-code-string { color: rgb(187, 136, 255); }
}

.hero-components {
  position: absolute;
  bottom: -30px;
  left: calc(50% - 1280px);
  width: 2560px;
  height: auto;
  aspect-ratio: 5.4818;
  object-fit: contain;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  padding: 0 20px;
  font: 600 14px/21px var(--font-ui);
  color: var(--color-brand);
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-features li::before {
  content: "";
  width: 22px;
  height: 22px;
  background: url("images/hero-check.svg");
}

@media (max-width: 1279.98px) {
  .hero {
    flex-direction: column;
    padding-top: 124px;
  }

  .hero-intro {
    align-items: center;
    text-align: center;
  }

  .hero-title { font-size: 39px; line-height: 1.3; }
  .hero-subtitle { font-size: 20px; letter-spacing: 0; }
}

@media (min-width: 810px) and (max-width: 1279.98px) {
  .hero-features {
    gap: 15px;
    max-width: 574px;
  }
}

@media (max-width: 809.98px) {
  .hero { padding-top: 35px; padding-bottom: 410px; }
  .hero-callout { display: block; }
  .hero-title { font-size: 33px; line-height: 1.1; }
  .hero-subtitle { font-size: 17px; }
  .hero-code { width: 100%; }

  .hero-components {
    bottom: 0;
    left: -654px;
    width: calc(100% + 1309px);
    /* Keeps the strip at least 310px tall on narrow phones, like live. */
    min-width: calc(310px * 5.4818);
  }
}

@media (min-width: 2225px) {
  .hero-components {
    bottom: -110px;
    left: -2px;
    width: calc(100% + 2px);
    height: 540px;
    object-fit: cover;
  }
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1280px;
  padding: 90px 80px 80px;
  border-radius: 16px;
  outline: 1px solid rgb(237, 237, 237);
  outline-offset: -1px;
  background: var(--color-card);
  text-align: center;
}

/* Framer sets text in pre-wrap, which keeps the trailing space of each wrapped line inside the text box. */
.intro-title, .intro-lead { white-space: pre-wrap; }

.intro::before {
  content: "";
  width: 53px;
  height: 46px;
  background: url("images/intro-heart.svg");
}

.intro-title {
  max-width: 50%;
  font: 900 60px/1.1 var(--font-ui);
  letter-spacing: -0.04em;
  color: rgb(10, 10, 11);
}

.intro-lead {
  max-width: 780px;
  font: 24px/1.5 var(--font-text);
  letter-spacing: -0.5px;
  color: rgb(136, 136, 136);
}

.intro-tweets {
  display: flex;
  align-items: flex-start;
  gap: 65px;
  margin-top: 54px; /* 78px below the lead, less the 24px flex gap */
}

.intro-tweet { border: 0; }

.intro-tweet-frontendplanet {
  border-radius: 18px;
  outline: 1px solid rgb(207, 217, 222);
  outline-offset: -1px;
}

@media (max-width: 1279.98px) {
  .intro-title, .intro-lead { max-width: none; }

  .intro-tweets {
    flex-direction: column;
    gap: 50px;
    padding: 40px;
  }
}

@media (max-width: 809.98px) {
  .intro {
    align-items: flex-start;
    gap: 19px;
    padding-inline: 40px;
    text-align: left;
  }

  .intro-title { font-size: 35px; line-height: 1.3; }

  .intro-tweets {
    align-self: center;
    gap: 47px;
    margin-top: 59px;
    padding: 40px 20px;
  }

  .intro-tweet-frontendplanet { width: 348px; height: 232px; }
  .intro-tweet-figma { width: 346px; height: 362px; }
}

.production {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px 20px;
  width: 100%;
  max-width: 1280px;
  margin-top: 120px; /* the live cards sit 220px apart; the page gap gives 100px */
  padding: 70px 60px 60px;
  border-radius: 16px;
  outline: 1px solid rgb(237, 237, 237);
  outline-offset: -1px;
  background: var(--color-card);
}

.production-intro {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 400px 1fr;
  column-gap: 30px;
  padding: 0 20px;
}

.production-heading { grid-row: span 2; }

/* Framer sets text in pre-wrap, which keeps the trailing space of each wrapped line inside the text box. */
.production-eyebrow, .production-title, .production-text { white-space: pre-wrap; }

.production-eyebrow {
  margin-bottom: 12px;
  font: 600 18px/1.2 var(--font-display);
  color: rgb(82, 170, 95);
}

.production-title {
  font: 900 41px/1.2 var(--font-display);
  color: rgb(10, 10, 11);
}

.production-text {
  font: 21px/1.5 var(--font-text);
  letter-spacing: -0.5px;
  color: rgb(110, 110, 110);
}

.production-text + .production-text { margin-top: 33px; }

.production-shot {
  width: 100%;
  height: 696px;
  border-radius: 8px;
  background: rgb(247, 247, 247);
  object-fit: none;
}

.production-shot-figma { object-position: right -1044px bottom -449px; }
.production-shot-storybook { object-position: right -1077px bottom -450px; }

@media (max-width: 1279.98px) {
  .production {
    row-gap: 35px;
    margin-top: -8px; /* the live cards sit 92px apart; the page gap gives 100px */
    padding: 40px;
  }

  .production-intro {
    display: block;
    padding: 0;
  }

  .production-heading {
    max-width: 400px;
    margin-bottom: 30px;
  }

  .production-shot-figma { object-position: right -1254px bottom -449px; }
  .production-shot-storybook { object-position: right -1255px bottom -450px; }
}

@media (max-width: 809.98px) {
  .production {
    grid-template-columns: 1fr;
    row-gap: 20px;
    margin-top: 62px; /* 92px apart; the phone page gap gives 30px */
    padding: 40px 20px;
  }

  .production-intro { margin-bottom: 15px; } /* 35px to the shots, of which the row gap gives 20px */

  .production-title { font-size: 25px; }

  .production-shot { height: 338px; }
  .production-shot-figma { object-position: right -1284px bottom -709px; }
  .production-shot-storybook { object-position: right -1285px bottom -708px; }
}

.variables {
  display: grid;
  gap: 65px;
  width: 100%;
  max-width: 1280px;
  /* Cards sit 220px apart; .page-content already adds 100px. */
  margin-top: 120px;
  padding: 70px 60px 60px;
  border-radius: 16px;
  background: var(--color-card);
  outline: 1px solid rgb(237, 237, 237);
  outline-offset: -1px;
}

.variables-header {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 30px;
  padding: 0 20px;
}

.variables-heading { max-width: 440px; }

.variables-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 18px/1.2 var(--font-display);
  color: rgb(113, 76, 224);
}

/* The live icon sits at the top of a 32px-tall slot. */
.variables-eyebrow svg { margin-bottom: 3px; }

.variables-title {
  font: 900 41px/1.2 var(--font-display);
  color: rgb(10, 10, 11);
}

.variables-text {
  font: 21px/1.5 var(--font-text);
  letter-spacing: -0.5px;
  color: rgb(110, 110, 110);
}

.variables-text p + p { margin-top: 1.5em; }

.variables-gallery {
  display: flex;
  gap: 20px;
  height: 696px;
}

.variables-shot {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
  background: rgb(247, 247, 247);
}

.variables-shot img {
  position: absolute;
  height: auto;
}

.variables-shot-figma {
  right: -112px;
  bottom: -759px;
}

.variables-shot-css {
  left: -11px;
  bottom: -273px;
  width: calc(100% + 566px);
}

@media (max-width: 1279.98px) {
  .variables {
    gap: 35px;
    /* Cards sit 92px apart here, closer than the .page-content gap. */
    margin-top: -8px;
    padding: 40px;
  }

  .variables-header {
    grid-template-columns: none;
    padding: 0;
  }
}

@media (max-width: 809.98px) {
  .variables {
    margin-top: 62px;
    padding: 70px 20px 60px;
  }

  .variables-title { font-size: 25px; }

  .variables-gallery { flex-direction: column; }

  .variables-shot-figma {
    right: -352px;
    bottom: -1010px;
    width: calc(100% + 458px);
  }

  .variables-shot-css {
    left: -23px;
    bottom: -330px;
  }
}

.accessible {
  display: grid;
  gap: 65px;
  width: 100%;
  max-width: 1280px;
  /* Cards sit 220px apart, and the card section ends 160px below this card; .page-content already adds 100px between parts. */
  margin: 120px 0 160px;
  padding: 70px 30px 30px;
  border-radius: 16px;
  background: var(--color-card);
  outline: 1px solid rgb(237, 237, 237);
  outline-offset: -1px;
}

.accessible-header {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 30px;
  padding: 0 20px;
}

.accessible-heading { max-width: 460px; }

.accessible-eyebrow {
  font: 600 18px/1.2 var(--font-display);
  color: var(--color-brand);
}

.accessible-title {
  margin-top: 12px;
  font: 900 41px/1.2 var(--font-display);
  color: rgb(10, 10, 11);
}

.accessible-text {
  font: 21px/1.5 var(--font-text);
  letter-spacing: -0.5px;
  color: rgb(110, 110, 110);
}

.accessible-text p + p { margin-top: 1.5em; }

.accessible-gallery {
  display: flex;
  gap: 20px;
  height: 696px;
}

.accessible-shot {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
  background: rgb(247, 247, 247);
}

.accessible-shot-dark { background: rgb(15, 15, 16); }

.accessible-shot img {
  position: absolute;
  top: calc(50.431% - 331px);
  left: calc(48.9256% - 284px);
}

@media (max-width: 1279.98px) {
  .accessible {
    gap: 35px;
    /* Cards sit 92px apart here, closer than the .page-content gap. */
    margin-top: -8px;
    padding: 40px;
  }

  .accessible-header {
    grid-template-columns: none;
    padding: 0;
  }

  .accessible-gallery { flex-direction: column; }
}

@media (max-width: 809.98px) {
  .accessible {
    margin-top: 62px;
    padding: 70px 20px 30px;
  }

  .accessible-title { font-size: 25px; }

  /* A border on the panel itself would sit under the absolutely positioned shot. */
  .accessible-shot-light::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgb(222, 222, 222);
    border-radius: inherit;
  }

  .accessible-shot-light img {
    top: -204px;
    left: -261px;
  }

  .accessible-shot-dark img {
    top: calc(37.574% - 331px);
    left: calc(7.41935% - 284px);
  }
}

.harmony {
  position: relative;
  width: 100%;
  padding: 208px 0 700px;
  background: rgb(19, 19, 22);
}

/* Drawn on top, so the bottom line crosses the component strip as on live. */
.harmony::after {
  content: "";
  position: absolute;
  inset: 0;
  border-block: 1px solid rgb(230, 232, 239);
  pointer-events: none;
}

/* Live text is pre-wrap: the double space after "coding." survives and line-end spaces hang. */
.harmony-title,
.harmony-intro,
.harmony-card-title,
.harmony-caption {
  white-space: pre-wrap;
}

.harmony-title {
  font: 700 60px/1.4 var(--font-ui);
  letter-spacing: -0.04em;
  text-align: center;
  color: rgb(244, 244, 246);
}

.harmony-intro {
  width: min(790px, 100% - 120px);
  margin: 10px auto 0;
  font: 400 24px/1.5 var(--font-text);
  letter-spacing: -0.5px;
  text-align: center;
  color: rgb(140, 140, 151);
}

/* Seven tracks so one grid holds both rows: two cards 70px apart, then three cards 60px apart. */
.harmony-features {
  display: grid;
  grid-template-columns: calc((100% - 120px) / 3) 60px 1fr 70px 1fr 60px calc((100% - 120px) / 3);
  row-gap: 90px;
  max-width: 1280px;
  margin: 90px auto 0;
  padding: 0 20px;
}

.harmony-feature-bem { grid-column: 1 / 4; }
.harmony-feature-type { grid-column: 5 / 8; }
.harmony-feature-layout { grid-column: 1; }
.harmony-feature-props { grid-column: 3 / 6; }
.harmony-feature-color { grid-column: 7; }

.harmony-card {
  position: relative;
  height: 462px;
  padding: 48px 0 0 44px;
  border-radius: 12px;
  overflow: hidden;
  background: rgb(26, 25, 30);
}

/* An overlay rather than a border, so the frame sits on top of the screenshots bleeding out of the card. */
.harmony-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgb(76, 75, 85);
  border-radius: inherit;
  pointer-events: none;
}

.harmony-card-title {
  font: 300 32px/1.2 var(--font-text);
  color: rgb(222, 222, 232);
}

.harmony-card img {
  position: absolute;
  height: auto;
  border-radius: 8px 8px 0 0;
  outline: 1px solid rgb(76, 75, 85);
  outline-offset: -1px;
}

.harmony-caption {
  margin-top: 16px;
  padding: 0 10px;
  font: 400 20px/1.5 var(--font-text);
  letter-spacing: -0.5px;
  color: rgb(144, 141, 154);
}

.harmony-caption strong { color: rgb(192, 189, 203); }

.harmony-feature-bem .harmony-card-title { width: 248px; }

.harmony-feature-bem img {
  left: 50%;
  translate: -50%;
}

.harmony-bem-back,
.harmony-bem-middle {
  outline-color: rgb(59, 58, 65);
}

.harmony-bem-back { bottom: -4px; }
.harmony-bem-middle { bottom: -66px; }

.harmony-bem-front {
  bottom: -110px;
  outline-color: rgb(76, 74, 84);
}

.harmony-feature-type .harmony-card-title { width: 225px; }

.harmony-type-figma {
  bottom: 0;
  left: 144px;
}

.harmony-type-code {
  bottom: -129px;
  right: -265px;
}

/* Narrow enough to break after the first word, as live does. */
.harmony-feature-layout .harmony-card-title,
.harmony-feature-props .harmony-card-title {
  width: 144px;
  font-size: 27px;
}

.harmony-card .harmony-layout-popover {
  bottom: -126px;
  left: 50%;
  translate: -50%;
  border-radius: 0;
  outline: none;
}

.harmony-feature-props .harmony-card { border-radius: 8px; }
.harmony-feature-props img { outline-color: rgb(76, 76, 86); }

.harmony-props-code {
  bottom: 0;
  left: 48%;
  translate: -50%;
}

.harmony-props-figma {
  bottom: 0;
  right: -40px;
}

.harmony-feature-color .harmony-card { padding: 41px 0 0; }

.harmony-feature-color .harmony-card-title {
  width: 286px;
  margin-inline: auto;
  font-size: 27px;
}

.harmony-feature-color img { outline-color: rgb(68, 69, 76); }

.harmony-color-figma {
  bottom: -10px;
  left: 37px;
}

.harmony-color-scoping {
  bottom: 0;
  right: -39px;
}

/* On its own line the lead sentence drops its trailing space; only the inline phone layout keeps it. */
.harmony-feature-color strong {
  display: block;
  white-space: normal;
}

/* The strip keeps the size of its 2560px Framer box; transform, not translate, since the rise entry animation owns translate. */
.harmony-strip {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: auto;
  height: 467px;
  transform: translateX(-50%);
}

@media (max-width: 1279.98px) {
  .harmony { padding: 98px 0 590px; }
  .harmony-title { font-size: 50px; }

  .harmony-features {
    grid-template-columns: 1fr 33px 1fr;
    row-gap: 60px;
  }

  .harmony-feature-bem { grid-column: 1; }
  .harmony-feature-type { grid-column: 3; }
  .harmony-feature-layout, .harmony-feature-props, .harmony-feature-color { grid-column: 1 / -1; }
  .harmony-feature-layout { margin-top: 30px; }

  .harmony-type-figma { left: 44px; }

  .harmony-type-code {
    bottom: -169px;
    right: -355px;
  }

  .harmony-props-code {
    left: 129px;
    translate: none;
  }

  .harmony-props-figma {
    left: 426px;
    right: auto;
  }

  .harmony-color-figma { left: 177px; }

  .harmony-color-scoping {
    left: 394px;
    right: auto;
  }
}

@media (max-width: 809.98px) {
  .harmony-title, .harmony-intro {
    margin-inline: 20px;
    text-align: left;
  }

  .harmony-title { font-size: 39px; }
  .harmony-intro { width: auto; }

  .harmony-features {
    display: flex;
    flex-direction: column;
  }

  .harmony-feature-type { margin-top: 15px; }

  .harmony-feature-layout .harmony-card-title,
  .harmony-feature-props .harmony-card-title,
  .harmony-feature-color .harmony-card-title { font-size: 32px; }

  .harmony-feature-layout .harmony-card-title { width: auto; }
  /* Breaks after "Prop" here, as live does. */
  .harmony-feature-props .harmony-card-title { width: 240px; }

  .harmony-card .harmony-layout-popover {
    left: auto;
    right: -6px;
    translate: none;
  }

  .harmony-props-code {
    left: 50%;
    translate: -50%;
  }

  .harmony-props-figma {
    left: auto;
    right: -65px;
  }

  .harmony-color-figma {
    left: 50%;
    translate: -50%;
  }

  .harmony-feature-color strong {
    display: inline;
    white-space: inherit;
  }
}

@media (min-width: 2225px) {
  .harmony { padding-bottom: 860px; }

  /* Live pins the wide strip to a fixed offset instead of centring it. */
  .harmony-strip {
    left: -365px;
    height: 620px;
    transform: none;
  }
}

.book {
  width: 100%;
  max-width: 1280px;
  padding: 140px 0;
}

.book-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 40px;
  border-radius: 16px;
  background: var(--color-card);
  box-shadow: inset 0 0 0 1px rgb(237, 237, 237);
}

.book-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 40px;
  white-space: pre-wrap;
}

.book-title {
  /* 1.3em, not 1.3: the 44.2px line box rounds like live's, so the second line lands on the same pixel. */
  font: 900 34px/1.3em var(--font-ui);
  color: rgb(10, 10, 11);
}

.book-lead {
  font: 24px/1.5 var(--font-text);
  letter-spacing: -0.5px;
  color: rgb(136, 136, 136);
}

.book-link { color: var(--color-brand); }
.book-link:hover { text-decoration: underline; }

.book-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 600px;
  border-radius: 8px;
  background: rgb(245, 247, 250);
}

.book-image {
  width: 465px;
  height: auto;
}

.book-note {
  position: absolute;
  top: 25px;
  font: italic 300 16px/1.5 var(--font-text);
  white-space: nowrap;
  color: rgb(98, 120, 150);
}

@media (max-width: 1279.98px) {
  .book-card { grid-template-columns: 1fr; }
}

@media (max-width: 809.98px) {
  .book { padding: 113px 0; }
  .book-card { padding: 30px 20px; }
  .book-text { padding: 0; }
  .book-title { font-size: 27px; line-height: 1.5; }
  .book-lead { font-size: 22px; }
  .book-figure { height: 283px; }
  .book-image { width: 266px; }
  .book-note { top: 11px; font-size: 14px; }
}

.why {
  /* Framer's spring (stiffness 500, damping 25): the social icons settle back with it after hover. */
  --why-spring: linear(0, 0.125, 0.39, 0.67, 0.895, 1.039, 1.107, 1.119, 1.099, 1.066, 1.033, 1.008, 0.993, 0.986, 0.986, 0.989, 0.993, 0.997, 1);
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  align-items: center;
  gap: 60px;
  width: 100%;
  max-width: 1280px;
  padding: 60px;
  border-radius: 16px;
  background: var(--color-card);
  box-shadow: inset 0 0 0 1px rgb(237, 237, 237);
}

.why-letter {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 50px 50px;
  border-radius: 8px;
  background: rgb(245, 247, 250);
}

.why-title {
  margin-bottom: 22px;
  font: 900 43px/1.3 var(--font-ui);
  color: rgb(10, 10, 11);
}

.why-letter > p {
  /* 1.6em, not 1.6: the line box then rounds like live's and the 30 lines don't drift. */
  font: 19px/1.6em var(--font-text);
  white-space: pre-wrap;
  color: rgb(97, 99, 107);
}

/* One empty 19px line between paragraphs, as on the live letter. */
.why-letter > p + p { margin-top: 30.4px; }
.why-letter strong { font-weight: 900; }

.why-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 50px;
  padding-top: 20px;
  box-shadow: inset 0 1px rgb(221, 224, 228);
}

/* The 2x photo is 68x90 css px; the 64px circle shows it offset by (-7, -17), inside a 3px white ring. */
.why-author-photo {
  border: 3px solid rgb(255, 255, 255);
  border-radius: 50%;
  object-fit: none;
  object-position: -10px -20px;
}

.why-author-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  font: 17px/1 var(--font-text);
  color: rgb(97, 99, 107);
}

.why-author-name {
  font-size: 20px;
  font-weight: 700;
  color: rgb(45, 46, 52);
}

.why-social {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 38px;
}

.why-social::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -56px;
  width: 51px;
  height: 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 51 36'%3E%3Cpath d='M 21.327 0.891 C 20.635 0.435 19.705 0.627 19.249 1.319 C 18.793 2.011 18.985 2.941 19.677 3.397 L 21.327 0.89 Z M 2.249 15.604 C 1.43 15.723 0.861 16.483 0.979 17.302 L 2.9 30.665 C 3.018 31.485 3.778 32.054 4.598 31.936 C 5.419 31.819 5.988 31.058 5.87 30.238 L 4.16 18.36 L 16.038 16.651 C 16.576 16.583 17.035 16.23 17.24 15.728 C 17.444 15.226 17.362 14.653 17.024 14.229 C 16.686 13.805 16.146 13.596 15.611 13.682 Z M 19.677 3.397 C 33.536 12.523 41.405 19.588 44.958 24.57 C 46.753 27.087 47.278 28.84 47.193 29.929 C 47.123 30.816 46.625 31.528 45.283 32.014 C 43.861 32.529 41.676 32.689 38.793 32.338 C 35.941 31.992 32.535 31.163 28.752 29.831 C 21.189 27.166 12.231 22.527 3.362 15.888 L 1.564 18.29 C 10.659 25.098 19.885 29.888 27.755 32.66 C 31.689 34.046 35.312 34.938 38.431 35.317 C 41.518 35.691 44.245 35.581 46.306 34.835 C 48.446 34.059 50 32.518 50.184 30.161 C 50.351 28.008 49.326 25.529 47.401 22.828 C 43.511 17.375 35.252 10.062 21.326 0.891 L 19.676 3.397 Z' fill='hsl(216,10%25,80%25)'/%3E%3C/svg%3E") center / 100% 100%;
  opacity: 0.82;
  rotate: 141deg;
}

.why-social-link {
  transition: translate 0.45s var(--why-spring);
}

.why-social-link:hover {
  translate: 0 -2px;
  transition: translate 0.3s var(--ease-tween);
}

.why-social-label {
  position: absolute;
  bottom: -26px;
  left: 47%;
  translate: -50%;
  font: 14px/1.3 "Permanent Marker", sans-serif;
  white-space: nowrap;
  color: rgb(199, 203, 209);
}

.why-plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font: 600 14px/1.5 var(--font-ui);
  color: rgb(102, 102, 102);
}

.why-plan-name {
  font-size: 17px;
  font-weight: 700;
  color: rgb(82, 170, 95);
}

.why-plan-price {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

/* Live boxes the 54px line at 48px high, and "p/month" aligns to that box's bottom. */
.why-plan-amount {
  height: 48px;
  font: 700 54px/1 var(--font-ui);
  letter-spacing: -3px;
  color: rgb(51, 51, 51);
}

.why-plan-features {
  display: grid;
  gap: 21px;
  padding: 20px 0;
}

.why-plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: pre;
}

.why-plan-features li::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M 12 2.25 C 6.615 2.25 2.25 6.615 2.25 12 C 2.25 17.385 6.615 21.75 12 21.75 C 17.385 21.75 21.75 17.385 21.75 12 C 21.74 6.62 17.38 2.26 12 2.25 Z M 16.641 10.294 L 11.147 15.544 C 11.005 15.677 10.817 15.751 10.622 15.75 C 10.429 15.753 10.244 15.679 10.106 15.544 L 7.359 12.919 C 7.152 12.738 7.06 12.458 7.121 12.189 C 7.181 11.92 7.384 11.706 7.649 11.632 C 7.914 11.557 8.199 11.634 8.391 11.831 L 10.622 13.959 L 15.609 9.206 C 15.912 8.942 16.37 8.964 16.647 9.255 C 16.923 9.547 16.921 10.005 16.641 10.294 Z' fill='%23333'/%3E%3C/svg%3E");
}

.why-newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
}

.why-newsletter input,
.why-newsletter button {
  padding: 15px;
  border: 0;
  border-radius: 8px;
  font: 16px/1.4 var(--font-text);
}

.why-newsletter input {
  min-width: 0;
  outline: none;
  background: rgb(230, 232, 237);
}

.why-newsletter input::placeholder { color: rgba(0, 0, 0, 0.3); }

.why-newsletter button {
  font-weight: 600;
  background: var(--color-brand);
  color: rgb(255, 255, 255);
  cursor: pointer;
  transition: opacity 0.3s ease-out;
}

.why-newsletter button:hover { opacity: 0.8; }

.why-newsletter.is-invalid input { box-shadow: inset 0 0 0 1px rgb(238, 68, 68); }

.why-newsletter.is-sending button {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.why-newsletter.is-sending button::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  margin: auto;
  border-radius: 50%;
  background: conic-gradient(transparent, rgb(255, 255, 255));
  mask: radial-gradient(closest-side, transparent calc(100% - 2px), black calc(100% - 2px));
  animation: why-spin 2s linear infinite;
}

.why-newsletter.is-joined {
  grid-template-columns: 60px;
  justify-content: center;
}

.why-newsletter.is-joined > * { display: none; }

.why-newsletter.is-joined::after {
  content: "";
  height: 60px;
  border-radius: 50%;
  background: var(--color-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M2 14l8 8L26 6' fill='none' stroke='white' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 28px no-repeat;
  animation: why-pop 0.3s var(--ease-tween);
}

@keyframes why-spin { to { rotate: 1turn; } }
@keyframes why-pop { from { scale: 0; } }

@media (max-width: 1279.98px) {
  .why { grid-template-columns: 1fr; }
  .why-letter { height: 971px; }
  .why-plan-features {
    grid-template-rows: repeat(9, auto);
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: column;
  }
}

@media (max-width: 809.98px) {
  .why { padding: 20px; }
  .why-letter { height: auto; padding: 25px 25px 50px; }
  .why-title { margin-bottom: 11px; font-size: 32px; }
  .why-letter > p:not(:first-of-type) { font-size: 17px; }
  .why-letter > p:nth-of-type(2) { margin-top: 27.2px; }
  .why-author { flex-direction: column; gap: 36px; }
  .why-author-text { align-items: center; }
  .why-plan-features { grid-template: none; grid-auto-flow: row; }
}

.faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  width: 100%;
  max-width: 1280px;
  padding: 164px 0 130px;
}

.faq-title {
  font: 700 50px/1.2 var(--font-ui);
  letter-spacing: -2.6px;
  text-align: center;
  color: rgb(10, 10, 11);
}

.faq-list {
  align-self: stretch;
  padding: 20px 100px 20px 40px;
  border-radius: 16px;
  background: var(--color-card);
  font: 600 16px/24px var(--font-ui);
}

.faq-item {
  interpolate-size: allow-keywords;
}

.faq-item + .faq-item { border-top: 1px solid rgba(0, 0, 0, 0.05); }
/* The live card stacks two divider lines here. */
.faq-item:nth-child(4) { border-top-width: 2px; }

/* Critically damped spring (stiffness 400, damping 40), measured on the live card. */
.faq-item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.5s linear(0, 0.062, 0.191, 0.337, 0.475, 0.594, 0.692, 0.769, 0.829, 0.874, 0.908, 0.934, 0.952, 0.966, 0.976, 0.983, 0.988, 0.991, 0.994, 0.996, 0.997, 0.998, 0.999, 1), content-visibility 0.5s allow-discrete;
}

.faq-item[open]::details-content { block-size: auto; }

.faq-question {
  position: relative;
  padding: 20px 0 20px 40px;
  list-style: none;
  color: rgb(51, 51, 51);
  white-space: pre-wrap;
  cursor: pointer;
  user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 0;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect y='7' width='16' height='2' rx='1'/%3E%3Crect x='7' width='2' height='16' rx='1'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.faq-item[open] .faq-question::before { rotate: 45deg; }

.faq-answer {
  padding: 0 20px 20px 40px;
  white-space: pre-wrap;
  color: rgb(102, 102, 102);
}

@media (max-width: 809.98px) {
  .faq { padding: 84px 0 70px; }
  .faq-title { font-size: 28px; letter-spacing: -0.9px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item::details-content { transition: none; }
}

.pivot {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 100px 40px;
  background: url("images/pivot-waves.png") center / cover;
}

.pivot-button {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 15px;
  border-radius: 8px;
  background: rgb(242, 242, 242);
  font: 600 14px/1.2 var(--font-ui);
  color: rgb(17, 17, 17);
}

@media (max-width: 1279.98px) {
  .pivot { padding-block: 80px; }
}

@media (max-width: 809.98px) {
  .pivot { padding: 60px 20px; }
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  height: 140px;
  padding: 0 20px;
  box-shadow: inset 0 1px rgba(0, 0, 0, 0.05);
  font: 700 18px/1.5 var(--font-text);
  color: rgb(102, 102, 102);
  white-space: nowrap;
}

.footer-links {
  display: flex;
  gap: 30px;
  line-height: 1.2;
  color: var(--color-brand);
}

.footer-link:hover { text-decoration: underline; }

.footer-link-license {
  font-weight: 300;
  font-style: italic;
}

@media (max-width: 809.98px) {
  .footer { padding: 0 40px; }
}

.license {
  padding: 40px;
  background: var(--color-card);
  font: 18px/2 var(--font-text);
  color: rgb(50, 50, 52);
  overflow-wrap: break-word;
}

.license-title {
  font: 700 50px/60px var(--font-ui);
  letter-spacing: -2.6px;
  text-align: center;
  color: rgb(51, 51, 51);
}

.license p {
  max-width: 820px;
  margin: 20px auto 0;
  /* Live's value: spaces at line ends hang instead of collapsing, so text runs measure the same. */
  white-space: pre-wrap;
}
