:root {
  --bg: #fdfcf9;
  --surface: #f6f2ed;
  --surface-strong: #eee8f5;
  --text: #1d1b20;
  --text-muted: #68636b;
  --accent: #6f4aa0;
  --accent-hover: #56347f;
  --green: #688f43;
  --selection: #ddd0ee;
  --border: #e8e2db;
  --shadow: rgba(42, 31, 53, 0.09);
  --shadow-strong: rgba(42, 31, 53, 0.16);
  --site-width: 1180px;
  --prose-width: 760px;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--text);
  background: var(--selection);
}

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

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--accent-hover);
}

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

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 48%, transparent);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--text);
  border-radius: 8px;
  text-decoration: none;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  width: min(100% - 2.5rem, var(--site-width));
  height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand {
  font-size: 1.1rem;
}

.brand img {
  border-radius: 22%;
  box-shadow: 0 2px 8px var(--shadow);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 550;
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  padding: 0.5rem 0.7rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Landing page */

main:not(.prose):not(.support-page) {
  width: min(100% - 2.5rem, var(--site-width));
  margin: 0 auto;
}

.landing {
  padding: clamp(6rem, 11vw, 9rem) 0 0;
}

.landing-copy {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.section-kicker,
.detail-label {
  margin: 0 0 1.15rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.landing h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(4rem, 8.5vw, 7.25rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.93;
  text-wrap: balance;
}

.landing-copy > p {
  max-width: 47rem;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: clamp(1.08rem, 1.6vw, 1.26rem);
  line-height: 1.65;
}

.landing-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  color: #fff;
  background: var(--text);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(29, 27, 32, 0.12);
  font-size: 0.9rem;
  font-weight: 650;
}

.action-link {
  text-decoration: none;
}

.action-link:hover {
  color: #fff;
  background: var(--accent-hover);
}

.landing-product {
  max-width: 1080px;
  margin: clamp(4.5rem, 8vw, 6.5rem) auto 0;
}

.product-demo {
  --demo-background: #ffffff;
  --demo-surface: #f7f7f7;
  --demo-text: #202124;
  --demo-muted: #73767c;
  --demo-accent: #6f4aa0;
  --demo-selection: #ddd0ee;
}

.demo-window {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  color: var(--demo-text);
  background: #ebe9e6;
  border: 1px solid rgba(80, 72, 88, 0.18);
  border-radius: 24px;
  box-shadow: 0 30px 75px var(--shadow), 0 6px 18px rgba(42, 31, 53, 0.06);
  transition: color 500ms ease, border-color 500ms ease;
}

.demo-window.is-lemonade {
  --demo-background: #fffde7;
  --demo-surface: #e8f5d6;
  --demo-text: #3d4a1e;
  --demo-muted: #71804a;
  --demo-accent: #84cc16;
  --demo-selection: #fef08a;
  border-color: rgba(132, 204, 22, 0.3);
}

.demo-menubar {
  position: relative;
  z-index: 40;
  height: 30px;
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.5vw, 1.2rem);
  padding: 0 1rem;
  color: #1d1d1f;
  background: rgba(248, 247, 245, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  font-size: clamp(0.62rem, 1vw, 0.78rem);
  line-height: 1;
  white-space: nowrap;
}

.demo-menubar strong {
  font-weight: 700;
}

.demo-apple {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
}

.demo-format-trigger,
.demo-themes-trigger,
.demo-tools-trigger {
  padding: 0.3rem 0.42rem;
  border-radius: 5px;
  transition: background-color 160ms ease, opacity 160ms ease;
}

.demo-window.is-browser .demo-themes-trigger,
.demo-window.is-browser .demo-tools-trigger {
  opacity: 0;
}

.demo-window.format-menu-open .demo-format-trigger,
.demo-window.theme-menu-open .demo-themes-trigger {
  background: rgba(0, 0, 0, 0.12);
}

.demo-window.tools-menu-open .demo-tools-trigger {
  background: rgba(0, 0, 0, 0.12);
}

.demo-format-menu,
.demo-theme-menu,
.demo-tools-menu,
.demo-language-menu {
  position: absolute;
  top: 30px;
  z-index: 50;
  padding: 0.4rem;
  opacity: 0;
  color: #1d1d1f;
  background: rgba(249, 249, 249, 0.97);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 9px;
  box-shadow: 0 16px 38px rgba(24, 20, 28, 0.2);
  transform: translateY(-8px) scale(0.98);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 170ms ease, transform 170ms ease;
}

.demo-format-menu {
  left: clamp(122px, 16vw, 172px);
  width: 260px;
}

.demo-theme-menu {
  left: clamp(165px, 21vw, 230px);
  width: 178px;
}

.demo-tools-menu {
  left: clamp(218px, 28vw, 300px);
  width: 320px;
}

.demo-language-menu {
  top: 34px;
  left: calc(clamp(218px, 28vw, 300px) + 314px);
  z-index: 51;
  width: 170px;
}

.demo-format-menu > span,
.demo-theme-menu > span,
.demo-tools-menu > span,
.demo-language-menu > span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.6rem 0.35rem 1.65rem;
  border-radius: 5px;
  font-size: 0.78rem;
}

.demo-format-menu > span > i,
.demo-theme-menu > span > i,
.demo-language-menu > span > i {
  position: absolute;
  left: 0.65rem;
  font-style: normal;
}

.demo-format-menu > span > i {
  width: 1rem;
  opacity: 0.72;
  font-weight: 650;
  text-align: center;
}

.demo-theme-menu > span > i,
.demo-language-menu > span > i {
  opacity: 0;
}

.demo-format-menu kbd {
  margin-left: auto;
  color: #77737a;
  font: inherit;
  font-size: 0.72rem;
}

.demo-format-menu b,
.demo-tools-menu b {
  margin-left: auto;
  font-size: 1rem;
  font-weight: 500;
}

.demo-format-menu hr,
.demo-language-menu hr {
  height: 1px;
  margin: 0.25rem 0;
  background: rgba(0, 0, 0, 0.12);
  border: 0;
}

.demo-format-menu .demo-menu-disabled {
  opacity: 0.36;
}

.demo-tools-menu > span {
  min-height: 46px;
  padding: 0.32rem 0.7rem;
}

.demo-tools-menu > span > span {
  display: block;
  min-width: 0;
  line-height: 1.18;
}

.demo-tools-menu small {
  display: block;
  margin-top: 0.16rem;
  color: #77737a;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.18;
  white-space: nowrap;
}

.demo-window.format-menu-open .demo-format-menu,
.demo-window.theme-menu-open .demo-theme-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.demo-window.tools-menu-open .demo-tools-menu,
.demo-window.language-menu-open .demo-tools-menu,
.demo-window.language-menu-open .demo-language-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.demo-window.language-menu-open .demo-code-mode-option,
.demo-window.python-selecting .demo-python-option {
  color: #fff;
  background: #0a64d8;
}

.demo-window.language-menu-open .demo-code-mode-option small {
  color: rgba(255, 255, 255, 0.88);
}

.demo-window.language-menu-open:not(.is-python-highlighted) .demo-off-option i,
.demo-window.is-python-highlighted .demo-python-option i {
  opacity: 1;
}

.demo-window.format-choosing-bold .demo-format-bold,
.demo-window.format-choosing-italic .demo-format-italic,
.demo-window.format-choosing-underline .demo-format-underline,
.demo-window.format-choosing-strike .demo-format-strike {
  color: #fff;
  background: #0a64d8;
}

.demo-window.theme-selecting .demo-lemonade-option {
  color: #fff;
  background: #0a64d8;
}

.demo-window.theme-selecting .demo-lemonade-option i,
.demo-window.is-lemonade .demo-lemonade-option i {
  opacity: 1;
}

.demo-app-stage {
  position: relative;
  height: calc(100% - 30px);
  overflow: hidden;
}

.demo-app-view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: opacity 420ms ease, transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 420ms ease;
}

