/* The app runs on the marketing site's dark ground. The map and the rendered video are
   pale by nature, so on a dark page they become the one lit object and the interface
   stops competing with them. */
:root{
  --ink:#f6f1f3; --quiet:#a2939a; --faint:#7d6f76;
  --paper:#141013; --mist:#0b0709; --hot:#ff2b7d;
  --edge:rgba(244,238,241,.13); --hair:rgba(244,238,241,.07);
  --sans:"Inter Tight","Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --body:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}
*{box-sizing:border-box}
/* .screen sets display:flex, which would otherwise beat the UA sheet's [hidden]. */
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--mist);color:var(--ink);
  font:400 16px/1.55 var(--body);-webkit-font-smoothing:antialiased;
  min-height:100dvh;display:flex;flex-direction:column;
}
/* One light source, top centre, that stays put while the page scrolls. */
body::before{content:"";position:fixed;inset:0 0 auto;height:min(620px,80vh);
  background:radial-gradient(120% 100% at 50% 0,rgba(255,43,125,.13),transparent 68%);
  pointer-events:none;z-index:-1}
img,video,canvas{display:block;max-width:100%}
h1,h2,h3{font-family:var(--sans);font-weight:700;letter-spacing:-.035em;margin:0;line-height:1.05}

.bar{display:flex;align-items:center;gap:16px;padding:14px 20px;border-bottom:1px solid var(--edge)}
.mark{display:inline-flex;align-items:center;gap:9px;text-decoration:none;color:inherit;
  font-family:var(--sans);font-weight:700;font-size:17px;letter-spacing:-.03em}
.pin{width:14px;height:14px;border:2.5px solid var(--hot);border-radius:50%;position:relative;flex:none}
.pin::after{content:"";position:absolute;inset:3px;background:var(--ink);border-radius:50%}
.bar .ghost{margin-left:auto}

main{flex:1;width:min(1040px,calc(100% - 32px));margin:0 auto;padding:28px 0 48px;
  display:flex;flex-direction:column}
.screen{display:flex;flex-direction:column;gap:18px}
.screen.narrow{width:min(560px,100%);margin:0 auto}

h1{font-size:clamp(30px,7vw,40px);white-space:pre-line}
h2{font-size:24px}
.lede{color:var(--quiet);margin:0}
.note{color:var(--faint);font-size:13.5px;margin:0;line-height:1.5}
.error{color:var(--hot);font-size:14px;margin:0}

/* file picker */
.pick,.pick-main{display:flex;flex-direction:column;gap:18px;min-width:0}
.drop{display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center;
  padding:34px 22px;border:1.5px dashed var(--edge);border-radius:18px;background:var(--paper);
  cursor:pointer;transition:border-color .15s,background .15s}
.drop:hover,.drop.over{border-color:var(--hot);background:rgba(255,43,125,.055)}
.drop-title{font-family:var(--sans);font-weight:600;font-size:17px}
.drop-hint{color:var(--faint);font-size:13px;line-height:1.5}
.row{display:flex;gap:20px;flex-wrap:wrap}
/* Wide enough for two columns, the example sits beside the copy instead of below the
   fold, and the first screen stops being a form on an empty page. */
@media (min-width:900px){
  .screen.narrow.pick-screen{width:min(1000px,100%)}
  /* Two short columns on a tall window would otherwise sit under the header with the
     rest of the screen empty; centred, the pair reads as the whole page. */
  .screen.pick-screen{flex:1;justify-content:center}
  .pick{flex-direction:row;gap:52px;align-items:flex-start}
  .pick-main{flex:1}
  .pick .sample{flex:none;width:400px;margin:0;position:sticky;top:26px}
}
.drop-icon{width:26px;height:26px;fill:none;stroke:var(--hot);stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;margin-bottom:4px}
/* A still-moving example of the output, so the first screen shows the thing itself. */
.sample{margin:6px 0 0;border:1px solid var(--edge);border-radius:18px;overflow:hidden;
  background:var(--paper);line-height:0;box-shadow:0 26px 70px -34px rgba(255,43,125,.45)}
