:root {
  --paper: #f3f5f2;
  --paper-deep: #dfe6e1;
  --cream: #fbfcfa;
  --ink: #151917;
  --muted: #616963;
  --orange: #1f7059;
  --orange-dark: #145440;
  --blue: #2764d8;
  --green: #24805f;
  --line: rgba(21, 40, 31, .18);
  --shadow: 6px 7px 0 rgba(20, 84, 64, .18), 0 0 0 1px rgba(21, 40, 31, .2);
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --display: var(--sans);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(20, 84, 64, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 84, 64, .028) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.desktop-menu-bar {
  width: 100%;
  height: 34px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
  color: #161a18;
  background: rgba(239, 242, 239, .92);
  border-bottom: 1px solid rgba(21, 40, 31, .22);
  box-shadow: 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(18px) saturate(1.2);
  font-size: 12px;
}
.desktop-menu-left, .desktop-menu-right { display: flex; align-items: center; gap: 15px; }
.desktop-menu-left a, .desktop-menu-right a { text-decoration: none; }
.apple-menu { width: 14px; height: 18px; display: grid; place-items: center; color: var(--ink); line-height: 1; }
.apple-menu svg { width: 13px; height: 15px; display: block; fill: currentColor; }
.menu-brand { font-weight: 750; }
.desktop-menu-link { color: #343a36; }
.desktop-menu-right { gap: 10px; }
.knight-menu { position: relative; display: grid; place-items: center; }
.desktop-menu-right time { min-width: 34px; font: 500 10px var(--mono); font-variant-numeric: tabular-nums; }
.desktop-knight {
  width: 38px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  box-shadow: inset 0 1px rgba(255,255,255,.15);
  cursor: pointer;
}
.desktop-knight img { width: 16px; height: 18px; display: block; object-fit: contain; filter: invert(1); }
.desktop-knight[aria-expanded="true"] { background: var(--orange-dark); box-shadow: inset 0 1px rgba(255,255,255,.18), 0 0 0 2px rgba(31,112,89,.18); }
.desktop-knight.is-solved { background: #167746; }
.menu-puzzle {
  position: absolute;
  top: 31px;
  right: -8px;
  width: 282px;
  padding: 11px;
  color: var(--ink);
  background: rgba(247, 249, 247, .97);
  border: 1px solid rgba(21,40,31,.24);
  border-radius: 10px;
  box-shadow: 3px 4px 0 rgba(20,84,64,.16), 0 10px 24px rgba(20,30,24,.18);
  backdrop-filter: blur(22px) saturate(1.15);
  opacity: 0;
  transform: translateY(-7px) scale(.97);
  transform-origin: 92% 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .2s cubic-bezier(.2,.8,.2,1);
}
.menu-puzzle.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.menu-puzzle-header { height: auto; display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.menu-puzzle-header div { display: flex; flex-direction: column; gap: 2px; }
.menu-puzzle-header strong { font-size: 13px; letter-spacing: -.02em; }
.menu-puzzle-header span { color: var(--muted); font: 500 9px var(--mono); }
.menu-puzzle-header button { width: 25px; height: 23px; border: 0; border-radius: 5px; color: var(--muted); background: #e9ebe8; cursor: pointer; }
.menu-puzzle-header button:hover { color: var(--ink); background: #dfe3df; }
.menu-puzzle-board { width: 100%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); overflow: hidden; border: 1px solid rgba(95,63,37,.28); border-radius: 6px; background: #fff1cf; }
.menu-puzzle-square { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; padding: 0; border: 0; color: #111512; background: #fff1cf; cursor: pointer; }
.menu-puzzle-square.dark { background: #df9258; }
.menu-puzzle-square:hover { box-shadow: inset 0 0 0 2px rgba(21,84,64,.5); }
.menu-puzzle-square.drag-over { box-shadow: inset 0 0 0 3px #1e65d6; }
.menu-puzzle-square.selected { box-shadow: inset 0 0 0 3px #1e65d6; background: #a8bfcb; }
.menu-puzzle-square.destination { box-shadow: inset 0 0 0 3px #167746; background: #9bc6a8; }
.menu-puzzle-piece { width: 88%; height: 88%; display: block; object-fit: contain; cursor: grab; user-select: none; -webkit-user-drag: element; transition: opacity .12s ease, transform .12s ease; }
.menu-puzzle-piece:active { cursor: grabbing; }
.menu-puzzle-piece.dragging { opacity: .38; transform: scale(.9); }
.menu-puzzle-footer { min-height: 29px; display: flex; align-items: end; color: var(--muted); font-size: 10px; }
.menu-puzzle.solved .menu-puzzle-footer span { color: #167746; font-weight: 700; }
.menu-buy { margin-left: 5px; padding: 5px 9px; border-radius: 5px; color: white; background: var(--orange-dark); font-weight: 700; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; letter-spacing: -.03em; font-size: 19px; }
.brand img { border-radius: 9px; box-shadow: 2px 3px 0 rgba(20, 84, 64, .2); }

.hero {
  width: min(1120px, calc(100% - 48px));
  margin: 58px auto 110px;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
}
.hero-copy { max-width: 920px; position: relative; z-index: 2; text-align: center; }
.eyebrow { margin: 0 0 22px; color: var(--orange-dark); font: 700 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .09em; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.06em; }
h1 { margin: 0; font-size: clamp(56px, 6.2vw, 88px); line-height: .92; }
h1 em, h2 em { color: var(--orange-dark); font-weight: 400; }
.lede { max-width: 670px; margin: 20px auto 22px; color: var(--muted); font-size: 18px; line-height: 1.6; letter-spacing: -.015em; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; }
.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 190px;
  padding: 10px 18px 11px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--orange);
  transition: background .18s ease, box-shadow .18s ease;
}
.app-store-button:hover { background: var(--orange-dark); box-shadow: 5px 5px 0 var(--ink); }
.app-store-button svg { width: 27px; height: 27px; fill: currentColor; }
.app-store-button span { display: flex; flex-direction: column; font-size: 18px; font-weight: 600; line-height: 1.02; letter-spacing: -.025em; }
.app-store-button small { font-size: 9px; font-weight: 500; letter-spacing: .02em; margin-bottom: 3px; }
.requirements { font-size: 12px; color: var(--muted); }

.demo-wrap { width: min(1040px, 100%); min-width: 0; margin-top: 48px; }
.demo-media { position: relative; }
.demo-video {
  position: absolute;
  inset: 0;
  z-index: 13;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
  border: 1px solid rgba(21, 40, 31, .28);
  background: #29303b;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity .35s ease;
}
.demo-media.is-video-ready .demo-video { opacity: 1; }
.demo-caption { margin: 0 8px 13px; display: flex; align-items: center; gap: 9px; color: var(--muted); font: 650 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .055em; }
.caption-note { margin-left: auto; color: #7c847e; font-weight: 500; text-transform: none; letter-spacing: 0; }
.live-dot { width: 7px; height: 7px; background: #d54b3f; border-radius: 50%; box-shadow: 0 0 0 4px rgba(213, 75, 63, .11); }
.mac-demo {
  position: relative;
  aspect-ratio: 83 / 54;
  max-height: 680px;
  overflow: hidden;
  border-radius: 11px;
  border: 1px solid rgba(21, 40, 31, .28);
  background: #29303b;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.mac-demo::after { content: ""; position: absolute; inset: 0; z-index: 12; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.32); border-radius: inherit; }
.mac-menu-bar { height: 32px; position: relative; z-index: 7; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: #28231f; background: rgba(239, 242, 239, .94); backdrop-filter: blur(18px); font-size: 9px; }
.menu-left, .menu-right { display: flex; align-items: center; gap: 13px; }
.apple-mark { font-size: 8px; }
.menu-right { gap: 9px; }
.menu-glyph { color: #736c65; }
.tactic-trigger { width: 31px; height: 26px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; display: grid; place-items: center; transition: background .25s ease, color .25s ease, transform .25s ease; }
.tiny-knight { font-size: 17px; transform: translateY(-1px); }
.clock { font-variant-numeric: tabular-nums; }
.meeting-window { position: absolute; inset: 32px 0 0; background: #20242c; transition: filter .45s ease, transform .45s ease; }
.window-titlebar { height: 42px; padding: 0 15px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #9ea2aa; background: #282d36; font-size: 9px; }
.traffic-lights { display: flex; gap: 6px; }
.traffic-lights i { width: 8px; height: 8px; border-radius: 50%; background: #5b616b; }
.meeting-status { justify-self: end; color: #d57169; }
.people-grid { height: calc(100% - 88px); padding: 9px; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); gap: 7px; }
.person { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 7px; background: linear-gradient(145deg, #555c66, #3b414b); color: #d5d8db; }
.person:nth-child(2), .person:nth-child(5) { background: linear-gradient(145deg, #67615c, #44413e); }
.person:nth-child(3) { background: linear-gradient(145deg, #59646c, #343f48); }
.face { width: 46px; height: 53px; position: relative; border-radius: 48% 48% 42% 42%; background: #9b8f83; opacity: .78; }
.face::before { content: ""; position: absolute; width: 36px; height: 22px; border-radius: 50% 50% 35% 35%; background: #4b443f; left: 5px; top: -3px; }
.face::after { content: ""; position: absolute; width: 78px; height: 44px; border-radius: 50% 50% 0 0; background: #7d746c; top: 46px; left: -16px; }
.person-2 .face, .person-6 .face { background: #b2a28f; transform: scale(.93); }
.person-3 .face::before, .person-5 .face::before { background: #272728; height: 26px; }
.person span { position: absolute; left: 7px; bottom: 5px; z-index: 2; font-size: 8px; }
.person b { position: absolute; right: 6px; top: 5px; font-size: 7px; color: #8c929a; letter-spacing: 1px; }
.meeting-controls { height: 46px; display: flex; align-items: center; justify-content: center; gap: 11px; background: #282d36; }
.meeting-controls i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #b5b8bd; background: #3b414b; font-size: 10px; font-style: normal; }
.meeting-controls .hangup { background: #b6453c; color: white; }

.tactic-popover {
  position: absolute;
  z-index: 8;
  width: 76%;
  top: 38px;
  right: 9px;
  padding: 15px;
  border: 1px solid rgba(90, 65, 42, .21);
  border-radius: 17px;
  background: rgba(255, 251, 244, .97);
  color: var(--ink);
  box-shadow: 0 22px 46px rgba(19, 15, 12, .34), inset 0 1px rgba(255,255,255,.9);
  transform: translateY(-19px) scale(.78);
  transform-origin: 88% 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, transform .48s cubic-bezier(.2,.85,.2,1);
}
.popover-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.popover-head > div { display: flex; gap: 8px; align-items: baseline; }
.popover-head strong { font-size: 14px; letter-spacing: -.025em; }
.popover-head span { color: var(--muted); font-size: 9px; }
.popover-head button { border: 0; border-radius: 7px; background: #ebe8e4; padding: 7px 10px; color: var(--ink); font: 600 9px var(--sans); }
.move-prompt { display: flex; gap: 10px; align-items: center; min-height: 47px; padding: 8px 11px; margin-bottom: 10px; border: 1px solid rgba(39,100,216,.28); border-radius: 10px; background: #e8f0fd; }
.target-mark { color: var(--blue); font-size: 24px; }
.move-prompt div { display: flex; flex-direction: column; gap: 2px; }
.move-prompt strong { font-size: 11px; }
.move-prompt div span { color: #626b7a; font-size: 9px; }
.mini-board { position: relative; width: 100%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(8, 1fr); overflow: hidden; border-radius: 9px; border: 1px solid #c6a273; background: #f8e8c5; }
.square { position: relative; display: grid; place-items: center; background: #fff1cf; transition: background .3s ease, box-shadow .3s ease; }
.square.dark { background: #df9258; }
.piece { position: relative; z-index: 2; font-family: Georgia, serif; font-size: clamp(13px, 2.35vw, 26px); line-height: 1; color: #28231f; text-shadow: 0 1px rgba(255,255,255,.45); }
.piece.white { color: #fffdf7; -webkit-text-stroke: 1px #28231f; }
.square.from { box-shadow: inset 0 0 0 3px var(--blue); background: #aebadd; }
.square.to { box-shadow: inset 0 0 0 3px var(--blue); background: #8fa4d6; }
.puzzle-footer { min-height: 27px; display: flex; align-items: center; gap: 9px; color: #756f69; font-size: 8px; padding: 8px 3px 0; }
.puzzle-footer .difficulty { margin-left: auto; color: #4c4844; }
.demo-cursor { position: absolute; z-index: 11; width: 22px; height: 26px; left: 52%; top: 52%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); transition: left .65s cubic-bezier(.2,.8,.2,1), top .65s cubic-bezier(.2,.8,.2,1), transform .18s ease; }
.demo-cursor svg { width: 100%; fill: white; stroke: #171717; stroke-width: 1.5; }
.success-toast { position: absolute; z-index: 10; right: 28px; bottom: 26px; display: flex; gap: 7px; align-items: center; padding: 8px 12px; border-radius: 999px; background: var(--ink); color: white; font-size: 10px; font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.success-toast span { color: #7ee2a9; }

.mac-demo[data-stage="1"] .demo-cursor, .mac-demo[data-stage="2"] .demo-cursor { left: 82%; top: 1%; }
.mac-demo[data-stage="1"] .tactic-trigger, .mac-demo[data-stage="2"] .tactic-trigger, .mac-demo[data-stage="3"] .tactic-trigger, .mac-demo[data-stage="4"] .tactic-trigger { background: #d3d9d4; color: var(--orange-dark); }
.mac-demo[data-stage="1"] .demo-cursor { transform: scale(.84); }
.mac-demo[data-stage="2"] .tactic-popover, .mac-demo[data-stage="3"] .tactic-popover, .mac-demo[data-stage="4"] .tactic-popover { opacity: 1; transform: translateY(0) scale(1); }
.mac-demo[data-stage="2"] .meeting-window, .mac-demo[data-stage="3"] .meeting-window, .mac-demo[data-stage="4"] .meeting-window { filter: brightness(.72) saturate(.72); transform: scale(.992); }
.mac-demo[data-stage="3"] .demo-cursor { left: 74%; top: 39%; }
.mac-demo[data-stage="4"] .demo-cursor { left: 60%; top: 64%; }
.mac-demo[data-stage="4"] .success-toast { opacity: 1; transform: translateY(0); }
.mac-demo[data-stage="4"] .move-prompt { border-color: rgba(45,139,87,.34); background: #e8f6ec; }
.mac-demo[data-stage="4"] .target-mark { color: var(--green); }

.product-facts { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font: 500 12px/1.5 var(--mono); letter-spacing: .01em; }
.product-facts span { margin: 0 12px; color: var(--orange-dark); }

.how { width: min(1120px, calc(100% - 48px)); margin: 150px auto; }
.section-heading { max-width: 860px; }
.section-heading h2 { margin: 0; font-size: clamp(42px, 5.2vw, 70px); line-height: 1.02; }
.steps { list-style: none; padding: 0; margin: 85px 0 0 auto; width: min(790px, 100%); border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 80px 1fr; gap: 25px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.steps > li > span { color: var(--orange-dark); font: 650 14px var(--mono); }
.steps h3 { margin: 0 0 8px; font: 650 27px var(--display); letter-spacing: -.035em; }
.steps p { max-width: 580px; margin: 0; color: var(--muted); line-height: 1.7; font-size: 15px; }

.final-cta { width: min(1240px, calc(100% - 48px)); margin: 120px auto 40px; padding: 82px 32px; overflow: hidden; position: relative; text-align: center; border: 1px solid var(--orange-dark); border-radius: 12px; color: var(--ink); background: #e5ece7; box-shadow: 9px 10px 0 var(--orange-dark); }
.final-cta::before { display: none; }
.final-cta > * { position: relative; }
.final-cta > img { border-radius: 23px; box-shadow: 3px 4px 0 rgba(20, 84, 64, .28); }
.final-cta p { margin: 25px 0 10px; color: var(--orange-dark); font: 700 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.final-cta h2 { margin: 0 0 36px; font-size: clamp(46px, 5vw, 72px); line-height: .98; }
.app-store-button.light { color: white; background: var(--ink); margin: 0 auto; }

footer { width: min(1240px, calc(100% - 48px)); min-height: 120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 24px; color: var(--muted); font-size: 10px; }
.footer-brand { color: var(--ink); font-size: 15px; }
footer p { text-align: center; line-height: 1.5; }
footer > span { text-align: right; }

@media (max-width: 980px) {
  .hero { margin-top: 54px; }
  .hero-copy { max-width: 780px; }
  .demo-wrap { width: min(820px, 100%); }
}

@media (max-width: 620px) {
  .hero, .product-facts, .how, .final-cta, footer { width: min(100% - 28px, 1240px); }
  .desktop-menu-bar { padding: 0 8px; }
  .desktop-menu-left, .desktop-menu-right { gap: 8px; }
  .desktop-menu-link, .desktop-menu-right time { display: none; }
  .desktop-knight { width: 34px; }
  .menu-puzzle { position: fixed; top: 39px; left: 8px; right: 8px; width: auto; transform-origin: 70% 0; }
  .menu-puzzle-piece { width: 86%; height: 86%; }
  .menu-buy { margin-left: 0; }
  .hero { margin-top: 54px; }
  h1 { font-size: clamp(49px, 15vw, 72px); }
  .lede { font-size: 17px; }
  .mac-demo { border-radius: 17px; }
  .demo-video { border-radius: 17px; }
  .caption-note { display: none; }
  .mac-menu-bar { height: 25px; padding: 0 7px; }
  .menu-left span:not(.apple-mark), .menu-left strong, .menu-glyph { display: none; }
  .meeting-window { top: 25px; }
  .tactic-popover { top: 30px; width: 86%; padding: 10px; }
  .popover-head { margin-bottom: 7px; }
  .move-prompt { min-height: 39px; margin-bottom: 7px; padding: 6px 8px; }
  .target-mark { font-size: 18px; }
  .piece { font-size: clamp(10px, 4.1vw, 20px); }
  .product-facts { line-height: 1.9; }
  .product-facts span { margin: 0 6px; }
  .how { margin: 100px auto; }
  .steps { margin-top: 55px; }
  .steps li { grid-template-columns: 48px 1fr; gap: 12px; }
  .final-cta { margin-top: 80px; padding: 64px 18px; border-radius: 25px; }
  footer { padding: 30px 0; grid-template-columns: 1fr; text-align: center; }
  footer p, footer > span { text-align: center; }
  .footer-brand { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body.video-scene {
  min-height: 100vh;
  overflow: hidden;
  background: #29303b;
}
.video-scene > #demo-toggle { display: none; }
.video-scene > .mac-demo {
  width: 100vw;
  height: 100vh;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.video-scene > .mac-demo::after { border-radius: 0; }