.demo-plumpad-view {
  z-index: 2;
  opacity: 1;
  background: var(--demo-background);
  transform: translateX(0) scale(1);
}

.demo-browser-view {
  z-index: 3;
  opacity: 0;
  background: #fff;
  transform: translateX(5%) scale(0.985);
  pointer-events: none;
}

.demo-window.is-browser .demo-plumpad-view {
  opacity: 0;
  transform: translateX(-5%) scale(0.985);
}

.demo-window.is-browser .demo-browser-view {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.demo-window.is-switching .demo-app-view {
  filter: blur(1px) brightness(0.94);
}

.demo-app-switcher {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 30;
  display: flex;
  gap: 0.9rem;
  padding: 0.8rem;
  opacity: 0;
  background: rgba(239, 237, 235, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(24, 20, 28, 0.22);
  transform: translate(-50%, -46%) scale(0.94);
  transition: opacity 160ms ease, transform 240ms ease;
  pointer-events: none;
}

.demo-window.is-switching .demo-app-switcher {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.demo-switcher-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 3px solid transparent;
  border-radius: 16px;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.demo-browser-icon {
  color: #fff;
  background: linear-gradient(145deg, #69b8ff, #1769d1);
  font-size: 2.3rem;
}

.demo-plumpad-icon img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
}

.demo-window.switch-to-browser .demo-browser-icon,
.demo-window.switch-to-plumpad .demo-plumpad-icon {
  background-color: rgba(10, 100, 216, 0.12);
  border-color: #0a64d8;
}

.demo-titlebar {
  position: relative;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5rem;
  color: var(--demo-text);
  background: var(--demo-surface);
  border-bottom: 1px solid rgba(80, 72, 88, 0.14);
  font-size: 0.92rem;
  transition: color 500ms ease, background-color 500ms ease;
}

.demo-traffic-lights {
  position: absolute;
  top: 50%;
  left: 20px;
  display: flex;
  gap: 8px;
  transform: translateY(-50%);
}

.demo-traffic-lights span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.demo-traffic-lights span:nth-child(1) {
  background: #ff5f57;
}

.demo-traffic-lights span:nth-child(2) {
  background: #febc2e;
}

.demo-traffic-lights span:nth-child(3) {
  background: #28c840;
}

.demo-window-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-editor {
  position: relative;
  height: calc(100% - 54px);
  overflow: hidden;
  background: var(--demo-background);
  transition: background-color 500ms ease;
}

.demo-document,
.demo-code {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: opacity 280ms ease, transform 420ms ease;
}

.demo-document {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem);
  opacity: 1;
  transform: translateY(0);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.58;
}

.demo-document h2 {
  margin: 0 0 1.15rem;
  color: var(--demo-text);
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.demo-document p {
  margin: 0 0 1.05rem;
}

.demo-typed-line {
  min-height: 1.58em;
  font-weight: 400;
}

.demo-format-target {
  border-radius: 3px;
  transition: color 180ms ease, background-color 180ms ease;
}

.demo-window.is-selecting-text .demo-format-target {
  color: #111;
  background: var(--demo-selection);
  box-shadow: 0 0 0 2px var(--demo-selection);
}

.demo-window.has-bold .demo-format-target {
  font-weight: 750;
}

.demo-window.has-italic .demo-format-target {
  font-style: italic;
}

.demo-window.has-underline .demo-format-target {
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.demo-window.has-underline.has-strikethrough .demo-format-target {
  text-decoration-line: underline line-through;
}

.demo-window.has-strikethrough:not(.has-underline) .demo-format-target {
  text-decoration-line: line-through;
}

.demo-pasted-block {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: max-height 520ms ease, margin 520ms ease, opacity 300ms ease, transform 520ms ease;
}

.demo-pasted-block p {
  margin-bottom: 0.45rem;
  font: inherit;
  font-style: normal;
  font-weight: 400;
  text-decoration: none;
}

.demo-window.has-clean-paste .demo-pasted-block {
  max-height: 13rem;
  margin-top: 1.2rem;
  opacity: 1;
  transform: translateY(0);
}

.demo-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--demo-accent);
  animation: demo-caret 850ms steps(1) infinite;
}

.demo-inline-photo {
  width: 100%;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  aspect-ratio: 3 / 1;
  background-image: url("/images/mont-blanc-v1.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  transform: translateY(-18px) scale(0.98);
  transition: max-height 620ms ease, margin 620ms ease, opacity 420ms ease, transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.demo-window.has-image .demo-inline-photo {
  max-height: 235px;
  margin: 1.35rem 0 1.25rem;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.demo-window.has-image .demo-document {
  padding-top: clamp(1.75rem, 3.5vw, 3rem);
}

.demo-window.has-clean-paste .demo-caret {
  display: none;
}

.demo-code {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.25rem);
  opacity: 0;
  transform: translateY(12px);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.82rem, 1.55vw, 1.16rem);
  line-height: 1.85;
}

.demo-code ol {
  margin: 0;
  padding-left: 3.5rem;
  color: var(--demo-muted);
}

.demo-code li {
  padding-left: 1rem;
  border-left: 1px solid color-mix(in srgb, var(--demo-muted) 20%, transparent);
}

.demo-code code {
  color: var(--demo-text);
}

.demo-python-plain,
.demo-python-highlighted {
  position: absolute;
  inset: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.25rem);
  transition: opacity 260ms ease;
}

.demo-python-highlighted {
  opacity: 0;
}

.demo-window.is-python-highlighted .demo-python-plain {
  opacity: 0;
}

.demo-window.is-python-highlighted .demo-python-highlighted {
  opacity: 1;
}

.demo-code-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--demo-accent);
  animation: demo-caret 850ms steps(1) infinite;
}

