:root {
  color-scheme: light;
  --bg: #f6f5ef;
  --bg-elevated: #e9ece5;
  --bg-soft: #e1e5de;
  --ink: #171a18;
  --ink-muted: #676d69;
  --mint: #8aafa3;
  --mint-deep: #52776d;
  --warm: #eeece5;
  --warm-ink: #171a18;
  --line: rgba(23, 26, 24, 0.12);
  --line-dark: rgba(11, 13, 12, 0.15);
  --section: min(1180px, calc(100% - 48px));
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Sora", "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.section-shell {
  width: var(--section);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: min(1180px, calc(100% - 48px));
  min-height: 72px;
  margin: 16px auto 0;
  padding: 10px 13px 10px 20px;
  border: 1px solid rgba(23, 26, 24, 0.1);
  border-radius: 999px;
  background: rgba(250, 250, 245, 0.82);
  box-shadow: 0 18px 52px rgba(34, 40, 36, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  animation: header-arrive 620ms var(--ease-out-quint) both;
}

.brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 11px;
  font-size: 0.98rem;
  font-family: var(--font-display);
  font-weight: 710;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: clamp(16px, 2.5vw, 32px);
  color: rgba(23, 26, 24, 0.64);
  font-size: 0.84rem;
  font-weight: 620;
}

.site-nav a {
  transition: color 160ms ease;
}

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

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-header > .nav-download {
  min-width: 130px;
  justify-self: end;
  padding: 12px 18px;
  border: 1px solid #171a18;
  border-radius: 999px;
  background: #171a18;
  color: #f7f7f2;
  text-align: center;
}

.site-header > .nav-download:hover {
  border-color: #2a2e2c;
  background: #2a2e2c;
  color: #f7f7f2;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 88px);
  place-items: center;
  padding-block: clamp(74px, 9vw, 116px) 18px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  background:
    linear-gradient(rgba(23, 26, 24, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 26, 24, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.96), rgba(246, 245, 239, 0.72) 56%, rgba(246, 245, 239, 0.98));
  background-size: 72px 72px, 72px 72px, auto;
  mask-image: linear-gradient(180deg, black 0%, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 82%, transparent 100%);
}

.hero-copy {
  display: flex;
  width: min(820px, 100%);
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(-26px);
}

.hero-app-icon {
  width: clamp(96px, 10vw, 132px);
  height: auto;
  margin-bottom: clamp(24px, 3vw, 36px);
  filter: drop-shadow(0 22px 32px rgba(58, 79, 72, 0.2));
  animation: icon-arrive 900ms var(--ease-out-quint) both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--mint-deep);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.9;
  animation: hero-detail-arrive 700ms 90ms var(--ease-out-quint) both;
}

.hero-tagline {
  margin: 28px 0 14px;
  color: #4d978e;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.2vw, 2.7rem);
  font-style: italic;
  letter-spacing: -0.035em;
  animation: hero-detail-arrive 700ms 160ms var(--ease-out-quint) both;
}

.hero-description {
  max-width: 520px;
  margin: 0;
  color: rgba(23, 26, 24, 0.62);
  font-size: clamp(1.02rem, 1.7vw, 1.25rem);
  line-height: 1.55;
  animation: hero-detail-arrive 700ms 220ms var(--ease-out-quint) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  justify-content: center;
  animation: hero-detail-arrive 700ms 280ms var(--ease-out-quint) both;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.91rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform 220ms var(--ease-out-quint), background 220ms var(--ease-out-quint), color 220ms var(--ease-out-quint), box-shadow 220ms var(--ease-out-quint);
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  background: var(--mint-deep);
  color: #f7f7f2;
  box-shadow: 0 18px 32px rgba(82, 119, 109, 0.24);
}

.button-primary:hover {
  background: #3f665e;
  color: #f7f7f2;
}

