/* Coded replays of product moments, in place of video. showcase.js runs a clock
   for each [data-timeline] and adds .on to elements at the times they declare. */

/* Motion primitives. Hidden states only apply once the script has taken over (.tl). */
.tl [data-fx] { opacity: 0; transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.tl [data-fx="rise"] { transform: translateY(12px); }
.tl [data-fx="drop"] { transform: translateY(-12px); }
.tl [data-fx="pop"] { transform: scale(.7); transition: opacity .2s ease, transform .4s cubic-bezier(.3,1.6,.5,1); }
.tl [data-fx].on { opacity: 1; transform: none; }

.sc-mark {
  background: linear-gradient(var(--accent) 0 0) no-repeat 0 100% / 0% 1.5px, linear-gradient(var(--tint) 0 0) no-repeat 0 50% / 0% 100%;
  transition: background-size .6s ease-out;
}
.sc-mark.on { background-size: 100% 1.5px, 100% 100%; }

.sc-bar { display: block; height: 5px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--accent) 13%, #f3eee2); }
.sc-bar::before {
  content: ''; display: block; height: 100%; width: var(--w, 100%); border-radius: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.sc-bar.on::before { transform: none; }

.sc-tick { width: 15px; height: 15px; flex: none; vertical-align: -2px; }
.sc-tick path {
  fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .35s ease-in-out;
}
.sc-tick.on path, .on > .sc-tick path { stroke-dashoffset: 0; }

.sc-caret { display: none; width: 0; height: 1em; margin-right: -1.5px; border-left: 1.5px solid var(--accent); vertical-align: -.12em; }
.typing > .sc-caret { display: inline-block; }
.sc-rest { visibility: hidden; }

.sc-swap > :not(.on) { display: none; }
.sc-swap > .on { animation: sc-pop .35s cubic-bezier(.3,1.5,.5,1); }
@keyframes sc-pop { from { transform: scale(.75); opacity: .3; } }

.motion-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: #4c564f;
}
.motion-toggle::before { content: ''; width: 3px; height: 11px; border-inline: 3.5px solid currentColor; }
.motion-toggle[aria-pressed="true"]::before { width: 10px; border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.motion-toggle:hover { color: #223e36; background: #2238301a; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }

/* Section */
.showcase { background: #fff; }
.sc-layout { display: grid; grid-template-columns: minmax(230px, 292px) minmax(0, 1fr); gap: clamp(24px, 3.6vw, 52px); align-items: start; }

.sc-tabs { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.sc-tab {
  position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: baseline;
  min-height: 62px; padding: 12px 4px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; color: #6b6257;
}
.sc-tab b { display: block; font-size: 15px; font-weight:700; letter-spacing: -.03em; color: #5c5346; transition: color .3s; }
.sc-tab small { display: block; margin-top: 2px; font-size: 12px; }
.sc-tab > i { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #b3a48c; font-variant-numeric: tabular-nums; }
.sc-tab::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent);
  transform: scaleX(var(--p, 0)); transform-origin: left;
}
.sc-tab:hover b, .sc-tab[aria-selected="true"] b { color: #2e2a24; }
.sc-tab[aria-selected="true"] > i { color: var(--accent); }

/* The stage sits in the same window frame as the FeedbackAI demo. */
.sc-chrome-end { display: flex; align-items: center; gap: 4px; margin-right: -12px; }
.sc-stage { position: relative; container-type: inline-size; height: 470px; overflow: hidden; background: #fff; }
.sc-scene {
  position: absolute; inset: 0; display: grid; align-content: center; gap: 14px; padding: 26px 30px;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
  color: #3a3833; font-size: 13px; line-height: 1.45;
}
.sc-scene.active { opacity: 1; visibility: visible; transition-delay: 0s; }
.sc-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.sc-col { display: grid; gap: 12px; align-content: start; min-width: 0; }

.sc-captions { display: grid; margin-top: 18px; }
.sc-caption { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .35s; }
.sc-caption.active { visibility: visible; opacity: 1; }
.sc-caption h3 { margin: 0 0 6px; font-size: 22px; font-weight:700; line-height: 1.25; letter-spacing: -.045em; color: #2e2a24; }
.sc-caption p { max-width: 620px; margin: 0 0 4px; color: #6b6257; font-size: 15px; line-height: 1.6; }
.sc-caption a { display: inline-flex; align-items: center; min-height: 44px; color: #386d67; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Scene parts */
.sc-card {
  position: relative; min-width: 0; padding: 14px 16px; border-radius: 10px; background: #fff;
  border: 1px solid #f0ece7; box-shadow: 0 1px 2px #3a2d1408;
}
.sc-card.clip { overflow: hidden; }
.sc-card.lit { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.sc-card { transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s; }
.sc-card.accent { border-top: 3px solid var(--accent); }
.sc-scene p { margin: 0; line-height: 1.5; }
.sc-over { display: block; margin-bottom: 7px; color: var(--accent); font-size: 10px; font-weight:700; letter-spacing: .12em; text-transform: uppercase; }
.sc-serif { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 650; line-height: 1.35; letter-spacing: -.02em; color: #2d302c; }
.sc-display { font-size: 19px; font-weight:700; line-height: 1.2; letter-spacing: -.04em; }
.sc-quote { font-size: 13px; line-height: 1.55; color: #4a463e; }
.sc-meta { display: block; margin-top: 7px; color: #625c50; font-size: 11px; }
.sc-tag { display: inline-block; margin-top: 8px; padding: 3px 8px; border-radius: 4px; background: var(--tint); color: var(--accent); font-size: 11px; font-weight:700; }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.sc-head .sc-over { margin: 0; }
.sc-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding: 5px 0; font-size: 12px; border-radius: 3px; transition: background-color .3s, box-shadow .3s; }
.sc-row.pick { background: var(--tint); box-shadow: 0 0 0 6px var(--tint); }
.sc-row b { color: var(--accent); font-variant-numeric: tabular-nums; }
.sc-row .sc-bar { grid-column: 1 / -1; }

.sc-search { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid var(--accent); border-radius: 8px; background: #fffdf8; font-size: 15px; box-shadow: 0 6px 16px #3a2d140f; }
.sc-search svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }
.sc-cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.sc-cites .sc-tag { margin: 0; }

.sc-goal { justify-self: start; padding: 9px 13px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 14px; font-weight:700; line-height: 1.3; }
.sc-goal small { display: block; margin-bottom: 2px; font-size: 10px; font-weight:700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.sc-stops { list-style: none; margin: 4px 0 0; padding: 0 0 0 8px; }
.sc-stops li { position: relative; padding: 0 0 15px 26px; opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .5s; }
.sc-stops li.on { opacity: 1; transform: none; }
.sc-stops li::before { content: ''; position: absolute; left: 5px; top: -15px; height: 19px; border-left: 2px dashed var(--accent); }
.sc-stops li::after { content: ''; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--accent); border-radius: 50%; background: #fffdf8; }
.sc-stops b, .sc-person b { display: block; font-size: 13.5px; color: #2d302c; }
.sc-stops small, .sc-person small, .sc-checkrow small { display: block; color: #625c50; font-size: 11.5px; }
.sc-person { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.sc-person p { grid-column: 1 / -1; margin-top: 6px; font-size: 12.5px; }
.sc-avatar { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid color-mix(in srgb, var(--accent) 40%, white); border-radius: 50%; background: var(--tint) center / cover; color: var(--accent); font-size: 14px; font-weight:700; }
.sc-check { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #eeeae4; opacity: .35; transition: opacity .3s; }
.sc-check.on { opacity: 1; }

.sc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #e6e1d5; font-size: 12.5px; font-weight: 650; }
.sc-facts small { display: block; color: #625c50; font-size: 11px; font-weight: 400; }
.sc-scene .sc-margin { margin-top: 14px; padding-left: 10px; border-left: 2px solid var(--accent); font-size: 12px; color: #4a463e; }

.sc-scan { position: absolute; left: 0; right: 0; top: 0; height: 36px; opacity: 0; border-bottom: 1.5px solid var(--accent); background: linear-gradient(transparent, color-mix(in srgb, var(--accent) 20%, transparent)); }
.sc-scan.on { animation: sc-scan 2s ease-in-out forwards; }
@keyframes sc-scan { 12%, 88% { opacity: 1; } to { top: calc(100% - 36px); opacity: 0; } }
.sc-result { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 8px; background: #e7f4e9; color: #286140; font-size: 13px; font-weight: 700; }
.sc-result .sc-tick path { stroke: currentColor; }
.sc-col > .sc-result { margin-top: 0; }

.sc-seg { position: relative; justify-self: start; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid color-mix(in srgb, var(--accent) 40%, white); border-radius: 7px; background: #fffdf8; font-size: 12px; font-weight: 650; }
.sc-seg::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 5px; background: var(--accent); transition: transform .45s cubic-bezier(.3,1.2,.5,1); }
.sc-seg span { position: relative; padding: 6px 13px; text-align: center; transition: color .3s; }
.sc-seg span:first-child, .sc-seg.on span:last-child { color: #fff; }
.sc-seg.on span:first-child { color: inherit; }
.sc-seg.on::before { transform: translateX(100%); }
.sc-table { display: grid; grid-template-columns: 1.25fr 1fr 1fr; margin: 0 -4px; font-size: 12.5px; }
.sc-tr { display: contents; }
.sc-tr > * { padding: 9px 6px; border-bottom: 1px solid #e6e1d5; transition: background-color .4s; }
.sc-tr.head > * { background: var(--tint); color: var(--accent); font-weight: 700; }
.sc-tr > :first-child { font-weight: 700; }
.sc-tr.on > * { background: var(--tint); }

.sc-checkrow { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid #eeeae4; }
.sc-checkrow b { display: block; font-size: 13px; }
.sc-pair { display: grid; grid-template-columns: 74px 1fr; gap: 3px 8px; font-size: 12.5px; }
.sc-pair small { color: #625c50; font-size: 11.5px; }

@container (max-width: 560px) {
  .sc-scene { padding: 18px 16px; gap: 10px; }
  .sc-two { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sc-col { gap: 10px; }
  .sc-wide { display: none; }
  .sc-card { padding: 11px 12px; }
}

/* A live sample comment over the hero print. */
.hero-slip {
  position: absolute; z-index: 3; right: -14px; bottom: -4px; width: 266px; padding: 2px 15px 14px;
  border: 1px solid #d8c1a2; border-radius: 11px; background: #fff; box-shadow: 0 11px 30px #5c452424;
}
.hero-slip-head { display: flex; min-height: 40px; align-items: center; justify-content: space-between; margin-right: -10px; color: #765029; font-size: 10px; font-weight:700; letter-spacing: .12em; text-transform: uppercase; }
.hero-slip-body { display: grid; --accent: #93602c; --tint: #f6ecd9; }
.hero-slip-body p { grid-area: 1 / 1; margin: 0; font-size: 13.5px; line-height: 1.55; color: #3a3833; }
.hero-slip-body .sc-tag { display: table; }

/* How it works: one replay across the three steps. */
.steps .step-num { margin-bottom: 14px; }
.step { transition: border-color .4s, box-shadow .4s; }
.step.lit { border-color: #c8ae8a; box-shadow: 0 10px 26px #7a5c2c14; }
.step-viz {
  display: flex; flex-wrap: wrap; gap: 6px; align-content: center; clear: both; height: 104px; margin-bottom: 18px; padding: 10px 12px;
  border: 1px solid #efeae3; border-radius: 8px; background: #fff; font-size: 12px; --accent: #4b827d; --tint: #e9f3f1;
}
.sc-chip { padding: 5px 9px; border: 1px solid #d6ccb8; border-radius: 5px; background: #fffdf8; color: #4a463e; font-weight: 650; transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1), background-color .3s, color .3s, border-color .3s; }
.sc-chip.sel { border-color: var(--accent); background: var(--accent); color: #fff; }
.step-viz .status { align-self: center; }
.step-viz .sc-quote { flex-basis: 100%; }

@media (max-width: 860px) {
  .sc-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sc-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .sc-tabs::-webkit-scrollbar { display: none; }
  .sc-tab { flex: none; display: block; min-height: 48px; padding: 14px 14px 12px 2px; border-top: 0; }
  .sc-tab b { white-space: nowrap; }
  .sc-tab small, .sc-tab > i { display: none; }
  .sc-caption h3 { font-size: 20px; }
}
@media (max-width: 760px) {
  .hero-slip { right: 0; bottom: 0; width: min(266px, 80%); }
}
@media (max-width: 620px) {
  .sc-stage { height: 590px; }
}