.demo-window.is-python-highlighted .demo-code-caret {
  display: none;
}

.syntax-name {
  color: #1f2937;
}

.syntax-operator,
.syntax-punctuation {
  color: #64748b;
}

.syntax-string {
  color: #15803d;
}

.syntax-function {
  color: #2563eb;
}

.syntax-prefix,
.syntax-interpolation {
  color: #7c3aed;
}

.demo-window.is-code .demo-document {
  opacity: 0;
  transform: translateY(-12px);
}

.demo-window.is-code .demo-code {
  opacity: 1;
  transform: translateY(0);
}

.demo-browser-tabbar {
  position: relative;
  height: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 4.5rem 0.45rem;
  background: #ecebea;
  border-bottom: 1px solid #d8d6d3;
}

.demo-browser-tab {
  width: min(62%, 470px);
  padding: 0.42rem 1rem;
  overflow: hidden;
  color: #333238;
  background: #fff;
  border: 1px solid #d8d6d3;
  border-bottom-color: #fff;
  border-radius: 8px 8px 0 0;
  font-size: 0.78rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-browser-new-tab {
  margin: 0 0 0.45rem 0.7rem;
  color: #77737a;
  font-size: 1.2rem;
  line-height: 1;
}

.demo-browser-toolbar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  color: #76727a;
  background: #f7f6f5;
  border-bottom: 1px solid #dedbd8;
  font-size: 1rem;
}

