/* nyteshift onboarding — Takeover.
   The frame is nyteshift (Paper wall, Carbon dock, Sodium marker). The page inside is theirs. */

:root {
  --carbon: #171918;
  --paper: #F2EEE4;
  --field: #7C8478;
  --sodium: #FFB35C;

  /* Carbon, lifted a touch towards Paper, for surfaces inside the dock. */
  --c-raise: #1F2220;
  --c-input: #262927;
  --p-90: rgba(242, 238, 228, .92);
  --p-74: rgba(242, 238, 228, .76);
  --p-62: rgba(242, 238, 228, .64);
  --p-24: rgba(242, 238, 228, .24);
  --p-14: rgba(242, 238, 228, .14);
  --p-08: rgba(242, 238, 228, .08);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: linear(0, 0.044, 0.149, 0.284, 0.426, 0.560, 0.680, 0.780, 0.860, 0.922, 0.966, 0.996, 1.015, 1.026, 1.030, 1.031, 1.028, 1.025, 1.020, 1.016, 1.012, 1.009, 1.006, 1.003, 1.002, 1.001, 1);
  --t-fast: 250ms;
  --t-slow: 400ms;

  --frame: 8px;
  --win-r: 16px;
  --dock-m: 8px;
  --dock-r: 24px;
  --kb: 0px;
  --vvh: 100dvh;
  --sheet-w: 480px;
  --tab-h: 26px;

  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (min-width: 900px) {
  :root { --frame: 14px; --win-r: 20px; --dock-m: 22px; --dock-r: 26px; --tab-h: 31px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  overscroll-behavior: none;
}

body {
  font-family: "Space Grotesk";
  color: var(--carbon);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img { display: block; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- The stage and the frame -------------------------------------------- */

.stage { position: fixed; inset: 0; transition: opacity .5s var(--ease); }
body.is-booting .stage { opacity: 0; }

.window {
  position: absolute;
  inset: var(--frame);
  border-radius: var(--win-r);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  scrollbar-width: none;
  transition: inset .75s var(--ease), border-radius .75s var(--ease);
}
.window::-webkit-scrollbar { display: none; }

/* The hairline at the inside edge of the Paper frame. */
.window-edge {
  position: absolute;
  inset: var(--frame);
  border-radius: var(--win-r);
  box-shadow: inset 0 0 0 1px rgba(23, 25, 24, .16);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity .6s var(--ease), inset .75s var(--ease), border-radius .75s var(--ease);
}
body.is-taken .window-edge { opacity: 1; }

/* The lockup sits in a tab where the frame thickens at one corner. */
.frame-tab {
  position: absolute;
  top: var(--frame);
  left: var(--frame);
  z-index: 3;
  background: var(--paper);
  padding: 10px 14px 11px 8px;
  border-bottom-right-radius: 16px;
  opacity: 1;
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.frame-tab img { height: var(--tab-h); width: auto; }
.frame-tab::before, .frame-tab::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  background: radial-gradient(circle at 100% 100%, transparent 15.5px, var(--paper) 16px);
}
.frame-tab::before { top: 0; right: -16px; }
.frame-tab::after { left: 0; bottom: -16px; }
body.is-welcome .frame-tab, body.is-thanks .frame-tab { opacity: 0; pointer-events: none; }

body.is-thanks .window, body.is-thanks .window-edge { inset: 0; border-radius: 0; }
body.is-thanks .window-edge { opacity: 0; }

@media (min-width: 900px) {
  .frame-tab { padding: 12px 18px 13px 10px; border-bottom-right-radius: 20px; }
  .frame-tab::before, .frame-tab::after { width: 20px; height: 20px; background: radial-gradient(circle at 100% 100%, transparent 19.5px, var(--paper) 20px); }
  .frame-tab::before { right: -20px; }
  .frame-tab::after { bottom: -20px; }
  body.is-sheet .window, body.is-sheet .window-edge { right: calc(var(--sheet-w) + var(--frame) * 2); }
}

/* ---------- Their brand sheet --------------------------------------------------- */
/* A reference board of their brand. Neutral white ground and near-black ink; their
   colours appear only in their swatches. Nothing here reads as a web page. */

.sh {
  --ink: #161616;
  --ink-2: rgba(22, 22, 22, .64);
  --rule: #E6E6E6;
  --tile-light: #F0F0F0;
  --tile-dark: #262626;
  --f-body: "Hanken Grotesk";
  --w-body: 400;
  --pad-x: 20px;
  --pad-top: 78px;
  position: relative;
  isolation: isolate;
  min-height: 100%;
  padding: var(--pad-top) var(--pad-x) var(--dock-space, 320px);
  color: var(--ink);
}
.sh-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #FFFFFF;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.sh.is-taken .sh-bg { opacity: 1; }

.sh [data-role] { display: grid; align-items: baseline; }
.sh [data-role] > .t { grid-area: 1 / 1; transition: opacity .32s var(--ease); }
.sh [data-role] > .t.t-in { opacity: 0; }
.sh [data-role] > .t.t-out { opacity: 0; transition-duration: .2s; transition-timing-function: ease-out; }
.sh .t.is-script { font-size: 1.36em; line-height: 1.2; }

/* The logo tile and their name. */
.sh-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 0fr auto;
  row-gap: 0;
  transition: grid-template-rows .7s var(--ease), grid-template-columns .7s var(--ease), row-gap .7s var(--ease), column-gap .7s var(--ease);
}
.sh.show-logo .sh-head { grid-template-rows: 1fr auto; row-gap: 26px; }
.sh-tile-cell { grid-row: 1; min-height: 0; min-width: 0; overflow: hidden; transition: opacity .6s var(--ease); }
.sh-name-cell { grid-row: 2; min-width: 0; }
.sh-tile {
  position: relative;
  margin: 0;
  height: 168px;
  border-radius: 12px;
  background: var(--tile-light);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  transition: opacity .5s .15s var(--ease), background-color .4s var(--ease);
}
.sh.show-logo .sh-tile { opacity: 1; }
.sh-tile[data-tone="dark"] { background: var(--tile-dark); box-shadow: none; }
.sh-logo { object-fit: contain; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.sh-logo.is-entering { opacity: 0; transform: scale(.96); }
.sh-wordmark { color: var(--ink); line-height: 1; white-space: nowrap; text-align: center; max-width: 84%; }
.sh-wordmark.is-wrapped { white-space: normal; line-height: 1.12; text-wrap: balance; }

.sh-name { position: relative; margin: 0; color: var(--ink); transition: color .5s var(--ease); }
.sh-name > .t { line-height: .98; letter-spacing: -0.01em; overflow-wrap: normal; text-wrap: balance; text-rendering: optimizeLegibility; }
.sh-name.is-tight > .t { overflow-wrap: anywhere; }
.sh-name.is-ns { color: var(--carbon); }
.sh-name.is-ns > .t { font-family: "Space Grotesk" !important; font-weight: 500 !important; letter-spacing: -0.035em; }

/* On the name step their name is typed in the dock and mirrored here, letter by letter.
   Before the first letter the name area shows nothing at all. */
.sh-name.is-editing > .t { white-space: pre-wrap; overflow-wrap: break-word; text-wrap: wrap; }
.sh-name .ch { position: relative; }
.sh-name .ch.is-new { animation: ch-in 520ms var(--ease) both; }
@keyframes ch-in {
  from { opacity: 0; top: 0.16em; filter: blur(5px); }
  to { opacity: 1; top: 0; filter: blur(0); }
}

/* Colours: one big swatch each, labelled with its code. */
.sh-colours {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transition: grid-template-rows .7s var(--ease), margin-top .7s var(--ease), opacity .5s var(--ease);
}
.sh.show-colours .sh-colours { grid-template-rows: 1fr; margin-top: 40px; opacity: 1; }
.sh-colours-in { min-height: 0; overflow: hidden; }
.sh-swatches {
  list-style: none;
  margin: 0;
  padding: 28px 0 2px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 12px;
}
.sw { display: grid; gap: 10px; transition: opacity .28s var(--ease), transform .28s var(--ease); }
.sw-chip {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background:
    linear-gradient(var(--c), var(--c)),
    repeating-conic-gradient(#DDDDDD 0 25%, #FFFFFF 0 50%) 0 0 / 14px 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.sw-code {
  font-family: var(--f-body);
  font-weight: var(--w-body);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.sw.is-new { animation: sw-in .6s var(--ease) both; }
.sw.is-leaving { opacity: 0; transform: scale(.96); }
@keyframes sw-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* Type: three labelled lines, on the sheet from the colours step on. */
.sh-type {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transition: grid-template-rows .7s var(--ease), margin-top .7s var(--ease), opacity .5s var(--ease);
}
.sh.show-type .sh-type { grid-template-rows: 1fr; margin-top: 40px; opacity: 1; }
.sh-type-in { min-height: 0; overflow: hidden; border-top: 1px solid var(--rule); }
.sh-line { display: grid; gap: 10px; padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.sh-label {
  margin: 0;
  font-family: var(--f-body);
  font-weight: var(--w-body);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--ink-2);
}
.sh-sample { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: break-word; }
.sh-s-heading { font-size: 34px; line-height: 1.08; }
.sh-s-subheading { font-size: 23px; line-height: 1.2; }
.sh-s-body { font-size: 17px; line-height: 1.55; max-width: 40ch; }

/* Before their name arrives: only nyteshift's words on the wall. */
.sh-body { transition: opacity .7s .32s var(--ease), transform .8s .32s var(--ease); }
.sh:not(.is-taken) .sh-body { opacity: 0; transform: translateY(12px); }
.sh:not(.is-taken) .sh-tile-cell { opacity: 0; }
.sh:not(.is-taken) { pointer-events: none; }
.sh.no-anim, .sh.no-anim * { transition: none !important; animation: none !important; }

@media (min-width: 900px) {
  .sh { --pad-x: clamp(44px, 5.5vw, 88px); --pad-top: clamp(84px, 12vh, 128px); }
  .sh-head { grid-template-columns: minmax(0, 1fr) 0px; grid-template-rows: auto; column-gap: 0; align-items: center; }
  .sh.show-logo .sh-head { grid-template-columns: minmax(0, 1fr) clamp(220px, 22vw, 320px); grid-template-rows: auto; row-gap: 0; column-gap: clamp(32px, 4vw, 64px); }
  .sh-tile-cell { grid-column: 2; grid-row: 1; }
  .sh-name-cell { grid-column: 1; grid-row: 1; }
  .sh-tile { height: auto; aspect-ratio: 4 / 3; }
  .sh.show-colours .sh-colours { margin-top: 56px; }
  .sh-swatches { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; padding-top: 36px; }
  .sw-chip { aspect-ratio: 1 / 1.05; border-radius: 12px; }
  .sh.show-type .sh-type { margin-top: 56px; }
  .sh-line { grid-template-columns: clamp(170px, 17vw, 250px) minmax(0, 1fr); gap: 32px; align-items: baseline; padding: 28px 0 30px; }
  .sh-s-heading { font-size: clamp(38px, 3.6vw, 56px); }
  .sh-s-subheading { font-size: clamp(23px, 2.1vw, 32px); }
  .sh-s-body { font-size: clamp(17px, 1.3vw, 20px); }
}

/* Choosing on the sheet. */
.sh.mode-roles .sh-line, .sh.mode-colours .sw { cursor: pointer; }
@media (hover: hover) {
  .sh.mode-roles .sh-line:hover .sh-label { color: var(--ink); }
  .sh.mode-colours .sw:hover .sw-chip { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 0 0 1px rgba(22, 22, 22, .35); }
}

.sh-marks { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.mark {
  position: absolute;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(23, 25, 24, .9), 0 0 0 2px rgba(255, 255, 255, .9);
  animation: mark-in .42s var(--ease) both;
}
@keyframes mark-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

.sh-measure { position: absolute; visibility: hidden; pointer-events: none; }

/* A dropped logo flying onto its tile. */
.flyer {
  position: fixed;
  z-index: 20;
  object-fit: contain;
  transform-origin: 0 0;
  pointer-events: none;
  transition: transform .68s var(--ease), opacity .3s var(--ease);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .28));
}
.drop-veil {
  position: absolute;
  inset: var(--frame);
  border-radius: var(--win-r);
  z-index: 4;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px var(--carbon), inset 0 0 0 4px var(--paper);
  background: rgba(23, 25, 24, .06);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
body.is-dragover .drop-veil { opacity: 1; }

/* ---------- The dock (nyteshift) ------------------------------------------------- */

.dock {
  position: absolute;
  z-index: 6;
  left: var(--dock-m);
  right: var(--dock-m);
  bottom: calc(var(--dock-m) + var(--kb));
  transition: bottom .25s var(--ease);
}
.dock-box {
  position: relative;
  margin-inline: auto;
  background: var(--carbon);
  color: var(--paper);
  border-radius: var(--dock-r);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(242, 238, 228, .07),
    0 28px 70px -24px rgba(0, 0, 0, .5),
    0 10px 22px -12px rgba(0, 0, 0, .35);
}
.dock-col {
  display: flex;
  flex-direction: column;
  max-height: min(calc(var(--vvh) * var(--dock-max, .72)), calc(var(--vvh) - 96px));
}
.dock.is-sheet-phone .dock-col { --dock-max: .74; }

.dock-handle {
  flex: none;
  align-self: center;
  width: 88px;
  height: 44px;
  margin: -6px 0 -18px;
  border: 0;
  background: none;
  cursor: grab;
  touch-action: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.dock-handle::before { content: ""; width: 38px; height: 4px; border-radius: 4px; background: var(--p-24); transition: background-color .2s; }
.dock-handle:hover::before { background: var(--p-62); }
.dock-handle:focus-visible { outline: 2px solid var(--sodium); outline-offset: -2px; }
.dock-handle[hidden] { display: none; }

.steps {
  flex: none;
  position: relative;
  display: flex;
  padding: 0 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 18px), transparent 100%);
}
.steps::-webkit-scrollbar { display: none; }
.steps[hidden] { display: none; }
.step {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 7px;
  border: 0;
  background: none;
  font: 500 13px/1 "Space Grotesk";
  letter-spacing: .01em;
  color: var(--field);
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
}
button.step { cursor: pointer; color: var(--p-62); }
button.step:hover { color: var(--paper); }
.step.is-current { color: var(--paper); }
.step:focus-visible { outline: 2px solid var(--sodium); outline-offset: -4px; }
.steps-marker {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--sodium);
  transition: transform .5s var(--ease), width .5s var(--ease);
}

.dock-view { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.v { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; transition: opacity .3s var(--ease), transform .45s var(--ease), filter .3s var(--ease); }
.v.v-entering { opacity: 0; transform: translateY(8px); filter: blur(2px); }
.v.v-leaving { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(-4px); transition-duration: .14s; pointer-events: none; }
.v-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 22px 6px; scrollbar-width: thin; scrollbar-color: var(--p-24) transparent; }
.v-foot { flex: none; display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 10px 14px 14px 22px; }
.v-foot-l { display: flex; align-items: center; gap: 4px; min-width: 0; }
.v-foot-l .link { white-space: nowrap; }
.v-foot-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.v-h {
  margin: 8px 0 8px;
  font: 500 22px/1.15 "Space Grotesk";
  letter-spacing: -0.015em;
  text-wrap: balance;
  outline: none;
}
.v-body { margin: 0 0 18px; font-size: 15px; line-height: 1.47; color: var(--p-74); text-wrap: pretty; max-width: 46ch; }
.v-msg:empty { display: none; }
.msg {
  display: flex;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--paper);
  text-wrap: pretty;
  animation: msg-in .35s var(--ease) both;
}
.msg::before { content: ""; flex: none; width: 3px; border-radius: 3px; background: var(--sodium); }
@keyframes msg-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (min-width: 900px) {
  .dock { left: 50%; right: auto; width: min(var(--dock-w, 760px), calc(100vw - 64px)); transform: translateX(-50%); }
  .dock-col { max-height: min(calc(var(--vvh) * .62), 480px); }
  .dock-handle { display: none; }
  .steps { padding: 6px 18px 0; }
  .v-scroll {
    display: grid;
    grid-template-columns: minmax(0, var(--words-w, 300px)) minmax(0, 1fr);
    column-gap: 44px;
    align-items: start;
    padding: 4px 32px 4px;
  }
  .v-h { font-size: 26px; margin-top: 10px; }
  .v-foot { padding: 12px 20px 20px 32px; }
  .v.v-single .v-scroll { display: block; }

  body.is-sheet .dock {
    left: auto;
    right: var(--frame);
    top: var(--frame);
    bottom: var(--frame);
    width: var(--sheet-w);
    transform: none;
  }
  body.is-sheet .dock-box { height: 100%; margin-right: 0; border-radius: var(--win-r); display: flex; flex-direction: column; }
  body.is-sheet .dock-col { max-height: none; flex: 1 1 auto; min-height: 0; }
  body.is-sheet .v-scroll { display: block; padding: 6px 30px; }

  body.is-thanks .dock { left: calc(var(--dock-m) + 8px); right: auto; transform: none; width: min(420px, calc(100vw - 64px)); }
  body.is-thanks .dock-box { margin-left: 0; }
}

/* Buttons */
.ic { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--sodium);
  color: var(--carbon);
  font: 500 16px/1 "Space Grotesk";
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s var(--ease), opacity .2s var(--ease);
}
.btn .ic { transition: transform .3s var(--ease); }
@media (hover: hover) { .btn:hover .ic { transform: translateX(3px); } }
.btn:active { transform: scale(.97); }
.btn:focus-visible, .btn-line:focus-visible, .link:focus-visible, .tile:focus-visible, .chip:focus-visible, .row-change:focus-visible {
  outline: 2px solid var(--sodium);
  outline-offset: 3px;
}
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.btn[hidden], .link[hidden], .btn-line[hidden] { display: none; }

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--p-24);
  font: 500 15px/1.1 "Space Grotesk";
  cursor: pointer;
  transition: box-shadow .2s var(--ease), background-color .2s var(--ease), transform .16s var(--ease);
}
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--p-62); }
.btn-line:active { transform: scale(.97); }

