/* Shots landing page. The conceit: the page IS a Mac desktop, in light mode.
   Palette: paper #FCFCFA, ink #141414, accent #FF4D00 (one accent, everywhere).
   Type: Helvetica Now Display Medium for everything ours; the macOS/Figma
   recreations (menu bar, shelf, Figma window) keep system/Inter for authenticity.
   Single weight (500) by design: hierarchy comes from scale and color.
   One radius system: windows/cards 16, tiles/buttons 8-10, chips 8.
   z scale: wallpaper -2, content auto, shelf 60, fly 70, cursor 80, menubar 90, grain 100. */

@font-face {
  font-family: "Helvetica Now Display";
  src: url("HelveticaNowDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fcfcfa;
  --ink: #141414;
  --ink-soft: #3f3f3b;
  --text-dim: #4c4c47;
  --text-faint: #6d6d67;
  --accent: #ff4d00;
  --accent-up: #ff5a12;
  --hairline: rgba(20, 20, 20, 0.1);
  --veil: rgba(252, 252, 250, 0.9);
  --figma-blue: #0c8ce9;
  --font-display: "Helvetica Now Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: light; }

body {
  font-family: var(--font-display);
  font-weight: 500;
  font-synthesis: none;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(255, 77, 0, 0.25); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Wallpaper (ASCII shader canvas) & grain ---------- */

.wallpaper {
  position: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  display: block;
  background: var(--paper); /* shown until the first canvas paint */
}

.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* ---------- Menu bar ---------- */

.menubar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: 32px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  font-family: var(--font-system);
  font-size: 13px;
  color: #1c1c1e;
  background: rgba(250, 250, 248, 0.62);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  backdrop-filter: blur(30px) saturate(1.4);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.mb-left, .mb-right { display: flex; align-items: center; }

.mb-apple {
  display: grid; place-items: center;
  padding: 3px 10px; margin-right: 2px;
  color: #1c1c1e;
}
.mb-apple svg { display: block; }

.mb-app {
  display: flex; align-items: center; gap: 7px;
  font-weight: 700; padding: 3px 8px; border-radius: 5px;
}
.mb-app:hover { background: rgba(20, 20, 20, 0.08); }
.pile-glyph { fill: currentColor; flex: none; }

.mb-nav { display: flex; margin-left: 6px; }
.mb-nav a {
  padding: 3px 10px; border-radius: 5px;
  color: rgba(28, 28, 30, 0.85);
}
.mb-nav a:hover { background: rgba(20, 20, 20, 0.08); }

.mb-right { gap: 6px; color: rgba(28, 28, 30, 0.9); }
.mb-icon { opacity: 0.85; margin: 0 5px; }

.mb-tray {
  display: grid; place-items: center;
  width: 28px; height: 22px; border-radius: 5px;
  color: rgba(28, 28, 30, 0.95);
  transition: background 150ms ease;
}
.mb-tray.lit { background: rgba(20, 20, 20, 0.16); }

.mb-clock {
  font-variant-numeric: tabular-nums;
  margin-left: 6px; padding: 3px 6px;
  white-space: nowrap;
}

/* ---------- Shelf panel (the app, recreated) ---------- */

.shelf {
  position: fixed; top: 38px; right: 120px; z-index: 60;
  width: 224px;
  padding: 12px 14px 16px;
  border-radius: 16px;
  font-family: var(--font-system);
  background: rgba(248, 248, 246, 0.78);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  backdrop-filter: blur(40px) saturate(1.4);
  border: 1px solid rgba(20, 20, 20, 0.1);
  box-shadow: 0 28px 70px rgba(25, 25, 35, 0.25), 0 2px 8px rgba(20, 20, 30, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform-origin: top right;
  opacity: 0; transform: translateY(-8px) scale(0.92);
  pointer-events: none;
  visibility: hidden;
}
.shelf.open {
  opacity: 1; transform: translateY(0) scale(1);
  visibility: visible;
  transition: transform 380ms var(--spring), opacity 180ms ease-out, visibility 0s;
}
.shelf.closing {
  opacity: 0; transform: translateY(-6px) scale(0.95);
  visibility: visible;
  transition: transform 200ms ease-in, opacity 180ms ease-in;
}

.shelf-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: #2c2c2e;
}
.shelf-head .pile-glyph { fill: currentColor; opacity: 0.9; }
.shelf-gear { margin-left: auto; color: rgba(20, 20, 20, 0.35); }

.shelf-pile { position: relative; height: 158px; margin-top: 14px; }
.shelf-card {
  position: absolute; left: 50%; top: 50%;
  width: 112px; height: 138px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(20, 20, 20, 0.14);
  box-shadow: 0 10px 26px rgba(25, 25, 35, 0.22);
  transition: transform 320ms var(--spring), opacity 200ms ease;
}
.shelf-card img { width: 100%; height: 100%; object-fit: cover; }
.sc-back  { transform: translate(-50%, -50%) rotate(11deg) translate(19px, -8px); opacity: 0.55; }
.sc-mid   { transform: translate(-50%, -50%) rotate(-13deg) translate(-18px, -11px); opacity: 0.75; }
.sc-front { transform: translate(-50%, -50%) rotate(-2deg) translateY(5px); box-shadow: 0 14px 34px rgba(25, 25, 35, 0.3); }

.shelf.lifted .sc-front { opacity: 0; transform: translate(-50%, -50%) rotate(-2deg) translateY(5px) scale(0.9); }
.shelf.lifted .sc-mid  { transform: translate(-50%, -50%) rotate(-9deg) translate(-12px, -6px) scale(1.03); opacity: 0.9; }
.shelf.lifted .sc-back { transform: translate(-50%, -50%) rotate(8deg) translate(14px, -5px) scale(1.02); opacity: 0.7; }

/* ---------- Demo overlay: cursor + flying card ---------- */

.demo-overlay { position: fixed; inset: 0; z-index: 70; pointer-events: none; }

.fly {
  position: fixed; left: 0; top: 0;
  width: 112px; height: 140px;
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(20, 20, 20, 0.18);
  box-shadow: 0 24px 60px rgba(25, 25, 35, 0.35);
  opacity: 0;
  will-change: transform;
}
.fly img { width: 100%; height: 100%; object-fit: cover; }

.cursor {
  position: fixed; left: 0; top: 0; z-index: 80;
  opacity: 0;
  will-change: transform;
  filter: drop-shadow(0 1px 2px rgba(20, 20, 30, 0.35));
}
.cursor-plus {
  position: absolute; left: 13px; top: 14px;
  opacity: 0; transition: opacity 120ms ease;
}
.cursor.drag .cursor-plus { opacity: 1; }

/* ---------- Hero ---------- */

main { position: relative; }

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(380px, 46%) 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 92px clamp(24px, 4vw, 64px) 48px clamp(24px, 5vw, 88px);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(46px, 5.4vw, 84px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.hero-copy h1 .hl { color: var(--accent); }

.hero-sub {
  margin: 24px 0 36px;
  font-size: 17px; line-height: 1.6;
  color: var(--ink-soft);
  max-width: 38ch;
}

.btn-primary {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 15.5px; font-weight: 500; line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--accent);
  box-shadow: 0 14px 34px rgba(255, 77, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-up); box-shadow: 0 18px 40px rgba(255, 77, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-primary:active { transform: scale(0.98); }

/* ---------- Figma-style window (light UI, matching real Figma) ---------- */

.hero-stage { display: flex; justify-content: center; min-width: 0; }

.figma {
  width: min(720px, 100%);
  min-width: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.12);
  box-shadow: 0 44px 100px rgba(25, 25, 40, 0.28), 0 3px 10px rgba(20, 20, 30, 0.12);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

.fg-toolbar {
  position: relative;
  height: 44px;
  display: flex; align-items: center;
  gap: 14px;
  padding: 0 14px 0 20px;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
}
.traffic { display: flex; gap: 8px; }
.traffic i { width: 12px; height: 12px; border-radius: 50%; }
.traffic i:nth-child(1) { background: #ff5f57; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }

.fg-tools { display: flex; align-items: center; gap: 4px; color: #666; }
.fg-tools svg { border-radius: 5px; }
.fg-tools svg:not(.active) { padding: 1px; }

.fg-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 12.5px; color: #333; white-space: nowrap;
}
.fg-crumb { color: #999; }

.fg-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.fg-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600;
}
.fg-share {
  font-size: 12px; font-weight: 500; color: #fff;
  background: var(--figma-blue);
  padding: 5px 12px; border-radius: 6px;
}
.fg-zoom { font-size: 12px; color: #999; }

.fg-body { display: flex; height: 392px; }

.fg-layers {
  width: 156px; flex: none;
  background: #ffffff;
  border-right: 1px solid #e6e6e6;
  padding: 10px 0;
  font-size: 11.5px;
  overflow: hidden;
}
.fg-pagehead { padding: 2px 12px 6px; color: #999; font-size: 10.5px; }
.fg-page { padding: 5px 12px; color: #1e1e1e; background: rgba(20, 20, 20, 0.05); }
.fg-sep { height: 1px; background: #ececec; margin: 9px 0; }

.fg-layer {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 10px 5px 24px;
  color: #555;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fg-layer i {
  flex: none; width: 9px; height: 9px; border-radius: 2px;
  border: 1px solid #999;
  background: linear-gradient(135deg, #c9c9c9 50%, transparent 50%);
}
.fg-framerow { padding-left: 12px; color: #1e1e1e; }
.fg-framerow svg { color: #777; flex: none; }

.fg-layer.new {
  color: #0a5bb5;
  background: rgba(12, 140, 233, 0.14);
  opacity: 0; transform: translateX(-8px);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.fg-layer.new i { border-color: #6fb1e8; background: linear-gradient(135deg, #a8d2f5 50%, transparent 50%); }
.fg-layer.new.show { opacity: 1; transform: translateX(0); }

.fg-canvas {
  flex: 1; position: relative;
  background: #ececec;
  display: grid; place-items: center;
  padding: 34px 26px 22px;
  min-width: 0;
}

.fg-frame {
  position: relative;
  width: 100%; height: 100%;
  background: #ffffff;
  border-radius: 3px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(20, 20, 20, 0.08);
  transition: box-shadow 160ms ease;
}
.fg-frame.hot { box-shadow: 0 0 0 2px var(--figma-blue); }
.fg-frame-label {
  position: absolute; top: -21px; left: 1px;
  font-size: 11px; color: #8e8e93;
}

.fg-grid {
  display: grid; height: 100%;
  grid-template-columns: 1.1fr 0.95fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}
.fg-tile, .fg-slot { border-radius: 3px; overflow: hidden; position: relative; min-height: 0; }
.fg-tile img, .fg-slot img { width: 100%; height: 100%; object-fit: cover; }
.t-dunes   { grid-column: 1; grid-row: 1; }
.t-palette { grid-column: 1; grid-row: 2; }
.t-arch    { grid-column: 2; grid-row: 1 / 3; }
.t-type    { grid-column: 3; grid-row: 2; }
.fg-slot   { grid-column: 3; grid-row: 1; overflow: visible; }

.fg-tile-in {
  position: absolute; inset: 0;
  border-radius: 3px; overflow: hidden;
  opacity: 0; transform: scale(0.55);
}
.fg-slot.placed .fg-tile-in {
  opacity: 1; transform: scale(1);
  transition: transform 340ms var(--spring), opacity 160ms ease-out;
}
.fg-slot.selected .fg-tile-in { box-shadow: inset 0 0 0 1.5px var(--figma-blue); }
.fg-slot.fade .fg-tile-in { opacity: 0; transition: opacity 380ms ease; }
.fg-slot .h {
  position: absolute; width: 7px; height: 7px;
  background: #fff; border: 1.5px solid var(--figma-blue);
  opacity: 0; transition: opacity 120ms ease;
  z-index: 2;
}
.fg-slot.selected .h { opacity: 1; }
.h.tl { left: -3px; top: -3px; } .h.tr { right: -3px; top: -3px; }
.h.bl { left: -3px; bottom: -3px; } .h.br { right: -3px; bottom: -3px; }

/* Figma right properties panel */
.fg-props {
  width: 148px; flex: none;
  background: #ffffff;
  border-left: 1px solid #e6e6e6;
  padding: 10px 12px;
  font-size: 11px;
  color: #555;
}
.fg-props .fg-sep { margin: 9px -12px; }
.fg-props-tabs { display: flex; gap: 12px; padding-bottom: 2px; }
.fg-props-tabs .on { color: #1e1e1e; font-weight: 500; }
.fg-prow {
  display: grid; grid-template-columns: 12px 1fr 12px 1fr;
  gap: 6px; align-items: center;
  padding: 3px 0;
}
.fg-prow span { color: #999; }
.fg-prow b { font-weight: 400; color: #333; font-variant-numeric: tabular-nums; }
.fg-phead { color: #1e1e1e; padding: 2px 0 7px; }
.fg-fill { display: flex; align-items: center; gap: 7px; color: #333; }
.fg-fill i { width: 12px; height: 12px; border-radius: 2px; background: #ffffff; border: 1px solid #ccc; }
.fg-fill em { font-style: normal; margin-left: auto; color: #999; }

/* Static shelf (shown instead of the choreographed demo on narrow/reduced-motion) */
.hero-stage { position: relative; }
.shelf-static { display: none; }
body.demo-static .shelf-static {
  display: block;
  position: absolute; top: auto; left: auto;
  right: -8px; bottom: -30px;
  opacity: 1; visibility: visible;
  transform: scale(0.95);
  transform-origin: bottom right;
  z-index: 5;
  pointer-events: none;
}

/* ---------- Transition off the desktop ---------- */

.desk-out { height: 150px; background: linear-gradient(180deg, rgba(252, 252, 250, 0), var(--veil) 92%); }

.how, .features, .privacy, .download, .footer { background: var(--veil); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

#how, #features, #privacy, #download { scroll-margin-top: 44px; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

/* ---------- How it works ---------- */

.how { padding: 118px 0 108px; }
.lede { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--text-dim); max-width: 52ch; }

.how-grid {
  margin-top: 68px;
  display: grid;
  grid-template-columns: 5fr 3.4fr 4.2fr;
}
.how-item { padding: 0 34px; border-left: 1px solid var(--hairline); min-width: 0; }
.how-item:first-child { padding-left: 0; border-left: none; }
.how-item h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.how-item p { margin-top: 9px; font-size: 14.5px; line-height: 1.65; color: var(--text-faint); }

.how-art { height: 88px; display: flex; align-items: center; gap: 9px; margin-bottom: 24px; }

.keycap {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 10px;
  font-size: 19px; color: #3a3a3c;
  background: linear-gradient(180deg, #ffffff, #f1f1ed);
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-bottom-color: rgba(20, 20, 20, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 7px 16px rgba(20, 20, 20, 0.1);
}

.pile-badge {
  width: 66px; height: 66px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(255, 77, 0, 0.09);
  border: 1px solid rgba(255, 77, 0, 0.28);
}
.pile-badge .pile-glyph { fill: var(--accent); }

.drop-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.drop-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 8px;
  font-size: 12.5px; color: var(--ink-soft);
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.12);
  box-shadow: 0 2px 6px rgba(20, 20, 20, 0.05);
}
.drop-chip img { opacity: 0.95; }

/* ---------- Features bento ---------- */

.features { padding: 24px 0 118px; }

.bento {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.cell {
  border-radius: 16px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.cell:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(20, 20, 20, 0.08); }
.cell h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.cell p { margin-top: 9px; font-size: 14.5px; line-height: 1.65; color: var(--text-faint); max-width: 52ch; }

.cell-drag { grid-column: span 7; }
.cell-first {
  grid-column: span 5;
  background: linear-gradient(155deg, rgba(255, 77, 0, 0.14), rgba(255, 255, 255, 0.9) 62%);
  border-color: rgba(255, 77, 0, 0.3);
}
.cell-native { grid-column: span 5; }
.cell-trash { grid-column: span 4; }
.cell-history { grid-column: span 3; }

.cell-art { height: 128px; position: relative; margin-bottom: 22px; }
.minicards { position: absolute; left: 10px; top: 6px; }
.minicard {
  position: absolute;
  width: 82px; height: 102px;
  border-radius: 7px;
  border: 1px solid rgba(20, 20, 20, 0.13);
  overflow: hidden;
}
.minicard img { width: 100%; height: 100%; object-fit: cover; }
.m1 { transform: rotate(-3deg); box-shadow: 0 12px 28px rgba(25, 25, 35, 0.2); }
.m2 { transform: translate(26px, -4px) rotate(5deg); background: rgba(20, 20, 20, 0.09); }
.m3 { transform: translate(52px, -7px) rotate(11deg); background: rgba(20, 20, 20, 0.05); }
.count-badge {
  position: absolute; left: 66px; top: -12px; z-index: 2;
  width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-size: 11.5px; font-weight: 500;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
}

.cell-first h3, .cell-first p { position: relative; }

.ghost-row { height: 128px; }
.ghostcard {
  position: absolute; top: 12px;
  width: 74px; height: 92px;
  border-radius: 7px;
  border: 1px solid rgba(20, 20, 20, 0.13);
  overflow: hidden;
}
.ghostcard img { width: 100%; height: 100%; object-fit: cover; }
.g1 { left: 8px; transform: rotate(-2deg); box-shadow: 0 12px 26px rgba(25, 25, 35, 0.18); }
.g2 { left: 92px; transform: rotate(2deg); opacity: 0.8; }
.g3 { left: 176px; transform: rotate(-1deg); opacity: 0.55; background: rgba(20, 20, 20, 0.08); }
.g4 { left: 260px; transform: rotate(2deg); opacity: 0.35; background: rgba(20, 20, 20, 0.05); }

.cell-logo { margin-bottom: 20px; }

/* ---------- Privacy manifesto ---------- */

.privacy { padding: 128px 0 132px; text-align: center; position: relative; }
.privacy::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 52% at 50% 46%, rgba(255, 77, 0, 0.08), transparent 70%);
}
.privacy .wrap { position: relative; }
.privacy-lines { font-size: clamp(34px, 4.6vw, 60px); }
.privacy-lines span { display: block; }
.privacy-lines span:nth-child(2) { color: rgba(20, 20, 20, 0.55); }
.privacy-lines span:nth-child(3) { color: rgba(20, 20, 20, 0.28); }
.privacy p { margin: 30px auto 0; font-size: 16px; line-height: 1.7; color: var(--text-dim); max-width: 52ch; }

/* ---------- Download ---------- */

.download { padding: 30px 0 140px; text-align: center; }
.dl-icon { margin: 0 auto; width: 118px; height: 118px; filter: drop-shadow(0 18px 40px rgba(20, 20, 30, 0.28)); }
.download h2 { margin: 26px auto 32px; max-width: 16ch; }
.dl-req { margin-top: 18px; font-size: 13px; color: var(--text-faint); }

/* ---------- Footer ---------- */

.footer { padding: 32px 0 42px; border-top: 1px solid rgba(20, 20, 20, 0.08); }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: #2c2c2e; }
.foot-brand .pile-glyph { fill: currentColor; opacity: 0.9; }
.foot-note { font-size: 13px; color: var(--text-faint); }

/* ---------- Motion (gated) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy h1, .hero-sub, .hero-copy .btn-primary {
    animation: rise 900ms var(--ease-out) both;
  }
  .hero-sub { animation-delay: 90ms; }
  .hero-copy .btn-primary { animation-delay: 180ms; }
  .figma { animation: deskIn 1100ms var(--ease-out) 120ms both; }

  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes deskIn {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shelf.open, .shelf.closing, .fg-slot.placed .fg-tile-in, .fg-layer.new, .shelf-card { transition: none; }
}

/* QA harness mode (?qa=1): deterministic frames for screenshot tooling. */
html.qa { scroll-behavior: auto; }
html.qa .hero { min-height: 860px; }
html.qa .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
html.qa .hero-copy h1, html.qa .hero-sub, html.qa .hero-copy .btn-primary, html.qa .figma { animation: none !important; }
html.qa .cell { transition: none !important; }

/* ---------- Responsive ---------- */

@media (max-width: 1359px) {
  .fg-props { display: none; }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 48px;
    padding-top: 108px;
    padding-bottom: 88px;
  }
  .hero-copy { max-width: 60ch; }
  .fg-body { height: 360px; }
}

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; gap: 44px; }
  .how-item { padding: 0; border-left: none; }
  .how-art { height: auto; margin-bottom: 18px; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell-drag, .cell-first, .cell-native, .cell-trash, .cell-history { grid-column: span 1; }
  .cell-drag { grid-column: span 2; }
}

@media (max-width: 700px) {
  .mb-nav { display: none; }
  .mb-icon { display: none; }
  .mb-apple { padding: 3px 6px; }
  .menubar { padding: 0 10px; }

  body.demo-static .shelf-static { transform: scale(0.8); right: -2px; bottom: -20px; }

  .hero { padding-top: 96px; }
  .hero-sub { font-size: 16px; }

  .fg-layers { display: none; }
  .fg-title { display: none; }
  .fg-zoom { display: none; }
  .fg-tools svg:nth-child(4), .fg-tools svg:nth-child(5) { display: none; }
  .fg-toolbar { gap: 10px; min-width: 0; }
  .fg-body { height: 320px; }
  .fg-canvas { padding: 30px 16px 16px; }

  .bento { grid-template-columns: 1fr; }
  .cell-drag { grid-column: span 1; }

  .how { padding: 88px 0 72px; }
  .features { padding: 16px 0 88px; }
  .privacy { padding: 96px 0 100px; }
  .download { padding: 20px 0 104px; }

  .footer .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
}
