/* Clutterverse: one deliberate visual world (deep space, the File Hole's violet), so a single dark theme.
   Layout: a centred 1120px column; heroes split text and a live hole, stacking on phones. */
@font-face { font-family: "Bricolage Grotesque Variable"; src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --space: #07050d;          /* page */
  --space-2: #120d1f;        /* raised surfaces */
  --line: #2b2242;
  --fg: #f2eefb;
  --muted: #a99fbf;
  --violet: #b49aff;         /* the disk's glow */
  --violet-deep: #6a3fd4;
  --ember: #ff9a76;          /* "Leaves tomorrow" */
  --display: "Bricolage Grotesque Variable", "Avenir Next", system-ui, sans-serif;
  --body: "Instrument Sans", -apple-system, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background-color: var(--space); color: var(--fg); font: 17px/1.6 var(--body);
  background-image:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(106, 63, 212, .28), transparent 70%),
    radial-gradient(ellipse 60% 40% at 0% 30%, rgba(40, 30, 110, .35), transparent 70%),
    url("/assets/stars.svg");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 420px 420px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
img, video, canvas { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: -.01em; }
.brand .orb { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, #000 38%, var(--violet) 46%, rgba(106, 63, 212, .55) 58%, transparent 72%); }
.bar nav { display: flex; gap: 20px; flex-wrap: wrap; }
.bar nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--fg); }

/* type */
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(44px, 7.4vw, 88px); line-height: .98; font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.05; font-weight: 750; }
h3 { font-size: 21px; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; }
.kicker { font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: center; padding-block: 24px 40px; }
.hero-text { display: grid; gap: 22px; align-content: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; }
.pill.solid { background: var(--fg); color: var(--space); }
.pill.solid .dot { width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle, #000 40%, var(--violet-deep) 48%, transparent 70%); }
.pill.ghost { color: var(--fg); border: 1px solid var(--line); }
.pill.ghost:hover { border-color: var(--violet); color: var(--fg); }
.facts-line { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }

/* the live hole on the home page */
.hole-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: center; }
.hole-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.no-gl { background: radial-gradient(circle, #000 15%, rgba(180, 154, 255, .9) 17%, rgba(106, 63, 212, .35) 26%, transparent 45%); }

/* the hands-on demo */
.demo { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: center; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.demo canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.demo-horizon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 0; background: transparent; cursor: pointer; padding: 0; }
.demo-hint { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 14px; color: var(--muted); padding-inline: 12px; }
.chip { position: absolute; left: 0; top: 0; width: 96px; display: grid; justify-items: center; gap: 4px; padding: 8px 4px 6px; border: 0; border-radius: 12px;
  background: transparent; color: var(--fg); font: 600 11.5px/1.25 var(--body); cursor: grab; transition: background-color .15s; touch-action: none; }
.chip:hover { background: rgba(255, 255, 255, .07); }
.chip.lifted { cursor: grabbing; }
.chip .name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px #000; }
.chip .left { display: none; font-weight: 500; font-size: 11px; color: #d6c2ff; text-shadow: 0 1px 3px #000; }
.chip .left.soon { color: var(--ember); }
.chip.in-orbit { cursor: pointer; }
.chip.in-orbit .left { display: block; }
/* a document glyph: page, folded corner, coloured band with the extension */
.doc { position: relative; width: 44px; height: 56px; border-radius: 4px 12px 4px 4px; background: linear-gradient(#fdfcff, #e9e5f3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45), 0 0 18px rgba(169, 120, 255, .35); }
.doc::before { content: ""; position: absolute; top: 0; right: 0; width: 13px; height: 13px; border-radius: 0 10px 0 4px; background: linear-gradient(225deg, transparent 50%, #c9c2da 50%); }
.doc::after { content: attr(data-ext); position: absolute; left: 4px; right: 4px; bottom: 7px; border-radius: 3px; background: var(--band, #6a3fd4); color: #fff; font: 700 9px/15px var(--body); text-align: center; letter-spacing: .04em; }
.doc.pdf { --band: #d9483b; } .doc.png { --band: #2f8fd8; } .doc.zip { --band: #7b6b55; } .doc.dmg { --band: #555a66; } .doc.docx { --band: #2b5bd7; }

/* sections */
section { padding-block: 64px; }
.section-head { display: grid; gap: 12px; margin-bottom: 30px; max-width: 46em; }
.reel video { width: 100%; border-radius: 18px; border: 1px solid var(--line); background: #000; display: block; }
.reel .tall { display: none; aspect-ratio: 9 / 16; max-width: 420px; margin: 0 auto; }
.reel .wide { aspect-ratio: 16 / 9; }
@media (max-width: 640px) { .reel .wide { display: none; } .reel .tall { display: block; } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li { display: grid; gap: 10px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--space-2); }
.steps li::before { counter-increment: step; content: counter(step); font: 700 15px/1 var(--display); color: var(--space); background: var(--violet); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.steps p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 38px 34px; }
.feature { display: grid; gap: 8px; align-content: start; }
.feature p { color: var(--muted); }
.days { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.days span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.days span.on { background: var(--violet-deep); border-color: var(--violet-deep); }

/* the day-before notification, drawn like a macOS banner */
.notice-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 820px) { .notice-row { grid-template-columns: 1fr; } }
.banner { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: 22px; background: rgba(246, 244, 250, .94); color: #15121c;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5); max-width: 460px; justify-self: center; width: 100%; }
.banner .icon { width: 52px; height: 52px; border-radius: 12px; background: radial-gradient(circle, #000 30%, #b49aff 37%, rgba(106, 63, 212, .7) 48%, #0b0716 66%); }
.banner .meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #77727f; text-transform: uppercase; }
.banner b { display: block; font-size: 15px; line-height: 1.3; margin-top: 2px; }
.banner p { font-size: 14px; line-height: 1.35; color: #3e3a46; margin-top: 2px; }
.banner .act { grid-column: 2; justify-self: end; margin-top: 6px; padding: 7px 14px; border-radius: 10px; background: #e6e2ee; color: #2a56e8; font-size: 14px; font-weight: 600; }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--space-2); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding-block: 14px; list-style-position: outside; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

.cta-band { text-align: center; display: grid; gap: 18px; justify-items: center; padding-block: 80px; }

/* product cards on the home page */
.lineup { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.card { display: grid; gap: 12px; padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: var(--space-2); color: var(--fg); text-decoration: none; }
a.card:hover { border-color: var(--violet); color: var(--fg); }
.card .status { font-size: 13px; font-weight: 600; color: var(--violet); }
.card p { color: var(--muted); }
.card.later { border-style: dashed; background: transparent; }

/* prose pages (privacy, support) */
.prose { max-width: 68ch; padding-block: 40px 80px; display: grid; gap: 16px; }
.prose h1 { font-size: clamp(36px, 5vw, 54px); }
.prose h2 { font-size: 24px; margin-top: 18px; }
.prose p, .prose li { color: #d9d2e8; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

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

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* while the demo hole is open, files still on the "desktop" step back so the orbit reads clearly */
.demo.opened .chip:not(.in-orbit) { opacity: .22 !important; pointer-events: none; transition: opacity .25s; }