.demo-address {
  flex: 1;
  padding: 0.35rem 1rem;
  overflow: hidden;
  color: #626068;
  background: #fff;
  border: 1px solid #dedbd8;
  border-radius: 8px;
  font-size: 0.72rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-messy-page {
  height: calc(100% - 92px);
  padding: clamp(1.5rem, 4.5vw, 3.5rem) clamp(1.5rem, 7vw, 5rem);
  overflow: hidden;
  color: #25232a;
  background: #fffdf8;
  text-align: left;
}

.messy-kicker {
  margin: 0 0 0.55rem;
  color: #de3f74;
  font: 800 0.72rem/1.2 -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.18em;
}

.demo-messy-page h2 {
  margin: 0 0 1rem;
  color: #3c2d91;
  font: 800 clamp(2rem, 5vw, 4.5rem)/0.95 Georgia, serif;
  letter-spacing: -0.055em;
  text-shadow: 3px 3px 0 #f7c75f;
  transform: rotate(-1deg);
}

.messy-copy-source {
  position: relative;
  max-width: 760px;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.messy-copy-source p {
  margin: 0 0 0.75rem;
}

.messy-copy-source p:nth-child(1) {
  color: #175c4c;
  font: 1.15rem/1.45 Georgia, serif;
}

.messy-copy-source p:nth-child(2) {
  color: #743d10;
  font: 1rem/1.35 "Courier New", monospace;
}

.messy-copy-source p:nth-child(2) span {
  color: #d83261;
  font-size: 1.2em;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.messy-copy-source p:nth-child(3) {
  color: #2745a4;
  font: 1.05rem/1.35 -apple-system, BlinkMacSystemFont, sans-serif;
}

.messy-copy-source::after {
  content: "Copied";
  position: absolute;
  top: -1.5rem;
  right: 0;
  padding: 0.25rem 0.5rem;
  opacity: 0;
  color: #fff;
  background: #1d1b20;
  border-radius: 6px;
  font: 650 0.68rem/1.2 -apple-system, BlinkMacSystemFont, sans-serif;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.demo-window.is-copying .messy-copy-source {
  background: rgba(61, 139, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(61, 139, 255, 0.32);
}

.demo-window.is-copying .messy-copy-source::after {
  opacity: 1;
  transform: translateY(0);
}

.messy-link {
  color: #8d35ca;
  font-weight: 700;
  text-decoration: underline wavy #de3f74;
}

.demo-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  margin: 1.25rem auto 0;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.demo-controls button {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.demo-controls button:hover {
  color: var(--text);
}

.demo-controls button[aria-pressed="true"] {
  color: #fff;
  background: var(--text);
  box-shadow: 0 4px 12px rgba(29, 27, 32, 0.12);
}

.demo-controls .demo-replay {
  position: relative;
  margin-left: 0.25rem;
  padding-left: 1rem;
  opacity: 0.72;
}

.demo-controls .demo-replay::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  bottom: 0.45rem;
  left: -0.3rem;
  width: 1px;
  background: var(--border);
}

.demo-controls .demo-replay span {
  display: inline-block;
  margin-right: 0.2rem;
  font-size: 1rem;
  line-height: 0;
  transform: translateY(0.04em);
}

.demo-controls .demo-replay:hover,
.product-demo.demo-is-complete .demo-replay {
  opacity: 1;
}

.closing-note {
  max-width: 900px;
  margin: clamp(6.5rem, 12vw, 10rem) auto 0;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(7rem, 12vw, 10rem);
  text-align: center;
}

.closing-note h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5.5vw, 5.25rem);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-wrap: balance;
}

@keyframes demo-caret {
  0%, 48% {
    opacity: 1;
  }
  49%, 100% {
    opacity: 0;
  }
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5.8vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
  text-wrap: balance;
}

.faq-section h2,
.support-contact h2,
.contact-card h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.15rem, 4vw, 3.65rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.02;
  text-wrap: balance;
}

/* Privacy and support pages */

.prose,
.support-page {
  width: min(100% - 2.5rem, var(--prose-width));
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(7rem, 13vw, 10rem);
}

.support-page {
  width: min(100% - 2.5rem, 960px);
}

.page-intro {
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--border);
}

.page-intro h1 {
  max-width: 780px;
}

.page-intro .lede {
  max-width: 700px;
  margin: 1.75rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1.08rem, 2.3vw, 1.3rem);
  line-height: 1.7;
}

