/* Coro: page CSS inside the visuals (tasteskill: page CSS only inside a visual). Kit tokens only. */

/* ---------- shared pieces of Coro's own UI ---------- */
.cw, .cw-chat, .cw-card {
  --fx-bg: #ffffff; --fx-ink: #141210; --fx-muted: #6b665e; --fx-accent: #1f6b3a;
  font: 400 13px/1.35 var(--font-text); color: var(--u-ink);
}
.cw { background: var(--u-bg); border: 1px solid var(--u-border); border-radius: 14px; box-shadow: var(--u-shadow); overflow: hidden; }
.cw__bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--u-line); color: var(--u-muted); white-space: nowrap; }
.cw__crumb { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cw__crumb b { color: var(--u-ink); font-weight: 500; }
.cw__crumb .mark { width: 14px; height: 14px; }
.cw__count { font-variant-numeric: tabular-nums; }
.cw__body { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); min-height: 420px; }
.cw__list { display: grid; align-content: start; gap: 2px; padding: 8px; border-right: 1px solid var(--u-line); }
.cw__row { display: grid; grid-template-columns: auto 32px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; height: 46px; padding: 0 8px; border-radius: 9px; }
.cw__row:not(:has(.cw__num)) { grid-template-columns: 32px minmax(0, 1fr) auto auto; }
.cw__row.is-on { background: var(--u-fill-2); }
.cw__num { width: 16px; color: var(--u-soft); font-variant-numeric: tabular-nums; text-align: right; }
.cw__who { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw__len { color: var(--u-muted); font-variant-numeric: tabular-nums; }
.cw__st { height: 22px; padding: 0 8px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; background: var(--u-tint); color: var(--u-accent-text); }
.cw__st.is-new { background: var(--u-ink); color: var(--u-bg); }

.cw-av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: block; flex: none; background: var(--u-fill-3); }
.cw-av img { width: 100%; height: 100%; object-fit: cover; }

.cw__stage { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 20px; padding: 20px; align-items: start; }
.cw__steps { display: grid; gap: 10px; align-content: start; }

