/* Homepage-only presentation. Keep the download surface isolated from Workbench. */
body[data-page="index"] {
  --home-blue: #1769e0;
  --home-blue-deep: #0e55bd;
  --home-ink: #172033;
  --home-muted: #667085;
  --home-line: #dce2ec;
  --home-wash: #eff6ff;
  background: #fff !important;
}

.snap-home {
  position: relative;
  z-index: 1;
  color: var(--home-ink);
  background: #fff;
}

.snap-home__hero {
  display: flex;
  min-height: 466px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 58px 24px 62px;
  text-align: center;
  background: linear-gradient(180deg, #eaf4ff 0%, #f7fbff 68%, #fff 100%);
}

.snap-home__notice {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 15px;
  padding: 6px 10px;
  border: 1px solid rgba(23, 105, 224, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--home-blue);
  font-size: 12px;
  font-weight: 800;
}

.snap-home h1 {
  width: 100%;
  max-width: 760px;
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.055em;
}

.snap-home__subtitle {
  width: 100%;
  max-width: 650px;
  margin: 15px 0 0;
  color: var(--home-muted);
  font-size: 17px;
  line-height: 1.65;
}

.snap-home__tool {
  width: min(100%, 900px);
  margin-top: 31px;
  text-align: left;
}

.snap-home__input-label {
  display: block;
  margin: 0 0 8px;
  color: #344158;
  font-size: 13px;
  font-weight: 800;
}

.snap-home__control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid #bfc9d9;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 105, 224, 0.1);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.snap-home__control:focus-within {
  border-color: var(--home-blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.16), 0 10px 30px rgba(23, 105, 224, 0.1);
}

.snap-home__link-mark {
  padding-left: 18px;
  color: #6e7a8f;
  font-size: 20px;
  line-height: 1;
  transform: rotate(45deg);
}

.snap-home__control input {
  min-width: 0;
  height: 60px;
  padding: 0 13px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent;
  color: var(--home-ink);
  font-size: 15px;
}

.snap-home__control input::placeholder {
  color: #929caf;
}

.snap-home__clear {
  width: 48px;
  height: 42px;
  border: 0;
  background: #fff;
  color: #7a8494;
  font-size: 24px;
  line-height: 1;
}

.snap-home__clear:hover {
  color: var(--home-blue);
}

.snap-home__submit {
  align-self: stretch;
  min-width: 138px;
  border: 0;
  background: var(--home-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  transition: background 160ms ease;
}

.snap-home__submit:hover {
  background: var(--home-blue-deep);
}

.snap-home__submit:active {
  transform: translateY(1px);
}

.snap-home__submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.snap-home__sample-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 0;
}

.snap-home__sample {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid #9ebce7;
  border-radius: 7px;
  background: #fff;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 800;
}

.snap-home__sample:hover {
  border-color: var(--home-blue);
  background: #edf4ff;
}

.snap-home__sample:active {
  transform: translateY(1px);
}

.snap-home__sample-hint {
  color: #7c8798;
  font-size: 12px;
  line-height: 1.45;
}

.snap-home__benefit {
  margin: 14px 0 0;
  color: #174ea6;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.snap-home__helper {
  margin: 6px 0 0;
  color: #7c8798;
  font-size: 12px;
  line-height: 1.5;
}

.snap-home__guide {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 48px;
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
  padding: 34px 0 48px;
}

.snap-home__tasks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.snap-home__tasks b {
  display: block;
  color: #2a364a;
  font-size: 15px;
}

.snap-home__tasks small {
  display: block;
  margin-top: 6px;
  color: #7c8798;
  font-size: 12px;
}

.snap-home__tasks strong {
  color: var(--home-blue);
  font-size: 13px;
  white-space: nowrap;
}

.snap-home__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.snap-home__facts div {
  padding-left: 14px;
  border-left: 2px solid #cfe2ff;
}

.snap-home__facts b {
  display: block;
  color: #344158;
  font-size: 13px;
}

.snap-home__facts span {
  display: block;
  margin-top: 6px;
  color: #7c8798;
  font-size: 12px;
  line-height: 1.55;
}

.snap-home__lower {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  align-items: start;
  gap: 26px;
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
  padding: 46px 0;
  border-top: 1px solid #e4e9f0;
}

.home-recent,
.home-tips {
  padding: 26px;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  background: #fff;
}

.home-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}

.home-section-head h2,
.home-faq h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: 19px;
  letter-spacing: -0.025em;
}

.home-section-head p {
  margin: 7px 0 0;
  color: #7c8798;
  font-size: 13px;
  line-height: 1.5;
}

.home-section-head a {
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.home-recent__list {
  display: grid;
  gap: 1px;
}

.home-recent__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid #edf0f4;
  color: inherit;
  text-decoration: none;
}