.link {
  min-height: 44px;
  padding: 10px 6px;
  border: 0;
  background: none;
  color: var(--p-90);
  font: 500 15px/1.2 "Space Grotesk";
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--p-24);
  text-underline-offset: 5px;
  cursor: pointer;
  transition: text-decoration-color .2s, color .2s;
}
.link:hover { text-decoration-color: var(--p-90); color: var(--paper); }
.link[aria-expanded="true"] { text-decoration-color: var(--sodium); }

/* Fields */
.field { display: grid; gap: 8px; margin: 0 0 14px; }
.field > label, .label { font-size: 13px; font-weight: 500; line-height: 1.25; color: var(--p-74); }
.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--p-14);
  background: var(--c-input);
  color: var(--paper);
  font-size: 17px;
  font-weight: 400;
  caret-color: var(--sodium);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--sodium); box-shadow: 0 0 0 1px var(--sodium); }
.input.is-invalid { border-color: var(--sodium); }
textarea.input { height: auto; min-height: 88px; padding: 13px 16px; line-height: 1.45; resize: vertical; }
.hint { margin: -4px 0 14px; font-size: 13px; line-height: 1.4; color: var(--p-62); }

/* Welcome */
.v-welcome .v-scroll, .v-thanks .v-scroll { padding-top: 22px; }
.v-welcome .v-body { color: var(--p-90); font-size: 16px; margin-bottom: 10px; }
@media (min-width: 900px) {
  .v-welcome .v-scroll { padding-top: 28px; }
  .v-welcome .v-body { font-size: 17px; line-height: 1.5; max-width: 44ch; }
}