.cw-still { position: relative; display: block; overflow: hidden; border-radius: 10px; background: #2a2622; }
.cw-still img { width: 100%; height: 100%; object-fit: cover; }
.cw-still--tall { aspect-ratio: 9 / 16; }
.cw-still--wide { aspect-ratio: 16 / 9; }
.cw-lower {
  position: absolute; left: 7%; bottom: 7%; padding: 5px 10px 6px; border-radius: 8px;
  background: #f4efe7; color: #141210; font: 500 13px/1.2 var(--font-text); letter-spacing: -0.01em;
}
.cw-still--wide .cw-lower { left: 5%; bottom: 8%; font-size: 15px; padding: 7px 12px 8px; border-radius: 10px; }

.cw-note, .cw-progress, .cw-ready { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--u-bg); border: 1px solid var(--u-border); box-shadow: var(--u-shadow-sm); }
.cw-note { grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 10px; }
.cw-note b, .cw-progress b, .cw-ready b { font-weight: 500; }
.cw-note small, .cw-ready small { display: block; color: var(--u-muted); font-size: 12px; margin-top: 2px; }
.cw-bar { display: block; height: 6px; border-radius: 99px; background: var(--u-fill-3); overflow: hidden; }
.cw-bar i { display: block; height: 100%; width: 62%; border-radius: inherit; background: var(--u-accent); }
[data-ly-steps] .cw-progress:not(.is-off) .cw-bar i { animation: cw-fill 1.4s var(--ease) both; }
@keyframes cw-fill { from { width: 8%; } to { width: 100%; } }
.cw-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cw-btn { height: 30px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; background: var(--u-fill-2); color: var(--u-ink); white-space: nowrap; }
.cw-btn--fill { background: var(--u-accent); color: #fff; }

/* the hero frame: the sand ground under the window */
.cw-ground { --ground-bg: #d9ccb7; }
.hero--centred .hero__window > .ly-piece { width: min(940px, calc(100% - 2 * var(--s-6))); }

/* ---------- steps fragments ---------- */
.cw-panel { --p-h: 336px; }
.cw-panel .stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; }
.cw-chat { width: min(100%, 320px); background: #efeae2; border-radius: 14px; padding: 12px; box-shadow: var(--u-shadow); }
.cw-chat__head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font-weight: 500; }
.cw-chat__av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #1f6b3a; color: #fff; font-size: 12px; }
.cw-bubble { position: relative; background: #ffffff; border-radius: 10px 10px 10px 2px; padding: 8px 10px 20px; box-shadow: 0 1px 1px rgb(0 0 0 / .08); }
.cw-bubble p { margin: 0 0 8px; font-size: 13px; line-height: 1.4; }
.cw-bubble time { position: absolute; right: 10px; bottom: 6px; font-size: 11px; color: var(--u-muted); }
.cw-link { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; border-radius: 8px; background: #f3f1ed; }
.cw-link img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; }
.cw-link b { display: block; font-weight: 500; font-size: 13px; }
.cw-link small { color: var(--u-muted); font-size: 12px; }

.cw-phone { position: relative; width: 200px; aspect-ratio: 9 / 19; border-radius: 30px; padding: 7px; background: #141210; box-shadow: var(--u-shadow, 0 20px 40px -20px rgb(0 0 0 / .5)); }
.cw-phone__screen { position: relative; width: 100%; height: 100%; border-radius: 24px; overflow: hidden; background: #2a2622; }
.cw-phone__screen > img, .cw-phone__screen > video { width: 100%; height: 100%; object-fit: cover; }
.cw-panel .cw-phone { width: 168px; align-self: start; margin-top: 8px; }
.cw-phone__prompt { position: absolute; left: 10px; right: 10px; top: 14px; padding: 8px 10px; border-radius: 10px; background: rgb(20 18 16 / .62); color: #fff; font: 500 12px/1.35 var(--font-text); text-align: center; }
.cw-phone__rec { position: absolute; left: 50%; bottom: 66px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; background: rgb(20 18 16 / .62); color: #fff; font: 500 11px/1.4 var(--font-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cw-phone__rec i { width: 7px; height: 7px; border-radius: 50%; background: #e8452c; }
.cw-phone__btn { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; }
.cw-phone__btn i { width: 16px; height: 16px; border-radius: 4px; background: #e8452c; }

.cw-card { width: min(100%, 300px); background: #fff; border: 1px solid var(--u-border); border-radius: 14px; box-shadow: var(--u-shadow); padding: 16px; display: grid; gap: 12px; }
.cw-card b { font-weight: 500; font-size: 14px; }
.cw-checks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cw-checks li { display: flex; align-items: center; gap: 8px; color: var(--u-muted); }
.cw-checks li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--u-line-2); }
.cw-checks li.is-done { color: var(--u-ink); }
.cw-checks li.is-done::before { border: 0; background: var(--u-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- app-frame (the panel, big) ---------- */
.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::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
.cw-app { --fx-bg: #ffffff; --fx-ink: #141210; --fx-muted: #6b665e; --fx-accent: #1f6b3a; font: 400 13px/1.35 var(--font-text); color: var(--u-ink); }
.cw-app .cw__list { border-right: 0; }
.cw-open { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 24px; padding: 24px; align-items: start; }
.cw-open__side { display: grid; gap: 16px; align-content: start; }
.cw-open__name b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.cw-open__name small { color: var(--u-muted); font-variant-numeric: tabular-nums; }
.cw-settings { display: grid; margin: 8px 0 0; border-top: 1px solid var(--u-line); }
.cw-settings > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--u-line); }
.cw-settings dt { color: var(--u-muted); }
.cw-settings dd { margin: 0; font-weight: 500; }
.cw-panel-copy { color: var(--ink); font-size: var(--t-lead); line-height: 1.5; }
@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 > .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; }
  .cw-open { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 16px; padding: 16px; }
}

/* ---------- occasions (marquee moment) ---------- */
.cw-occasions .cw-marquee { margin-top: auto; margin-bottom: auto; }
.cw-occasions .mo-mq__track > li { font: var(--display-weight) clamp(24px, 1vw + 22px, 36px)/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }

/* ---------- editing features ---------- */
.cw-feature { --p-h: 336px; display: grid; place-items: center; padding: 28px; }
.cw-feature .cw-still--wide { width: min(100%, 460px); box-shadow: var(--u-shadow, 0 20px 40px -20px rgb(0 0 0 / .4)); }
.cw-duck { width: min(100%, 440px); height: auto; overflow: visible; }
.cw-duck__label { font: 500 13px/1 var(--font-text); fill: var(--ground-ink, #2c2318); }
.cw-duck__voice { fill: var(--ink); }
.cw-duck__line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cw-formats { position: relative; width: min(100%, 460px); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 48px -24px rgb(0 0 0 / .45); background: #2a2622; }
.cw-formats__blur { position: absolute; inset: -8%; }
.cw-formats__blur img { width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.62) saturate(1.1); }
.cw-formats__clip { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); aspect-ratio: 9 / 16; }
.cw-formats__clip img { width: 100%; height: 100%; object-fit: cover; }
.cw-credits { width: min(100%, 460px); aspect-ratio: 16 / 9; border-radius: 12px; background: #f4efe7; color: #141210; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; box-shadow: 0 24px 48px -24px rgb(0 0 0 / .35); }
.cw-credits__title { font: 500 22px/1.1 var(--font-display); letter-spacing: -0.02em; }
.cw-credits__names { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 28px; font-size: 14px; }
.cw-credits small { font-size: 11px; color: #6b655c; }

/* ---------- example (dark band) ---------- */
.cw-example { align-items: start; }
.cw-example__copy { display: grid; gap: var(--s-7); align-content: start; }
.cw-facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.cw-facts > div { display: flex; justify-content: space-between; gap: var(--s-5); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.cw-facts dt { color: var(--muted); }
.cw-facts dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.cw-example__film { display: grid; justify-items: center; }
.cw-phone--film { width: min(320px, 100%); background: #050505; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 40px 80px -30px rgb(0 0 0 / .8); }
.cw-phone--film video { background: #000; }

/* ---------- price ---------- */
.cw-price { display: grid; gap: var(--s-5); align-content: start; }
.cw-price__lede { font-size: var(--t-lead); line-height: 1.5; max-width: 52ch; }
.cw-rows { margin-top: var(--s-4); }
.cw-price__visual { display: grid; justify-items: center; align-content: start; }
.cw-phone--gift { width: min(280px, 100%); }
.cw-gift { background: #f4efe7; display: grid; align-content: center; justify-items: center; gap: 18px; padding: 28px 22px; text-align: center; color: #141210; }
.cw-gift__mark .mark { width: 28px; height: 28px; }
.cw-gift__hello { font: 500 26px/1.1 var(--font-display); letter-spacing: -0.03em; }
.cw-gift__faces { display: flex; }
.cw-gift__faces img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #f4efe7; margin-left: -10px; }
.cw-gift__faces img:first-child { margin-left: 0; }
.cw-gift__from { font-size: 14px; color: #6b655c; max-width: 20ch; }
.cw-gift__open { height: 44px; padding: 0 28px; border-radius: 10px; font-size: 15px; background: #1f6b3a; color: #fff; display: inline-flex; align-items: center; }

/* ---------- faq ---------- */
.cw-faq__lede { margin-top: var(--s-4); }

/* ---------- menu card ---------- */
.cw-menu-panel { --p-h: 160px; }
.cw-menu-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1023px) {
  .cw__body { grid-template-columns: minmax(0, 1fr); }
  .cw__list { display: none; }
}
@media (max-width: 639px) {
  .cw__stage { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 12px; padding: 12px; }
  .cw__count { display: none; }
  .cw-feature { padding: 16px; }
  .cw-credits__names { grid-template-columns: repeat(2, auto); }
}
@media (prefers-reduced-motion: reduce) {
  [data-ly-steps] .cw-progress .cw-bar i { animation: none; }
}

/* the name-label card: one vertical frame standing in the panel */
.cw-feature .cw-still--card { height: calc(var(--p-h) - 56px); width: auto; aspect-ratio: 9 / 16; box-shadow: 0 24px 48px -24px rgb(0 0 0 / .45); }

/* the hero player shows the frame down to the name label above the window's fade */
.cw__player .cw-still--tall { aspect-ratio: 4 / 5; }
.cw__player .cw-still--tall img { object-position: 50% 20%; }
/* the film's order as a strip of faces, under the settings */
.cw-strip { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.cw-strip img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 4px; }

/* occasions: six faces from the demo film above the moving row */
.cw-occasions .wrap { gap: 0; }
.cw-faces { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gutter); margin-top: var(--s-7); }
.cw-faces img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 25%; border-radius: var(--r-md); }
.cw-occasions .cw-marquee { margin: var(--s-7) 0 0; }
@media (max-width: 1023px) { .cw-faces { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cw-faces img:nth-child(n+4) { display: none; } }

/* Spanish headlines never hyphenate */
:is(h1, h2, h3) { hyphens: manual; -webkit-hyphens: manual; }
@media (max-width: 639px) {
  .hero .pill { height: auto; min-height: 32px; padding: 6px 14px; flex-wrap: wrap; justify-content: center; text-align: center; row-gap: 0; }
  .cw--hero .cw__stage { grid-template-columns: minmax(0, 132px) minmax(0, 1fr); }
  .cw--hero .cw-note, .cw--hero .cw-progress { display: none; }
  .cw--hero .cw-ready { padding: 10px 12px; }
  .cw--hero .cw-acts { flex-direction: column; align-items: stretch; }
  .cw--hero .cw-btn { justify-content: center; }
}

/* ---------- section heights per width (tasteskill check.mjs) ---------- */
@media (max-width: 1279px) {
  .s-how { --h: 2; }
  .s-editing .cw-feature { --p-h: 300px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .cw-faces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cw-faces img:nth-child(n+4) { display: block; }
}
@media (max-width: 639px) {
  .s-how { --hm: 2; }
  .s-how .cw-panel { --p-h: 280px; }
  .cw-phone--gift, .cw-phone--film { width: min(300px, 100%); }
}

/* checker fixes: lead in ink, the chat is one box, faq picture, split line 732 */
.hero--centred .hero__lead { color: var(--ink); }
.cw-chat { background: none; box-shadow: none; padding: 0; width: min(100%, 300px); }
.cw-chat__head { padding: 0 4px 10px; }
.cw-bubble { box-shadow: var(--u-shadow); }
.cw-faq__side { display: grid; gap: var(--s-4); align-content: start; }
.cw-faq__lede { color: var(--ink); }
.cw-faq__photo { width: min(100%, 360px); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--r-lg); margin-top: var(--s-5); }
@media (min-width: 640px) and (max-width: 1023px) { .cw-faq__photo { display: none; } }
@media (max-width: 639px) { .cw-faq__photo { width: 100%; margin-top: var(--s-3); } }
@media (max-width: 639px) { .cw__occ { display: none; } }
/* the marquee row runs edge to edge (both sides), fading out at both */
.cw-occasions .cw-marquee { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
@media (max-width: 639px) { .s-faq .cw-faq__photo { display: none; } }
/* the bleed never makes the page scroll sideways (100vw includes the scrollbar) */
.s-occasions { overflow-x: clip; }
