:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --soft: #f6f5f8;
  --line: rgba(0, 0, 0, 0.08);
  --ink: #e04baa;
  --ink-soft: #fce9f5;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 56px 0 40px; }
.hero .icon { width: 112px; height: 112px; }
.hero h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; margin: 18px 0 12px; }
.hero p { font-size: 21px; color: var(--muted); margin: 0 auto; max-width: 30em; }
.badge {
  display: inline-block; margin-top: 28px; padding: 12px 22px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px;
}
.badge:hover { text-decoration: none; opacity: 0.9; }
.badge.soon { background: var(--soft); color: var(--muted); cursor: default; }
/* Launch video */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0b0a0f;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-video { margin: 44px auto 0; width: min(100%, 760px); }

/* Download badge, in the style of app store badges */
.dl-badge {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 9px 22px 9px 16px;
  border-radius: 12px; background: #000; color: #fff; border: 1px solid #a6a6a6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); transition: transform 0.15s, box-shadow 0.15s;
}
.dl-badge:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.dl-badge svg { width: 34px; height: 26px; flex: none; }
.dl-badge span { display: grid; text-align: left; line-height: 1.05; }
.dl-badge small { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; }
.dl-badge b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.badge-note { font-size: 13px !important; color: var(--muted); margin-top: 10px !important; }

/* MacBook-style option key, used inline in text */
.key {
  position: relative; display: inline-block; vertical-align: -0.12em;
  width: 1.45em; height: 1.05em; margin: 0 0.05em;
  border-radius: 0.17em; border: 1px solid #0e0e10;
  background: linear-gradient(#2c2c2f, #1c1c1e);
  box-shadow: 0 0.06em 0.12em rgba(0, 0, 0, 0.3);
  color: #e8e8ed; font-family: inherit; font-weight: 500; letter-spacing: 0;
}
.key .sym { position: absolute; top: 0.1em; right: 0.14em; font-size: 0.36em; line-height: 1; }
.key .word { position: absolute; bottom: 0.12em; left: 0.16em; font-size: 0.21em; line-height: 1; }
.key.small { width: 2.6em; height: 1.75em; vertical-align: -0.55em; border-radius: 0.3em; }
.key.small .sym { font-size: 0.75em; top: 0.18em; right: 0.24em; }
.key.small .word { font-size: 0.55em; bottom: 0.22em; left: 0.3em; }

/* Sections */
section { padding: 40px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 26px; letter-spacing: -0.01em; margin: 0 0 20px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: baseline; }
.steps b {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink-soft); color: var(--ink);
  display: grid; place-items: center; font-size: 14px;
}

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature { background: var(--soft); border-radius: 18px; padding: 18px 20px; }
.feature h3 { font-size: 17px; margin: 0 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 18px; }
}