.sample video{width:100%;height:auto}

/* buttons */
button,.ghost{font:inherit}
.primary{background:var(--hot);color:#fff;border:0;border-radius:14px;padding:16px 22px;
  font-family:var(--sans);font-weight:600;font-size:17px;cursor:pointer;width:100%}
.primary:hover{background:#ff4a90}
.primary.buy{display:flex;flex-direction:column;gap:3px;align-items:center;padding:14px 22px}
.buy-cta{font-size:17px;font-weight:600}
.buy-price{display:flex;align-items:baseline;gap:8px;font-size:14px;opacity:.92}
.buy-price s{opacity:.62}
.buy-price b{font-weight:600}
.ghost{background:var(--paper);color:var(--ink);border:1px solid var(--edge);border-radius:12px;
  padding:12px 18px;font-weight:500;cursor:pointer;text-decoration:none;text-align:center}
.ghost:hover{border-color:var(--ink)}
.link{background:none;border:0;padding:0;color:var(--quiet);text-decoration:underline;
  cursor:pointer;font-size:14px}
.link:hover{color:var(--hot)}

/* picture beside its controls: the map is the thing being decided about, so on a wide
   screen it stays in view while the settings underneath it change. */
.split{display:flex;flex-direction:column;gap:18px}
.split-media,.split-side{display:flex;flex-direction:column;gap:14px;min-width:0}
@media (min-width:900px){
  .split{display:grid;grid-template-columns:minmax(0,1fr) 372px;gap:26px;align-items:start}
  .split-media{position:sticky;top:22px}
}
/* Stacked, a square picture would push every control below the fold, so it is capped
   to half the screen and the card letterboxes around it. */
@media (max-width:899px){
  .split-media .stage{display:flex;justify-content:center;background:var(--mist)}
  .split-media .stage canvas{width:auto;max-width:100%;max-height:52vh}
}

.stage{position:relative;border-radius:18px;overflow:hidden;background:var(--paper);
  border:1px solid var(--edge);box-shadow:0 26px 70px -34px rgba(255,43,125,.45)}
.stage canvas{width:100%;height:auto}
.stage-veil{position:absolute;inset:0;display:grid;place-items:center;
  background:rgba(11,7,9,.66)}
.stage-veil[hidden]{display:none}
.spinner{width:26px;height:26px;border:2.5px solid var(--edge);border-top-color:var(--hot);
  border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.stats{color:var(--faint);font-size:13.5px;margin:0;text-align:center;
  font-variant-numeric:tabular-nums}

/* settings */
.panel{background:var(--paper);border:1px solid var(--edge);border-radius:16px;
  padding:15px 15px 17px;display:flex;flex-direction:column;gap:13px}
.panel h3{font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:var(--faint);
  font-weight:600;letter-spacing:.09em}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.panel-head .link{font-size:13px;text-decoration:none;font-weight:500}
.panel-head .link:hover{text-decoration:underline}

.field{display:flex;flex-direction:column;gap:7px}
.field>span{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--faint)}
.field input{border:1px solid var(--edge);background:var(--mist);border-radius:11px;
  font:600 15px var(--sans);color:var(--ink);padding:10px 12px;width:100%}
.field input:focus{outline:none;border-color:var(--hot)}
.hint{margin:1px 2px 0;color:var(--faint);font-size:12.5px;line-height:1.45}

.seg{display:flex;gap:3px;background:var(--mist);border:1px solid var(--hair);
  border-radius:12px;padding:3px}
.seg.pair{display:grid;grid-template-columns:1fr 1fr}
.seg button{flex:1;min-width:0;border:0;background:none;border-radius:9px;padding:9px 6px;
  font:600 13.5px var(--sans);color:var(--quiet);cursor:pointer;transition:background .12s,color .12s}
.seg button:hover:not(:disabled){color:var(--ink)}
.seg button[aria-pressed="true"]{background:var(--hot);color:#fff}
.seg button:disabled{opacity:.3;cursor:not-allowed}
.seg .shape{display:block;margin:0 auto 5px;border:1.5px solid currentColor;border-radius:2px}

/* month strip: bar height is how far that month went, so the busy stretches of a
   timeline are visible before anything is selected. */
.strip{display:flex;gap:2px;align-items:flex-end;height:62px;touch-action:none;
  user-select:none;-webkit-user-select:none}
.strip .tick{flex:1 1 0;min-width:0;max-width:26px;height:100%;padding:0;border:0;
  background:none;cursor:pointer;display:flex;align-items:flex-end;border-radius:3px}
.strip .tick i{display:block;width:100%;background:var(--edge);border-radius:3px;
  transition:background .12s}
.strip .tick:hover i{background:var(--quiet)}
.strip .tick.on i{background:var(--hot)}
.strip .tick.edge i{background:var(--hot)}
.years{display:flex;gap:2px;margin-top:-4px}
.years span{flex:1 1 0;min-width:0;max-width:26px;font-size:10.5px;color:var(--faint);text-align:left;
  font-variant-numeric:tabular-nums;overflow:visible;white-space:nowrap}
.range{margin:0;font:600 15px var(--sans);letter-spacing:-.01em}

/* render progress */
.steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0}
.steps li{display:flex;align-items:center;gap:12px;padding:14px 2px;
  border-top:1px solid var(--hair);color:var(--faint)}
.steps li:first-child{border-top:0}
.steps li.active{color:var(--ink)}
.steps li b{margin-left:auto;font-variant-numeric:tabular-nums;font-weight:600;font-size:14px}
.dot{width:10px;height:10px;border-radius:50%;border:2px solid var(--edge);flex:none}
.steps li.active .dot{border-color:var(--hot);background:var(--hot)}
.steps li.done .dot{background:var(--ink);border-color:var(--ink)}
.meter{height:4px;border-radius:999px;background:var(--hair);overflow:hidden}
.meter i{display:block;height:100%;width:0;border-radius:999px;background:var(--hot);
  transition:width .4s cubic-bezier(.4,0,.2,1)}

/* result */
#result{width:100%;height:auto}
.replay{position:absolute;right:12px;bottom:12px;background:rgba(11,7,9,.78);color:var(--ink);
  border:1px solid var(--edge);border-radius:999px;padding:8px 15px;font-size:13px;
  font-weight:500;cursor:pointer;backdrop-filter:blur(6px)}
.replay:hover{border-color:var(--ink)}
.facts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0;
  background:var(--paper);border:1px solid var(--edge);border-radius:16px}