.button-secondary {
  border-color: rgba(23, 26, 24, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: rgba(23, 26, 24, 0.24);
  background: #fff;
}

.launch-cta {
  display: inline-grid;
  place-items: center;
  overflow: visible;
  font-family: var(--font-sans);
}

.launch-cta[data-unavailable="true"] {
  cursor: default;
}

.launch-cta .cta-default,
.launch-cta .cta-hover {
  grid-area: 1 / 1;
  transition: opacity 180ms var(--ease-out-quint), transform 220ms var(--ease-out-quint);
}

.launch-cta .cta-hover {
  opacity: 0;
  transform: translateY(5px);
}

.launch-cta:hover .cta-default,
.launch-cta:focus-visible .cta-default {
  opacity: 0;
  transform: translateY(-5px);
}

.launch-cta:hover .cta-hover,
.launch-cta:focus-visible .cta-hover {
  opacity: 1;
  transform: translateY(0);
}

.button .github-mark,
.github-mark {
  fill: currentColor;
  stroke: none;
}

.fact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 42px 0 0;
  padding: 0;
  color: rgba(23, 26, 24, 0.5);
  list-style: none;
  font-size: 0.72rem;
  font-weight: 640;
  letter-spacing: 0.025em;
}

.fact-list li {
  display: flex;
  align-items: center;
}

.fact-list li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  margin: 0 10px;
  border-radius: 50%;
  background: var(--mint-deep);
}

.hero-art {
  position: relative;
  justify-self: end;
  width: min(100%, 430px);
}

.hero-icon-wrap {
  position: relative;
  isolation: isolate;
}

.hero-icon-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 42px 65px rgba(0, 0, 0, 0.5));
  animation: icon-arrive 900ms var(--ease-out-quint) both;
}

.hero-icon-glow {
  position: absolute;
  inset: 15%;
  border-radius: 35%;
  background: rgba(138, 175, 163, 0.28);
  filter: blur(68px);
  transform: scale(1.12);
}

.pad-notation {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 9px;
  width: 82%;
  margin: 26px auto 0;
  color: rgba(241, 242, 237, 0.42);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.pad-notation-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(138, 175, 163, 0.13);
}

.pad-notation-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent);
}

