:root {
  --bg: #faf8f5;
  --bg-2: #f2ede7;
  --bg-3: #e8e0d6;
  --ink: #2c2825;
  --ink-2: #6b6560;
  --ink-3: #9c958e;
  --accent: #c07850;
  --accent-ink: #a8633e;
  --accent-soft: rgba(192, 120, 80, 0.12);
  --on: #7a9b6d;
  --off: #c47a6a;
  --amb: #c4a96a;
  --sticky: #f6e7c4;
  --serif: "Lora", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --shadow-win: 0 1px 2px rgba(44, 40, 37, 0.06), 0 12px 32px rgba(44, 40, 37, 0.12), 0 32px 80px rgba(44, 40, 37, 0.08);
  --shadow-soft: 0 1px 3px rgba(44, 40, 37, 0.06), 0 8px 24px rgba(44, 40, 37, 0.08);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
::selection { background: var(--accent-soft); }

.skip-link { position: absolute; left: -999px; top: 8px; }
.skip-link:focus { left: 12px; z-index: 100; background: var(--ink); color: var(--bg); padding: 6px 12px; border-radius: 8px; }

/* menu bar */
.menubar {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 40px; padding: 0 20px;
  background: rgba(250, 248, 245, 0.78);
  backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 rgba(44, 40, 37, 0.06);
  font-size: 14px;
}
.menubar-left { display: flex; align-items: center; gap: 22px; }
.menubar-brand { font-weight: 600; text-decoration: none; }
.menubar-links { display: flex; gap: 18px; }
.menubar-links a, .menubar-cta { text-decoration: none; color: var(--ink-2); transition: color 200ms var(--ease); }
.menubar-links a:hover { color: var(--ink); }
.menubar-mark { opacity: 0.85; }
.menubar-right { display: flex; align-items: center; justify-content: flex-end; gap: 16px; color: var(--ink-2); }
.menubar-status { display: flex; align-items: center; gap: 12px; }
.menubar-clock { font-variant-numeric: tabular-nums; }
.menubar-cta { color: var(--accent-ink); font-weight: 500; }
.menubar-cta:hover { color: var(--ink); }

/* desktop hero */
.desktop {
  position: relative;
  padding: 150px 20px 96px;
  background-image: radial-gradient(rgba(44, 40, 37, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}
.desktop-items { position: absolute; inset: 0 0 auto 0; height: 720px; pointer-events: none; }
.desktop-items > * {
  position: absolute; left: var(--x); top: var(--y);
  transform: rotate(var(--r, 0deg));
  pointer-events: auto; touch-action: none; cursor: grab; user-select: none;
  animation: drop-in 700ms var(--ease) both;
}
.desktop-items > *:nth-child(2) { animation-delay: 80ms; }
.desktop-items > *:nth-child(3) { animation-delay: 160ms; }
.desktop-items > *:nth-child(4) { animation-delay: 240ms; }
.desktop-items > *:nth-child(5) { animation-delay: 320ms; }
.desktop-items > *:nth-child(6) { animation-delay: 400ms; }
.desktop-items > *:nth-child(7) { animation-delay: 480ms; }
.desktop-items > .dragging { cursor: grabbing; z-index: 10; }
@keyframes drop-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

.win {
  position: relative; margin: 0;
  border-radius: 12px; background: var(--bg);
  box-shadow: var(--shadow-win);
}
.win > img { border-radius: 12px; }
.win::before {
  content: ""; position: absolute; top: 12px; left: 13px; z-index: 1;
  width: 11px; height: 11px; border-radius: 50%;
  background: #ee6a5f;
  box-shadow: 18px 0 0 #f5be4f, 36px 0 0 #62c554;
}
.win figcaption {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  text-align: center; font-size: 11px; color: var(--ink-3);
}
.win-float { width: var(--w); }
.win-float::before { top: 8px; left: 9px; width: 8px; height: 8px; box-shadow: 13px 0 0 #f5be4f, 26px 0 0 #62c554; }

.toast {
  display: flex; gap: 10px; align-items: flex-start;
  width: 330px; padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  font-size: 13px; line-height: 1.4;
}
.toast img { border-radius: 8px; flex-shrink: 0; }
.toast p { margin: 0; }
.toast-head { display: flex; justify-content: space-between; margin-bottom: 2px !important; }
.toast-head span { color: var(--ink-3); font-size: 12px; }

.sticky {
  width: 196px; padding: 14px 16px 16px;
  background: var(--sticky); border-radius: 4px;
  box-shadow: 0 10px 24px rgba(44, 40, 37, 0.12);
  font-family: var(--serif); font-style: italic; font-size: 15px;
}
.sticky p { margin: 0 0 6px; font-weight: 500; }
.sticky ul { margin: 0; padding-left: 18px; }

.file { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; font-size: 12px; color: var(--ink-2); }
.file-folder { width: 56px; height: 44px; border-radius: 6px; background: linear-gradient(#e2b48f, #d49a6e); position: relative; box-shadow: 0 4px 10px rgba(44, 40, 37, 0.1); }
.file-folder::before { content: ""; position: absolute; top: -6px; left: 0; width: 24px; height: 10px; border-radius: 4px 4px 0 0; background: #d9a57d; }
.file-doc { width: 40px; height: 50px; border-radius: 4px; background: #fff; box-shadow: 0 4px 10px rgba(44, 40, 37, 0.12); background-image: repeating-linear-gradient(transparent 0 9px, var(--bg-3) 9px 10px); background-size: 70% 100%; background-repeat: no-repeat; background-position: center 10px; }

.score {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 22px; border-radius: 16px;
  background: #fff; box-shadow: var(--shadow-soft);
}
.score span { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--accent); }
.score small { margin-top: 6px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

.hero { position: relative; z-index: 2; text-align: center; max-width: 640px; margin: 0 auto; pointer-events: none; }
.hero > * { pointer-events: auto; }
.wordmark { font-size: clamp(76px, 13vw, 132px); line-height: 1; letter-spacing: -0.035em; }
.hero-tagline { margin: 18px 0 30px; font-size: 19px; color: var(--ink-2); }

.downloads { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 16px rgba(192, 120, 80, 0.32); }
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px rgba(192, 120, 80, 0.38); }
.btn-quiet { background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); }
.btn-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
.downloads:has(.waitlist) { flex-direction: column; align-items: center; gap: 0; }
.waitlist {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  width: 100%; max-width: 440px; padding: 6px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-soft);
}
.waitlist input[type="email"] {
  flex: 1 1 180px; min-width: 0; padding: 10px 16px; border: 0; border-radius: 999px;
  background: transparent; font: inherit; font-size: 15px; color: var(--ink); outline: none;
}
.waitlist input[type="email"]::placeholder { color: var(--ink-3); }
.waitlist:focus-within { box-shadow: var(--shadow-soft), 0 0 0 3px var(--accent-soft); }
.waitlist .btn { border: 0; cursor: pointer; font-family: inherit; }
.waitlist .btn:disabled { opacity: 0.7; cursor: default; }
.waitlist-msg { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--ink-2); text-align: center; }
.waitlist-msg:empty { display: none; }
.waitlist.done { background: transparent; box-shadow: none; }
.waitlist.done input, .waitlist.done .btn { display: none; }
.waitlist.done .waitlist-msg { padding: 12px 0; font-family: var(--serif); font-size: 18px; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.win-hero { max-width: 1000px; margin: 150px auto 0; z-index: 2; }

/* intro */
.intro { max-width: 760px; margin: 0 auto; padding: 64px 20px 32px; text-align: center; }
.intro p { margin: 0; font-family: var(--serif); font-size: clamp(22px, 3vw, 28px); line-height: 1.5; color: var(--ink-2); }
.intro em { color: var(--ink); font-style: italic; }

/* features */
.features { max-width: 1080px; margin: 0 auto; padding: 48px 20px 40px; }
.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 72px; align-items: center; padding: 56px 0; }
.feature .win { max-width: 600px; }
.feature .win-tall { max-width: 380px; justify-self: center; }
.feature-flip .win { order: 2; }
.feature-copy h2 { font-size: 30px; line-height: 1.2; }
.feature-copy p { margin: 14px 0 0; max-width: 380px; color: var(--ink-2); }
.toast-pinned { position: absolute; right: -36px; top: 46%; width: 300px; }

.feature .win-compact { max-width: 440px; justify-self: center; }
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js [data-reveal].shown { opacity: 1; transform: none; }

/* notes */
.notes-wrap { padding: 64px 20px; }
.notes { max-width: 640px; margin: 0 auto; border-radius: 12px; background: #fffdf8; box-shadow: var(--shadow-win); overflow: hidden; }
.notes-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--bg-2); font-size: 12px; color: var(--ink-3); }
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ee6a5f; }
.lights i:nth-child(2) { background: #f5be4f; }
.lights i:nth-child(3) { background: #62c554; }
.notes-body { padding: 32px 40px 36px; }
.notes-kicker, .kicker { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.notes h2 { font-size: 28px; }
.notes ul { margin: 22px 0 26px; padding-left: 20px; }
.notes li { margin-bottom: 12px; color: var(--ink-2); }
.notes li::marker { color: var(--accent); }
.notes-link { color: var(--accent-ink); font-weight: 500; }

/* pricing */
.pricing, .faq, .final { max-width: 760px; margin: 0 auto; padding: 72px 20px; text-align: center; }
.pricing h2, .faq h2, .final h2 { font-size: clamp(30px, 4.4vw, 42px); }
.plan { max-width: 360px; margin: 36px auto 0; padding: 32px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); }
.plan-price { margin: 0; font-family: var(--serif); font-size: 56px; line-height: 1; }
.plan ul { list-style: none; margin: 24px 0 28px; padding: 0; color: var(--ink-2); }
.plan li { padding: 6px 0; }
.plan li::before { content: "✓"; margin-right: 10px; color: var(--on); }
.pricing-note { margin: 22px 0 0; font-size: 14px; color: var(--ink-3); }

/* faq */
.faq-list { margin-top: 32px; text-align: left; }
.faq details { border-radius: 12px; background: var(--bg-2); margin-bottom: 10px; transition: background 200ms var(--ease); }
.faq details[open] { background: #fff; box-shadow: var(--shadow-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; font-size: 20px; color: var(--ink-3); transition: rotate 250ms var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }

/* final + footer */
.final img { margin: 0 auto 20px; border-radius: 16px; box-shadow: var(--shadow-soft); }
.final .downloads { margin-top: 28px; }
.footer { max-width: 1080px; margin: 0 auto; padding: 48px 20px 40px; border-top: 1px solid var(--bg-3); }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-cols nav { display: flex; flex-direction: column; gap: 6px; }
.footer-cols a { text-decoration: none; color: var(--ink-2); font-size: 14px; }
.footer-cols a:hover { color: var(--ink); }
.footer-head { margin: 0 0 6px; font-weight: 600; font-size: 14px; }
.footer-small { margin: 0; font-size: 12px; color: var(--ink-3); }

@media (max-width: 1100px) {
  .desktop-items .win-float:nth-child(2), .desktop-items .file, .desktop-items .score { display: none; }
}
@media (max-width: 860px) {
  .menubar { grid-template-columns: 1fr auto; padding: 0 16px; }
  .menubar-mark, .menubar-status, .menubar-clock { display: none; }
  .menubar-links { gap: 14px; }
  .desktop { padding-top: 72px; }
  .desktop-items { display: none; }
  .win-hero { margin-top: 56px; }
  .win::before { top: 8px; left: 9px; width: 7px; height: 7px; box-shadow: 11px 0 0 #f5be4f, 22px 0 0 #62c554; }
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
  .feature-flip .win { order: 0; }
  .toast-pinned { position: static; width: auto; margin: 12px; }
  .notes-body { padding: 26px 22px 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .menubar-links a:not(:first-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
