/* CineKitchen public pages in the workspace's soft-light theme + the "Dene" examples. Loaded after public.css. */
.ck-public {
  --cp-paper: #F5F3FC; --cp-ink: #24233A; --cp-muted: #6C6B85; --cp-line: rgba(60, 58, 110, .12);
  --cp-green: #5B57C9; --cp-soft: #ECEAFB; --cp-white: #fff;
  --cp-prep: #138476; --cp-plan: #4C59E6; --cp-shoot: #C8551F; --cp-edit: #8549D4;
  --cp-round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --cp-glass: rgba(255,255,255,.6); --cp-edge: rgba(255,255,255,.8);
  --cp-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 40px -22px rgba(52, 46, 120, .35);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  background: #F5F3FC;
}
.ck-public::before { content: ""; position: fixed; inset: -10vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 10% 6%, rgba(185, 178, 255, .55), transparent 70%),
    radial-gradient(32vmax 26vmax at 92% 18%, rgba(159, 227, 216, .5), transparent 70%),
    radial-gradient(36vmax 28vmax at 75% 92%, rgba(255, 196, 168, .38), transparent 72%),
    linear-gradient(180deg, #F7F5FE, #F2F0FB); }
.ck-public h1, .ck-public h2, .ck-public h3, .wordmark { font-family: var(--cp-round); }

/* glass header */
.public-header { position: sticky; top: 12px; z-index: 10; margin-top: 12px; border: 1px solid var(--cp-edge); border-radius: 999px; padding-top: 14px; padding-bottom: 14px;
  max-width: 1216px; background: var(--cp-glass); backdrop-filter: blur(22px) saturate(165%); -webkit-backdrop-filter: blur(22px) saturate(165%); box-shadow: var(--cp-shadow); }
.ck-public .button { border-radius: 999px; background: rgba(255,255,255,.8); transition: transform .18s var(--spring), box-shadow .2s, background .2s; }
.ck-public .button:active { transform: scale(.96); }
.ck-public .button-primary { background: linear-gradient(135deg, #5B57C9, #7E78E8); border-color: transparent; box-shadow: 0 12px 26px -12px #5B57C9; }
.ck-public .button-primary:hover { background: #3F3B9E; }
.eyebrow { color: var(--cp-green); }
.hero h1 { font-weight: 800; letter-spacing: -.04em; }
.hero h1 em { background: linear-gradient(100deg, #5B57C9, #1F9E8F 55%, #E8743B); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* hero board: glass, floating */
.board-visual { background: rgba(255,255,255,.62); border: 1px solid var(--cp-edge); border-radius: 22px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 70px -40px rgba(52, 46, 120, .5); animation: ck-float 7s ease-in-out infinite; }
@keyframes ck-float { 0%, 100% { transform: rotate(-2deg) translateY(0); } 50% { transform: rotate(-1.4deg) translateY(-8px); } }
.board-top, .board-caption { border-color: rgba(60, 58, 110, .1); }
.board-dot { background: #5B57C9; box-shadow: 0 0 10px #B9B2FF; }
.scene-card, .take-card { border-color: rgba(60, 58, 110, .1); border-radius: 12px; }
.scene-state { background: #E5E8FD; color: #3340B5; }
.frame { border-radius: 12px; background: #DCE0F5; }
.frame:before { background: #C9CEEC; }
.frame-close { background: #FDE8DC; }
.frame-close:before { background: #F7D2BD; }
.figure { background: #6F72B8; }
.figure-b { background: #9BA0D8; }
.figure-c { background: #C98A68; }
.flow-grid article:nth-child(1) .step-number { color: var(--cp-prep); }
.flow-grid article:nth-child(2) .step-number { color: var(--cp-plan); }
.flow-grid article:nth-child(3) .step-number { color: var(--cp-shoot); }
.flow-grid article:nth-child(4) .step-number { color: var(--cp-edit); }
.flow-grid .step-number::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; vertical-align: 1px; }
.closing { background: linear-gradient(120deg, rgba(236, 234, 251, .9), rgba(221, 243, 239, .8)); border: 1px solid var(--cp-edge); border-radius: 28px; box-shadow: var(--cp-shadow); }

/* ---------- Dene ---------- */
.try { padding-top: 56px; padding-bottom: 72px; border-top: 1px solid var(--cp-line); }
.try-head { margin-bottom: 28px; }
.try-head h2 { font-size: 35px; font-weight: 800; }
.try-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.try-card { --tone: var(--cp-plan); padding: 16px 16px 20px; border-radius: 26px; background: rgba(255,255,255,.66); border: 1px solid var(--cp-edge);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--cp-shadow); transition: opacity .6s ease, transform .6s var(--spring); }
.try-card[data-tone="prep"] { --tone: var(--cp-prep); } .try-card[data-tone="shoot"] { --tone: var(--cp-shoot); }
.try-card.pre { opacity: 0; transform: translateY(18px); }
.try-card.pre.in { opacity: 1; transform: none; }
.try-card:nth-child(2) { transition-delay: .08s; } .try-card:nth-child(3) { transition-delay: .16s; }
.try-card h3 { font-size: 20px; font-weight: 800; margin: 16px 4px 4px; }
.try-card > p { font-size: 13px; color: var(--cp-muted); margin: 0 4px; }
.try-stage { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: rgba(244, 242, 252, .9); }

.try-frame svg { display: block; width: 100%; height: 100%; }
.try-fig { fill: #5B5F9E; transition: transform .6s var(--spring); }
.try-guide { fill: none; stroke: rgba(255,255,255,.8); stroke-width: .8; stroke-dasharray: 3 2; }
.try-size { position: absolute; left: 12px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.85); font-size: 12px; font-weight: 650; color: var(--tone); }
.try-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 4px 0; }
.try-chips button { height: 32px; padding: 0 12px; border: 1px solid var(--cp-line); border-radius: 999px; background: #fff; font: 600 12px/1 var(--cp-font); color: var(--cp-ink); cursor: pointer; transition: transform .18s var(--spring), background .2s, color .2s; }
.try-chips button:active { transform: scale(.94); }
.try-chips button[aria-pressed="true"] { background: var(--tone); border-color: var(--tone); color: #fff; box-shadow: 0 8px 16px -8px var(--tone); }

.try-nodes { background-image: radial-gradient(rgba(80, 74, 160, .16) 1.2px, transparent 1.2px); background-size: 18px 18px; touch-action: none; }
.try-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.try-lines path { fill: none; stroke: rgba(91, 87, 201, .55); stroke-width: 2; stroke-dasharray: 6 6; animation: try-flow 1.2s linear infinite; }
@keyframes try-flow { to { stroke-dashoffset: -12; } }
.try-node { position: absolute; padding: 9px 14px; border: 1px solid #fff; border-radius: 14px; background: #fff; font: 700 13px/1 var(--cp-round); color: var(--cp-ink); cursor: grab;
  box-shadow: 0 10px 20px -12px rgba(52, 46, 120, .5), inset 0 -3px 0 var(--c); transition: box-shadow .2s, transform .18s var(--spring); user-select: none; }
.try-node[data-tone="prep"] { --c: var(--cp-prep); } .try-node[data-tone="plan"] { --c: var(--cp-plan); } .try-node[data-tone="shoot"] { --c: var(--cp-shoot); } .try-node[data-tone="edit"] { --c: var(--cp-edit); }
.try-node.held { cursor: grabbing; transform: scale(1.06); box-shadow: 0 18px 30px -14px rgba(52, 46, 120, .6), inset 0 -3px 0 var(--c); }

.try-day { display: flex; flex-direction: column; justify-content: center; padding: 10px; }
.try-day ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.try-day li { display: grid; grid-template-columns: 44px 14px 1fr auto 26px; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 12px; background: #fff; font-size: 12px;
  box-shadow: 0 6px 14px -10px rgba(52, 46, 120, .5); cursor: grab; touch-action: none; user-select: none; }
.try-day li[data-type="shot"] { box-shadow: 0 6px 14px -10px rgba(52, 46, 120, .5), inset 3px 0 0 var(--cp-shoot); }
.try-day li.held { cursor: grabbing; box-shadow: 0 0 0 2px var(--cp-shoot), 0 14px 24px -12px rgba(52, 46, 120, .6); position: relative; z-index: 1; }
.try-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.try-grip { color: #B8B6CC; letter-spacing: -2px; }
.try-day em { font-style: normal; color: var(--cp-muted); }
.try-up { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #F2F0FB; cursor: pointer; font-size: 12px; }
.try-wrap { margin-top: 8px; text-align: right; font-size: 12px; color: var(--cp-muted); }
.try-wrap b { color: var(--cp-shoot); font-size: 14px; margin-left: 4px; }

@media (max-width: 1000px) { .try-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .public-header { margin: 10px 12px 0; padding: 10px 16px; }
  .try { padding-top: 38px; padding-bottom: 44px; }
  .try-head h2 { font-size: 29px; }
  .try-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .board-visual, .try-lines path { animation: none; }
  .try-card, .try-card.pre { opacity: 1; transform: none; transition: none; }
}
.ck-public section[id] { scroll-margin-top: 110px; }