.home-recent__cover {
  position: relative;
  display: grid;
  width: 56px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #eaf3ff;
  color: var(--home-blue);
  font-size: 12px;
  font-weight: 850;
}

.home-recent__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-recent__content {
  min-width: 0;
}

.home-recent__content b {
  display: block;
  overflow: hidden;
  color: #334158;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-recent__content small {
  display: block;
  margin-top: 4px;
  color: #8790a0;
  font-size: 12px;
}

.home-recent__item em {
  color: #728096;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.home-recent__item em.is-completed,
.home-recent__item em.is-success {
  color: #20855b;
}

.home-recent__item em.is-failed,
.home-recent__item em.is-error {
  color: #c64c5e;
}

.home-recent__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 12px 0 4px;
  border-top: 1px solid #edf0f4;
}

.home-recent__empty strong {
  color: #344158;
  font-size: 14px;
}

.home-recent__empty span {
  color: #7c8798;
  font-size: 13px;
}

.home-recent__empty a {
  margin-top: 5px;
  color: var(--home-blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.home-tips ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-tips li {
  padding: 12px 0;
  border-top: 1px solid #edf0f4;
}

.home-tips b {
  display: block;
  color: #38455a;
  font-size: 13px;
}

.home-tips span {
  display: block;
  margin-top: 5px;
  color: #778294;
  font-size: 12px;
  line-height: 1.55;
}

.home-player-warning {
  color: #b54708;
}

.home-faq {
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
  padding: 4px 0 66px;
}

.home-faq h2 {
  margin: 0 0 18px;
}

.home-faq__list {
  border-top: 1px solid #dfe5ee;
}

.home-faq details {
  border-bottom: 1px solid #dfe5ee;
}

.home-faq summary {
  position: relative;
  padding: 17px 28px 17px 0;
  color: #344158;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.home-faq summary::-webkit-details-marker {
  display: none;
}

.home-faq summary::after {
  content: "+";
  position: absolute;
  top: 14px;
  right: 2px;
  color: var(--home-blue);
  font-size: 20px;
  font-weight: 400;
}

.home-faq details[open] summary::after {
  content: "−";
}

.home-faq details p {
  max-width: 760px;
  margin: 0;
  padding: 0 0 17px;
  color: #778294;
  font-size: 13px;
  line-height: 1.75;
}

@media (max-width: 920px) {
  .snap-home__lower {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body[data-page="index"] .navbar .nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px 40px;
    gap: 6px;
    min-width: 0;
  }

  body[data-page="index"] .navbar .nav-brand {
    min-width: 0;
  }

  body[data-page="index"] .navbar .language-picker {
    min-width: 0;
    margin: 0 !important;
  }

  body[data-page="index"] .navbar .language-picker select {
    width: 104px !important;
    max-width: 104px !important;
  }

  body[data-page="index"] .navbar .nav-hamburger {
    display: flex;
  }

  body[data-page="index"] .navbar .nav-links {
    grid-column: 1 / -1;
  }

  .snap-home__hero {
    min-height: auto;
    padding: 46px 16px 50px;
  }

  .snap-home h1 {
    font-size: clamp(32px, 10vw, 42px);
    overflow-wrap: anywhere;
  }

  .snap-home__subtitle {
    font-size: 15px;
  }

  .snap-home__tool {
    margin-top: 26px;
  }

  .snap-home__control {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .snap-home__control input {
    height: 55px;
  }

  .snap-home__submit {
    grid-column: 1 / -1;
    min-height: 51px;
  }

  .snap-home__sample-row {
    width: min(100%, 900px);
    flex-direction: column;
    gap: 6px;
  }

  .snap-home__sample {
    width: 100%;
  }

  .snap-home__guide {
    grid-template-columns: 1fr;
    gap: 24px;
    width: min(calc(100% - 32px), 1120px);
    padding: 28px 0 38px;
  }

  .snap-home__facts {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid #e5e9ef;
  }

  .snap-home__lower {
    gap: 16px;
    width: min(calc(100% - 32px), 1120px);
    padding: 32px 0;
  }

  .home-recent,
  .home-tips {
    padding: 20px;
  }

  .home-recent__item {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }

  .home-recent__cover {
    width: 52px;
    height: 38px;
  }

  .home-faq {
    width: min(calc(100% - 32px), 1120px);
    padding-bottom: 42px;
  }

  .home-section-head h2,
  .home-faq h2 {
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  body[data-page="index"] .navbar .nav-inner {
    grid-template-columns: minmax(0, 1fr) 92px 40px;
  }

  body[data-page="index"] .navbar .language-picker select {
    width: 92px !important;
    max-width: 92px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .snap-home__control,
  .snap-home__submit {
    transition: none;
  }
}
