.hero-capture {
  --hc-accent: #ff4d52;
  --hc-ink: #f4f6f8;
  --hc-muted: #89929c;
  --hc-line: rgba(255, 255, 255, .11);
  color: var(--hc-ink);
  background: #080b0f;
  isolation: isolate;
  text-align: left;
  animation: none !important;
  transform: none !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero-capture *, .hero-capture *::before, .hero-capture *::after { box-sizing: border-box; }
.hero-capture button, .hero-capture textarea { font: inherit; }
.hero-capture button { color: inherit; }
.hero-capture__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.hero-capture__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(620px, 1.72fr) minmax(350px, 1fr);
  min-height: 700px;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 18%, rgba(60, 114, 136, .12), transparent 30%),
    #080b0f;
}

.hero-capture__instagram {
  min-width: 0;
  border-right: 1px solid var(--hc-line);
  background: #090c10;
}

.hero-capture__post {
  width: min(500px, calc(100% - 44px));
  margin: 12px auto 18px;
  background: transparent;
}
.hero-capture__post-header {
  height: 58px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-capture__avatar {
  width: 39px;
  height: 39px;
  padding: 2px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: conic-gradient(#c32aa3, #ffdc80, #f77737, #c32aa3);
}
.hero-capture__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid #0b0e12;
  border-radius: 50%;
}
.hero-capture__post-author { min-width: 0; display: block; }
.hero-capture__post-author > span { display: flex; align-items: center; gap: 5px; }
.hero-capture__post-author strong { font-size: 12px; font-weight: 750; }
.hero-capture__post-author b { color: #858d96; font-size: 11px; font-weight: 700; }
.hero-capture__post-author small { color: #858d96; font-size: 11px; }
.hero-capture__verified {
  width: 13px;
  height: 13px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #1d9bf0;
  color: white;
  font: 800 8px/1 Inter, sans-serif;
  font-style: normal;
  vertical-align: -1px;
}
.hero-capture__more { margin-left: auto; }
.hero-capture__more span { width: 2px; height: 2px; border-radius: 50%; background: currentColor; }

.hero-capture__post-media {
  position: relative;
  height: 454px;
  padding: 28px 34px 34px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 5px;
  background: #f7f7f4;
  color: #0c0d0f;
}
.hero-capture__media-brand { display: flex; align-items: center; gap: 9px; }
.hero-capture__media-brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #d8d9d7;
  border-radius: 50%;
  background: white;
  color: #111317;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: -.04em;
}
.hero-capture__media-brand strong { font-size: 15px; font-weight: 800; letter-spacing: -.025em; }
.hero-capture__media-copy { margin: 21px 0 18px; font-size: 16px; line-height: 1.32; letter-spacing: -.015em; }
.hero-capture__media-copy span { display: block; }
.hero-capture__media-photo { position: relative; min-height: 0; flex: 1; overflow: hidden; border-radius: 9px; background: #cfd7d9; }
.hero-capture__media-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-capture__post-actions {
  height: 49px;
  padding: 2px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-capture__post-actions-left { display: flex; align-items: center; gap: 3px; }
.hero-capture__icon-button, .hero-capture__save-button {
  appearance: none;
  width: 36px;
  height: 40px;
  margin: 0;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.hero-capture__icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.hero-capture__icon-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-capture__metric-action { width: auto; min-width: 48px; padding: 0 3px; display: inline-flex; gap: 5px; }
.hero-capture__metric-action:first-child { min-width: 76px; justify-content: flex-start; }
.hero-capture__metric-action b { color: #f4f6f8; font-size: 11px; font-weight: 750; white-space: nowrap; }
.hero-capture__icon-button:hover, .hero-capture__save-button:hover { background: rgba(255, 255, 255, .06); }
.hero-capture__icon-button:focus-visible, .hero-capture__save-button:focus-visible,
.hero-capture__folder-trigger:focus-visible, .hero-capture__confirm:focus-visible,
.hero-capture__popover button:focus-visible, .hero-capture__popover textarea:focus-visible {
  outline: 2px solid #ff7b7f;
  outline-offset: 2px;
}
.hero-capture__save-button { position: relative; }
.hero-capture__save-button::after {
  content: "";
  position: absolute;
  inset: 2px 0;
  border: 1px solid transparent;
  border-radius: 9px;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.hero-capture__save-button.is-targeted::after,
.hero-capture__save-button[aria-expanded="true"]::after {
  border-color: rgba(255, 77, 82, .55);
  background: rgba(255, 77, 82, .09);
}
.hero-capture__save-button.is-pressed { transform: scale(.9); }

/* "click me" hint pointing at the CATCHO button: dashed gold arrow + handwriting */
.hero-capture__hint {
  position: absolute;
  left: calc(100% + 2px);
  top: 50%;
  display: flex;
  align-items: center;
  gap: 1px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 1;
  transition: opacity .3s ease;
  animation: hero-capture-hint-nudge 1.7s ease-in-out infinite;
}
.hero-capture__hint-arrow { width: 46px; height: 30px; overflow: visible; }
.hero-capture__hint-line,
.hero-capture__hint-head {
  fill: none;
  stroke: #E9C06A;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-capture__hint-line { stroke-dasharray: 5 4.5; }
.hero-capture__hint-text {
  font-family: "Caveat", "Segoe Script", cursive;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  color: #E9C06A;
  transform: rotate(-7deg);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}
/* the hint has done its job once the popover opens or the reference is saved */
.hero-capture__save-button[aria-expanded="true"] .hero-capture__hint,
.hero-capture[data-saved="true"] .hero-capture__hint { opacity: 0; }
@keyframes hero-capture-hint-nudge {
  0%, 100% { transform: translate(0, -50%); }
  50% { transform: translate(5px, -50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-capture__hint { animation: none; transform: translate(0, -50%); }
}
.hero-capture__pocket { display: block; width: 24px; height: 27px; overflow: visible; }
.hero-capture__pocket .cat-ear, .hero-capture__pocket .cat-catch { fill: var(--hc-accent); }
.hero-capture__pocket .cat-shell {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: square;
  stroke-linejoin: round;
}
.hero-capture__pocket .cat-eye {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.hero-capture__post-copy { min-height: 42px; padding: 0 3px 12px; }
.hero-capture__post-copy p { margin: 0; color: #e8ebed; font-size: 10px; line-height: 1.45; }
.hero-capture__post-copy p b { margin-right: 4px; }

.hero-capture__library {
  position: relative;
  min-width: 0;
  padding: 0 20px 20px;
  background: #0c151d;
}
.hero-capture__library-header {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hc-line);
}
.hero-capture__library-brand { display: flex; align-items: center; gap: 9px; }
.hero-capture__library-brand .hero-capture__pocket { width: 22px; height: 25px; }
.hero-capture__library-brand > span { display: grid; gap: 1px; }
.hero-capture__library-brand strong { font-family: Manrope, Inter, sans-serif; font-size: 12px; letter-spacing: .12em; }
.hero-capture__library-brand small { color: #71808b; font-size: 6px; font-weight: 800; letter-spacing: .18em; }
.hero-capture__sync { display: inline-flex; align-items: center; gap: 5px; color: #88a897; font-size: 8px; font-weight: 700; }
.hero-capture__sync i { width: 6px; height: 6px; border-radius: 50%; background: #47c984; box-shadow: 0 0 0 3px rgba(71, 201, 132, .1); }
.hero-capture__library-toolbar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8b97a0;
  font-size: 8px;
}
.hero-capture__library-toolbar b { color: #f1f5f6; font-size: 11px; }
.hero-capture__library-folder {
  max-width: 180px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 6px 8px;
  border: 1px solid #29404f;
  border-radius: 7px;
  background: #101e28;
  color: #b9c8d1;
}
.hero-capture__library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero-capture__library-card, .hero-capture__empty-slot {
  position: relative;
  height: 157px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #273946;
  border-radius: 10px;
  background: #101820;
}
.hero-capture__library-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-capture__library-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 38px;
  padding: 15px 9px 7px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  background: linear-gradient(transparent, rgba(3, 7, 10, .9));
  font-size: 8px;
  font-weight: 700;
}
.hero-capture__library-card figcaption small { color: #ff8d90; font-size: 6px; text-transform: uppercase; letter-spacing: .08em; }
.hero-capture__empty-slot { display: grid; place-items: center; border-style: dashed; color: #4f626f; font-size: 8px; }
.hero-capture__library-card--new {
  opacity: 0;
  transform: translateY(12px) scale(.97);
  border-color: rgba(255, 77, 82, .55);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.hero-capture[data-saved="true"] .hero-capture__library-card--new { opacity: 1; transform: translateY(0) scale(1); }
.hero-capture[data-saved="true"] .hero-capture__empty-slot { display: none; }
.hero-capture__library-toast {
  position: absolute;
  right: 20px;
  bottom: 22px;
  left: 20px;
  min-height: 52px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(81, 210, 143, .28);
  border-radius: 10px;
  background: rgba(12, 25, 31, .94);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  backdrop-filter: blur(10px);
}
.hero-capture__library-toast > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #07130d;
  background: #57cd8d;
  font-size: 13px;
  font-weight: 900;
}
.hero-capture__library-toast p { margin: 0; display: grid; gap: 1px; }
.hero-capture__library-toast strong { font-size: 9px; }
.hero-capture__library-toast small { color: #83a090; font-size: 7px; }
.hero-capture[data-state="saved"] .hero-capture__library-toast { opacity: 1; transform: translateY(0); }

.hero-capture__popover {
  position: fixed;
  z-index: 10001;
  top: 50%;
  left: 50%;
  width: 300px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 15px;
  background: #111318;
  color: #f5f2ea;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .58);
  opacity: 0;
  transform: translate(-50%, calc(-50% - 5px)) scale(.98);
  transform-origin: center;
  transition: opacity .2s ease, transform .2s ease;
}
.hero-capture__popover[hidden] { display: none; }
.hero-capture__popover.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hero-capture__popover > header { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.hero-capture__popover > header .hero-capture__pocket { width: 21px; height: 24px; }
.hero-capture__popover > header strong { flex: 1; font-size: 13px; }
.hero-capture__popover > header button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #9a9ca2;
  font-size: 20px;
  cursor: pointer;
}
.hero-capture__preview { height: 125px; overflow: hidden; border-radius: 9px; background: #24272d; }
.hero-capture__preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 39%; }
.hero-capture__origin { display: block; margin: 7px 0 2px; color: #767b85; font-size: 8px; }
.hero-capture__popover label { display: block; margin-top: 8px; color: #9a9ca2; font-size: 9px; }
.hero-capture__folder-picker { position: relative; display: block; width: 100%; margin-top: 4px; }
.hero-capture__folder-trigger {
  width: 100%;
  height: 35px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: #191b21;
  color: #f5f2ea;
  cursor: pointer;
  font-size: 10px;
}
.hero-capture__folder-trigger > span { min-width: 0; flex: 1; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.hero-capture__folder-trigger > b { color: #92969f; font-size: 14px; font-weight: 400; transition: transform .15s ease; }
.hero-capture__folder-trigger[aria-expanded="true"] { border-color: var(--hc-accent); background: #1e2027; }
.hero-capture__folder-trigger[aria-expanded="true"] > b { transform: rotate(180deg); }
.hero-capture__folder-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  max-height: 180px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 9px;
  background: #1a1c22;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .48);
}
.hero-capture__folder-menu[hidden] { display: none; }
.hero-capture__folder-menu button {
  width: 100%;
  min-height: 28px;
  padding: 6px 8px;
  display: block;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dfe1e5;
  text-align: left;
  cursor: pointer;
  font-size: 9px;
}
.hero-capture__folder-menu button:hover, .hero-capture__folder-menu button:focus-visible { background: #2b2e36; color: white; }
.hero-capture__folder-menu button[aria-selected="true"] { background: rgba(255, 77, 79, .16); color: #ff8a8d; }
.hero-capture__folder-group { display: block; margin-top: 3px; padding-top: 3px; border-top: 1px solid rgba(255, 255, 255, .08); }
.hero-capture__folder-group > small { display: block; padding: 4px 8px 2px; color: #70747e; font-size: 7px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.hero-capture__popover textarea {
  display: block;
  width: 100%;
  height: 47px;
  margin-top: 4px;
  padding: 8px;
  resize: none;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  outline: 0;
  background: #191b21;
  color: #f5f2ea;
  font-size: 9px;
  line-height: 1.35;
}
.hero-capture__popover textarea::placeholder { color: #60656e; }
.hero-capture__confirm {
  width: 100%;
  min-height: 37px;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--hc-accent);
  color: white;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.hero-capture__confirm:hover { background: #ff6367; }
.hero-capture__confirm.is-pressed { transform: scale(.97); }
.hero-capture__confirm:disabled { cursor: wait; opacity: .82; }
.hero-capture[data-saved="true"] .hero-capture__confirm { background: #f5f2ea; color: #111318; }
.hero-capture__feedback { display: block; min-height: 11px; margin-top: 6px; color: #8f949d; font-size: 8px; }

.hero-capture__cursor {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  width: 26px;
  height: 32px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(270px, 620px, 0);
  transition: transform .72s cubic-bezier(.2, .75, .2, 1), opacity .2s ease;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .55));
}
.hero-capture__cursor.is-visible { opacity: 1; }
.hero-capture__cursor svg { display: block; }
.hero-capture__cursor svg path { fill: #f6f8fa; stroke: #101318; stroke-width: 1.5; stroke-linejoin: round; }
.hero-capture__cursor-ring {
  position: absolute;
  top: -9px;
  left: -9px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 77, 82, .9);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.5);
}
.hero-capture__cursor.is-clicking .hero-capture__cursor-ring { animation: hero-capture-click .36s ease-out; }
@keyframes hero-capture-click { 0% { opacity: .9; transform: scale(.45); } 100% { opacity: 0; transform: scale(1.45); } }

@media (max-width: 900px) {
  .hero-capture__stage { grid-template-columns: minmax(560px, 1.65fr) minmax(310px, .9fr); min-height: 660px; }
  .hero-capture__post-media { height: 430px; }
  .hero-capture__library { padding-inline: 15px; }
  .hero-capture__library-card, .hero-capture__empty-slot { height: 145px; }
}

@media (max-width: 600px) {
  .hero-capture { overflow: hidden; }
  .hero-capture__stage { display: block; min-height: 610px; }
  .hero-capture__instagram { border-right: 0; }
  .hero-capture__post { width: calc(100% - 20px); margin: 10px auto; }
  .hero-capture__post-media { height: 400px; padding: 24px 20px 22px; }
  .hero-capture__media-copy { margin-block: 17px 15px; font-size: 14px; }
  .hero-capture__post-actions-left { gap: 0; }
  .hero-capture__metric-action { min-width: 43px; gap: 3px; padding-inline: 1px; }
  .hero-capture__metric-action:first-child { min-width: 68px; }
  .hero-capture__metric-action b { font-size: 9px; }
  .hero-capture__post-copy { min-height: 38px; }
  .hero-capture__library { display: none; }
  .hero-capture__popover { width: min(294px, calc(100% - 22px)); }
  .hero-capture__cursor, .hero-capture__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-capture *, .hero-capture *::before, .hero-capture *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-capture__cursor, .hero-capture__hint { display: none; }
}