@keyframes icon-arrive {
  from { opacity: 0; transform: translateY(18px) scale(0.965); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes header-arrive {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-detail-arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms var(--ease-out-quint),
    transform 720ms var(--ease-out-quint);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.dictionary-section {
  padding: clamp(34px, 4vw, 56px) 0 clamp(76px, 9vw, 118px);
}

.dictionary-entry {
  width: min(880px, 100%);
  margin-inline: auto;
  text-align: center;
}

.dictionary-entry h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.dictionary-emoji {
  display: inline-block;
  margin-right: 0.08em;
  font-size: 0.78em;
  vertical-align: 0.06em;
}

.dictionary-pronunciation {
  margin: 14px 0 0;
  color: var(--mint-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-style: italic;
}

.dictionary-definition {
  max-width: 38ch;
  margin: 30px auto 0;
  color: rgba(23, 26, 24, 0.78);
  font-family: var(--font-serif);
  font-size: clamp(1.16rem, 2.1vw, 1.65rem);
  line-height: 1.42;
}

.definition-term {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(82, 119, 109, 0.48);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.definition-term:hover {
  color: var(--mint-deep);
  text-decoration-color: var(--mint-deep);
}

.choices {
  padding: clamp(80px, 10vw, 128px) 0 clamp(42px, 5vw, 68px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 20%, rgba(138, 175, 163, 0.22), transparent 31%),
    var(--bg-elevated);
}

.choices-heading {
  margin-bottom: 24px;
}

.conveyor-caption {
  margin: 0;
  color: var(--ink-muted);
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-align: center;
}

.choices h2,
.screenshots-section h2,
.native-copy h2,
.open-source h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-block: 1px solid rgba(23, 26, 24, 0.1);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee + .marquee {
  border-top: 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-left 48s linear infinite;
}

.marquee-style .marquee-track {
  animation-name: marquee-right;
  animation-duration: 64s;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  padding: 15px 6px;
}

.choice-chip {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 8px 17px 8px 10px;
  border: 1px solid rgba(23, 26, 24, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: rgba(23, 26, 24, 0.84);
  font-size: 0.9rem;
  font-weight: 650;
  white-space: nowrap;
}

.choice-chip b {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 1.3rem;
  font-style: normal;
  line-height: 1;
}

.choice-chip i {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: color-mix(in srgb, var(--chip) 84%, black);
  box-shadow: inset 0 0 0 1px rgba(23, 26, 24, 0.06);
  font-size: 1rem;
  font-style: normal;
}

.choice-chip i {
  background: var(--chip);
}

@keyframes marquee-left {
  to { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.screenshots-section {
  padding: clamp(24px, 3vw, 42px) 0 clamp(58px, 7vw, 92px);
  overflow: hidden;
  background:
    linear-gradient(rgba(23, 26, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 26, 24, 0.035) 1px, transparent 1px),
    var(--warm);
  background-size: 86px 86px, 86px 86px, auto;
  color: var(--warm-ink);
}

.screenshots-section .section-kicker {
  color: #52776d;
}

.carousel {
  --screenshot-width: clamp(220px, 22vw, 300px);
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  width: 100%;
  padding: clamp(22px, 3vw, 36px) calc((100vw - var(--screenshot-width)) / 2) 48px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: calc((100vw - var(--screenshot-width)) / 2);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.carousel.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

.carousel.is-normalizing .screenshot-card {
  transition: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.screenshot-card {
  flex: 0 0 var(--screenshot-width);
  margin: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transform: scale(0.93);
  transform-origin: center;
  opacity: 0.5;
  transition: transform 300ms var(--ease-out-quint), opacity 260ms ease;
}

.screenshot-card.is-current {
  transform: scale(1);
  opacity: 1;
}

.screenshot-card img {
  width: 100%;
  height: auto;
  border-radius: clamp(18px, 2.3vw, 30px);
  box-shadow: 0 22px 45px rgba(29, 29, 24, 0.12), 0 2px 7px rgba(29, 29, 24, 0.08);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-dots {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: -10px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 26, 24, 0.24);
  cursor: pointer;
  transition: background-color 180ms ease, transform 220ms var(--ease-out-quint);
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
  background: rgba(23, 26, 24, 0.52);
  outline-offset: 4px;
}

.carousel-dot.is-current {
  background: var(--mint-deep);
  transform: scale(1.35);
}

.swift-only-section {
  padding: clamp(64px, 8vw, 108px) 0;
  overflow: hidden;
  background: var(--bg);
}

.native-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: clamp(44px, 9vw, 130px);
  align-items: start;
}

.native-copy .section-kicker,
.native-copy h2 {
  grid-column: 1;
}

.native-copy > p:not(.section-kicker) {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 38px 0 0;
  color: var(--ink-muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.68;
}

.native-facts {
  grid-column: 2;
  margin: -6px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.native-facts li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: rgba(241, 242, 237, 0.73);
  font-size: 0.85rem;
}

/* Kept in parity with MuseDial's native Swift tagline bar. */
.swift-native-section {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 88px;
  width: min(1060px, calc(100% - 64px));
  margin: clamp(58px, 7vw, 92px) auto clamp(10px, 2vw, 24px);
  padding: 18px clamp(14px, 3vw, 38px);
  border: 0;
  border-radius: 0;
  overflow: visible;
  isolation: isolate;
  background: linear-gradient(90deg, #f7c3b7 0%, #f7c3b7 48%, rgba(247, 195, 183, 0.62) 72%, transparent 96%);
  background-clip: padding-box;
  color: oklch(18% 0.012 178);
  font-weight: 800;
  box-shadow: none;
}

.swift-native-section::before {
  content: "";
  position: absolute;
  inset: -22px -44px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, #d96b56 44px, #d96b56 calc(100% - 44px), transparent) left 0 top 22px / 100% 2px no-repeat,
    linear-gradient(90deg, transparent, #d96b56 44px, #d96b56 calc(100% - 44px), transparent) left 0 bottom 22px / 100% 2px no-repeat,
    linear-gradient(transparent, #d96b56 22px, #d96b56 calc(100% - 22px), transparent) left 44px top 0 / 2px 100% no-repeat,
    linear-gradient(transparent, #d96b56 22px, #d96b56 calc(100% - 22px), transparent) right 44px top 0 / 2px 100% no-repeat;
}

.swift-native-section::after {
  content: none;
}

.swift-default-content,
.swift-hover-content {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  transition: opacity 220ms var(--ease-out-quint), transform 260ms var(--ease-out-quint);
}

.swift-default-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
  opacity: 1;
  transform: translateY(0);
}

.swift-default-content span {
  font-size: clamp(0.88rem, 1.3vw, 1.08rem);
  line-height: 1.15;
  text-align: right;
}

.swift-hover-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  opacity: 0;
  transform: translateY(5px);
}

.swift-hover-content span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  font-size: clamp(0.88rem, 1.3vw, 1.08rem);
  line-height: 1.15;
  white-space: nowrap;
}

.swift-hover-content span:first-child {
  padding-left: 0;
}

.swift-hover-content span + span::before {
  content: "";
  width: 1px;
  height: 24px;
  margin-right: 12px;
  background: rgba(183, 72, 51, 0.42);
}

.swift-hover-content svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: #b74833;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.swift-native-section:hover .swift-default-content,
.swift-native-section:focus-visible .swift-default-content {
  opacity: 0;
  transform: translateY(-5px);
}

.swift-native-section:hover .swift-hover-content,
.swift-native-section:focus-visible .swift-hover-content {
  opacity: 1;
  transform: translateY(0);
}

.swift-default-content img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(240, 81, 56, 0.2));
}

.open-source {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 0.9fr);
  gap: clamp(50px, 10vw, 140px);
  align-items: center;
  padding-bottom: clamp(96px, 12vw, 170px);
}

.open-source-intro > p:last-child {
  max-width: 450px;
  margin: 28px 0 0;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.repo-card {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(25px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 4%, rgba(138, 175, 163, 0.14), transparent 35%),
    rgba(255, 255, 255, 0.035);
  transition: border-color 220ms ease, transform 260ms var(--ease-out-quint), background-color 220ms ease;
}

.repo-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.26);
  background-color: rgba(255, 255, 255, 0.048);
}

.repo-card-top,
.repo-card-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(241, 242, 237, 0.58);
  font-size: 0.75rem;
  font-weight: 620;
}

.repo-card-top .github-mark {
  width: 23px;
  height: 23px;
  color: var(--ink);
}

.external-arrow {
  width: 19px;
  height: 19px;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.repo-card strong {
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.repo-card-bottom {
  justify-content: space-between;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.repo-card-bottom span:first-child {
  color: var(--mint);
  font-weight: 750;
}

.repo-card-bottom span:last-child {
  max-width: 215px;
  text-align: right;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 34px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: #e7e9e2;
  color: rgba(23, 26, 24, 0.54);
  font-size: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

.footer-brand div {
  display: grid;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.footer-brand span {
  font-family: var(--font-serif);
  font-style: italic;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer > p {
  margin: 0;
}

.site-footer .copyright {
  text-align: right;
}

.footer-disclaimer {
  grid-column: 1 / -1;
  width: min(760px, 100%);
  margin-inline: auto !important;
  color: rgba(23, 26, 24, 0.43);
  font-size: 0.68rem;
  line-height: 1.55;
  text-align: center;
}

.contact-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
}

.contact-dialog[open] {
  animation: contact-dialog-in 280ms var(--ease-out-quint) both;
}

.contact-dialog.is-closing {
  animation: contact-dialog-out 220ms cubic-bezier(0.55, 0, 1, 0.45) both;
}

.contact-dialog::backdrop {
  background: rgba(23, 26, 24, 0.72);
  backdrop-filter: blur(18px) saturate(0.72);
  -webkit-backdrop-filter: blur(18px) saturate(0.72);
  animation: contact-backdrop-in 240ms var(--ease-out-quint) both;
}

.contact-dialog.is-closing::backdrop {
  animation: contact-backdrop-out 220ms cubic-bezier(0.55, 0, 1, 0.45) both;
}

.contact-dialog-content {
  position: relative;
  padding: clamp(30px, 6vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: clamp(28px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 91%, var(--mint));
  box-shadow: 0 40px 100px rgba(23, 26, 24, 0.34);
}

.contact-dialog h2 {
  max-width: 560px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.contact-close {
  position: absolute;
  top: 20px;
  right: 22px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transition: color 220ms var(--ease-out-quint), transform 220ms var(--ease-out-quint);
}

.contact-close:hover,
.contact-close:focus-visible {
  color: var(--mint-deep);
  outline: 0;
  transform: rotate(5deg);
}

.contact-options {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.contact-options a {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 18px 48px 18px 0;
  border-bottom: 1px solid var(--line);
  transition: color 220ms var(--ease-out-quint), padding 260ms var(--ease-out-quint);
}

.contact-options a::after {
  content: "\2197";
  position: absolute;
  top: 50%;
  right: 4px;
  font-size: 1.2rem;
  transform: translateY(-50%);
}

.contact-options a:hover,
.contact-options a:focus-visible {
  padding-left: 8px;
  color: var(--mint-deep);
  outline: 0;
}

.contact-option-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.contact-option-detail {
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.contact-option-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
}

.contact-option-label svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@keyframes contact-dialog-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes contact-dialog-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(12px) scale(0.985); }
}

@keyframes contact-backdrop-in {
  from { background: rgba(23, 26, 24, 0); backdrop-filter: blur(0) saturate(1); }
  to { background: rgba(23, 26, 24, 0.72); backdrop-filter: blur(18px) saturate(0.72); }
}

@keyframes contact-backdrop-out {
  from { background: rgba(23, 26, 24, 0.72); backdrop-filter: blur(18px) saturate(0.72); }
  to { background: rgba(23, 26, 24, 0); backdrop-filter: blur(0) saturate(1); }
}

/* Legal pages */
.legal-body {
  background:
    linear-gradient(rgba(23, 26, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 26, 24, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 86% 5%, rgba(138, 175, 163, 0.16), transparent 28%),
    var(--bg);
  background-size: 72px 72px, 72px 72px, auto, auto;
}

.legal-page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 126px) 0 clamp(56px, 8vw, 96px);
}

.legal-document {
  padding: clamp(36px, 6vw, 76px);
  border: 1px solid rgba(23, 26, 24, 0.1);
  border-radius: clamp(28px, 4vw, 52px);
  background: rgba(252, 252, 247, 0.78);
  box-shadow: 0 24px 70px rgba(23, 26, 24, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.legal-document h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.legal-document h2 {
  margin: clamp(34px, 5vw, 54px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

.legal-document p {
  max-width: 68ch;
  margin: 14px 0 0;
  color: rgba(23, 26, 24, 0.68);
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.72;
}

.legal-document .legal-updated {
  color: var(--mint-deep);
  font-weight: 800;
}

.legal-document a {
  color: #356f67;
  text-decoration: underline;
  text-decoration-color: rgba(53, 111, 103, 0.35);
  text-underline-offset: 3px;
}

/* Pricing */
.pricing-page {
  display: grid;
  width: min(920px, calc(100% - 40px));
  min-height: calc(100svh - 105px);
  margin: 0 auto;
  padding: clamp(68px, 9vw, 116px) 0 clamp(70px, 9vw, 120px);
  place-items: center;
}

.pricing-content {
  width: min(720px, 100%);
  text-align: center;
}

.pricing-content h1 {
  margin: 0;
  color: var(--mint-deep);
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 400;
}

.pricing-price {
  margin: clamp(40px, 6vw, 68px) 0 0;
  font-family: var(--font-serif);
  font-size: clamp(7rem, 20vw, 13rem);
  font-weight: 300;
  letter-spacing: -0.07em;
  line-height: 0.82;
}

.pricing-summary {
  display: grid;
  gap: 7px;
  margin: clamp(42px, 6vw, 62px) auto 0;
}

.pricing-summary p {
  margin: 0;
  color: rgba(23, 26, 24, 0.68);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.pricing-summary p:first-child {
  color: var(--ink);
  font-weight: 750;
}

.pricing-actions {
  justify-content: center;
  margin-top: 34px;
}

.pricing-aside {
  margin: clamp(94px, 11vw, 140px) 0 0;
  color: rgba(23, 26, 24, 0.46);
  font-family: var(--font-serif);
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  font-style: italic;
  line-height: 1.4;
}

.pricing-disclaimer {
  max-width: 58ch;
  margin: 18px auto 0;
  color: rgba(23, 26, 24, 0.4);
  font-size: 0.72rem;
  line-height: 1.55;
}

@media (max-width: 820px) {
  :root {
    --section: min(100% - 36px, 680px);
  }

  .site-header {
    min-height: 64px;
    padding-inline: 18px;
  }

  .site-nav > a:not([href*="github"]) {
    display: none;
  }

  .site-nav {
    gap: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 62px;
    padding-block: 72px 14px;
  }

  .hero-copy {
    text-align: center;
    transform: translateY(-16px);
  }

  .hero h1 {
    font-size: clamp(3.8rem, 18vw, 6.2rem);
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions,
  .fact-list {
    justify-content: center;
  }

  .hero-art {
    justify-self: center;
    width: min(78vw, 390px);
  }

  .choices-heading {
    margin-bottom: 34px;
  }

  .native-copy,
  .open-source {
    grid-template-columns: 1fr;
  }

  .native-copy .section-kicker,
  .native-copy h2,
  .native-copy > p:not(.section-kicker),
  .native-facts {
    grid-column: 1;
    grid-row: auto;
  }

  .native-copy > p:not(.section-kicker) {
    margin-top: 0;
  }

  .native-facts {
    margin-top: 0;
  }

  .open-source {
    gap: 44px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer .copyright {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .brand span {
    display: none;
  }

  .site-nav > a[href*="github"] {
    display: none;
  }

  .hero {
    gap: 54px;
  }

  .dictionary-section {
    padding: 38px 0 82px;
  }

  .dictionary-entry {
    padding-left: 0;
  }

  .dictionary-definition {
    font-size: clamp(1.08rem, 5vw, 1.35rem);
  }

  .hero-tagline {
    margin-top: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .pricing-page {
    min-height: auto;
    padding: 64px 0 82px;
  }

  .pricing-price {
    font-size: clamp(7rem, 42vw, 10rem);
  }

  .fact-list {
    max-width: 310px;
    margin-inline: auto;
    row-gap: 8px;
  }

  .choices h2,
  .screenshots-section h2,
  .native-copy h2,
  .open-source h2 {
    font-size: clamp(2.55rem, 13vw, 4.1rem);
  }

  .marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
    scrollbar-width: none;
  }

  .marquee-track {
    animation: none;
  }

  .marquee-group[aria-hidden="true"] {
    display: none;
  }

  .carousel {
    --screenshot-width: min(76vw, 300px);
    padding-inline: calc((100vw - var(--screenshot-width)) / 2);
    scroll-padding-inline: calc((100vw - var(--screenshot-width)) / 2);
  }

  .swift-native-section {
    width: calc(100% - 44px);
    min-height: 78px;
    padding-inline: 12px;
  }

  .swift-native-section::before {
    inset: -14px -20px;
    background:
      linear-gradient(90deg, transparent, #d96b56 20px, #d96b56 calc(100% - 20px), transparent) left 0 top 14px / 100% 2px no-repeat,
      linear-gradient(90deg, transparent, #d96b56 20px, #d96b56 calc(100% - 20px), transparent) left 0 bottom 14px / 100% 2px no-repeat,
      linear-gradient(transparent, #d96b56 14px, #d96b56 calc(100% - 14px), transparent) left 20px top 0 / 2px 100% no-repeat,
      linear-gradient(transparent, #d96b56 14px, #d96b56 calc(100% - 14px), transparent) right 20px top 0 / 2px 100% no-repeat;
  }

  .swift-hover-content span {
    padding: 0 7px;
    font-size: 0.68rem;
  }

  .swift-hover-content span + span::before {
    margin-right: 2px;
  }

  .swift-hover-content svg {
    display: none;
  }

  .repo-card {
    min-height: 320px;
  }

  .repo-card-bottom {
    align-items: start;
    flex-direction: column;
  }

  .repo-card-bottom span:last-child {
    text-align: left;
  }

  .legal-page {
    width: min(100% - 28px, 920px);
    padding-top: 54px;
  }

  .legal-document {
    padding: 28px 22px 38px;
    border-radius: 28px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
    scrollbar-width: thin;
  }

  .marquee-track {
    animation: none;
  }

  .marquee-group[aria-hidden="true"] {
    display: none;
  }
}