/* Welcome signature */
.sig { display: flex; align-items: center; gap: 12px; }
.sig-name { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.sig-rule { width: 1px; height: 22px; background: var(--p-24); }
.sig img { height: 28px; width: auto; }

/* Colours */
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 4px; }
.chip {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(var(--c), var(--c)),
    repeating-conic-gradient(#d9d6cf 0 25%, #fff 0 50%) 0 0 / 12px 12px;
  box-shadow: inset 0 0 0 1px var(--p-14);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--carbon), 0 0 0 4px var(--paper); }
.chip.is-new { animation: chip-in .5s var(--ease) both; }
@keyframes chip-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.chip-add { height: 48px; padding: 0 16px 0 13px; }
.chip-label { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); font-size: 11px; color: var(--p-74); white-space: nowrap; }

.picker { display: grid; gap: 12px; margin: 14px 0 14px; }
.pk-field { position: relative; height: 112px; border-radius: 14px; touch-action: none; cursor: crosshair; }
.pk-hues, .pk-tone { position: absolute; inset: 0; border-radius: inherit; }
.pk-tone { background: linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0) 50%, #000 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.pk-handle {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px rgba(23, 25, 24, .55), 0 8px 16px rgba(0, 0, 0, .35);
  pointer-events: none;
  transition: transform .2s var(--ease);
}
.pk-handle > span { display: block; width: 100%; height: 100%; border-radius: 50%; }
.picker.is-dragging .pk-handle { transform: scale(1.14); }
.pk-vivid { position: relative; height: 44px; margin: -6px 0; touch-action: none; cursor: pointer; border-radius: 10px; }
.pk-vivid-track { position: absolute; inset: 12px 0; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.pk-vivid .pk-handle { top: 50%; }
.pk-field:focus-visible, .pk-vivid:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; }

