:root {
  --primary-color: #1e282a;
  --primary-shade-1: #293639;
  --primary-shade-2: #394c50;
  --primary-shade-3: #61787d;
  --primary-shade-4: #a8b6ba;
  --primary-shade-5: #c2ccd0;
  --primary-shade-6: #d5dbdc;

  --secondary-color: #dcf514;
  --highlight-color: #d7e336;
  --text-color: #ffffff;
  --background-color: #f9f9f9;
  --shade-1: #ededeb;
  --shade-2: #e1e1df;
  --shade-3: #d4d4d2;
  --shade-4: #c6c6c6;
  --shade-5: #b8b8b8;
  --shade-6: #a9a9a9;

  --red: #b51212;
  --green: #5f897b;
  --light-blue: #8cb5bd;
  --accent-color: #dbf227;
  --success-color: #5f897b;
  --error-color: #c45f28;
  --warning-color: #ffdd00;

  --accent: var(--secondary-color);
  --accent-glow: rgba(220, 245, 20, 0.58);
  --mobile-panel-height: 220px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--primary-color);
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

.video-stage {
  position: fixed;
  inset: 0;
  background: var(--primary-color);
  --mobile-video-focus-x: 50%;
  --mobile-video-pan-duration: 280ms;
}

#tutorialVideo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.start-demo-gate {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.95rem;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 20%, rgba(57, 76, 80, 0.45), transparent 52%),
    rgba(30, 40, 42, 0.95);
}

.start-demo-gate.is-hidden {
  display: none;
}

.start-demo-button {
  border: 0;
  border-radius: 999px;
  min-width: min(92vw, 320px);
  padding: 0.95rem 1.6rem 0.9rem;
  background: var(--secondary-color);
  color: #182022;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(24, 32, 34, 0.18) inset;
  transition: transform 150ms ease, box-shadow 160ms ease, background 140ms ease;
}

.start-demo-button:hover,
.start-demo-button:focus-visible {
  background: #e4f95c;
  transform: translateY(-2px) scale(1.012);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(24, 32, 34, 0.22) inset;
  outline: none;
}

.start-demo-title {
  font: 700 1.14rem/1.15 "DM Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

.start-demo-duration {
  font: italic 500 0.9rem/1.1 "DM Sans", "Segoe UI", sans-serif;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.01em;
}

.video-stage.is-start-gated .step-controls,
.video-stage.is-start-gated .mobile-step-panel {
  display: none !important;
}

.video-stage.is-start-gated .toc-toggle,
.video-stage.is-start-gated .header-logo,
.video-stage.is-start-gated .mobile-desktop-hint,
.video-stage.is-start-gated .toc-panel,
.video-stage.is-start-gated .toc-backdrop,
.video-stage.is-start-gated .post-video-flow {
  opacity: 0;
  pointer-events: none;
}

.mobile-desktop-hint {
  display: none;
}

.header-logo {
  display: none;
}

.toc-toggle {
  position: absolute;
  left: 22px;
  top: auto;
  bottom: 22px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: rgba(41, 54, 57, 0.92);
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

.toc-toggle:hover,
.toc-toggle:focus-visible {
  background: var(--primary-shade-1);
  transform: scale(1.04);
  outline: none;
}

.toc-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 17, 0.56);
  z-index: 6;
  opacity: 1;
  transition: opacity 180ms ease;
}

.toc-backdrop.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.toc-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 88vw);
  overflow: hidden;
  padding: 1.1rem 1rem 1.15rem;
  border-radius: 0;
  background: var(--primary-color);
  border-right: 1px solid rgba(168, 182, 186, 0.2);
  box-shadow: 18px 0 40px rgba(0, 0, 0, 0.26);
  z-index: 7;
  transform: translateX(0);
  opacity: 1;
  transition: transform 210ms ease, opacity 180ms ease;
}

.toc-panel.is-hidden {
  transform: translateX(-102%);
  opacity: 0;
  pointer-events: none;
}

.toc-panel h3 {
  margin: 0 0 0.96rem;
  font-size: 1.08rem;
  color: var(--text-color);
  letter-spacing: 0.01em;
}

