/* OnDraw website. Light and quiet: type does the work, the product is the only color. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #d2d2d7;
  --line-2: #e8e8ed;
  --accent: #6339f5;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 30px 60px -24px rgba(0, 0, 0, 0.28);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--text); font-weight: 600; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
::selection { background: rgba(99, 57, 245, 0.18); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line-2); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 54px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav-links { margin-left: auto; display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-2); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links button.link { font: inherit; font-size: 14px; color: var(--text-2); background: none; border: 0; padding: 0; cursor: pointer; }
.nav-links button.link:hover { color: var(--text); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 17px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; letter-spacing: -0.01em;
  background: var(--text); color: #fff; transition: background 0.2s;
}
.btn:hover { background: #000; color: #fff; text-decoration: none; }
.nav-links a.btn { color: #fff; }
.btn-small { height: 30px; padding: 0 14px; font-size: 13px; }
.more { font: inherit; font-size: 19px; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }
.more::after { content: " ›"; }
.more:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: 60px 0 100px; text-align: center; }
.hero .app-icon { width: 96px; height: 96px; margin: 0 auto 24px; }
h1 { font-size: clamp(48px, 7.4vw, 96px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; margin: 0; }
h1 .quiet { color: var(--text-3); }
.lede { font-size: clamp(19px, 2vw, 24px); line-height: 1.38; color: var(--text-2); max-width: 680px; margin: 22px auto 30px; letter-spacing: -0.015em; }
.cta { display: flex; gap: 30px; align-items: center; justify-content: center; flex-wrap: wrap; }
.fine { color: var(--text-3); font-size: 14px; margin-top: 22px; }

/* ---------- MacBook and display frames ---------- */
.macbook { max-width: 1040px; margin: 58px auto 0; }
.macbook .lid { background: #0c0c0e; border-radius: 2.1% / 3.3%; padding: 1.7% 1.7% 2.4%; box-shadow: 0 0 0 1px #2c2c30 inset, 0 40px 70px -40px rgba(0, 0, 0, 0.55); }
.macbook .base { position: relative; height: clamp(10px, 1.6vw, 18px); margin: 0 -6.5%;
  background: linear-gradient(#e6e7ea, #c4c6ca 50%, #8f9196); border-radius: 0 0 50% 50% / 0 0 100% 100%;
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.4); }
.macbook .base::before { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 42%; transform: translateX(-50%);
  background: linear-gradient(#b3b5b9, #cfd1d4); border-radius: 0 0 10px 10px; }
.display { background: #0c0c0e; border-radius: 16px; padding: 8px; box-shadow: 0 0 0 1px #2c2c30 inset, var(--shadow); }
.display .screen { border-radius: 9px; }
.screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111; container-type: inline-size; }
.screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.screen > .toolbar-shot { position: absolute; inset: auto; left: 21.25%; top: 4%; width: 57.5%; height: auto; object-fit: fill;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35)); transform: translateY(-140%); opacity: 0; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s; }
.playing > .toolbar-shot, .static > .toolbar-shot { transform: none; opacity: 1; }
.demo-caption { position: absolute; left: 50%; top: 10%; transform: translate(-50%, -10px); opacity: 0;
  background: rgba(13, 13, 13, 0.84); color: #fff; font-weight: 700; font-size: 2.78cqw; padding: 1.15cqw 2.2cqw;
  border-radius: 2cqw; white-space: nowrap; transition: opacity 0.3s, transform 0.4s var(--ease); }
.demo-caption.on { opacity: 1; transform: translate(-50%, 0); }
.ink { fill: none; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1.5px 2.5px rgba(0, 0, 0, 0.42)); }
.pop { transform-box: fill-box; transform-origin: center; transform: scale(0); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s; filter: drop-shadow(0 1.5px 2.5px rgba(0, 0, 0, 0.42)); }
.pop.on { transform: scale(1); opacity: 1; }
.demo-layer { transition: opacity 0.6s ease; }
.demo-layer.fading { opacity: 0; }
.ripple { fill: rgba(255, 59, 48, 0.18); stroke: rgba(255, 59, 48, 0.95); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ripple.go { animation: ripple 0.55s ease-out; }
@keyframes ripple { from { opacity: 1; transform: scale(0.25); } to { opacity: 0; transform: scale(1.3); } }
.facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 0; margin-top: 44px; color: var(--text-2); font-size: 15px; }
.facts span { padding: 0 20px; }
.facts span + span { border-left: 1px solid var(--line); }