.code-row { display: flex; gap: 10px; align-items: flex-end; }
.code-row .field { flex: 1; margin-bottom: 8px; }
.code-row .btn-line { margin-bottom: 8px; }
.options { display: grid; gap: 10px; margin: 6px 0 14px; }
.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--c-raise);
  box-shadow: inset 0 0 0 1px var(--p-14);
  color: var(--paper);
  font: 500 16px/1.2 "Space Grotesk";
  text-align: left;
  cursor: pointer;
  transition: box-shadow .2s, transform .16s var(--ease);
}
.option:hover { box-shadow: inset 0 0 0 1px var(--p-62); }
.option:active { transform: scale(.98); }
.option:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; }

.cl-grid { display: grid; grid-template-areas: "chips" "picker" "code" "print"; grid-template-columns: minmax(0, 1fr); }
.cl-chips { grid-area: chips; }
.cl-picker { grid-area: picker; }
.cl-code { grid-area: code; }
.cl-print { grid-area: print; margin-bottom: 4px; }
.cl-picker:empty, .cl-code:empty { display: none; }
@media (min-width: 900px) {
  .cl-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "chips picker" "code picker" "print picker"; column-gap: 26px; align-items: start; grid-template-rows: auto auto 1fr; }
  .cl-picker .picker { margin-top: 0; }
}

