:root {
  --fog: #F3F4F6;
  --paper: #FFFFFF;
  --ink: #171A21;
  --slate: #5F6675;
  --line: #D9DCE2;
  --clove: #6E3B2C;
  --saffron: #E2A33B;
  --saffron-soft: #F6E3B9;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

kbd {
  font-family: var(--body);
  font-size: 0.85em;
  padding: 0.05em 0.45em 0.1em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--paper);
  vertical-align: 0.05em;
}
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--paper);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 90;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 600; max-width: 24ch; }
h3 { font-size: 1.15rem; font-weight: 600; font-variation-settings: "wdth" 100; }

p { margin: 0; max-width: var(--measure); }

/* Header */
.top {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px var(--gutter);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  margin-right: auto;
}
.top nav { display: flex; gap: 26px; }
.top nav a { text-decoration: none; color: var(--slate); font-size: 0.95rem; }
.top nav a:hover { color: var(--ink); }

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 10px;
  line-height: 1;
}
.button:hover { background: var(--clove); }
.button.small { padding: 10px 16px; font-size: 0.92rem; }

/* Hero */
main > section { padding: 0 var(--gutter); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-top: clamp(28px, 5vh, 72px);
  padding-bottom: clamp(60px, 9vh, 120px);
}
.hero h1 kbd { font-size: 0.62em; vertical-align: 0.12em; padding: 0 0.32em 0.06em; border-radius: 10px; }
.lede { margin-top: 26px; font-size: 1.15rem; color: var(--slate); max-width: 46ch; }
.hero-actions { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hero-meta { color: var(--slate); font-size: 0.95rem; }

/* Demo */
.demo {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 420px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--fog);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.demo-title { margin-left: 8px; font-size: 0.85rem; color: var(--slate); }
.demo-reset {
  margin-left: auto;
  font: inherit;
  font-size: 0.85rem;
  color: var(--slate);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
}
.demo-hint {
  position: absolute;
  left: 18px; bottom: 16px;
  font-size: 0.9rem;
  color: var(--slate);
  max-width: 36ch;
  pointer-events: none;
}
.desk {
  display: grid;
  grid-template-columns: repeat(auto-fill, 128px);
  gap: 18px;
  padding: 30px 26px 90px;
}
.file {
  width: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 6px;
  border-radius: 10px;
  cursor: grab;
  text-align: center;
}
.file:hover { background: var(--fog); }
.file.dragging { opacity: 0.35; }
.file.renamed .file-name { color: var(--clove); font-weight: 600; }
.file.new { animation: pop 320ms cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.file-icon {
  width: 56px; height: 68px;
  border-radius: 6px;
  background: linear-gradient(160deg, #fff, #e7e9ee);
  border: 1px solid var(--line);
  position: relative;
}
.file-icon::after {
  content: "";
  position: absolute; inset: auto 8px 10px 8px; height: 4px;
  border-radius: 2px; background: var(--line);
  box-shadow: 0 -9px 0 var(--line), 0 -18px 0 var(--line);
}
.file-icon.img { background: linear-gradient(160deg, #cfe3ff, #7fb0f0); }
.file-icon.img::after { display: none; }
.file-icon.pdf { border-top: 6px solid #d9534f; }
.file-icon.audio { background: linear-gradient(160deg, #f7e6c2, var(--saffron)); }
.file-icon.audio::after { inset: auto 10px 22px 10px; height: 3px; background: rgba(0,0,0,.35); box-shadow: 0 -7px 0 rgba(0,0,0,.35), 0 -14px 0 rgba(0,0,0,.35); }
.file-icon.md { border-left: 6px solid var(--clove); }
.file-icon.txt { border-left: 6px solid var(--slate); }
.file-icon.srt { border-left: 6px solid var(--saffron); }
.file-name {
  font-size: 0.78rem;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.ghost {
  position: absolute;
  pointer-events: none;
  padding: 6px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.78rem;
  box-shadow: 0 6px 18px rgba(23,26,33,.14);
  transform: translate(14px, 14px);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radial {
  position: absolute;
  width: 260px; height: 260px;
  margin: -130px 0 0 -130px;
  pointer-events: none;
  filter: drop-shadow(0 12px 28px rgba(23,26,33,.22));
  transform: scale(.85);
  opacity: 0;
  transition: transform 150ms ease-out, opacity 150ms ease-out;
}
.radial.shown { transform: none; opacity: 1; }
.radial.hiding { transition-duration: 100ms; }
@media (prefers-reduced-motion: reduce) {
  .radial { transform: none; transition: opacity 120ms; }
  .file.new { animation: none; }
}
.radial svg { display: block; position: absolute; inset: 0; }
.radial .wedge { fill: rgba(243,244,246,.94); stroke: var(--line); stroke-width: 1; transition: fill 120ms; }
.radial .wedge.hot { fill: var(--clove); }
.radial .wedge.off { fill: rgba(243,244,246,.55); }
.hub {
  position: absolute;
  left: 50%; top: 50%;
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 600;
}
.labels { position: absolute; inset: 0; }
.label {
  position: absolute;
  width: 84px;
  margin: -22px 0 0 -42px;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  transition: color 120ms;
}
.label .glyph { display: block; font-size: 1.05rem; margin-bottom: 3px; }
.label.hot { color: var(--paper); }
.label.off { color: var(--slate); opacity: .55; }

.toast {
  position: absolute;
  left: 50%; bottom: 52px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  max-width: 88%;
  box-shadow: 0 10px 30px rgba(23,26,33,.25);
}
.toast strong { color: var(--saffron-soft); }

/* Loop */
.loop { padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(48px, 8vh, 96px); border-top: 1px solid var(--line); }
.loop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 80px);
  margin-top: 40px;
  max-width: 1000px;
}
.steps { margin: 16px 0 0; padding-left: 1.6em; color: var(--slate); }
.steps li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.steps li::marker { font-family: var(--display); font-weight: 600; color: var(--ink); }
.steps-after { color: var(--ink); font-size: 1.15rem; }
.steps-after li { border-bottom: 2px solid var(--saffron); padding: 10px 0; }
.loop-note { margin-top: 18px; color: var(--slate); }

/* Actions */
.actions {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-top: clamp(48px, 8vh, 96px);
  padding-bottom: clamp(48px, 8vh, 96px);
  border-top: 1px solid var(--line);
}
.actions-figure { position: sticky; top: 40px; }
.actions-figure svg { display: block; }
.actions dl { margin: 36px 0 0; max-width: 60ch; }
.actions dl > div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.actions dl > div:last-child { border-bottom: 1px solid var(--line); }
.actions dt { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.actions dd { margin: 0; color: var(--slate); }
.actions dd code { font-size: 0.85em; }

/* Privacy */
.privacy {
  padding-top: clamp(48px, 8vh, 96px);
  padding-bottom: clamp(48px, 8vh, 96px);
  background: var(--ink);
  color: var(--fog);
}
.privacy h2 { color: var(--paper); max-width: 30ch; }
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); margin-top: 36px; max-width: 1100px; }
.privacy p { color: #B9BEC9; }
.privacy strong { color: var(--paper); font-weight: 600; }
.privacy-facts { display: grid; gap: 20px; }

/* Pricing */
.pricing { padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(48px, 8vh, 96px); }
.pricing-lede { margin-top: 18px; color: var(--slate); }
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
  max-width: 820px;
}
.tier {
  display: grid;
  gap: 6px;
  padding: 24px 24px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
}
.tier:hover { border-color: var(--ink); }
.tier-featured { border-color: var(--saffron); background: linear-gradient(180deg, #fff, var(--saffron-soft) 220%); }
.tier-macs { color: var(--slate); font-size: 0.95rem; }
.tier-price { font-family: var(--display); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.tier-cta { margin-top: 10px; font-weight: 600; }
.tier-cta::after { content: " once"; color: var(--slate); font-weight: 400; }
.pricing-fine { margin-top: 20px; color: var(--slate); font-size: 0.95rem; }

/* Download */
.download { padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(48px, 8vh, 96px); border-top: 1px solid var(--line); }
.download-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); margin-top: 32px; max-width: 1000px; align-items: start; }
.download-meta { margin-top: 16px; color: var(--slate); font-size: 0.95rem; }
.first-open { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--saffron); border-radius: 12px; }
.first-open p { margin-top: 10px; color: var(--slate); }
.first-open strong { color: var(--ink); font-weight: 600; }

/* FAQ */
.faq { padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(48px, 8vh, 96px); border-top: 1px solid var(--line); }
.faq-list { margin: 32px 0 0; max-width: 760px; }
.faq-list > div { padding: 18px 0; border-top: 1px solid var(--line); }
.faq-list dt { font-weight: 600; }
.faq-list dd { margin: 8px 0 0; color: var(--slate); }

footer {
  padding: 40px var(--gutter) 60px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 0.92rem;
}
footer a { color: var(--ink); }
.footer-note { margin-top: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .hero, .loop-grid, .actions, .privacy-grid, .download-grid { grid-template-columns: 1fr; }
  .actions-figure { position: static; justify-self: start; }
  .tiers { grid-template-columns: 1fr; max-width: 420px; }
  .actions dl > div { grid-template-columns: 1fr; gap: 6px; }
  .top nav { display: none; }
  .demo { min-height: 380px; }
}