.facts li{display:flex;gap:12px;padding:11px 15px;border-top:1px solid var(--hair);
  font-size:14px;color:var(--quiet)}
.facts li:first-child{border-top:0}
.facts li b{margin-left:auto;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.actions{display:flex;flex-direction:column;gap:10px}

dialog{border:1px solid var(--edge);border-radius:20px;padding:26px;
  max-width:min(460px,calc(100% - 32px));background:var(--paper);color:var(--ink);
  box-shadow:0 40px 90px -30px rgba(0,0,0,.85)}
dialog::backdrop{background:rgba(4,2,3,.72)}
.guide{margin:16px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:10px;
  color:var(--quiet);font-size:15px}
dialog .seg{margin-top:16px}
dialog .ghost{margin-top:18px;width:100%}

footer{display:flex;gap:16px;flex-wrap:wrap;justify-content:center;padding:22px 20px 30px;
  border-top:1px solid var(--edge);color:var(--faint);font-size:12.5px}
footer a{color:inherit}

/* Keyboard users get the same affordances as the mouse: without this the segmented
   controls and the month strip give no sign of where focus is. */
:focus-visible{outline:2px solid var(--hot);outline-offset:2px;border-radius:6px}
.seg button:focus-visible{outline-offset:-2px}

@media (prefers-reduced-motion:reduce){.spinner{animation:none}.meter i{transition:none}}