/* Logo */
.drop-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; }
.drop-or { font-size: 14px; color: var(--p-62); }
.files { display: grid; gap: 8px; margin: 0 0 14px; }
.file {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 8px 8px 8px 8px;
  border-radius: 14px;
  background: var(--c-raise);
}
.file-thumb {
  width: 56px;
  height: 44px;
  border-radius: 9px;
  background: repeating-conic-gradient(#dcd9d2 0 25%, #f4f2ec 0 50%) 0 0 / 10px 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.file-thumb img { max-width: 46px; max-height: 36px; object-fit: contain; }
.file-thumb.is-type { background: var(--c-input); font-size: 12px; font-weight: 600; color: var(--p-74); letter-spacing: .02em; }
.file.is-shown .file-thumb { box-shadow: 0 0 0 2px var(--carbon), 0 0 0 4px var(--sodium); }
.file-name { font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-actions { display: flex; gap: 2px; }
.file-actions .link { font-size: 14px; padding: 10px 8px; }

/* Fonts */
.roles { display: flex; gap: 4px; padding: 4px; margin: 2px 0 14px; border-radius: 14px; background: var(--c-raise); }
.roles button {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--p-74);
  font: 500 14.5px/1 "Space Grotesk";
  cursor: pointer;
  transition: color .2s, background-color .25s var(--ease);
}
.roles button:hover { color: var(--paper); }
.roles button[aria-pressed="true"] { background: var(--paper); color: var(--carbon); }
.roles button:focus-visible { outline: 2px solid var(--sodium); outline-offset: 2px; }
.matched { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; margin: -6px 0 8px; font-size: 13.5px; color: var(--p-74); }
.matched .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sodium); margin-right: 8px; vertical-align: 1px; }
.search-label { display: block; margin: 0 0 8px; }
.search-row { display: flex; gap: 10px; align-items: stretch; margin-bottom: 8px; }
.search-row .input { flex: 1; min-width: 0; }
.search-row .btn-line { flex: none; min-height: 52px; }

