/* ============================================================
   Meanwhile Motion — shared styles for the smaller pages
   (tutorials, freebies, privacy, terms, thanks, 404). The landing page keeps its own
   styles inline so Meanwhile Canvas edits stay self-contained.
   Version: v0.4.1
   ============================================================ */
:root {
  --black: #000;
  --panel: #060D14;
  --cream: #FDF0DC;
  --blue: #4CC9F0;
  --pink: #F2506E;
  --lime: #C5E23A;
  --orange: #FF7A2F;
  --edge: 3px solid var(--cream);
  --r: 4px;
  --mono: "Space Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--black); color: var(--cream); font: 600 18px/1.3 "Barlow Condensed", sans-serif; overflow-x: clip; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.blue { color: var(--blue); } .pink { color: var(--pink); } .lime { color: var(--lime); }

nav { position: sticky; top: 12px; z-index: 10; margin: 12px 24px 0; text-transform: uppercase; }
nav .bar { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 8px 8px 8px 20px; background: var(--cream); color: var(--black); border: 3px solid var(--black); border-radius: var(--r); box-shadow: 6px 6px 0 var(--pink); font-weight: 700; font-size: 16px; }
nav .logo { margin-right: auto; text-decoration: none; }
nav a:not(.logo):not(.buy) { text-decoration: none; }

.buy { display: inline-block; padding: 10px 22px; background: var(--lime); color: var(--black); border: 3px solid var(--black); border-radius: var(--r); box-shadow: 5px 5px 0 var(--cream); font-weight: 800; font-size: 20px; text-decoration: none; text-transform: uppercase; transition: transform .08s, box-shadow .08s; }
.buy:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--cream); }
.buy:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--cream); }
.buy.big { font-size: 30px; padding: 14px 34px; box-shadow: 7px 7px 0 var(--cream); }
.buy.big:hover { box-shadow: 9px 9px 0 var(--cream); }
nav .buy { font-size: 16px; padding: 8px 16px; box-shadow: 3px 3px 0 var(--black); }
nav .buy:hover { box-shadow: 5px 5px 0 var(--black); }
.button-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 36px; }
.ghost { display: inline-block; padding: 12px 24px; border: var(--edge); border-radius: var(--r); font-weight: 800; font-size: 22px; text-decoration: none; text-transform: uppercase; }
.ghost:hover { border-color: var(--lime); color: var(--lime); }