/* Welcome page */
.hero.welcome { padding-top: 36px; }
.demo.small { width: 120px; height: 120px; border-radius: 28px; margin: 0 auto 8px; }
.demo.small svg { width: 64px; height: 64px; }
.lede { color: var(--muted); margin: -8px 0 16px; }
.letters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.letter { background: var(--soft); border-radius: 18px; padding: 16px 10px; text-align: center; }
.letter b { display: block; font-size: 34px; line-height: 1; color: var(--ink); font-weight: 300; margin-bottom: 8px; }
.letter span { color: var(--muted); font-size: 14px; }
.moments { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.moments li { background: var(--soft); border-radius: 16px; padding: 14px 18px; color: var(--muted); }
.moments li b { color: var(--text); }
@media (max-width: 560px) { .letters { grid-template-columns: repeat(2, 1fr); } }

/* Text pages */
.page { padding: 24px 0 40px; }
.page h1 { font-size: 36px; letter-spacing: -0.02em; margin: 16px 0 6px; }
.page .meta { color: var(--muted); margin: 0 0 28px; }
.page h2 { font-size: 21px; margin: 32px 0 8px; }
.page p, .page li { color: var(--text); }
.page ul { padding-left: 22px; }
.callout { background: var(--ink-soft); border-radius: 16px; padding: 16px 20px; margin: 20px 0; }
section .callout { margin-top: 24px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

/* Draw on your screen */
.draw-lede { color: var(--muted); margin: -8px 0 22px; }
.draw-demo { border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.14); }
.draw-demo svg { display: block; width: 100%; height: auto; }
.draw-demo .win { fill: #ffffff; stroke: rgba(0, 0, 0, 0.08); }
.draw-demo .bar { fill: #f2f1f5; }
.draw-demo .side { fill: #f7f6f9; }
.draw-demo .ui rect { fill: #e6e4ea; }
.draw-demo .ui .strong { fill: #c9c6d0; }
.draw-demo .ui .card { fill: #f4f3f7; }
.draw-demo .num { font: 700 30px -apple-system, BlinkMacSystemFont, sans-serif; fill: #3a3940; }
.draw-demo .btn { fill: #0a84ff; }
.draw-demo path, .draw-demo ellipse { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.draw-demo .glow { stroke: #f054b3; stroke-width: 7; filter: drop-shadow(0 0 6px rgba(240, 84, 179, 0.7)); }
.draw-demo .core { stroke: rgba(255, 255, 255, 0.85); stroke-width: 2.2; }
.draw-demo .hl { stroke: rgba(255, 204, 0, 0.45); stroke-width: 22; stroke-linecap: square; }
.draw-demo .ring { stroke: #0a84ff; stroke-width: 6; filter: drop-shadow(0 0 6px rgba(10, 132, 255, 0.6)); }

.draw-demo .arrow path:not(.head) { stroke-dasharray: 1; animation: qd-arrow 9s ease-out infinite; }
.draw-demo .head { animation: qd-head 9s linear infinite; }
.draw-demo .hl { stroke-dasharray: 1; animation: qd-hl 9s ease-out infinite; }
.draw-demo .ring { stroke-dasharray: 1; animation: qd-ring 9s ease-in-out infinite; }
@keyframes qd-arrow { 0% { stroke-dashoffset: 1; opacity: 1; } 12% { stroke-dashoffset: 0; } 82% { opacity: 1; } 90%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes qd-head { 0%, 12% { opacity: 0; } 14%, 82% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes qd-hl { 0%, 26% { stroke-dashoffset: 1; opacity: 1; } 35% { stroke-dashoffset: 0; } 82% { opacity: 1; } 90%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes qd-ring { 0%, 48% { stroke-dashoffset: 1; opacity: 1; } 60% { stroke-dashoffset: 0; } 82% { opacity: 1; } 90%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .draw-demo * { animation: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; }
}

.tools { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { background: var(--soft); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); }
.tools .swatches { display: flex; align-items: center; gap: 5px; }
.tools .swatches i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }

/* Teaching and presenting */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.compare > div { border-radius: 18px; padding: 18px 20px; }
.compare b { display: block; font-size: 15px; margin-bottom: 8px; }
.compare ol { margin: 0; padding-left: 20px; font-size: 15px; display: grid; gap: 6px; }
.compare .old { background: var(--soft); color: var(--muted); }
.compare .new { background: var(--ink-soft); }
.compare .new b { color: var(--ink); }
@media (max-width: 560px) { .compare { grid-template-columns: 1fr; } }

/* Teachers and presenters: a dark full-width band so it reads as its own part of the page. */
.band {
  --text: #f2f0f5; --muted: #aaa4b5; --line: rgba(255, 255, 255, 0.1); --bg: #241c2e;
  --ink: #f472c4; --ink-soft: rgba(240, 84, 179, 0.16);
  position: relative; color: var(--text); background: #15101c;
  box-shadow: 0 0 0 100vmax #15101c; clip-path: inset(0 -100vmax);
  margin: 0 0 40px; padding: 64px 0 24px;
}
.band-head { text-align: center; padding-bottom: 32px; }
.band-head p { margin: 0 0 10px; color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.band-head h2 { margin: 0; font-size: 46px; line-height: 1.08; letter-spacing: -0.025em; }
@media (max-width: 560px) { .band-head h2 { font-size: 34px; } }
.band + section { border-top: 0; }
.band section { border-top: 0; }
.band section + section { border-top: 1px solid var(--line); }
.band .feature, .band .compare .old, .band .tools li { background: var(--bg); }
.band .draw-demo { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.band .tools .swatches i { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }

/* Hero mock-up: hold Option, draw a letter, the thing opens. Always a dark desktop. */
.qd-demo {
  position: relative; container-type: inline-size; aspect-ratio: 16 / 10;
  margin: 44px auto 0; width: min(100%, 760px); border-radius: 18px; overflow: hidden; text-align: left;
  background: radial-gradient(120% 90% at 20% 10%, #3b2350 0%, #1b1426 45%, #0b0a0f 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18); color: #e8e8ed; font-size: 1.6cqw;
  -webkit-user-select: none; user-select: none;
}
.qd-demo + .hero-video { margin-top: 20px; }
.qd-demo p { font-size: inherit; color: inherit; max-width: none; }
.qd-menubar {
  position: absolute; inset: 0 0 auto; height: 3.6cqw; padding: 0 2cqw; display: flex; align-items: center;
  justify-content: flex-end; gap: 1.6cqw; background: rgba(255, 255, 255, 0.07); backdrop-filter: blur(10px);
  font-size: 1.35cqw; color: rgba(255, 255, 255, 0.8);
}
.qd-mb-icon img { display: block; width: 2.1cqw; height: 2.1cqw; }
.qd-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.qd-layer path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.qd-trail { transition: opacity 0.5s; }
.qd-trail.fade { opacity: 0; }
.qd-trail .glow { stroke: #f054b3; stroke-width: 7; filter: drop-shadow(0 0 5px rgba(240, 84, 179, 0.9)); }
.qd-trail .core { stroke: rgba(255, 255, 255, 0.9); stroke-width: 2; }
.qd-trail.done .glow { animation: qd-flash 0.45s ease-out; }
@keyframes qd-flash { 50% { stroke-width: 11; } }
.qd-layer .qd-cursor { fill: #fff; stroke: #000; stroke-width: 1.4; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }

.qd-key {
  position: absolute; left: 3cqw; bottom: 3.5cqw; font-size: 5.4cqw; margin: 0;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.qd-key.down {
  transform: translateY(0.05em); border-color: #f054b3;
  box-shadow: 0 0 0 0.04em #f054b3, 0 0 0.35em rgba(240, 84, 179, 0.8);
}
.qd-chip {
  position: absolute; left: 26.2%; top: 76%; transform: translate(-50%, 0.6cqw); white-space: nowrap;
  display: flex; align-items: center; gap: 1cqw; padding: 0.8cqw 1.8cqw 0.8cqw 0.9cqw; border-radius: 99px;
  background: rgba(30, 24, 38, 0.85); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 1.9cqw; font-weight: 500;
  opacity: 0; transition: opacity 0.25s, transform 0.25s;
}
.qd-chip.on { opacity: 1; transform: translate(-50%, 0); }
.qd-chip b {
  display: grid; place-items: center; width: 3.2cqw; height: 3.2cqw; border-radius: 50%;
  background: #f054b3; color: #fff; font-size: 1.8cqw;
}
.qd-chip i { font-style: normal; color: rgba(255, 255, 255, 0.5); }

/* Windows that open */
.qd-win, .qd-toast {
  position: absolute; opacity: 0; transform: scale(0.92); transition: opacity 0.3s, transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.qd-win.open, .qd-toast.open { opacity: 1; transform: none; }
.qd-win {
  left: 47%; top: 11%; width: 49%; height: 74%; border-radius: 1.4cqw; overflow: hidden;
  background: #232227; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, 0.55);
  display: flex; flex-direction: column; transform-origin: 30% 50%;
}
.qd-title {
  flex: none; height: 4.2cqw; display: flex; align-items: center; gap: 0.7cqw; padding: 0 1.4cqw;
  background: #2d2c32; border-bottom: 1px solid rgba(0, 0, 0, 0.4); font-size: 1.4cqw; font-weight: 600;
}
.qd-title i { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #ff5f57; }
.qd-title i:nth-child(2) { background: #febc2e; }
.qd-title i:nth-child(3) { background: #28c840; }
.qd-title span { flex: 1; text-align: center; margin-right: 4cqw; }
.qd-title .qd-url { font-weight: 400; color: rgba(255, 255, 255, 0.75); background: #1c1b20; border-radius: 0.7cqw; padding: 0.5cqw 0; margin: 0 3cqw 0 2cqw; }
.qd-body { flex: 1; min-height: 0; }

.qd-chat { display: flex; }
.qd-list { width: 38%; border-right: 1px solid rgba(255, 255, 255, 0.08); padding: 1cqw; }
.qd-list p { display: flex; align-items: center; gap: 1cqw; margin: 0 0 1.4cqw; }
.qd-list b { flex: none; width: 3.2cqw; height: 3.2cqw; border-radius: 50%; }
.qd-list s { flex: 1; height: 0.9cqw; border-radius: 1cqw; background: rgba(255, 255, 255, 0.14); }
.qd-thread { flex: 1; display: flex; flex-direction: column; gap: 1.2cqw; padding: 2cqw 1.6cqw; background: #18171b; }
.qd-thread em { align-self: flex-start; font-style: normal; padding: 0.8cqw 1.3cqw; border-radius: 1.2cqw; background: #2f2e34; }
.qd-thread .me { align-self: flex-end; background: #1f7a4d; }

.qd-favs { padding: 2.6cqw 3cqw; }
.qd-favs span { display: block; font-weight: 600; margin-bottom: 1.6cqw; }
.qd-favs div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqw; }
.qd-favs b { aspect-ratio: 1; border-radius: 1.2cqw; background: #3a3940; }
.qd-favs b:nth-child(3n + 1) { background: #4b3a5c; }
.qd-favs b:nth-child(4n + 2) { background: #2f4a5c; }

.qd-files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; padding: 2.4cqw; align-content: start; font-size: 1.3cqw; text-align: center; color: rgba(255, 255, 255, 0.8); }
.qd-files p { margin: 0; }
.qd-files b { display: block; width: 5cqw; height: 6cqw; margin: 0 auto 0.6cqw; border-radius: 0.6cqw; background: #e8e8ed; }
.qd-files .pdf { background: linear-gradient(#e8e8ed 70%, #ff5f57 70%); }
.qd-files .img { background: linear-gradient(160deg, #8fd3fe, #3a7bd5); }
.qd-files .zip { background: repeating-linear-gradient(#c9c6d0 0 0.6cqw, #e8e8ed 0.6cqw 1.2cqw); }
.qd-files .dmg { background: #f054b3; }

.qd-repo { padding: 2cqw 2.4cqw; background: #0d1117; }
.qd-gh { width: 5cqw; height: 5cqw; border-radius: 50%; background: #e8e8ed; margin-bottom: 2cqw; }
.qd-repo p { height: 3.6cqw; margin: 0 0 1cqw; border-radius: 0.8cqw; border: 1px solid #30363d; }

.qd-toast {
  left: 50%; top: 40%; display: grid; gap: 0.4cqw; padding: 1.6cqw 2.4cqw; border-radius: 1.4cqw;
  background: rgba(35, 34, 39, 0.95); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, 0.55);
  font-size: 2cqw; font-weight: 600;
}
.qd-toast b { font-size: 1.3cqw; color: #f054b3; text-transform: uppercase; letter-spacing: 0.06em; }
.qd-toast span { font-size: 1.3cqw; font-weight: 400; color: rgba(255, 255, 255, 0.6); }

/* Reviews */
.rv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.rv-head h2 { margin: 0; }
.rv-avg { display: flex; align-items: baseline; gap: 8px; margin: 0; color: var(--muted); font-size: 15px; }
.rv-avg b { color: var(--text); font-size: 17px; }
.stars { color: var(--ink); letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #dcd9e0; }
.rv-list { display: grid; gap: 12px; }
.rv { background: var(--soft); border-radius: 18px; padding: 16px 20px; }
.rv header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.rv header b { font-weight: 600; }
.rv time { color: var(--muted); font-size: 13px; margin-left: auto; }
.rv p { margin: 6px 0 0; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.rv-empty { color: var(--muted); margin: 0; }
.rv-more { margin-top: 12px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; padding: 0; cursor: pointer; }

.rv-form { margin-top: 28px; display: grid; gap: 10px; }
.rv-form h3 { font-size: 17px; margin: 0; }
.rv-form input, .rv-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--soft);
  border: 1px solid transparent; border-radius: 12px; padding: 10px 14px; resize: vertical;
}
.rv-form input:focus, .rv-form textarea:focus { outline: none; border-color: var(--ink); background: var(--bg); }
.rv-form .rv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rv-pick { display: flex; gap: 2px; }
.rv-pick label { position: relative; cursor: pointer; font-size: 32px; line-height: 1; color: #dcd9e0; transition: color 0.1s, transform 0.1s; }
.rv-pick input, .rv-pick i { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; overflow: hidden; }
.rv-pick label.on { color: var(--ink); }
.rv-pick label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.rv-pick label:active { transform: scale(0.9); }
.rv-send { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rv-send button {
  border: 0; border-radius: 999px; background: var(--text); color: var(--bg); font: inherit; font-weight: 600;
  font-size: 15px; padding: 10px 22px; cursor: pointer;
}
.rv-send button:disabled { opacity: 0.5; cursor: default; }
#rv-msg { font-size: 14px; color: var(--muted); }
#rv-msg.err { color: #d33; }