.toc-list {
  display: grid;
  gap: 0.26rem;
  align-content: start;
  grid-auto-rows: max-content;
}

#tocTutorialList {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 0.2rem;
}

#tocFormList {
  flex: 0 0 auto;
}

.toc-list + .toc-list {
  margin-top: auto;
  padding-top: 0.82rem;
  border-top: 1px solid rgba(168, 182, 186, 0.2);
}

.toc-item {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-color);
  text-align: left;
  padding: 0.64rem 0.58rem;
  font: 600 0.94rem/1.25 "DM Sans", "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

.toc-item:hover,
.toc-item:focus-visible {
  background: rgba(57, 76, 80, 0.5);
  transform: translateX(2px);
  outline: none;
}

.toc-item small {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--primary-shade-4);
  font: 500 0.7rem/1 "DM Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.toc-item-cta {
  width: 100%;
  display: block;
  justify-self: stretch;
  margin-top: 0.2rem;
  border: 1px solid rgba(30, 40, 42, 0.2);
  border-radius: 999px;
  padding: 0.8rem 1.04rem;
  background: var(--accent-color);
  color: var(--primary-color);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
  font: 700 0.98rem/1 "DM Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  transition: background 160ms ease, transform 140ms ease, box-shadow 180ms ease,
    border-color 160ms ease;
}

.toc-item-cta-content {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.56rem;
}

.toc-item-cta-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.toc-item-cta-label {
  flex: 1 1 auto;
}

.toc-item-cta-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

.toc-item-cta:hover,
.toc-item-cta:focus-visible {
  background: var(--secondary-color);
  transform: translateY(-1px) scale(1.015);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(30, 40, 42, 0.35);
}

.toc-item-cta:hover .toc-item-cta-arrow,
.toc-item-cta:focus-visible .toc-item-cta-arrow {
  transform: translateX(2px);
}

.toc-item-cta:focus-visible {
  outline: 3px solid rgba(30, 40, 42, 0.34);
  outline-offset: 2px;
}

.target-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  isolation: isolate;
  touch-action: none;
  transition: opacity 140ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.target-button.anchor-top-left {
  transform: none;
}

.target-button.is-dot {
  width: var(--hit-size, 72px);
  height: var(--hit-size, 72px);
}

.target-button.is-dot::before,
.target-button.is-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.target-button.is-dot::before {
  width: var(--dot-size, 22px);
  height: var(--dot-size, 22px);
  background: rgba(220, 245, 20, 0.96);
  box-shadow:
    0 0 0 2px rgba(18, 24, 5, 0.42),
    0 0 22px rgba(220, 245, 20, 0.7);
  animation: pulse-dot-core 1150ms ease-in-out infinite;
}

.target-button.is-dot::after {
  width: var(--dot-size, 22px);
  height: var(--dot-size, 22px);
  border: 4px solid rgba(220, 245, 20, 0.98);
  animation: pulse-dot-ring 1450ms cubic-bezier(0.16, 1, 0.3, 1) infinite;
  box-shadow:
    0 0 0 3px rgba(220, 245, 20, 0.45),
    0 0 26px rgba(220, 245, 20, 0.45);
}

.target-button.is-dot:hover::before,
.target-button.is-dot:focus-visible::before {
  transform: translate(-50%, -50%);
  outline: none;
}