/* Page header */
.page-head { padding-block: 72px 40px; text-transform: uppercase; }
.page-head h1 { font-size: clamp(56px, 9vw, 120px); font-weight: 800; font-style: italic; line-height: .88; letter-spacing: -.01em; }
.page-head p { margin-top: 16px; font-size: 22px; color: #bbb; }
.draft { display: inline-block; margin-bottom: 20px; padding: 6px 12px; background: var(--orange); color: var(--black); border: 3px solid var(--black); box-shadow: 4px 4px 0 var(--cream); font: 700 14px var(--mono); letter-spacing: .02em; }

/* Readable long-form text */
.prose { max-width: 760px; padding-bottom: 96px; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 400; font-size: 18px; line-height: 1.6; color: #e6dccb; }
.prose h2 { margin: 44px 0 12px; font-family: "Barlow Condensed", sans-serif; font-size: 34px; font-weight: 800; line-height: 1; color: var(--cream); text-transform: uppercase; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue); }
.prose .note { padding: 14px 16px; border: 3px dashed var(--orange); border-radius: var(--r); color: var(--cream); }
.prose .updated { color: #999; font-size: 15px; }

/* Numbered steps (thanks page) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 24px 80px; text-transform: uppercase; }
.step { padding: 28px 24px; border: var(--edge); border-radius: var(--r); background: var(--panel); }
.steps .step:nth-child(1) { box-shadow: 8px 8px 0 var(--blue); }
.steps .step:nth-child(2) { box-shadow: 8px 8px 0 var(--lime); }
.steps .step:nth-child(3) { box-shadow: 8px 8px 0 var(--orange); }
.step .num { display: inline-grid; place-items: center; width: 56px; height: 56px; border: 3px solid var(--black); background: var(--lime); color: var(--black); font-size: 32px; font-weight: 800; font-style: italic; }
.step h2 { margin-top: 16px; font-size: 34px; font-weight: 800; line-height: .95; }
.step p { margin-top: 10px; font-size: 20px; line-height: 1.25; text-transform: none; color: #ddd; }
.step a { color: var(--lime); }

/* Big starburst for 404 / thanks */
.burst-big { position: relative; width: min(420px, 80vw); aspect-ratio: 1; display: grid; place-items: center; isolation: isolate; color: var(--black); text-align: center; }
.burst-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: -1; }
.burst-big span { font-size: clamp(56px, 9vw, 104px); font-weight: 800; font-style: italic; rotate: -8deg; line-height: .9; }
.center-page { min-height: calc(100vh - 160px); display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; text-transform: uppercase; padding-block: 48px; }
.center-page h1 { font-size: clamp(48px, 7vw, 96px); font-weight: 800; font-style: italic; line-height: .9; }
.center-page p { margin-top: 16px; font-size: 24px; color: #bbb; text-transform: none; font-weight: 600; }

/* Tutorials page */
.group-label { margin-bottom: 28px; font: 700 14px/1 var(--mono); color: var(--cream); text-transform: uppercase; }
.tut-group { padding-bottom: 80px; }
.tut-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.tut-card { display: flex; flex-direction: column; text-decoration: none; }
.tut-card .thumb { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--panel); border: var(--edge); border-radius: var(--r); box-shadow: 7px 7px 0 var(--cream); overflow: hidden; transition: transform .08s, box-shadow .08s; }
.tut-grid .tut-card:nth-child(3n+2) .thumb { box-shadow: 7px 7px 0 var(--blue); }
.tut-grid .tut-card:nth-child(3n) .thumb { box-shadow: 7px 7px 0 var(--pink); }
.tut-card:hover .thumb { transform: translate(-2px, -2px); }
.tut-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tut-card .play { position: relative; width: 64px; height: 64px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23000'/%3E%3C/svg%3E") 55% 50% / 30px no-repeat; border: 3px solid var(--black); box-shadow: 4px 4px 0 var(--black); }
.tut-card .tag { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 3px 8px; border: 2px solid var(--black); background: var(--lime); color: var(--black); font: 700 12px var(--mono); text-transform: uppercase; }
.tut-card .tag.soon { background: var(--pink); }
.tut-card h3 { margin-top: 20px; font-size: 32px; font-weight: 800; font-style: italic; line-height: .95; text-transform: uppercase; }
.tut-card .what { margin-top: 10px; font-size: 19px; line-height: 1.25; color: #ddd; }
.tut-card .meta { margin-top: 10px; font: 400 13px var(--mono); color: #999; text-transform: uppercase; }
.more-coming { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; margin-bottom: 56px; padding: 28px 32px; border: 3px dashed var(--cream); border-radius: var(--r); text-transform: uppercase; }
.more-coming h2 { font-size: 36px; font-weight: 800; font-style: italic; line-height: .9; }
.more-coming p { margin-top: 8px; font-size: 20px; color: #bbb; text-transform: none; }

/* Freebies page */
.page-head .platform-note { max-width: 760px; margin-top: 24px; padding: 14px 18px; border: 3px solid var(--blue); border-radius: var(--r); box-shadow: 6px 6px 0 var(--blue); color: var(--cream); font-size: 20px; line-height: 1.3; text-transform: none; }
.platform-note b { color: var(--blue); text-transform: uppercase; }
.free-steps { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-bottom: 56px; text-transform: uppercase; font-size: 22px; font-weight: 800; }
.free-steps b { color: var(--lime); }
.free-list { display: grid; gap: 56px; padding-bottom: 96px; }
.free-item { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding-top: 56px; border-top: var(--edge); scroll-margin-top: 96px; }
.free-item .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--panel); border: var(--edge); border-radius: var(--r); box-shadow: 8px 8px 0 var(--cream); overflow: hidden; }
.free-list .free-item:nth-child(2) .thumb { box-shadow: 8px 8px 0 var(--blue); }
.free-list .free-item:nth-child(3) .thumb { box-shadow: 8px 8px 0 var(--pink); }
.free-item .thumb img, .free-item .thumb video { display: block; width: 100%; height: 100%; object-fit: cover; }
.free-item .tag { position: absolute; top: 12px; left: 12px; padding: 3px 8px; border: 2px solid var(--black); background: var(--lime); color: var(--black); font: 700 12px var(--mono); text-transform: uppercase; }
.free-item .tag.soon { background: var(--pink); }
.free-item h2 { font-size: clamp(40px, 5vw, 64px); font-weight: 800; font-style: italic; line-height: .9; text-transform: uppercase; }
.free-item .what { margin-top: 14px; font-size: 22px; line-height: 1.25; color: #ddd; }
.free-item h3 { margin-top: 24px; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; color: #999; }
.free-item ul { margin: 8px 0 0; padding-left: 22px; font-size: 20px; line-height: 1.35; color: #ddd; }
.free-item .specs { margin-top: 20px; font: 400 14px var(--mono); color: #999; text-transform: uppercase; }
.free-item .buy { margin-top: 28px; }
.free-item .small { margin-top: 14px; font: 400 13px var(--mono); color: #888; }
.upsell { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; margin-bottom: 96px; padding: 40px; border: 3px solid var(--lime); border-radius: var(--r); box-shadow: 10px 10px 0 var(--lime); text-transform: uppercase; }
.upsell h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; font-style: italic; line-height: .9; }
.upsell p { margin-top: 10px; font-size: 20px; color: #bbb; text-transform: none; }

footer { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 24px 96px; border-top: var(--edge); font-size: 15px; color: #888; text-transform: uppercase; }
footer nav { position: static; margin: 0; display: flex; flex-wrap: wrap; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--cream); }

@media (max-width: 800px) {
  nav .bar { gap: 16px; font-size: 14px; }
  nav .bar a.hide-sm { display: none; }
  .steps, .center-page, .free-item, .tut-grid { grid-template-columns: 1fr; }
  .free-item { gap: 24px; }
  .upsell { padding: 28px 24px; }
  .center-page { justify-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