.tiles {
  display: flex;
  gap: 10px;
  margin: 2px -22px 10px;
  padding: 4px 22px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 22px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.tiles::-webkit-scrollbar { display: none; }
.tiles.is-centred { scroll-padding-inline: 0; }
/* A style tile: the style's name is the label; their words show it in one example font. */
.tile {
  flex: none;
  position: relative;
  width: 204px;
  min-height: 102px;
  padding: 13px 16px 22px;
  border: 0;
  border-radius: 14px;
  background: var(--c-raise);
  box-shadow: inset 0 0 0 1px var(--p-08);
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: center;
  display: grid;
  align-content: start;
  gap: 10px;
  transition: box-shadow .2s var(--ease), transform .16s var(--ease), background-color .2s;
}
.tile:hover { box-shadow: inset 0 0 0 1px var(--p-24); }
.tile:active { transform: scale(.98); }
.tile[aria-checked="true"] { box-shadow: inset 0 0 0 1px var(--p-62); background: #252826; }
.tile[aria-checked="true"]::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--sodium);
}
.tile-style { font: 500 16px/1.1 "Space Grotesk"; letter-spacing: -0.005em; color: var(--paper); }
.tile-words {
  display: block;
  font-size: 22px;
  line-height: 1.12;
  color: var(--p-74);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.tile-words.is-ready { opacity: 1; }
.tile.is-body .tile-words { font-size: 15px; line-height: 1.4; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile.is-script .tile-words { font-size: 30px; line-height: 1.15; }
.tile.is-long .tile-words { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 16px; line-height: 1.15; }
.tile.is-long.is-script .tile-words { font-size: 22px; }

/* More like this: the chosen style's other examples. */
.more-label { margin: 4px 0 8px; }
.examples {
  display: flex;
  gap: 8px;
  margin: 0 -22px 12px;
  padding: 0 22px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.examples::-webkit-scrollbar { display: none; }
.example {
  flex: none;
  display: grid;
  gap: 4px;
  min-width: 128px;
  max-width: 220px;
  min-height: 60px;
  padding: 9px 13px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--p-14);
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: box-shadow .2s, background-color .2s, color .2s;
}
.example:hover { box-shadow: inset 0 0 0 1px var(--p-62); }
.example[aria-checked="true"] { background: var(--paper); color: var(--carbon); box-shadow: none; }
.example:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; }
.example-words { font-size: 18px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .3s var(--ease); }
.example-words.is-ready { opacity: 1; }
.example-name { font-size: 11px; color: var(--p-62); white-space: nowrap; }
.example[aria-checked="true"] .example-name { color: rgba(23, 25, 24, .62); }

@media (min-width: 900px) {
  .tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; margin: 0 0 12px; padding: 0 !important; gap: 8px; scroll-snap-type: none; }
  .tiles.is-body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { width: auto; min-height: 74px; padding: 10px 13px 18px; gap: 6px; }
  .tile-style { font-size: 15px; }
  .tile[aria-checked="true"]::after { left: 13px; bottom: 9px; }
  .tile-words { font-size: 20px; }
  .tile.is-body .tile-words { font-size: 14px; }
  .tile.is-script .tile-words { font-size: 27px; }
  .search-label { margin-bottom: 6px; }
  .hint { margin-bottom: 10px; }
  .pk-field { height: 100px; }
  .examples { margin: 0 0 12px; padding: 0; flex-wrap: wrap; overflow: visible; }
  .example { flex: 1 1 0; min-width: 0; max-width: 230px; }
}