.target-button.is-box {
  width: var(--box-width, 120px);
  height: var(--box-height, 44px);
  border: 2px solid rgba(220, 245, 20, 0.9);
  border-radius: var(--box-radius, 12px);
  background: rgba(220, 245, 20, 0.08);
  box-shadow:
    0 0 0 0 rgba(220, 245, 20, 0.62),
    0 0 20px rgba(220, 245, 20, 0.35);
  animation: pulse-box 1800ms cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.target-button.is-box:hover,
.target-button.is-box:focus-visible {
  background: transparent;
  outline: none;
}

.target-button.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.step-bubble {
  position: absolute;
  z-index: 2;
  max-width: min(420px, calc(100vw - 24px));
  --bubble-arrow-length: 12px;
  --bubble-arrow-half-base: 8px;
  background: rgba(57, 76, 80, 0.96);
  color: var(--text-color);
  border-radius: 16px;
  padding: 0.92rem 1.08rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  pointer-events: none;
  transform-origin: left bottom;
  transition: opacity 140ms ease, transform 140ms ease;
}

.step-bubble::after {
  content: "";
  position: absolute;
  left: calc(-1 * var(--bubble-arrow-length));
  top: var(--bubble-arrow-y, 16px);
  width: 0;
  height: 0;
  border-top: var(--bubble-arrow-half-base) solid transparent;
  border-bottom: var(--bubble-arrow-half-base) solid transparent;
  border-right: var(--bubble-arrow-length) solid rgba(57, 76, 80, 0.96);
}

.step-bubble p {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.4;
}

.step-bubble p strong {
  font-weight: 700;
}

.step-bubble.is-hidden {
  opacity: 0;
  transform: scale(0.98);
}

.step-bubble.left::after {
  left: auto;
  right: calc(-1 * var(--bubble-arrow-length));
  border-right: 0;
  border-left: var(--bubble-arrow-length) solid rgba(57, 76, 80, 0.96);
}

.step-bubble.top::after {
  left: var(--bubble-arrow-x, 50%);
  right: auto;
  top: auto;
  bottom: calc(-1 * var(--bubble-arrow-length));
  transform: translateX(-50%);
  border-top: var(--bubble-arrow-length) solid rgba(57, 76, 80, 0.96);
  border-right: var(--bubble-arrow-half-base) solid transparent;
  border-left: var(--bubble-arrow-half-base) solid transparent;
  border-bottom: 0;
}

.step-bubble.bottom::after {
  left: var(--bubble-arrow-x, 50%);
  right: auto;
  top: calc(-1 * var(--bubble-arrow-length));
  bottom: auto;
  transform: translateX(-50%);
  border-bottom: var(--bubble-arrow-length) solid rgba(57, 76, 80, 0.96);
  border-right: var(--bubble-arrow-half-base) solid transparent;
  border-left: var(--bubble-arrow-half-base) solid transparent;
  border-top: 0;
}

.bubble-debug-layer {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
}

.bubble-debug-layer.is-hidden {
  display: none;
}

.bubble-debug-frame {
  position: absolute;
  border: 2px dashed #ff5a5f;
  border-radius: 14px;
  background: rgba(255, 90, 95, 0.08);
}

.bubble-debug-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #ff5a5f;
  background: #ffffff;
}

.bubble-debug-point {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 2px solid #ffffff;
}

.bubble-debug-anchor {
  background: #1be27a;
}

.bubble-debug-arrow-tip {
  background: #ffc857;
}

.step-controls {
  position: absolute;
  left: 82px;
  bottom: 22px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.step-controls button {
  border: 0;
  background: var(--primary-shade-2);
  color: var(--text-color);
  border-radius: 999px;
  padding: 0.62rem 1rem;
  font: 600 0.82rem/1 "DM Sans", "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background 140ms ease, opacity 130ms ease, transform 140ms ease;
}

.step-controls .icon-button {
  width: 50px;
  height: 50px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-controls .icon-button .nav-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: auto;
  padding: 0 0.18rem;
  border-radius: 0;
  background: transparent;
  color: var(--text-color);
  font: 600 0.86rem/1 "DM Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
}

.step-counter strong {
  font-weight: 800;
}

.step-counter.is-hidden {
  display: none;
}

.step-controls button:hover,
.step-controls button:focus-visible {
  background: var(--primary-shade-1);
  transform: scale(1.05);
  outline: none;
}

.step-controls button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.video-stage.is-flow-open .step-controls {
  z-index: 5;
}

.video-stage.is-flow-open #forwardControl {
  display: none;
}

.mobile-step-panel {
  display: none;
}

.post-video-flow {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px 14px 18px;
  background: var(--primary-color);
  color: var(--text-color);
  overflow: auto;
  z-index: 4;
}

.flow-mobile-back-button {
  display: none;
}

.post-video-flow.is-hidden {
  display: none;
}