/* ---------- Sections ---------- */
section { padding: 120px 0; }
section.alt { background: var(--bg-alt); }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 17px; margin: 0 0 12px; }
h2 { font-size: clamp(36px, 4.8vw, 56px); line-height: 1.07; letter-spacing: -0.038em; font-weight: 700; margin: 0 0 22px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head p { color: var(--text-2); font-size: 21px; line-height: 1.43; margin: 0; }
.copy p { color: var(--text-2); font-size: 21px; line-height: 1.43; margin: 0; letter-spacing: -0.015em; }
.copy p + p { margin-top: 18px; }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.feature > * { min-width: 0; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .copy { order: 2; }
.keys { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
kbd {
  display: inline-block; min-width: 2.2em; text-align: center; font: 500 15px/1 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text);
  background: linear-gradient(#fff, #f4f4f6); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px; padding: 6px 9px;
}
.hint { margin-top: 24px; color: var(--text-3); font-size: 15px; }

/* Interactive spotlight */
.spot-screen { cursor: none; }
.spot-dim { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--x, 62%) var(--y, 45%), transparent 0, transparent 7.2cqw, rgba(0, 0, 0, 0.62) 9.2cqw); }
.screen > .fake-cursor { position: absolute; inset: auto; left: var(--x, 62%); top: var(--y, 45%); width: 2.3cqw; height: auto; pointer-events: none;
  transform: translate(-6%, -4%); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
.spot-ripple { position: absolute; width: 4cqw; height: 4cqw; border-radius: 50%; border: 0.22cqw solid rgba(255, 59, 48, 0.95); background: rgba(255, 59, 48, 0.18);
  transform: translate(-50%, -50%) scale(0.25); opacity: 0; pointer-events: none; }
.spot-ripple.go { animation: spot-ripple 0.55s ease-out; }
@keyframes spot-ripple { from { opacity: 1; transform: translate(-50%, -50%) scale(0.25); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.3); } }

/* Keystroke pill, as OnDraw draws it */
.keys-pill { position: absolute; left: 50%; bottom: 9.4%; transform: translateX(-50%); background: rgba(13, 13, 13, 0.8); color: #fff;
  font-weight: 600; font-size: 3.05cqw; padding: 0.9cqw 1.85cqw; border-radius: 1.3cqw; white-space: pre; letter-spacing: 0.02em; transition: opacity 0.3s; }
.keys-pill.hide { opacity: 0; }

/* Command with copy button */
.cmd { display: flex; align-items: center; gap: 10px; margin-top: 30px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 8px 8px 16px; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding: 6px 0;
  font: 13px/1.5 "SF Mono", ui-monospace, Menlo, Consolas, monospace; color: var(--text); }
.cmd code::-webkit-scrollbar { display: none; }
.cmd .prompt { color: var(--text-3); user-select: none; }
.cmd button { flex: none; height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text);
  font: 500 13px/1 -apple-system, BlinkMacSystemFont, sans-serif; cursor: pointer; }
.cmd button:hover { background: var(--bg-alt); }

/* ---------- Details grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--bg-alt); border-radius: 24px; padding: 34px 32px; }
.tile svg.ico { width: 30px; height: 30px; color: var(--text); }
.tile h3 { font-size: 21px; letter-spacing: -0.02em; font-weight: 600; margin: 20px 0 8px; }
.tile p { color: var(--text-2); margin: 0; font-size: 17px; }
.tile.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: center; }
.tile.wide img { border-radius: 10px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 14px 30px -16px rgba(0, 0, 0, 0.3); }
.swatches { display: flex; gap: 8px; margin-top: 18px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12) inset; }

/* ---------- Privacy ---------- */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: center; max-width: 980px; margin: 0 auto; }
.three svg { width: 34px; height: 34px; color: var(--text); margin: 0 auto 16px; display: block; }
.three h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.three p { color: var(--text-2); margin: 0; }

/* ---------- Pricing ---------- */
.price-card { max-width: 480px; margin: 0 auto; text-align: center; background: var(--bg-alt); border-radius: 30px; padding: 52px 44px 44px; }
.price-card img { width: 84px; height: 84px; margin: 0 auto 14px; }
.price-card .name { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.price { font-size: 72px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin: 18px 0 8px; }
.price-card .once { color: var(--text-2); margin: 0; }
.checks { list-style: none; padding: 26px 0 0; margin: 28px 0 32px; border-top: 1px solid var(--line-2); text-align: left; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: baseline; color: var(--text); }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.price-card .btn { width: 100%; }
.price-card .fine { margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line-2); padding: 22px 0; }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { font-weight: 600; font-size: 19px; letter-spacing: -0.015em; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 24px; line-height: 1; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-2); margin: 12px 0 0; font-size: 17px; max-width: 680px; }