.updated {
  margin: 2rem 0 0;
  color: #8b858d;
  font-size: 0.84rem;
}

.summary-card {
  margin: 3.5rem 0 4.5rem;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background: var(--surface-strong);
  border-radius: 20px;
}

.summary-card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.summary-card ul {
  margin: 0;
}

.prose section:not(.contact-card) {
  margin-top: 3.75rem;
}

.prose section:not(.contact-card) h2 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

.contact-card {
  margin-top: 5rem;
  padding: clamp(2rem, 6vw, 3.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.contact-card h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

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

.support-intro > img {
  margin: 0 auto 1.5rem;
  border-radius: 22%;
  box-shadow: 0 10px 25px var(--shadow);
}

.support-intro h1,
.support-intro .lede {
  margin-right: auto;
  margin-left: auto;
}

.support-intro .action-link {
  margin-top: 2rem;
}

.faq-section {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.faq-heading {
  max-width: 600px;
  margin-bottom: 3rem;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  padding: 1.35rem 3rem 1.35rem 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 620;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 1.18rem;
  right: 0.25rem;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 760px;
  margin: -0.25rem 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.support-contact {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2.5rem, 7vw, 5rem);
  background: var(--surface);
  border-radius: 28px;
}

.support-contact > div:first-child > p:last-child {
  margin: 0;
  color: var(--text-muted);
}

.contact-note {
  align-self: start;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.contact-note ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-note li + li {
  margin-top: 0.45rem;
}

/* Footer */

.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
}

.footer-mascot {
  position: absolute;
  right: max(1.25rem, calc((100vw - var(--site-width)) / 2));
  top: -90px;
  z-index: 2;
  width: 128px;
  height: 90px;
  overflow: hidden;
  pointer-events: none;
}

.footer-mascot img {
  width: 128px;
  height: auto;
  filter: drop-shadow(0 7px 7px rgba(42, 31, 53, 0.12));
}

.footer-inner {
  width: min(100% - 2.5rem, var(--site-width));
  min-height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-inner nav {
  display: flex;
  gap: 1.5rem;
}

.footer-inner nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-inner nav a:hover {
  color: var(--accent);
}

@media (max-width: 940px) {
  .landing {
    padding-top: 6.5rem;
  }

  .support-contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 68px;
  }

  .header-inner,
  main:not(.prose):not(.support-page),
  .prose,
  .support-page,
  .footer-inner {
    width: min(100% - 2rem, var(--site-width));
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    flex-direction: column;
    padding: 0.5rem 1rem 0.75rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 28px var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .landing {
    padding: 4.75rem 0 0;
  }

  .landing h1 {
    font-size: clamp(3.4rem, 18vw, 5.2rem);
  }

  .demo-window {
    aspect-ratio: 4 / 5;
    border-radius: 16px;
  }

  .demo-menubar {
    height: 26px;
    gap: 0.55rem;
    padding: 0 0.65rem;
    font-size: 0.58rem;
  }

  .demo-apple {
    font-size: 0.82rem;
  }

  .demo-menu-secondary {
    display: none;
  }

  .demo-format-trigger,
  .demo-themes-trigger,
  .demo-tools-trigger {
    padding: 0.22rem 0.3rem;
  }

  .demo-format-menu {
    top: 26px;
    left: 8px;
    width: min(270px, calc(100% - 16px));
  }

  .demo-theme-menu {
    top: 26px;
    left: 92px;
    width: 150px;
  }

  .demo-tools-menu {
    top: 26px;
    left: 4px;
    width: min(205px, calc(100% - 136px));
  }

  .demo-language-menu {
    top: 27px;
    right: 4px;
    left: auto;
    width: min(128px, calc(100% - 8px));
  }

  .demo-format-menu > span,
  .demo-theme-menu > span {
    min-height: 26px;
    font-size: 0.68rem;
  }

  .demo-tools-menu > span {
    min-height: 42px;
    padding: 0.25rem 0.45rem;
    font-size: 0.6rem;
  }

  .demo-tools-menu small {
    margin-top: 0.1rem;
    overflow: hidden;
    font-size: 0.49rem;
    text-overflow: ellipsis;
  }

  .demo-language-menu > span {
    min-height: 20px;
    padding: 0.1rem 0.3rem 0.1rem 1.3rem;
    font-size: 0.55rem;
  }

  .demo-language-menu > span > i {
    left: 0.45rem;
  }

  .demo-app-stage {
    height: calc(100% - 26px);
  }

  .demo-titlebar {
    height: 44px;
    padding: 0 3.8rem;
    font-size: 0.78rem;
  }

  .demo-traffic-lights {
    left: 14px;
    gap: 6px;
  }

  .demo-traffic-lights span {
    width: 10px;
    height: 10px;
  }

  .demo-editor {
    height: calc(100% - 44px);
  }

  .demo-browser-tabbar {
    height: 44px;
    padding: 0 3.5rem 0.35rem;
  }

  .demo-browser-tab {
    width: 90%;
    padding: 0.35rem 0.5rem;
    font-size: 0.64rem;
  }

  .demo-browser-new-tab {
    display: none;
  }

  .demo-browser-toolbar {
    height: 36px;
    gap: 0.4rem;
    padding: 0 0.6rem;
  }

  .demo-address {
    padding: 0.28rem 0.5rem;
    font-size: 0.58rem;
  }

  .demo-messy-page {
    height: calc(100% - 80px);
    padding: 1.2rem 1rem;
  }

  .messy-kicker {
    font-size: 0.58rem;
  }

  .demo-messy-page h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.65rem, 11vw, 2.6rem);
    text-shadow: 2px 2px 0 #f7c75f;
  }

  .messy-copy-source p:nth-child(1),
  .messy-copy-source p:nth-child(2),
  .messy-copy-source p:nth-child(3) {
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
  }

  .messy-link {
    font-size: 0.72rem;
  }

  .demo-app-switcher {
    gap: 0.55rem;
    padding: 0.55rem;
    border-radius: 14px;
  }

  .demo-switcher-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .demo-browser-icon {
    font-size: 1.8rem;
  }

  .demo-plumpad-icon img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .demo-document {
    padding: 1.5rem;
    font-size: clamp(0.78rem, 3.5vw, 1rem);
  }

  .demo-document h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.75rem, 9vw, 2.8rem);
  }

  .demo-document p {
    margin-bottom: 0.7rem;
  }

  .demo-window.has-image .demo-document {
    padding-top: 1rem;
  }

  .demo-window.has-image .demo-inline-photo {
    max-height: 105px;
    margin: 0.75rem 0;
  }

  .demo-code {
    padding: 0;
    font-size: clamp(0.66rem, 2.7vw, 0.9rem);
  }

  .demo-python-plain,
  .demo-python-highlighted {
    inset: 1.5rem 0.8rem;
  }

  .demo-code ol {
    padding-left: 2.4rem;
  }

  .demo-code li {
    padding-left: 0.5rem;
  }

  .demo-controls {
    margin-top: 1rem;
  }

  .demo-controls button {
    min-height: 44px;
    padding: 0.45rem 0.65rem;
    font-size: 0.74rem;
  }

  .closing-note {
    margin-top: 5rem;
    padding: 2.5rem 0 7rem;
  }

  .closing-note h2 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .footer-mascot {
    right: 1rem;
    top: -68px;
    width: 96px;
    height: 68px;
  }

  .footer-mascot img {
    width: 96px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2.5rem 0;
  }

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

  .footer-inner nav {
    flex-wrap: wrap;
    row-gap: 0;
  }

  .footer-inner nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

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

  .demo-window,
  .demo-app-view,
  .demo-app-switcher,
  .demo-format-menu,
  .demo-theme-menu,
  .demo-tools-menu,
  .demo-language-menu,
  .demo-format-trigger,
  .demo-themes-trigger,
  .demo-tools-trigger,
  .demo-titlebar,
  .demo-editor,
  .demo-document,
  .demo-code,
  .demo-python-plain,
  .demo-python-highlighted,
  .demo-inline-photo,
  .demo-pasted-block,
  .demo-format-target,
  .messy-copy-source,
  .messy-copy-source::after {
    transition: none;
  }

  .demo-caret {
    animation: none;
  }
}