.flow-content {
  width: min(760px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 0.25rem 0 0;
}

#postVideoForm {
  margin-top: 1rem;
}

.flow-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
}

.flow-close {
  border: 0;
  background: var(--primary-shade-2);
  color: var(--text-color);
  border-radius: 999px;
  padding: 0.68rem 1.1rem;
  font: 600 1rem/1 "DM Sans", "Segoe UI", sans-serif;
  margin-bottom: 0.86rem;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease;
}

.flow-close:hover,
.flow-close:focus-visible {
  background: var(--primary-shade-1);
  transform: scale(1.04);
  outline: none;
}

.flow-kicker {
  margin: 0 0 0.34rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--highlight-color);
}

#flowSubtitle {
  margin: 0.55rem 0 1.2rem;
  color: var(--primary-shade-5);
  font-size: 1.08rem;
  line-height: 1.4;
}

#flowSubtitle:empty {
  display: none;
}

.flow-step.is-hidden {
  display: none;
}

.flow-step:not(.is-hidden) {
  animation: flow-step-rise 180ms ease-out both;
}

.radio-group {
  display: grid;
  gap: 0.9rem;
  padding: 0.35rem 0 0;
}

.radio-group label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  border: 0;
  background: var(--primary-shade-2);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.radio-group label input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-group label:has(input:checked) {
  box-shadow: none;
  background: var(--primary-shade-1);
}

.radio-group label:hover,
.radio-group label:focus-within {
  background: var(--primary-shade-1);
}

.proceed-options {
  display: grid;
  gap: 0.9rem;
  padding-top: 0.35rem;
}

.proceed-benefits {
  margin-top: 0.86rem;
  margin-bottom: 0.2rem;
  padding: 0.82rem 0.9rem 0.76rem;
  border: 2px dotted rgba(168, 182, 186, 0.68);
  border-radius: 14px;
  background: rgba(41, 54, 57, 0.3);
  --benefit-slide-duration: 4200ms;
}

.proceed-benefit-text {
  margin: 0;
  min-height: 2.7rem;
  color: rgba(255, 255, 255, 0.96);
  font: 600 1.12rem/1.35 "DM Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.005em;
  text-align: center;
  transition: opacity 240ms ease;
}

.proceed-benefit-dots {
  margin-top: 0.28rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.proceed-benefit-dot {
  position: relative;
  width: 36px;
  height: 6px;
  border-radius: 999px;
  background: rgba(194, 204, 208, 0.3);
  overflow: hidden;
}

.proceed-benefit-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--secondary-color);
}

.proceed-benefit-dot.is-active {
  background: rgba(194, 204, 208, 0.3);
}

.proceed-benefit-dot.is-active::after {
  animation: benefit-dot-progress var(--benefit-slide-duration) linear forwards;
}

@keyframes benefit-dot-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.proceed-option {
  width: 100%;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  background: var(--primary-shade-2);
  color: var(--text-color);
  text-align: center;
  padding: 1rem 1.2rem;
  font: 600 1.08rem/1.25 "DM Sans", "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background 140ms ease;
}

.proceed-option[data-proceed="book_call"] {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.proceed-option-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.82rem;
  width: 100%;
}

.proceed-option-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.proceed-option:hover,
.proceed-option:focus-visible {
  background: var(--primary-shade-1);
  outline: none;
}

.proceed-option[data-proceed="book_call"]:hover,
.proceed-option[data-proceed="book_call"]:focus-visible {
  background: var(--highlight-color);
}

#postVideoForm.is-hover-suppressed .radio-group label,
#postVideoForm.is-hover-suppressed .proceed-option,
#postVideoForm.is-hover-suppressed .add-email-btn,
#postVideoForm.is-hover-suppressed .cta-primary {
  transition: none;
}

#postVideoForm.is-hover-suppressed .radio-group label:hover {
  transform: none;
}

#postVideoForm.is-hover-suppressed .proceed-option:hover {
  background: var(--primary-shade-2);
  transform: none;
}

#postVideoForm.is-hover-suppressed .add-email-btn:hover {
  background: transparent;
  border-color: var(--primary-shade-4);
  transform: none;
}