/* ---------- Closing ---------- */
.closing { text-align: center; }
.closing img { width: 96px; height: 96px; margin: 0 auto 26px; }
.closing h2 { max-width: 14ch; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
footer { background: var(--bg-alt); border-top: 1px solid var(--line-2); padding: 26px 0 40px; color: var(--text-3); font-size: 13px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { margin-left: auto; display: flex; gap: 22px; }
footer a { color: var(--text-2); }

/* ---------- Draw on this page (looks like OnDraw's own toolbar) ---------- */
#page-ink { position: fixed; inset: 0; z-index: 90; width: 100vw; height: 100vh; pointer-events: none; touch-action: none; }
.inking #page-ink { pointer-events: auto; cursor: crosshair; }
.web-toolbar { position: fixed; z-index: 100; top: 14px; left: 50%; transform: translate(-50%, -160%); opacity: 0;
  display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 16px; max-width: calc(100vw - 20px); overflow-x: auto;
  background: rgba(26, 26, 28, 0.95); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 16px 36px rgba(0, 0, 0, 0.3);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s; scrollbar-width: none; }
.inking .web-toolbar { transform: translate(-50%, 0); opacity: 1; }
.web-toolbar button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 52px; padding: 6px 6px 5px; border: 0; border-radius: 10px;
  background: transparent; color: #e8e8ee; font: 600 10.5px/1 -apple-system, BlinkMacSystemFont, sans-serif; cursor: pointer; }
.web-toolbar button svg { width: 20px; height: 20px; }
.web-toolbar button:hover { background: rgba(255, 255, 255, 0.08); }
.web-toolbar button.on { background: #0a84ff; color: #fff; }
.web-toolbar button.close { color: #ff736b; }
.web-toolbar .sep { width: 1px; height: 34px; background: rgba(255, 255, 255, 0.14); margin: 0 5px; flex: none; }
.web-toolbar .dot { flex: none; width: 24px; height: 24px; min-width: 0; padding: 0; margin: 0 3px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15); }
.web-toolbar .dot.on { box-shadow: 0 0 0 2px #1a1a1c, 0 0 0 4px #fff; }
.ink-toast { position: fixed; z-index: 100; left: 50%; bottom: 26px; transform: translateX(-50%); background: rgba(13, 13, 13, 0.86); color: #fff; padding: 11px 18px;
  border-radius: 12px; font-weight: 600; font-size: 14.5px; opacity: 0; transition: opacity 0.3s; pointer-events: none; white-space: nowrap; }
.inking .ink-toast.show { opacity: 1; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Support and privacy pages ---------- */
.doc { max-width: 760px; padding: 72px 24px 110px; margin: 0 auto; }
.doc h1 { font-size: clamp(40px, 6vw, 56px); margin: 0 0 18px; }
.doc h2 { font-size: 28px; letter-spacing: -0.025em; margin: 52px 0 12px; }
.doc p, .doc li { color: #424245; font-size: 17px; }
.doc .meta { color: var(--text-3); }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line-2); }
.doc th { color: var(--text-2); font-weight: 600; }
.doc pre { background: var(--bg-alt); color: var(--text); padding: 16px 18px; border-radius: 12px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 13px/1.55 "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.doc code { font: 0.88em "SF Mono", ui-monospace, Menlo, Consolas, monospace; background: var(--bg-alt); padding: 1px 5px; border-radius: 5px; }
.doc kbd { font-size: 14px; padding: 4px 7px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 44px; }
  .feature.flip .copy { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .tile.wide { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links a:not(.btn), .nav-links button.link { display: none; }
  .hero { padding: 56px 0 80px; }
  .hero .app-icon { width: 88px; height: 88px; }
  section { padding: 88px 0; }
  .macbook { margin-top: 56px; }
  .grid, .three { grid-template-columns: 1fr; }
  .three { gap: 40px; }
  .tile.wide { grid-column: auto; }
  .facts { flex-direction: column; align-items: center; }
  .facts span + span { border-left: 0; }
  .display { padding: 5px; border-radius: 12px; }
  .display .screen { border-radius: 7px; }
  .price-card { padding: 42px 26px 32px; }
  .copy p, .section-head p { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01s !important; animation-duration: 0.01s !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
