:root {
  --sky-top: #dcf0ff;
  --sky-bottom: #9eccf5;
  --accent: #2f8cff;
  --accent-ink: #0b5ed7;
  --ink: #16191f;
  --muted: #5d6675;
  --line: #e4e8ee;
  --card: #f5f8fc;
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #eef1f6; --muted: #9aa4b4; --line: #2a303a; --card: #171b22; --accent-ink: #7db6ff; }
  body { background: #0e1116; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: #fff;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }

.button {
  display: inline-block; padding: .8em 1.4em; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: 0 6px 18px -8px rgba(47,140,255,.7); transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(47,140,255,.8); }
.button:focus-visible, .file:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.button.small { padding: .45em 1em; font-size: .9rem; }

.nav {
  position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(16px, 4vw, 48px); backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, Canvas 78%, transparent); border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--ink); text-decoration: none; }
.nav nav { display: flex; gap: clamp(10px, 2vw, 26px); align-items: center; }
.nav nav a:not(.button) { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav nav a:not(.button):hover { color: var(--ink); }
@media (max-width: 640px) { .nav nav a:not(.button) { display: none; } }

main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

.hero {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(40px, 7vw, 90px) 0 clamp(30px, 5vw, 60px);
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.eyebrow { color: var(--accent-ink); font-weight: 600; margin: 0 0 .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.flush-word { background: linear-gradient(90deg, #2f8cff, #59c3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 1.6em 0 .6em; }
.cta-note { color: var(--muted); font-size: .95rem; }
.tiny { color: var(--muted); font-size: .85rem; margin: 0; }

/* --- interactive demo --- */
.demo {
  border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(20,40,80,.35);
}
.desktop {
  position: relative; aspect-ratio: 4 / 3; touch-action: none; user-select: none;
  background:
    radial-gradient(120% 80% at 20% 10%, #8fd3ff 0%, transparent 60%),
    radial-gradient(100% 90% at 90% 20%, #b7a6ff 0%, transparent 55%),
    linear-gradient(160deg, #4f8cff 0%, #2c5fd6 55%, #1d3f9a 100%);
}
.demo-hint {
  position: absolute; top: 14px; left: 0; right: 0; margin: 0; text-align: center;
  color: rgba(255,255,255,.92); font-weight: 600; font-size: .95rem; text-shadow: 0 1px 6px rgba(0,0,0,.25);
  transition: opacity .3s;
}
.demo-hint.hidden { opacity: 0; }
.file {
  /* Above the Dock (its blur creates its own layer), so the file never slips behind an icon. */
  position: absolute; z-index: 20; left: 12%; top: 22%; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px; background: none; border: 0; border-radius: 10px; cursor: grab; color: #fff; font: inherit;
  touch-action: none; transition: left .45s cubic-bezier(.2,.8,.2,1), top .45s cubic-bezier(.2,.8,.2,1), opacity .3s, transform .35s;
}
.file.dragging { cursor: grabbing; transition: none; transform: scale(1.06) rotate(-3deg); }
.file.flushed { opacity: 0; transform: scale(.15) rotate(180deg); transition: left .3s ease-in, top .3s ease-in, opacity .35s ease-in .1s, transform .4s ease-in; }
.file.respawn { transition: none; opacity: 0; }
.file-icon {
  width: 56px; height: 70px; background: #fff; border-radius: 6px; padding: 12px 9px; display: grid; gap: 6px;
  align-content: start; box-shadow: 0 8px 18px -8px rgba(0,0,0,.45);
}
.file-icon span { height: 3px; background: #cdd6e3; border-radius: 2px; }
.file-icon span:last-child { width: 60%; }
.file-name { font-size: .78rem; font-weight: 600; background: rgba(0,0,0,.28); padding: 2px 8px; border-radius: 6px; }
.dock {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px; border-radius: 22px;
  background: rgba(255,255,255,.28); border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(14px);
}
.dock-icon { width: clamp(30px, 6.2vw, 50px); aspect-ratio: 1; border-radius: 24%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.c1 { background: linear-gradient(#7ee0ff, #2a9df4); } .c2 { background: linear-gradient(#ffd36e, #ff9f2e); }
.c3 { background: linear-gradient(#9ef07c, #34c759); } .c4 { background: linear-gradient(#ff8fb1, #ff375f); }
.c5 { background: linear-gradient(#d6c4ff, #8e6cff); }
.dock-sep { width: 1px; align-self: stretch; margin: 4px 2px; background: rgba(255,255,255,.55); }
.dock-toilet {
  width: clamp(30px, 6.2vw, 50px); aspect-ratio: 1; border-radius: 24%; overflow: hidden; position: relative; z-index: 1;
  background: linear-gradient(var(--sky-top), var(--sky-bottom)); box-shadow: 0 6px 18px -8px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.6);
  transform-origin: 50% 100%; will-change: transform;   /* magnified from JS, continuously with distance */
}
.dock-toilet canvas { width: 100%; height: 100%; display: block; }

/* --- sections --- */
.section { padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border-radius: var(--radius); padding: 22px 22px 22px 22px; color: var(--muted); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 1.05rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 18px; }
.feature img { border-radius: 14px; background: linear-gradient(var(--sky-top), var(--sky-bottom)); margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .features { grid-template-columns: 1fr; } }
.checks { columns: 2; padding: 0; margin: 26px 0 0; list-style: none; color: var(--muted); }
.checks li { break-inside: avoid; padding: 4px 0 4px 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
@media (max-width: 700px) { .checks { columns: 1; } }

.pricing { display: grid; grid-template-columns: 1fr 1.3fr; gap: 22px; align-items: start; }
.pricing h2 { grid-column: 1 / -1; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.price-card, .shoutout { background: var(--card); border-radius: var(--radius); padding: 26px; }
.price { font-size: 2.6rem; font-weight: 800; margin: 0 0 .3em; letter-spacing: -0.03em; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card ul { padding-left: 1.1em; color: var(--muted); margin: 0 0 1.4em; }
.shoutout p { color: var(--muted); }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.tiers div { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 12px; padding: 14px; }
.tiers strong { display: block; font-size: 1.3rem; }
.tiers span { color: var(--muted); font-size: .95rem; }
.small-print { font-size: .85rem; color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq details p { color: var(--muted); margin: .6em 0 0; }

.footer { text-align: center; padding: 40px 16px 50px; color: var(--muted); border-top: 1px solid var(--line); font-size: .95rem; }
.footer a { color: var(--muted); }

.legal { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.legal p, .legal li { color: var(--muted); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .dock-toilet, .file { transition: none; }
}

.final-cta { text-align: center; }
.final-cta p { color: var(--muted); max-width: 32em; margin: 0 auto 1.4em; font-size: 1.1rem; }
.final-cta .tiny { margin-top: 1em; }
