/* drop.oqim.app — the oqim.app home page's language (marketing repo,
   app/_components/home/home.module.css): white page, sky field with pixel
   clouds, light headings, grey 32px cards, black pills, the peach→pink bar,
   one word on a rotated pink highlighter. */

:root {
  --blue: #31c8ff;
  --green: #3ce5a0;
  --pink: #ffc1e6;
  --ink: #000;
  --ink-2: #1c1917;
  --grey-1: #f6f6f7;
  --grey-2: #ededef;
  --grey-3: #d9d9dd;
  --text-2: #6e6e73;
  --red: #d92d20;
  --sky: linear-gradient(180deg, #bfeeff 0%, #e4f8ff 40%, #fff 76%);
  --sky-long: linear-gradient(180deg, #bfeeff 0%, #e4f8ff 55%, #f4fbff 100%);
  --grad-bar: linear-gradient(90deg, #fbd3ca, #fdc8d7 55%, #fdc3e0);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }

::selection { background: var(--pink); color: var(--ink); }

html { background: #fff; }

body {
  min-height: 100svh;
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; }

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Top bar */

.bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.brand img { width: 72px; height: auto; display: block; }

.brand span { color: var(--text-2); font-weight: 400; }

.where {
  margin: 0;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 13px;
}

/* Hero: the home page's sky field */

.hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 48px;
  background: var(--sky-long);
}

.cloudLeft,
.cloudRight {
  position: absolute;
  top: 96px;
  width: min(20vw, 260px);
  height: auto;
  pointer-events: none;
}

.cloudLeft { left: -72px; }
.cloudRight { right: -72px; transform: scaleX(-1); }

.hero h1 {
  max-width: 720px;
  margin: 40px auto 0;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
}

.accent {
  display: inline-block;
  padding: 0 0.16em 0.04em;
  border-radius: 0.28em;
  background: var(--pink);
  transform: rotate(-2deg);
}

.lede {
  max-width: 520px;
  margin: 18px auto 32px;
  color: var(--ink-2);
  font-size: 17px;
  text-align: center;
  text-wrap: balance;
}

/* The drop target. The whole window accepts files; this card is the visible,
   clickable half of that target. */

.target {
  display: grid;
  width: 100%;
  min-height: 240px;
  place-items: center;
  align-content: center;
  gap: 20px;
  padding: 40px 24px;
  border: 0;
  border-radius: 40px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: background-color 160ms ease;
}

.target:hover { background: #fdfdfd; }

.target:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.targetLine {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hint {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}

kbd {
  display: inline-block;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--grey-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 22px;
}

/* Black pill with the pink disc, as on the home page */

.pill {
  display: inline-flex;
  height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 24px 0 6px;
  border: 0;
  border-radius: 999px;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.008em;
  white-space: nowrap;
  transition: background-color 200ms ease;
}

.pill:hover { background: #2e2e2e; }

.pill:focus-visible,
.soft:focus-visible,
.quiet:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.pill:disabled { background: var(--grey-3); color: var(--text-2); cursor: default; }

.disc {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  color: var(--ink);
}

.pill:disabled .disc { background: #fff; color: var(--text-2); }

.disc svg,
.soft svg,
.quiet svg { width: 18px; height: 18px; }

.target .pill { pointer-events: none; }

.soft {
  display: inline-flex;
  height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 200ms ease;
}

.soft:hover { background: var(--grey-2); }

.soft:disabled { color: var(--text-2); cursor: default; background: #fff; }

.quiet {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}

.quiet:hover { background: var(--grey-2); color: var(--ink); }

/* Batches */

.batches {
  display: grid;
  gap: 16px;
  padding: 32px 0 96px;
}

.listHead {
  margin: 24px 0 0;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.batch {
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: 32px;
  background: var(--grey-1);
}

.batch.current { background: var(--grey-1); box-shadow: inset 0 0 0 2px var(--ink); }

.batchTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.batch h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.batch h3 span { color: var(--text-2); }

.meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--grey-2);
}

.meter i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad-bar);
  transition: width 200ms linear;
}

.batch[data-state="done"] .meter { display: none; }

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thumb {
  position: relative;
  width: 72px;
  height: 72px;
}

.thumb a,
.thumb > span {
  display: grid;
  width: 100%;
  height: 100%;
  overflow: hidden;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
  text-transform: lowercase;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Step dots from the home page: grey next, blue now, green done */
.thumb::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--grey-1);
  border-radius: 50%;
  background: var(--grey-3);
}

.thumb[data-state="up"]::after { background: var(--blue); }
.thumb[data-state="done"]::after { display: none; }
.thumb[data-state="fail"]::after { background: var(--red); }

/* The paste block: exactly what lands in the Claude session */

.paste {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  border-radius: 20px;
  background: #fff;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.paste div { color: var(--grey-3); transition: color 200ms ease; }
.paste div[data-state="up"] { color: var(--text-2); }
.paste div[data-state="done"] { color: var(--ink); }
.paste div[data-state="fail"] { color: var(--red); }

.paste button {
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.note {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}

.batch.saved { gap: 16px; padding: 24px 28px; }
.batch.saved .thumb { width: 56px; height: 56px; }
.batch.saved .thumb a { border-radius: 14px; }
.batch.saved .actions { gap: 8px; }

details summary {
  width: fit-content;
  color: var(--text-2);
  cursor: pointer;
  font-size: 14px;
}

details summary:hover { color: var(--ink); }
details[open] summary { margin-bottom: 12px; }

.deleted {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 28px;
  border-radius: 32px;
  background: var(--grey-1);
  color: var(--text-2);
}

.deleted .soft { color: var(--ink); }

.empty {
  margin: 0;
  padding: 32px 0;
  color: var(--text-2);
  text-align: center;
}

/* Drag overlay: the whole window turns into the sky */

.overlay {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: var(--sky);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.overlay p {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.overlay span { color: var(--ink-2); font-size: 17px; }

html.dragging .overlay { opacity: 1; }

/* Login */

.login {
  min-height: 100svh;
  background: var(--sky);
}

.login form {
  display: grid;
  width: min(420px, 100%);
  gap: 12px;
  margin: 32px auto 0;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 8px 0 24px;
  border-radius: 999px;
  background: #fff;
}

.field:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }

.field input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
}

.field .pill { height: 48px; padding: 0 6px; width: 48px; justify-content: center; }
.field .pill .disc { width: 36px; height: 36px; }

.error { margin: 0; color: var(--red); font-size: 14px; text-align: center; }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .where { display: none; }
  .cloudLeft, .cloudRight { width: 22vw; top: 64px; }
  .cloudLeft { left: -36px; }
  .cloudRight { right: -36px; }
  .lede { font-size: 16px; margin-bottom: 24px; }
  .paste { padding: 14px 16px; font-size: 12px; }
  .hero { padding-bottom: 32px; }
  .batches { padding-top: 24px; }
  .hero h1 { margin-top: 24px; }
  .target { min-height: 200px; border-radius: 32px; }
  .batch { padding: 20px; border-radius: 28px; }
  .actions .pill, .actions .soft { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