#postVideoForm.is-hover-suppressed .cta-primary:hover {
  background: var(--secondary-color);
  transform: none;
}

.proceed-branch {
  display: grid;
  gap: 0.72rem;
  padding-top: 0.4rem;
}

.proceed-branch.is-hidden {
  display: none;
}

#branchRemindMe {
  gap: 1.12rem;
  padding-top: 0.72rem;
}

#branchRemindMe .remind-lead-slider {
  margin-top: 0.18rem;
}

.remind-lead-slider {
  --reminder-progress: 50%;
  appearance: none;
  width: 100%;
  height: 11px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(
    90deg,
    var(--secondary-color) 0%,
    var(--secondary-color) var(--reminder-progress),
    rgba(168, 182, 186, 0.28) var(--reminder-progress),
    rgba(168, 182, 186, 0.28) 100%
  );
}

.remind-lead-slider::-webkit-slider-runnable-track {
  appearance: none;
  height: 11px;
  border-radius: 999px;
  background: transparent;
}

.remind-lead-slider::-moz-range-track {
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.remind-lead-slider::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -5.5px;
  border: 3px solid var(--primary-color);
  border-radius: 999px;
  background: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(220, 245, 20, 0.25);
}

.remind-lead-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--primary-color);
  border-radius: 999px;
  background: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(220, 245, 20, 0.25);
}

.remind-lead-slider:focus-visible {
  outline: none;
}

.remind-lead-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(220, 245, 20, 0.42);
}

.remind-lead-slider:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(220, 245, 20, 0.42);
}

.field-label {
  display: block;
  margin: 0.75rem 0 0.28rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-shade-6);
}

#postVideoForm input[type="email"],
#postVideoForm .team-email-input,
#postVideoForm textarea {
  width: 100%;
  border: 0;
  background: var(--primary-shade-2);
  color: var(--text-color);
  border-radius: 16px;
  min-height: 56px;
  padding: 0.95rem 1.05rem;
  font: 500 1.06rem/1.35 "DM Sans", "Segoe UI", sans-serif;
  transition: background 140ms ease, box-shadow 140ms ease, transform 120ms ease;
}

.team-email-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.82rem;
}

#branchSendTeam .team-email-list {
  margin-top: 0;
}

.add-email-btn {
  margin-top: 0.35rem;
  width: 100%;
  border: 2px dotted var(--primary-shade-4);
  background: transparent;
  color: var(--text-color);
  border-radius: 12px;
  min-height: 52px;
  padding: 0.8rem 1rem;
  font: 600 1rem/1 "DM Sans", "Segoe UI", sans-serif;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.add-email-btn:hover,
.add-email-btn:focus-visible {
  border-color: var(--secondary-color);
  background: rgba(220, 245, 20, 0.08);
  outline: none;
}

#postVideoForm input[type="email"]:focus-visible,
#postVideoForm .team-email-input:focus-visible,
#postVideoForm textarea:focus-visible {
  outline: none;
  background: var(--primary-shade-1);
  box-shadow: 0 0 0 3px var(--secondary-color);
}

#postVideoForm input[type="email"]::placeholder,
#postVideoForm .team-email-input::placeholder,
#postVideoForm textarea::placeholder {
  color: var(--primary-shade-5);
}

.small-note {
  margin: 0.62rem 0 0;
  color: var(--primary-shade-5);
  font-size: 0.98rem;
  line-height: 1.35;
}

.flow-actions {
  display: flex;
  width: 100%;
  gap: 0.72rem;
  margin-top: 1.2rem;
  justify-content: center;
}

.flow-actions.is-step-two {
  flex-direction: column;
  align-items: stretch;
}

.flow-actions button {
  border: 0;
  background: var(--primary-shade-2);
  color: var(--text-color);
  border-radius: 999px;
  min-height: 52px;
  padding: 0.85rem 1.2rem;
  font: 600 1rem/1 "DM Sans", "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background 140ms ease;
}

.flow-actions button:hover,
.flow-actions button:focus-visible {
  background: var(--primary-shade-1);
  outline: none;
}

.flow-actions button.is-hidden {
  display: none;
}

