/*
 * Page CSS for the klipit landing page.
 * The kit (public/assets) owns layout, type, colour, buttons and motion. This file only
 * styles what sits inside a visual and the kit has no class for.
 */

/* Hero: the art frame's lit ground, one soft light, as the collage hero asks. */
.hero__art {
  background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 80%, var(--ground-accent)), transparent 70%),
    var(--ground-bg);
}
.hero__proof { font-size: var(--t-small); color: var(--muted); }
/* the window keeps its cut clear of the status column */
.hero__art .ly-piece--main .ui-win__main { padding-right: var(--ly-cut-room); }
.hero__art .ly-piece--main .ui-win { width: 100%; }

/* Hero: the small result card over the window's lower-left corner. */
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }
.k-note {
  background: #fff; color: #16181a; border-radius: 12px; padding: 14px 16px; text-align: left;
  font: 400 14px/1.4 var(--font-text);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 18px 40px -20px rgb(0 0 0 / .45);
}
.k-note h5 { margin: 0 0 4px; font: 600 14px/1.3 var(--font-text); }
.k-note__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.k-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #3d4247; border-top: 1px solid rgb(0 0 0 / .06); }
.k-note__line:first-of-type { border-top: 0; }
.k-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e1efe9; color: #1f5c49; font-style: normal; font-size: 13px; font-weight: 700; }
.k-note__line b { font-weight: 500; color: #16181a; }
.k-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 13px; font-weight: 500; background: #e1efe9; color: #1f5c49; }
.k-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* How it works: one panel height for the four cards. */
#how .panel { --p-h: 300px; }
@media (max-width: 639px) { #how .panel { --p-h: 180px; } #how .stage { --fade-h: 40px; } }

/* The app frame (the kit's app-frame recipe, whole). */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* Shapes: the three sizes as plain lines, each closed by a rule. */
.k-facts { list-style: none; margin: 0; padding: 0; }
.k-facts li { display: flex; justify-content: space-between; gap: var(--s-5); padding: var(--s-3) 0; border-bottom: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); font-size: var(--t-body); }
.k-facts li span:last-child { font-family: var(--font-mono); }

/* The dealt ground is a mid grey, so card text takes the full ink to stay at 7:1. */
#how .card > p { color: var(--ink); }

/* The app frame's open pane: the transcript takes the pane, its note in its own gutter. */
.app > .app__pane > .ui-doc { width: 100%; }
@media (min-width: 1024px) { .app > .app__pane > .ui-doc { padding-right: 232px; } }

/* The shape picker (inside the shapes frame). */
.k-shapes { --k-h: 132px; width: 100%; height: 100%; display: flex; flex-direction: column; }
.k-shapes__row { display: flex; align-items: flex-end; gap: 16px; padding: 20px 16px 16px; border-bottom: 1px solid var(--u-line); }
.k-shape { display: grid; gap: 2px; font-size: 13px; line-height: 16px; }
.k-shape__frame {
  position: relative; height: var(--k-h); border-radius: 8px; overflow: hidden; margin-bottom: 8px;
  background: #1d1f22; box-shadow: 0 0 0 1px var(--u-border);
}
.k-shape[data-shape="vertical"] .k-shape__frame { aspect-ratio: 9 / 16; }
.k-shape[data-shape="square"] .k-shape__frame { aspect-ratio: 1; }
.k-shape[data-shape="original"] .k-shape__frame { aspect-ratio: 16 / 9; }
.k-shape.is-on .k-shape__frame { box-shadow: 0 0 0 2px var(--u-accent, var(--p-accent)); }
.k-shape__name { font-weight: 500; color: var(--u-ink); }
.k-shape__size { color: var(--u-muted); font-family: var(--font-mono); font-size: 12px; }
/* the stream's picture, always 16:9, centred in the frame */
.k-shape__pic {
  position: absolute; left: 0; right: 0; top: 50%; aspect-ratio: 16 / 9; transform: translateY(-50%);
  background: linear-gradient(135deg, #d9ccb7, #b9a889 55%, #8f9c86);
}
.k-shape[data-shape="original"] .k-shape__pic { inset: 0; transform: none; aspect-ratio: auto; }
.k-shape__title { position: absolute; z-index: 1; left: 18%; right: 18%; top: 9%; height: 7px; border-radius: 3px; background: #fff; }
.k-shape[data-shape="original"] .k-shape__title { left: 34%; right: 34%; }
.k-shape__sub { position: absolute; z-index: 1; left: 0; right: 0; bottom: 14%; display: flex; justify-content: center; gap: 3px; }
.k-shape[data-shape="original"] .k-shape__sub { bottom: 10%; }
.k-shape__sub b { height: 5px; width: 18%; border-radius: 2px; background: #fff; }
.k-shape__sub b:first-child { background: #ffe100; }
.k-shape[data-shape="original"] .k-shape__sub b { width: 9%; }
.k-shapes__clips { list-style: none; margin: 0; padding: 4px 16px 0; }
.k-shapes__clips li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 40px; font-size: 13px; color: var(--u-ink); border-bottom: 1px solid var(--u-line); }
.k-shapes__tick { background: var(--u-accent, var(--p-accent)); border-color: transparent; color: #fff; }
.k-shapes__tick svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 1; }
.k-shapes__len { color: var(--u-muted); font-family: var(--font-mono); font-size: 12px; }
@media (max-width: 1279px) { .k-shapes { --k-h: 104px; } .k-shapes__row { gap: 12px; } }
@media (max-width: 639px) { .k-shapes { --k-h: 78px; } }

/* Early access: the exports window fills its frame's width. */
#access .ui-win { width: 100%; height: 100%; }
.k-shapes__tick path { stroke-dashoffset: 0; }
.k-shapes__tick { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; }
#access .ui-win__body { grid-template-columns: minmax(0, 1fr); }

/* The shape picker keeps its three frames whole at every width. */
.k-shape { flex: none; }
@media (max-width: 639px) {
  .k-shapes { --k-h: 64px; }
  .k-shapes__row { gap: 10px; padding: 16px 12px 12px; }
  .k-shape__size { display: none; }
}
/* below a desktop there is no gutter for the transcript's note, so the marked sentence stands alone */
@media (max-width: 1023px) { .app .ui-doc__note { display: none; } }