/* Feel */
.shots { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.shot { display: grid; gap: 4px; justify-items: center; }
.shot img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px var(--p-14); }
.shot .link { font-size: 13px; padding: 6px 4px; min-height: 44px; }
/* The words box: several lines tall, growing as they type, capped so it always fits
   above an on-screen keyboard (then it scrolls inside). */
textarea.input.feel-box { min-height: 148px; max-height: max(148px, calc(var(--vvh) * .42)); resize: none; overflow-y: auto; font-size: 17px; line-height: 1.5; }
.feel-links:empty { display: none; }
.feel-links { display: grid; gap: 10px; margin: 0 0 14px; }
.link-row { display: flex; align-items: center; gap: 6px; }
.link-row .input { flex: 1; min-width: 0; }
.link-row .link { flex: none; padding: 10px 8px; font-size: 14px; }
.feel-adds { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
@media (min-width: 900px) {
  textarea.input.feel-box { max-height: 260px; }
  /* The step's words stay put while its links and screenshots scroll. */
  .v-feel .v-words { position: sticky; top: 0; }
}

/* Review */
.rows { display: grid; margin: 4px 0 8px; }
.row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--p-14);
}
.row:last-child { border-bottom: 1px solid var(--p-14); }
.row-name { grid-area: name; font-size: 13px; font-weight: 500; color: var(--p-62); padding-top: 2px; }
.row-val { grid-area: val; }
.row-change { grid-area: change; }
@media (max-width: 899px) {
  .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name change" "val val"; row-gap: 6px; }
}
@media (min-width: 900px) {
  .row { grid-template-areas: "name val change"; }
}
.row-val { font-size: 14.5px; line-height: 1.45; color: var(--paper); min-width: 0; overflow-wrap: anywhere; }
.row-val .sub { color: var(--p-74); }
.row-change { min-height: 44px; margin: -12px -6px -12px 0; padding: 0 8px; border: 0; background: none; color: var(--p-90); font: 500 14px/1 "Space Grotesk"; text-decoration: underline; text-decoration-color: var(--p-24); text-underline-offset: 4px; cursor: pointer; }
.row-change:hover { text-decoration-color: var(--paper); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.swatch-line { display: flex; align-items: center; gap: 9px; }
.swatch-line .code { font-variant-numeric: tabular-nums; }
.swatch { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--p-14); flex: none; }
.font-line { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
.private { font-size: 13.5px; color: var(--p-74); }
.progress { position: relative; height: 2px; border-radius: 2px; background: var(--p-14); overflow: hidden; margin: 2px 0 14px; }
.progress > span { position: absolute; inset: 0; transform-origin: 0 0; transform: scaleX(0); background: var(--sodium); }
.sending-line { font-size: 15px; color: var(--paper); margin: 0 0 10px; }

/* Thanks */
.v-thanks .v-h { font-size: 22px; }
.sig-mark { width: 30px; height: 30px; }

/* Tweaks (Del and Kit only; never shown by default) */
.tweaks {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 100;
  width: 260px;
  padding: 14px;
  background: #fff;
  color: #111;
  font: 13px/1.4 system-ui, sans-serif;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
  display: grid;
  gap: 8px;
}
.tweaks[hidden] { display: none; }
.tweaks label { display: grid; gap: 3px; }
.tweaks select, .tweaks button { font: inherit; padding: 6px; }
.tweaks .row2 { display: flex; gap: 6px; }

/* Reduced motion: straight to each resting state. */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after {
  transition-duration: 0s !important;
  transition-delay: 0s !important;
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  scroll-behavior: auto !important;
}