.flow-actions.is-hidden {
  display: none;
}

.flow-add-team-button {
  width: 100%;
  min-height: 56px;
  border-radius: 14px;
  background: var(--primary-shade-2);
  color: var(--text-color);
  font: 600 1rem/1.2 "DM Sans", "Segoe UI", sans-serif;
}

.cta-primary {
  width: 100%;
  min-height: 62px;
  border-radius: 14px;
  border: 0;
  background: var(--secondary-color);
  color: var(--primary-color);
  font: 700 1.12rem/1 "DM Sans", "Segoe UI", sans-serif;
  transition: background 140ms ease;
}

.cta-primary:hover,
.cta-primary:focus-visible {
  background: var(--highlight-color);
  color: var(--primary-color);
  outline: none;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.42rem;
  margin: 0;
  color: var(--primary-shade-6);
  font-size: 1rem;
  line-height: 1.35;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 0.18rem;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.flow-success {
  margin-top: 0.3rem;
  border-top: 0;
  padding-top: 0;
  color: #d9f2e8;
  font-size: 1.04rem;
  line-height: 1.4;
}

.flow-final-check {
  width: 86px;
  height: 86px;
  margin: 0 auto 0.2rem;
  border-radius: 999px;
  background: rgba(95, 137, 123, 0.2);
  border: 2px solid rgba(95, 137, 123, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
}

.flow-final-check svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: #95c9b8;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-success h3 {
  margin: 0;
  font-size: 1.42rem;
}

.flow-success p {
  margin: 0.55rem 0 0.88rem;
}

.flow-final-actions {
  width: min(420px, 100%);
  margin: 0.4rem auto 0;
  display: grid;
  gap: 0.72rem;
}

.flow-final-action-btn {
  min-height: 64px;
  font-size: 1.02rem;
}

.flow-success.is-hidden {
  display: none;
}

.flow-success:not(.is-hidden) {
  animation: flow-step-rise 180ms ease-out both;
}

.flow-success.is-check-only:not(.is-hidden) {
  min-height: 180px;
  display: grid;
  gap: 0.9rem;
  place-content: center;
}

.flow-success.is-check-only:not(.is-hidden) .flow-final-check {
  display: inline-flex;
}

.flow-success.is-check-only h3,
.flow-success.is-check-only p {
  display: none;
}

@keyframes pulse-dot-core {
  0%,
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.95);
  }
  50% {
    opacity: 0.86;
    transform: translate(-50%, -50%) scale(1.26);
  }
}

@keyframes pulse-dot-ring {
  0% {
    opacity: 0.98;
    transform: translate(-50%, -50%) scale(0.88);
  }
  75% {
    opacity: 0.18;
    transform: translate(-50%, -50%) scale(3.15);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.35);
  }
}

@keyframes pulse-box {
  0% {
    box-shadow:
      0 0 0 0 rgba(220, 245, 20, 0.72),
      0 0 18px rgba(220, 245, 20, 0.4);
  }
  70% {
    box-shadow:
      0 0 0 24px rgba(220, 245, 20, 0.16),
      0 0 34px rgba(220, 245, 20, 0.28);
  }
  100% {
    box-shadow:
      0 0 0 30px rgba(220, 245, 20, 0),
      0 0 0 rgba(220, 245, 20, 0);
  }
}

@keyframes flow-step-rise {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 780px) {
  .toc-toggle {
    --mobile-toggle-top: 12px;
    --mobile-toggle-size: 44px;
    left: 12px;
    top: var(--mobile-toggle-top);
    bottom: auto;
    width: var(--mobile-toggle-size);
    height: var(--mobile-toggle-size);
  }

  .toc-panel {
    width: min(92vw, 390px);
    padding: 0.96rem 0.88rem 1rem;
  }

  .header-logo {
    position: absolute;
    right: 12px;
    top: var(--mobile-toggle-top, 12px);
    height: 37px;
    width: auto;
    display: block;
    z-index: 6;
    pointer-events: none;
  }

  .mobile-desktop-hint {
    position: absolute;
    left: calc(12px + var(--mobile-toggle-size, 44px) + 10px);
    top: var(--mobile-toggle-top, 12px);
    right: 12px;
    min-height: var(--mobile-toggle-size, 44px);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.58rem 0.78rem;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.96);
    font: 600 0.94rem/1.3 "DM Sans", "Segoe UI", sans-serif;
    letter-spacing: 0.01em;
    z-index: 6;
    pointer-events: none;
  }

  .video-stage.is-flow-open .toc-toggle,
  .video-stage.is-flow-open .mobile-desktop-hint,
  .video-stage.is-flow-open .header-logo {
    display: none;
  }

  .video-stage.is-mobile-tight .toc-toggle,
  .video-stage.is-mobile-tight .mobile-desktop-hint,
  .video-stage.is-mobile-tight .header-logo {
    display: none;
  }

  .mobile-desktop-hint-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.92;
  }

  .video-stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  #tutorialVideo {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    margin-top: calc(var(--mobile-toggle-top, 12px) + var(--mobile-toggle-size, 44px) + 12px);
    object-fit: cover;
    object-position: var(--mobile-video-focus-x) top;
    transition: object-position var(--mobile-video-pan-duration) cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: object-position;
  }

  .video-stage.is-mobile-tight #tutorialVideo {
    margin-top: 8px;
  }

  .step-bubble {
    display: none;
  }

  .step-controls {
    display: none;
  }

  .mobile-step-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem;
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    background: var(--primary-color);
    z-index: 3;
  }

  .mobile-step-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.28rem, 5.4vw, 1.56rem);
    font-weight: 400;
    line-height: 1.42;
    transition: opacity 120ms ease;
  }

  .mobile-step-text strong {
    color: var(--text-color);
    font-weight: 700;
  }

  .mobile-step-text.is-transition-hidden {
    opacity: 0;
  }

  .mobile-step-actions {
    display: flex;
    align-items: center;
    gap: 0.68rem;
    margin-top: auto;
  }

  .mobile-step-actions.is-back-hidden .mobile-back-button {
    display: none;
  }

  .mobile-step-actions.is-back-hidden .mobile-next-button {
    width: 100%;
    flex: 1 1 100%;
  }

  .mobile-back-button {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-shade-2);
    color: var(--text-color);
    transition: transform 140ms ease, background 140ms ease, opacity 130ms ease;
  }

  .mobile-back-button:hover,
  .mobile-back-button:focus-visible {
    background: var(--primary-shade-1);
    transform: scale(1.03);
    outline: none;
  }

  .mobile-back-button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
  }

  .mobile-back-button .nav-icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-next-button {
    width: 100%;
    flex: 1 1 auto;
    min-height: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font: 700 1.14rem/1 "DM Sans", "Segoe UI", sans-serif;
    transition: transform 140ms ease, background 140ms ease, opacity 130ms ease;
  }

  .mobile-next-button:hover,
  .mobile-next-button:focus-visible {
    background: var(--highlight-color);
    transform: scale(1.02);
    outline: none;
  }

  .mobile-next-button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
  }

  .post-video-flow {
    padding: 18px 14px 20px;
    place-items: start center;
  }

  .flow-mobile-back-button {
    position: absolute;
    left: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    display: inline-flex;
    z-index: 5;
  }

  .flow-content {
    width: 100%;
    margin-top: 20px;
    padding: 0.6rem 0 1.1rem;
  }

  .flow-header h2 {
    font-size: clamp(1.6rem, 7.8vw, 2.2rem);
  }

  #flowSubtitle {
    font-size: 1.02rem;
  }

  .radio-group label {
    min-height: 72px;
    font-size: 1.06rem;
  }

  .proceed-option {
    min-height: 72px;
    font-size: 1.04rem;
  }

  .proceed-benefits {
    margin-top: 0.9rem;
    margin-bottom: 0.28rem;
    padding: 0.86rem 0.86rem 0.8rem;
  }

  .proceed-benefit-text {
    min-height: 3.1rem;
    font-size: 1.12rem;
    line-height: 1.4;
  }

  .proceed-benefit-dot {
    width: 30px;
  }

}
